57813f10593e1a9d17d87dd22c84d3fcc1f58d98
[gnulib.git] / ChangeLog
1 2011-06-09  Bruno Haible  <bruno@clisp.org>
2
3         thread: Fix confusion between NULL and 0.
4         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5         Reported by Paul Eggert.
6
7 2011-06-09  Bruno Haible  <bruno@clisp.org>
8
9         spawn-pipe tests: Avoid test failure on HP-UX 11.
10         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11         is closed.
12
13 2011-06-09  Bruno Haible  <bruno@clisp.org>
14
15         acl tests: Fix compilation error on HP-UX 11.
16         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17
18 2011-06-09  Bruno Haible  <bruno@clisp.org>
19
20         rmdir: Avoid test failure on HP-UX 10.20.
21         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
22         EEXIST.
23
24 2011-06-08  Eric Blake  <eblake@redhat.com>
25
26         perror: fix test on mingw
27         * modules/perror-tests (Depends-on): Add dup2.
28
29         strerror_r-posix: fix on MacOS
30         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
31         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
32         logic bug.
33         * lib/strerror_r.c (strerror_r): Fix the bug.
34         * lib/strerror.c (strerror): Likewise.
35         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
36         problem.
37         * doc/posix-functions/strerror.texi (strerror): Likewise.
38         * doc/posix-functions/perror.texi (perror): Likewise.
39         * tests/test-strerror.c (main): Enhance test.
40         * tests/test-strerror_r.c (main): Likewise.
41
42 2011-06-08  Bruno Haible  <bruno@clisp.org>
43
44         gnulib-tool: Better isolation between different gnulib-tool invocations.
45         * gnulib-tool: New option --witness-c-macro.
46         (witness_c_macro): New variable.
47         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
48         AM_CPPFLAGS define it as a C macro.
49         (func_emit_tests_Makefile_am): Likewise.
50         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
51         read it from there.
52         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
53         m4_define, not AC_DEFUN.
54         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
55         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
56         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
57         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
58         s|...|...|, to substitute the values of the GNULIB_* module indicator
59         variables.
60         * modules/dirent (Makefile.am): Likewise.
61         * modules/fcntl-h (Makefile.am): Likewise.
62         * modules/iconv-h (Makefile.am): Likewise.
63         * modules/langinfo (Makefile.am): Likewise.
64         * modules/locale (Makefile.am): Likewise.
65         * modules/math (Makefile.am): Likewise.
66         * modules/netdb (Makefile.am): Likewise.
67         * modules/poll-h (Makefile.am): Likewise.
68         * modules/pty (Makefile.am): Likewise.
69         * modules/search (Makefile.am): Likewise.
70         * modules/signal (Makefile.am): Likewise.
71         * modules/spawn (Makefile.am): Likewise.
72         * modules/stdio (Makefile.am): Likewise.
73         * modules/stdlib (Makefile.am): Likewise.
74         * modules/string (Makefile.am): Likewise.
75         * modules/sys_ioctl (Makefile.am): Likewise.
76         * modules/sys_select (Makefile.am): Likewise.
77         * modules/sys_socket (Makefile.am): Likewise.
78         * modules/sys_stat (Makefile.am): Likewise.
79         * modules/sys_times (Makefile.am): Likewise.
80         * modules/sys_utsname (Makefile.am): Likewise.
81         * modules/sys_wait (Makefile.am): Likewise.
82         * modules/termios (Makefile.am): Likewise.
83         * modules/time (Makefile.am): Likewise.
84         * modules/unistd (Makefile.am): Likewise.
85         * modules/wchar (Makefile.am): Likewise.
86
87 2011-06-08  Eric Blake  <eblake@redhat.com>
88
89         strerror: simplify replacement
90         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
91         * modules/strerror (configure.ac): No prereqs needed here...
92         * modules/strerror-override (configure.ac): ...but this needs it.
93         (Files): Add file for needed prereq macro.
94
95 2011-06-08  Bruno Haible  <bruno@clisp.org>
96
97         strerror_r-posix: Tweaks.
98         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
99         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
100         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
101         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
102         (gl_FUNC_STRERROR_R): ... to here.
103         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
104
105 2011-06-07  Eric Blake  <eblake@redhat.com>
106
107         perror: document fixed bugs
108         * doc/posix-functions/perror.texi (perror): Document recent
109         patches.
110
111 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
112
113         stat-time: get_stat_birthtime failure is better-defined
114         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
115         return a timestamp whose tv_sec and tv_nsec values are both -1.
116         Previously, the spec said only that the tv_nsec value was negative.
117         This upward-compatible change simplifies GNU tar a bit.
118
119 2011-06-07  Eric Blake  <eblake@redhat.com>
120
121         strerror_r-posix: work around cygwin 1.7.9
122         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
123         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
124         bug without replacing strerror_r.
125         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
126         strerror_r is buggy, but without requiring strerror_r compilation.
127         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
128
129         test-perror: relax test to ignore cygwin bug
130         * tests/test-perror2.c (main): Relax test on requiring detection
131         of stream errors, and use unbuffered stream.
132         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
133         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
134         * doc/posix-functions/fputc.texi (fputc): Likewise.
135         * doc/posix-functions/fputs.texi (fputs): Likewise.
136         * doc/posix-functions/fputws.texi (fputws): Likewise.
137         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
138         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
139         * doc/posix-functions/getopt.texi (getopt): Likewise.
140         * doc/posix-functions/perror.texi (perror): Likewise.
141         * doc/posix-functions/printf.texi (printf): Likewise.
142         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
143         * doc/posix-functions/psignal.texi (psignal): Likewise.
144         * doc/posix-functions/putc.texi (putc): Likewise.
145         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
146         Likewise.
147         * doc/posix-functions/putchar.texi (putchar): Likewise.
148         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
149         Likewise.
150         * doc/posix-functions/puts.texi (puts): Likewise.
151         * doc/posix-functions/putwc.texi (putwc): Likewise.
152         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
153         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
154         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
155         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
156         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
157         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
158         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
159         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
160
161 2011-05-22  Bruno Haible  <bruno@clisp.org>
162
163         strerror: Move AC_LIBOBJ invocations to module description.
164         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
165         gl_PREREQ_STRERROR invocations from here...
166         * modules/strerror (configure.ac): ... to here.
167
168 2011-05-21  Bruno Haible  <bruno@clisp.org>
169
170         perror: Use common idiom.
171         * modules/perror (configure.ac): Reorder statements.
172
173 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
174
175         tests: fix usage message in 'mktempd_'
176         * tests/init.sh (mktempd_): In the usage message, use literal
177         'mktempd_', not '$ME' (which is even undefined), as the name of
178         the subroutine.
179
180 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
181
182         tests init: new function 'fatal_', for hard errors
183         Before this patch, the only way offered by tests/init.sh to
184         properly signal a hard error was the `framework_failure_'
185         function.  But the error message issued by that function,
186         as its name would suggest, refers to a set-up failure in the
187         testsuite, while hard errors can obviously also be due to
188         other reasons.  The best way to fix this inconsistency is to
189         introduce a new function with a more general error message.
190         * tests/init.sh (fatal_): New function.
191
192 2011-06-06  Eric Blake  <eblake@redhat.com>
193
194         canonicalize-lgpl: use common idiom
195         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
196         over newer POSIX -Rf.
197         Reported by Bruno Haible.
198
199         canonicalize-lgpl: work around AIX realpath bug
200         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
201         * doc/posix-functions/realpath.texi (realpath): Document it.
202         Reported by Bruno Haible.
203
204         strerror: work around FreeBSD bug
205         * lib/strerror.c (strerror): Special case 0.
206         Reported by Bruno Haible.
207
208         strerror-override: avoid bloating errno module
209         * modules/errno (Files, configure.ac): Move replacement strings...
210         * modules/strerror-override: ...to new module.
211         * modules/strerror (Depends-on): Add strerror-override.
212         * modules/strerror_r-posix (Depends-on): Likewise.
213         * MODULES.html.sh: Document new module.
214         Reported by Bruno Haible.
215
216 2011-06-06  Bruno Haible  <bruno@clisp.org>
217
218         spawn-pipe tests: Rename program.
219         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
220         * tests/test-spawn-pipe-child.c: Update comment.
221         * tests/test-spawn-pipe.sh: Update.
222         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
223
224         spawn-pipe tests: Link the child program only against libc.
225         * tests/test-spawn-pipe-child.c: New file, extracted from
226         tests/test-spawn-pipe.c.
227         (main): Expect only one argument.
228         (is_open): New function, copied from tests/test-pipe.c.
229         * tests/test-spawn-pipe.c: Don't include <errno.h>.
230         (child_main): Remove function.
231         (test_pipe): Pass only one argument to the child program.
232         (main): Remove child process code. Expect the child program's name as
233         first argument.
234         * tests/test-spawn-pipe.sh: Pass the child program's name as first
235         argument.
236         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
237         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
238         test-spawn-pipe-child against no libraries.
239
240 2011-06-06  Bruno Haible  <bruno@clisp.org>
241
242         careadlinkat: Avoid mismatch between ssize_t and int.
243         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
244         * lib/careadlinkat.c (careadlinkatcwd): Define always.
245
246 2011-06-06  Jim Meyering  <meyering@redhat.com>
247
248         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
249         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
250         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
251
252 2011-06-05  Bruno Haible  <bruno@clisp.org>
253
254         ansi-c++-opt: Interoperability with libtool.
255         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
256         set the variable to "no", not to ":".
257         * NEWS: Mention the change.
258
259 2011-06-05  Bruno Haible  <bruno@clisp.org>
260
261         acl: Fix test failure on AIX 7.
262         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
263         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
264
265 2011-06-05  Bruno Haible  <bruno@clisp.org>
266
267         pipe-filter-ii: Fix test failure on AIX and IRIX.
268         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
269         with EAGAIN, retry with a smaller buffer size.
270
271 2011-06-05  Bruno Haible  <bruno@clisp.org>
272
273         localename: Fix link dependencies.
274         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
275         * modules/localename-tests (Makefile.am): Link test-localename with
276         $(LIBTHREAD).
277
278 2011-06-05  Bruno Haible  <bruno@clisp.org>
279
280         error: Avoid gcc warning.
281         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
282
283 2011-06-05  Bruno Haible  <bruno@clisp.org>
284
285         unsetenv: Avoid gcc warning.
286         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
287
288 2011-06-05  Bruno Haible  <bruno@clisp.org>
289
290         setenv: Avoid gcc warning.
291         * lib/setenv.c (setenv): Provide declaration if system lacks it.
292
293 2011-06-05  Bruno Haible  <bruno@clisp.org>
294
295         sys_select: Ensure memset is declared also on AIX 7.
296         * lib/sys_select.in.h: Include <string.h> also on AIX.
297         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
298         self-contained also on AIX 7.1.
299
300 2011-06-04  Jim Meyering  <meyering@redhat.com>
301
302         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
303         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
304         function name, "error".
305         (_gl_translatable_diag_func_re): New configurable variable.
306
307 2011-06-04  Bruno Haible  <bruno@clisp.org>
308
309         getopt: Avoid gcc warning.
310         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
311
312 2011-06-04  Bruno Haible  <bruno@clisp.org>
313
314         strerror_r: Fix comments.
315         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
316         commit.
317
318 2011-06-04  Bruno Haible  <bruno@clisp.org>
319
320         perror: Fix compilation error.
321         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
322         Undefine fprintf, not sprintf.
323         * modules/perror (Depends-on): Remove intprops, verify.
324
325 2011-06-04  Bruno Haible  <bruno@clisp.org>
326
327         setlocale: Enable replacement on Cygwin 1.5.
328         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
329         Cygwin 1.5.x.
330         * doc/posix-functions/setlocale.texi: Mention that the problem with the
331         LC_CTYPE category also exists on Cygwin 1.5.x.
332
333 2011-06-04  Bruno Haible  <bruno@clisp.org>
334
335         strerror-override: Don't disable symbol renamings.
336         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
337         * lib/strerror-override.c: Include config.h.
338         (strerror_override): Don't undefine.
339
340 2011-06-03  Bruno Haible  <bruno@clisp.org>
341
342         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
343         * lib/localename.h: Update copyright header.
344         * lib/localename.c: Likewise.
345         * lib/relocatable.h: Likewise.
346         * lib/relocatable.c: Likewise.
347
348 2011-06-02  Bruno Haible  <bruno@clisp.org>
349
350         doc: Fix a module name.
351         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
352
353 2011-06-02  Bruno Haible  <bruno@clisp.org>
354
355         pipe2: Remove dependency on 'nonblocking' module.
356         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
357         O_NONBLOCK is defined by gnulib.
358         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
359         is zero.
360         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
361         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
362         defined by gnulib.
363         (get_nonblocking_flag): New function.
364         (main): Test O_NONBLOCK flag only if it is nonzero.
365         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
366
367 2011-06-03  Jim Meyering  <meyering@redhat.com>
368
369         maint: three new prohibit-header-without-use rules
370         Prohibit use of cloexec.h, posixver.h, same.h without use.
371         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
372         (sc_prohibit_posixver_without_use): Likewise.
373         (sc_prohibit_same_without_use): Likewise.
374
375 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
376
377         allocator: 'die' routine is now given requested size
378         * lib/allocator.h (struct allocator.die): New size arg.
379         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
380         If the actual problem is an ssize_t limitation, not a size_t or
381         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
382
383 2011-06-01  Eric Blake  <eblake@redhat.com>
384
385         strerror: drop strerror_r dependency
386         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
387         * lib/strerror-override.c (strerror_override): ...to new file.
388         * lib/strerror-override.h: Add prototype.
389         * lib/strerror-impl.h: Delete.
390         * lib/strerror.c (strerror): New implementation.
391         * modules/errno (Files): Add new files.
392         (configure.ac): Compile new file as appropriate.
393         * modules/strerror (Files): Drop unused file.
394         (Depends-on): Drop strerror_r-posix.
395         * MODULES.html.sh: Document strerror_r-posix.
396         Requested by Sam Steingold.
397
398         perror: call strerror_r directly
399         * modules/perror (Files): Drop strerror-impl.h.
400         * lib/perror.c (perror): Use our own stack buffer, rather than
401         calling a wrapper that uses static storage.
402         * doc/posix-functions/perror.texi (perror): Document a limitation
403         of our replacement.
404
405         strerror_r: fix includes for FreeBSD
406         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
407         since we use abort on some platforms.
408         Reported by Matthias Bolte.
409
410 2011-05-31  Bruno Haible  <bruno@clisp.org>
411
412         Fix link errors in tests: openat-die uses gettext-h.
413         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
414         against $(LIBINTL).
415         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
416         against $(LIBINTL).
417         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
418         $(LIBINTL).
419         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
420         against $(LIBINTL).
421         * modules/linkat-tests (Makefile.am): Link test-linkat against
422         $(LIBINTL).
423         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
424         $(LIBINTL).
425         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
426         against $(LIBINTL).
427         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
428         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
429         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
430         $(LIBINTL).
431         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
432         $(LIBINTL).
433         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
434         $(LIBINTL).
435         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
436
437 2011-05-31  Bruno Haible  <bruno@clisp.org>
438
439         Fix link errors in tests: wait-process uses gettext-h.
440         * modules/nonblocking-pipe-tests (Makefile.am): Set
441         test_nonblocking_pipe_main_LDADD.
442         * modules/nonblocking-socket-tests (Makefile.am): Link
443         test-nonblocking-socket-main against $(LIBINTL).
444         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
445
446 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
447
448         assert-h: work around 'verify' incompatibility
449         * lib/verify.h: Use @...@ directives, not ifdef.
450         * modules/assert-h (assert.h): Implement the directives.
451         (assert.h): Substitute the symbol-prefix more consistently.
452
453 2011-05-29  Jim Meyering  <meyering@redhat.com>
454
455         trim: remove three superfluous assignments
456         * lib/trim.c (trim2): Remove three superfluous assignments
457         and correct brace positioning.
458
459 2011-05-29  Bruno Haible  <bruno@clisp.org>
460
461         wctype-h: Avoid namespace pollution on Solaris 2.6.
462         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
463         identifiers.
464         * doc/posix-headers/wctype.texi: Mention the problem.
465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
466
467 2011-05-28  Jim Meyering  <meyering@redhat.com>
468
469         parse-datetime.y: accommodate -Wstrict-overflow
470         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
471         placate -Wstrict-overflow.
472
473         trim: avoid a warning from -O2 -Wstrict-overflow
474         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
475
476 2011-05-29  Bruno Haible  <bruno@clisp.org>
477
478         gnulib-tool: Fix bug in yesterday's commit.
479         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
480         twice.
481
482 2011-05-29  Bruno Haible  <bruno@clisp.org>
483
484         Allow multiple gnulib generated include files to be combined.
485         * gnulib-tool (func_compute_include_guard_prefix): New function.
486         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
487         ${gl_include_guard_prefix} references.
488         (func_import, func_create_testdir): Invoke
489         func_compute_include_guard_prefix.
490         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
491         * lib/ctype.in.h: Likewise.
492         * lib/dirent.in.h: Likewise.
493         * lib/errno.in.h: Likewise.
494         * lib/fcntl.in.h: Likewise.
495         * lib/float.in.h: Likewise.
496         * lib/getopt.in.h: Likewise.
497         * lib/iconv.in.h: Likewise.
498         * lib/langinfo.in.h: Likewise.
499         * lib/locale.in.h: Likewise.
500         * lib/math.in.h: Likewise.
501         * lib/netdb.in.h: Likewise.
502         * lib/netinet_in.in.h: Likewise.
503         * lib/poll.in.h: Likewise.
504         * lib/pthread.in.h: Likewise.
505         * lib/pty.in.h: Likewise.
506         * lib/sched.in.h: Likewise.
507         * lib/se-selinux.in.h: Likewise.
508         * lib/search.in.h: Likewise.
509         * lib/signal.in.h: Likewise.
510         * lib/spawn.in.h: Likewise.
511         * lib/stdarg.in.h: Likewise.
512         * lib/stddef.in.h: Likewise.
513         * lib/stdint.in.h: Likewise.
514         * lib/stdio.in.h: Likewise.
515         * lib/stdlib.in.h: Likewise.
516         * lib/string.in.h: Likewise.
517         * lib/strings.in.h: Likewise.
518         * lib/sys_file.in.h: Likewise.
519         * lib/sys_ioctl.in.h: Likewise.
520         * lib/sys_select.in.h: Likewise.
521         * lib/sys_socket.in.h: Likewise.
522         * lib/sys_stat.in.h: Likewise.
523         * lib/sys_time.in.h: Likewise.
524         * lib/sys_times.in.h: Likewise.
525         * lib/sys_uio.in.h: Likewise.
526         * lib/sys_utsname.in.h: Likewise.
527         * lib/sys_wait.in.h: Likewise.
528         * lib/sysexits.in.h: Likewise.
529         * lib/termios.in.h: Likewise.
530         * lib/time.in.h: Likewise.
531         * lib/unistd.in.h: Likewise.
532         * lib/wchar.in.h: Likewise.
533         * lib/wctype.in.h: Likewise.
534         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
535         * modules/ctype (Makefile.am): Likewise.
536         * modules/dirent (Makefile.am): Likewise.
537         * modules/errno (Makefile.am): Likewise.
538         * modules/fcntl-h (Makefile.am): Likewise.
539         * modules/float (Makefile.am): Likewise.
540         * modules/getopt-posix (Makefile.am): Likewise.
541         * modules/iconv-h (Makefile.am): Likewise.
542         * modules/langinfo (Makefile.am): Likewise.
543         * modules/locale (Makefile.am): Likewise.
544         * modules/math (Makefile.am): Likewise.
545         * modules/netdb (Makefile.am): Likewise.
546         * modules/netinet_in (Makefile.am): Likewise.
547         * modules/poll-h (Makefile.am): Likewise.
548         * modules/pthread (Makefile.am): Likewise.
549         * modules/pty (Makefile.am): Likewise.
550         * modules/sched (Makefile.am): Likewise.
551         * modules/search (Makefile.am): Likewise.
552         * modules/selinux-h (Makefile.am): Likewise.
553         * modules/signal (Makefile.am): Likewise.
554         * modules/spawn (Makefile.am): Likewise.
555         * modules/stdarg (Makefile.am): Likewise.
556         * modules/stddef (Makefile.am): Likewise.
557         * modules/stdint (Makefile.am): Likewise.
558         * modules/stdio (Makefile.am): Likewise.
559         * modules/stdlib (Makefile.am): Likewise.
560         * modules/string (Makefile.am): Likewise.
561         * modules/strings (Makefile.am): Likewise.
562         * modules/sys_file (Makefile.am): Likewise.
563         * modules/sys_ioctl (Makefile.am): Likewise.
564         * modules/sys_select (Makefile.am): Likewise.
565         * modules/sys_socket (Makefile.am): Likewise.
566         * modules/sys_stat (Makefile.am): Likewise.
567         * modules/sys_time (Makefile.am): Likewise.
568         * modules/sys_times (Makefile.am): Likewise.
569         * modules/sys_uio (Makefile.am): Likewise.
570         * modules/sys_utsname (Makefile.am): Likewise.
571         * modules/sys_wait (Makefile.am): Likewise.
572         * modules/sysexits (Makefile.am): Likewise.
573         * modules/termios (Makefile.am): Likewise.
574         * modules/time (Makefile.am): Likewise.
575         * modules/unistd (Makefile.am): Likewise.
576         * modules/wchar (Makefile.am): Likewise.
577         * modules/wctype-h (Makefile.am): Likewise.
578         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
579
580 2011-05-29  Bruno Haible  <bruno@clisp.org>
581
582         assert-h: Allow multiple gnulib generated replacements to coexist.
583         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
584
585 2011-05-29  Bruno Haible  <bruno@clisp.org>
586
587         argp: Allow coexistence with strerror_r-posix module.
588         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
589         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
590         by gnulib's <string.h> replacement), assume it has the POSIX signature,
591         not the glibc signature.
592
593 2011-05-28  Bruno Haible  <bruno@clisp.org>
594
595         gnulib-tool: Alternative structure of testdirs, similar to --import.
596         * gnulib-tool: New option --single-configure.
597         (func_usage): Document it.
598         (single_configure): New variable.
599         (func_modules_transitive_closure_separately,
600         func_modules_transitive_closure_separately,
601         func_determine_use_libtests, func_modules_add_dummy_separately,
602         func_modules_to_filelist_separately): New functions, extracted from
603         func_import.
604         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
605         (func_import): Use the new functions.
606         (func_create_testdir): Set final_modules. Handle $single_configure =
607         true case.
608
609 2011-05-28  Bruno Haible  <bruno@clisp.org>
610
611         getloadavg: Remove an unreliable safety check.
612         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
613         getloadavg.c is in place.
614         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
615         Reported by Sam Steingold <sds@gnu.org>.
616
617 2011-05-28  Bruno Haible  <bruno@clisp.org>
618
619         doc: Cleanup yet another file produced by texinfo.tex.
620         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
621
622 2011-05-28  Bruno Haible  <bruno@clisp.org>
623
624         Finish the conditional dependencies mechanism.
625         * gnulib-tool: New option --no-conditional-dependencies.
626         (func_usage): Document it. Don't mark --conditional-dependencies as
627         experimental.
628         (cond_dependencies): The possible values can now be true, false, empty.
629         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
630         (func_import): Store setting in gnulib-cache.m4 and read it from there.
631         * doc/gnulib-tool.texi (Conditional dependencies): New section.
632
633 2011-05-28  Bruno Haible  <bruno@clisp.org>
634
635         doc: Use a recent texinfo.tex.
636         * doc/Makefile (tex_opts): New variable.
637         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
638
639 2011-05-28  Jim Meyering  <meyering@redhat.com>
640
641         intprops.h: adjust comment to match code change
642         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
643         only once, it *may* have side effects.  Also fix an unrelated typo.
644         (_GL_INT_SIGNED): Likewise.
645
646 2011-05-26  Simon Josefsson  <simon@josefsson.org>
647
648         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
649
650 2011-05-26  Bruno Haible  <bruno@clisp.org>
651
652         mbsrchr: Avoid collision with system function on Interix.
653         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
654         Reported by Markus Duft <mduft@gentoo.org>.
655
656 2011-05-15  James Youngman  <jay@gnu.org>
657
658         getopt: for ambiguous options, enumerate the possibilities.
659         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
660         the ambiguous options when an ambiguous prefix is given. This was
661         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
662         glibc change was
663         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
664
665 2011-05-25  Eric Blake  <eblake@redhat.com>
666
667         getcwd: work around mingw bug
668         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
669         * doc/posix-functions/getcwd.texi (getcwd): Document it.
670         Reported by Matthias Bolte.
671
672 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
673
674         test-intprops: disable -Wtype-limits diagnostics
675         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
676         diagnostics.  Otherwise, the integer overflow macros generate many
677         diagnostics.  Reported by Jim Meyering in
678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
679
680         intprops: shorten, to pacify gcc -Woverlength-strings
681         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
682         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
683         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
684         likely to run afoul of C compiler limits for string constant lengths.
685         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
686
687 2011-05-24  Eric Blake  <eblake@redhat.com>
688
689         docs: document recently fixed glibc printf bug
690         * doc/posix-functions/fprintf.texi (fprintf): Document it.
691         * doc/posix-functions/printf.texi (printf): Likewise.
692         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
693         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
694
695         closein-tests: convert to init.sh
696         * modules/closein-tests (Files): Add init.sh
697         * tests/test-closein.sh Use it.
698
699         yesno-tests: convert to init.sh
700         * modules/yesno-tests (Files): Add init.sh.
701         * tests/test-yesno.sh: Use it.
702
703         atexit-tests: ensure reliable exit status
704         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
705         Reported by Bruno Haible.
706
707 2011-05-24  Bruno Haible  <bruno@clisp.org>
708
709         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
710         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
711         gl_PREREQ_STRERROR_R invocations from here...
712         * modules/strerror_r-posix (configure.ac): ... to here.
713
714 2011-05-24  Eric Blake  <eblake@redhat.com>
715
716         strerror_r: fix missing header
717         * lib/strerror_r.c: Avoid compiler warning about snprintf.
718
719         strerror_r: fix AIX test failures
720         * lib/strerror_r.c (strerror_r): Convert silent truncation to
721         ERANGE failure.
722
723         strerror_r: fix Solaris test failures
724         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
725         failures.
726         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
727
728         strerror_r: enforce POSIX recommendations
729         * lib/strerror_r.c (safe_copy): New helper method.
730         (strerror_r): Guarantee a non-empty string.
731         * tests/test-strerror_r.c (main): Enhance tests to incorporate
732         recent POSIX rulings and to match our strerror guarantees.
733         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
734
735 2011-05-24  Jim Meyering  <meyering@redhat.com>
736
737         test-perror2.c: avoid warning about unused variable
738         * tests/test-perror2.c (main): Remove declaration of unused "fp".
739
740 2011-05-24  Eric Blake  <eblake@redhat.com>
741
742         perror: avoid spurious test failure on HP-UX
743         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
744
745         tests: fix logic bug in init.sh
746         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
747         shell.
748
749 2011-05-24  Jim Meyering  <meyering@redhat.com>
750
751         utimensat: do not reference an out-of-scope buffer
752         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
753         declared in an inner scope, yet "times" would be dereferenced outside
754         the scope in which "ts" was valid.
755         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
756         of ts[2] "out/up", so that the use of aliased "times" (via
757         "times = ts;") does not end up referencing an out-of-scope "ts"
758
759         opendir-safer.c: don't clobber errno; don't close negative FD
760         * lib/opendir-safer.c (opendir_safer):
761         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
762         file descriptor, and more importantly, don't clobber the
763         offending errno value with EINVAL.  Before, upon failure
764         of dup_safer, we would pass the negative file descriptor to
765         fdopendir, which would clobber errno.
766
767 2011-05-23  Bruno Haible  <bruno@clisp.org>
768
769         idcache: Fix module description.
770         * modules/idcache (Include): Set to "idcache.h".
771
772 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
773
774         gnulib-tool: fix portability problem with MacOS sed
775         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
776         before the "}".  Problem reported by Leo in
777         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
778         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
779         sed_extract_condition1, sed_extract_condition2.
780
781 2011-05-23  Bruno Haible  <bruno@clisp.org>
782
783         hash: Simplify autoconf macro.
784         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
785
786 2011-05-23  Bruno Haible  <bruno@clisp.org>
787
788         getugroups: Fix module description.
789         * modules/getugroups (Include): Set to "getugroups.h".
790
791 2011-05-23  Bruno Haible  <bruno@clisp.org>
792
793         linkat: Simplify autoconf macro.
794         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
795
796 2011-05-23  Bruno Haible  <bruno@clisp.org>
797             Eric Blake  <eblake@redhat.com>
798
799         linkat, renameat: Update dependencies.
800         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
801         * modules/linkat (Depends-on): Likewise. Remove also readlink,
802         symlinkat.
803
804 2011-05-23  Jim Meyering  <meyering@redhat.com>
805
806         maint.mk: more tight_scope improvements
807         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
808         (_gl_TS_headers): Define only in if-0'd block.
809         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
810         sometimes we must *not* use it.  Adjust uses accordingly.
811         (sc_tight_scope): Use much simpler grep-based test to determine
812         whether we skip this rule.
813
814         maint.mk: generalize/improve the tight-scope rule
815         * top/maint.mk: Emit a warning when the test is skipped.
816         (_gl_TS_dir): Add $(srcdir)/ prefix.
817         (_gl_TS_function_match): Simplify, rather than trying
818         to enumerate common types.  Otherwise, it would fail to match an
819         "extern unsigned char const *" declaration in idutils.
820         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
821         a way to support use of that type of macro.
822         (_gl_TS_var_match): Simplify regexp.
823         (_gl_TS_obj_files): New configurable variable.
824         (_gl_TS_headers): Likewise.
825
826 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
827
828         verify: fix bug when gnulib <assert.h> is also included
829         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
830         is defined, not if _GL_STATIC_ASSERT_H is not defined.
831         Perhaps there's a better way, but this fixes the immediate problem.
832         Problem reported by Bruno Haible in
833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
834
835 2011-05-22  Bruno Haible  <bruno@clisp.org>
836
837         xgetcwd: Simplify autoconf macro.
838         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
839
840 2011-05-22  Bruno Haible  <bruno@clisp.org>
841
842         New module 'mktime-internal'.
843         * modules/mktime-internal: New file.
844         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
845         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
846         mktime_internal as a C macro if libc has __mktime_internal.
847         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
848         conditions.
849         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
850
851 2011-05-22  Bruno Haible  <bruno@clisp.org>
852
853         timegm: Correct mktime replacement statements.
854         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
855         defining mktime as a C macro. This completes a 2009-07-28 commit.
856
857 2011-05-22  Bruno Haible  <bruno@clisp.org>
858
859         timegm: Simplify autoconf macro.
860         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
861
862 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
863
864         clock-time: change to LGPLv2+.
865         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
866         BSD-like but we have no mark for that; this is good enough for now.
867
868 2011-05-21  Bruno Haible  <bruno@clisp.org>
869
870         strerror_r: Fix comments.
871         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
872
873 2011-05-21  Bruno Haible  <bruno@clisp.org>
874
875         relocatable-prog-wrapper: Fix possible link error.
876         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
877         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
878         (gl_FUNC_SETENV): ... to here.
879         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
880         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
881
882 2011-05-21  Bruno Haible  <bruno@clisp.org>
883
884         relocatable-prog-wrapper: Assume strerror() exists.
885         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
886         m4/strerror.m4.
887         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
888         * lib/relocwrapper.c: Remove mention of strerror module.
889         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
890         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
891         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
892         C macro.
893
894 2011-05-21  Bruno Haible  <bruno@clisp.org>
895
896         select: Simplify replacement idiom.
897         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
898         Win32 platforms.
899         * lib/sys_select.in.h (select): Simplify accordingly.
900         * modules/select (Depends-on): Likewise.
901
902 2011-05-21  Bruno Haible  <bruno@clisp.org>
903
904         mkdir-p: Simplify autoconf macro.
905         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
906         gl_FUNC_LCHOWN.
907
908 2011-05-21  Eric Blake  <eblake@redhat.com>
909
910         strerror_r: avoid clobbering strerror on cygwin
911         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
912         fall back instead to sys_errlist.
913         * modules/strerror (configure.ac): Add witness.
914         * tests/test-strerror_r.c (main): Enhance test.
915         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
916         * tests/test-perror2.c (main): Free memory before exit.
917
918 2011-05-21  Bruno Haible  <bruno@clisp.org>
919
920         mkdtemp: Use gnulib naming conventions.
921         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
922         * modules/mkdtemp (configure.ac): Update.
923
924 2011-05-20  Eric Blake  <eblake@redhat.com>
925
926         strerror_r: avoid corrupting errno on Solaris
927         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
928         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
929
930         strerror_r: avoid compiler warning
931         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
932
933         strerror_r: simplify AIX code
934         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
935
936         test-perror: avoid spurious failure on FreeBSD
937         * modules/perror-tests (Depends-on): Add strerror, now that
938         strerror_r no longer pulls it in.
939
940 2011-05-20  Bruno Haible  <bruno@clisp.org>
941
942         strerror_r-posix: Remove unused dependencies.
943         * modules/strerror_r-posix (Depends-on): Remove strerror.
944         Reported by Eric Blake.
945
946 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
947
948         intprops: remove assumption about A|B representation
949         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
950         is a valid integer if both A and B are.  Although this is true for
951         all known practical hosts, the C standard doesn't guarantee it,
952         and the code need not assume it.  Also, this change may work around
953         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
955
956 2011-05-20  Eric Blake  <eblake@redhat.com>
957
958         perror: work around FreeBSD bug
959         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
960         is broken.  Move AC_LIBOBJ...
961         * modules/perror (configure.ac): Here.
962         * doc/posix-functions/perror.texi (perror): Document this.
963         * tests/test-perror2.c (main): Enhance test.
964
965         test-perror: check for strerror interactions
966         * tests/macros.h (STREQ): Add macro.
967         * modules/perror-tests (Files): Add second test.
968         * tests/test-perror2.c (main): New file.
969         * doc/posix-functions/perror.texi (perror): Document glibc bug.
970
971         test-perror: rewrite to use init script
972         * modules/perror-tests (Files): Add init.sh.
973         * tests/test-perror.sh: Use temporary directory.
974
975 2011-05-20  Jim Meyering  <meyering@redhat.com>
976
977         maint: replace misused "a" with "an"
978         * doc/intprops.texi: "a integer"
979         * doc/regex.texi: "a explanation"
980         * lib/alignof.h: "a object"
981         * lib/argmatch.h: "a explanation"
982         * lib/argp-help.c: "a option" and "a OPTION_DOC"
983         * lib/stdint.in.h: "a integer"
984         * lib/userspec.c: "a owner"
985         * doc/gnulib.texi: Fix "a idea", and reword.
986
987 2011-05-19  Jim Meyering  <meyering@redhat.com>
988
989         maint: correct misuse of "a" and "an"
990         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
991         * lib/argp-help.c: "an docum...": s/an/a/
992         * lib/argp-parse.c: "An vector": s/An/A/
993         * lib/execute.c: "an native": s/an/a/
994         * lib/spawn-pipe.c: Likewise.
995         * lib/gc.h: "an Gc_rc": s/an/a/
996         * lib/unigbrk.in.h: "an grapheme": s/an/a/
997         * lib/fts.c: "an stat.st_dev": s/an/a/
998
999 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1000
1001         intprops-tests: work around HP-UX 11.23 cc bug with constants
1002         * tests/test-intprops.c (VERIFY): New macro.
1003         (main): Use it, instead of verify, to work around the compiler bug; see
1004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1005
1006         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1007         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1008         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1009         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1010         (_GL_REMAINDER_OVERFLOW): Use it.
1011
1012         intprops-tests: revert unsigned part of previous change
1013         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1014         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1015         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1017
1018 2011-05-19  Bruno Haible  <bruno@clisp.org>
1019
1020         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1021         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1022         strerror_r() returned without filling the buffer.
1023         Reported by Eric Blake.
1024
1025 2011-05-19  Eric Blake  <eblake@redhat.com>
1026
1027         strerror_r: guarantee unchanged errno
1028         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1029         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1030         failure.
1031         * tests/test-strerror_r.c (main): Enhance test.
1032
1033 2011-05-19  Bruno Haible  <bruno@clisp.org>
1034
1035         strerror_r: Reorder #if blocks.
1036         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1037         for consistency with the previous commit.
1038
1039 2011-05-19  Bruno Haible  <bruno@clisp.org>
1040
1041         perror: Avoid clobbering the strerror buffer when possible.
1042         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1043         * lib/strerror.c: Include it.
1044         * modules/strerror (Files): Add lib/strerror-impl.h.
1045         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1046         (my_strerror): New function, defined through lib/strerror-impl.h.
1047         (perror): Use it instead of strerror.
1048         * modules/perror (Files): Add lib/strerror-impl.h.
1049         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1050
1051 2011-05-19  Eric Blake  <eblake@redhat.com>
1052
1053         strerror_r: fix on newer cygwin
1054         * lib/strerror_r.c (strerror_r): Cygwin now has
1055         __xpg_strerror_r, use it.
1056
1057 2011-05-19  Bruno Haible  <bruno@clisp.org>
1058
1059         strerror_r: Avoid clobbering the strerror buffer when possible.
1060         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1061         (sys_nerr, sys_errlist): New declarations.
1062         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1063         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1064         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1065
1066 2011-05-19  Bruno Haible  <bruno@clisp.org>
1067
1068         strerror_r: Fix test failure on mingw.
1069         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1070         EXTEND_STRERROR_R.
1071         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1072         macros from errno.in.h instead.
1073
1074 2011-05-19  Eric Blake  <eblake@redhat.com>
1075
1076         strerror: relax test for Solaris
1077         * tests/test-strerror.c (main): Permit Solaris behavior.
1078         * tests/test-strerror_r.c (main): Likewise.
1079
1080         strerror: enforce POSIX ruling on strerror(0)
1081         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1082         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1083         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1084         * doc/posix-functions/strerror.texi (strerror): Document it.
1085         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1086         * tests/test-strerror.c (main): Strengthen test.
1087         * tests/test-strerror_r.c (main): Likewise.
1088
1089 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1090
1091         intprop-tests: port to older and more-pedantic compilers
1092         * modules/intprops-tests (Files): Add tests/macros.h.
1093         * tests/test-intprops.c: Include macros.h.
1094         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1095         it's no longer documented to expand to an integer constant expression.
1096         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1097         argument is floating point, as it's no longer documented to expand
1098         to an integer constant expression in that case.
1099         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1100         compiler bugs reported by Bruno Haible.  See
1101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1102         (U0, U1): New constants, to work around the same bugs.  Also,
1103         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1104
1105         intprops: work around C compiler bugs
1106         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1107         bug in Sun C 5.11 2010/08/13 and other compilers; see
1108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1109
1110         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1111         * doc/intprops.texi (Integer Type Determination): Fix
1112         documentation for TYPE_IS_INTEGER: it returns an constant
1113         expression, not an integer constant expression.  Fix doc for
1114         TYPE_SIGNED: it returns an integer constant expression only if its
1115         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1116         hardly worth documented that way....)
1117
1118 2011-05-18  Bruno Haible  <bruno@clisp.org>
1119
1120         strerror_r: Avoid clobbering the strerror buffer when possible.
1121         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1122         Handle gnulib defined errno values here. When strerror() returns NULL
1123         or an empty string, return EINVAL.
1124         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1125         gnulib defined errno values here.
1126         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1127
1128 2011-05-18  Eric Blake  <eblake@redhat.com>
1129
1130         fnmatch: avoid compiler warning
1131         * lib/fnmatch_loop.c (FCT): Use correct type.
1132         Reported by Matthias Bolte.
1133
1134 2011-05-13  Jim Meyering  <meyering@redhat.com>
1135
1136         maint.mk: three new prohibit_<HDR>_without_use rules
1137         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1138         (sc_prohibit_stdio-safer_without_use): Likewise.
1139         (sc_prohibit_xfreopen_without_use): Likewise.
1140
1141 2011-05-17  Jim Meyering  <meyering@redhat.com>
1142
1143         announce-gen: fail if the NEWS delta is empty
1144         If there's nothing noteworthy in NEWS, then either you forgot
1145         or you shouldn't be releasing.
1146         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1147
1148 2011-05-17  Pádraig Brady <P@draigBrady.com>
1149
1150         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1151         reserved symbols starting with double underscore from the check.
1152
1153 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1154
1155         intprops: add doc
1156         * doc/intprops.texi: New file, documenting intprops.
1157         * doc/gnulib.texi (Particular Modules): Include it.
1158
1159         verify: add doc to gnulib manual and fix example
1160         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1161         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1162         (Compile-time Assertions): Fix example so it can't overflow.
1163
1164 2011-05-17  Jim Meyering  <meyering@redhat.com>
1165
1166         warnings.m4: don't usurp save_CPPFLAGS variable name
1167         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1168
1169         doc: fix typo
1170         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1171
1172 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1173             Bruno Haible  <bruno@clisp.org>
1174
1175         doc: Tweak recent change.
1176         * README (Portability guidelines): Tweak new text.
1177         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1178         Interix 6.1.
1179
1180 2011-05-16  Eric Blake  <eblake@redhat.com>
1181
1182         inttypes: avoid autoconf warning
1183         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1184         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1185
1186 2011-05-16  Sam Steingold <sds@gnu.org>
1187         and Eric Blake  <eblake@redhat.com>
1188
1189         vc-list-files: accept multiple directory operands
1190         * build-aux/vc-list-files: Iterate over all remaining operands.
1191
1192 2011-05-16  Bruno Haible  <bruno@clisp.org>
1193
1194         Fix confusion regarding deprecated modules.
1195         * modules/calloc (Status, Notice): Mark module as deprecated, not
1196         obsolete.
1197         * modules/fnmatch-posix (Status, Notice): Likewise.
1198         * modules/getdate (Status, Notice): Likewise.
1199         * modules/getopt (Status, Notice): Likewise.
1200         * modules/malloc (Status, Notice): Likewise.
1201         * modules/pipe (Status, Notice): Likewise.
1202         * modules/realloc (Status, Notice): Likewise.
1203         * modules/rename-dest-slash (Status, Notice): Likewise.
1204         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1205         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1206         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1207         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1208         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1209
1210 2011-05-16  Bruno Haible  <bruno@clisp.org>
1211
1212         doc: List the target platforms.
1213         * doc/gnulib-intro.texi (Target Platforms): New section.
1214         * doc/gnulib.texi (Introduction): Update menu.
1215         * README (Portability guidelines): Refer to the new section. Update
1216         statement about oldest supported environment. Remove rationale why
1217         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1218         unportable C89 function.
1219         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1220         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1221
1222 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1223
1224         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1225
1226 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1227
1228         intprops-tests: new module
1229         * modules/intprops-tests, tests/test-intprops.c: New files.
1230
1231         intprops: add safe, portable integer overflow checking
1232         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1233         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1234         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1235         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1236         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1237         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1238         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1239         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1240         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1241         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1242         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1243
1244 2011-05-12  James Youngman  <jay@gnu.org>
1245
1246         Add a test for glibc's Bugzilla bug #12378.
1247         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1248         doesn't allow the literal matching of a lone "[" (which is
1249         required by POSIX).
1250         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1251
1252 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1253
1254         Sync glibc change fixing Bugzilla bug #12378.
1255         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1256         beginning and fall back to matching as normal character if the
1257         string ends before the matching ']' is found.  This is what POSIX
1258         requires.
1259
1260 2011-05-13  Eric Blake  <eblake@redhat.com>
1261
1262         getcwd-lgpl: relax test for FreeBSD
1263         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1264         issue.
1265         * tests/test-getcwd-lgpl.c (main): Relax test.
1266         Reported by Matthias Bolte.
1267
1268 2011-05-11  Eric Blake  <eblake@redhat.com>
1269
1270         test-fflush: silence compiler warning
1271         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1272
1273 2011-05-11  Bruno Haible  <bruno@clisp.org>
1274
1275         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1276         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1277         * modules/canonicalize (Depends-on): Add 'nocrash'.
1278         * modules/canonicalize-lgpl (Depends-on): Likewise.
1279         * doc/posix-functions/realpath.texi: Update platforms list.
1280         Reported by Ryan Schmidt <ryandesign@macports.org>.
1281
1282 2011-05-11  Bruno Haible  <bruno@clisp.org>
1283
1284         group-member: Declare function in <unistd.h>.
1285         * lib/unistd.in.h (group_member): New declaration.
1286         * lib/group-member.h: Remove file.
1287         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1288         * tests/test-unistd-c++.cc: Check signature of group_member.
1289         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1290         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1291         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1292         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1293         HAVE_GROUP_MEMBER.
1294         * modules/group-member (Files): Remove lib/group-member.h.
1295         (Depends-on): Add unistd. Specify conditions.
1296         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1297         (Include): Change to <unistd.h>.
1298         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1299         HAVE_GROUP_MEMBER.
1300         * NEWS: Mention the change.
1301         * lib/euidaccess.c: Don't include group-member.h.
1302
1303 2011-05-11  Bruno Haible  <bruno@clisp.org>
1304
1305         group-member: Document module.
1306         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1307         module.
1308
1309 2011-05-11  Bruno Haible  <bruno@clisp.org>
1310
1311         fclose: Fix mistake earlier today.
1312         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1313
1314 2011-05-11  Eric Blake  <eblake@redhat.com>
1315
1316         fclose: preserve fflush errors
1317         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1318         Reported by Jim Meyering.
1319
1320         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1321         * build-aux/bootstrap (check_versions): When no specific version
1322         is required, merely check that the app produces an exit status
1323         that indicates its existence.
1324
1325         maint.mk: drop redundant check
1326         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1327         the same but better.
1328
1329 2011-05-11  Bruno Haible  <bruno@clisp.org>
1330
1331         fclose: Fix possible link error.
1332         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1333         unregister_shadow_fd. Improve comments.
1334         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1335         Eric Blake.
1336
1337 2011-05-11  Jim Meyering  <meyering@redhat.com>
1338
1339         maint.mk: improve "can not" detection and generalize rule name
1340         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1341         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1342         Use the same technique as in sc_prohibit_doubled_word, so that
1343         we recognize "can not" also when the words are separated by a newline.
1344         Suggested by Eric Blake.
1345         (perl_filename_lineno_text_): Define.  Factored out of...
1346         (prohibit_doubled_word_): ...here.  Use the new definition.
1347         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1348         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1349         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1350
1351 2011-05-10  Eric Blake  <eblake@redhat.com>
1352
1353         fclose: avoid double close race when possible
1354         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1355         all but WINDOWS_SOCKETS.
1356
1357 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1358
1359         openat: correct new comment
1360         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1361
1362 2011-05-10  Jim Meyering  <meyering@redhat.com>
1363
1364         openat: add comments
1365         * lib/openat-proc.c (openat_proc_name): Add comments,
1366         mostly from Eric Blake.
1367
1368 2011-05-09  Eric Blake  <eblake@redhat.com>
1369
1370         openat: reduce syscalls in first probe of /proc
1371         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1372         be a directory.  Simplify the probe for .. bugs.
1373         * modules/openat (Depends-on): Drop same-inode.
1374         Reported by Bastien ROUCARIES.
1375
1376 2011-05-09  Jim Meyering  <meyering@redhat.com>
1377
1378         maint.mk: change semantics/name of tight_scope variables
1379         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1380         Rename variables to align with semantics that make them more useful.
1381
1382         maint.mk: tweak new rule's name not to impinge
1383         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1384         (sc_tight_scope): Use new rule name rather than $@-0.
1385
1386         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1387         * top/maint.mk (sc_tight_scope): New rule.
1388         (sc_tight_scope-0): New rule, ifdef'd out.
1389         (_gl_TS_dir): Default.
1390         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1391         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1392
1393 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1394
1395         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1396         Haible <bruno@clisp.org>.
1397
1398 2011-05-08  Bruno Haible  <bruno@clisp.org>
1399
1400         Comments.
1401         * m4/isnanf.m4: Add comment.
1402         * m4/isnanl.m4: Likewise.
1403
1404 2011-05-08  Bruno Haible  <bruno@clisp.org>
1405
1406         glob: Remove obsolete macro.
1407         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1408
1409 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1410
1411         intprops: Sun C 5.11 supports __typeof__
1412         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1413         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1414         which is new.
1415         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1416
1417         intprops: switch to usual gnulib indenting and naming
1418         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1419         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1420
1421         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1422
1423 2011-05-08  Jim Meyering  <meyering@redhat.com>
1424
1425         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1426         * top/maint.mk (release-prep): Use make's --no-print-directory
1427         option when generating the announcement.  This eliminates the
1428         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1429         generated announcement template.
1430
1431 2011-05-08  Bruno Haible  <bruno@clisp.org>
1432
1433         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1434         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1435         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1436
1437 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1438
1439         ignore-value, verify: Omit include files from lib_SOURCES.
1440         * modules/ignore-value, modules/verify (Makefile.am):
1441         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1442         that leads Automake to duplicate use of am__objects_... variables
1443         in Makefile.in.  See
1444         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1445
1446 2011-05-07  Bruno Haible  <bruno@clisp.org>
1447
1448         fclose: Simplify autoconf macro.
1449         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1450         defined.
1451
1452 2011-05-07  Bruno Haible  <bruno@clisp.org>
1453
1454         canonicalize-lgpl: Fix autoconf macro ordering bug.
1455         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1456         gl_STDLIB_H_DEFAULTS.
1457
1458 2011-05-06  Eric Blake  <eblake@redhat.com>
1459
1460         maintainer-makefile: make sc_po_check easier to tune
1461         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1462         to probe for strings, such as an alternate location for gnulib.
1463
1464         fclose: guarantee behavior on seekable stdin
1465         * modules/fclose (Depends-on): Add fflush.
1466         * doc/posix-functions/fclose.texi (fclose): Document this.
1467         * tests/test-fclose.c (main): Make test for this unconditional.
1468
1469 2011-05-06  Bruno Haible  <bruno@clisp.org>
1470
1471         fflush, fpurge: Relicense under LGPLv2+.
1472         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1473         * modules/fpurge (License): Likewise.
1474         With permission from Eric Blake and Jim Meyering.
1475         Suggested by Eric Blake.
1476
1477 2011-05-06  Karl Berry  <karl@gnu.org>
1478
1479         * MODULES.html.sh (func_all_modules): remove exit.
1480
1481 2011-05-06  Jim Meyering  <meyering@redhat.com>
1482
1483         maint.mk: use info-gnu@ as the default only for a stable release
1484         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1485         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1486         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1487         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1488
1489 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1490
1491         assert-h: new module, which supports C1X-style static_assert
1492         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1493         * lib/verify.h: Revamp so that this can be copied into assert.h,
1494         while retaining the ability to use it standalone as before.
1495         Rename private identifiers so as not to encroach on the
1496         standard C namespace, since this is now used by assert.h.
1497         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1498         the old verify_true.
1499         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1500         the old verify_true.  Use _GL_VERIFY_TYPE.
1501         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1502         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1503         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1504         defined when this file is copied into the replacement assert.h.
1505         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1506         and _Static_assert is not built in.
1507         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1508         defined, and use the new macros mentioned above.
1509         * doc/posix-headers/assert.texi: Document this.
1510
1511 2011-05-05  Bruno Haible  <bruno@clisp.org>
1512
1513         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1514         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1515         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1516         gl_REPLACE_FCLOSE here.
1517         * modules/fflush (Depends-on): Remove fclose.
1518         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1519         combination with module 'fclose'.
1520
1521 2011-05-05  Bruno Haible  <bruno@clisp.org>
1522
1523         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1524         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1525         gl_FUNC_FFLUSH.
1526         (gl_FUNC_FFLUSH): Use it.
1527         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1528         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1529         gl_REPLACE_FSEEKO here.
1530
1531 2011-05-05  Bruno Haible  <bruno@clisp.org>
1532
1533         tzset: Relicense under LGPL.
1534         * modules/tzset (License): Change to LGPL.
1535         No agreement needed; it's a no-op.
1536
1537         strtoimax, strtoumax: Relicense under LGPL.
1538         * modules/strtoimax (License): Change to LGPL.
1539         * modules/strtoumax (License): Likewise.
1540         With permission from Jim Meyering, Paul Eggert:
1541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1543
1544         getgroups: Relicense under LGPL.
1545         * modules/getgroups (License): Change to LGPL.
1546         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1548         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1550
1551         nanosleep: Relicense under LGPL.
1552         * modules/nanosleep (License): Change to LGPL.
1553         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1554         Haible:
1555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1559
1560         futimens: Relicense under LGPL.
1561         * modules/futimens (License): Change to LGPL.
1562         With permission from Eric Blake:
1563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1564
1565         fflush: Relicense under LGPL.
1566         * modules/fflush (License): Change to LGPL.
1567         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1571
1572         tmpfile: Relicense under LGPL.
1573         * modules/tmpfile (License): Change to LGPL.
1574         With permission from Ben Pfaff:
1575         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1576
1577         isfinite: Relicense under LGPL.
1578         * modules/isfinite (License): Change to LGPL.
1579         With permission from Ben Pfaff, Bruno Haible:
1580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1582
1583         acosl..tanl: Relicense under LGPL.
1584         * modules/acosl (License): Change to LGPL.
1585         * modules/asinl (License): Likewise.
1586         * modules/atanl (License): Likewise.
1587         * modules/cosl (License): Likewise.
1588         * modules/expl (License): Likewise.
1589         * modules/logl (License): Likewise.
1590         * modules/sinl (License): Likewise.
1591         * modules/sqrtl (License): Likewise.
1592         * modules/tanl (License): Likewise.
1593         Source code originally from glibc and Paolo Bonzini. Agreements:
1594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1596
1597 2011-05-05  Bruno Haible  <bruno@clisp.org>
1598
1599         signal: Define sighandler_t.
1600         * lib/signal.in.h (sighandler_t): New type.
1601         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1602         whether sighandler_t is defined.
1603         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1604         * modules/signal (Depends-on): Add extensions.
1605         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1606         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1607         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1608
1609 2011-05-05  Eric Blake  <eblake@redhat.com>
1610
1611         maint: remove useless REPLACE_*_H macros
1612         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1613         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1614         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1615         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1616         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1617         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1618         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1619         * m4/btowc.m4: Update callers.
1620         * m4/dirfd.m4: Likewise.
1621         * m4/duplocale.m4: Likewise.
1622         * m4/fchdir.m4: Likewise.
1623         * m4/fdopendir.m4: Likewise.
1624         * m4/inet_ntop.m4: Likewise.
1625         * m4/inet_pton.m4: Likewise.
1626         * m4/ioctl.m4: Likewise.
1627         * m4/mbrlen.m4: Likewise.
1628         * m4/mbrtowc.m4: Likewise.
1629         * m4/mbsinit.m4: Likewise.
1630         * m4/mbsnrtowcs.m4: Likewise.
1631         * m4/mbsrtowcs.m4: Likewise.
1632         * m4/poll.m4: Likewise.
1633         * m4/setlocale.m4: Likewise.
1634         * m4/wcrtomb.m4: Likewise.
1635         * m4/wcsnrtombs.m4: Likewise.
1636         * m4/wcsrtombs.m4: Likewise.
1637         * m4/wctob.m4: Likewise.
1638         * m4/wcwidth.m4: Likewise.
1639         * modules/posix_spawn: Likewise.
1640         * modules/posix_spawn_file_actions_addclose: Likewise.
1641         * modules/posix_spawn_file_actions_adddup2: Likewise.
1642         * modules/posix_spawn_file_actions_addopen: Likewise.
1643         * modules/posix_spawn_file_actions_destroy: Likewise.
1644         * modules/posix_spawn_file_actions_init: Likewise.
1645         * modules/posix_spawnattr_destroy: Likewise.
1646         * modules/posix_spawnattr_getflags: Likewise.
1647         * modules/posix_spawnattr_getpgroup: Likewise.
1648         * modules/posix_spawnattr_getschedparam: Likewise.
1649         * modules/posix_spawnattr_getschedpolicy: Likewise.
1650         * modules/posix_spawnattr_getsigdefault: Likewise.
1651         * modules/posix_spawnattr_getsigmask: Likewise.
1652         * modules/posix_spawnattr_init: Likewise.
1653         * modules/posix_spawnattr_setflags: Likewise.
1654         * modules/posix_spawnattr_setpgroup: Likewise.
1655         * modules/posix_spawnattr_setschedparam: Likewise.
1656         * modules/posix_spawnattr_setschedpolicy: Likewise.
1657         * modules/posix_spawnattr_setsigdefault: Likewise.
1658         * modules/posix_spawnattr_setsigmask: Likewise.
1659         * modules/posix_spawnp: Likewise.
1660
1661 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1662
1663         Add option to do-release-commit-and-tag to specify branch.
1664         * build-aux/do-release-commit-and-tag: Add --branch.
1665
1666 2011-05-03  Bruno Haible  <bruno@clisp.org>
1667
1668         Avoid unnecessary compilation units, through conditional dependencies.
1669         * modules/accept (Depends-on): Add conditions to the dependencies.
1670         * modules/acosl (Depends-on): Likewise.
1671         * modules/argz (Depends-on): Likewise.
1672         * modules/asinl (Depends-on): Likewise.
1673         * modules/atanl (Depends-on): Likewise.
1674         * modules/atoll (Depends-on): Likewise.
1675         * modules/bind (Depends-on): Likewise.
1676         * modules/btowc (Depends-on): Likewise.
1677         * modules/canonicalize-lgpl (Depends-on): Likewise.
1678         * modules/ceil (Depends-on): Likewise.
1679         * modules/ceilf (Depends-on): Likewise.
1680         * modules/ceill (Depends-on): Likewise.
1681         * modules/chdir-long (Depends-on): Likewise.
1682         * modules/chown (Depends-on): Likewise.
1683         * modules/close (Depends-on): Likewise.
1684         * modules/connect (Depends-on): Likewise.
1685         * modules/cosl (Depends-on): Likewise.
1686         * modules/dirfd (Depends-on): Likewise.
1687         * modules/dprintf (Depends-on): Likewise.
1688         * modules/dprintf-posix (Depends-on): Likewise.
1689         * modules/error (Depends-on): Likewise.
1690         * modules/euidaccess (Depends-on): Likewise.
1691         * modules/expl (Depends-on): Likewise.
1692         * modules/faccessat (Depends-on): Likewise.
1693         * modules/fchdir (Depends-on): Likewise.
1694         * modules/fclose (Depends-on): Likewise.
1695         * modules/fcntl (Depends-on): Likewise.
1696         * modules/fdopendir (Depends-on): Likewise.
1697         * modules/fflush (Depends-on): Likewise.
1698         * modules/floor (Depends-on): Likewise.
1699         * modules/floorf (Depends-on): Likewise.
1700         * modules/floorl (Depends-on): Likewise.
1701         * modules/fnmatch (Depends-on): Likewise.
1702         * modules/fopen (Depends-on): Likewise.
1703         * modules/fprintf-posix (Depends-on): Likewise.
1704         * modules/frexp (Depends-on): Likewise.
1705         * modules/frexp-nolibm (Depends-on): Likewise.
1706         * modules/frexpl (Depends-on): Likewise.
1707         * modules/frexpl-nolibm (Depends-on): Likewise.
1708         * modules/fseek (Depends-on): Likewise.
1709         * modules/fsusage (Depends-on): Likewise.
1710         * modules/ftell (Depends-on): Likewise.
1711         * modules/ftello (Depends-on): Likewise.
1712         * modules/futimens (Depends-on): Likewise.
1713         * modules/getcwd (Depends-on): Likewise.
1714         * modules/getcwd-lgpl (Depends-on): Likewise.
1715         * modules/getdelim (Depends-on): Likewise.
1716         * modules/getdomainname (Depends-on): Likewise.
1717         * modules/getgroups (Depends-on): Likewise.
1718         * modules/gethostname (Depends-on): Likewise.
1719         * modules/getline (Depends-on): Likewise.
1720         * modules/getlogin_r (Depends-on): Likewise.
1721         * modules/getopt-posix (Depends-on): Likewise.
1722         * modules/getpeername (Depends-on): Likewise.
1723         * modules/getsockname (Depends-on): Likewise.
1724         * modules/getsockopt (Depends-on): Likewise.
1725         * modules/getsubopt (Depends-on): Likewise.
1726         * modules/getusershell (Depends-on): Likewise.
1727         * modules/glob (Depends-on): Likewise.
1728         * modules/grantpt (Depends-on): Likewise.
1729         * modules/iconv_open (Depends-on): Likewise.
1730         * modules/iconv_open-utf (Depends-on): Likewise.
1731         * modules/inet_ntop (Depends-on): Likewise.
1732         * modules/inet_pton (Depends-on): Likewise.
1733         * modules/ioctl (Depends-on): Likewise.
1734         * modules/isapipe (Depends-on): Likewise.
1735         * modules/isfinite (Depends-on): Likewise.
1736         * modules/isinf (Depends-on): Likewise.
1737         * modules/lchown (Depends-on): Likewise.
1738         * modules/ldexpl (Depends-on): Likewise.
1739         * modules/link (Depends-on): Likewise.
1740         * modules/linkat (Depends-on): Likewise.
1741         * modules/listen (Depends-on): Likewise.
1742         * modules/logl (Depends-on): Likewise.
1743         * modules/lstat (Depends-on): Likewise.
1744         * modules/mbrlen (Depends-on): Likewise.
1745         * modules/mbrtowc (Depends-on): Likewise.
1746         * modules/mbsinit (Depends-on): Likewise.
1747         * modules/mbsnrtowcs (Depends-on): Likewise.
1748         * modules/mbsrtowcs (Depends-on): Likewise.
1749         * modules/mbtowc (Depends-on): Likewise.
1750         * modules/memcmp (Depends-on): Likewise.
1751         * modules/mkdir (Depends-on): Likewise.
1752         * modules/mkdtemp (Depends-on): Likewise.
1753         * modules/mkfifo (Depends-on): Likewise.
1754         * modules/mkfifoat (Depends-on): Likewise.
1755         * modules/mknod (Depends-on): Likewise.
1756         * modules/mkostemp (Depends-on): Likewise.
1757         * modules/mkostemps (Depends-on): Likewise.
1758         * modules/mkstemp (Depends-on): Likewise.
1759         * modules/mkstemps (Depends-on): Likewise.
1760         * modules/mktime (Depends-on): Likewise.
1761         * modules/nanosleep (Depends-on): Likewise.
1762         * modules/open (Depends-on): Likewise.
1763         * modules/openat (Depends-on): Likewise.
1764         * modules/perror (Depends-on): Likewise.
1765         * modules/poll (Depends-on): Likewise.
1766         * modules/popen (Depends-on): Likewise.
1767         * modules/posix_spawn (Depends-on): Likewise.
1768         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1769         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1770         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1771         * modules/posix_spawnp (Depends-on): Likewise.
1772         * modules/pread (Depends-on): Likewise.
1773         * modules/printf-posix (Depends-on): Likewise.
1774         * modules/ptsname (Depends-on): Likewise.
1775         * modules/putenv (Depends-on): Likewise.
1776         * modules/pwrite (Depends-on): Likewise.
1777         * modules/readline (Depends-on): Likewise.
1778         * modules/readlink (Depends-on): Likewise.
1779         * modules/readlinkat (Depends-on): Likewise.
1780         * modules/recv (Depends-on): Likewise.
1781         * modules/recvfrom (Depends-on): Likewise.
1782         * modules/regex (Depends-on): Likewise.
1783         * modules/remove (Depends-on): Likewise.
1784         * modules/rename (Depends-on): Likewise.
1785         * modules/renameat (Depends-on): Likewise.
1786         * modules/rmdir (Depends-on): Likewise.
1787         * modules/round (Depends-on): Likewise.
1788         * modules/roundf (Depends-on): Likewise.
1789         * modules/roundl (Depends-on): Likewise.
1790         * modules/rpmatch (Depends-on): Likewise.
1791         * modules/select (Depends-on): Likewise.
1792         * modules/send (Depends-on): Likewise.
1793         * modules/sendto (Depends-on): Likewise.
1794         * modules/setenv (Depends-on): Likewise.
1795         * modules/setlocale (Depends-on): Likewise.
1796         * modules/setsockopt (Depends-on): Likewise.
1797         * modules/shutdown (Depends-on): Likewise.
1798         * modules/sigaction (Depends-on): Likewise.
1799         * modules/signbit (Depends-on): Likewise.
1800         * modules/sigprocmask (Depends-on): Likewise.
1801         * modules/sinl (Depends-on): Likewise.
1802         * modules/sleep (Depends-on): Likewise.
1803         * modules/snprintf (Depends-on): Likewise.
1804         * modules/snprintf-posix (Depends-on): Likewise.
1805         * modules/socket (Depends-on): Likewise.
1806         * modules/sprintf-posix (Depends-on): Likewise.
1807         * modules/sqrtl (Depends-on): Likewise.
1808         * modules/stat (Depends-on): Likewise.
1809         * modules/strchrnul (Depends-on): Likewise.
1810         * modules/strdup-posix (Depends-on): Likewise.
1811         * modules/strerror (Depends-on): Likewise.
1812         * modules/strerror_r-posix (Depends-on): Likewise.
1813         * modules/strndup (Depends-on): Likewise.
1814         * modules/strnlen (Depends-on): Likewise.
1815         * modules/strptime (Depends-on): Likewise.
1816         * modules/strsep (Depends-on): Likewise.
1817         * modules/strsignal (Depends-on): Likewise.
1818         * modules/strstr-simple (Depends-on): Likewise.
1819         * modules/strtod (Depends-on): Likewise.
1820         * modules/strtoimax (Depends-on): Likewise.
1821         * modules/strtok_r (Depends-on): Likewise.
1822         * modules/strtoumax (Depends-on): Likewise.
1823         * modules/symlink (Depends-on): Likewise.
1824         * modules/symlinkat (Depends-on): Likewise.
1825         * modules/tanl (Depends-on): Likewise.
1826         * modules/tcgetsid (Depends-on): Likewise.
1827         * modules/tmpfile (Depends-on): Likewise.
1828         * modules/trunc (Depends-on): Likewise.
1829         * modules/truncf (Depends-on): Likewise.
1830         * modules/truncl (Depends-on): Likewise.
1831         * modules/uname (Depends-on): Likewise.
1832         * modules/unlink (Depends-on): Likewise.
1833         * modules/unlockpt (Depends-on): Likewise.
1834         * modules/unsetenv (Depends-on): Likewise.
1835         * modules/usleep (Depends-on): Likewise.
1836         * modules/utimensat (Depends-on): Likewise.
1837         * modules/vasprintf (Depends-on): Likewise.
1838         * modules/vdprintf (Depends-on): Likewise.
1839         * modules/vdprintf-posix (Depends-on): Likewise.
1840         * modules/vfprintf-posix (Depends-on): Likewise.
1841         * modules/vprintf-posix (Depends-on): Likewise.
1842         * modules/vsnprintf (Depends-on): Likewise.
1843         * modules/vsnprintf-posix (Depends-on): Likewise.
1844         * modules/vsprintf-posix (Depends-on): Likewise.
1845         * modules/wcrtomb (Depends-on): Likewise.
1846         * modules/wcscasecmp (Depends-on): Likewise.
1847         * modules/wcscspn (Depends-on): Likewise.
1848         * modules/wcsdup (Depends-on): Likewise.
1849         * modules/wcsncasecmp (Depends-on): Likewise.
1850         * modules/wcsnrtombs (Depends-on): Likewise.
1851         * modules/wcspbrk (Depends-on): Likewise.
1852         * modules/wcsrtombs (Depends-on): Likewise.
1853         * modules/wcsspn (Depends-on): Likewise.
1854         * modules/wcsstr (Depends-on): Likewise.
1855         * modules/wcstok (Depends-on): Likewise.
1856         * modules/wcswidth (Depends-on): Likewise.
1857         * modules/wctob (Depends-on): Likewise.
1858         * modules/wctomb (Depends-on): Likewise.
1859         * modules/wctype (Depends-on): Likewise.
1860         * modules/wcwidth (Depends-on): Likewise.
1861         * modules/write (Depends-on): Likewise.
1862
1863 2011-05-03  Bruno Haible  <bruno@clisp.org>
1864
1865         Support for conditional dependencies.
1866         * doc/gnulib.texi (Module description): Document the syntax of
1867         conditional dependencies.
1868         * gnulib-tool: New option --conditional-dependencies.
1869         (func_usage): Document it.
1870         (cond_dependencies): New variable.
1871         (func_get_automake_snippet_conditional,
1872         func_get_automake_snippet_unconditional): New functions, extracted from
1873         func_get_automake_snippet.
1874         (func_get_automake_snippet): Use them.
1875         (sed_first_32_chars): New variable.
1876         (func_module_shellfunc_name): New function.
1877         (func_module_shellvar_name): New function.
1878         (func_module_conditional_name): New function.
1879         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1880         func_cond_module_condition): New functions.
1881         (func_modules_transitive_closure): Add support for conditional
1882         dependencies.
1883         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1884         conditional automake snippet in an automake conditional.
1885         (func_emit_autoconf_snippets): Emit shell functions that contain the
1886         code for conditional modules.
1887         (func_import, func_create_testdir): Update specification.
1888
1889 2011-05-03  Eric Blake  <eblake@redhat.com>
1890
1891         test-getaddrinfo: report error information
1892         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1893
1894 2011-05-03  Jim Meyering  <meyering@redhat.com>
1895
1896         bootstrap: avoid build failure when $GZIP is set
1897         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1898         program name.  If defined at all, it is supposed to list gzip options.
1899         Reported by Alan Curry in http://debbugs.gnu.org/8609
1900
1901 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1902
1903         readme-release: new module with release instructions
1904         * modules/readme-release: New module.
1905         * top/README-release: New file, from coreutils, grep, diffutils.
1906         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1907
1908 2011-05-02  Eric Blake  <eblake@redhat.com>
1909
1910         fflush: also replace fclose when fixing fflush
1911         * modules/fflush (Depends-on): Add fclose.
1912         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1913         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1914         memstreams with no backing fd.
1915         * doc/posix-functions/fclose.texi (fclose): Document the use of
1916         fflush module to fix the bug.
1917         * tests/test-fclose.c (main): Relax test when fclose is used in
1918         isolation.
1919
1920         fclose: add some tests
1921         * modules/fclose-tests: New test module.
1922         * tests/test-fclose.c: New file.
1923         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1924
1925         fclose: reduced dependencies
1926         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1927         simpler lseek.
1928         * lib/fclose.c (rpl_fclose): Likewise.
1929         Reported by Simon Josefsson.
1930
1931         exit: drop remaining clients
1932         * modules/argmatch (Depends-on): Replace exit with stdlib.
1933         * modules/copy-file (Depends-on): Likewise.
1934         * modules/execute (Depends-on): Likewise.
1935         * modules/exitfail (Depends-on): Likewise.
1936         * modules/obstack (Depends-on): Likewise.
1937         * modules/pagealign_alloc (Depends-on): Likewise.
1938         * modules/pipe-filter-gi (Depends-on): Likewise.
1939         * modules/pipe-filter-ii (Depends-on): Likewise.
1940         * modules/savewd (Depends-on): Likewise.
1941         * modules/spawn-pipe (Depends-on): Likewise.
1942         * modules/wait-process (Depends-on): Likewise.
1943         * modules/xsetenv (Depends-on): Likewise.
1944         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1945         * modules/git-merge-changelog (Depends-on): Likewise.
1946         * modules/long-options (Depends-on): Likewise.
1947         * modules/pt_chown (Depends-on): Likewise.
1948         * modules/sysexits (Depends-on): Likewise.
1949
1950         freading: relax license from LGPLv3+ to LGPLv2+
1951         * modules/freading (License): Relax LGPL version.
1952
1953 2011-05-02  Bruno Haible  <bruno@clisp.org>
1954
1955         fchdir: Remove unused dependencies.
1956         * modules/fchdir (Depends-on): Remove include_next.
1957
1958 2011-05-02  Bruno Haible  <bruno@clisp.org>
1959
1960         gnulib-tool: Refactor.
1961         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1962         from func_emit_autoconf_snippets.
1963         (func_emit_autoconf_snippets): Use it.
1964
1965 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1966
1967         * NEWS: Document removal of 'exit'.
1968         * modules/exit: Remove file.
1969
1970 2011-05-01  Bruno Haible  <bruno@clisp.org>
1971
1972         Update DEPENDENCIES.
1973         * DEPENDENCIES (gettext): Recommend the newest release.
1974         Reported by Simon Josefsson.
1975
1976 2011-05-01  Bruno Haible  <bruno@clisp.org>
1977
1978         gnulib-tool: Reduce code duplication.
1979         * gnulib-tool (func_emit_autoconf_snippets): New function.
1980         (func_import, func_create_testdir): Use it.
1981
1982 2011-04-30  Eric Blake  <eblake@redhat.com>
1983
1984         fclose: don't fail on non-seekable input stream
1985         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1986         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1987         since fflush is allowed to fail in that case.
1988
1989 2011-04-30  Bruno Haible  <bruno@clisp.org>
1990
1991         dup3: cleanup
1992         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1993
1994 2011-04-30  Bruno Haible  <bruno@clisp.org>
1995
1996         netdb: Make it work in C++ mode.
1997         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1998         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1999         module.
2000         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2001         gl_MODULE_INDICATOR_FOR_TESTS.
2002         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2003         * modules/netdb-c++-tests: New file.
2004         * tests/test-netdb-c++.cc: New file.
2005
2006 2011-04-30  Bruno Haible  <bruno@clisp.org>
2007
2008         New modules 'vfscanf', 'vscanf'.
2009         * modules/vfscanf: New file.
2010         * modules/vscanf: New file.
2011         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2012         here.
2013         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2014         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2015
2016 2011-04-30  Bruno Haible  <bruno@clisp.org>
2017
2018         passfd: Add comments.
2019         * lib/passfd.c: Add comments about platforms.
2020
2021 2011-04-30  Bruno Haible  <bruno@clisp.org>
2022
2023         sys_uio: Make <sys/uio.h> self-contained.
2024         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2025         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2026
2027 2011-04-30  Bruno Haible  <bruno@clisp.org>
2028
2029         sys_socket: Ensure 'struct iovec' definition.
2030         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2031         <sys/socket.h>.
2032         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2033
2034 2011-04-30  Bruno Haible  <bruno@clisp.org>
2035
2036         sys_uio: Protect definition of 'struct iovec'.
2037         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2038         it as a C struct.
2039
2040 2011-04-30  Bruno Haible  <bruno@clisp.org>
2041
2042         manywarnings: fix indentation
2043         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2044
2045 2011-04-30  Pádraig Brady <P@draigBrady.com>
2046
2047         manywarnings: add -Wno-missing-field-initializers if needed.
2048         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2049         option if it's needed to allow initialization with { 0, }
2050
2051 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2052
2053         announce-gen: cosmetic improvement
2054         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2055
2056 2011-04-29  Jim Meyering  <meyering@redhat.com>
2057
2058         vc-list-files: indent with spaces, not TABs
2059         * build-aux/vc-list-files: Convert leading TABs to spaces,
2060         to match the style of most other files in gnulib.
2061
2062         announce-gen: indent with spaces, not TABs
2063         * build-aux/announce-gen: Convert all TABs to spaces, to match
2064         the style of most other files in gnulib.
2065
2066 2011-04-29  Eric Blake  <eblake@redhat.com>
2067
2068         quotearg: avoid uninitialized variable use
2069         * lib/quotearg.c (quoting_options_from_style): Initialize
2070         remaining fields, and ensure that custom styles are only used via
2071         quoting_options rather than quoting_style.
2072
2073 2011-04-29  Jim Meyering  <meyering@redhat.com>
2074
2075         maint.mk: remove unused VC-tag variable
2076         * top/maint.mk (VC-tag): Remove unused variable.
2077
2078 2011-04-29  Bruno Haible  <bruno@clisp.org>
2079
2080         netdb: fix gai_strerror replacements
2081         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2082         * modules/netdb: Substitute it.
2083
2084 2011-04-29  Jim Meyering  <meyering@redhat.com>
2085
2086         test-getcwd.c: avoid new set-but-not-used warning
2087         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2088         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2089         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2090         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2091
2092         test-hash.c: avoid a new shadowing warning
2093         * tests/test-hash.c (main): Don't shadow "dup".
2094
2095 2011-04-28  Eric Blake  <eblake@redhat.com>
2096
2097         getaddrinfo: fix gai_strerror signature
2098         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2099         and work around mingw with UNICODE defined.
2100         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2101         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2102         * modules/netdb (Makefile.am): Substitute it.
2103         * lib/netdb.in.h (gai_strerror): Declare replacement.
2104         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2105         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2106         the fix.
2107
2108         getsockopt: avoid compiler warning
2109         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2110         Reported by Matthias Bolte.
2111
2112         tests: drop unused link dependency
2113         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2114         * modules/dirent-safer-tests (Makefile.am): Likewise.
2115         * modules/fdopendir-tests (Makefile.am): Likewise.
2116         * modules/mkfifoat-tests (Makefile.am): Likewise.
2117         * modules/openat-safer-tests (Makefile.am): Likewise.
2118         * modules/openat-tests (Makefile.am): Likewise.
2119         * modules/readlinkat-tests (Makefile.am): Likewise.
2120         * modules/symlinkat-tests (Makefile.am): Likewise.
2121         * modules/linkat-tests (Makefile.am): Likewise.
2122         (Depends-on): Switch to filenamecat-lgpl.
2123         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2124         LIBINTL.
2125         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2126         * tests/test-linkat.c (main): Don't require xalloc.
2127
2128         hash, mgetgroups: drop xalloc dependency
2129         * lib/hash.c (includes): Adjust includes.
2130         * lib/mgetgroups.c (includes): Likewise.
2131         (xgetgroups): Move...
2132         * lib/xgetgroups.c: ...to new file.
2133         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2134         * modules/xgetgroups: New file, split from...
2135         * modules/mgetgroups: ...here.
2136         (Depends-on): Add xalloc-oversized.
2137         * modules/hash (Depends-on): Likewise.
2138         * modules/hash-tests (Depends-on): Drop xalloc.
2139         (test_hash_LDADD): Drop unused library.
2140         * tests/test-hash.c (main): Break xalloc dependency.
2141         (includes): Drop unused include.
2142
2143         xalloc-oversized: new module
2144         * modules/xalloc-oversized: New module.
2145         * modules/xalloc (Depends-on): Add it.
2146         * lib/xalloc.h (xalloc_oversized): Move...
2147         * lib/xalloc-oversized.h: ...into new file.
2148
2149         utimecmp: drop dependency on xmalloc
2150         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2151         due to memory pressure.
2152         * modules/utimecmp (Depends-on): Drop xalloc.
2153
2154 2011-04-27  Eric Blake  <eblake@redhat.com>
2155
2156         getcwd: fix mingw bugs
2157         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2158         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2159         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2160
2161 2011-04-27  Bruno Haible  <bruno@clisp.org>
2162
2163         mkstemps: Ensure declaration on MacOS X 10.5.
2164         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2165         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2166         MacOS X.
2167
2168 2011-04-27  Bruno Haible  <bruno@clisp.org>
2169
2170         mkstemp: More documentation.
2171         * doc/posix-functions/mkstemp.texi: Document header file problem on
2172         MacOS X.
2173
2174 2011-04-27  Bruno Haible  <bruno@clisp.org>
2175
2176         mkstemp: Tweak configure message when cross-compiling.
2177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2178         result as a guess.
2179
2180 2011-04-27  Bruno Haible  <bruno@clisp.org>
2181
2182         clean-temp: Clarify what it does.
2183         * lib/clean-temp.h: Add more comments.
2184         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2185         module.
2186         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2187         * doc/glibc-functions/mkstemps.texi: Likewise.
2188         * doc/glibc-functions/mkostemps.texi: Likewise.
2189
2190 2011-04-27  Eric Blake  <eblake@redhat.com>
2191
2192         fchdir: avoid extra chdir and fix test
2193         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2194         getcwd-lgpl.
2195         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2196         have to be canonical.
2197         (canonicalize_file_name): Drop unused macro.
2198         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2199
2200         filenamecat-lgpl: fix licence
2201         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2202         when it was first created.
2203
2204         linkat, renameat: add missing dependency
2205         * modules/linkat (Depends-on): Require getcwd-lgpl.
2206         * modules/renameat (Depends-on): Likewise.
2207
2208         tests: reduce dependencies
2209         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2210         * tests/test-renameat.c (main): Likewise.
2211         * modules/linkat-tests (Depends-on): Relax dependency.
2212         * modules/renameat-tests (Depends-on): Likewise.
2213         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2214         dependency explicit.
2215
2216         save-cwd: reduce default dependency
2217         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2218         * lib/save-cwd.c: Update comments.
2219         * NEWS: Document the semantic change.
2220
2221         getcwd: enhance tests
2222         * tests/test-getcwd-lgpl.c: New file, taken from...
2223         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2224         repeat long path stress tests from m4 probe.
2225         * modules/getcwd-lgpl-tests: New module.
2226         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2227         * m4/getcwd-abort-bug.m4: Update comment.
2228         * m4/getcwd-path-max.m4: Likewise.
2229
2230         getcwd-lgpl: new module
2231         * modules/getcwd-lgpl: New module.
2232         * lib/getcwd-lgpl.c: New file.
2233         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2234         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2235         * modules/getcwd (configure.ac): Set C witness.
2236         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2237
2238         getcwd: tweak comments
2239         * m4/getcwd-abort-bug.m4: Fix comments.
2240         * m4/getcwd-path-max.m4: Likewise.
2241         * m4/getcwd.m4: Likewise.
2242
2243 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2244         and Eric Blake  <eblake@redhat.com>
2245
2246         mkstemp: replace if system version uses wrong permissions
2247         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2248         read/write mode bits set in file created by mkstemp.
2249         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2250
2251 2011-04-27  Eric Blake  <eblake@redhat.com>
2252
2253         passfd: avoid compiler warning
2254         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2255         Reported by Laine Stump.
2256
2257 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2258
2259         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2260         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2261
2262 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2263         and Eric Blake  <eblake@redhat.com>
2264
2265         mkstemp: mention clean-temp module
2266         * lib/mkstemp.c: Add comment.
2267         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2268
2269 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2270
2271         inttypes: also provide default values for 32-bit tests
2272         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2273         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2274
2275 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2276
2277         strtoumax: remove dependency on strtoimax
2278         This is like the strtoull change of yesterday.
2279         * modules/strtoumax (Files): Add lib/strtoimax.c.
2280         (Depends-on): Remove strtoimax and add verify.
2281
2282         inttypes-incomplete: new module
2283         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2284         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2285         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2286         of gl_INTTYPES_H.
2287         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2288         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2289         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2290         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2291         * modules/strtoumax, modules/xstrtol (Depends-on):
2292         Depend on inttypes-incomplete, not inttypes.
2293         * modules/inttypes-incomplete: New module, containing the contents
2294         of the old modules/inttypes module, except that the Files: section
2295         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2296         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2297         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2298         (Depends-on): Depend only on inttypes-incomplete.
2299         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2300
2301         inttypes: omit now-redundant strtoimax and strtoumax work
2302         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2303         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2304
2305         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2306         This supports apps that need pointers to strtoimax and strtoumax,
2307         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2308         nonexistent functions.  See
2309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2310         et seq.
2311         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2312         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2313         a macro.
2314         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2315
2316 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2317
2318         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2319
2320 2011-04-25  Bruno Haible  <bruno@clisp.org>
2321
2322         strtol, strtoul: Mark modules as obsolete.
2323         * modules/strtol (Status, Notice): New sections.
2324         * modules/strtoul (Status, Notice): New sections.
2325
2326 2011-04-25  Bruno Haible  <bruno@clisp.org>
2327
2328         strtod: Remove check for strtod, unless supporting old platforms.
2329         * modules/strtod-obsolete: New file.
2330         * m4/strtod-obsolete.m4: New file.
2331         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2332         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2333         * modules/strtod (Depends-on): Add strtod-obsolete.
2334         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2335
2336 2011-04-25  Bruno Haible  <bruno@clisp.org>
2337
2338         strcase: Make module obsolete.
2339         * modules/strcase (Status, Notice): New sections.
2340
2341 2011-04-25  Bruno Haible  <bruno@clisp.org>
2342
2343         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2344         * modules/dup2-obsolete: New file.
2345         * m4/dup2-obsolete.m4: New file.
2346         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2347         gl_FUNC_DUP2_OBSOLETE is not also defined.
2348         * modules/dup2 (Depends-on): Add dup2-obsolete.
2349         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2350
2351 2011-04-25  Bruno Haible  <bruno@clisp.org>
2352
2353         strnlen: Avoid memchr related link error on old obsolete platforms.
2354         * modules/memchr-obsolete: New file.
2355         * m4/memchr-obsolete.m4: New file.
2356         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2357         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2358         * modules/memchr (Depends-on): Add memchr-obsolete.
2359         * modules/strnlen (Depends-on): Likewise.
2360         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2361
2362 2011-04-25  Jim Meyering  <meyering@redhat.com>
2363
2364         maint.mk: makefile_at_at_check extend and clean up
2365         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2366         in addition to */Makefile.am.
2367         Exempt legitimate uses of @VAR@ notation, e.g.,
2368         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2369         Remove obsolete coreutils-specific comment.
2370         Prompted by discussion here:
2371         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2372
2373 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2374
2375         strtoul: remove dependency on strtol
2376         This is so that 'configure' need not check for strtol merely because
2377         the application needs strtoul.
2378         * modules/strtoul (Files): Add lib/strtol.c.
2379         (Depends-on): Remove strtol.
2380
2381         strtoull: remove dependency on strtoul
2382         This is like the strtoll change.
2383         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2384         (Depends-on): Remove strtoul.
2385
2386         strtoll: remove dependency on strtol
2387         This is so that 'configure' need not check for strtol merely because
2388         the application needs strtoll.
2389         * modules/strtoll (Files): Add lib/strtol.c.
2390         (Depends-on): Remove strtol.
2391
2392 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2393
2394         inttypes: Move some configure check to module 'imaxdiv'.
2395         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2396         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2397         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2398
2399 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2400
2401         inttypes: Move some configure check to module 'imaxabs'.
2402         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2403         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2404         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2405
2406 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2407
2408         inttypes: Remove configure tests that are not needed since 2009-12-31.
2409         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2410         gl_cv_header_working_inttypes_h.
2411
2412 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2413
2414         * modules/strnlen (Depends-on): Remove memchr.
2415         The strnlen implementation doesn't need the memchr module's fixes; see
2416         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2417
2418         strtol: remove dependency on wchar
2419         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2420         * modules/strtol (Depends-on): Remove wchar.
2421
2422 2011-04-21  Eric Blake  <eblake@redhat.com>
2423
2424         passfd: fix test regression on Linux
2425         * modules/passfd-tests (configure.ac): Correct socketpair check.
2426
2427         passfd: speed up configure and drop unused code
2428         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2429         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2430         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2431         Instead of probing at configure for unix_scm_rights_bsd44_way,
2432         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2433         check to a struct member probe.
2434         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2435         (sendfd, recvfd): Update preprocessor checks.
2436         * modules/passfd (Files): Reflect rename, and drop unused file.
2437         (Depends-on): Drop unused dependency.
2438
2439         passfd: allow compilation on mingw
2440         * modules/sys_socket (Depends-on): Add sys_uio.
2441         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2442         iovec and a minimal struct msghdr.
2443         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2444         * tests/test-sys_socket.c (main): Enhance test.
2445         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2446         guaranteed to provide what we need.
2447         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2448         * modules/passfd-tests (Depends-on): Add sys_wait.
2449         * tests/test-passfd.c (main): Skip test on mingw, for now.
2450         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2451         partial 'struct msghdr' implementation.
2452
2453         sys_uio: new module
2454         * modules/sys_uio: New module.
2455         * modules/sys_uio-tests: Likewise.
2456         * lib/sys_uio.in.h: New file.
2457         * m4/sys_uio_h.m4: Likewise.
2458         * tests/test-sys_uio.c: Likewise.
2459         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2460         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2461
2462 2011-04-20  Jim Meyering  <meyering@redhat.com>
2463
2464         useless-if-before-free: avoid false-positive
2465         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2466         disjunct so that it too requires a terminating ";".  Without that,
2467         this script would identify as useless one statement from gcc that
2468         was not:
2469           if (aligned_ptr)
2470             free (((void **) aligned_ptr) [-1]);
2471
2472 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2473
2474         doc: update users.txt.
2475         * users.txt: Add barcode.
2476
2477 2011-04-19  Bruno Haible  <bruno@clisp.org>
2478
2479         ioctl: Remove link dependency on native Windows.
2480         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2481         (gl_close_fn, gl_ioctl_fn): New types.
2482         (struct fd_hook): Renamed from struct close_hook. Change type of
2483         private_close_fn field. Add private_ioctl_fn field.
2484         (close_hook_fn): Add parameter for primary close method.
2485         (execute_close_hooks, execute_all_close_hooks): Likewise.
2486         (ioctl_hook_fn): New type.
2487         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2488         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2489         argument.
2490         (unregister_fd_hook): Renamed from unregister_close_hook.
2491         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2492         Don't include <unistd.h>.
2493         (close): Remove undef.
2494         (anchor): Update.
2495         (execute_close_hooks): Add argument for primary close method.
2496         (execute_all_close_hooks): Likewise.
2497         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2498         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2499         argument. Allow each argument to be NULL.
2500         (unregister_fd_hook): Renamed from unregister_close_hook.
2501         * lib/close.c (rpl_close): Pass 'close' function pointer to
2502         execute_all_close_hooks.
2503         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2504         (primary_ioctl): New function.
2505         (ioctl): Don't call ioctlsocket here. Instead, call
2506         execute_all_ioctl_hooks.
2507         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2508         close method.
2509         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2510         (fd_sockets_hook): Renamed from close_sockets_hook.
2511         (gl_sockets_startup, gl_sockets_cleanup): Update.
2512         * modules/fd-hook: Renamed from modules/close-hook. Update.
2513         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2514         * modules/sockets (Depends-on): Likewise.
2515         * modules/ioctl (Depends-on): Add fd-hook.
2516         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2517         GNULIB_SOCKET.
2518
2519 2011-04-19  Bruno Haible  <bruno@clisp.org>
2520
2521         Move the support of O_NONBLOCK in open() to the 'open' module.
2522         * modules/nonblocking (Depends-on): Remove 'open'.
2523         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2524         gl_cv_have_open_O_NONBLOCK.
2525         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2526         O_NONBLOCK support.
2527         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2528
2529 2011-04-17  Bruno Haible  <bruno@clisp.org>
2530
2531         pipe2: Simplify code.
2532         * lib/pipe2.c (pipe2): Reduce code duplication.
2533
2534 2011-04-17  Bruno Haible  <bruno@clisp.org>
2535
2536         nonblocking: Add comment.
2537         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2538
2539 2011-04-17  Bruno Haible  <bruno@clisp.org>
2540
2541         nonblocking: Add tests for sockets.
2542         * tests/test-nonblocking-socket.sh: New file.
2543         * tests/test-nonblocking-socket-main.c: New file.
2544         * tests/test-nonblocking-socket-child.c: New file.
2545         * tests/test-nonblocking-socket.h: New file.
2546         * tests/socket-server.h: New file.
2547         * tests/socket-client.h: New file.
2548         * modules/nonblocking-socket-tests: New file.
2549         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2550
2551 2011-04-17  Bruno Haible  <bruno@clisp.org>
2552
2553         nonblocking: Add tests for pipes.
2554         * tests/test-nonblocking-pipe.sh: New file.
2555         * tests/test-nonblocking-pipe-main.c: New file.
2556         * tests/test-nonblocking-pipe-child.c: New file.
2557         * tests/test-nonblocking-pipe.h: New file.
2558         * tests/test-nonblocking-writer.h: New file.
2559         * tests/test-nonblocking-reader.h: New file.
2560         * tests/test-nonblocking-misc.h: New file.
2561         * modules/nonblocking-pipe-tests: New file.
2562         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2563
2564 2011-04-16  Bruno Haible  <bruno@clisp.org>
2565
2566         gettext: Clarify the needed programmer actions.
2567         * modules/gettext (Notice): New field.
2568         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2569
2570 2011-04-16  Bruno Haible  <bruno@clisp.org>
2571
2572         strchrnul: Tweak last commit.
2573         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2574         bug.
2575         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2576         as in _GL_FUNCDECL_SYS.
2577         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2578         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2579
2580 2011-04-15  Eric Blake  <eblake@redhat.com>
2581
2582         strchrnul: work around cygwin bug
2583         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2584         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2586         * modules/string (Makefile.am): Substitute it.
2587         * lib/string.in.h (strchrnul): Use it.
2588
2589 2011-04-15  Bruno Haible  <bruno@clisp.org>
2590
2591         Don't require lib/stdio-write.c when only module 'stdio' is used.
2592         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2593         invocation.
2594         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2595
2596 2011-04-14  Bruno Haible  <bruno@clisp.org>
2597
2598         Support non-blocking pipe I/O in read() on native Windows.
2599         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2600         (read): New declaration.
2601         * lib/read.c: New file.
2602         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2603         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2604         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2605         vscanf): New declarations.
2606         * lib/stdio-read.c: New file.
2607         * m4/read.m4: New file.
2608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2609         REPLACE_READ.
2610         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2611         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2612         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2613         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2614         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2615         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2616         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2617         * modules/read: New file.
2618         * modules/nonblocking (Files): Add lib/stdio-read.c.
2619         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2620         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
2621         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2622         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2623         * modules/pread (Depends-on): Add read.
2624         * modules/safe-read (Depends-on): Likewise.
2625         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2626         gets, scanf, vfscanf, vscanf): Verify signatures.
2627         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2628         problem with non-blocking pipes.
2629         * doc/posix-functions/fgetc.texi: Likewise.
2630         * doc/posix-functions/fgets.texi: Likewise.
2631         * doc/posix-functions/fread.texi: Likewise.
2632         * doc/posix-functions/fscanf.texi: Likewise.
2633         * doc/posix-functions/getc.texi: Likewise.
2634         * doc/posix-functions/getchar.texi: Likewise.
2635         * doc/posix-functions/gets.texi: Likewise.
2636         * doc/posix-functions/scanf.texi: Likewise.
2637         * doc/posix-functions/vfscanf.texi: Likewise.
2638         * doc/posix-functions/vscanf.texi: Likewise.
2639
2640 2011-04-14  Bruno Haible  <bruno@clisp.org>
2641
2642         Support non-blocking pipe I/O in write() on native Windows.
2643         * lib/write.c (rpl_write): Split a write request that failed merely
2644         because the byte count was larger than the pipe buffer's size.
2645         * doc/posix-functions/write.texi: Mention the problem with large byte
2646         counts.
2647
2648 2011-04-14  Bruno Haible  <bruno@clisp.org>
2649
2650         wchar: Ensure that wchar_t gets defined on uClibc.
2651         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2652         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2653
2654 2011-04-13  Bruno Haible  <bruno@clisp.org>
2655
2656         safe-write, full-read: Avoid unnecessary compilation units.
2657         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2658         (Depends-on): Remove safe-read. Add ssize_t.
2659         * modules/full-read (Files): Add lib/full-write.c.
2660         (Depends-on): Add full-write.
2661
2662 2011-04-13  Bruno Haible  <bruno@clisp.org>
2663
2664         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2665         * modules/pwrite (Depends-on): Add 'write'.
2666
2667 2011-04-13  Bruno Haible  <bruno@clisp.org>
2668
2669         Support non-blocking pipe I/O in write() on native Windows.
2670         * lib/unistd.in.h (write): Enable replacement also if
2671         GNULIB_UNISTD_H_NONBLOCKING is 1.
2672         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2673         (rpl_write): When failing to write on a non-blocking pipe, change
2674         errno from ENOSPC to EAGAIN.
2675         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2676         putchar, puts, vfprintf, vprintf): Enable replacement also if
2677         GNULIB_STDIO_H_NONBLOCKING is 1.
2678         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2679         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2680         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2681         CALL_WITH_SIGPIPE_EMULATION.
2682         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2683         * m4/nonblocking.m4: New file.
2684         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2685         for non-blocking I/O support.
2686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2687         GNULIB_UNISTD_H_NONBLOCKING.
2688         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2689         required for non-blocking I/O support.
2690         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2691         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2692         lib/stdio-write.c, m4/asm-underscore.m4.
2693         (Depends-on): Add stdio, unistd.
2694         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2695         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2696         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2697         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2698         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2699         problem with non-blocking pipes.
2700         * doc/posix-functions/fputc.texi: Likewise.
2701         * doc/posix-functions/fputs.texi: Likewise.
2702         * doc/posix-functions/fwrite.texi: Likewise.
2703         * doc/posix-functions/printf.texi: Likewise.
2704         * doc/posix-functions/putc.texi: Likewise.
2705         * doc/posix-functions/putchar.texi: Likewise.
2706         * doc/posix-functions/puts.texi: Likewise.
2707         * doc/posix-functions/vfprintf.texi: Likewise.
2708         * doc/posix-functions/vprintf.texi: Likewise.
2709         * doc/posix-functions/write.texi: Likewise.
2710
2711 2011-04-10  Jim Meyering  <meyering@redhat.com>
2712
2713         maint.mk: prohibit doubled words
2714         Detect them also when they're separated by a newline.
2715         There are 3 ways to customize it:
2716           - disable the test on a per file basis, as usual with rules using
2717             $(VC_LIST_EXCEPT)
2718           - replace the default doubled-word-selecting regexp (affects all files)
2719           - ignore a particular file-vs-doubled-word match
2720         I nearly used that last one to ignore the "is is" match in
2721         coreutils' NEWS file, since the text was "ls -is is ..."
2722         To do that, I would have added this line to cfg.mk:
2723           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2724         but it would have ignored any "is is" match in NEWS.
2725         Low probability, but still...
2726         Instead, I changed the text, slightly:
2727           -  ls -is is now consistent with ls -lis in ignoring values returned
2728           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2729         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2730         (prohibit_doubled_word_): Define.
2731         (sc_prohibit_doubled_word): New rule.
2732         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2733
2734 2011-04-10  Jim Meyering  <meyering@redhat.com>
2735
2736         maint: fix doubled-word typo in comment
2737         * m4/gethostname.m4: s/is is/it is/
2738         * m4/getdomainname.m4: Likewise.
2739
2740 2011-04-10  Jim Meyering  <meyering@redhat.com>
2741
2742         maint: remove doubled word: s/it it/it/
2743         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2744
2745 2011-04-10  Jim Meyering  <meyering@redhat.com>
2746
2747         maint.mk: remove useless semicolon and backslash
2748         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2749         semicolon and backslash.
2750
2751 2011-04-10  Bruno Haible  <bruno@clisp.org>
2752
2753         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2754         * modules/stdint-tests (Depends-on): Add wchar.
2755
2756 2011-04-10  Jim Meyering  <meyering@redhat.com>
2757
2758         maint: remove doubled words in comments, e.g., s/a a/a/
2759         * lib/strptime.c (day_of_the_week): s/the the/the/
2760         * tests/test-chown.h (test_chown): s/a a/a/
2761
2762         test-chown.h: correct a cast
2763         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2764         when the destination is a stat.st_gid.
2765
2766 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2767
2768         getaddrinfo: Fix test for sa_len member.
2769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2770         include <sys/types.h> before <sys/socket.h>.
2771
2772 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2773
2774         maint: change "can not" to "cannot"
2775         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2776         boundaries.
2777
2778 2011-04-09  Jim Meyering  <meyering@redhat.com>
2779
2780         maint: change "a a" to "a"
2781         * tests/test-lchown.h (test_lchown): s/a a/a/
2782
2783         maint.mk: prohibit \<the the\>
2784         * top/maint.mk (sc_prohibit_the_the): New rule.
2785
2786         maint: fix "the the" in comment
2787         * lib/count-one-bits.h: s/the the/the/
2788
2789         maint: change "can not" to "cannot"
2790         But do not change the occurrences in maintain.texi or in
2791         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2792         * doc/gnulib-tool.texi: s/can not/cannot/
2793         * doc/posix-functions/accept.texi (accept): Likewise.
2794         * doc/posix-functions/socket.texi (socket): Likewise.
2795         * lib/mbrtowc.c: Likewise.
2796
2797         maint.mk: prohibit use of "can not"
2798         * top/maint.mk (sc_prohibit_can_not): New rule.
2799         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2800
2801 2011-04-09  Bruno Haible  <bruno@clisp.org>
2802
2803         careadlinkat: Guard against misuse of careadlinkatcwd.
2804         * lib/careadlinkat.c: Include <stdlib.h>.
2805         (careadlinkatcwd): Check that the fd argument is as expected.
2806
2807 2011-04-09  Bruno Haible  <bruno@clisp.org>
2808
2809         careadlinkat: Use common coding style.
2810         * lib/careadlinkat.c: Move gnulib includes after system includes.
2811
2812 2011-04-09  Bruno Haible  <bruno@clisp.org>
2813
2814         careadlinkat: Clarify specification.
2815         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2816         (careadlinkatcwd): Add comment.
2817         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2818
2819 2011-04-09  Bruno Haible  <bruno@clisp.org>
2820
2821         areadlinkat: Avoid link error on many platforms.
2822         * modules/areadlinkat (Depends-on): Add areadlink.
2823
2824 2011-04-09  Bruno Haible  <bruno@clisp.org>
2825
2826         allocator, careadlinkat: Fix double-inclusion guard.
2827         * lib/allocator.h: Fix double-inclusion guard.
2828         * lib/careadlinkat.h: Likewise.
2829
2830 2011-04-09  Bruno Haible  <bruno@clisp.org>
2831
2832         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2833         * lib/relocwrapper.c: Update dependencies hierarchy.
2834         * build-aux/install-reloc: Update list of files to be compiled.
2835         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2836         lib/allocator.[hc].
2837
2838 2011-04-08  Eric Blake  <eblake@redhat.com>
2839
2840         strftime: silence gnulib-tool warning
2841         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2842
2843 2011-04-08  Bruno Haible  <bruno@clisp.org>
2844
2845         verify: Fix syntax error with GCC 4.6 in C++ mode.
2846         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2847         (HAVE_STATIC_ASSERT): New macro.
2848         (verify_true, verify): Use 'static_assert' if it is supported and
2849         '_Static_assert' is not supported.
2850
2851 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2852
2853         allocator: New module.
2854         * modules/allocator, lib/allocator.c: New files.
2855         * lib/allocator.h (stdlib_allocator): New decl.
2856         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2857         Remove.  Do not include <stdlib.h>.
2858         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2859         * modules/careadlinkat (Files): Remove lib/allocator.h.
2860         (Depends-on): Add allocator.
2861
2862         stdlib: let modules use system malloc, realloc
2863         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2864         if !_GL_USE_STDLIB_ALLOC.
2865         (malloc, realloc): Limit this change to a smaller scope.
2866
2867         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2868         (malloc, realloc): Don't #undef; no longer needed.
2869         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2870         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2871         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2872         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2873         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2874         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2875         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2876         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2877
2878         careadlinkat: rename members to avoid problem
2879         * lib/allocator.h (struct allocator): Rename members from
2880         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2881         and realloc are #define'd.  Reported by Eric Blake in
2882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2883         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2884
2885 2011-04-08  Eric Blake  <eblake@redhat.com>
2886
2887         nonblocking: reduce dependency
2888         * tests/test-nonblocking.c: Only test sockets when in use.
2889         * modules/nonblocking-tests (Depends-on): Drop socket.
2890         (Makefile.am): Link even if sockets are not present.
2891         * modules/pipe2-tests (Makefile.am): Likewise.
2892         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2893
2894         pipe2: fix O_NONBLOCK support on mingw
2895         * modules/pipe2 (Depends-on): Add nonblocking.
2896         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2897         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2898         * tests/test-nonblocking.c (main): Likewise.
2899         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2900
2901         fcntl-h: fix O_ACCMODE on cygwin
2902         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2903         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2904
2905         pipe-filter: drop O_NONBLOCK workarounds
2906         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2907         * modules/pipe-filter-ii (Depends-on): Likewise.
2908         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2909
2910         nonblocking: provide O_NONBLOCK for mingw
2911         * modules/nonblocking (Depends-on): Add open.
2912         (configure.ac): Set new witness macro.
2913         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2914         * modules/fcntl-h (Makefile.am): Substitute it.
2915         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2916         nonblocking module is in use.
2917         * lib/nonblocking.c: Adjust portability test.
2918         * lib/open.c (open): Don't let native open see gnulib flag.
2919         * tests/test-fcntl-h.c (main): Enhance test.
2920         * tests/test-open.h (test_open): Likewise.
2921         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2922
2923         careadlinkat: fix compilation error on mingw
2924         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2925         within struct allocator.
2926
2927 2011-04-06  Eric Blake  <eblake@redhat.com>
2928
2929         binary-io: relicense under LGPLv2+
2930         * modules/binary-io (License): Relax to LGPLv2+.
2931         Requested for libvirt, and required by pipe2.
2932
2933 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2934
2935         verify: use _Static_assert if available
2936         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2937         (verify_true, verify): Use it if available.  This generates better
2938         diagnostics with GCC 4.6.0 and later.
2939
2940 2011-04-05  Bruno Haible  <bruno@clisp.org>
2941
2942         Remove leftover generated .h files after config.status changed.
2943
2944         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2945         GL_GENERATE_ALLOCA_H.
2946         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2947         GL_GENERATE_ALLOCA_H evaluates to false.
2948
2949         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2950         GL_GENERATE_ARGZ_H.
2951         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2952         evaluates to false.
2953
2954         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2955         GL_GENERATE_BYTESWAP_H.
2956         * modules/byteswap (Makefile.am): Remove byteswap.h if
2957         GL_GENERATE_BYTESWAP_H evaluates to false.
2958
2959         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2960         GL_GENERATE_ERRNO_H.
2961         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2962         evaluates to false.
2963
2964         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2965         GL_GENERATE_FLOAT_H.
2966         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2967         evaluates to false.
2968
2969         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2970         GL_GENERATE_FNMATCH_H.
2971         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2972         GL_GENERATE_FNMATCH_H evaluates to false.
2973
2974         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2975         GL_GENERATE_GLOB_H.
2976         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2977         evaluates to false.
2978
2979         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2980         automake conditional GL_GENERATE_ICONV_H.
2981         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2982         evaluates to false.
2983
2984         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2985         GL_GENERATE_NETINET_IN_H.
2986         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2987         GL_GENERATE_NETINET_IN_H evaluates to false.
2988
2989         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2990         conditional GL_GENERATE_PTHREAD_H.
2991         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2992         * modules/pthread (Makefile.am): Remove pthread.h if
2993         GL_GENERATE_PTHREAD_H evaluates to false.
2994
2995         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2996         GL_GENERATE_SCHED_H.
2997         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2998         evaluates to false.
2999
3000         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3001         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3002         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3003         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3004
3005         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3006         GL_GENERATE_STDARG_H.
3007         * modules/stdarg (Makefile.am): Remove stdarg.h if
3008         GL_GENERATE_STDARG_H evaluates to false.
3009
3010         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3011         GL_GENERATE_STDBOOL_H.
3012         * modules/stdbool (Makefile.am): Remove stdbool.h if
3013         GL_GENERATE_STDBOOL_H evaluates to false.
3014
3015         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3016         conditional GL_GENERATE_STDDEF_H.
3017         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3018         * modules/stddef (Makefile.am): Remove stddef.h if
3019         GL_GENERATE_STDDEF_H evaluates to false.
3020
3021         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3022         GL_GENERATE_STDINT_H.
3023         * modules/stdint (Makefile.am): Remove stdint.h if
3024         GL_GENERATE_STDINT_H evaluates to false.
3025
3026         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3027         GL_GENERATE_SYSEXITS_H.
3028         * modules/sysexits (Makefile.am): Remove sysexits.h if
3029         GL_GENERATE_SYSEXITS_H evaluates to false.
3030
3031         Reported by Karl Berry and Ralf Wildenhues.
3032
3033 2011-04-05  Bruno Haible  <bruno@clisp.org>
3034
3035         Ensure to rebuild generated .h files when config.status has changed.
3036         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3037         config.status.
3038         * modules/ctype (Makefile.am): Likewise.
3039         * modules/dirent (Makefile.am): Likewise.
3040         * modules/errno (Makefile.am): Likewise.
3041         * modules/fcntl-h (Makefile.am): Likewise.
3042         * modules/float (Makefile.am): Likewise.
3043         * modules/getopt-posix (Makefile.am): Likewise.
3044         * modules/glob (Makefile.am): Likewise.
3045         * modules/iconv-h (Makefile.am): Likewise.
3046         * modules/inttypes (Makefile.am): Likewise.
3047         * modules/langinfo (Makefile.am): Likewise.
3048         * modules/locale (Makefile.am): Likewise.
3049         * modules/math (Makefile.am): Likewise.
3050         * modules/netdb (Makefile.am): Likewise.
3051         * modules/netinet_in (Makefile.am): Likewise.
3052         * modules/poll-h (Makefile.am): Likewise.
3053         * modules/pthread (Makefile.am): Likewise.
3054         * modules/pty (Makefile.am): Likewise.
3055         * modules/sched (Makefile.am): Likewise.
3056         * modules/search (Makefile.am): Likewise.
3057         * modules/selinux-h (Makefile.am): Likewise.
3058         * modules/signal (Makefile.am): Likewise.
3059         * modules/spawn (Makefile.am): Likewise.
3060         * modules/stdarg (Makefile.am): Likewise.
3061         * modules/stdbool (Makefile.am): Likewise.
3062         * modules/stddef (Makefile.am): Likewise.
3063         * modules/stdint (Makefile.am): Likewise.
3064         * modules/stdio (Makefile.am): Likewise.
3065         * modules/stdlib (Makefile.am): Likewise.
3066         * modules/string (Makefile.am): Likewise.
3067         * modules/strings (Makefile.am): Likewise.
3068         * modules/sys_file (Makefile.am): Likewise.
3069         * modules/sys_ioctl (Makefile.am): Likewise.
3070         * modules/sys_select (Makefile.am): Likewise.
3071         * modules/sys_socket (Makefile.am): Likewise.
3072         * modules/sys_stat (Makefile.am): Likewise.
3073         * modules/sys_time (Makefile.am): Likewise.
3074         * modules/sys_times (Makefile.am): Likewise.
3075         * modules/sys_utsname (Makefile.am): Likewise.
3076         * modules/sys_wait (Makefile.am): Likewise.
3077         * modules/sysexits (Makefile.am): Likewise.
3078         * modules/termios (Makefile.am): Likewise.
3079         * modules/time (Makefile.am): Likewise.
3080         * modules/unistd (Makefile.am): Likewise.
3081         * modules/wchar (Makefile.am): Likewise.
3082         * modules/wctype-h (Makefile.am): Likewise.
3083         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3084
3085 2011-04-05  Bruno Haible  <bruno@clisp.org>
3086
3087         pipe2: Relicense under LGPLv2+.
3088         * modules/pipe2 (License): Change to LGPLv2+.
3089         Requested by Eric Blake, for libvirt.
3090
3091 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3092
3093         bootstrap: compute gnulib_extra_files after updating build_aux
3094         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3095         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3096
3097 2011-04-05  Eric Blake  <eblake@redhat.com>
3098
3099         bootstrap: preserve git whitelist item sorting
3100         * build-aux/bootstrap (sort_patterns): New function.
3101         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3102
3103 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3104
3105         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3106         sc_space_tab check.
3107
3108 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3109
3110         areadlink, areadlinkat: rewrite in terms of careadlinkat
3111         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3112         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3113         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3114         (malloc, realloc): Remove #undefs.
3115         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3116         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3117         readlink, ssize_t, stdint, unistd.
3118         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3119         areadlink, stdint.
3120
3121         careadlinkat: new module
3122         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3123         * modules/careadlinkat: New files, written by me with
3124         a review and feedback from Ben Pfaff in
3125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3126
3127 2011-04-01  Bruno Haible  <bruno@clisp.org>
3128
3129         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3130         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3131         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3132         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3133         Reported by Bruce Korb <bruce.korb@gmail.com>.
3134
3135 2011-04-01  Bruno Haible  <bruno@clisp.org>
3136
3137         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3138         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3139         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3140         * modules/wcpcpy (Depends-on): Add extensions.
3141         * modules/wcpncpy (Depends-on): Likewise.
3142         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3143         systems.
3144         * doc/posix-functions/wcpncpy.texi: Likewise.
3145         * doc/posix-functions/wcwidth.texi: Likewise.
3146
3147 2011-03-31  Eric Blake  <eblake@redhat.com>
3148
3149         nonblocking: fix mingw test failures
3150         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3151         non-blocking flag on regular file.
3152         (get_nonblocking_flag): Set errno on invalid fd.
3153         * tests/test-nonblocking.c (main): Avoid test failure on
3154         directories if fchdir is not active.
3155         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3156
3157 2011-03-31  Bruno Haible  <bruno@clisp.org>
3158
3159         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3160         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3161         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3162         Reported by Simon Josefsson <simon@josefsson.org>.
3163
3164 2011-03-31  Bruno Haible  <bruno@clisp.org>
3165         and Eric Blake  <eblake@redhat.com>
3166
3167         nonblocking: new module
3168         * modules/nonblocking: New module.
3169         * modules/nonblocking-tests: Likewise.
3170         * lib/nonblocking.h: New file.
3171         * lib/nonblocking.c: Likewise.
3172         * tests/test-nonblocking.c: New test.
3173         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3174
3175 2011-03-30  Bruno Haible  <bruno@clisp.org>
3176
3177         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3178         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3179         instead of 'printf' format for GCC >= 4.4.
3180         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3181         (fprintf, printf, vfprintf, vprintf): Declare with
3182         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3183         the system's vfprintf() function.
3184         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3185
3186 2011-03-30  Eric Blake  <eblake@redhat.com>
3187
3188         passfd: fix scoping bug
3189         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3190         before sendmsg/recvmsg.
3191
3192         passfd: standardize coding conventions
3193         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3194         can be learned at compile time.
3195         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3196         ifdefs.
3197         (sendfd, recvfd): Follow gnulib code conventions.
3198
3199         passfd: fix incorrect sendmsg arguments
3200         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3201         incorrect msg_controllen value.
3202         * modules/passfd-tests (Depends-on): Check for alarm.
3203         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3204         Reported by Bastien ROUCARIES.
3205
3206 2011-03-30  Bruno Haible  <bruno@clisp.org>
3207
3208         c-strcasestr: Relicense under LGPLv2+.
3209         * modules/c-strcasestr (License): Change to LGPLv2+.
3210         Requested by Eric Blake, for libvirt.
3211
3212 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3213
3214         * users.txt: Add libidn2.  Fix libtasn1 link.
3215
3216 2011-03-30  Jim Meyering  <meyering@redhat.com>
3217
3218         tests: readlink* ("",... fails with EINVAL on newer kernels
3219         readlink and readlinkat have typically failed with ENOENT for
3220         the invalid, empty file name,  "".  However, with the advent
3221         of linux-2.6.39, they fail with EINVAL.
3222         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3223         when operating on the empty file name.
3224         * tests/test-readlink.h (test_readlink): Likewise.
3225
3226 2011-03-29  Bruno Haible  <bruno@clisp.org>
3227
3228         Relicense some modules under LGPLv2+, for libidn2.
3229         * modules/array-mergesort (License): Change to LGPLv2+.
3230         * modules/c-strcaseeq (License): Likewise.
3231         * modules/striconveh (License): Likewise.
3232         * modules/striconveha (License): Likewise.
3233         * modules/uniconv/base (License): Likewise.
3234         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3235         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3236         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3237         * modules/unictype/base (License): Likewise.
3238         * modules/unictype/bidiclass-of (License): Likewise.
3239         * modules/unictype/category-M (License): Likewise.
3240         * modules/unictype/category-none (License): Likewise.
3241         * modules/unictype/category-of (License): Likewise.
3242         * modules/unictype/category-test (License): Likewise.
3243         * modules/unictype/category-test-withtable (License): Likewise.
3244         * modules/unictype/combining-class (License): Likewise.
3245         * modules/unictype/joiningtype-of (License): Likewise.
3246         * modules/unictype/scripts (License): Likewise.
3247         * modules/uninorm/base (License): Likewise.
3248         * modules/uninorm/canonical-decomposition (License): Likewise.
3249         * modules/uninorm/composition (License): Likewise.
3250         * modules/uninorm/decompose-internal (License): Likewise.
3251         * modules/uninorm/decomposition-table (License): Likewise.
3252         * modules/uninorm/nfc (License): Likewise.
3253         * modules/uninorm/nfd (License): Likewise.
3254         * modules/uninorm/u32-normalize (License): Likewise.
3255         * modules/unistr/base (License): Likewise.
3256         * modules/unistr/u32-cpy (License): Likewise.
3257         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3258         * modules/unistr/u32-to-u8 (License): Likewise.
3259         * modules/unistr/u32-uctomb (License): Likewise.
3260         * modules/unistr/u8-check (License): Likewise.
3261         * modules/unistr/u8-mblen (License): Likewise.
3262         * modules/unistr/u8-mbtouc (License): Likewise.
3263         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3264         * modules/unistr/u8-mbtoucr (License): Likewise.
3265         * modules/unistr/u8-prev (License): Likewise.
3266         * modules/unistr/u8-strlen (License): Likewise.
3267         * modules/unistr/u8-to-u32 (License): Likewise.
3268         * modules/unistr/u8-uctomb (License): Likewise.
3269         * modules/unitypes (License): Likewise.
3270         Requested by Simon Josefsson.
3271
3272 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3273
3274         lib-symbol-visibility: Add a notice.
3275         * modules/lib-symbol-visibility (Notice): New field.
3276
3277 2011-03-29  Bruno Haible  <bruno@clisp.org>
3278
3279         getaddrinfo: Doc fix.
3280         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3281         section "fixed in Gnulib".
3282
3283 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3284
3285         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3286         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3287
3288 2011-03-26  Bruno Haible  <bruno@clisp.org>
3289
3290         unictype/property-byname: Reduce the number of load-time relocations.
3291         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3292         (UC_PROPERTY_INDEX_*): New enumeration values.
3293         (uc_property_byname): Convert an index from the lookup table to an
3294         uc_property_t.
3295         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3296         values.
3297
3298 2011-03-26  Bruno Haible  <bruno@clisp.org>
3299
3300         unictype/property-byname: Allow omitted word separators and aliases.
3301         * lib/unictype/pr_byname.gperf: Add property names without word
3302         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3303         for 'space'.
3304
3305 2011-03-26  Bruno Haible  <bruno@clisp.org>
3306
3307         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3308         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3309         also hyphens to space.
3310         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3311         without spaces.
3312         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3313
3314 2011-03-26  Bruno Haible  <bruno@clisp.org>
3315
3316         unictype/joiningtype-byname: Recognize long names as well.
3317         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3318         a long name.
3319         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3320         unictype/joiningtype_byname.h.
3321         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3322         * lib/unictype/joiningtype_byname.gperf: New file.
3323         * modules/unictype/joiningtype-byname (Files): Add
3324         lib/unictype/joiningtype_byname.gperf.
3325         (Depends-on): Add gperf.
3326         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3327         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3328         long names.
3329
3330         Tests for module 'unictype/joiningtype-longname'.
3331         * modules/unictype/joiningtype-longname-tests: New file.
3332         * tests/unictype/test-joiningtype_longname.c: New file.
3333
3334         New module 'unictype/joiningtype-longname'.
3335         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3336         * lib/unictype/joiningtype_longname.c: New file.
3337         * modules/unictype/joiningtype-longname: New file.
3338         * modules/unictype/joiningtype-all (Depends-on): Add
3339         unictype/joiningtype-longname.
3340
3341 2011-03-26  Bruno Haible  <bruno@clisp.org>
3342
3343         unictype/bidiclass-byname: Recognize long names as well.
3344         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3345         name.
3346         * lib/unictype/bidi_byname.c: Include <string.h>,
3347         unictype/bidi_byname.h.
3348         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3349         * lib/unictype/bidi_byname.gperf: New file.
3350         * modules/unictype/bidiclass-byname (Files): Add
3351         lib/unictype/bidi_byname.gperf.
3352         (Depends-on): Add gperf.
3353         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3354         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3355         long names.
3356
3357         Tests for module 'unictype/bidiclass-longname'.
3358         * modules/unictype/bidiclass-longname-tests: New file.
3359         * tests/unictype/test-bidi_longname.c: New file.
3360
3361         New module 'unictype/bidiclass-longname'.
3362         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3363         * lib/unictype/bidi_longname.c: New file.
3364         * modules/unictype/bidiclass-longname: New file.
3365         * modules/unictype/bidiclass-all (Depends-on): Add
3366         unictype/bidiclass-longname.
3367
3368 2011-03-26  Bruno Haible  <bruno@clisp.org>
3369
3370         unictype/bidi*: Rename modules.
3371         * modules/unictype/bidiclass-all: Renamed from
3372         modules/unictype/bidicategory-all.
3373         * modules/unictype/bidiclass-name: Renamed from
3374         modules/unictype/bidiclass-name.
3375         (Description): Update.
3376         * modules/unictype/bidiclass-name-tests: Renamed from
3377         modules/unictype/bidicategory-name-tests.
3378         * modules/unictype/bidiclass-byname: Renamed from
3379         modules/unictype/bidicategory-byname.
3380         (Description): Update.
3381         * modules/unictype/bidiclass-byname-tests: Renamed from
3382         modules/unictype/bidicategory-byname-tests.
3383         * modules/unictype/bidiclass-of: Renamed from
3384         modules/unictype/bidicategory-of.
3385         (Description): Update.
3386         * modules/unictype/bidiclass-of-tests: Renamed from
3387         modules/unictype/bidicategory-of-tests.
3388         * modules/unictype/bidiclass-test: Renamed from
3389         modules/unictype/bidicategory-test.
3390         (Description): Update.
3391         * modules/unictype/bidiclass-test-tests: Renamed from
3392         modules/unictype/bidicategory-test-tests.
3393         * modules/unictype/bidicategory-all: New file, a simple redirection.
3394         * modules/unictype/bidicategory-name: Likewise.
3395         * modules/unictype/bidicategory-byname: Likewise.
3396         * modules/unictype/bidicategory-of: Likewise.
3397         * modules/unictype/bidicategory-test: Likewise.
3398         * modules/unictype/property-bidi-* (Dependencies): Update.
3399         * lib/unictype/bidi_*.c: Update comment.
3400
3401 2011-03-26  Bruno Haible  <bruno@clisp.org>
3402
3403         unictype/bidi*: Rename functions, part 2.
3404         * modules/unictype/bidicategory-name (configure.ac): Update required
3405         libunistring version.
3406         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3407
3408 2011-03-25  Bruno Haible  <bruno@clisp.org>
3409
3410         New module 'unictype/combining-class-all'.
3411         * modules/unictype/combining-class-all: New file.
3412
3413         Tests for module 'unictype/combining-class-byname'.
3414         * modules/unictype/combining-class-byname-tests: New file.
3415         * tests/unictype/test-combiningclass_byname.c: New file.
3416
3417         New module 'unictype/combining-class-byname'.
3418         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3419         * lib/unictype/combiningclass_byname.c: New file.
3420         * lib/unictype/combiningclass_byname.gperf: New file.
3421         * modules/unictype/combining-class-byname: New file.
3422
3423         Tests for module 'unictype/combining-class-longname'.
3424         * modules/unictype/combining-class-longname-tests: New file.
3425         * tests/unictype/test-combiningclass_longname.c: New file.
3426
3427         New module 'unictype/combining-class-longname'.
3428         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3429         * lib/unictype/combiningclass_longname.c: New file.
3430         * modules/unictype/combining-class-longname: New file.
3431
3432         Tests for module 'unictype/combining-class-name'.
3433         * modules/unictype/combining-class-name-tests: New file.
3434         * tests/unictype/test-combiningclass_name.c: New file.
3435
3436         New module 'unictype/combining-class-name'.
3437         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3438         * lib/unictype/combiningclass_name.c: New file.
3439         * modules/unictype/combining-class-name: New file.
3440
3441 2011-03-25  Bruno Haible  <bruno@clisp.org>
3442
3443         unictype/combining-class: Rename source files.
3444         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3445         of unictype/combining.h.
3446         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3447         Update.
3448         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3449         * modules/unictype/combining-class (Description): Fix.
3450         (Files, Makefile.am): Update.
3451         * tests/unictype/test-combiningclass.c: Renamed from
3452         tests/unictype/test-combining.c.
3453         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3454
3455 2011-03-25  Bruno Haible  <bruno@clisp.org>
3456
3457         unictype: Update list of canonical combining classes.
3458         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3459
3460 2011-03-25  Bruno Haible  <bruno@clisp.org>
3461
3462         unictype/category-byname: Recognize long names as well.
3463         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3464         a long name.
3465         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3466         unictype/categ_byname.h.
3467         (UC_CATEGORY_INDEX_*): New enumeration values.
3468         (uc_general_category_byname): Use uc_general_category_lookup and
3469         convert from index to value.
3470         * lib/unictype/categ_byname.gperf: New file.
3471         * modules/unictype/category-byname (Files): Add
3472         lib/unictype/categ_byname.gperf.
3473         (Depends-on): Add gperf.
3474         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3475         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3476         long names.
3477
3478         Tests for module 'unictype/category-longname'.
3479         * modules/unictype/category-longname-tests: New file.
3480         * tests/unictype/test-categ_longname.c: New file.
3481
3482         New module 'unictype/category-longname'.
3483         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3484         * lib/unictype/categ_longname.c: New file.
3485         * modules/unictype/category-longname: New file.
3486         * modules/unictype/category-all (Depends-on): Add it.
3487
3488 2011-03-25  Bruno Haible  <bruno@clisp.org>
3489
3490         Tests for module 'unictype/category-LC'.
3491         * modules/unictype/category-LC-tests: New file.
3492         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3493
3494         New module 'unictype/category-LC'.
3495         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3496         (UC_CATEGORY_LC): New declaration.
3497         (UC_CASED_LETTER): New macro.
3498         * lib/gen-uni-tables.c (is_category_LC): New function.
3499         (output_categories): Also handle category LC.
3500         (UC_CATEGORY_MASK_LC): New enumeration value.
3501         (general_category_byname): Also handle category LC.
3502         * lib/unictype/categ_LC.c: New file.
3503         * lib/unictype/categ_LC.h: New file, automatically generated.
3504         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3505         category LC.
3506         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3507         * modules/unictype/category-LC: New file.
3508         * modules/unictype/category-byname (Depends-on): Add
3509         unictype/category-LC.
3510         * modules/unictype/category-all (Depends-on): Likewise.
3511
3512 2011-03-25  Eric Blake  <eblake@redhat.com>
3513
3514         xmalloc: revert yesterday's regression
3515         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3516         realloc's underlying behavior (allowing allocation of zero-size
3517         objects, especially if malloc-gnu is also in use).
3518
3519 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3520
3521         maint.mk: add missing version to VC-tag
3522         * top/maint.mk: git tag was missing actual tag name; add it.
3523
3524         valgrind: do leak checking, and exit with code 1 on error (not 0)
3525         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3526         to VALGRIND.
3527
3528 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3529
3530         posix-modules: say what it does.
3531         * posix-modules: Add a line to the --help output saying what it does.
3532
3533 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3534
3535         xmalloc: Do not leak if underlying realloc is C99 compatible.
3536         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3537         This avoids a leak on C99-based systems.  See
3538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3539
3540 2011-03-24  Eric Blake  <eblake@redhat.com>
3541
3542         realloc: document portability problem
3543         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3544         passing 0 size to realloc.
3545
3546 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3547
3548         doc: update users.txt
3549         * users.txt: Add cvsps, tmpwatch
3550
3551 2011-03-23  Matt Rice  <ratmice@gmail.com>
3552
3553         doc: update users.txt
3554         * users.txt: Add gdb.
3555
3556 2011-03-23  Jim Meyering  <meyering@redhat.com>
3557
3558         doc: update users.txt
3559         Looking through matches up to the following URL (there are still
3560         several more pages), I found several projects that use gnulib:
3561         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3562         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3563         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3564
3565 2011-03-22  Bruno Haible  <bruno@clisp.org>
3566
3567         unictype/bidi*: Rename functions.
3568         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3569         uc_bidi_class, uc_is_bidi_class): New declarations.
3570         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3571         uc_bidi_category_byname.
3572         (uc_bidi_category_byname): New function.
3573         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3574         u_bidi_category_name.
3575         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3576         (uc_bidi_category_name): New function.
3577         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3578         uc_bidi_category.
3579         (uc_bidi_category): New function.
3580         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3581         uc_is_bidi_category. Invoke uc_bidi_class.
3582         (uc_is_bidi_category): New function.
3583         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3584         instead of uc_bidi_category_byname.
3585         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3586         instead of uc_bidi_category_name.
3587         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3588         uc_bidi_category.
3589         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3590         instead of uc_is_bidi_category.
3591
3592 2011-03-21  Bruno Haible  <bruno@clisp.org>
3593
3594         New module 'unictype/joininggroup-all'.
3595         * modules/unictype/joininggroup-all: New file.
3596
3597         Tests for module 'unictype/joininggroup-of'.
3598         * modules/unictype/joininggroup-of-tests: New file.
3599         * tests/unictype/test-joininggroup_of.c: New file.
3600         * tests/unictype/test-joininggroup_of.h: New file, automatically
3601         generated by gen-uni-tables.
3602
3603         New module 'unictype/joininggroup-of'.
3604         * modules/unictype/joininggroup-of: New file.
3605         * lib/unictype/joininggroup_of.c: New file.
3606         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3607         gen-uni-tables.
3608
3609         Tests for module 'unictype/joininggroup-byname'.
3610         * modules/unictype/joininggroup-byname-tests: New file.
3611         * tests/unictype/test-joininggroup_byname.c: New file.
3612
3613         New module 'unictype/joininggroup-byname'.
3614         * modules/unictype/joininggroup-byname: New file.
3615         * lib/unictype/joininggroup_byname.c: New file.
3616         * lib/unictype/joininggroup_byname.gperf: New file.
3617
3618         Tests for module 'unictype/joininggroup-name'.
3619         * modules/unictype/joininggroup-name-tests: New file.
3620         * tests/unictype/test-joininggroup_name.c: New file.
3621
3622         New module 'unictype/joininggroup-name'.
3623         * modules/unictype/joininggroup-name: New file.
3624         * lib/unictype/joininggroup_name.c: New file.
3625         * lib/unictype/joininggroup_name.h: New file.
3626
3627         New module 'unictype/joiningtype-all'.
3628         * modules/unictype/joiningtype-all: New file.
3629
3630         Tests for module 'unictype/joiningtype-of'.
3631         * modules/unictype/joiningtype-of-tests: New file.
3632         * tests/unictype/test-joiningtype_of.c: New file.
3633         * tests/unictype/test-joiningtype_of.h: New file, automatically
3634         generated by gen-uni-tables.
3635
3636         New module 'unictype/joiningtype-of'.
3637         * modules/unictype/joiningtype-of: New file.
3638         * lib/unictype/joiningtype_of.c: New file.
3639         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3640         gen-uni-tables.
3641
3642         Tests for module 'unictype/joiningtype-byname'.
3643         * modules/unictype/joiningtype-byname-tests: New file.
3644         * tests/unictype/test-joiningtype_byname.c: New file.
3645
3646         New module 'unictype/joiningtype-byname'.
3647         * modules/unictype/joiningtype-byname: New file.
3648         * lib/unictype/joiningtype_byname.c: New file.
3649
3650         Tests for module 'unictype/joiningtype-name'.
3651         * modules/unictype/joiningtype-name-tests: New file.
3652         * tests/unictype/test-joiningtype_name.c: New file.
3653
3654         New module 'unictype/joiningtype-name'.
3655         * modules/unictype/joiningtype-name: New file.
3656         * lib/unictype/joiningtype_name.c: New file.
3657
3658         unictype: Add support for Arabic shaping properties.
3659         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3660         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3661         declarations.
3662         (UC_JOINING_GROUP_*): New enumeration values.
3663         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3664         declarations.
3665         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3666         (unicode_joining_type): New variable.
3667         (UC_JOINING_GROUP_*): New enumeration values.
3668         (unicode_joining_group): New variable.
3669         (fill_arabicshaping, joining_type_as_c_identifier,
3670         output_joining_type_test, output_joining_type,
3671         joining_group_as_c_identifier, output_joining_group_test,
3672         output_joining_group): New functions.
3673         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3674         fill_arabicshaping and output_joining_type_test, output_joining_type,
3675         output_joining_group_test, output_joining_group.
3676         Reported by Simon Josefsson.
3677
3678 2011-03-21  Jim Meyering  <meyering@redhat.com>
3679
3680         strftime: fix a bug in yesterday's change
3681         * lib/strftime.c (add): Accommodate width's initial value of -1.
3682         Otherwise, nstrftime would copy uninitialized data into
3683         the result buffer.
3684
3685 2011-03-21  Jim Meyering  <meyering@redhat.com>
3686
3687         tests: add strftime-tests module
3688         * tests/test-strftime.c: New file.
3689         * modules/strftime-tests: New module.
3690
3691 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3692
3693         strftime: don't assume a byte count fits in 'int'
3694         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3695         found this problem by static analysis, using gcc -Wstrict-overflow
3696         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3697         on an integer overflow having undefined behavior, but it turns out
3698         that the argument is a size, which might not fit in 'int' anyway,
3699
3700 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3701
3702         stdio: don't require ignore_value around fwrite
3703
3704         This patch works around libc bug 11959
3705         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3706         Without this patch, applications must often write
3707         ignore_value (fwrite (...)) even though the ignore_value is
3708         not helpful here.  It's common to write many objects, using
3709         fwrite/printf/etc., and then use ferror to detect output error.
3710
3711         I considered making this patch optional, but decided against it,
3712         because libc is obviously being inconsistent here: there is no
3713         reason libc should insist that user code must inspect fwrite
3714         return's value without also insisting that it inspect printf's,
3715         putchar's, etc.  If user code wants to have a strict style where
3716         all these functions' values are checked (so that ferror need not
3717         be checked), we could add support for that style in a new gnulib
3718         module, but in the meantime it's better to be consistent and to
3719         support common usage.
3720
3721         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3722         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3723         that we are compiling in checking mode, and if not C++, and
3724         if not already wrapping fwrite for some other reason.
3725         (fwrite): #define to rpl_fwrite if the latter is defined.
3726
3727 2011-03-20  Bruno Haible  <bruno@clisp.org>
3728
3729         verror: Fix compilation error introduced on 2011-02-13.
3730         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3731         instead of __attribute__.
3732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3733
3734 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3735             Bruno Haible  <bruno@clisp.org>
3736
3737         socklen: do not depend on sys_socket
3738         While trying to modify Emacs to use gnulib's socklen module,
3739         I discovered a circular dependency: socklen depends on sys_socket
3740         and vice versa.  Emacs can use socklen, but it does not need
3741         sys_socket because it has its own substitute for sys/socket.h.
3742         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3743         gl_TYPE_SOCKLEN_T.
3744         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3745         gl_PREREQ_SYS_H_SOCKET.
3746         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3747         gl_PREREQ_SYS_H_SOCKET.
3748         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3749         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3750         * modules/socklen (Depends-on): Do not depend on sys_socket.
3751         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3752
3753 2011-03-20  Jim Meyering  <meyering@redhat.com>
3754
3755         maint.mk: sort file names *after* new transformation
3756         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3757         prefix would have led to an unwarranted failure in GNU parted.
3758         Sort after that transformation.
3759
3760 2011-03-19  Jim Meyering  <meyering@redhat.com>
3761
3762         maint.mk: fix po-file syntax-check rule
3763         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3764         Patch by Bruno Haible.
3765
3766 2011-03-19  Bruno Haible  <bruno@clisp.org>
3767
3768         socklen: Update comment.
3769         * m4/socklen.m4: Update comment about platforms.
3770
3771 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3772             Bruno Haible  <bruno@clisp.org>
3773
3774         inet_ntop, inet_pton: Simplify.
3775         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3776         documented to provide socklen_t and we already depend on sys_socket.
3777         * modules/inet_pton (Depends-on): Likewise.
3778         * lib/arpa_inet.in.h: Adjust comment.
3779
3780 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3781             Bruno Haible  <bruno@clisp.org>
3782
3783         netdb: Simplify.
3784         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3785         documented to provide socklen_t and we already depend on sys_socket.
3786         * lib/netdb.in.h: Adjust comment.
3787
3788 2011-03-19  Bruno Haible  <bruno@clisp.org>
3789
3790         sys_socket, netdb: Document problem with socklen_t.
3791         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3792         platforms.
3793         * doc/posix-headers/netdb.texi: Likewise.
3794
3795 2011-03-18  Eric Blake  <eblake@redhat.com>
3796
3797         maint.mk: let po check work in VPATH build
3798         * top/maint.mk (po_file): Allow cfg.mk override.
3799         (sc_po_check): Allow VPATH use.
3800         Reported by Jiri Denemark.
3801
3802 2011-03-16  Jim Meyering  <meyering@redhat.com>
3803
3804         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3805         Before, you would have had to create one .x-sc_ file per rule in order
3806         to exempt offending files.  Now, you may instead use a Make variable --
3807         usually defined in cfg.mk -- whose name identifies the affected rule.
3808         * top/maint.mk (_sc_excl): Define.
3809         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3810         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3811
3812 2011-03-13  Bruno Haible  <bruno@clisp.org>
3813
3814         ignore-value tests: Avoid warnings.
3815         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3816         empty for gcc < 3.4.
3817
3818 2011-03-13  Bruno Haible  <bruno@clisp.org>
3819
3820         passfd: Fix link error on Solaris.
3821         * modules/passfd (Description): Correct.
3822         (Depends-on): Add socketlib.
3823         (Link): New section.
3824         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3825
3826 2011-03-13  Bruno Haible  <bruno@clisp.org>
3827
3828         passfd: Fix link error on AIX 5.2.
3829         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3830
3831 2011-03-13  Bruno Haible  <bruno@clisp.org>
3832
3833         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3834         * lib/sys_socket.in.h: Include <stddef.h>.
3835         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3836         CMSG_FIRSTHDR. Remove unused variable.
3837
3838 2011-03-13  Bruno Haible  <bruno@clisp.org>
3839
3840         passfd: Fix compilation error on OpenBSD.
3841         * lib/passfd.c: Include <sys/uio.h>.
3842
3843 2011-03-13  Bruno Haible  <bruno@clisp.org>
3844
3845         passfd test: Fix warnings.
3846         * tests/test-passfd.c: Include <sys/wait.h>.
3847         (main): Fix typo.
3848
3849 2011-03-13  Bruno Haible  <bruno@clisp.org>
3850
3851         passfd module, part 4, tweaks.
3852         * tests/test-passfd.c: Reorder includes.
3853         (main): Fix perror and printf calls.
3854
3855 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3856
3857         passfd module, part 4.
3858         * modules/passfd-tests: New file.
3859         * tests/test-passfd.c: New file.
3860
3861 2011-03-13  Jim Meyering  <meyering@redhat.com>
3862
3863         Makefile: rely on GNU make; derive syntax-check rule names
3864         Rather than requiring that each sc_ rule be listed as a dependent
3865         of "check", use features of GNU make to derive the list.
3866         * Makefile (syntax-check-rules): Define.
3867         (check): Depend on the new variable, not the hard-coded list.
3868
3869 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3870             Bruno Haible  <bruno@clisp.org>
3871
3872         passfd module, part 3.
3873         * lib/passfd.h (recvfd): Add a flags argument.
3874         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3875         (recvfd): Add a flags argument.
3876         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3877         exists.
3878         * modules/passfd (Depends-on): Add cloexec.
3879         Suggested by Eric Blake.
3880
3881 2011-03-13  Bruno Haible  <bruno@clisp.org>
3882
3883         passfd module, part 2, tweaks.
3884         * modules/passfd (Files): Reorder.
3885         (Depends-on): Remove errno.
3886         (Include): Remove <sys/socket.h>, <sys/un.h>.
3887         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3888         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3889         specification header. Include <sys/socket.h> always. Don't include
3890         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3891         (sendfd): Clarify that it sets errno when it fails.
3892         (recvfd): Fix specification.
3893
3894 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3895
3896         passfd module, part 2.
3897         * modules/passfd: New file.
3898         * lib/passfd.h: New file.
3899         * lib/passfd.c: New file.
3900
3901 2011-03-12  Bruno Haible  <bruno@clisp.org>
3902
3903         wcswidth, mbswidth: Avoid integer overflow.
3904         * lib/wcswidth.c: Include <limits.h>.
3905         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3906         * lib/mbswidth.c: Include <limits.h>.
3907         (mbsnwidth): Avoid 'int' overflow.
3908         Reported by Jim Meyering.
3909
3910 2011-03-12  Bruno Haible  <bruno@clisp.org>
3911
3912         futimens, utimensat: Avoid endless recursion on Solaris 10.
3913         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3914         Solaris.
3915         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3916         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3917
3918 2011-03-11  Jim Meyering  <meyering@redhat.com>
3919
3920         maint.mk: relax a regexp to accommodate other formatting styles
3921         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3922         between "ngettext" and the following "(".
3923
3924 2011-03-11  Pádraig Brady <P@draigBrady.com>
3925
3926         maint.mk: suppress a false positive warning
3927         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3928         diagnostics are marked with ngettext.
3929
3930 2011-03-10  Eric Blake  <eblake@redhat.com>
3931
3932         wchar: add explicit dependencies, for Tru64
3933         * modules/mbmemcasecoll (Depends-on): Add wchar.
3934         * modules/mbtowc (Depends-on): Likewise.
3935         * modules/vasnprintf (Depends-on): Likewise.
3936         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3937         * modules/wctomb (Depends-on): Likewise.
3938         Reported by Peter O'Gorman.
3939
3940 2011-03-08  Bruno Haible  <bruno@clisp.org>
3941
3942         passfd module, part 1, tweaks.
3943         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3944         Improve indentation. Improve AC_MSG_CHECKING messages.
3945         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3946         gl_SOCKET_FAMILIES.
3947
3948 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3949
3950         passfd module, part 1.
3951         * m4/afunix.m4: New file.
3952         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3953         sockets.
3954
3955 2011-03-08  Bruno Haible  <bruno@clisp.org>
3956
3957         regex-quote: New API.
3958         * lib/regex-quote.h: Include <stdbool.h>.
3959         (struct regex_quote_spec): New type.
3960         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3961         New declarations.
3962         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3963         'const struct regex_quote_spec *' argument.
3964         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3965         (pcre_special): New constant.
3966         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3967         New functions.
3968         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3969         'const struct regex_quote_spec *' argument.
3970         * modules/regex-quote (Depends-on): Add stdbool.
3971         * tests/test-regex-quote.c (check): Update for new API. Add test for
3972         anchored results.
3973         * NEWS: Mention the API change.
3974         Reported by Reuben Thomas and Eric Blake.
3975
3976 2011-03-06  Bruno Haible  <bruno@clisp.org>
3977
3978         regex-quote: Fix creation of POSIX extended regular expressions.
3979         * lib/regex-quote.c (ere_special): Add grouping and alternation
3980         operators.
3981
3982 2011-03-05  Bruno Haible  <bruno@clisp.org>
3983
3984         doc: Improve doc regarding autopoint vs. gnulib.
3985         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3986         disable autopoint while running autoreconf.
3987         Suggested by Ralf Wildenhues.
3988
3989 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3990
3991         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3992         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3993
3994 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3995
3996         parse-duration: remove xalloc.h dependency
3997         * lib/parse-duration.c (parse_period): handle NULL return from
3998         strdup instead of calling xstrdup().
3999         * modules/parse-duration: remove "xalloc" dependency
4000
4001 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4002
4003         bootstrap: honor m4_base when running aclocal
4004         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4005
4006 2011-03-02  Jim Meyering  <meyering@redhat.com>
4007
4008         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4009         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4010         on request from Matt Booth.
4011
4012 2011-03-01  Eric Blake  <eblake@redhat.com>
4013
4014         test-link: work on Hurd
4015         * tests/test-link.h (test_link): Hurd rejects linking directories
4016         with EISDIR instead of the POSIX-mandated EPERM.
4017
4018 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4019
4020         stdio: simplify by moving files to printf-posix, sigpipe
4021         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4022         since this symbol is needed only if printf is replaced.
4023         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4024         Require gl_ASM_SYMBOL_PREFIX.
4025         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4026         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4027         (Depends-on): Add 'raise'.
4028         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4029         * modules/stdio (Files): Remove lib/stdio-write.c,
4030         m4/asm-underscore.m4.
4031         (Depends-on): Remove 'raise'.
4032
4033         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4034         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4035         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4036         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4037
4038 2011-02-28  Bruno Haible  <bruno@clisp.org>
4039
4040         localcharset: Assume ANSI C behaviour of free().
4041         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4042         calling free().
4043         Suggested by Simon Josefsson <simon@josefsson.org>.
4044
4045 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4046             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4047             Bruno Haible  <bruno@clisp.org>  (tiny change)
4048
4049         On Cygwin, use /proc file system instead of win32 API.
4050         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4051         Win32 file names.
4052         (DllMain): Simplify by removing Cygwin specific code.
4053         (find_shared_library_fullname): Use Linux specific implementation also
4054         for Cygwin.
4055         (get_shared_library_fullname): Update accordingly.
4056         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4057         Win32 file names.
4058         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4059         Cygwin specific code.
4060
4061 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4062             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4063
4064         Fix OpenMP flag detection for various Fortran compilers.
4065         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4066         OpenMP-conditional compilation construct, to force compile
4067         failure with missing OpenMP flag.
4068         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4069
4070 2011-02-25  Eric Blake  <eblake@redhat.com>
4071
4072         strstr: expand test coverage
4073         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4074         compilation.
4075         * tests/test-memmem.c (main): Duplicate tests.
4076         * tests/test-strcasestr.c (main): Likewise.
4077         * tests/test-c-strcasestr.c (main): Likewise.
4078
4079 2011-02-25  Jim Meyering  <meyering@redhat.com>
4080
4081         maint.mk: detect missing-NL-at-EOF, too
4082         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4083         it also detects when a file lacks a newline at EOF.
4084         (require_exactly_one_NL_at_EOF_): Renamed from
4085         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4086         since people may well have .x-sc_... file names tied to the
4087         existing name.  Suggested by Eric Blake.
4088
4089 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4090
4091         dirname: move m4/dos.m4 functionality into lib/dosname.h
4092
4093         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4094         extracts symbols from it, puts them into config.h; but it's much
4095         easier to use the symbols directly.  filename.h already does this,
4096         but it disagrees with dos.m4 in some respects.  This patch
4097         introduces a different include file dosname.h that packages up
4098         dos.m4, and then later we can work on merging filename.h and
4099         dosname.h.  Applications that need only the easy-to-configure
4100         symbols should consider including dosname.h rather than dirname.h.
4101         * NEWS: Mention incompatible changes.
4102         * m4/dos.m4: Remove.
4103         * lib/dosname.h, modules/dosname: New files.
4104         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4105         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4106         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4107         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4108         Include dosname.h, not dirname.h.
4109         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4110         Include dosname.h, for definitions of symbols like ISSLASH
4111         that used to be in config.h.
4112         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4113         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4114         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4115         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4116         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4117         * modules/rmdir (Files): Likewise.
4118         * modules/stat (Files): Likewise.
4119         * modules/unlink (Files): Likewise.
4120         * modules/dirname-lgpl (Depends-on): Add dosname.
4121         * modules/lstat (Depends-on): Likewise.
4122         * modules/openat (Depends-on): Likewise.
4123         * modules/rmdir (Depends-on): Likewise.
4124         * modules/savewd (Depends-on): Likewise.
4125         * modules/stat (Depends-on): Likewise.
4126         * modules/unlink (Depends-on): Likewise.
4127         * modules/openat (Depends-on): Remove dirname-lgpl.
4128         * modules/savewd (Depends-on): Likewise.
4129         * tests/test-dirname.c: Do not use removed symbols like
4130         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4131         the remaining symbols, e.g., ISSLASH ('\\').
4132
4133 2011-02-25  Eric Blake  <eblake@redhat.com>
4134
4135         strstr: revert patches that introduced bug and pessimization
4136         * lib/str-two-way.h: Add another reference.
4137         (two_way_short_needle, two_way_long_needle): Revert changes from
4138         2011-02-24; they pessimize search speed.
4139         (critical_factorization): Partially revert changes from
4140         2010-06-22; they violate the requirement that the left half of the
4141         needle be smaller than the period of the needle.
4142
4143 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4144
4145         filenamecat: remove unnecessary dependency on dirname-lgpl
4146         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4147         is no direct dependency, just an indirect one via filenamecat-lgpl.
4148
4149         remove: remove unnecessary use of m4/dos.m4
4150         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4151         * modules/remove (FILES): Remove m4/dos.m4.
4152
4153         * lib/openat-proc.c: Don't include dirname.h; not needed.
4154
4155         backupfile: remove unnecessary use of m4/dos.m4
4156         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4157         of its symbols are used by the backupfile code.  backupfile.c does
4158         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4159         for the rare case of programs that want all their backup file
4160         names to live within 8+3 limits, and dos.m4 doesn't address that.
4161         * modules/backupfile (Files): Remove m4/dos.m4.
4162
4163 2011-02-24  Jim Meyering  <meyering@redhat.com>
4164
4165         strstr: fix a bug whereby strstr would mistakenly return NULL
4166         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4167         in period calculation.
4168         (two_way_long_needle): Likewise.
4169         The original problem was reported by Mike Stump in
4170         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4171         Ralf Wildenhues provided the short needle and haystack.
4172         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4173         Add a more involved test to trigger the bug in two_way_long_needle.
4174
4175 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4176
4177         gnulib-tool: remove use of bold display in help screen
4178         * gnulib-tool (func_usage): Do not use bold display anymore in the
4179         help screen.  That was just meant to be a temporary emphasis for a
4180         backward-incompatible change.
4181
4182 2011-02-23  Bruno Haible  <bruno@clisp.org>
4183
4184         Fix misindentation of preprocessor directives.
4185         * lib/argp-namefrob.h: Reindent preprocessor directives.
4186         * lib/getopt_int.h (struct _getopt_data): Likewise.
4187         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4188         * lib/vasnprintf.c (decode_long_double): Likewise.
4189         * tests/test-argmatch.c: Insert blank lines, for clarity.
4190         * tests/test-exclude.c: Likewise.
4191
4192 2011-02-22  Bruno Haible  <bruno@clisp.org>
4193
4194         ioctl: Fix for MacOS X in 64-bit mode.
4195         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4196         value.
4197         Suggested by Eric Blake.
4198         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4199
4200 2011-02-22  Jim Meyering  <meyering@redhat.com>
4201
4202         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4203         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4204         in lib/.
4205
4206 2011-02-22  Eric Blake  <eblake@redhat.com>
4207
4208         maint: avoid any CDPATH issue
4209         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4210
4211         maint: adjust cpp indentation for my modules, as well
4212         * Makefile (sc_cpp_indent_check): Add my name.
4213         * lib/fbufmode.c: Filter through cppi.
4214         * lib/fpurge.c: Likewise.
4215         * lib/freadable.c: Likewise.
4216         * lib/freading.c: Likewise.
4217         * lib/fwritable.c: Likewise.
4218         * lib/fwriting.c: Likewise.
4219         * lib/sigaction.c: Likewise.
4220
4221 2011-02-22  Jim Meyering  <meyering@redhat.com>
4222
4223         maint: adjust cpp indentation to reflect nesting depth
4224         I.e., in a block of code that begins with an unnested "#if",
4225         put one space between the "#" in column 1 and following token.
4226         For example,
4227         -#include <sys/vfs.h>
4228         +# include <sys/vfs.h>
4229         Do this only in .c files that are part of a module I maintain.
4230         * lib/linkat.c: Filter through cppi.
4231         * lib/nanosleep.c: Likewise.
4232         * lib/openat.c: Likewise.
4233         * lib/openat-die.c: Likewise.
4234         * lib/dup3.c: Likewise.
4235         * lib/fchownat.c: Likewise.
4236         * lib/flock.c: Likewise.
4237         * lib/fsync.c: Likewise.
4238         * lib/fts.c: Likewise.
4239         * lib/getpass.c: Likewise.
4240         * lib/gettimeofday.c: Likewise.
4241         * lib/userspec.c: Likewise.
4242         * Makefile (sc_cpp_indent_check): New rule, to check this.
4243
4244 2011-02-22  Bruno Haible  <bruno@clisp.org>
4245
4246         New module 'wctomb'.
4247         * lib/stdlib.in.h (wctomb): New declaration.
4248         * lib/wctomb.c: New file.
4249         * lib/wctomb-impl.h: New file.
4250         * m4/wctomb.m4: New file.
4251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4252         REPLACE_WCTOMB.
4253         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4254         REPLACE_WCTOMB.
4255         * modules/wctomb: New file.
4256         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4257         * doc/posix-functions/wctomb.texi: Mention the new module.
4258         * modules/wctob (Depends-on): Add wctomb.
4259
4260 2011-02-22  Bruno Haible  <bruno@clisp.org>
4261
4262         New module 'mbtowc'.
4263         * lib/stdlib.in.h (mbtowc): New declaration.
4264         * lib/mbtowc.c: New file.
4265         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4266         * m4/mbtowc.m4: New file.
4267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4268         REPLACE_MBTOWC.
4269         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4270         REPLACE_MBTOWC.
4271         * modules/mbtowc: New file.
4272         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4273         * doc/posix-functions/mbtowc.texi: Mention the new module.
4274         * modules/btowc (Depends-on): Add mbtowc.
4275
4276 2011-02-22  Bruno Haible  <bruno@clisp.org>
4277
4278         wcrtomb: Add more tests for native Windows platforms.
4279         * tests/test-wcrtomb-w32-1.sh: New file.
4280         * tests/test-wcrtomb-w32-2.sh: New file.
4281         * tests/test-wcrtomb-w32-3.sh: New file.
4282         * tests/test-wcrtomb-w32-4.sh: New file.
4283         * tests/test-wcrtomb-w32-5.sh: New file.
4284         * tests/test-wcrtomb-w32.c: New file.
4285         * modules/wcrtomb-tests (Files): Add them.
4286         (Makefile.am): Arrange to run these tests.
4287         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4288         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4289
4290 2011-02-20  Bruno Haible  <bruno@clisp.org>
4291
4292         wcrtomb: Enhance test.
4293         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4294
4295 2011-02-20  Bruno Haible  <bruno@clisp.org>
4296
4297         mbrtowc: Tiny optimization.
4298         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4299
4300 2011-02-20  Jim Meyering  <meyering@redhat.com>
4301
4302         test-exclude.c: remove unmatched #endif
4303         * tests/test-exclude.c: Remove stray #endif, left over from
4304         the change of a week ago.
4305
4306 2011-02-19  Jim Meyering  <meyering@redhat.com>
4307
4308         git-version-gen: skip "-dirty" check when appropriate
4309         * build-aux/git-version-gen: Don't run any git commands when the
4310         version string comes from .tarball-version.  Prior to this, we
4311         would run git update-index --refresh even from a just-unpacked
4312         tarball directory, and that could affect a .git/ directory in a
4313         parent of the build directory.  Reported by Mike Frysinger.
4314
4315 2011-02-19  Bruno Haible  <bruno@clisp.org>
4316
4317         unictype/property-byname: Reduce the size of the 'data' segment.
4318         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4319
4320 2011-02-19  Bruno Haible  <bruno@clisp.org>
4321
4322         unictype/scripts: Reduce the size of the 'data' segment.
4323         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4324         '%pic'.
4325         * lib/unictype/scripts_byname.gperf: Regenerated.
4326
4327 2011-02-19  Bruno Haible  <bruno@clisp.org>
4328
4329         stdint: Update documentation.
4330         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4331
4332 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4333
4334         stdint: omit redundant check for wchar.h
4335         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4336         always tests whether wchar.h exists, so remove the now-redundant test.
4337
4338 2011-02-18  Bruno Haible  <bruno@clisp.org>
4339
4340         stdint: Cut dependency to module 'wchar'.
4341         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4342         include the necessary prerequisites.
4343         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4344         * modules/stdint (Depends-on): Remove wchar.
4345         (Makefile.am): Substitute HAVE_WCHAR_H.
4346         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4347
4348 2011-02-18  Eric Blake  <eblake@redhat.com>
4349
4350         longlong: skip, rather than fail, on cross-compilation
4351         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4352         when cross-compiling; regression from 2011-02-16.
4353
4354 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4355
4356         * NEWS: Mention 2011-02-08 change to stdlib.
4357
4358 2011-02-17  Bruno Haible  <bruno@clisp.org>
4359
4360         getloadavg: Add comments about platforms.
4361         * m4/getloadavg.m4: Add comment.
4362         * lib/getloadavg.c: Likewise.
4363
4364 2011-02-17  Bruno Haible  <bruno@clisp.org>
4365
4366         getloadavg: Fix link error on Solaris 2.6.
4367         * modules/getloadavg (Link): New section.
4368         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4369         linking test-getloadavg.
4370         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4371         getloadavg.
4372
4373 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4374
4375         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4376         It was 'int', but this doesn't match the IRIX 6.5 manual.
4377         Suggested by Bruno Haible in
4378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4379
4380 2011-02-17  Bruno Haible  <bruno@clisp.org>
4381
4382         havelib: Fix comments.
4383         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4384         change.
4385
4386 2011-02-17  Bruno Haible  <bruno@clisp.org>
4387
4388         havelib: Update config.rpath.
4389         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4390
4391 2011-02-17  Bruno Haible  <bruno@clisp.org>
4392
4393         getloadavg test: Add some plausibility checks.
4394         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4395         is improbable.
4396
4397 2011-02-16  Eric Blake  <eblake@redhat.com>
4398
4399         maintainer-makefile: make syntax-check a no-op from tarballs
4400         * top/maint.mk (no-vc-detected): New rule.
4401         (local-checks-available): Use it to avoid hanging if someone tries
4402         'make syntax-check' from a tarball.  Also append to any non-syntax
4403         checks already defined in cfg.mk.
4404
4405 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4406
4407         longlong: tune, particularly for common case of c99
4408
4409         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4410         or running anything if c99, or if unsigned long long int does not
4411         work.  In either case, we know the answer without further tests.
4412         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4413         it at most once, and use its results for both long long int and
4414         unsigned long long int.  This is more likely to be efficient in
4415         the common case where the program wants to check for both long
4416         long int and unsigned long long int.
4417         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4418         since the answer is already known.
4419
4420 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4421
4422         getloadavg: set errno
4423         * lib/getloadavg.c: Set errno when returning -1.  If no other
4424         error number looks appropriate, set it to ENOSYS if the getloadavg
4425         looks like it can't possibly ever work, ENOTSUP otherwise.
4426         Suggested by Bruno Haible in
4427         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4428
4429         getloadavg: trim unused parts and speed up 'configure'
4430         * NEWS: Document this.
4431         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4432         always compiled if getloadavg is absent.
4433         Move test code to ...
4434         * tests/test-getloadavg.c: New file, containing previous
4435         contents of test from lib/getloadavg.c.  It also contains
4436         suggestions by Bruno Haible in
4437         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4438         * modules/getloadavg-tests: New file.
4439         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4440         Do tests in the same order as they're needed for getloadavg.c.
4441         Omit setgid-related tests that generate symbols KMEM_GROUP,
4442         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4443         Do only the tests that are needed to see whether the system has
4444         getloadavg, moving the other tests into ...
4445         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4446         NLIST_NAME_UNION; nobody should be using it.  Do not define
4447         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4448         relevant, as the user of this module shouldn't care how getloadavg
4449         is implemented.
4450
4451         getloadavg: omit unused var
4452         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4453
4454 2011-02-15  Jim Meyering  <meyering@redhat.com>
4455
4456         doc: update users.txt
4457         * users.txt: Update iwhd's URL.
4458
4459 2011-02-13  Bruno Haible  <bruno@clisp.org>
4460
4461         Consistent macro naming for macros that use GCC __attribute__.
4462         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4463         _ATTRIBUTE_NONNULL_.
4464         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4465         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4466         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4467         ATTRIBUTE_DEPRECATED.
4468         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4469         ATTRIBUTE_NORETURN.
4470         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4471         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4472         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4473         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4474         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4475         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4476         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4477         ATTRIBUTE_SENTINEL.
4478         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4479         ATTRIBUTE_RETURN_CHECK.
4480         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4481         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4482         ATTRIBUTE_NORETURN.
4483         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4484         Reported by Paul Eggert.
4485
4486 2011-02-13  Bruno Haible  <bruno@clisp.org>
4487
4488         Don't interfere with a program's definition of __attribute__.
4489         * lib/argp.h (__attribute__): Remove definition.
4490         (_GL_ATTRIBUTE_FORMAT): New macro.
4491         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4492         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4493         (_GL_ATTRIBUTE_FORMAT): New macro.
4494         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4495         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4496         GCC 3 or newer.
4497         * lib/error.h (__attribute__): Remove definition.
4498         (_GL_ATTRIBUTE_FORMAT): New macro.
4499         (error, error_at_line): Use it.
4500         * lib/hash.h (__attribute__): Remove definition.
4501         (ATTRIBUTE_WUR): Update definition. Define always.
4502         * lib/openat.h (__attribute__): Remove definition.
4503         (ATTRIBUTE_NORETURN): Update definition. Define always.
4504         * lib/sigpipe-die.h (__attribute__): Remove definition.
4505         (ATTRIBUTE_NORETURN): Update definition. Define always.
4506         * lib/vasnprintf.h (__attribute__): Remove definition.
4507         (_GL_ATTRIBUTE_FORMAT): New macro.
4508         (asnprintf, vasnprintf): Use it.
4509         * lib/xalloc.h (__attribute__): Remove definition.
4510         (ATTRIBUTE_NORETURN): Update definition. Define always.
4511         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4512         * lib/xmemdup0.h (__attribute__): Remove definition.
4513         (ATTRIBUTE_NORETURN): Update definition. Define always.
4514         * lib/xprintf.h (__attribute__): Remove definition.
4515         (_GL_ATTRIBUTE_FORMAT): New macro.
4516         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4517         * lib/xstrtol.h (__attribute__): Remove definition.
4518         (ATTRIBUTE_NORETURN): Update definition. Define always.
4519         * lib/xvasprintf.h (__attribute__): Remove definition.
4520         (_GL_ATTRIBUTE_FORMAT): New macro.
4521         (xasprintf, xvasprintf): Use it.
4522         * tests/test-argmatch.c (__attribute__): Remove definition.
4523         (ATTRIBUTE_NORETURN): Update definition. Define always.
4524         * tests/test-exclude.c (__attribute__): Remove definition.
4525         (ATTRIBUTE_NORETURN): Update definition. Define always.
4526         Reported by Paul Eggert.
4527
4528 2011-02-13  Bruno Haible  <bruno@clisp.org>
4529
4530         mbrtowc: Add more tests for native Windows platforms.
4531         * tests/test-mbrtowc-w32-1.sh: New file.
4532         * tests/test-mbrtowc-w32-2.sh: New file.
4533         * tests/test-mbrtowc-w32-3.sh: New file.
4534         * tests/test-mbrtowc-w32-4.sh: New file.
4535         * tests/test-mbrtowc-w32-5.sh: New file.
4536         * tests/test-mbrtowc-w32.c: New file.
4537         * modules/mbrtowc-tests (Files): Add them.
4538         (Makefile.am): Arrange to run these tests.
4539         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4540         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4541
4542 2011-02-13  Bruno Haible  <bruno@clisp.org>
4543
4544         mbrtowc: Work around native Windows bug.
4545         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4546         guess when no suitable locale for testing was found.
4547         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4548
4549 2011-02-13  Bruno Haible  <bruno@clisp.org>
4550
4551         mbsinit: Work around mingw bug.
4552         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4553         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4554         Windows.
4555         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4556
4557 2011-02-13  Bruno Haible  <bruno@clisp.org>
4558
4559         mbsinit: Don't crash for a NULL argument.
4560         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4561         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4562
4563 2011-02-13  Bruno Haible  <bruno@clisp.org>
4564
4565         Don't interfere with a program's definition of __attribute__.
4566         * lib/stdio.in.h (__attribute__): Remove definition.
4567         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4568         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4569         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4570         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4571         * lib/string.in.h (__attribute__): Remove definition.
4572         Reported by Paul Eggert.
4573
4574 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4575
4576         stdlib: don't get in the way of non-GCC __attribute__
4577         See thread starting at
4578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4579         Revert previous stdlib change, installing the following instead:
4580         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4581         to get in the way of a non-GCC compiler that supports __attribute__.
4582         (_GL_ATTRIBUTE_RETURN): New macro.
4583         (_Exit): Use it instead of __attribute__.
4584
4585 2011-02-12  Bruno Haible  <bruno@clisp.org>
4586
4587         quotearg test: Avoid test failure on mingw.
4588         * tests/test-quotearg.sh: Convert the locale identifier from native
4589         Windows syntax to Unix syntax.
4590
4591 2011-02-12  Bruno Haible  <bruno@clisp.org>
4592
4593         setlocale: Prefer gnulib's override over libintl's override.
4594         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4595         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4596         GNULIB_defined_setlocale is set.
4597
4598 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4599
4600         stdlib: support non-GCC __attribute__
4601
4602         Fix a serious and tricky problem encountered when attempting to
4603         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4604         5.5, but it crashed due to memory corruption on Solaris 10 with
4605         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4606         bits that are otherwise zero.  This tagging is optional inside
4607         Emacs but is preferred and is used when __attribute__ ((__aligned
4608         (8))) works, as it does with both recent-enough GCC and with Sun C
4609         5.11.  However, Sun C 5.11 is not GCC and does not #define
4610         __GNUC__ and __GNUC_MINOR__.
4611
4612         When I added the getloadavg module to Emacs, it brought in
4613         stdlib.in.h, which contained this fragment:
4614
4615            #ifndef __attribute__
4616            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4617            #  define __attribute__(Spec)   /* empty */
4618            # endif
4619            #endif
4620
4621         When files that include <stdlib.h> were compiled with Sun C 5.11,
4622         the above code disabled __attribute__ ((__aligned (8))), which
4623         caused variables to not be properly aligned, which eventually led
4624         to the pointer corruption mentioned above.  (This was a bit hard
4625         to diagnose, unfortunately.)
4626
4627         Several "#define __attribute__(X) /* empty */" code snippets need
4628         to be eradicated from Gnulib to work with non-GCC compilers that
4629         support __attribute__.  The Autoconf way to do this is to test for
4630         each kind of attribute that we want support for, and selectively
4631         enable that in source code.
4632
4633         Fix this problem just for stdlib.h, by adding a test for the
4634         __noreturn__ attribute, and change stdlib.in.h to use that test
4635         when needed.  This technique can be easily generalized to the
4636         other *.in.h files and attributes, and a similar technique can be
4637         used for *.h and *.c files.  This patch is enough to solve the
4638         problem for Emacs + getloadavg, and I thought I'd publish it for
4639         feedback before undertaking further, similar fixes in other
4640         modules.
4641
4642         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4643         because it's not needed for stdlib.h.  It merely substitutes the
4644         value directly into stdlib.h.  We may well need to #define it, or
4645         similar symbols, for other modules, but it's nice to also have an
4646         option to not #define it for applications like Emacs that do not
4647         need it.
4648
4649         * lib/stdlib.in.h (__attribute__): Do not #define.
4650         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4651         be defined only if the _Exit module is also used.
4652         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4654         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4655         platforms.
4656         * modules/_Exit (Files): Add m4/attribute.m4.
4657         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4658         * m4/attribute.m4: New file.
4659
4660 2011-02-12  Bruno Haible  <bruno@clisp.org>
4661
4662         wcsrtombs: Work around bug on native Windows.
4663         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4664         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4665         instead of len.
4666         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4667
4668 2011-02-12  Bruno Haible  <bruno@clisp.org>
4669
4670         mbsrtowcs: Work around bug on native Windows.
4671         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4672         against mingw bug.
4673         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4674
4675 2011-02-12  Bruno Haible  <bruno@clisp.org>
4676
4677         Avoid setlocale bugs in tests.
4678         * modules/btowc (Dependencies): Add setlocale.
4679         * modules/c-strcase (Dependencies): Likewise.
4680         * modules/mbmemcasecmp (Dependencies): Likewise.
4681         * modules/mbmemcasecoll (Dependencies): Likewise.
4682         * modules/mbrtowc (Dependencies): Likewise.
4683         * modules/mbscasecmp (Dependencies): Likewise.
4684         * modules/mbscasestr (Dependencies): Likewise.
4685         * modules/mbschr (Dependencies): Likewise.
4686         * modules/mbscspn (Dependencies): Likewise.
4687         * modules/mbsinit (Dependencies): Likewise.
4688         * modules/mbsncasecmp (Dependencies): Likewise.
4689         * modules/mbsnrtowcs (Dependencies): Likewise.
4690         * modules/mbspbrk (Dependencies): Likewise.
4691         * modules/mbspcasecmp (Dependencies): Likewise.
4692         * modules/mbsrchr (Dependencies): Likewise.
4693         * modules/mbsrtowcs (Dependencies): Likewise.
4694         * modules/mbsspn (Dependencies): Likewise.
4695         * modules/mbsstr (Dependencies): Likewise.
4696         * modules/nl_langinfo (Dependencies): Likewise.
4697         * modules/quotearg (Dependencies): Likewise.
4698         * modules/unicase/locale-language (Dependencies): Likewise.
4699         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4700         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4701         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4702         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4703         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4704         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4705         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4706         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4707         * modules/vasnprintf-posix (Dependencies): Likewise.
4708         * modules/wcrtomb (Dependencies): Likewise.
4709         * modules/wcsnrtombs (Dependencies): Likewise.
4710         * modules/wcsrtombs (Dependencies): Likewise.
4711
4712 2011-02-12  Bruno Haible  <bruno@clisp.org>
4713
4714         setlocale: Workaround native Windows bug.
4715         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4716         succeeds but sets LC_CTYPE to "C", report a failure.
4717         * tests/test-setlocale2.sh: New file.
4718         * tests/test-setlocale2.c: New file.
4719         * modules/setlocale-tests (Files): Add the new files.
4720         (Makefile.am): Enable test-setlocale2.sh test.
4721         * doc/posix-functions/setlocale.texi: Mention workaround.
4722
4723 2011-02-11  Bruno Haible  <bruno@clisp.org>
4724
4725         Tests for module 'setlocale'.
4726         * modules/setlocale-tests: New file.
4727         * tests/test-setlocale1.sh: New file.
4728         * tests/test-setlocale1.c: New file.
4729
4730         New module 'setlocale'.
4731         * lib/locale.in.h (setlocale): New declaration.
4732         * lib/setlocale.c: New file, based on
4733         gettext/gettext-runtime/intl/setlocale.c.
4734         * m4/setlocale.m4: New file.
4735         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4736         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4737         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4738         REPLACE_SETLOCALE.
4739         * modules/setlocale: New file.
4740         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4741         * doc/posix-functions/setlocale.texi: Mention the new module.
4742
4743 2011-02-11  Bruno Haible  <bruno@clisp.org>
4744
4745         Prepare for locale dependent tests on mingw.
4746         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4747         because it has the wrong locale encoding.
4748         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4749         French_France.1252 instead of "fr".
4750         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4751         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4752         because it has the wrong locale encoding.
4753         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4754         native Windows, try Turkish_Turkey.65001.
4755         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4756         Chinese_China.54936.
4757
4758         Prepare for locale dependent tests on mingw.
4759         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4760         differently.
4761         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4762         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4763         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4764         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4765
4766 2011-02-11  Eric Blake  <eblake@redhat.com>
4767
4768         strptime: avoid compiler warnings
4769         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4770         compiler warnings about dead code.
4771         Reported by Daniel P. Berrange.
4772
4773 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4774
4775         doc: update users.txt
4776         * users.txt: Add rcs.
4777
4778 2011-02-10  John W. Eaton  <jwe@gnu.org>
4779
4780         doc: update users.txt
4781         * users.txt: Add octave.
4782
4783 2011-02-10  Jim Meyering  <meyering@redhat.com>
4784
4785         doc: update users.txt
4786         * users.txt: Add iwhd.
4787
4788 2011-02-09  Bruno Haible  <bruno@clisp.org>
4789
4790         gnulib-tool: Make copyright notice adjustment more robust.
4791         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4792         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4793         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4794         License".
4795         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4796
4797 2011-02-06  Bruno Haible  <bruno@clisp.org>
4798
4799         New module 'towctrans'.
4800         * modules/towctrans: New file.
4801         * lib/wctype.in.h (towctrans): New declaration.
4802         * lib/towctrans.c: New file.
4803         * lib/towctrans-impl.h: New file.
4804         * m4/towctrans.m4: New file.
4805         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4806         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4807         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4808         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4809         * doc/posix-functions/towctrans.texi: Mention the new module.
4810
4811 2011-02-06  Bruno Haible  <bruno@clisp.org>
4812
4813         New module 'wctrans'.
4814         * modules/wctrans: New file.
4815         * lib/wctype.in.h (wctrans): New declaration.
4816         * lib/wctrans.c: New file.
4817         * lib/wctrans-impl.h: New file.
4818         * m4/wctrans.m4: New file.
4819         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4820         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4821         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4822         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4823         * doc/posix-functions/wctrans.texi: Mention the new module.
4824
4825 2011-02-06  Bruno Haible  <bruno@clisp.org>
4826
4827         New module 'iswctype'.
4828         * modules/iswctype: New file.
4829         * lib/wctype.in.h (iswctype): New declaration.
4830         * lib/iswctype.c: New file.
4831         * lib/iswctype-impl.h: New file.
4832         * m4/iswctype.m4: New file.
4833         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4834         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4835         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4836         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4837         * doc/posix-functions/iswctype.texi: Mention the new module and the
4838         HP-UX 11.00 problem.
4839
4840 2011-02-06  Bruno Haible  <bruno@clisp.org>
4841
4842         New module 'wctype'.
4843         * modules/wctype: Change to represent the wctype() substitute.
4844         * lib/wctype.in.h (wctype): New declaration.
4845         * lib/wctype.c: New file.
4846         * lib/wctype-impl.h: New file.
4847         * m4/wctype.m4: New file.
4848         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4849         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4850         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4851         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4852         * doc/posix-functions/wctype.texi: Mention the new module and the
4853         HP-UX 11.00 problem.
4854
4855 2011-02-06  Bruno Haible  <bruno@clisp.org>
4856
4857         wctype-h: Ensure wctype_t and wctrans_t are defined.
4858         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4859         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4860         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4861         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4862         HAVE_WCTRANS_T.
4863         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4864
4865 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4866
4867         flock: fix license typo
4868
4869         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4870         omitted.
4871
4872 2011-02-08  Bruno Haible  <bruno@clisp.org>
4873
4874         Split large sed scripts, for HP-UX sed.
4875         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4876         to avoid HP-UX limit of 99 commands, in the near future.
4877         * modules/stdlib (Makefile.am): Likewise.
4878         * modules/unistd (Makefile.am): Likewise.
4879         * modules/wchar (Makefile.am): Likewise.
4880         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4881         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4882         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4883
4884 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4885             Bruno Haible  <bruno@clisp.org>
4886
4887         stdlib: improve random_r modularization
4888         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4889         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4890         you also need the random_r module to get this material right.
4891         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4892         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4893         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4894
4895 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4896
4897         stdlib: don't depend on stdint
4898         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4899         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4900         be independent of whether stdint.h is needed.
4901         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4902         here, instead of ...
4903         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4904         struct random_data should be using the random_r module, not just
4905         the stdlib module (which wouldn't make sense: what package needs
4906         just struct random_data without also needing random_r?).
4907         * modules/stdlib (Depends-on): Remove stdint.
4908
4909         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4910         See the thread rooted at
4911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4912         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4913         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4914         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4915         __VMS)); previously it was always included (via fcntl--.h).
4916         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4917         hand; this is good enough for load averages.  Also, do not use
4918         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4919         flags directly if available and don't bother otherwise.  (Packages
4920         that need the extra reliability should use the modules that define
4921         these flags on older platforms that lack them.)
4922         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4923         fcntl-safer.
4924
4925 2011-02-08  Jim Meyering  <meyering@redhat.com>
4926
4927         di-set.h, ino-map.h: add multiple-inclusion guard
4928         Technically, the guard is required only for ino-map.h, due to its
4929         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4930         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4931         * lib/ino-map.h: Likewise.
4932
4933 2011-02-06  Bruno Haible  <bruno@clisp.org>
4934
4935         iswblank: Ensure declaration on glibc systems.
4936         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4937         * modules/iswblank (Dependencies): Add 'extensions'.
4938         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4939
4940 2011-02-06  Bruno Haible  <bruno@clisp.org>
4941
4942         New module 'iswblank'.
4943         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4944         * modules/iswblank: New file.
4945         * modules/wctype-h (Files): Remove lib/iswblank.c.
4946         (Makefile.am): Substitute GNULIB_ISWBLANK.
4947         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4948         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4949         (gl_WCTYPE_H_DEFAULTS): New macro.
4950         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4951         * modules/iswblank-tests: New file.
4952         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4953         * tests/test-wctype-h.c (main): Remove iswblank tests.
4954         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4955         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4956         of 'wctype-h'.
4957         * NEWS: Mention the change.
4958         * modules/mbchar (Depends-on): Add iswblank.
4959
4960 2011-02-08  Bruno Haible  <bruno@clisp.org>
4961
4962         di-set tests: Refactor.
4963         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4964         unnecessary includes.
4965         (ASSERT): Remove macro.
4966         (main): Make C90 compliant by avoiding variable declaration after
4967         statement.
4968         * modules/di-set-tests (Files): Add tests/macros.h.
4969
4970 2011-02-08  Bruno Haible  <bruno@clisp.org>
4971
4972         ino-map tests: Refactor.
4973         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4974         unnecessary includes.
4975         (ASSERT): Remove macro.
4976         (main): Make C90 compliant by avoiding variable declaration after
4977         statement.
4978         * modules/ino-map-tests (Files): Add tests/macros.h.
4979
4980 2011-02-08  Jim Meyering  <meyering@redhat.com>
4981
4982         di-set: add "const" to a cast
4983         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4984         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4985
4986 2011-02-06  Bruno Haible  <bruno@clisp.org>
4987
4988         Rename module 'wctype' to 'wctype-h'.
4989         * modules/wctype-h: Renamed from modules/wctype.
4990         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4991         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4992         (Files, Depends-on, Makefile.am): Update.
4993         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4994         (Files, Makefile.am): Update.
4995         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4996         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4997         * doc/posix-headers/wctype.texi: Update.
4998         * doc/posix-functions/iswalnum.texi: Update.
4999         * doc/posix-functions/iswalpha.texi: Update.
5000         * doc/posix-functions/iswblank.texi: Update.
5001         * doc/posix-functions/iswcntrl.texi: Update.
5002         * doc/posix-functions/iswdigit.texi: Update.
5003         * doc/posix-functions/iswgraph.texi: Update.
5004         * doc/posix-functions/iswlower.texi: Update.
5005         * doc/posix-functions/iswprint.texi: Update.
5006         * doc/posix-functions/iswpunct.texi: Update.
5007         * doc/posix-functions/iswspace.texi: Update.
5008         * doc/posix-functions/iswupper.texi: Update.
5009         * doc/posix-functions/iswxdigit.texi: Update.
5010         * doc/posix-functions/towlower.texi: Update.
5011         * doc/posix-functions/towupper.texi: Update.
5012         * NEWS: Mention the change.
5013         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5014         * modules/mbchar (Dependencies): Likewise.
5015         * modules/mbswidth (Dependencies): Likewise.
5016         * modules/quotearg (Dependencies): Likewise.
5017         * modules/regex (Dependencies): Likewise.
5018         * modules/wcscasecmp (Dependencies): Likewise.
5019         * modules/wcsncasecmp (Dependencies): Likewise.
5020         * modules/wcwidth (Dependencies): Likewise.
5021
5022 2011-02-06  Bruno Haible  <bruno@clisp.org>
5023
5024         New module 'wcswidth'.
5025         * modules/wcswidth: New file.
5026         * lib/wchar.in.h (wcswidth): New declaration.
5027         * lib/wcswidth.c: New file.
5028         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5029         * m4/wcswidth.m4: New file.
5030         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5031         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5032         REPLACE_WCSWIDTH.
5033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5034         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5035         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5036         * doc/posix-functions/wcswidth.texi: Mention the new module.
5037
5038 2011-02-06  Bruno Haible  <bruno@clisp.org>
5039
5040         New module 'wcstok'.
5041         * modules/wcstok: New file.
5042         * lib/wchar.in.h (wcstok): New declaration.
5043         * lib/wcstok.c: New file.
5044         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5045         * m4/wcstok.m4: New file.
5046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5049         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5050         * doc/posix-functions/wcstok.texi: Mention the new module.
5051
5052 2011-02-06  Bruno Haible  <bruno@clisp.org>
5053
5054         New module 'wcsstr'.
5055         * modules/wcsstr: New file.
5056         * lib/wchar.in.h (wcsstr): New declaration.
5057         * lib/wcsstr.c: New file.
5058         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5059         * m4/wcsstr.m4: New file.
5060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5063         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5064         * doc/posix-functions/wcsstr.texi: Mention the new module.
5065
5066 2011-02-06  Bruno Haible  <bruno@clisp.org>
5067
5068         New module 'wcspbrk'.
5069         * modules/wcspbrk: New file.
5070         * lib/wchar.in.h (wcspbrk): New declaration.
5071         * lib/wcspbrk.c: New file.
5072         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5073         * m4/wcspbrk.m4: New file.
5074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5077         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5078         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5079
5080 2011-02-06  Bruno Haible  <bruno@clisp.org>
5081
5082         New module 'wcsspn'.
5083         * modules/wcsspn: New file.
5084         * lib/wchar.in.h (wcsspn): New declaration.
5085         * lib/wcsspn.c: New file.
5086         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5087         * m4/wcsspn.m4: New file.
5088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5091         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5092         * doc/posix-functions/wcsspn.texi: Mention the new module.
5093
5094 2011-02-06  Bruno Haible  <bruno@clisp.org>
5095
5096         New module 'wcscspn'.
5097         * modules/wcscspn: New file.
5098         * lib/wchar.in.h (wcscspn): New declaration.
5099         * lib/wcscspn.c: New file.
5100         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5101         * m4/wcscspn.m4: New file.
5102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5105         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5106         * doc/posix-functions/wcscspn.texi: Mention the new module.
5107
5108 2011-02-06  Bruno Haible  <bruno@clisp.org>
5109
5110         New module 'wcsrchr'.
5111         * modules/wcsrchr: New file.
5112         * lib/wchar.in.h (wcsrchr): New declaration.
5113         * lib/wcsrchr.c: New file.
5114         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5115         * m4/wcsrchr.m4: New file.
5116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5119         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5120         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5121
5122 2011-02-06  Bruno Haible  <bruno@clisp.org>
5123
5124         New module 'wcschr'.
5125         * modules/wcschr: New file.
5126         * lib/wchar.in.h (wcschr): New declaration.
5127         * lib/wcschr.c: New file.
5128         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5129         * m4/wcschr.m4: New file.
5130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5132         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5133         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5134         * doc/posix-functions/wcschr.texi: Mention the new module.
5135
5136 2011-02-06  Bruno Haible  <bruno@clisp.org>
5137
5138         New module 'wcsdup'.
5139         * modules/wcsdup: New file.
5140         * lib/wchar.in.h (wcsdup): New declaration.
5141         * lib/wcsdup.c: New file.
5142         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5143         * m4/wcsdup.m4: New file.
5144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5147         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5148         * doc/posix-functions/wcsdup.texi: Mention the new module.
5149
5150 2011-02-06  Bruno Haible  <bruno@clisp.org>
5151
5152         New module 'wcsxfrm'.
5153         * modules/wcsxfrm: New file.
5154         * lib/wchar.in.h (wcsxfrm): New declaration.
5155         * lib/wcsxfrm.c: New file.
5156         * lib/wcsxfrm-impl.h: New file.
5157         * m4/wcsxfrm.m4: New file.
5158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5161         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5162         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5163
5164 2011-02-06  Bruno Haible  <bruno@clisp.org>
5165
5166         New module 'wcscoll'.
5167         * modules/wcscoll: New file.
5168         * lib/wchar.in.h (wcscoll): New declaration.
5169         * lib/wcscoll.c: New file.
5170         * lib/wcscoll-impl.h: New file.
5171         * m4/wcscoll.m4: New file.
5172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5175         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5176         * doc/posix-functions/wcscoll.texi: Mention the new module.
5177
5178 2011-02-06  Bruno Haible  <bruno@clisp.org>
5179
5180         New module 'wcsncasecmp'.
5181         * modules/wcsncasecmp: New file.
5182         * lib/wchar.in.h (wcsncasecmp): New declaration.
5183         * lib/wcsncasecmp.c: New file.
5184         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5185         * m4/wcsncasecmp.m4: New file.
5186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5188         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5189         HAVE_WCSNCASECMP.
5190         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5191         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5192
5193 2011-02-06  Bruno Haible  <bruno@clisp.org>
5194
5195         New module 'wcscasecmp'.
5196         * modules/wcscasecmp: New file.
5197         * lib/wchar.in.h (wcscasecmp): New declaration.
5198         * lib/wcscasecmp.c: New file.
5199         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5200         * m4/wcscasecmp.m4: New file.
5201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5204         HAVE_WCSCASECMP.
5205         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5206         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5207
5208 2011-02-05  Bruno Haible  <bruno@clisp.org>
5209
5210         New module 'wcsncmp'.
5211         * modules/wcsncmp: New file.
5212         * lib/wchar.in.h (wcsncmp): New declaration.
5213         * lib/wcsncmp.c: New file.
5214         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5215         * m4/wcsncmp.m4: New file.
5216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5219         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5220         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5221
5222 2011-02-05  Bruno Haible  <bruno@clisp.org>
5223
5224         New module 'wcscmp'.
5225         * modules/wcscmp: New file.
5226         * lib/wchar.in.h (wcscmp): New declaration.
5227         * lib/wcscmp.c: New file.
5228         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5229         * m4/wcscmp.m4: New file.
5230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5233         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5234         * doc/posix-functions/wcscmp.texi: Mention the new module.
5235
5236 2011-02-05  Bruno Haible  <bruno@clisp.org>
5237
5238         New module 'wcsncat'.
5239         * modules/wcsncat: New file.
5240         * lib/wchar.in.h (wcsncat): New declaration.
5241         * lib/wcsncat.c: New file.
5242         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5243         * m4/wcsncat.m4: New file.
5244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5247         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5248         * doc/posix-functions/wcsncat.texi: Mention the new module.
5249
5250 2011-02-05  Bruno Haible  <bruno@clisp.org>
5251
5252         New module 'wcscat'.
5253         * modules/wcscat: New file.
5254         * lib/wchar.in.h (wcscat): New declaration.
5255         * lib/wcscat.c: New file.
5256         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5257         * m4/wcscat.m4: New file.
5258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5260         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5261         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5262         * doc/posix-functions/wcscat.texi: Mention the new module.
5263
5264 2011-02-05  Bruno Haible  <bruno@clisp.org>
5265
5266         New module 'wcpncpy'.
5267         * modules/wcpncpy: New file.
5268         * lib/wchar.in.h (wcpncpy): New declaration.
5269         * lib/wcpncpy.c: New file.
5270         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5271         * m4/wcpncpy.m4: New file.
5272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5274         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5275         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5276         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5277
5278 2011-02-05  Bruno Haible  <bruno@clisp.org>
5279
5280         New module 'wcsncpy'.
5281         * modules/wcsncpy: New file.
5282         * lib/wchar.in.h (wcsncpy): New declaration.
5283         * lib/wcsncpy.c: New file.
5284         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5285         * m4/wcsncpy.m4: New file.
5286         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5287         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5288         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5289         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5290         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5291
5292 2011-02-05  Bruno Haible  <bruno@clisp.org>
5293
5294         New module 'wcpcpy'.
5295         * modules/wcpcpy: New file.
5296         * lib/wchar.in.h (wcpcpy): New declaration.
5297         * lib/wcpcpy.c: New file.
5298         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5299         * m4/wcpcpy.m4: New file.
5300         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5301         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5302         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5303         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5304         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5305
5306 2011-02-05  Bruno Haible  <bruno@clisp.org>
5307
5308         New module 'wcscpy'.
5309         * modules/wcscpy: New file.
5310         * lib/wchar.in.h (wcscpy): New declaration.
5311         * lib/wcscpy.c: New file.
5312         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5313         * m4/wcscpy.m4: New file.
5314         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5315         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5316         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5317         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5318         * doc/posix-functions/wcscpy.texi: Mention the new module.
5319
5320 2011-02-05  Bruno Haible  <bruno@clisp.org>
5321
5322         New module 'wcsnlen'.
5323         * modules/wcsnlen: New file.
5324         * lib/wchar.in.h (wcsnlen): New declaration.
5325         * lib/wcsnlen.c: New file.
5326         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5327         * m4/wcsnlen.m4: New file.
5328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5330         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5331         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5332         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5333
5334 2011-02-05  Bruno Haible  <bruno@clisp.org>
5335
5336         New module 'wcslen'.
5337         * modules/wcslen: New file.
5338         * lib/wchar.in.h (wcslen): New declaration.
5339         * lib/wcslen.c: New file.
5340         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5341         * m4/wcslen.m4: New file.
5342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5345         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5346         * doc/posix-functions/wcslen.texi: Mention the new module.
5347
5348 2011-02-05  Bruno Haible  <bruno@clisp.org>
5349
5350         New module 'wmemset'.
5351         * modules/wmemset: New file.
5352         * lib/wchar.in.h (wmemset): New declaration.
5353         * lib/wmemset.c: New file.
5354         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5355         * m4/wmemset.m4: New file.
5356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5358         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5359         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5360         * doc/posix-functions/wmemset.texi: Mention the new module.
5361
5362 2011-02-05  Bruno Haible  <bruno@clisp.org>
5363
5364         New module 'wmemmove'.
5365         * modules/wmemmove: New file.
5366         * lib/wchar.in.h (wmemmove): New declaration.
5367         * lib/wmemmove.c: New file.
5368         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5369         * m4/wmemmove.m4: New file.
5370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5372         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5373         HAVE_WMEMMOVE.
5374         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5375         * doc/posix-functions/wmemmove.texi: Mention the new module.
5376
5377 2011-02-05  Bruno Haible  <bruno@clisp.org>
5378
5379         New module 'wmemcpy'.
5380         * modules/wmemcpy: New file.
5381         * lib/wchar.in.h (wmemcpy): New declaration.
5382         * lib/wmemcpy.c: New file.
5383         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5384         * m4/wmemcpy.m4: New file.
5385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5387         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5388         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5389         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5390
5391 2011-02-05  Bruno Haible  <bruno@clisp.org>
5392
5393         New module 'wmemcmp'.
5394         * modules/wmemcmp: New file.
5395         * lib/wchar.in.h (wmemcmp): New declaration.
5396         * lib/wmemcmp.c: New file.
5397         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5398         * m4/wmemcmp.m4: New file.
5399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5401         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5402         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5403         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5404
5405 2011-02-07  Jim Meyering  <meyering@redhat.com>
5406
5407         di-set, ino-map: new modules, from coreutils
5408         * lib/di-set.c: New file.
5409         * lib/di-set.h: Likewise.
5410         * lib/ino-map.c: Likewise.
5411         * lib/ino-map.h: Likewise.
5412         * modules/di-set: Likewise.
5413         * modules/di-set-tests: Likewise.
5414         * modules/ino-map: Likewise.
5415         * modules/ino-map-tests: Likewise.
5416         * tests/test-di-set.c: Likewise.
5417         * tests/test-ino-map.c: Likewise.
5418
5419 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5420
5421         getloadavg: merge minor changes from Emacs
5422
5423         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5424         (getloadavg): Use memset, not bzero.
5425
5426         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5427         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5428         clash (bug#86).
5429
5430 2010-11-14  Bruno Haible  <bruno@clisp.org>
5431
5432         Allow multiple gnulib generated replacements to coexist.
5433         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5434         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5435         * lib/langinfo.in.h (nl_item): Likewise.
5436         * lib/math.in.h (_NaN, NAN): Likewise.
5437         * lib/netdb.in.h (struct addrinfo): Likewise.
5438         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5439         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5440         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5441         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5442         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5443         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5444         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5445         pthread_mutexattr_init, pthread_mutexattr_settype,
5446         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5447         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5448         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5449         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5450         * lib/sched.in.h (struct sched_param): Likewise.
5451         * lib/se-selinux.in.h (security_class_t, security_context_t,
5452         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5453         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5454         lsetfilecon, fsetfilecon, security_check_context,
5455         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5456         Likewise.
5457         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5458         Likewise.
5459         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5460         _gl_function_taking_int_returning_void_t, union sigval,
5461         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5462         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5463         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5464         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5465         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5466         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5467         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5468         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5469         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5470         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5471         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5472         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5473         socklen_t, rpl_fd_isset): Likewise.
5474         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5475         * lib/sys_time.in.h (struct timeval): Likewise.
5476         * lib/sys_times.in.h (struct tms): Likewise.
5477         * lib/sys_utsname.in.h (struct utsname):
5478         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5479         * lib/unistd.in.h (getpagesize): Likewise.
5480         * lib/wchar.in.h (mbstate_t): Likewise.
5481         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5482         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5483         towlower, towupper): Likewise.
5484         Reported by Sam Steingold <sds@gnu.org>.
5485
5486 2011-02-05  Eric Blake  <eblake@redhat.com>
5487
5488         unsetenv: work around Haiku issues
5489         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5490         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5491
5492 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5493
5494         libposix: avoid calling error() within libposix
5495         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5496         is defined.
5497
5498 2011-02-05  Eric Blake  <eblake@redhat.com>
5499
5500         strerror_r-posix: port to cygwin
5501         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5502         implementation.
5503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5504         * tests/test-strerror_r.c (main): Fix test.
5505         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5506         issue.
5507
5508 2011-02-05  Bruno Haible  <bruno@clisp.org>
5509
5510         New module 'wmemchr'.
5511         * modules/wmemchr: New file.
5512         * lib/wchar.in.h (wmemchr): New declaration.
5513         * lib/wmemchr.c: New file.
5514         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5515         * m4/wmemchr.m4: New file.
5516         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5517         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5518         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5519         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5520         * doc/posix-functions/wmemchr.texi: Mention the new module.
5521
5522 2011-02-04  Eric Blake  <eblake@redhat.com>
5523
5524         fdopendir: detect FreeBSD bug
5525         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5526         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5527
5528 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5529
5530         stdbool: do not define HAVE_STDBOOL_H
5531         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5532         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5533         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5534         imported from the latest Autoconf git.  It was motivated by Emacs,
5535         which uses gnulib but does not need HAVE_STDBOOL_H.
5536
5537 2011-02-04  Bruno Haible  <bruno@clisp.org>
5538
5539         wcsnrtombs: Prepare for new module wwcsnrtombs.
5540         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5541         * lib/wcsnrtombs.c: Include it.
5542         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5543
5544         wcsrtombs: Prepare for new module wwcsrtombs.
5545         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5546         * lib/wcsrtombs.c: Include it.
5547         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5548
5549         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5550         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5551         * lib/mbsnrtowcs.c: Include it.
5552         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5553
5554         mbsrtowcs: Prepare for new module mbsrtowwcs.
5555         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5556         * lib/mbsrtowcs.c: Include it.
5557         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5558
5559 2011-02-04  Bruno Haible  <bruno@clisp.org>
5560
5561         vasnprintf: Reduce use of malloc for small format strings.
5562         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5563         (arguments): Add room for the first 7 arguments.
5564         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5565         (char_directives, u8_directives, u16_directives, u32_directives): Add
5566         room for the first 7 directives.
5567         * lib/printf-parse.c: Include <string.h>.
5568         (PRINTF_PARSE): Change memory handling code so that it uses the first
5569         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5570         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5571         Reported by Pádraig Brady <P@draigbrady.com>.
5572
5573 2011-01-31  Eric Blake  <eblake@redhat.com>
5574
5575         dup2: work around Haiku bug
5576         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5577         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5578         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5579         * tests/test-dup2.c (main): Enhance test.
5580
5581 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5582
5583         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5584         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5585         declared by eglibc 2.11.2.
5586         * lib/stdio.in.h: Likewise.
5587
5588 2011-01-31  Eric Blake  <eblake@redhat.com>
5589
5590         ignore-value: add missing test dependency
5591         * tests/test-ignore-value.c: Revert previous change; stdio.h
5592         provides off_t.
5593         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5594
5595 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5596
5597         mktime: clarify long_int width checking
5598         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5599         the top level, to make it clearer that the assumption about
5600         long_int width is being checked.  See
5601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5602
5603 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5604
5605         ignore-value: Fix self-test.
5606         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5607
5608 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5609
5610         TYPE_MAXIMUM: avoid theoretically undefined behavior
5611         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5612         negative number, which the C Standard says has undefined behavior.
5613         In practice this is not a problem, but might as well do it by the book.
5614         Reported by Rich Felker and Eric Blake; see
5615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5616         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5617         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5619         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5620         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5621         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5622
5623         mktime: #undef mktime before #defining it
5624         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5625
5626         mktime: systematically normalize tm_isdst comparisons
5627         * lib/mktime.c (isdst_differ): New function.
5628         (__mktime_internal): Use it systematically for all isdst comparisons.
5629         This completes the fix for libc BZ #6723, and removes the need for
5630         normalizing tm_isdst.  See
5631         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5632         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5633
5634         mktime: fix some integer overflow issues and sidestep the rest
5635
5636         This was prompted by a bug report by Benjamin Lindner for MinGW
5637         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5638         His bug is due to signed integer overflow (0 - INT_MIN), and I
5639         I scanned through mktime.c looking for other integer overflow
5640         problems, fixing all the bugs I found.
5641
5642         Although the C Standard says the resulting code is still not safe
5643         in the presence of integer overflow, in practice it should be good
5644         enough for all real-world two's-complement implementations, except
5645         for debugging environments that deliberately trap on integer
5646         overflow (e.g., gcc -ftrapv).
5647
5648         * lib/mktime.c (WRAPV): New macro.
5649         (SHR): Also check that long_int and time_t shift right in the
5650         usual way, before using the fast-but-unportable method.
5651         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5652         used.  The code already assumed two's complement, so there's
5653         no need to test for alternatives.  All uses removed.
5654         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5655         the C standard.  Problem reported by Rich Felker in
5656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5657         (twos_complement_arithmetic): Also check long_int and time_t.
5658         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5659         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5660         (__mktime_internal): Avoid integer overflow with unary subtraction
5661         in two instances where -1 - X is an adequate replacement for -X,
5662         since the calculations are approximate.
5663
5664 2011-01-29  Eric Blake  <eblake@redhat.com>
5665
5666         mktime: avoid infinite loop
5667         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5668         type; behavior is still undefined but portable to all known targets.
5669         Reported by Rich Felker.
5670
5671 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5672
5673         rename, unlink, same-inode: Relicense.
5674         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5675         * modules/unlink (License): Likewise.
5676         * modules/same-inode (License): Likewise.
5677
5678 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5679
5680         mktime: avoid problems on NetBSD 5 / i386
5681         * lib/mktime.c (long_int): New type.  This works around a problem
5682         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5683         but time_t is 64 bits, and where I expect the existing code is
5684         wrong in some cases.
5685         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5686         (ydhms_diff): Bring back the compile-time check for wide-enough
5687         year and yday.
5688
5689         mktime: fix misspelling in comment
5690         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5691         This merges all recent glibc changes of importance.
5692
5693 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5694
5695         move-if-change: cope with concurrent mv of identical file.
5696         * build-aux/move-if-change (CMPPROG): Accept environment
5697         variable as an override for `cmp'.
5698         (usage): Document CMPPROG.
5699         Adjust comparison to drop stdout.  Cope with failure of mv if
5700         the target file exists and is identical to the source, for
5701         parallel builds.
5702         Report from H.J. Lu against binutils in PR binutils/12283.
5703
5704 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5705
5706         * users.txt: Mention sharutils.
5707
5708 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5709
5710         * users.txt: Mention OATH Toolkit.
5711
5712 2011-01-27  Bruno Haible  <bruno@clisp.org>
5713
5714         Prepare for supporting FreeBSD 10.
5715         * build-aux/config.libpath: Remove handling of freebsd1*.
5716
5717 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5718
5719         Prepare for supporting FreeBSD 10.
5720         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5721         match FreeBSD 10.0.
5722
5723 2011-01-27  Bruno Haible  <bruno@clisp.org>
5724
5725         vma-iter, get-rusage-as: Add OpenBSD support.
5726         * modules/vma-iter (configure.ac): Test for mquery.
5727         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5728         * lib/vma-iter.c: Include <sys/mman.h>.
5729         (vma_iterate): Add an implementation based on mquery().
5730         * lib/resource-ext.h (get_rusage_as): Update comments.
5731         * lib/get-rusage-as.c: Likewise.
5732         * lib/get-rusage-data.c: Likewise.
5733
5734 2011-01-26  Karl Berry  <karl@gnu.org>
5735
5736         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5737         variables to make it easier to override the makeinfo program used.
5738
5739 2011-01-26  Eric Blake  <eblake@redhat.com>
5740
5741         fcntl: work around Haiku F_DUPFD bugs
5742         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5743         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5744         cloexec bit on duplication.
5745         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5746
5747 2011-01-26  Bruno Haible  <bruno@clisp.org>
5748
5749         Enable memory leak tests on AIX.
5750         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5751         * tests/test-fprintf-posix3.c (main): Likewise.
5752
5753 2011-01-26  Bruno Haible  <bruno@clisp.org>
5754
5755         Tests for module 'get-rusage-data'.
5756         * modules/get-rusage-data-tests: New file.
5757         * tests/test-get-rusage-data.c: New file.
5758
5759         New module 'get-rusage-data'.
5760         * lib/resource-ext.h (get_rusage_data): New declaration.
5761         * lib/get-rusage-data.c: New file.
5762         * modules/get-rusage-data: New file.
5763
5764 2011-01-25  Bruno Haible  <bruno@clisp.org>
5765
5766         get-rusage-as: Allow for easier testing.
5767         * lib/resource-ext.h (get_rusage_as): Add comment.
5768         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5769         (main): New function for interactive testing.
5770
5771 2011-01-25  Bruno Haible  <bruno@clisp.org>
5772
5773         vma-iter: Treat Haiku like BeOS.
5774         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5775         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5776
5777 2011-01-25  Eric Blake  <eblake@redhat.com>
5778
5779         c-stack: fix regression on cygwin when libsigsegv is present
5780         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5781
5782 2011-01-24  Bruno Haible  <bruno@clisp.org>
5783
5784         vma-iter: Avoid empty intervals.
5785         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5786         on an empty interval.
5787
5788 2011-01-24  Jim Meyering  <meyering@redhat.com>
5789
5790         u64: remove unnecessary #include
5791         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5792
5793 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5794
5795         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5796         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5797
5798 2011-01-23  Bruno Haible  <bruno@clisp.org>
5799
5800         New module 'vma-iter'.
5801         * lib/vma-iter.h: New file.
5802         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5803         * modules/vma-iter: New file.
5804         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5805         for get_rusage_as_via_iterator.
5806         (vma_iterate_callback): New function.
5807         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5808         * modules/get-rusage-as (Depends-on): Add vma-iter.
5809
5810 2011-01-23  Bruno Haible  <bruno@clisp.org>
5811
5812         uninorm: Tweak includes.
5813         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5814         Reported by Jim Meyering.
5815
5816 2011-01-23  Bruno Haible  <bruno@clisp.org>
5817
5818         get-rusage-as: Improve on NetBSD.
5819         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5820         /proc, like on FreeBSD.
5821
5822 2011-01-23  Jim Meyering  <meyering@redhat.com>
5823
5824         xreadlink.h: remove unnecessary #include
5825         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5826
5827         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5828         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5829
5830 2011-01-23  Bruno Haible  <bruno@clisp.org>
5831
5832         get-rusage-as: Fix bug.
5833         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5834         original limit when aborting the first loop.
5835
5836 2011-01-23  Bruno Haible  <bruno@clisp.org>
5837
5838         wctype: Ensure valid C syntax.
5839         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5840         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5841
5842 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5843
5844         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5845         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5846         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5847         as they are needed only for configure's test case.
5848         This removes two unnecessary symbols from config.h.
5849
5850         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5851         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5853         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5854         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5855         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5856         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5857         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5858         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5859         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5860         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5861         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5862         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5863         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5864         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5865         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5866         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5867         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5868
5869 2011-01-21  Eric Blake  <eblake@redhat.com>
5870
5871         maintainer-makefile: work with older git for submodule check
5872         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5873         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5874         Reported by Matthias Bolte.
5875
5876         bootstrap: minor portability fixes
5877         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5878         (usage): Omit leading capital and trailing . on help phrases, per
5879         GNU Coding Standards.
5880         (check_versions, top level): Prefix messages with script name.
5881
5882 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5883
5884         bootstrap: support --no-git option
5885         * build-aux/bootstrap: Add --no-git option, to be used when
5886         --gnulib-srcdir points to the exact desired checkout.
5887
5888 2011-01-21  Eric Blake  <eblake@redhat.com>
5889
5890         strerror_r-posix: work with glibc 2.13
5891         * lib/strerror_r.c (strerror_r): Fix return type.
5892
5893 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5894             Bruno Haible  <bruno@clisp.org>
5895
5896         uN_strstr: New unit tests.
5897         * modules/unistr/u8-strstr-tests: New file.
5898         * modules/unistr/u16-strstr-tests: New file.
5899         * modules/unistr/u32-strstr-tests: New file.
5900         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5901         * tests/unistr/test-u8-strstr.c: New file.
5902         * tests/unistr/test-u16-strstr.c: New file.
5903         * tests/unistr/test-u32-strstr.c: New file.
5904
5905 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5906             Bruno Haible  <bruno@clisp.org>
5907
5908         Make uN_strstr functions O(n) worst-case.
5909         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5910         16-bit and 32-bit unit cases, use the unibyte algorithm from
5911         lib/mbsstr.c.
5912         * lib/unistr/u8-strstr.c: Include <string.h>.
5913         (UNIT_IS_UINT8_T): New macro.
5914         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5915         (U_STRLEN, U_STRNLEN): New macros.
5916         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5917         (U_STRLEN, U_STRNLEN): New macros.
5918         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5919         (configure.ac): Update required libunistring version.
5920         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5921         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5922         malloca.
5923         (configure.ac): Update required libunistring version.
5924         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5925         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5926         malloca.
5927         (configure.ac): Update required libunistring version.
5928
5929 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5930             Bruno Haible  <bruno@clisp.org>
5931
5932         Prepare for faster uN_strstr functions.
5933         * lib/str-kmp.h: Support definable UNITs.
5934         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5935         needle_len argument.
5936         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5937         * lib/mbscasestr.c (mbscasestr): Likewise.
5938
5939 2011-01-21  Pádraig Brady <P@draigBrady.com>
5940
5941         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5942         * tests/test-malloca.c (main): Unset the environment variable
5943         to greatly speed up the test.
5944         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5945         * modules/malloca-tests: Depend on unsetenv.
5946
5947 2011-01-21  Pádraig Brady <P@draigBrady.com>
5948
5949         ignore-value: remove stdint dependency
5950         * lib/ignore-value.h: Remove <stdint.h>
5951         * modules/ignore-value: Remove stdint dependency.
5952
5953 2011-01-21  Jim Meyering  <meyering@redhat.com>
5954
5955         maint.mk: adjust variable name to be consistent with other gl_ vars
5956         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5957         to be lower case.
5958
5959 2011-01-20  Jim Meyering  <meyering@redhat.com>
5960
5961         maint.mk: make "check" depend on public-submodule-commit by default
5962         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5963
5964 2011-01-20  Bruno Haible  <bruno@clisp.org>
5965
5966         mbfile, mbiter: Complete change from 2008-12-21.
5967         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5968         * m4/mbiter.m4 (gl_MBITER): Likewise.
5969
5970 2011-01-20  Jim Meyering  <meyering@redhat.com>
5971
5972         init.sh: insert space between each function name and "()"
5973         * tests/init.sh: Make it a little easier to see that a function's
5974         name is "warn_", and not "warn" when looking at the first part of
5975         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5976
5977 2011-01-20  Jim Meyering  <meyering@redhat.com>
5978
5979         mountlist: clean up code formatting
5980         * lib/mountlist.c (read_file_system_list): Split a long line,
5981         correct bracing style, use NULL in place of "(struct statfs *)0",
5982         don't parenthesize return value, add spaces around "=" and after
5983         ";-in-for-stmt".
5984
5985 2011-01-14  Markus Duft <mduft@gentoo.org>
5986
5987         mountlist: add support for Interix
5988         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5989         Apply statvfs to all entries of /dev/fs.
5990         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5991         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5992
5993 2011-01-20  Jim Meyering  <meyering@redhat.com>
5994
5995         maint.mk: improve the public-submodule-commit rule
5996         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5997         to suppress printing of its commands... unless V=1.
5998         Add git submodule's --quiet option to suppress printing of e.g.,
5999         "Entering gnulib" output.
6000         "cd" into $(srcdir) before running git submodule.
6001
6002 2011-01-20  Bruno Haible  <bruno@clisp.org>
6003
6004         include_next: Fix bug introduced on 2011-01-18.
6005         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6006         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6007         ac_cv_header_... variable if the second argument is not 'check'.
6008         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6009         gl_NEXT_HEADERS_INTERNAL.
6010
6011 2011-01-20  Bruno Haible  <bruno@clisp.org>
6012
6013         Allow the user to avoid the GNULIB_TEST_* macros.
6014         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6015         Suggested by Paul Eggert.
6016
6017 2011-01-14  Jim Meyering  <meyering@redhat.com>
6018
6019         bootstrap: avoid failure when there is no .gitmodules file
6020         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6021         has been assigned to, even when its value is the empty string.
6022         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6023         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6024         Reported by John W. Eaton <jwe@gnu.org>.
6025
6026 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6027
6028         assume <ctype.h>, ..., <time.h> exist
6029         For years gnulib has been assuming the existence of the headers
6030         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6031         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6032         them, since they don't appear to be needed.
6033         * README (Portability guidelines): Document this.
6034         * lib/flock.c: Assume <fcntl.h> exists.
6035         * lib/regex_internal.h: Assume <locale.h> exists.
6036         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6037         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6038         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6039         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6040         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6041         * m4/regex.m4 (gl_REGEX): Likewise.
6042         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6043         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6044         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6045         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6046         * tests/test-argp.c: Likewise.
6047         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6048
6049         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6050         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6051         AA_APPLE_UNIVERSAL_BUILD.  See
6052         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6053         * NEWS: Document this.
6054
6055 2011-01-19  Eric Blake  <eblake@redhat.com>
6056
6057         c-stack: assume stack overflow if SA_SIGINFO unsupported
6058         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6059         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6060         sigaction will work.
6061         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6062         behavior match Linux.
6063         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6064
6065         stdbool-tests: accomodate Haiku
6066         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6067
6068         binary-io: fix O_TEXT on Haiku
6069         * modules/binary-io (Depends-on): Add fcntl-h.
6070         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6071         than blindly undefining O_TEXT.
6072         Reported by Scott McCreary.
6073
6074 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6075
6076         include_next: do not check for standard headers like stddef.h
6077
6078         I found this problem when modifying Emacs to use gnulib.
6079         I noticed that it added HAVE_STDDEF_H to config.h, even though
6080         gnulib always assumes <stddef.h> exists as per README and this
6081         symbol is unnecessary.
6082         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6083         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6084         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6085         faster for headers like stddef.h that are known to exist.
6086         (gl_CHECK_NEXT_HEADERS): Use it.
6087         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6088         rather than gl_CHECK_NEXT_HEADERS.
6089         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6090         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6091
6092 2011-01-18  Eric Blake  <eblake@redhat.com>
6093
6094         ansi-c++-opt: skip C++ dependency style if C++ is unused
6095         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6096         tests when we know C++ compilation is not desired.
6097         Reported by Scott McCreary.
6098
6099 2011-01-18  Bruno Haible  <bruno@clisp.org>
6100
6101         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6102         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6103         (main): Perform test also when getrlimit and setrlimit don't exist or
6104         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6105         limiting the address space size using setrlimit, compare the address
6106         space size before and after the the test.
6107         * tests/test-dprintf-posix2.c: Likewise.
6108         * tests/test-fprintf-posix3.sh: Update skip messages.
6109         * tests/test-dprintf-posix2.sh: Likewise.
6110         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6111         * modules/dprintf-posix-tests (Depends-on): Likewise.
6112         Reported by Bruce Korb <bkorb@gnu.org> and
6113         Gary V. Vaughan <gary@gnu.org>.
6114
6115 2011-01-18  Bruno Haible  <bruno@clisp.org>
6116
6117         get-rusage-as: Improvement for Cygwin.
6118         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6119         areas that are merely reserved.
6120
6121 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6122
6123         strftime: remove dependencies on multibyte modules
6124
6125         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6126         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6127         only if __osf__ is defined, and I suspect OSF doesn't need these
6128         other modules.  If my guess is wrong, we'll need to come up with a
6129         variant of strftime that doesn't need the multibyte modules.
6130
6131         I discovered this problem when attempting modify Emacs to use the
6132         strftime module.  With the previous gnulib, this caused Emacs to
6133         need 31 new files, ranging from lib/config.charset to
6134         m4/wint_t.m4.  This was overkill and I expect would be offputting
6135         to the Emacs maintainers.  After this change, only 6 new files are
6136         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6137         stdbool.m4, and tm_gmtoff.m4.
6138
6139         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6140         Suggested by Bruno Haible in
6141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6142         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6143         and do not check for wchar.h.
6144         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6145         (Depends-on): Remove mbrlen, mbsinit, wchar.
6146
6147 2011-01-18  Bruno Haible  <bruno@clisp.org>
6148
6149         Tests for module 'get-rusage-as'.
6150         * modules/get-rusage-as-tests: New file.
6151         * tests/test-get-rusage-as.c: New file.
6152
6153         New module 'get-rusage-as'.
6154         * modules/get-rusage-as: New file.
6155         * lib/resource-ext.h: New file.
6156         * lib/get-rusage-as.c: New file.
6157
6158 2011-01-17  Eric Blake  <eblake@redhat.com>
6159
6160         sigaction: relax license from LGPLv3+ to LGPLv2+
6161         * modules/sigaction (License): Relax to LGPLv2+.
6162
6163 2011-01-14  Bruno Haible  <bruno@clisp.org>
6164
6165         filemode: Make function declarations usable in C++ mode.
6166         * lib/filemode.h: Enclose function declarations in extern "C" block.
6167         Reported by John W. Eaton <jwe@gnu.org>.
6168
6169 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6170
6171         save-cwd: no longer include "xgetcwd.h"
6172         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6173         This avoids a compilation failure in projects that use save-cwd
6174         without also using the xgetcwd module.
6175
6176 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6177
6178         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6179         This is so that a program like Emacs, which needs only dtoastr,
6180         does not have to bother with distributing and compiling ftoastr
6181         and ldtoastr.
6182         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6183         * modules/dtoastr, modules/ldtoastr: New files.
6184         * modules/ftoastr: Now works just for 'float'.
6185         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6186         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6187         dtoastr.c, ldtoastr.c.
6188
6189 2011-01-11  Jim Meyering  <meyering@redhat.com>
6190
6191         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6192         There is no need to work around the lack of the fchdir function,
6193         since gnulib can now provide a replacement when required.
6194         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6195         * modules/save-cwd (Depends-on): Add fchdir.
6196
6197 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6198
6199         openat, save-cwd: avoid xmalloc
6200
6201         This removes a direct (but undocumented) dependency of openat on
6202         xalloc, along with an indirect dependency via save-cwd.  It also
6203         removes a dependency of save-cwd on xgetcwd, and thereby
6204         indirectly on xalloc.  This change causes the openat substitute
6205         to fall back on save_cwd when memory is tight, and for save_cwd to
6206         fail instead of dying when memory is tight, but that's good enough.
6207         Problem and initial idea for fix reported by Bastien Roucaries in
6208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6209
6210         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6211         xalloc.h (for xmalloc).
6212         (openat_proc_name): Use malloc, not xmalloc.
6213         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6214         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6215
6216         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6217         This avoids heap allocation for file names whose lengths are in
6218         the range 512..1023, with the upper bound increasing to at most
6219         4031 depending on the platform's PATH_MAX.  (We do not want
6220         pathmax.h here as it might supply a non-constant PATH_MAX.)
6221         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6222         Perhaps they should be moved to malloca.h?
6223         (OPENAT_BUFFER_SIZE): Use them.
6224
6225 2011-01-10  Bruno Haible  <bruno@clisp.org>
6226
6227         doc: Update users.txt.
6228         * users.txt: Add recutils.
6229
6230 2011-01-09  Karl Berry  <karl@gnu.org>
6231
6232         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6233
6234         * doc/configmake.texi: New file.
6235         * doc/gnulib.texi: Include it.
6236         * modules/configmake: Move documentation from here.
6237
6238 2011-01-09  Bruno Haible  <bruno@clisp.org>
6239
6240         Update to Unicode 6.0.0.
6241         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6242         (get_lbp): Update for Unicode 6.0.0.
6243         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6244         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6245         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6246         U+11001, U+11038..U+11046. Remove U+06DE.
6247         (uc_width): Fix bounds of planes.
6248         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6249         lib/uniwidth/width.c.
6250         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6251         trailing whitespace removed.
6252         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6253         without comments, but with the original copyright notice.
6254         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6255         * lib/unicase/ignorable.h: Likewise.
6256         * lib/unicase/tocasefold.h: Likewise.
6257         * lib/unicase/tolower.h: Likewise.
6258         * lib/unicase/totitle.h: Likewise.
6259         * lib/unicase/toupper.h: Likewise.
6260         * lib/unictype/bidi_of.h: Likewise.
6261         * lib/unictype/blocks.h: Likewise.
6262         * lib/unictype/categ_C.h: Likewise.
6263         * lib/unictype/categ_Cn.h: Likewise.
6264         * lib/unictype/categ_L.h: Likewise.
6265         * lib/unictype/categ_Ll.h: Likewise.
6266         * lib/unictype/categ_Lm.h: Likewise.
6267         * lib/unictype/categ_Lo.h: Likewise.
6268         * lib/unictype/categ_Lu.h: Likewise.
6269         * lib/unictype/categ_M.h: Likewise.
6270         * lib/unictype/categ_Mc.h: Likewise.
6271         * lib/unictype/categ_Me.h: Likewise.
6272         * lib/unictype/categ_Mn.h: Likewise.
6273         * lib/unictype/categ_N.h: Likewise.
6274         * lib/unictype/categ_Nd.h: Likewise.
6275         * lib/unictype/categ_No.h: Likewise.
6276         * lib/unictype/categ_P.h: Likewise.
6277         * lib/unictype/categ_Po.h: Likewise.
6278         * lib/unictype/categ_S.h: Likewise.
6279         * lib/unictype/categ_Sc.h: Likewise.
6280         * lib/unictype/categ_Sk.h: Likewise.
6281         * lib/unictype/categ_Sm.h: Likewise.
6282         * lib/unictype/categ_So.h: Likewise.
6283         * lib/unictype/categ_of.h: Likewise.
6284         * lib/unictype/combining.h: Likewise.
6285         * lib/unictype/ctype_alnum.h: Likewise.
6286         * lib/unictype/ctype_alpha.h: Likewise.
6287         * lib/unictype/ctype_graph.h: Likewise.
6288         * lib/unictype/ctype_lower.h: Likewise.
6289         * lib/unictype/ctype_print.h: Likewise.
6290         * lib/unictype/ctype_punct.h: Likewise.
6291         * lib/unictype/ctype_upper.h: Likewise.
6292         * lib/unictype/decdigit.h: Likewise.
6293         * lib/unictype/digit.h: Likewise.
6294         * lib/unictype/numeric.h: Likewise.
6295         * lib/unictype/pr_alphabetic.h: Likewise.
6296         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6297         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6298         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6299         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6300         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6301         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6302         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6303         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6304         * lib/unictype/pr_case_ignorable.h: Likewise.
6305         * lib/unictype/pr_cased.h: Likewise.
6306         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6307         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6308         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6309         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6310         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6311         * lib/unictype/pr_combining.h: Likewise.
6312         * lib/unictype/pr_composite.h: Likewise.
6313         * lib/unictype/pr_currency_symbol.h: Likewise.
6314         * lib/unictype/pr_decimal_digit.h: Likewise.
6315         * lib/unictype/pr_deprecated.h: Likewise.
6316         * lib/unictype/pr_format_control.h: Likewise.
6317         * lib/unictype/pr_grapheme_base.h: Likewise.
6318         * lib/unictype/pr_grapheme_extend.h: Likewise.
6319         * lib/unictype/pr_grapheme_link.h: Likewise.
6320         * lib/unictype/pr_id_continue.h: Likewise.
6321         * lib/unictype/pr_id_start.h: Likewise.
6322         * lib/unictype/pr_ideographic.h: Likewise.
6323         * lib/unictype/pr_lowercase.h: Likewise.
6324         * lib/unictype/pr_math.h: Likewise.
6325         * lib/unictype/pr_numeric.h: Likewise.
6326         * lib/unictype/pr_other_alphabetic.h: Likewise.
6327         * lib/unictype/pr_other_id_continue.h: Likewise.
6328         * lib/unictype/pr_other_math.h: Likewise.
6329         * lib/unictype/pr_punctuation.h: Likewise.
6330         * lib/unictype/pr_sentence_terminal.h: Likewise.
6331         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6332         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6333         * lib/unictype/pr_unified_ideograph.h: Likewise.
6334         * lib/unictype/pr_uppercase.h: Likewise.
6335         * lib/unictype/pr_xid_continue.h: Likewise.
6336         * lib/unictype/pr_xid_start.h: Likewise.
6337         * lib/unictype/scripts.h: Likewise.
6338         * lib/unictype/scripts_byname.gperf: Likewise.
6339         * lib/unictype/sy_java_ident.h: Likewise.
6340         * lib/unigbrk/gbrkprop.h: Likewise.
6341         * lib/unilbrk/lbrkprop1.h: Likewise.
6342         * lib/unilbrk/lbrkprop2.h: Likewise.
6343         * lib/uninorm/decomposition-table2.h: Likewise.
6344         * lib/uniwbrk/wbrkprop.h: Likewise.
6345         * tests/unicase/test-cased.c: Likewise.
6346         * tests/unicase/test-ignorable.c: Likewise.
6347         * tests/unicase/test-uc_tolower.c: Likewise.
6348         * tests/unicase/test-uc_totitle.c: Likewise.
6349         * tests/unicase/test-uc_toupper.c: Likewise.
6350         * tests/unictype/test-categ_C.c: Likewise.
6351         * tests/unictype/test-categ_Cn.c: Likewise.
6352         * tests/unictype/test-categ_L.c: Likewise.
6353         * tests/unictype/test-categ_Ll.c: Likewise.
6354         * tests/unictype/test-categ_Lm.c: Likewise.
6355         * tests/unictype/test-categ_Lo.c: Likewise.
6356         * tests/unictype/test-categ_Lu.c: Likewise.
6357         * tests/unictype/test-categ_M.c: Likewise.
6358         * tests/unictype/test-categ_Mc.c: Likewise.
6359         * tests/unictype/test-categ_Me.c: Likewise.
6360         * tests/unictype/test-categ_Mn.c: Likewise.
6361         * tests/unictype/test-categ_N.c: Likewise.
6362         * tests/unictype/test-categ_Nd.c: Likewise.
6363         * tests/unictype/test-categ_No.c: Likewise.
6364         * tests/unictype/test-categ_P.c: Likewise.
6365         * tests/unictype/test-categ_Po.c: Likewise.
6366         * tests/unictype/test-categ_S.c: Likewise.
6367         * tests/unictype/test-categ_Sc.c: Likewise.
6368         * tests/unictype/test-categ_Sk.c: Likewise.
6369         * tests/unictype/test-categ_Sm.c: Likewise.
6370         * tests/unictype/test-categ_So.c: Likewise.
6371         * tests/unictype/test-ctype_alnum.c: Likewise.
6372         * tests/unictype/test-ctype_alpha.c: Likewise.
6373         * tests/unictype/test-ctype_graph.c: Likewise.
6374         * tests/unictype/test-ctype_lower.c: Likewise.
6375         * tests/unictype/test-ctype_print.c: Likewise.
6376         * tests/unictype/test-ctype_punct.c: Likewise.
6377         * tests/unictype/test-ctype_upper.c: Likewise.
6378         * tests/unictype/test-decdigit.h: Likewise.
6379         * tests/unictype/test-digit.h: Likewise.
6380         * tests/unictype/test-numeric.h: Likewise.
6381         * tests/unictype/test-pr_alphabetic.c: Likewise.
6382         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6383         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6384         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6385         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6386         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6387         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6388         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6389         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6390         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6391         * tests/unictype/test-pr_cased.c: Likewise.
6392         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6393         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6394         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6395         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6396         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6397         * tests/unictype/test-pr_combining.c: Likewise.
6398         * tests/unictype/test-pr_composite.c: Likewise.
6399         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6400         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6401         * tests/unictype/test-pr_deprecated.c: Likewise.
6402         * tests/unictype/test-pr_format_control.c: Likewise.
6403         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6404         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6405         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6406         * tests/unictype/test-pr_id_continue.c: Likewise.
6407         * tests/unictype/test-pr_id_start.c: Likewise.
6408         * tests/unictype/test-pr_ideographic.c: Likewise.
6409         * tests/unictype/test-pr_lowercase.c: Likewise.
6410         * tests/unictype/test-pr_math.c: Likewise.
6411         * tests/unictype/test-pr_numeric.c: Likewise.
6412         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6413         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6414         * tests/unictype/test-pr_other_math.c: Likewise.
6415         * tests/unictype/test-pr_punctuation.c: Likewise.
6416         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6417         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6418         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6419         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6420         * tests/unictype/test-pr_uppercase.c: Likewise.
6421         * tests/unictype/test-pr_xid_continue.c: Likewise.
6422         * tests/unictype/test-pr_xid_start.c: Likewise.
6423         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6424         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6425         changes.
6426         * lib/unictype/categ_Cc.h: Likewise.
6427         * lib/unictype/categ_Cf.h: Likewise.
6428         * lib/unictype/categ_Co.h: Likewise.
6429         * lib/unictype/categ_Cs.h: Likewise.
6430         * lib/unictype/categ_Lt.h: Likewise.
6431         * lib/unictype/categ_Nl.h: Likewise.
6432         * lib/unictype/categ_Pc.h: Likewise.
6433         * lib/unictype/categ_Pd.h: Likewise.
6434         * lib/unictype/categ_Pe.h: Likewise.
6435         * lib/unictype/categ_Pf.h: Likewise.
6436         * lib/unictype/categ_Pi.h: Likewise.
6437         * lib/unictype/categ_Ps.h: Likewise.
6438         * lib/unictype/categ_Z.h: Likewise.
6439         * lib/unictype/categ_Zl.h: Likewise.
6440         * lib/unictype/categ_Zp.h: Likewise.
6441         * lib/unictype/categ_Zs.h: Likewise.
6442         * lib/unictype/ctype_blank.h: Likewise.
6443         * lib/unictype/ctype_cntrl.h: Likewise.
6444         * lib/unictype/ctype_digit.h: Likewise.
6445         * lib/unictype/ctype_space.h: Likewise.
6446         * lib/unictype/ctype_xdigit.h: Likewise.
6447         * lib/unictype/mirror.h: Likewise.
6448         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6449         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6450         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6451         * lib/unictype/pr_bidi_control.h: Likewise.
6452         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6453         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6454         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6455         * lib/unictype/pr_bidi_pdf.h: Likewise.
6456         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6457         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6458         * lib/unictype/pr_dash.h: Likewise.
6459         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6460         * lib/unictype/pr_diacritic.h: Likewise.
6461         * lib/unictype/pr_extender.h: Likewise.
6462         * lib/unictype/pr_hex_digit.h: Likewise.
6463         * lib/unictype/pr_hyphen.h: Likewise.
6464         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6465         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6466         * lib/unictype/pr_ignorable_control.h: Likewise.
6467         * lib/unictype/pr_iso_control.h: Likewise.
6468         * lib/unictype/pr_join_control.h: Likewise.
6469         * lib/unictype/pr_left_of_pair.h: Likewise.
6470         * lib/unictype/pr_line_separator.h: Likewise.
6471         * lib/unictype/pr_logical_order_exception.h: Likewise.
6472         * lib/unictype/pr_non_break.h: Likewise.
6473         * lib/unictype/pr_not_a_character.h: Likewise.
6474         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6475         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6476         * lib/unictype/pr_other_id_start.h: Likewise.
6477         * lib/unictype/pr_other_lowercase.h: Likewise.
6478         * lib/unictype/pr_other_uppercase.h: Likewise.
6479         * lib/unictype/pr_paired_punctuation.h: Likewise.
6480         * lib/unictype/pr_paragraph_separator.h: Likewise.
6481         * lib/unictype/pr_pattern_syntax.h: Likewise.
6482         * lib/unictype/pr_pattern_white_space.h: Likewise.
6483         * lib/unictype/pr_private_use.h: Likewise.
6484         * lib/unictype/pr_quotation_mark.h: Likewise.
6485         * lib/unictype/pr_radical.h: Likewise.
6486         * lib/unictype/pr_soft_dotted.h: Likewise.
6487         * lib/unictype/pr_space.h: Likewise.
6488         * lib/unictype/pr_titlecase.h: Likewise.
6489         * lib/unictype/pr_variation_selector.h: Likewise.
6490         * lib/unictype/pr_white_space.h: Likewise.
6491         * lib/unictype/pr_zero_width.h: Likewise.
6492         * lib/unictype/sy_c_ident.h: Likewise.
6493         * lib/unictype/sy_c_whitespace.h: Likewise.
6494         * lib/unictype/sy_java_whitespace.h: Likewise.
6495         * lib/uninorm/composition-table.gperf: Likewise.
6496         * lib/uninorm/decomposition-table1.h: Likewise.
6497         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6498         LB8.
6499         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6500         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6501         * modules/unictype/*: Bump version number of expected libunistring
6502         version.
6503
6504 2011-01-09  Bruno Haible  <bruno@clisp.org>
6505
6506         Update to Unicode 5.2.0.
6507         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6508         trailing whitespace removed.
6509
6510 2011-01-09  Bruno Haible  <bruno@clisp.org>
6511
6512         New Unicode character properties, from Unicode 5.2.0.
6513         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6514         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6515         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6516         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6517         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6518         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6519         uc_is_property_cased, uc_is_property_case_ignorable,
6520         uc_is_property_changes_when_lowercased,
6521         uc_is_property_changes_when_uppercased,
6522         uc_is_property_changes_when_titlecased,
6523         uc_is_property_changes_when_casefolded,
6524         uc_is_property_changes_when_casemapped): New declarations.
6525         * lib/unictype/pr_byname.gperf: Add the new properties.
6526         * modules/unictype/property-byname (Depends-on): Depend on the new
6527         properties modules.
6528         * modules/unictype/property-all (Depends-on): Likewise.
6529         * MODULES.html.sh (Unicode string functions): Add
6530         unictype/property-case-ignorable, unictype/property-cased,
6531         unictype/property-changes-when-casefolded,
6532         unictype/property-changes-when-casemapped,
6533         unictype/property-changes-when-lowercased,
6534         unictype/property-changes-when-titlecased,
6535         unictype/property-changes-when-uppercased.
6536
6537         New module 'unictype/property-changes-when-casemapped'.
6538         * modules/unictype/property-changes-when-casemapped: New file.
6539         * lib/unictype/pr_changes_when_casemapped.c: New file.
6540         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6541         generated by gen-uni-tables.
6542         * modules/unictype/property-changes-when-casemapped-tests: New file.
6543         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6544         automatically generated by gen-uni-tables.
6545
6546         New module 'unictype/property-changes-when-casefolded'.
6547         * modules/unictype/property-changes-when-casefolded: New file.
6548         * lib/unictype/pr_changes_when_casefolded.c: New file.
6549         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6550         generated by gen-uni-tables.
6551         * modules/unictype/property-changes-when-casefolded-tests: New file.
6552         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6553         automatically generated by gen-uni-tables.
6554
6555         New module 'unictype/property-changes-when-titlecased'.
6556         * modules/unictype/property-changes-when-titlecased: New file.
6557         * lib/unictype/pr_changes_when_titlecased.c: New file.
6558         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6559         generated by gen-uni-tables.
6560         * modules/unictype/property-changes-when-titlecased-tests: New file.
6561         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6562         automatically generated by gen-uni-tables.
6563
6564         New module 'unictype/property-changes-when-uppercased'.
6565         * modules/unictype/property-changes-when-uppercased: New file.
6566         * lib/unictype/pr_changes_when_uppercased.c: New file.
6567         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6568         generated by gen-uni-tables.
6569         * modules/unictype/property-changes-when-uppercased-tests: New file.
6570         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6571         automatically generated by gen-uni-tables.
6572
6573         New module 'unictype/property-changes-when-lowercased'.
6574         * modules/unictype/property-changes-when-lowercased: New file.
6575         * lib/unictype/pr_changes_when_lowercased.c: New file.
6576         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6577         generated by gen-uni-tables.
6578         * modules/unictype/property-changes-when-lowercased-tests: New file.
6579         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6580         automatically generated by gen-uni-tables.
6581
6582         New module 'unictype/property-case-ignorable'.
6583         * modules/unictype/property-case-ignorable: New file.
6584         * lib/unictype/pr_case_ignorable.c: New file.
6585         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6586         by gen-uni-tables.
6587         * modules/unictype/property-case-ignorable-tests: New file.
6588         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6589         generated by gen-uni-tables.
6590
6591         New module 'unictype/property-cased'.
6592         * modules/unictype/property-cased: New file.
6593         * lib/unictype/pr_cased.c: New file.
6594         * lib/unictype/pr_cased.h: New file, automatically generated by
6595         gen-uni-tables.
6596         * modules/unictype/property-cased-tests: New file.
6597         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6598         gen-uni-tables.
6599
6600 2011-01-09  Bruno Haible  <bruno@clisp.org>
6601
6602         Update to Unicode 5.2.0.
6603         * lib/gen-uni-tables.c (output_predicate, output_category,
6604         output_combclass, output_bidi_category, output_decimal_digit_test,
6605         output_decimal_digit, output_digit_test, output_digit,
6606         output_numeric_test, output_numeric, output_mirror, output_scripts,
6607         output_scripts_byname, output_blocks, output_ident_category): Fix
6608         comment header.
6609         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6610         get_wbp.
6611         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6612         items.
6613         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6614         Changes_When_Lowercased, Changes_When_Uppercased,
6615         Changes_When_Titlecased, Changes_When_Casefolded,
6616         Changes_When_Casemapped.
6617         (is_property_alphabetic, is_property_default_ignorable_code_point):
6618         Update for Unicode 5.2.0.
6619         (is_property_cased, is_property_case_ignorable,
6620         is_property_changes_when_lowercased,
6621         is_property_changes_when_uppercased,
6622         is_property_changes_when_titlecased,
6623         is_property_changes_when_casefolded,
6624         is_property_changes_when_casemapped): New functions.
6625         (output_properties): Output also the properties cased, case_ignorable,
6626         changes_when_lowercased, changes_when_uppercased,
6627         changes_when_titlecased, changes_when_casefolded,
6628         changes_when_casemapped.
6629         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6630         Unicode TR#11 revision 17 -> 19.
6631         (LBP_CP): New enumeration value.
6632         (LBP_*): Adjust values accordingly.
6633         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6634         TR#14 revision 22 -> 24.
6635         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6636         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6637         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6638         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6639         is_WBP_MIDLETTER.
6640         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6641         the code1 and code2 of each composition rule.
6642         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6643         * lib/unicase/ignorable.h: Likewise.
6644         * lib/unicase/tocasefold.h: Likewise.
6645         * lib/unicase/tolower.h: Likewise.
6646         * lib/unicase/totitle.h: Likewise.
6647         * lib/unicase/toupper.h: Likewise.
6648         * lib/unictype/bidi_of.h: Likewise.
6649         * lib/unictype/blocks.h: Likewise.
6650         * lib/unictype/categ_C.h: Likewise.
6651         * lib/unictype/categ_Cf.h: Likewise.
6652         * lib/unictype/categ_Cn.h: Likewise.
6653         * lib/unictype/categ_L.h: Likewise.
6654         * lib/unictype/categ_Ll.h: Likewise.
6655         * lib/unictype/categ_Lm.h: Likewise.
6656         * lib/unictype/categ_Lo.h: Likewise.
6657         * lib/unictype/categ_Lu.h: Likewise.
6658         * lib/unictype/categ_M.h: Likewise.
6659         * lib/unictype/categ_Mc.h: Likewise.
6660         * lib/unictype/categ_Mn.h: Likewise.
6661         * lib/unictype/categ_N.h: Likewise.
6662         * lib/unictype/categ_Nd.h: Likewise.
6663         * lib/unictype/categ_Nl.h: Likewise.
6664         * lib/unictype/categ_No.h: Likewise.
6665         * lib/unictype/categ_P.h: Likewise.
6666         * lib/unictype/categ_Pd.h: Likewise.
6667         * lib/unictype/categ_Po.h: Likewise.
6668         * lib/unictype/categ_S.h: Likewise.
6669         * lib/unictype/categ_Sc.h: Likewise.
6670         * lib/unictype/categ_So.h: Likewise.
6671         * lib/unictype/categ_of.h: Likewise.
6672         * lib/unictype/combining.h: Likewise.
6673         * lib/unictype/ctype_alnum.h: Likewise.
6674         * lib/unictype/ctype_alpha.h: Likewise.
6675         * lib/unictype/ctype_graph.h: Likewise.
6676         * lib/unictype/ctype_lower.h: Likewise.
6677         * lib/unictype/ctype_print.h: Likewise.
6678         * lib/unictype/ctype_punct.h: Likewise.
6679         * lib/unictype/ctype_upper.h: Likewise.
6680         * lib/unictype/decdigit.h: Likewise.
6681         * lib/unictype/digit.h: Likewise.
6682         * lib/unictype/numeric.h: Likewise.
6683         * lib/unictype/pr_alphabetic.h: Likewise.
6684         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6685         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6686         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6687         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6688         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6689         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6690         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6691         * lib/unictype/pr_combining.h: Likewise.
6692         * lib/unictype/pr_composite.h: Likewise.
6693         * lib/unictype/pr_currency_symbol.h: Likewise.
6694         * lib/unictype/pr_dash.h: Likewise.
6695         * lib/unictype/pr_decimal_digit.h: Likewise.
6696         * lib/unictype/pr_deprecated.h: Likewise.
6697         * lib/unictype/pr_diacritic.h: Likewise.
6698         * lib/unictype/pr_extender.h: Likewise.
6699         * lib/unictype/pr_grapheme_base.h: Likewise.
6700         * lib/unictype/pr_grapheme_extend.h: Likewise.
6701         * lib/unictype/pr_grapheme_link.h: Likewise.
6702         * lib/unictype/pr_id_continue.h: Likewise.
6703         * lib/unictype/pr_id_start.h: Likewise.
6704         * lib/unictype/pr_ideographic.h: Likewise.
6705         * lib/unictype/pr_ignorable_control.h: Likewise.
6706         * lib/unictype/pr_logical_order_exception.h: Likewise.
6707         * lib/unictype/pr_lowercase.h: Likewise.
6708         * lib/unictype/pr_numeric.h: Likewise.
6709         * lib/unictype/pr_other_alphabetic.h: Likewise.
6710         * lib/unictype/pr_punctuation.h: Likewise.
6711         * lib/unictype/pr_sentence_terminal.h: Likewise.
6712         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6713         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6714         * lib/unictype/pr_unified_ideograph.h: Likewise.
6715         * lib/unictype/pr_uppercase.h: Likewise.
6716         * lib/unictype/pr_xid_continue.h: Likewise.
6717         * lib/unictype/pr_xid_start.h: Likewise.
6718         * lib/unictype/pr_zero_width.h: Likewise.
6719         * lib/unictype/scripts.h: Likewise.
6720         * lib/unictype/scripts_byname.gperf: Likewise.
6721         * lib/unictype/sy_java_ident.h: Likewise.
6722         * lib/unigbrk/gbrkprop.h: Likewise.
6723         * lib/unilbrk/lbrkprop1.h: Likewise.
6724         * lib/unilbrk/lbrkprop2.h: Likewise.
6725         * lib/unilbrk/lbrktables.h: Likewise.
6726         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6727         LBP_CP. Implement rule LB30.
6728         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6729         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6730         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6731         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6732         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6733         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6734         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6735         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6736         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6737         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6738         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6739         bits instead of 16 bits in the code1 and code2 of each composition
6740         rule.
6741         (uc_composition): Update for Unicode 5.2.0.
6742         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6743         * lib/uninorm/decomposition-table2.h: Likewise.
6744         * lib/uniwbrk/wbrkprop.h: Likewise.
6745         * tests/unicase/test-cased.c: Likewise.
6746         * tests/unicase/test-ignorable.c: Likewise.
6747         * tests/unicase/test-uc_tolower.c: Likewise.
6748         * tests/unicase/test-uc_totitle.c: Likewise.
6749         * tests/unicase/test-uc_toupper.c: Likewise.
6750         * tests/unictype/test-categ_C.c: Likewise.
6751         * tests/unictype/test-categ_Cf.c: Likewise.
6752         * tests/unictype/test-categ_Cn.c: Likewise.
6753         * tests/unictype/test-categ_L.c: Likewise.
6754         * tests/unictype/test-categ_Ll.c: Likewise.
6755         * tests/unictype/test-categ_Lm.c: Likewise.
6756         * tests/unictype/test-categ_Lo.c: Likewise.
6757         * tests/unictype/test-categ_Lu.c: Likewise.
6758         * tests/unictype/test-categ_M.c: Likewise.
6759         * tests/unictype/test-categ_Mc.c: Likewise.
6760         * tests/unictype/test-categ_Mn.c: Likewise.
6761         * tests/unictype/test-categ_N.c: Likewise.
6762         * tests/unictype/test-categ_Nd.c: Likewise.
6763         * tests/unictype/test-categ_Nl.c: Likewise.
6764         * tests/unictype/test-categ_No.c: Likewise.
6765         * tests/unictype/test-categ_P.c: Likewise.
6766         * tests/unictype/test-categ_Pd.c: Likewise.
6767         * tests/unictype/test-categ_Po.c: Likewise.
6768         * tests/unictype/test-categ_S.c: Likewise.
6769         * tests/unictype/test-categ_Sc.c: Likewise.
6770         * tests/unictype/test-categ_So.c: Likewise.
6771         * tests/unictype/test-ctype_alnum.c: Likewise.
6772         * tests/unictype/test-ctype_alpha.c: Likewise.
6773         * tests/unictype/test-ctype_graph.c: Likewise.
6774         * tests/unictype/test-ctype_lower.c: Likewise.
6775         * tests/unictype/test-ctype_print.c: Likewise.
6776         * tests/unictype/test-ctype_punct.c: Likewise.
6777         * tests/unictype/test-ctype_upper.c: Likewise.
6778         * tests/unictype/test-decdigit.h: Likewise.
6779         * tests/unictype/test-digit.h: Likewise.
6780         * tests/unictype/test-numeric.h: Likewise.
6781         * tests/unictype/test-pr_alphabetic.c: Likewise.
6782         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6783         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6784         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6785         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6786         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6787         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6788         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6789         * tests/unictype/test-pr_combining.c: Likewise.
6790         * tests/unictype/test-pr_composite.c: Likewise.
6791         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6792         * tests/unictype/test-pr_dash.c: Likewise.
6793         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6794         * tests/unictype/test-pr_deprecated.c: Likewise.
6795         * tests/unictype/test-pr_diacritic.c: Likewise.
6796         * tests/unictype/test-pr_extender.c: Likewise.
6797         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6798         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6799         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6800         * tests/unictype/test-pr_id_continue.c: Likewise.
6801         * tests/unictype/test-pr_id_start.c: Likewise.
6802         * tests/unictype/test-pr_ideographic.c: Likewise.
6803         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6804         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6805         * tests/unictype/test-pr_lowercase.c: Likewise.
6806         * tests/unictype/test-pr_numeric.c: Likewise.
6807         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6808         * tests/unictype/test-pr_punctuation.c: Likewise.
6809         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6810         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6811         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6812         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6813         * tests/unictype/test-pr_uppercase.c: Likewise.
6814         * tests/unictype/test-pr_xid_continue.c: Likewise.
6815         * tests/unictype/test-pr_xid_start.c: Likewise.
6816         * tests/unictype/test-pr_zero_width.c: Likewise.
6817         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6818         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6819         changed behaviour: line breaking is now disallowed between a letter
6820         or '=' and '('.
6821         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6822         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6823         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6824         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6825         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6826         lib/uniwidth/width.c.
6827         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6828         without comments, but with the original copyright notice.
6829         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6830         changes.
6831         * lib/unictype/categ_Cc.h: Likewise.
6832         * lib/unictype/categ_Co.h: Likewise.
6833         * lib/unictype/categ_Cs.h: Likewise.
6834         * lib/unictype/categ_Lt.h: Likewise.
6835         * lib/unictype/categ_Me.h: Likewise.
6836         * lib/unictype/categ_Pc.h: Likewise.
6837         * lib/unictype/categ_Pe.h: Likewise.
6838         * lib/unictype/categ_Pf.h: Likewise.
6839         * lib/unictype/categ_Pi.h: Likewise.
6840         * lib/unictype/categ_Ps.h: Likewise.
6841         * lib/unictype/categ_Sk.h: Likewise.
6842         * lib/unictype/categ_Sm.h: Likewise.
6843         * lib/unictype/categ_Z.h: Likewise.
6844         * lib/unictype/categ_Zl.h: Likewise.
6845         * lib/unictype/categ_Zp.h: Likewise.
6846         * lib/unictype/categ_Zs.h: Likewise.
6847         * lib/unictype/ctype_blank.h: Likewise.
6848         * lib/unictype/ctype_cntrl.h: Likewise.
6849         * lib/unictype/ctype_digit.h: Likewise.
6850         * lib/unictype/ctype_space.h: Likewise.
6851         * lib/unictype/ctype_xdigit.h: Likewise.
6852         * lib/unictype/mirror.h: Likewise.
6853         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6854         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6855         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6856         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6857         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6858         * lib/unictype/pr_bidi_control.h: Likewise.
6859         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6860         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6861         * lib/unictype/pr_bidi_pdf.h: Likewise.
6862         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6863         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6864         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6865         * lib/unictype/pr_format_control.h: Likewise.
6866         * lib/unictype/pr_hex_digit.h: Likewise.
6867         * lib/unictype/pr_hyphen.h: Likewise.
6868         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6869         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6870         * lib/unictype/pr_iso_control.h: Likewise.
6871         * lib/unictype/pr_join_control.h: Likewise.
6872         * lib/unictype/pr_left_of_pair.h: Likewise.
6873         * lib/unictype/pr_line_separator.h: Likewise.
6874         * lib/unictype/pr_math.h: Likewise.
6875         * lib/unictype/pr_non_break.h: Likewise.
6876         * lib/unictype/pr_not_a_character.h: Likewise.
6877         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6878         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6879         * lib/unictype/pr_other_id_continue.h: Likewise.
6880         * lib/unictype/pr_other_id_start.h: Likewise.
6881         * lib/unictype/pr_other_lowercase.h: Likewise.
6882         * lib/unictype/pr_other_math.h: Likewise.
6883         * lib/unictype/pr_other_uppercase.h: Likewise.
6884         * lib/unictype/pr_paired_punctuation.h: Likewise.
6885         * lib/unictype/pr_paragraph_separator.h: Likewise.
6886         * lib/unictype/pr_pattern_syntax.h: Likewise.
6887         * lib/unictype/pr_pattern_white_space.h: Likewise.
6888         * lib/unictype/pr_private_use.h: Likewise.
6889         * lib/unictype/pr_quotation_mark.h: Likewise.
6890         * lib/unictype/pr_radical.h: Likewise.
6891         * lib/unictype/pr_soft_dotted.h: Likewise.
6892         * lib/unictype/pr_space.h: Likewise.
6893         * lib/unictype/pr_titlecase.h: Likewise.
6894         * lib/unictype/pr_variation_selector.h: Likewise.
6895         * lib/unictype/pr_white_space.h: Likewise.
6896         * lib/unictype/sy_c_ident.h: Likewise.
6897         * lib/unictype/sy_c_whitespace.h: Likewise.
6898         * lib/unictype/sy_java_whitespace.h: Likewise.
6899         * modules/uni*/*: Bump version number of expected libunistring version.
6900         Reported by Simon Josefsson.
6901
6902 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6903
6904         useless-if-before-free: fix typo in --help and make the internal,
6905         automatic version date update process work once again.
6906         --help output contained a NUL character instead of the
6907         backslash-zero that was intended.  Also, the "must lie within
6908         the first 8 lines" line is on line 9, and hence not getting
6909         automatically updated.
6910         * build-aux/useless-if-before-free: Fix the former by adding a
6911         backslash, and the latter by condensing the three lines of what-it-does
6912         to a single line, leaving one line of slack for the future.
6913
6914 2011-01-09  Bruno Haible  <bruno@clisp.org>
6915
6916         uniwidth/width: Fix width of U+1D173..U+1D17A.
6917         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6918         symbolic_width, output_width_property_test): New functions.
6919         (main): Invoke output_nonspacing_property, output_width_property_test.
6920         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6921         U+1D173..U+1D17A.
6922         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6923         1.
6924         * modules/uniwidth/*: Bump version number of expected libunistring
6925         version.
6926         * modules/unilbrk/*: Likewise.
6927
6928 2011-01-08  Bruno Haible  <bruno@clisp.org>
6929
6930         uninorm tests: Preserve copyright of Unicode data file.
6931         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6932         Mention modifications.
6933
6934 2011-01-08  Bruno Haible  <bruno@clisp.org>
6935
6936         gen-uni-tables: Prepare for Unicode 5.2.0.
6937         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6938         (debug_output_lbp, output_lbp): Update.
6939
6940 2011-01-08  Bruno Haible  <bruno@clisp.org>
6941
6942         unilbrk: Clarify gen-uni-tables.c code.
6943         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6944         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6945         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6946
6947 2011-01-07  Bruno Haible  <bruno@clisp.org>
6948
6949         strtod: Restore errno when successfully parsing Infinity or NaN.
6950         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6951         restore the original errno.
6952
6953 2011-01-07  Bruno Haible  <bruno@clisp.org>
6954
6955         remove test: Avoid failure on HP-UX 11.
6956         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6957
6958 2011-01-07  Bruno Haible  <bruno@clisp.org>
6959
6960         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6961         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6962         error code.
6963
6964 2011-01-07  Pádraig Brady <P@draigBrady.com>
6965
6966         ignore-value: fixup comments, and add Eric Blake
6967         as an author since he rewrote the macros.
6968         * lib/ignore-value.h (ignore_value):  State that
6969         we now support aggregates.  Also specify exactly
6970         when the GCC warn_unused_result feature was added.
6971
6972 2011-01-06  Eric Blake  <eblake@redhat.com>
6973
6974         ignore-value: support aggregate types
6975         * lib/ignore-value.h (ignore_value): Provide separate gcc
6976         definition.
6977         * modules/ignore-value-tests: New test module.
6978         * tests/test-ignore-value.c: New test.
6979
6980         maint.mk: improve sc_prohibit_strcmp regex
6981         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6982         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6983         definition of STRNEQ.
6984
6985         signal: work around Haiku issue with SIGBUS
6986         * lib/siglist.h: Add comment.
6987         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6988         strsignal's favoring of SIGSEGV.
6989         * tests/test-signal.c (main): Avoid test failure.
6990         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6991         Reported by Scott McCreary.
6992
6993         maint.mk: add pre-release check to ensure submodule commits are public
6994         * top/maint.mk (public-submodule-commit): New rule.
6995         (submodule-checks): New variable.
6996         (alpha beta stable): Depend on the variable.
6997
6998 2011-01-05  Pádraig Brady <P@draigBrady.com>
6999         and Jim Meyering  <meyering@redhat.com>
7000
7001         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7002         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7003         (ATTRIBUTE_DEPRECATED): Define.
7004         (_ignore_case): New function.
7005         (ignore_value): New macro, to replace the old function.
7006         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7007         * modules/ignore-value (Depends-on): Add stdint.
7008
7009 2011-01-04  Eric Blake  <eblake@redhat.com>
7010
7011         doc: regenerate INSTALL
7012         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7013         @firstparagraphindent support, now that autoconf dropped it.
7014         (INSTALL_PRELUDE): Reinstate old macro.
7015         * doc/install.texi: Resync from autoconf.
7016         * doc/INSTALL: Reflect recent autoconf update.
7017         * doc/INSTALL.ISO: Likewise.
7018         * doc/INSTALL.UTF-8: Likewise.
7019         Reported by Karl Berry.
7020
7021 2011-01-04  Bruce Korb  <address@hidden>
7022
7023         git-version-gen: avoid a sub-shell
7024         * build-aux/git-version-gen: Redirect stderr in `...` via
7025         "exec 2>...", rather than via an added sub-shell.
7026
7027 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7028
7029         git-version-gen: use (...) rather than sh -c '...'
7030         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7031         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7032
7033 2011-01-03  Jim Meyering  <meyering@redhat.com>
7034
7035         git-version-gen: convert leading TABs to spaces
7036         * build-aux/git-version-gen: Expand leading TABs.
7037
7038         git-version-gen: handle failed "git rev-list"
7039         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7040         from git and proceeding as if it had succeeded but printed no SHA1
7041         checksums, suppress the diagnostic and handle the failure.
7042         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7043
7044         git-version-gen: include command name in one more diagnostic
7045         * build-aux/git-version-gen: When the required .tarball-version file
7046         was missing or unreadable, you might see the diagnostic from "cat",
7047         but no trace of the name of the invoking script.  Now, you still see
7048         the diagnostic from cat, but also get one from "git-version-gen: ".
7049         Inspired by a patch from Bruce Korb.
7050
7051         update-copyright: adjust test to match changed code
7052         * tests/test-update-copyright.sh: Change test's expected output
7053         to match new actual output.
7054
7055 2011-01-02  Bruno Haible  <bruno@clisp.org>
7056
7057         getlogin_r: Avoid test failure on HP-UX 11.
7058         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7059         ERANGE when the second argument is zero.
7060         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7061         portability problem.
7062
7063 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7064
7065         * build-aux/update-copyright: doc Simon's changes
7066
7067 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7068
7069         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7070         environment variable.
7071
7072 2011-01-02  Bruno Haible  <bruno@clisp.org>
7073
7074         unigbrk: Avoid gcc warnings.
7075         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7076         unused variable.
7077         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7078         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7079         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7080         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7081         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7082         Change type of first argument to 'const char *'.
7083         (main): Remove unused variable.
7084         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7085         type of first argument to 'const char *'.
7086         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7087         Likewise.
7088         (main): Change type of variable 's'.
7089         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7090         to 'int'.
7091
7092 2011-01-02  Bruno Haible  <bruno@clisp.org>
7093
7094         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7095         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7096         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7097         bug.
7098         * lib/pwrite.c: Undo 2010-12-31 patch.
7099         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7100
7101 2011-01-02  Bruno Haible  <bruno@clisp.org>
7102
7103         pread: Fix test whether it works.
7104         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7105
7106 2011-01-02  Bruno Haible  <bruno@clisp.org>
7107
7108         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7109         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7110         ends in "6". Don't require a specific month name. Try also the locale
7111         names found on HP-UX 11 and Solaris 7.
7112
7113 2011-01-02  Bruno Haible  <bruno@clisp.org>
7114
7115         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7116         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7117         C linkage.
7118         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7119
7120 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7121
7122         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7123         for consistency, since the "cluster" term is not used elsewhere.
7124         * lib/unigbrk.in.h: Update name.
7125         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7126         * lib/unigbrk/u16-grapheme-next.c: Update name.
7127         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7128         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7129         * lib/unigbrk/u32-grapheme-next.c: Update name.
7130         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7131         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7132         * lib/unigbrk/u8-grapheme-next.c: Update name.
7133         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7134         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7135         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7136         Suggested by Bruno Haible.
7137
7138 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7139
7140         Remove module 'u8-grapheme-len' as too redundant with
7141         'u8-grapheme-next'.
7142         * modules/unigbrk/u8-grapheme-len: Delete file.
7143         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7144         * lib/unigbrk.in.h: Remove prototype for deleted function.
7145         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7146         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7147
7148         Remove module 'u16-grapheme-len' as too redundant with
7149         'u16-grapheme-next'.
7150         * modules/unigbrk/u16-grapheme-len: Delete file.
7151         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7152         * lib/unigbrk.in.h: Remove prototype for deleted function.
7153         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7154         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7155
7156         Remove module 'u32-grapheme-len' as too redundant with
7157         'u32-grapheme-next'.
7158         * modules/unigbrk/u32-grapheme-len: Delete file.
7159         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7160         * lib/unigbrk.in.h: Remove prototype for deleted function.
7161         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7162         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7163
7164         Suggested by Bruno Haible.
7165
7166 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7167
7168         * unigbrk.in.h: Fix typo: "ben" => "been".
7169         Reported by Bruno Haible.
7170
7171 2011-01-01  Jim Meyering  <meyering@redhat.com>
7172
7173         maint: update almost all copyright ranges to include 2011
7174         Run the new "make update-copyright" rule.
7175
7176 2011-01-01  Jim Meyering  <meyering@redhat.com>
7177
7178         maint: update-copyright: exempt doc/INSTALL*
7179         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7180         since they are generated.  Suggested by Bruno Haible.
7181
7182 2011-01-01  Jim Meyering  <meyering@redhat.com>
7183
7184         maint: refine the update-copyright rule
7185         * Makefile (update-copyright): Also exclude any file that includes
7186         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7187         code that merely generates the comment.
7188
7189 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7190
7191         New module 'u8-grapheme-len'.
7192         * modules/unigbrk/u8-grapheme-len: New file.
7193         * modules/unigbrk/u8-grapheme-len-tests: New file.
7194         * lib/unigbrk.in.h: Add prototype for new function.
7195         * lib/unigbrk/u8-grapheme-len.c: New file.
7196         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7197
7198         New module 'u16-grapheme-len'.
7199         * modules/unigbrk/u16-grapheme-len: New file.
7200         * modules/unigbrk/u16-grapheme-len-tests: New file.
7201         * lib/unigbrk.in.h: Add prototype for new function.
7202         * lib/unigbrk/u16-grapheme-len.c: New file.
7203         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7204
7205         New module 'u32-grapheme-len'.
7206         * modules/unigbrk/u32-grapheme-len: New file.
7207         * modules/unigbrk/u32-grapheme-len-tests: New file.
7208         * lib/unigbrk.in.h: Add prototype for new function.
7209         * lib/unigbrk/u32-grapheme-len.c: New file.
7210         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7211
7212         New module 'u8-grapheme-next'.
7213         * modules/unigbrk/u8-grapheme-next: New file.
7214         * modules/unigbrk/u8-grapheme-next-tests: New file.
7215         * lib/unigbrk.in.h: Add prototype for new function.
7216         * lib/unigbrk/u8-grapheme-next.c: New file.
7217         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7218
7219         New module 'u16-grapheme-next'.
7220         * modules/unigbrk/u16-grapheme-next: New file.
7221         * modules/unigbrk/u16-grapheme-next-tests: New file.
7222         * lib/unigbrk.in.h: Add prototype for new function.
7223         * lib/unigbrk/u16-grapheme-next.c: New file.
7224         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7225
7226         New module 'u32-grapheme-next'.
7227         * modules/unigbrk/u32-grapheme-next: New file.
7228         * modules/unigbrk/u32-grapheme-next-tests: New file.
7229         * lib/unigbrk.in.h: Add prototype for new function.
7230         * lib/unigbrk/u32-grapheme-next.c: New file.
7231         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7232
7233         New module 'u8-grapheme-prev'.
7234         * modules/unigbrk/u8-grapheme-prev: New file.
7235         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7236         * lib/unigbrk.in.h: Add prototype for new function.
7237         * lib/unigbrk/u8-grapheme-prev.c: New file.
7238         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7239
7240         New module 'u16-grapheme-prev'.
7241         * modules/unigbrk/u16-grapheme-prev: New file.
7242         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7243         * lib/unigbrk.in.h: Add prototype for new function.
7244         * lib/unigbrk/u16-grapheme-prev.c: New file.
7245         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7246
7247         New module 'u32-grapheme-prev'.
7248         * modules/unigbrk/u32-grapheme-prev: New file.
7249         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7250         * lib/unigbrk.in.h: Add prototype for new function.
7251         * lib/unigbrk/u32-grapheme-prev.c: New file.
7252         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7253
7254         New module 'u8-grapheme-breaks'.
7255         * modules/unigbrk/u8-grapheme-breaks: New file.
7256         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7257         * lib/unigbrk.in.h: Add prototype for new function.
7258         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7259         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7260
7261         New module 'u16-grapheme-breaks'.
7262         * modules/unigbrk/u16-grapheme-breaks: New file.
7263         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7264         * lib/unigbrk.in.h: Add prototype for new function.
7265         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7266         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7267
7268         New module 'u32-grapheme-breaks'.
7269         * modules/unigbrk/u32-grapheme-breaks: New file.
7270         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7271         * lib/unigbrk.in.h: Add prototype for new function.
7272         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7273         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7274
7275         New module 'ulc-grapheme-breaks'.
7276         * modules/unigbrk/ulc-grapheme-breaks: New file.
7277         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7278         * m4/locale-ar.m4: New file.
7279         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7280         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7281         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7282
7283 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7284
7285         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7286         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7287         modified how this file was generated before I initially submitted
7288         the module, but failed to regenerate it.  This meant that several
7289         of the level2 entries were wrong.
7290         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7291         Remove the division-by-2 that is folded into the table now that
7292         gbrkprop.h has been regenerated properly.  Now -1 entries are
7293         handled correctly.
7294
7295         New module 'unigbrk/uc-gbrk-prop-tests'.
7296         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7297         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7298         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7299         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7300
7301 2011-01-01  Bruno Haible  <bruno@clisp.org>
7302
7303         Avoid use of hexadecimal escapes.
7304         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7305         instead of hexadecimal escapes.
7306
7307 2011-01-01  Jim Meyering  <meyering@redhat.com>
7308
7309         maint: new rule to update copyright year ranges
7310         * Makefile (update-copyright): New rule.
7311
7312         maint: indent with TABs in Makefile
7313         * Makefile: Expand leading sequences of spaces to TABs
7314
7315         version-etc: update the copyright year it reports
7316         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7317
7318 2010-12-31  Bruno Haible  <bruno@clisp.org>
7319
7320         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7321         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7322         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7323         zero.
7324
7325 2010-12-31  Bruno Haible  <bruno@clisp.org>
7326
7327         pwrite: Work around HP-UX 11.11 bug.
7328         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7329         works and set REPLACE_PWRITE if not.
7330         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7331         function.
7332         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7333
7334 2010-12-31  Bruno Haible  <bruno@clisp.org>
7335
7336         pread: Work around HP-UX 11 bugs.
7337         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7338         and set REPLACE_PREAD if not.
7339         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7340
7341 2010-12-31  Eric Blake  <eblake@redhat.com>
7342
7343         nl_langinfo: fix YESEXPR on Irix 6.5
7344         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7345         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7346         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7347         it.
7348
7349 2010-12-31  Bruno Haible  <bruno@clisp.org>
7350
7351         iconv: Document HP-UX 11 bug.
7352         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7353
7354 2010-12-31  Bruno Haible  <bruno@clisp.org>
7355
7356         ldexpl: Fix link error on HP-UX 11.
7357         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7358         LDEXPL_LIBM, using $ISNANL_LIBM.
7359
7360 2010-12-31  Eric Blake  <eblake@redhat.com>
7361
7362         ftello: avoid compilation failure with SunStudio c89
7363         * lib/ftello.c (ftello): Use lseek, not llseek.
7364
7365         tests: avoid failing coreutils tests on cygwin
7366         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7367         (create_exe_shims_): Return 0 when skipping.
7368
7369 2010-12-31  Bruno Haible  <bruno@clisp.org>
7370
7371         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7372         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7373
7374 2010-12-31  Bruno Haible  <bruno@clisp.org>
7375
7376         waitpid: Fix link error in C++ mode.
7377         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7378
7379 2010-12-31  Bruno Haible  <bruno@clisp.org>
7380
7381         isnan: Use GCC built-ins when possible.
7382         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7383         __builtin_isnan.
7384         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7385         (isnan): Define using GCC built-ins for GCC >= 4.0.
7386
7387 2010-12-31  Bruno Haible  <bruno@clisp.org>
7388
7389         isnand: Fix mistake.
7390         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7391         __builtin_isnand.
7392
7393 2010-12-31  Bruno Haible  <bruno@clisp.org>
7394
7395         open: Avoid C++ error on HP-UX 11.
7396         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7397
7398 2010-12-31  Bruno Haible  <bruno@clisp.org>
7399
7400         time_r: Add missing declarations on HP-UX 11.
7401         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7402         instead of HAVE_LOCALTIME_R.
7403         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7404         HAVE_LOCALTIME_R always.
7405         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7406         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7407         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7408         HAVE_LOCALTIME_R.
7409         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7410         * doc/posix-functions/localtime_r.texi: Likewise.
7411
7412 2010-12-29  Eric Blake  <eblake@redhat.com>
7413
7414         mountlist: tweak previous commit
7415         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7416         Reported by Paul Eggert.
7417
7418         mountlist: fix local drive detection on cygwin
7419         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7420         that works for cygwin.
7421
7422 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7423
7424         ftoastr, snprintf: ftoastr + snprintf module
7425         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7426         since the snprintf module now should be good enough here.
7427         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7428         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7429         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7430         GNULIB_SNPRINTF only for the test directory, and the latter
7431         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7432         seems to suffice by itself.
7433
7434 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7435
7436         alloca: one step towards thread-safety
7437         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7438         need for a static variable.  All callers changed.  This does not
7439         make the alloca replacement thread-safe, but it's one step.
7440
7441         tests: minor indenting change
7442         * tests/init.sh: Sync from coreutils housekeeping patch
7443         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7444         to keep lines within 80 columns.
7445
7446 2010-12-28  Jim Meyering  <meyering@redhat.com>
7447
7448         regex: don't infloop on persistent failing calloc
7449         * lib/regexec.c (build_trtable): Return failure indication upon
7450         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7451         In glibc, this was fixed for version 2.13:
7452         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7453
7454 2010-12-28  Bruno Haible  <bruno@clisp.org>
7455             Paul Eggert <eggert@cs.ucla.edu>
7456
7457         linkat: Make implementation robust against system behaviour variations.
7458         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7459         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7460         way, and to -2 if it needs a generic runtime test.
7461         * lib/linkat.c (solaris_optimized_link_immediate,
7462         solaris_optimized_link_follow): New functions.
7463         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7464         (check_same_link): Use it.
7465
7466 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7467
7468         New module 'unigbrk/base'.
7469         * modules/unigbrk/base: New file.
7470         * lib/unigbrk.in.h: New file.
7471
7472         New module 'unigbrk/uc-gbrk-prop'.
7473         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7474         * modules/unigbrk/uc-gbrk-prop: New file.
7475         * lib/unigbrk/gbrkprop.h: New file.
7476         * lib/unigbrk/uc-gbrk-prop.c: New file.
7477
7478         New module 'unigbrk/uc-is-grapheme-break'.
7479         * modules/unigbrk/uc-is-grapheme-break: New file.
7480         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7481         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7482         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7483         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7484         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7485
7486         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7487
7488 2010-12-27  Bruno Haible  <bruno@clisp.org>
7489
7490         linkat test: Avoid failure on Solaris 11 2010-11.
7491         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7492
7493 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7494
7495         utimens: work around glibc rounding bug on more platforms
7496         * lib/utimens.c (fdutimens): Work around rounding bug even if
7497         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7498         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7499
7500 2010-12-27  Bruno Haible  <bruno@clisp.org>
7501
7502         select tests: Improve comments.
7503         * tests/test-select.c (do_select): Add comments.
7504
7505 2010-12-27  Bruno Haible  <bruno@clisp.org>
7506
7507         select tests: Safer way of handling timeout.
7508         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7509         at every invocation.
7510
7511 2010-12-27  Bruno Haible  <bruno@clisp.org>
7512
7513         select tests: Use 'bool' where appropriate.
7514         * tests/test-select.c (connect_to_socket): Change argument type to
7515         'bool'.
7516
7517 2010-12-27  Bruno Haible  <bruno@clisp.org>
7518
7519         select tests: Use existing modules.
7520         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7521         (configure.ac): Don't test for unistd.h.
7522         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7523         declared in <unistd.h>.
7524
7525 2010-12-27  Bruno Haible  <bruno@clisp.org>
7526
7527         mbrtowc: Work around a Solaris 7 bug.
7528         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7529         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7530         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7531         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7532         MBRTOWC_NULL_ARG1_BUG.
7533         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7534         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7535         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7536         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7537
7538 2010-12-27  Jim Meyering  <meyering@redhat.com>
7539
7540         read-file.c: tweak syntax
7541         * lib/read-file.c (fread_file): Remove space after "*" in function
7542         definitions.
7543
7544 2010-12-27  Bruno Haible  <bruno@clisp.org>
7545
7546         times test: Avoid gcc warnings on OSF/1.
7547         * tests/test-times.c (main): Cast printf arguments from clock_t to
7548         'long int'.
7549
7550 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7551
7552         utimens: work around glibc rounding bug on older Linux kernels
7553         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7554         on Linux with a glibc whose utimes might not work, then work
7555         around a longstanding glibc bug involving rounding rather than
7556         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7557         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7558
7559 2010-12-26  Bruno Haible  <bruno@clisp.org>
7560
7561         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7562         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7563         _GL_CXXALIAS_SYS.
7564         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7565
7566 2010-12-26  Bruno Haible  <bruno@clisp.org>
7567
7568         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7569         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7570         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7571         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7572         looking for the declaration.
7573         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7574         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7575         problem.
7576         * doc/posix-functions/inet_pton.texi: Likewise.
7577
7578 2010-12-26  Bruno Haible  <bruno@clisp.org>
7579
7580         arpa_inet: Use the common idioms with C++ support.
7581         * lib/arpa_inet.in.h: Include c++defs.h.
7582         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7583         support.
7584         * modules/arpa_inet (Depends-on): Add c++defs.
7585         (Makefile.am): Substitute the contents of c++defs.h.
7586         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7587         * modules/arpa_inet-c++-tests: New file.
7588         * tests/test-arpa_inet-c++.cc: New file.
7589
7590 2010-12-25  Bruno Haible  <bruno@clisp.org>
7591
7592         Fix more C++ link errors on Solaris 8.
7593         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7594         $(LIB_EACCESS).
7595         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7596         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7597         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7598         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7599         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7600
7601 2010-12-25  Bruno Haible  <bruno@clisp.org>
7602
7603         printf-posix: Fix link error when a non-GCC compiler is used.
7604         * lib/stdio.in.h (printf): When not using GCC, override printf
7605         correctly.
7606         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7607
7608 2010-12-25  Bruno Haible  <bruno@clisp.org>
7609
7610         strerror_r-posix: Update doc.
7611         * doc/posix-functions/strerror_r.texi: Update doc about the return
7612         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7613
7614 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7615
7616         utimens: simplify the logic of the previous change
7617         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7618         This should not affect whether the test succeeds or fails.
7619
7620         utimens: configure better on hosts with NFS clock skew
7621         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7622         uses the clock of the local host.  It might use the clock of the
7623         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7624         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7625
7626 2010-12-25  Bruno Haible  <bruno@clisp.org>
7627
7628         ptsname test: Avoid failure on Solaris.
7629         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7630         open a pseudo-terminal; don't use BSD-style ptys.
7631         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7632
7633 2010-12-25  Bruno Haible  <bruno@clisp.org>
7634
7635         ptsname: Avoid ERANGE failure on some systems.
7636         * lib/ptsname.c (buffer): Increase size.
7637
7638 2010-12-25  Bruno Haible  <bruno@clisp.org>
7639
7640         rename, renameat: Avoid test failures at NFS mounted locations.
7641         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7642         so that subsequent mkdir calls succeed.
7643
7644 2010-12-25  Bruno Haible  <bruno@clisp.org>
7645
7646         iswblank: Fix C++ link error on Solaris 8.
7647         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7648         _GL_FUNCDECL_SYS.
7649
7650 2010-12-25  Bruno Haible  <bruno@clisp.org>
7651
7652         unistd: Fix C++ link error on Solaris 8.
7653         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7654
7655 2010-12-25  Bruno Haible  <bruno@clisp.org>
7656
7657         readlink doc: Mention an old glibc bug.
7658         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7659
7660 2010-12-25  Bruno Haible  <bruno@clisp.org>
7661
7662         fcntl-h: Fix for use of C++ on glibc systems.
7663         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7664         also on glibc systems in C++ mode.
7665         Reported by Gary V. Vaughan <gary@gnu.org>.
7666
7667 2010-12-25  Bruno Haible  <bruno@clisp.org>
7668
7669         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7670         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7671
7672 2010-12-25  Bruno Haible  <bruno@clisp.org>
7673
7674         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7675         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7676         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7677         test whether truncl works according to ISO C 99 with IEC 60559.
7678         * m4/truncl-ieee.m4: New file.
7679         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7680         m4/signbit.m4.
7681         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7682
7683 2010-12-25  Bruno Haible  <bruno@clisp.org>
7684
7685         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7686         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7687         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7688         test whether ceill works according to ISO C 99 with IEC 60559.
7689         * m4/ceill-ieee.m4: New file.
7690         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7691         m4/signbit.m4.
7692         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7693
7694 2010-12-25  Bruno Haible  <bruno@clisp.org>
7695
7696         Ensure all prerequisites of <wchar.h> are included.
7697         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7698         before <wchar.h>.
7699         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7700         gl_MBRLEN_NUL_RETVAL): Likewise.
7701         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7702         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7703         AC_FUNC_MBRTOWC): Likewise.
7704         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7705         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7707         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7708         Likewise.
7709         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7710         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7711         (gl_WCHAR_H): Improve comments.
7712         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7713
7714 2010-12-25  Bruno Haible  <bruno@clisp.org>
7715
7716         strtok_r: Fix C syntax error in autoconf macro.
7717         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7718         characters in test program.
7719
7720 2010-12-24  Bruno Haible  <bruno@clisp.org>
7721
7722         ceil, trunc, round: Fix gcc warnings.
7723         * lib/ceil.c (MIN): Undefine before redefining.
7724         * lib/trunc.c (MIN): Likewise.
7725         * lib/round.c (MIN): Likewise.
7726         Include <math.h> first.
7727
7728 2010-12-24  Bruno Haible  <bruno@clisp.org>
7729
7730         select tests: Avoid failures on OSF/1 5.1.
7731         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7732         failure of closing the last socket; it may fail with ECONNRESET.
7733
7734 2010-12-24  Eric Blake  <eblake@redhat.com>
7735
7736         stdint: avoid HP-UX 10.20 preprocessor bug
7737         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7738         than #if.
7739         * tests/test-floor2.c (main): Likewise.
7740         Reported by Peter O'Gorman.
7741
7742         pipe: make obsoletion transition easier
7743         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7744         * modules/pipe (Files): Include revived file.
7745         (Include): Drop reference, to mirror getdate's behavior.
7746
7747 2010-12-24  Bruno Haible  <bruno@clisp.org>
7748
7749         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7750         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7751         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7752         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7753
7754 2010-12-24  Bruno Haible  <bruno@clisp.org>
7755
7756         gethostname: Ensure declaration on NonStop Kernel.
7757         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7758         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7759
7760 2010-12-24  Bruno Haible  <bruno@clisp.org>
7761
7762         sys_select: Ensure all necessary types on NonStop Kernel.
7763         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7764         include <sys/time.h>.
7765         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7766         NonStop Kernel.
7767         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7768
7769 2010-12-24  Bruno Haible  <bruno@clisp.org>
7770
7771         sys_select: Remove unneeded include.
7772         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7773         have <sys/select.h>.
7774
7775 2010-12-24  Bruno Haible  <bruno@clisp.org>
7776
7777         gethostname: Provide a fallback for HOST_NAME_MAX.
7778         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7779         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7780         instead.
7781         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7782
7783 2010-12-24  Bruno Haible  <bruno@clisp.org>
7784
7785         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7786         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7787         (SA_RESTART): Likewise.
7788         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7789
7790 2010-12-24  Bruno Haible  <bruno@clisp.org>
7791
7792         signal: Define NSIG.
7793         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7794         * tests/test-signal.c (nsig): New variable.
7795         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7796
7797 2010-12-24  Bruno Haible  <bruno@clisp.org>
7798
7799         rename, renameat: Avoid test failures on OSF/1 5.1.
7800         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7801         alternative error codes.
7802         * tests/test-renameat.c (main): Likewise.
7803
7804 2010-12-24  Bruno Haible  <bruno@clisp.org>
7805
7806         *printf: Detect large precisions bug on Solaris 10/SPARC.
7807         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7808         by Paul Eggert.
7809         * tests/test-snprintf-posix.h (test_function): Add this test code here
7810         too.
7811         * tests/test-sprintf-posix.h (test_function): Likewise.
7812         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7813         * tests/test-vasprintf-posix.c (test_function): Likewise.
7814         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7815         around by gnulib.
7816         * doc/posix-functions/printf.texi: Likewise.
7817         * doc/posix-functions/snprintf.texi: Likewise.
7818         * doc/posix-functions/sprintf.texi: Likewise.
7819         * doc/posix-functions/vfprintf.texi: Likewise.
7820         * doc/posix-functions/vprintf.texi: Likewise.
7821         * doc/posix-functions/vsnprintf.texi: Likewise.
7822         * doc/posix-functions/vsprintf.texi: Likewise.
7823         * doc/posix-functions/dprintf.texi: Undo last commit.
7824         * doc/posix-functions/vdprintf.texi: Likewise.
7825
7826 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7827
7828         tests: port test-fdutimensat.c to Solaris 8
7829         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7830         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7831         On Solaris 8, it fails with errno == ENOSYS, because there is no
7832         futimens (so it can't use the fd), and there is no lutimens (so it
7833         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7834
7835         vsnprintf: make more consistent with snprintf; doc fixes
7836
7837         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7838         the byte count return problem was promoted from the snprintf-posix
7839         to the snprintf module.
7840         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7841         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7842         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7843         * tests/test-snprintf.c (main): Check the byte count returned.
7844         * tests/test-vsnprintf.c (main): Likewise.
7845
7846 2010-12-23  Eric Blake  <eblake@redhat.com>
7847
7848         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7849         * modules/sigpipe (License): Relax license.
7850
7851 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7852
7853         doc: document Solaris printf bug with large float precisions
7854         * doc/posix-functions/dprintf.texi (dprintf):
7855         * doc/posix-functions/fprintf.texi (fprintf):
7856         * doc/posix-functions/printf.texi (printf):
7857         * doc/posix-functions/snprintf.texi (snprintf):
7858         * doc/posix-functions/sprintf.texi (sprintf):
7859         * doc/posix-functions/vdprintf.texi (vdprintf):
7860         * doc/posix-functions/vfprintf.texi (vfprintf):
7861         * doc/posix-functions/vprintf.texi (vprintf):
7862         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7863         * doc/posix-functions/vsprintf.texi (vsprintf):
7864         Mention that these functions mishandle large floating point
7865         precisions on Solaris 10.  The same bug is also present in Solaris
7866         8, and I assume earlier.  This causes "cd gnulib-tests; make
7867         check" to fail on Solaris 8 (and I assume, later) when building
7868         the latest coreutils, in test-vasprintf-posix's call to
7869         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7870         the wide flavors (e.g., wprintf) so this patch just updates the
7871         documentation for the narrow ones.
7872
7873         test-posixtm.c: add two tests
7874         * tests/test-posixtm.c: Add two tests, to highlight the
7875         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7876         around this bug; this is merely to document it.
7877
7878 2010-12-22  Bruno Haible  <bruno@clisp.org>
7879
7880         getlogin_r: Work around portability problem on OSF/1.
7881         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7882         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7883         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7884         test for a truncated result.
7885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7886         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7887         * modules/getlogin_r (Depends-on): Add memchr.
7888         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7889
7890 2010-12-22  Bruno Haible  <bruno@clisp.org>
7891
7892         ptsname: Avoid test failure on OSF/1 5.1.
7893         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7894         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7895         (same_slave): New function.
7896         (main): Use it to compare ptsname's result with the expected file name.
7897
7898 2010-12-22  Bruno Haible  <bruno@clisp.org>
7899
7900         Port extended stdio modules to HP NonStop Kernel.
7901         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7902         macros.
7903         * lib/fbufmode.c: Update comments.
7904         * lib/fflush.c: Likewise.
7905         * lib/fpurge.c: Likewise.
7906         * lib/freadable.c: Likewise.
7907         * lib/freadahead.c: Likewise.
7908         * lib/freading.c: Likewise.
7909         * lib/freadptr.c: Likewise.
7910         * lib/freadseek.c: Likewise.
7911         * lib/fseeko.c: Likewise.
7912         * lib/fseterr.c: Likewise.
7913         * lib/fwritable.c: Likewise.
7914         * lib/fwriting.c: Likewise.
7915         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7916
7917 2010-12-22  Bruno Haible  <bruno@clisp.org>
7918
7919         ttyname_r: Work around bug on OSF/1 5.1.
7920         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7921         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7922         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7923         present.
7924         * lib/ttyname_r.c (ttyname_r): Update comments.
7925
7926 2010-12-22  Bruno Haible  <bruno@clisp.org>
7927
7928         round: Implement result sign according to IEEE 754.
7929         * lib/round.c (MIN, MINUS_ZERO): New macros.
7930         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7931         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7932         * tests/test-round-ieee.c (main): Likewise.
7933         * tests/test-roundl-ieee.c (main): Likewise.
7934
7935         trunc: Implement result sign according to IEEE 754.
7936         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7937         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7938         * tests/test-trunc2.c: Include minus-zero.h.
7939         (MINUS_ZERO): New macro.
7940         (trunc_reference): Keep in sync with lib/trunc.c.
7941         * tests/test-truncf2.c: Include minus-zero.h.
7942         (MINUS_ZERO): New macro.
7943         (truncf_reference): Keep in sync with lib/trunc.c.
7944         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7945         * tests/test-trunc-ieee.c (main): Likewise.
7946         * tests/test-truncl-ieee.c (main): Likewise.
7947
7948         ceil: Implement result sign according to IEEE 754.
7949         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7950         (FUNC): Return -0.0 for -1 < x < 0.
7951         * tests/test-ceil2.c: Include minus-zero.h.
7952         (MINUS_ZERO): New macro.
7953         (ceil_reference): Keep in sync with lib/ceil.c.
7954         * tests/test-ceilf2.c: Include minus-zero.h.
7955         (MINUS_ZERO): New macro.
7956         (ceilf_reference): Keep in sync with lib/ceil.c.
7957         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7958         * tests/test-ceil-ieee.c (main): Likewise.
7959         * tests/test-ceill-ieee.c (main): Likewise.
7960
7961         floor: Implement result sign according to IEEE 754.
7962         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7963         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7964         * tests/test-floorf2.c (floorf_reference): Likewise.
7965         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7966         * tests/test-floor-ieee.c (main): Likewise.
7967         * tests/test-floorl-ieee.c (main): Likewise.
7968
7969 2010-12-22  Bruno Haible  <bruno@clisp.org>
7970
7971         getaddrinfo: Update doc.
7972         * doc/posix-functions/gai_strerror.texi: Return type is also different
7973         on AIX and HP-UX.
7974
7975 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7976
7977         getaddrinfo, inet_ntop: Update doc for Solaris.
7978         * doc/posix-functions/gai_strerror.texi: Return type is also an
7979         issue on Solaris 9 and earlier.
7980         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7981         on Solaris 10 and earlier.
7982
7983 2010-12-21  Bruno Haible  <bruno@clisp.org>
7984
7985         New module 'roundl-ieee'.
7986         * modules/roundl-ieee: New file.
7987         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7988         test whether roundl works according to ISO C 99 with IEC 60559.
7989         * m4/roundl-ieee.m4: New file.
7990         * modules/roundl-ieee-tests: New file.
7991         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7992         * tests/test-roundl.c (main): Remove signbit tests.
7993         * modules/roundl-tests (Depends-on): Remove signbit.
7994         * doc/posix-functions/roundl.texi: Mention the new module.
7995
7996 2010-12-21  Bruno Haible  <bruno@clisp.org>
7997
7998         New module 'truncl-ieee'.
7999         * modules/truncl-ieee: New file.
8000         * modules/truncl-ieee-tests: New file.
8001         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8002         * tests/test-truncl.c (main): Remove signbit tests.
8003         * modules/truncl-tests (Depends-on): Remove signbit.
8004         * doc/posix-functions/truncl.texi: Mention the new module.
8005
8006 2010-12-21  Bruno Haible  <bruno@clisp.org>
8007
8008         New module 'ceill-ieee'.
8009         * modules/ceill-ieee: New file.
8010         * modules/ceill-ieee-tests: New file.
8011         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8012         * tests/test-ceill.c (main): Remove signbit tests.
8013         * modules/ceill-tests (Depends-on): Remove signbit.
8014         * doc/posix-functions/ceill.texi: Mention the new module.
8015
8016 2010-12-21  Bruno Haible  <bruno@clisp.org>
8017
8018         New module 'floorl-ieee'.
8019         * modules/floorl-ieee: New file.
8020         * modules/floorl-ieee-tests: New file.
8021         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8022         * tests/test-floorl.c (main): Remove signbit tests.
8023         * modules/floorl-tests (Depends-on): Remove signbit.
8024         * doc/posix-functions/floorl.texi: Mention the new module.
8025
8026 2010-12-21  Bruno Haible  <bruno@clisp.org>
8027
8028         New module 'round-ieee'.
8029         * modules/round-ieee: New file.
8030         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8031         whether round works according to ISO C 99 with IEC 60559.
8032         * m4/round-ieee.m4: New file.
8033         * modules/round-ieee-tests: New file.
8034         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8035         * tests/test-round1.c (main): Remove signbit tests.
8036         * modules/round-tests (Depends-on): Remove 'signbit'.
8037         * doc/posix-functions/round.texi: Mention the new module.
8038
8039 2010-12-21  Bruno Haible  <bruno@clisp.org>
8040
8041         New module 'trunc-ieee'.
8042         * modules/trunc-ieee: New file.
8043         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8044         whether trunc works according to ISO C 99 with IEC 60559.
8045         * m4/trunc-ieee.m4: New file.
8046         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8048         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8049         * modules/trunc-ieee-tests: New file.
8050         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8051         * tests/test-trunc1.c (main): Remove signbit tests.
8052         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8053         * doc/posix-functions/trunc.texi: Mention the new module.
8054
8055 2010-12-21  Bruno Haible  <bruno@clisp.org>
8056
8057         New module 'ceil-ieee'.
8058         * modules/ceil-ieee: New file.
8059         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8060         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8061         ISO C 99 with IEC 60559.
8062         * m4/ceil-ieee.m4: New file.
8063         * modules/ceil (Files): Add lib/ceil.c.
8064         (Depends-on): Add 'float'.
8065         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8066         * lib/math.in.h (ceil): New declaration.
8067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8068         REPLACE_CEIL.
8069         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8070         * modules/ceil-ieee-tests: New file.
8071         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8072         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8073         * doc/posix-functions/ceil.texi: Mention the new module.
8074
8075 2010-12-21  Bruno Haible  <bruno@clisp.org>
8076
8077         New module 'floor-ieee'.
8078         * modules/floor-ieee: New file.
8079         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8080         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8081         ISO C 99 with IEC 60559.
8082         * m4/floor-ieee.m4: New file.
8083         * modules/floor (Files): Add lib/floor.c.
8084         (Depends-on): Add 'float'.
8085         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8086         * lib/math.in.h (floor): New declaration.
8087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8088         REPLACE_FLOOR.
8089         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8090         * modules/floor-ieee-tests: New file.
8091         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8092         * tests/test-math-c++.cc: Check the signature of 'floor'.
8093         * doc/posix-functions/floor.texi: Mention the new module.
8094
8095 2010-12-21  Bruno Haible  <bruno@clisp.org>
8096
8097         New module 'roundf-ieee'.
8098         * modules/roundf-ieee: New file.
8099         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8100         test whether roundf works according to ISO C 99 with IEC 60559.
8101         * m4/roundf-ieee.m4: New file.
8102         * modules/roundf-ieee-tests: New file.
8103         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8104         * tests/test-roundf1.c (main): Remove signbit tests.
8105         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8106         * doc/posix-functions/roundf.texi: Mention the new module.
8107
8108 2010-12-21  Bruno Haible  <bruno@clisp.org>
8109
8110         New module 'truncf-ieee'.
8111         * modules/truncf-ieee: New file.
8112         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8113         test whether truncf works according to ISO C 99 with IEC 60559.
8114         * m4/truncf-ieee.m4: New file.
8115         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8117         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8118         * modules/truncf-ieee-tests: New file.
8119         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8120         * tests/test-truncf1.c (main): Remove signbit tests.
8121         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8122         * doc/posix-functions/truncf.texi: Mention the new module.
8123
8124 2010-12-21  Bruno Haible  <bruno@clisp.org>
8125
8126         New module 'ceilf-ieee'.
8127         * modules/ceilf-ieee: New file.
8128         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8129         test whether ceilf works according to ISO C 99 with IEC 60559.
8130         * m4/ceilf-ieee.m4: New file.
8131         * modules/ceilf-ieee-tests: New file.
8132         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8133         * tests/test-ceilf1.c (main): Remove signbit tests.
8134         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8135         * doc/posix-functions/ceilf.texi: Mention the new module.
8136
8137 2010-12-21  Bruno Haible  <bruno@clisp.org>
8138
8139         New module 'floorf-ieee'.
8140         * modules/floorf-ieee: New file.
8141         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8142         test whether floorf works according to ISO C 99 with IEC 60559.
8143         * m4/floorf-ieee.m4: New file.
8144         * modules/floorf-ieee-tests: New file.
8145         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8146         * tests/test-floorf1.c (main): Remove signbit tests.
8147         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8148         * doc/posix-functions/floorf.texi: Mention the new module.
8149
8150 2010-12-21  Bruno Haible  <bruno@clisp.org>
8151
8152         Support for minus zero in autoconf macros.
8153         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8154         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8155         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8156         * tests/minus-zero.h: Update comments.
8157
8158 2010-12-21  Bruno Haible  <bruno@clisp.org>
8159
8160         Tests for module 'ceil'.
8161         * modules/ceil-tests: New file.
8162         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8163         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8164
8165 2010-12-21  Bruno Haible  <bruno@clisp.org>
8166
8167         Tests for module 'floor'.
8168         * modules/floor-tests: New file.
8169         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8170         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8171
8172 2010-12-21  Bruno Haible  <bruno@clisp.org>
8173
8174         math: Fix indentation.
8175         * lib/math.in.h (floorf): Fix indentation.
8176
8177 2010-12-21  Bruno Haible  <bruno@clisp.org>
8178
8179         Fix cross-compilation guesses on Solaris.
8180         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8181         not match "solaris2.10".
8182         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8183         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8184         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8185
8186 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8187
8188         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8189         This fixes a problem observed with the latest coreutils snapshot
8190         that caused a test to fail on Solaris 8.  src/csplit.c's call
8191         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8192         earlier, instead of returning the number of bytes that would have
8193         been generated; this causes csplit to incorrectly report memory
8194         exhaustion.
8195         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8196         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8197         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8198         comments to match.
8199         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8200         Fix typo in matching older versions of Solaris: "solaris2.10"
8201         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8202         only for guessing while cross-compiling.
8203         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8204
8205 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8206
8207         ftoastr: fix comment again
8208         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8210         Also, simplify example a bit by using flags = 0.
8211
8212 2010-12-20  Bruno Haible  <bruno@clisp.org>
8213
8214         round*, trunc*: Update documentation regarding glibc.
8215         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8216         * doc/posix-functions/round.texi: Likewise.
8217         * doc/posix-functions/roundl.texi: Likewise.
8218         * doc/posix-functions/truncf.texi: Likewise.
8219         * doc/posix-functions/trunc.texi: Likewise.
8220         * doc/posix-functions/truncl.texi: Likewise.
8221
8222 2010-12-20  Bruno Haible  <bruno@clisp.org>
8223
8224         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8225         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8226         * doc/posix-functions/round.texi: Likewise.
8227         * doc/posix-functions/roundl.texi: Likewise.
8228
8229 2010-12-20  Bruno Haible  <bruno@clisp.org>
8230
8231         ttyname_r: Add missing declaration on HP-UX 11.
8232         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8233         HAVE_TTYNAME_R.
8234         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8235         declared. Set HAVE_TTYNAME_R always.
8236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8237         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8238         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8239         HAVE_TTYNAME_R.
8240         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8241
8242 2010-12-20  Bruno Haible  <bruno@clisp.org>
8243
8244         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8245         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8246         * doc/posix-functions/getlogin_r.texi: Likewise.
8247         * tests/test-getlogin.c: Include <errno.h>.
8248         (main): Avoid test failure on HP-UX 11.11.
8249         * tests/test-getlogin_r.c (main): Likewise.
8250
8251 2010-12-20  Bruno Haible  <bruno@clisp.org>
8252
8253         getlogin_r: Add missing declaration on HP-UX 11.
8254         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8255         declared also when it exists as a function.
8256         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8257
8258 2010-12-20  Bruno Haible  <bruno@clisp.org>
8259
8260         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8261         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8262         through wcrtomb.
8263
8264 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8265
8266         ftoastr: fix comment
8267         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8269
8270 2010-12-19  Bruno Haible  <bruno@clisp.org>
8271
8272         isnan: Ensure it is a macro.
8273         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8274         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8275         Solaris.
8276
8277 2010-12-19  Bruno Haible  <bruno@clisp.org>
8278
8279         ldexpl test: Fix link error on OSF/1 5.1.
8280         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8281
8282 2010-12-19  Bruno Haible  <bruno@clisp.org>
8283
8284         wctype: Make it work in C++ mode on OSF/1 5.1.
8285         * lib/wctype.in.h (iswblank): Declare but not define here.
8286         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8287         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8288         * modules/wctype (Files): Add lib/iswblank.c.
8289
8290 2010-12-19  Bruno Haible  <bruno@clisp.org>
8291
8292         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8293         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8294         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8295
8296 2010-12-19  Bruno Haible  <bruno@clisp.org>
8297
8298         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8299         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8300         _POSIX_PII_SOCKET.
8301         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8302         * doc/posix-functions/recvfrom.texi: Likewise.
8303         * doc/posix-functions/send.texi: Likewise.
8304         * doc/posix-functions/sendto.texi: Likewise.
8305
8306 2010-12-19  Bruno Haible  <bruno@clisp.org>
8307
8308         tcgetsid: Add missing declaration on OSF/1 5.1.
8309         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8310         HAVE_TCGETSID.
8311         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8312         Don't set HAVE_TCGETSID.
8313         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8314         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8315         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8316         HAVE_TCGETSID.
8317         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8318
8319 2010-12-19  Bruno Haible  <bruno@clisp.org>
8320
8321         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8322         * lib/stdio.in.h: During the include_next statement, let recursive
8323         includes of this file include only the system header file.
8324
8325 2010-12-19  Bruno Haible  <bruno@clisp.org>
8326
8327         iconv_open: Fix regression from 2010-12-04.
8328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8329         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8330
8331 2010-12-19  Bruno Haible  <bruno@clisp.org>
8332
8333         stdbool test: Avoid a gcc warning.
8334         * tests/test-stdbool.c (main): Fail if e1 is false.
8335         Reported by Jim Meyering.
8336
8337 2010-12-19  Jim Meyering  <meyering@redhat.com>
8338
8339         setenv: restore to working order
8340         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8341         mistakenly removed.
8342         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8343         HAVE_SETENV.
8344         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8345         HAVE_SETENV.
8346
8347 2010-12-19  Bruno Haible  <bruno@clisp.org>
8348
8349         Document some different function declarations on OSF/1 5.1.
8350         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8351         * doc/posix-functions/inet_ntop.texi: Likewise.
8352         * doc/posix-functions/gethostname.texi: Likewise.
8353         * lib/unistd.in.h (gethostname): Update comment.
8354
8355 2010-12-19  Bruno Haible  <bruno@clisp.org>
8356
8357         doc: Mention vasprintf-posix module.
8358         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8359         the 'vasprintf-posix' module.
8360         * doc/glibc-functions/vasprintf.texi: Likewise.
8361
8362 2010-12-19  Bruno Haible  <bruno@clisp.org>
8363
8364         unsetenv: Add missing declaration on OSF/1 5.1.
8365         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8366         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8367         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8369         not HAVE_UNSETENV.
8370         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8371         HAVE_UNSETENV.
8372         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8373
8374 2010-12-19  Bruno Haible  <bruno@clisp.org>
8375
8376         setenv: Add missing declaration on OSF/1 5.1.
8377         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8378         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8379         declared. Don't set HAVE_SETENV.
8380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8381         not HAVE_SETENV.
8382         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8383         HAVE_SETENV.
8384         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8385
8386 2010-12-19  Bruno Haible  <bruno@clisp.org>
8387
8388         nl_langinfo tests: Avoid gcc warning.
8389         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8390
8391 2010-12-19  Bruno Haible  <bruno@clisp.org>
8392
8393         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8394         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8395         _GL_CXXALIAS_SYS.
8396
8397 2010-12-19  Bruno Haible  <bruno@clisp.org>
8398
8399         stdbool: Relax test.
8400         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8401         address to 'bool' work in static initializer, for compilers other than
8402         GCC.
8403
8404 2010-12-19  Bruno Haible  <bruno@clisp.org>
8405
8406         ftello: Add missing declaration on OSF/1 5.1.
8407         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8408         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8410         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8411         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8412
8413 2010-12-19  Bruno Haible  <bruno@clisp.org>
8414
8415         fseeko: Add missing declaration on OSF/1 5.1.
8416         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8417         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8419         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8420         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8421
8422 2010-12-19  Bruno Haible  <bruno@clisp.org>
8423
8424         fchdir: Add missing declaration on OSF/1 5.1.
8425         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8426         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8428         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8429         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8430
8431 2010-12-19  Bruno Haible  <bruno@clisp.org>
8432
8433         relocatable-prog-wrapper: Separate from relocatable-prog.
8434         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8435         uninstall-relocwrapper rule here.
8436         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8437         Reported by Ian Beckwith <ianb@erislabs.net>.
8438
8439 2010-12-19  Bruno Haible  <bruno@clisp.org>
8440
8441         unistr/u8-mbsnlen: Add missing dependency.
8442         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8443         Reported by Ian Beckwith <ianb@erislabs.net>.
8444
8445 2010-12-19  Bruno Haible  <bruno@clisp.org>
8446
8447         iconv: Make it possible again to use this module without 'iconv-h'.
8448         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8449         if it is not defined.
8450         Reported by Ian Beckwith <ianb@erislabs.net>.
8451
8452 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8453
8454         acl: port to Solaris 8 when copying from tmpfs to ufs
8455         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8456         error number.  Problem observed on Solaris 8 with latest
8457         coreutils, with "mv A B", where A is on a tmpfs file system and B
8458         is on a ufs file system.  This caused coreutils' mv/part-symlink
8459         test to fail.
8460
8461         tests: set fail=0 at start
8462         * tests/init.sh (setup_): Move fail=0 initialization here ...
8463         (mktempd_): ... from here, so that tests can rely on fail being
8464         set to 0 initially.  This fixes a problem in coreutils; see:
8465         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8466
8467 2010-12-18  Bruno Haible  <bruno@clisp.org>
8468
8469         memmem-simple: Stylistic changes.
8470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8471         Fix preprocessor directive indentation.
8472
8473 2010-12-15  Pádraig Brady <P@draigBrady.com>
8474
8475         memmem, memmem-simple: reorganize and expand empty needle check
8476         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8477         functional checks to memmem-simple so that one has a fully functional
8478         memmem by using just this module.
8479         Restrict the performance only check to the memmem module.
8480         Also expand the empty needle check to ensure the correct
8481         pointer is returned, not just a non NULL pointer.
8482         * doc/glibc-functions/memmem.texi: Rearrange the portability
8483         documentation to correlate with the rearranged checks.
8484         Clarify exactly how the memmem and memmem-simple modules
8485         relate to each other.
8486
8487 2010-12-15  Pádraig Brady <P@draigBrady.com>
8488             Bruno Haible  <bruno@clisp.org>
8489
8490         Improve cross-compilation guesses for uClibc.
8491         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8492         that uClibc does not have the glibc bug.
8493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8494         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8495
8496 2010-12-14  Eric Blake  <eblake@redhat.com>
8497
8498         configmake: provide fallbacks for oldest supported autotools
8499         * m4/configmake.m4: New file.
8500         * modules/configmake (Files): Ship it.
8501         (configure.ac): Use it to guarantee fallbacks.
8502
8503 2010-12-13  Pádraig Brady <P@draigBrady.com>
8504
8505         read-file: Improve handling of large files
8506         * lib/read-file.c (fread_file): Minimize realloc()s
8507         for regular files, and better manage sizes around SIZE_MAX.
8508
8509 2010-12-13  Eric Blake  <eblake@redhat.com>
8510
8511         cloexec, fcntl: relax license
8512         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8513         consent from all contributors.
8514         * modules/fcntl (License): Likewise.
8515
8516 2010-12-10  Bruno Haible  <bruno@clisp.org>
8517
8518         Tests for module 'pipe-posix'.
8519         * modules/pipe-posix-tests: New file.
8520         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8521
8522 2010-12-10  Bruno Haible  <bruno@clisp.org>
8523
8524         pipe-posix: Make it work in C++ mode.
8525         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8526         (pipe): Use common idiom, not a macro definition.
8527         * lib/pipe.c: New file.
8528         * m4/pipe.m4: New file.
8529         * modules/pipe-posix (Description): Enhance.
8530         (Files): Add lib/pipe.c, m4/pipe.m4.
8531         (configure.ac): Invoke gl_FUNC_PIPE.
8532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8533         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8534         * tests/test-unistd-c++.cc: Check the signature of pipe.
8535
8536 2010-12-10  Bruno Haible  <bruno@clisp.org>
8537
8538         Rename module 'pipe' to 'spawn-pipe'.
8539         * modules/spawn-pipe: New file, renamed from modules/pipe.
8540         (Files, configure.ac, Makefile.am): Update.
8541         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8542         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8543         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8544         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8545         "spawn-pipe.h" instead of "pipe.h".
8546         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8547         to gl_SPAWN_PIPE.
8548         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8549         (Files, Makefile.am): Update.
8550         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8551         Update.
8552         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8553         Include "spawn-pipe.h" instead of "pipe.h".
8554         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8555         * lib/javacomp.c: Likewise.
8556         * lib/javaversion.c: Likewise.
8557         * lib/pipe-filter-gi.c: Likewise.
8558         * lib/pipe-filter-ii.c: Likewise.
8559         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8560         * modules/javacomp (Depends-on): Likewise.
8561         * modules/javaversion (Depends-on): Likewise.
8562         * modules/pipe-filter-gi (Depends-on): Likewise.
8563         * modules/pipe-filter-ii (Depends-on): Likewise.
8564         * MODULES.html.sh (Executing programs): Update.
8565         * NEWS: Mention the change.
8566
8567 2010-12-10  Eric Blake  <eblake@redhat.com>
8568
8569         pipe-posix: new module
8570         * modules/pipe-posix: New file.
8571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8572         (gl_UNISTD_H): Check for declaration.
8573         * modules/unistd (Makefile.am): Substitute it.
8574         * lib/unistd.in.h (pipe): Provide it for mingw.
8575         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8576         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8577
8578 2010-12-07  Bruno Haible  <bruno@clisp.org>
8579
8580         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8581         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8582         u8_strcmp_gnu.
8583         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8584
8585 2010-12-06  Bruno Haible  <bruno@clisp.org>
8586
8587         Update internal documentation.
8588         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8589
8590 2010-12-04  Bruno Haible  <bruno@clisp.org>
8591
8592         Put more information about failed tests into the test return codes.
8593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8594         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8595         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8596         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8597         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8598         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8599         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8600         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8601         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8602         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8603         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8604         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8605         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8606         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8607         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8608         returns a bit mask.
8609         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8610         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8611         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8612         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8613         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8614         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8615         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8616         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8617         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8618         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8619         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8620         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8621         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8623         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8624         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8625         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8626         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8627         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8628         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8629         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8630         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8631         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8632         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8633         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8634         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8635         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8636         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8637         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8638         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8639         gl_PRINTF_PRECISION): Likewise.
8640         * m4/regex.m4 (gl_REGEX): Likewise.
8641         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8642         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8643         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8644         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8645         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8647         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8648         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8649         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8650         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8651         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8652         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8653         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8654         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8655         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8656         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8657         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8658         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8659         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8660         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8661         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8662         enumerated value.
8663         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8664
8665 2010-12-04  Bruno Haible  <bruno@clisp.org>
8666
8667         Update for Solaris 11 2010-11.
8668         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8669         Express, released in November 2010.
8670
8671 2010-12-04  Bruno Haible  <bruno@clisp.org>
8672
8673         nproc: Relax license.
8674         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8675         and Paul Eggert.
8676         Requested by Ludovic Courtès <ludo@gnu.org>.
8677
8678 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8679
8680         utimecmp: fine-grained src to nearby coarse-grained dest
8681
8682         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8683         and the source is on a file system with higher-resolution time
8684         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8685         not work, and the time stamps are close together, the algorithm to
8686         determine the exact resolution from the read-back mtime was buggy:
8687         it had a "!=" where it should have had an "==".  This bug has been
8688         in the code ever since it was introduced to gnulib.
8689         Problem reported by Dan Jacobson in
8690         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8691
8692 2010-11-30  Bruno Haible  <bruno@clisp.org>
8693
8694         strerror_r-posix: Fix autoconf test.
8695         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8696
8697 2010-11-28  Bruno Haible  <bruno@clisp.org>
8698             Paul Eggert  <eggert@cs.ucla.edu>
8699
8700         Tests for module 'getdomainname'.
8701         * modules/getdomainname-tests: New file.
8702         * tests/test-getdomainname.c: New file, based on
8703         tests/test-gethostname.c.
8704
8705 2010-11-28  Bruno Haible  <bruno@clisp.org>
8706             Paul Eggert  <eggert@cs.ucla.edu>
8707
8708         getdomainname: Use the system function when possible.
8709         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8710         (getdomainname): Replace if needed. Provide the declaration if it is
8711         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8712         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8713         (getdomainname): When the system has getdomainname, call the system
8714         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8715         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8716         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8717         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8718         the function if its second argument is of type 'int' or if it is found
8719         in libnsl.
8720         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8721         <sys/systeminfo.h> and sysinfo().
8722         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8724         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8725         HAVE_GETDOMAINNAME.
8726         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8727         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8728         * doc/glibc-functions/getdomainname.texi: Document the problems with
8729         the getdomainname declaration.
8730
8731 2010-11-28  Bruno Haible  <bruno@clisp.org>
8732
8733         sys_socket: Ensure ss_family field on AIX.
8734         * lib/sys_socket.in.h (ss_family): New macro definition.
8735         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8736         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8737         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8738         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8739         * modules/sys_socket (Makefile.am): Substitute
8740         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8741         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8742
8743 2010-11-27  Bruno Haible  <bruno@clisp.org>
8744
8745         readline: Improve configure output.
8746         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8747         "checking for readline..." result understandable.
8748
8749 2010-11-27  Bruno Haible  <bruno@clisp.org>
8750
8751         *printf-posix: Detect a bug on Solaris 10/x86.
8752         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8753         for floating-point output.
8754         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8755         directive.
8756         * tests/test-snprintf-posix.h (test_function): Likewise.
8757         * tests/test-sprintf-posix.h (test_function): Likewise.
8758         * tests/test-vasprintf-posix.c (test_function): Likewise.
8759         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8760         * doc/posix-functions/printf.texi: Likewise.
8761         * doc/posix-functions/snprintf.texi: Likewise.
8762         * doc/posix-functions/sprintf.texi: Likewise.
8763         * doc/posix-functions/vfprintf.texi: Likewise.
8764         * doc/posix-functions/vprintf.texi: Likewise.
8765         * doc/posix-functions/vsnprintf.texi: Likewise.
8766         * doc/posix-functions/vsprintf.texi: Likewise.
8767         * doc/glibc-functions/obstack_printf.texi: Likewise.
8768         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8769
8770 2010-11-27  Bruno Haible  <bruno@clisp.org>
8771
8772         Fix link error when module libunistring-optional is in use.
8773         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8774         * modules/striconveha-tests (Makefile.am): Likewise.
8775
8776 2010-11-27  Bruno Haible  <bruno@clisp.org>
8777
8778         regex: Mention link dependencies.
8779         * modules/regex (Link): New section.
8780         * modules/rpmatch (Link): Likewise.
8781         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8782
8783 2010-11-27  Bruno Haible  <bruno@clisp.org>
8784
8785         ftoastr: Fix compilation error on Solaris.
8786         * lib/ftoastr.c: Include <config.h>.
8787
8788 2010-11-27  Bruno Haible  <bruno@clisp.org>
8789
8790         getloadavg: Update documentation.
8791         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8792
8793 2010-11-27  Bruno Haible  <bruno@clisp.org>
8794
8795         sys_socket: Fix test whether the functions are declared.
8796         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8797         not <sys/select.h>.
8798
8799 2010-11-27  Bruno Haible  <bruno@clisp.org>
8800
8801         getpass: Make sure to get system declaration on some platforms.
8802         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8803         gl_USE_SYSTEM_EXTENSIONS.
8804         * modules/getpass (Depends-on): Add extensions.
8805
8806 2010-11-26  Bruno Haible  <bruno@clisp.org>
8807
8808         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8809         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8810         'iconv' module is present.
8811         (ICONV_CONST): New macro.
8812         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8813         ICONV_CONST.
8814         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8815         set ICONV_CONST.
8816         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8817         here.
8818         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8819         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8820         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8821         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8822         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8823         present.
8824
8825 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8826
8827         ftoastr: comment fix
8828         * lib/ftoastr.c: "little" -> "little or no" in comment
8829
8830 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8831
8832         stdint: port to GCC 4.3 + OSX + Octave
8833         On this platform, stdint.h is buggy and defines int64_t to long
8834         long int.  The replacement defined it to long int, causing
8835         problems with C++ style name mangling.  Instead, trust the system
8836         definition if INT64_MAX is defined, and likewise for the unsigned
8837         variant.   Problem reported by Jarno Rajahalme in
8838         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8839         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8840         and don't mess with int64_t and INT64_MAX in this case.
8841         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8842
8843 2010-11-24  Bruno Haible  <bruno@clisp.org>
8844
8845         doc: Corrections regarding MacOS X 10.4 and 10.5.
8846         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8847         MacOS X.
8848         Reported by Simon Josefsson.
8849
8850 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8851
8852         Uninstall ".bin" files installed by relocwrapper.
8853         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8854         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8855         unless it is already there.
8856
8857 2010-11-21  Bruno Haible  <bruno@clisp.org>
8858
8859         Update for NetBSD 5.0.
8860         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8861         NetBSD; the test fails on NetBSD 5.0.
8862         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8863         about NetBSD.
8864
8865 2010-11-21  Bruno Haible  <bruno@clisp.org>
8866
8867         Update for HP-UX 11.23 and HP-UX 11.31.
8868         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8869         HP-UX.
8870
8871 2010-11-21  Bruno Haible  <bruno@clisp.org>
8872
8873         Update for MacOS X 10.5.
8874         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8875         MacOS X; the test fails on MacOS X 10.5.8.
8876         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8877         about MacOS X.
8878
8879 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8880
8881         bootstrap: add bootstrap_sync option.
8882         See discussion at
8883         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8884         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8885         * build-aux/bootstrap: Accept --bootstrap-sync to update
8886         bootstrap if it is not identical to the local gnulib's
8887         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8888         enable this by default.  Accept --no-bootstrap-sync to disable
8889         it.
8890
8891 2010-11-20  Bruno Haible  <bruno@clisp.org>
8892
8893         Ensure that <features.h> is included before __GLIBC__ is tested.
8894         * lib/printf-parse.h: Include <features.h>.
8895         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8896         Reported by Mike Frysinger <vapier@gentoo.org>.
8897
8898         Ensure that <features.h> is included before __GLIBC__ is tested.
8899         * lib/wchar.in.h: Include <features.h>.
8900         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8901         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8902         Reported by Mike Frysinger <vapier@gentoo.org>.
8903
8904         Ensure that <features.h> is included before __GLIBC__ is tested.
8905         * lib/arpa_inet.in.h: Include <features.h>.
8906         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8907         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8908         Reported by Mike Frysinger <vapier@gentoo.org>.
8909
8910         Ensure that <features.h> is included before __GLIBC__ is tested.
8911         * build-aux/link-warning.h: Include <features.h>.
8912         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8913         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8914         Reported by Mike Frysinger <vapier@gentoo.org>.
8915
8916         Ensure that <features.h> is included before __GLIBC__ is tested.
8917         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8918         Reported by Mike Frysinger <vapier@gentoo.org>.
8919
8920 2010-11-20  Bruno Haible  <bruno@clisp.org>
8921
8922         memmem: Fix autoconf test.
8923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8924
8925 2010-11-20  Bruno Haible  <bruno@clisp.org>
8926
8927         Port to uClibc.
8928         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8929         * lib/fcntl.in.h: Likewise.
8930         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8931         * lib/mbrtowc.c (mbrtowc): Likewise.
8932         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8933         * lib/strerror_r.c: Likewise.
8934         * lib/unistr/u8-strnlen.c: Likewise.
8935         * lib/vasnprintf.c (decimal_point_char): Likewise.
8936         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8937         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8938         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8939         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8940         * tests/test-sigaction.c (handler, main): Likewise.
8941         * lib/freading.h: Treat uClibc like a non-glibc platform.
8942         * lib/freading.c: Likewise.
8943         * lib/gettext.h: Likewise.
8944         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8945         Likewise.
8946         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8947         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8948         * lib/propername.c (proper_name_utf8): Likewise.
8949         * lib/spawn.in.h: Likewise.
8950         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8951         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8952         mem_cd_iconveh_internal): Likewise.
8953         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8954         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8955         strstr, strcasestr): Likewise.
8956         * lib/unicodeio.c (unicode_to_mb): Likewise.
8957         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8958         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8959         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8960         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8961         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8962         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8963         * lib/unistr/u8-stpncpy.c: Likewise.
8964         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8965         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8966         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8967         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8968         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8969         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8970         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8971         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8973         Likewise.
8974         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8975         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8976         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8977         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8978         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8979         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8980         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8981         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8982         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8983         * tests/test-striconveha.c (main): Likewise.
8984         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8985         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8986         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8987         * doc/posix-functions/getline.texi: Likewise.
8988         Reported by Mike Frysinger <vapier@gentoo.org>.
8989
8990 2010-11-20  Bruno Haible  <bruno@clisp.org>
8991
8992         nproc: Fix condition.
8993         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8994         HAVE_PTHREAD_AFFINITY_NP.
8995
8996 2010-11-20  Bruno Haible  <bruno@clisp.org>
8997
8998         Fix a comment.
8999         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9000
9001 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9002
9003         ftoastr: don't assume snprintf
9004         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9005         Implement a subset of snprintf here, by using sprintf safely.
9006         * modules/ftoastr (Depends-on): Remove snprintf.
9007
9008 2010-11-19  Jim Meyering  <meyering@redhat.com>
9009
9010         test-rename.h: fix compilation failure
9011         * tests/test-rename.h (test_rename): Add omitted "}".
9012
9013 2010-11-17  Jim Meyering  <meyering@redhat.com>
9014
9015         maint.mk: add a URL discussing the no-@acronym policy
9016         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9017
9018 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9019
9020         ftoastr: depend on snprintf, improve comments
9021         * lib/ftoastr.c: Also mention Loitsch's draft.
9022         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9023         needed in the current implementation, but it might simplify
9024         speeding up the code later.
9025         * modules/ftoastr: Depend on snprintf; this improves portability.
9026         Suggested by Bruno Haible in the same email.
9027
9028         ftoastr: port to hosts lacking strtof and strtold
9029         Problem reported by Bruno Haible in
9030         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9031         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9032         environment and strtold (and presumably strtof) are not available.
9033         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9034         (configure.ac): Require gl_C99_STRTOLD.
9035
9036 2010-11-18  Bruno Haible  <bruno@clisp.org>
9037
9038         c-strtold: Avoid link error on AIX 7.
9039         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9040         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9041         (gl_C_STRTOLD): Test whether strtold_l exists.
9042         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9043
9044 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9045
9046         intprops: new macro INT_BITS_STRLEN_BOUND
9047         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9048         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9049         not exposed.  Also, it uses a slightly tighter bound than before;
9050         though this makes no practical difference, we might as well be as
9051         tight as we easily can.
9052
9053         ftoastr: new module, for lossless conversion of floats to short strings
9054         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9055         * modules/ftoastr: New files.
9056
9057 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9058
9059         bootstrap: port to Solaris sed
9060         * build-aux/bootstrap (get_version): Port to Solaris sed.
9061         See Ralf Wildenhues's note in
9062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9063
9064 2010-11-14  Jim Meyering  <meyering@redhat.com>
9065
9066         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9067         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9068         and move definition closer to sole use.
9069
9070 2010-11-13  Jim Meyering  <meyering@redhat.com>
9071
9072         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9073         Now we require at least autoconf-2.59, which means the work-around
9074         is no longer needed.
9075         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9076         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9077         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9078         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9079         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9080
9081 2010-11-13  Bruno Haible  <bruno@clisp.org>
9082
9083         rename, renameat: Avoid test failures at NFS mounted locations.
9084         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9085         functions.
9086         (test_rename): Use assert_nonexistent.
9087         * tests/test-rename.c: Include <dirent.h>.
9088         * tests/test-renameat.c: Likewise.
9089         Reported by Gary V. Vaughan <gary@gnu.org>.
9090
9091         rename, renameat: Document Linux bug with NFS
9092         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9093         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9094         * doc/posix-functions/renameat.texi: Likewise.
9095         Suggested by Eric Blake.
9096
9097 2010-11-13  Bruno Haible  <bruno@clisp.org>
9098
9099         rename test: Add comments.
9100         * tests/test-rename.h (test_rename): Add structure and comments.
9101
9102 2010-11-13  Eric Blake  <eblake@redhat.com>
9103
9104         maintainer-makefile: cover a few more files
9105         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9106         scripts generated within C files, for libvirt.
9107
9108 2010-11-13  Bruno Haible  <bruno@clisp.org>
9109
9110         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9111         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9112         character, return the number of bytes that belong together, not always
9113         1.
9114         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9115         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9116         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9117         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9118         number of bytes of an invalid character.
9119         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9120         (main): Invoke it.
9121         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9122         results.
9123         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9124         malformed byte sequences.
9125         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9126         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9127         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9128         Reported by Ben Pfaff and Paolo Bonzini.
9129
9130 2010-11-13  Bruno Haible  <bruno@clisp.org>
9131
9132         openat: Work around glibc bug with fchownat() and empty file names.
9133         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9134         (gl_FUNC_FCHOWNAT): Invoke it.
9135         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9136         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9137         Reported by Gary V. Vaughan <gary@gnu.org>.
9138
9139 2010-11-13  Bruno Haible  <bruno@clisp.org>
9140
9141         openat: Ensure autoconf macro ordering.
9142         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9143         gl_USE_SYSTEM_EXTENSIONS.
9144         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9145
9146 2010-11-13  Bruno Haible  <bruno@clisp.org>
9147
9148         Update comments.
9149         * lib/unistr/u8-check.c: Update file name in comments.
9150         * lib/unistr/u8-mblen.c: Likewise.
9151         * lib/unistr/u8-prev.c: Likewise.
9152         * lib/unistr/u8-strmblen.c: Likewise.
9153         * lib/unistr/u8-strmbtouc.c: Likewise.
9154
9155 2010-11-13  Jim Meyering  <meyering@redhat.com>
9156
9157         tests: avoid test failure on Solaris 10 due to lack of PATH export
9158         * tests/test-update-copyright.sh: Don't forget to export PATH.
9159
9160         init.sh: ensure that IFS is defined, just in case...
9161         * tests/init.sh (setup_): Ensure that IFS is defined,
9162         so that saving and restoring it works as expected.  This
9163         appears to be useful at least for an old version of dash
9164         from a long time ago (RH 6).  See here for details:
9165         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9166
9167         maint.mk: tighten "test a == b" check
9168         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9169         test to files that contain something like #!/bin/sh.
9170         Without this, coreutils would get two false positives in
9171         the comments of C source files.
9172
9173 2010-11-12  Eric Blake  <eblake@redhat.com>
9174
9175         bootstrap: fix typo in previous attempt
9176         * build-aux/bootstrap (buildreq): Correct the grouping.
9177         Reported by Paul Eggert.
9178
9179         maintainer-makefile: prohibit test x == x
9180         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9181         Based on a report by Matthias Bolte.
9182
9183         bootstrap: allow FreeBSD gzip
9184         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9185         which has no '.' and goes to stderr.
9186         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9187         Reported by Matthias Bolte.
9188
9189         maintainer-makefile: check for i18n setup
9190         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9191         will likely work.
9192
9193 2010-11-12  Bruno Haible  <bruno@clisp.org>
9194
9195         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9196         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9197         * lib/nanosleep.c (nanosleep): Likewise.
9198
9199 2010-11-11  Bruno Haible  <bruno@clisp.org>
9200
9201         fcntl-h: Fix for use of C++ on glibc systems.
9202         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9203         also on glibc systems in C++ mode.
9204         Reported by Gary V. Vaughan <gary@gnu.org>.
9205
9206 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9207
9208         mknod: avoid false failure with dash
9209         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9210
9211 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9212
9213         unlink: Fix "is it should" typo in diagnostic.
9214         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9215         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9216
9217 2010-11-11  Bruno Haible  <bruno@clisp.org>
9218
9219         Tests for module 'strerror_r-posix'.
9220         * modules/strerror_r-posix-tests: New file.
9221         * tests/test-strerror_r.c: New file.
9222         * tests/test-string-c++.cc: Check the signature of strerror_r.
9223
9224         New module 'strerror_r-posix'.
9225         * lib/string.in.h (strerror_r): New declaration.
9226         * lib/strerror_r.c: New file.
9227         * m4/strerror_r.m4: New file.
9228         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9229         of strerror_r.
9230         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9231         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9232         * modules/strerror_r-posix: New file.
9233         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9234         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9235         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9236         portability problems.
9237
9238 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9239
9240         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9241         line is also considered for output. Quoted function name in shell
9242         command, so temporary files for functions like MyClass::operator()
9243         are removed correctly without errors.
9244
9245 2010-11-09  Bruno Haible  <bruno@clisp.org>
9246
9247         * doc/posix-functions/strerror.texi: List more failing platforms.
9248
9249         * doc/posix-functions/strerror.texi: Add a comment.
9250
9251 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9252
9253         fdopendir: fix bug on MacOS X when low on file descriptors
9254
9255         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9256         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9257         All callers changed.
9258         (fdopendir): Invoke save_cwd at the top level, not after using
9259         multiple dup() calls to use up file descriptors.  Then retry
9260         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9261         less than the maximum number of open file descriptors, because
9262         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9263         on Mac OS X 10.6.4 for tar 1.24
9264         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9265         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9266         and for tar 1.25
9267         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9268
9269 2010-11-07  Bruno Haible  <bruno@clisp.org>
9270
9271         vasnprintf: Support I flag on glibc systems.
9272         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9273         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9274         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9275         snprintf function.
9276         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9277         glibc systems.
9278         * tests/test-vasnprintf-posix3.c: New file.
9279         * modules/vasnprintf-posix-tests (Files): Add it.
9280         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9281
9282 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9283
9284         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9285         * MODULES.html.sh: For compiler warnings, use name
9286         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9287
9288 2010-11-05  Eric Blake  <eblake@redhat.com>
9289
9290         ceil, floor: avoid spurious failure with icc
9291         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9292         [denormals-as-zero] when optimizing without -mieee-fp option.
9293         * tests/test-floorf2.c (floorf_reference): Likewise.
9294         * tests/test-ceilf1.c (dummy): New function.
9295         (main): Use it to outsmart icc's optimization.
9296         * tests/test-floorf1.c (dummy, main): Likewise.
9297
9298         tests: require working signbit
9299         * modules/ceilf-tests (Depends-on): Add signbit.
9300         * modules/ceill-tests (Depends-on): Likewise.
9301         * modules/floorf-tests (Depends-on): Likewise.
9302         * modules/floorl-tests (Depends-on): Likewise.
9303         * modules/round-tests (Depends-on): Likewise.
9304         * modules/roundf-tests (Depends-on): Likewise.
9305         * modules/roundl-tests (Depends-on): Likewise.
9306         * modules/trunc-tests (Depends-on): Likewise.
9307         * modules/truncf-tests (Depends-on): Likewise.
9308         * modules/truncl-tests (Depends-on): Likewise.
9309
9310         strtod: work around icc bug
9311         * lib/strtod.c (minus_zero): Define to working value.
9312         (strtod): Use it to avoid icc bug.
9313
9314         copysign: enhance tests
9315         * modules/copysign-tests (Files): Add minus-zero.h.
9316         * tests/test-copysign.c (main): Also test zeros.
9317
9318 2010-11-04  Eric Blake  <eblake@redhat.com>
9319
9320         ceil, floor, round, trunc: enhance tests of -0
9321         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9322         * tests/test-ceill.c (main): Likewise.
9323         * tests/test-floorf1.c (main): Likewise.
9324         * tests/test-floorl.c (main): Likewise.
9325         * tests/test-round1.c (main): Likewise.
9326         * tests/test-roundf1.c (main): Likewise.
9327         * tests/test-roundl.c (main): Likewise.
9328         * tests/test-trunc1.c (main): Likewise.
9329         * tests/test-truncf1.c (main): Likewise.
9330         * tests/test-truncl.c (main): Likewise.
9331
9332 2010-11-04  Eric Blake  <eblake@redhat.com>
9333
9334         frexp, tests: work around ICC bug with -zero
9335         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9336         works with more compilers.
9337         * tests/minus-zero.h: New file.
9338         * modules/ceilf-tests (Files): Include it.
9339         * modules/ceill-tests (Files): Likewise.
9340         * modules/floorf-tests (Files): Likewise.
9341         * modules/floorl-tests (Files): Likewise.
9342         * modules/frexp-nolibm-tests (Files): Likewise.
9343         * modules/frexp-tests (Files): Likewise.
9344         * modules/frexpl-nolibm-tests (Files): Likewise.
9345         * modules/frexpl-tests (Files): Likewise.
9346         * modules/isnan-tests (Files): Likewise.
9347         * modules/isnand-nolibm-tests (Files): Likewise.
9348         * modules/isnand-tests (Files): Likewise.
9349         * modules/isnanf-nolibm-tests (Files): Likewise.
9350         * modules/isnanf-tests (Files): Likewise.
9351         * modules/isnanl-nolibm-tests (Files): Likewise.
9352         * modules/isnanl-tests (Files): Likewise.
9353         * modules/round-tests (Files): Likewise.
9354         * modules/roundf-tests (Files): Likewise.
9355         * modules/roundl-tests (Files): Likewise.
9356         * modules/ldexpl-tests (Files): Likewise.
9357         * modules/signbit-tests (Files): Likewise.
9358         * modules/snprintf-posix-tests (Files): Likewise.
9359         * modules/sprintf-posix-tests (Files): Likewise.
9360         * modules/strtod-tests (Files): Likewise.
9361         * modules/trunc-tests (Files): Likewise.
9362         * modules/truncf-tests (Files): Likewise.
9363         * modules/truncl-tests (Files): Likewise.
9364         * modules/vsnprintf-posix-tests (Files): Likewise.
9365         * modules/vsprintf-posix-tests (Files): Likewise.
9366         * modules/vasnprintf-posix-tests (Files): Likewise.
9367         * modules/vasprintf-posix-tests (Files): Likewise.
9368         * tests/test-ceilf1.c (main): Use it.
9369         * tests/test-ceill.c (main): Likewise.
9370         * tests/test-floorf1.c (main): Likewise.
9371         * tests/test-floorl.c (main): Likewise.
9372         * tests/test-frexp.c (main): Likewise.
9373         * tests/test-frexpl.c (main): Likewise.
9374         * tests/test-isnan.c (main): Likewise.
9375         * tests/test-isnand.h (main): Likewise.
9376         * tests/test-isnanf.h (main): Likewise.
9377         * tests/test-isnanl.h (main): Likewise.
9378         * tests/test-ldexpl.c (main): Likewise.
9379         * tests/test-round.c (main): Likewise.
9380         * tests/test-roundf.c (main): Likewise.
9381         * tests/test-roundl.c (main): Likewise.
9382         * tests/test-signbit.c (test_signbitf, test_signbitd)
9383         (test_signbitl): Likewise.
9384         * tests/test-snprintf-posix.h (test_function): Likewise.
9385         * tests/test-sprintf-posix.h (test_function): Likewise.
9386         * tests/test-strtod.c (main): Likewise.
9387         * tests/test-trunc1.c (main): Likewise.
9388         * tests/test-truncf1.c (main): Likewise.
9389         * tests/test-truncl.c (main): Likewise.
9390
9391         isnanl: work around icc bug
9392         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9393
9394 2010-11-03  Eric Blake  <eblake@redhat.com>
9395
9396         tests: fix compiler warnings
9397         * tests/test-getopt.h (test_getopt): Fix condition.
9398         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9399         * tests/test-pipe2.c (main): Likewise.
9400         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9401
9402         utimens: fix broken m4 test
9403         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9404
9405 2010-10-28  Bruno Haible  <bruno@clisp.org>
9406
9407         posix_spawn*, getdtablesize: Relax license.
9408         * modules/posix_spawn (License): Change to LGPLv2+.
9409         * modules/posix_spawnp (License): Likewise.
9410         * modules/posix_spawn-internal (License): Likewise.
9411         * modules/posix_spawnattr_init (License): Likewise.
9412         * modules/posix_spawnattr_getflags (License): Likewise.
9413         * modules/posix_spawnattr_setflags (License): Likewise.
9414         * modules/posix_spawnattr_getpgroup (License): Likewise.
9415         * modules/posix_spawnattr_setpgroup (License): Likewise.
9416         * modules/posix_spawnattr_getschedparam (License): Likewise.
9417         * modules/posix_spawnattr_setschedparam (License): Likewise.
9418         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9419         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9420         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9421         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9422         * modules/posix_spawnattr_getsigmask (License): Likewise.
9423         * modules/posix_spawnattr_setsigmask (License): Likewise.
9424         * modules/posix_spawnattr_destroy (License): Likewise.
9425         * modules/posix_spawn_file_actions_init (License): Likewise.
9426         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9427         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9428         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9429         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9430         * modules/getdtablesize (License): Likewise.
9431         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9432
9433 2010-10-26  Bruno Haible  <bruno@clisp.org>
9434
9435         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9436         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9437         Cygwin and mingw.
9438         Suggested by Eric Blake.
9439
9440 2010-10-26  Bruno Haible  <bruno@clisp.org>
9441
9442         stdio: Work around compilation error due to renameat() on Solaris 10.
9443         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9444         * lib/renameat.c: Don't include <unistd.h> here.
9445         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9446         Reported by Paul Eggert and Eric Blake.
9447
9448 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9449
9450         renameat: port to Solaris 10, which declares renameat in unistd.h
9451
9452         * lib/renameat.c: Include unistd.h before stdio.h, because
9453         Solaris 10 declares renameat in unistd.h.  Problem encountered
9454         when building GNU tar 1.24 on Solaris 10.
9455
9456 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9457
9458         fdopendir: fix C89 compilation
9459         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9460         compilers.
9461
9462 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9463
9464         inttostr: simplify by removing unnecessary redundancy
9465         * lib/anytostr.c: Don't include verify.h.
9466         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9467         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9468         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9469         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9470         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9471         Likewise.
9472         * modules/inttostr (Depends-on): Remove 'verify'.
9473
9474 2010-10-23  Bruno Haible  <bruno@clisp.org>
9475
9476         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9477         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9478         Reported by Eric Blake.
9479
9480 2010-10-23  Bruno Haible  <bruno@clisp.org>
9481
9482         Tests: Fix LOCALE_JA on MirBSD 10.
9483         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9484         to an UTF-8 locale.
9485         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9486         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9487         Reported by Eric Blake.
9488
9489 2010-10-21  Bruno Haible  <bruno@clisp.org>
9490
9491         nl_langinfo test: Avoid test failure on NetBSD 5.
9492         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9493         Reported by Eric Blake.
9494
9495 2010-10-21  Eric Blake  <eblake@redhat.com>
9496
9497         c-stack: work around libsigsegv 2.8 bug
9498         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9499         overflow on at least PowerPC64.
9500
9501 2010-10-17  Bruno Haible  <bruno@clisp.org>
9502
9503         userspec: Drop redundant file.
9504         * modules/userspec (Files): Remove lib/inttostr.h.
9505
9506 2010-10-17  Bruno Haible  <bruno@clisp.org>
9507
9508         nl_langinfo tests: Silence some warnings.
9509         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9510         Reported by Jim Meyering.
9511
9512 2010-10-17  Bruno Haible  <bruno@clisp.org>
9513
9514         Make use of GCC's attribute __alloc_size__.
9515         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9516         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9517         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9518         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9519         __alloc_size__.
9520         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9521         Suggested by Jim Meyering.
9522
9523 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9524
9525         bootstrap: anchor .gitignore entries.
9526         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9527         with...
9528         (insert_vc_ignore): ... this new function, which prepends `/' to
9529         all .gitignore entries before passing them to
9530         insert_sorted_if_absent.
9531
9532 2010-10-16  Bruno Haible  <bruno@clisp.org>
9533
9534         nextafter: Fix configure check.
9535         * modules/nextafter (configure.ac): Correct expected prototype.
9536
9537 2010-10-16  Bruno Haible  <bruno@clisp.org>
9538
9539         termios: Update documentation.
9540         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9541
9542 2010-10-16  Bruno Haible  <bruno@clisp.org>
9543
9544         tests: Make them compile with TinyCC.
9545         * tests/test-strstr.c (main): Remove parentheses around array
9546         initializer.
9547
9548 2010-10-15  Eric Blake  <eblake@redhat.com>
9549
9550         ignore-value: make header idempotent
9551         * lib/ignore-value.h: Add double-inclusion guards.
9552         Reported by Stefan Berger.
9553
9554 2010-10-15  Jim Meyering  <meyering@redhat.com>
9555
9556         GNUmakefile: handle "stable" target, not "major"
9557         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9558         lists in maint.mk and announce-gen.  Without this, "make stable"
9559         would fail to ensure that $(VERSION) is up to date.
9560
9561 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9562
9563         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9564         & co.
9565
9566 2010-10-14  Bruno Haible  <bruno@clisp.org>
9567
9568         vasnprintf: Don't set errno to 0.
9569         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9570         block that sets it to 0.
9571         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9572
9573 2010-10-14  Bruno Haible  <bruno@clisp.org>
9574
9575         socketlib: Fix.
9576         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9577         gl_PREREQ_SYS_H_WINSOCK2.
9578         Reported by Ian Beckwith <ianb@erislabs.net>.
9579
9580 2010-10-13  Jim Meyering  <meyering@redhat.com>
9581
9582         test-select-stdin.c: avoid warn_unused_result warnings
9583         * tests/test-select-stdin.c: Include "macros.h".
9584         ASSERT that read and fflush succeed.
9585
9586 2010-10-13  Jim Meyering  <meyering@redhat.com>
9587
9588         git-version-gen: do require git-VC'd files in cwd
9589         * build-aux/git-version-gen: Reject a git version string
9590         if there are no commits associated with the current directory.
9591         This avoids an unlikely false-positive (unrelated dir whose parent
9592         repository also contains a tag matching v*), as pointed out
9593         by Giuseppe Scrivano in
9594         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9595
9596 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9597
9598         argv-iter: omit nonconforming declaration
9599         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9600         enum arg_iter_err declaration, which doesn't conform to C99.
9601         Solaris 10 cc warns about this.
9602
9603 2010-10-13  Eric Blake  <eblake@redhat.com>
9604
9605         termios: fix compilation on mingw
9606         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9607         (gl_TERMIOS_H): Adjust it on mingw.
9608         * modules/termios (Makefile.am): Substitute new key.
9609         * lib/termios.in.h (includes): Make include_next conditional.
9610         * doc/posix-headers/termios.texi (termios.h): Update
9611         documentation.
9612         Reported by Daniel P. Berrange.
9613
9614 2010-10-13  Jim Meyering  <meyering@redhat.com>
9615
9616         git-version-gen: don't require that .git/ be in the current dir
9617         * build-aux/git-version-gen: Adjust this script so that it works
9618         when run from any working directory beneath the top-level .git/-
9619         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9620         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9621
9622         test-select: avoid warn_unused_result warnings
9623         * tests/test-select.c: Include "macros.h".
9624         ASSERT that each call to read, write, and pipe succeeds.
9625         While not technically required, also check each "close".
9626         * modules/select-tests (Files): Add tests/macros.h.
9627
9628         test-symlinkat: remove declaration of unused local
9629         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9630
9631         test-inttostr: avoid shadowing warnings
9632         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9633         and use malloc rather than the stack for the same reason as
9634         mentioned in the comment justifying the other allocation.
9635
9636 2010-10-11  Bruno Haible  <bruno@clisp.org>
9637
9638         stdlib: Allow multiple gnulib generated replacements to coexist.
9639         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9640         Reported by Sam Steingold <sds@gnu.org>.
9641
9642 2010-10-11  Jim Meyering  <meyering@redhat.com>
9643
9644         fix a documentation typo
9645         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9646
9647 2010-10-11  Eric Blake  <eblake@redhat.com>
9648
9649         futimens: work around Solaris 11 bug
9650         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9651         * tests/test-futimens.h (test_futimens): Enhance, rather than
9652         weaken test.
9653         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9654
9655 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9656
9657         Indentation.
9658         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9659         higher-level operators more to the left.
9660
9661 2010-10-11  Jim Meyering  <meyering@redhat.com>
9662
9663         test-futimens: avoid unwarranted test failure on Solaris 5.11
9664         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9665         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9666         because it tries to dereference the NULL name argument.
9667
9668 2010-10-11  Bruno Haible  <bruno@clisp.org>
9669
9670         Indentation.
9671         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9672         indentation.
9673
9674 2010-10-11  Jim Meyering  <meyering@redhat.com>
9675
9676         spawn.in.h: make indentation consistent with parentheses
9677         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9678         Make indentation consistent with parentheses.
9679
9680 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9681
9682         Fix mismatched parens in previous commit
9683         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9684         parens.
9685
9686 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9687
9688         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9689
9690         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9691         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9692         * lib/malloca.c: Include "verify.h".
9693         (verify1): Remove, replacing with a verify call.
9694         * lib/relocwrapper.c (verify1): Likewise.
9695         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9696         Likewise.
9697         * modules/malloca (Depends-on): Add 'verify'.
9698         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9699         * modules/vasnprintf (Depends-on): Add 'verify'.
9700         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9701         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9702         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9703         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9704         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9705         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9706         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9707
9708         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9709
9710         Formerly the style was sometimes 2*X - 1, because the C standard
9711         was wrongly thought to disallow ?: in integral constant expressions.
9712         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9713         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9714         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9715         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9716         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9717         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9718         verify that time_t cannot be floating.
9719
9720 2010-10-08  Eric Blake  <eblake@redhat.com>
9721
9722         time: enforce recent POSIX ruling that time_t is integral
9723         * lib/time.in.h (__time_t_must_be_integral): Detect any
9724         problematic systems, allowing the rest of gnulib to assume POSIX.
9725
9726 2010-10-08  Jim Meyering  <meyering@redhat.com>
9727
9728         fdopendir: fix a bug on systems lacking openat and /proc support
9729         OpenBSD 4.7 is one such system.  The most noticeable effect was
9730         failure of any application making nontrivial use of fts: rm, du,
9731         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9732           ./rm: traversal failed: `a': Bad file descriptor
9733         Debugging that, you see that even though FD 6 was closed just
9734         prior to the opendir call in fd_clone_opendir, its resulting
9735         dir->dd_fd was 8, rather than the expected value of 6:
9736
9737         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9738         93                close (fd);
9739         (gdb) n
9740         94                dir = fd_clone_opendir (dupfd);
9741         (gdb) n
9742         95                saved_errno = errno;
9743         (gdb) p dir->dd_fd
9744         $11 = 8
9745
9746         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9747         The problem is that on OpenBSD, fd_clone_opendir has to resort
9748         to using the old-style save/restore CWD mechanism, due to its
9749         lack of openat/proc support, and *that* would steal the FD (6)
9750         that opendir was supposed to use.
9751
9752         The fix is to squirrel away the desired FD so that save_cwd uses a
9753         different one, and then free the dest FD right before calling opendir.
9754         That guarantees opendir will use the required file descriptor.
9755
9756         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9757
9758 2010-10-08  Bruno Haible  <bruno@clisp.org>
9759
9760         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9761         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9762
9763 2010-10-08  Bruno Haible  <bruno@clisp.org>
9764
9765         nanosleep: Make replacement POSIX compliant.
9766         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9767         is out of range.
9768         Reported by Jim Meyering.
9769
9770 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9771
9772         bootstrap: add hook for altering gnulib.mk, for Bison
9773         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9774         the Bison bootstrapping process can rewrite file names and variables
9775         in this file before later parts of 'bootstrap' use the file.
9776         Bison wants to include lib/gnulib.mk from the top-level makefile,
9777         so it needs the file names in this file to be relative to the top
9778         level, not relative to lib; plus it needs variable names to be
9779         rewritten.
9780         (slurp): Use the new function.
9781
9782         bootstrap: reformat for readability
9783         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9784
9785 2010-10-08  Eric Blake  <eblake@redhat.com>
9786
9787         docs: update cygwin progress
9788         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9789         1.7.7.
9790         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9791         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9792         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9793         * doc/posix-functions/carg.texi (carg): Likewise.
9794         * doc/posix-functions/cargf.texi (cargf): Likewise.
9795         * doc/posix-functions/casin.texi (casin): Likewise.
9796         * doc/posix-functions/casinf.texi (casinf): Likewise.
9797         * doc/posix-functions/casinh.texi (casinh): Likewise.
9798         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9799         * doc/posix-functions/catan.texi (catan): Likewise.
9800         * doc/posix-functions/catanf.texi (catanf): Likewise.
9801         * doc/posix-functions/catanh.texi (catanh): Likewise.
9802         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9803         * doc/posix-functions/ccos.texi (ccos): Likewise.
9804         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9805         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9806         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9807         * doc/posix-functions/cexp.texi (cexp): Likewise.
9808         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9809         * doc/posix-functions/cimag.texi (cimag): Likewise.
9810         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9811         * doc/posix-functions/clog.texi (clog): Likewise.
9812         * doc/posix-functions/clogf.texi (clogf): Likewise.
9813         * doc/posix-functions/conj.texi (conj): Likewise.
9814         * doc/posix-functions/conjf.texi (conjf): Likewise.
9815         * doc/posix-functions/cpow.texi (cpow): Likewise.
9816         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9817         * doc/posix-functions/cproj.texi (cproj): Likewise.
9818         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9819         * doc/posix-functions/creal.texi (creal): Likewise.
9820         * doc/posix-functions/crealf.texi (crealf): Likewise.
9821         * doc/posix-functions/csin.texi (csin): Likewise.
9822         * doc/posix-functions/csinf.texi (csinf): Likewise.
9823         * doc/posix-functions/csinh.texi (csinh): Likewise.
9824         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9825         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9826         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9827         * doc/posix-functions/ctan.texi (ctan): Likewise.
9828         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9829         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9830         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9831         * doc/posix-headers/complex.texi (complex.h): Likewise.
9832
9833 2010-10-07  Jim Meyering  <meyering@redhat.com>
9834
9835         parse-datetime: avoid compilation failure on OpenBSD 4.7
9836         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9837         This works around a compilation failure on OpenBSD 4.7:
9838         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9839
9840 2010-10-07  Eric Blake  <eblake@redhat.com>
9841
9842         docs: update cygwin progress
9843         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9844         1.7.6.
9845         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9846         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9847         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9848         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9849         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9850         Likewise.
9851         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9852         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9853         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9854         Likewise.
9855         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9856         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9857         Likewise.
9858         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9859         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9860         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9861         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9862         Likewise.
9863         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9864         Likewise.
9865         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9866
9867         docs: update parse-datetime history
9868         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9869         documentation of this function's history and alternatives.
9870
9871         cygwin: use more robust version check
9872         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9873         exclude an eventual cygwin 1.9.1.
9874         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9875         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9876         (gl_FUNC_STRCASESTR): Likewise.
9877         Reported by Bruno Haible.
9878
9879 2010-10-06  Bruno Haible  <bruno@clisp.org>
9880
9881         string, sys_select: Avoid #including large headers unless necessary.
9882         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9883         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9884         OSF/1, BeOS, Haiku.
9885         Reported by Jim Meyering.
9886
9887 2010-10-05  Eric Blake  <eblake@redhat.com>
9888
9889         memmem, strstr, strcasestr: fix bug with long periodic needle
9890         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9891         periodic needle having false positive.
9892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9893         and cygwin 1.7.7.
9894         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9895         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9896         (gl_FUNC_STRCASESTR): Likewise.
9897         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9898         * tests/test-memmem.c (main): Expose the bug.
9899         * tests/test-strcasestr.c (main): Likewise.
9900         * tests/test-strstr.c (main): Likewise.
9901         * tests/test-c-strcasestr.c (main): Likewise.
9902         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9903         * doc/posix-functions/strstr.texi (strstr): Likewise.
9904         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9905         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9906
9907 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9908
9909         parse-datetime: do some more renaming
9910         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9911         parse_datetime, not get_date.  Mention the renaming.
9912         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9913         in comments.
9914         * m4/bison.m4: Likewise.
9915
9916 2010-10-05  Eric Blake  <eblake@redhat.com>
9917
9918         parse-datetime: better name than get_date
9919         * NEWS: Reword the deprecation notice.
9920         * modules/get_date: Rename to modules/parse-datetime.
9921         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9922         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9923         * lib/get_date.y: Rename to lib/parse-datetime.y.
9924         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9925         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9926         * doc/getdate.texi: Provide fallback wrapper.
9927         * lib/getdate.h: Move guts, and wrap...
9928         * lib/parse-datetime.h: ...new file.
9929         * lib/parse-datetime.y (get_date): Rename...
9930         (parse_datetime): ...to this.
9931         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9932         (gl_PARSE_DATETIME): ...to this.
9933         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9934         documentation.
9935         * modules/getdate (Files): Provide fallback docs and header.
9936         (Notice, Depends-on): Update references.
9937         * tests/test-parse-datetime.c: Likewise.
9938         * DEPENDENCIES: Likewise.
9939         * MODULES.html.sh (Date and time <time.h>): Likewise.
9940         * doc/parse-datetime.texi (Date input formats)
9941         (Authors of parse_datetime): Likewise.
9942         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9943         (Include): Likewise.
9944         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9945         * gnulib-tool: Likewise.
9946         * m4/bison.m4 (gl_BISON): Likewise.
9947         Suggested by Bruno Haible.
9948
9949 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9950
9951         more ports to Solaris tr, which needs [] around ranges
9952         * gnulib-tool: Solaris tr needs [] around ranges.
9953         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9954         * tests/test-pipe-filter-gi1.c (main): Likewise.
9955         * tests/test-pipe-filter-ii1.c (main): Likewise.
9956
9957 2010-10-05  Eric Blake  <eblake@redhat.com>
9958
9959         bootstrap: fix Solaris regression
9960         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9961         around ranges.
9962         Reported by Pádraig Brady.
9963
9964         bootstrap: work with pkg-config
9965         * build-aux/bootstrap (check_versions): Also transliterate - in
9966         prerequisite name.
9967         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9968         prerequisites that were already found, to avoid confusion.
9969         Reported by Justin Clift.
9970
9971         faccessat: remove unused wrappers
9972         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9973         presence of these wrappers dragged in -lgen on Solaris.
9974         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9975
9976 2010-10-05  Jim Meyering  <meyering@redhat.com>
9977
9978         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9979         * Makefile (sc_pragma_columns): New syntax-check rule.
9980
9981 2010-10-04  Bruno Haible  <bruno@clisp.org>
9982
9983         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9984         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9985         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9986         Reported by Bruce Korb and Eric Blake.
9987
9988 2010-10-04  Bruno Haible  <bruno@clisp.org>
9989
9990         threadlib: Make option --with-libpth-prefix work.
9991         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9992         use $LIBPTH, not just -lpth.
9993
9994 2010-10-04  Bruno Haible  <bruno@clisp.org>
9995
9996         Avoid line length limitation from HP NonStop system header files.
9997         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9998         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9999         * lib/ctype.in.h: Likewise.
10000         * lib/dirent.in.h: Likewise.
10001         * lib/errno.in.h: Likewise.
10002         * lib/fcntl.in.h: Likewise.
10003         * lib/float.in.h: Likewise.
10004         * lib/getopt.in.h: Likewise.
10005         * lib/iconv.in.h: Likewise.
10006         * lib/inttypes.in.h: Likewise.
10007         * lib/langinfo.in.h: Likewise.
10008         * lib/locale.in.h: Likewise.
10009         * lib/math.in.h: Likewise.
10010         * lib/netdb.in.h: Likewise.
10011         * lib/netinet_in.in.h: Likewise.
10012         * lib/poll.in.h: Likewise.
10013         * lib/pthread.in.h: Likewise.
10014         * lib/pty.in.h: Likewise.
10015         * lib/sched.in.h: Likewise.
10016         * lib/se-selinux.in.h: Likewise.
10017         * lib/search.in.h: Likewise.
10018         * lib/signal.in.h: Likewise.
10019         * lib/spawn.in.h: Likewise.
10020         * lib/stdarg.in.h: Likewise.
10021         * lib/stddef.in.h: Likewise.
10022         * lib/stdint.in.h: Likewise.
10023         * lib/stdio.in.h: Likewise.
10024         * lib/stdlib.in.h: Likewise.
10025         * lib/string.in.h: Likewise.
10026         * lib/strings.in.h: Likewise.
10027         * lib/sys_file.in.h: Likewise.
10028         * lib/sys_ioctl.in.h: Likewise.
10029         * lib/sys_select.in.h: Likewise.
10030         * lib/sys_socket.in.h: Likewise.
10031         * lib/sys_stat.in.h: Likewise.
10032         * lib/sys_time.in.h: Likewise.
10033         * lib/sys_times.in.h: Likewise.
10034         * lib/sys_utsname.in.h: Likewise.
10035         * lib/sys_wait.in.h: Likewise.
10036         * lib/sysexits.in.h: Likewise.
10037         * lib/termios.in.h: Likewise.
10038         * lib/time.in.h: Likewise.
10039         * lib/unistd.in.h: Likewise.
10040         * lib/wchar.in.h: Likewise.
10041         * lib/wctype.in.h: Likewise.
10042         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10043         * modules/ctype (Makefile.am): Likewise.
10044         * modules/dirent (Makefile.am): Likewise.
10045         * modules/errno (Makefile.am): Likewise.
10046         * modules/fcntl-h (Makefile.am): Likewise.
10047         * modules/float (Makefile.am): Likewise.
10048         * modules/getopt-posix (Makefile.am): Likewise.
10049         * modules/iconv-h (Makefile.am): Likewise.
10050         * modules/inttypes (Makefile.am): Likewise.
10051         * modules/langinfo (Makefile.am): Likewise.
10052         * modules/locale (Makefile.am): Likewise.
10053         * modules/math (Makefile.am): Likewise.
10054         * modules/netdb (Makefile.am): Likewise.
10055         * modules/netinet_in (Makefile.am): Likewise.
10056         * modules/poll-h (Makefile.am): Likewise.
10057         * modules/pthread (Makefile.am): Likewise.
10058         * modules/pty (Makefile.am): Likewise.
10059         * modules/sched (Makefile.am): Likewise.
10060         * modules/search (Makefile.am): Likewise.
10061         * modules/selinux-h (Makefile.am): Likewise.
10062         * modules/signal (Makefile.am): Likewise.
10063         * modules/spawn (Makefile.am): Likewise.
10064         * modules/stdarg (Makefile.am): Likewise.
10065         * modules/stddef (Makefile.am): Likewise.
10066         * modules/stdint (Makefile.am): Likewise.
10067         * modules/stdio (Makefile.am): Likewise.
10068         * modules/stdlib (Makefile.am): Likewise.
10069         * modules/string (Makefile.am): Likewise.
10070         * modules/strings (Makefile.am): Likewise.
10071         * modules/sys_file (Makefile.am): Likewise.
10072         * modules/sys_ioctl (Makefile.am): Likewise.
10073         * modules/sys_select (Makefile.am): Likewise.
10074         * modules/sys_socket (Makefile.am): Likewise.
10075         * modules/sys_stat (Makefile.am): Likewise.
10076         * modules/sys_time (Makefile.am): Likewise.
10077         * modules/sys_times (Makefile.am): Likewise.
10078         * modules/sys_utsname (Makefile.am): Likewise.
10079         * modules/sys_wait (Makefile.am): Likewise.
10080         * modules/sysexits (Makefile.am): Likewise.
10081         * modules/termios (Makefile.am): Likewise.
10082         * modules/time (Makefile.am): Likewise.
10083         * modules/unistd (Makefile.am): Likewise.
10084         * modules/wchar (Makefile.am): Likewise.
10085         * modules/wctype (Makefile.am): Likewise.
10086
10087 2010-10-04  Bruno Haible  <bruno@clisp.org>
10088
10089         read-file tests: Avoid a test failure on NonStop Kernel.
10090         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10091         a regular file.
10092         Reported by Joachim Schmitz <schmitz@hp.com>.
10093
10094 2010-10-03  Bruno Haible  <bruno@clisp.org>
10095
10096         gnulib-tool: Fixes for --create-testdir with --libtool.
10097         * gnulib-tool (func_get_automake_snippet): Don't augment
10098         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10099         an executable.
10100         (func_create_testdir): Handle module 'alloca' like func_import.
10101         Reported by Bruce Korb <bruce.korb@gmail.com>.
10102
10103 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10104
10105         Avoid some lines longer than 80 characters.
10106         * lib/stdint.in.h: Break long comment lines.
10107         * lib/math.in.h: Likewise.
10108         (_GL_NUM_UINT_WORDS): New macro, for readability.
10109         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10110         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10111         * lib/stdlib.in.h: Likewise.
10112         * lib/spawn.in.h: Likewise.
10113         * lib/sys_socket.in.h: Update an URL.
10114         * lib/sys_stat.in.h: Break long line.
10115
10116 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10117
10118         Improve pmccabe2html.
10119         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10120         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10121         when the sources change. Remove the line in the HTML about "Used
10122         ranges" (which implied that there might be other unused ranges),
10123         rename "Resume" to "Summary" (easier to understand for more users).
10124         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10125         styles, and some unnecessary blank lines.
10126
10127 2010-10-03  Bruno Haible  <bruno@clisp.org>
10128             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10129
10130         acl: Add support for ACLs on NonStop Kernel.
10131         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10132         Check whether the function aclsort() exists.
10133         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10134         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10135         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10136         (acl_nontrivial [HAVE_ACLSORT]: New function.
10137         (file_has_acl): Implement for NonStop Kernel.
10138         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10139         (qset_acl): Implement for NonStop Kernel.
10140         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10141         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10142         (main): Implement for NonStop Kernel.
10143         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10144         Kernel. Handle this flavor.
10145         * tests/test-set-mode-acl.sh: Likewise.
10146         * tests/test-copy-acl.sh: Likewise.
10147         * tests/test-copy-file.sh: Likewise.
10148
10149 2010-10-03  Bruno Haible  <bruno@clisp.org>
10150
10151         Info about ACLs on NonStop Kernel.
10152         * doc/acl-resources.txt: Add info about NonStop Kernel.
10153         References by Joachim Schmitz <schmitz@hp.com>.
10154
10155 2010-10-02  Bruno Haible  <bruno@clisp.org>
10156
10157         Define missing EDQUOT on NonStop Kernel.
10158         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10159         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10160         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10161         missing.
10162         * doc/posix-headers/errno.texi: Mention the NSK bug.
10163         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10164         Reported by Joachim Schmitz <schmitz@hp.com>.
10165
10166 2010-10-02  Bruno Haible  <bruno@clisp.org>
10167
10168         Update doc for POSIX:2008.
10169         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10170         Update URL of POSIX specification.
10171
10172 2010-10-02  Bruno Haible  <bruno@clisp.org>
10173
10174         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10175         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10176         from gnulib, not from Automake.
10177
10178 2010-10-02  Bruno Haible  <bruno@clisp.org>
10179
10180         New module 'system-posix'.
10181         * modules/system-posix: New file.
10182         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10183         module is present.
10184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10185         GNULIB_SYSTEM_POSIX.
10186         * modules/stdlib (Depends-on): Remove sys_wait.
10187         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10188         * doc/posix-functions/system.texi: Mention the new module.
10189         * doc/posix-headers/stdlib.texi: Likewise.
10190         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10191         define test_sys_wait_macros to a no-op.
10192         Reported by Sam Steingold <sds@gnu.org>.
10193
10194 2010-09-30  Bruno Haible  <bruno@clisp.org>
10195
10196         More renaming from 'getdate' to 'get_date'.
10197         * doc/get_date.texi: Renamed from doc/getdate.texi.
10198         * modules/get_date (Files): Update.
10199         * MODULES.html.sh (Date and time <time.h>): Update.
10200         * DEPENDENCIES: Update.
10201         * gnulib-tool: Update comment.
10202         * m4/bison.m4 (gl_BISON): Likewise.
10203         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10204
10205 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10206
10207         bootstrap: support ACLOCAL_FLAGS during aclocal
10208         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10209         can add additional -I dir for third-party .m4 files.
10210
10211 2010-09-30  Eric Blake  <eblake@redhat.com>
10212
10213         bootstrap: use glibtoolize on MacOS
10214         * build-aux/bootstrap (check_versions): Convert libtool into
10215         libtoolize.
10216         (tool search): Move libtool check earlier, and look for
10217         glibtoolize for MacOS.
10218         (gnulib_tool_options): Auto-add --libtool when appropriate.
10219         Reported by Justin Clift.
10220
10221         poll: fix typo that broke test on MacOS
10222         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10223         Reported by Justin Clift.
10224
10225         getdate: rename to get_date
10226         Note: getdate.h is not renamed, to minimize client impact.
10227         * modules/getdate: Mark obsolete.  Move old contents...
10228         * modules/get_date: ...to new module name.
10229         * modules/getdate-tests: Move...
10230         * modules/get_date-tests: ...here.
10231         * m4/getdate.m4: Move...
10232         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10233         * lib/getdate.y: Move...
10234         * lib/get_date.y: ...here.
10235         * tests/test-getdate.c: Move...
10236         * tests/test-get_date.c: ...here.
10237         * doc/posix-functions/getdate.texi (getdate): Update name.
10238         * NEWS: Mention the change.
10239
10240 2010-09-29  Bruno Haible  <bruno@clisp.org>
10241
10242         Separate the module 'waitpid' from the module 'sys_wait'.
10243         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10244         present.
10245         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10246         gl_MODULE_INDICATOR_FOR_TESTS.
10247         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10248         * modules/sys_wait (Depends-on): Remove waitpid.
10249         (Makefile.am): Substitute GNULIB_WAITPID.
10250         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10251         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10252         signature only if the 'waitpid' module is present.
10253         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10254         * NEWS: Mention the change.
10255         * modules/grantpt (Depends-on): Add waitpid.
10256         * modules/wait-process (Depends-on): Likewise.
10257
10258 2010-09-29  Bruno Haible  <bruno@clisp.org>
10259
10260         More tests for module 'sys_wait'.
10261         * modules/sys_wait-c++-tests: New file.
10262         * tests/test-sys_wait-c++.cc: New file.
10263         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10264         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10265
10266 2010-09-29  Bruno Haible  <bruno@clisp.org>
10267
10268         New module 'waitpid'.
10269         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10270         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10271         Don't include <process.h>.
10272         (waitpid): Declare only, using modern idiom.
10273         * m4/waitpid.m4: New file.
10274         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10275         * modules/waitpid: New file.
10276         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10277         (Makefile.am): Update.
10278         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10279
10280 2010-09-28  Bruno Haible  <bruno@clisp.org>
10281
10282         poll: Assume ANSI C.
10283         * lib/poll.c (poll): Use an ANSI C declaration.
10284
10285 2010-09-28  Bruno Haible  <bruno@clisp.org>
10286
10287         poll-h: Create poll.h on all platforms.
10288         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10289         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10290         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10291         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10292         (gl_REPLACE_POLL_H): Don't set POLL_H.
10293         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10294         * modules/poll-h (Depends-on): Add include_next.
10295         (Makefile.am): Create poll.h unconditionally. Substitute also
10296         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10297
10298 2010-09-28  Bruno Haible  <bruno@clisp.org>
10299
10300         Tests for module 'poll-h'.
10301         * modules/poll-h-c++-tests: New file.
10302         * tests/test-poll-h-c++.cc: New file.
10303
10304         Tests for module 'poll-h'.
10305         * modules/poll-h-tests: New file.
10306         * tests/test-poll-h.c: New file.
10307
10308 2010-09-28  Bruno Haible  <bruno@clisp.org>
10309
10310         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10311         * modules/poll-h (Depends-on): Add 'extensions'.
10312
10313 2010-09-28  Bruno Haible  <bruno@clisp.org>
10314
10315         New module 'poll-h'.
10316         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10317         (poll): Use modern idiom.
10318         * modules/poll-h: New file.
10319         * modules/poll (Files): Remove lib/poll.in.h.
10320         (Depends-on): Add poll-h.
10321         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10322         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10323         * m4/poll_h.m4: New file.
10324         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10325         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10326         and invoke gl_REPLACE_POLL_H.
10327         * lib/poll.c: Use common idiom.
10328         * tests/test-poll.c: Likewise.
10329         * doc/posix-headers/poll.texi: Mention the poll-h module.
10330         Suggested by Eric Blake.
10331
10332 2010-09-26  Bruno Haible  <bruno@clisp.org>
10333
10334         sys_wait: Implement WSTOPSIG.
10335         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10336         Reported by Simon Josefsson.
10337
10338 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10339
10340         stdlib, sys_wait: Avoid compilation error on mingw.
10341         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10342
10343 2010-09-26  Bruno Haible  <bruno@clisp.org>
10344
10345         stdlib tests: Avoid code duplication.
10346         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10347         * modules/sys_wait-tests (Files): Likewise.
10348         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10349         * tests/test-stdlib.c: Include test-sys_wait.h.
10350         (main): Invoke test_sys_wait_macros.
10351         * tests/test-sys_wait.c: Include test-sys_wait.h.
10352         (main): Invoke test_sys_wait_macros.
10353
10354 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10355
10356         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10357         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10358         sure Windows sockets are working before calling getaddrinfo.
10359         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10360         * doc/gnulib.texi (Windows sockets): Fix typo.
10361
10362 2010-09-25  Bruno Haible  <bruno@clisp.org>
10363
10364         Tests for module 'regex-quote'.
10365         * modules/regex-quote-tests: New file.
10366         * tests/test-regex-quote.c: New file.
10367
10368         New module 'regex-quote'.
10369         * lib/regex-quote.h: New file.
10370         * lib/regex-quote.c: New file.
10371         * modules/regex-quote: New file.
10372         Suggested by Reuben Thomas <rrt@sc3d.org>.
10373
10374 2010-09-24  Bruno Haible  <bruno@clisp.org>
10375
10376         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10377         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10378
10379 2010-09-23  Bruno Haible  <bruno@clisp.org>
10380
10381         setenv: Relax license.
10382         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10383         Blake.
10384         Requested by Eric Blake.
10385
10386 2010-09-22  Bruno Haible  <bruno@clisp.org>
10387
10388         termios: Relax license.
10389         * modules/termios (License): Change to LGPLv2+.
10390         Requested by Eric Blake.
10391
10392 2010-09-22  Bruno Haible  <bruno@clisp.org>
10393
10394         threadlib: Allow the package to change the default to 'no'.
10395         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10396         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10397         Reported by Paul Eggert.
10398
10399 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10400             Bruno Haible  <bruno@clisp.org>
10401
10402         Fix endless loop in mbmemcasecoll.
10403         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10404         byte.
10405         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10406
10407 2010-09-22  Bruno Haible  <bruno@clisp.org>
10408
10409         Tests for module 'memcoll'.
10410         * modules/memcoll-tests: New file.
10411         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10412
10413         memcoll, xmemcoll: Clarify size vs. length.
10414         * modules/memcoll.c (memcoll0): Clarify specification.
10415         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10416         passed to collate_error.
10417
10418 2010-09-22  Bruno Haible  <bruno@clisp.org>
10419
10420         Tests for module 'memcasecmp'.
10421         * modules/memcasecmp-tests: New file.
10422         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10423
10424 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10425
10426         * lib/pthread.in.h: Add split double-inclusion guard, and include
10427         system <pthread.h> if there is one.  Use @@-style as in other
10428         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10429         pthread.h doesn't.
10430         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10431         (pthread_mutexattr_settype, pthread_mutex_trylock):
10432         New static inline functions, if there's no system <pthread.h>.
10433         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10434         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10435         Approximate with mutexes if the system lacks spinlocks, as in
10436         MacOS.
10437         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10438         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10439         @@-style.  Check for spinlocks separately.
10440         (gl_PTHREAD_DEFAULTS): New macro.
10441         * modules/pthread: Redo to use a more typical style for in.h files.
10442
10443 2010-09-21  Eric Blake  <eblake@redhat.com>
10444
10445         net_if: enhance tests
10446         * tests/test-net_if.c (main): Move signature checks earlier.
10447         Print failures to stderr.
10448         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10449         Document the bug that we do not yet fix.
10450
10451 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10452
10453         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10454         about gnulib, not GSS.
10455
10456 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10457
10458         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10459         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10460         for Emacs.
10461         * build-aux/pmccabe2html: Make Makefile.am example code more
10462         cut-and-paste friendly.
10463
10464 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10465
10466         * tests/test-net_if.c: New file.
10467         * modules/net_if-tests: New file.
10468
10469 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10470
10471         pthread: add pthread_spin_destroy
10472         * lib/pthread.in.h (pthread_spin_destroy): New function.
10473
10474 2010-09-19  Bruno Haible  <bruno@clisp.org>
10475
10476         gnulib-tool: Fix --help output.
10477         * gnulib-tool (func_usage): Fix help message.
10478         Reported by Reuben Thomas <rrt@sc3d.org>.
10479
10480 2010-09-18  Jim Meyering  <meyering@redhat.com>
10481
10482         maint.mk: avoid unexpanded \n in two diagnostics
10483         * top/maint.mk (sc_prohibit_always_true_header_tests):
10484         Don't use a literal \n in a halt=... assignment.  It would not be
10485         expanded, and the two \n bytes would appear in the diagnostic output
10486         rather than the desired newline.  Use halt=$$(printf ... instead.
10487         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10488
10489 2010-09-18  Bruno Haible  <bruno@clisp.org>
10490
10491         netinet_in: Doc tweak.
10492         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10493         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10494
10495 2010-09-18  Jim Meyering  <meyering@redhat.com>
10496
10497         init.sh: correct an outdated comment
10498         * tests/init.sh (create_exe_shims_):  s/function/alias/
10499
10500         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10501         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10502         a file named "*.exe" is removed between the glob expansion and the
10503         processing of that oddly named file.
10504
10505 2010-09-17  Eric Blake  <eblake@redhat.com>
10506
10507         mirbsd: add some more support
10508         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10509         in BSD family.
10510         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10511         devices as OpenBSD.
10512         * m4/host-os.m4 (mirbsd): Add MirBSD.
10513
10514         tests: fix unportable assumption on sys/wait.h
10515         * tests/test-sys_wait.c (main): Relax test.
10516         * tests/test-stdlib.c (main): Likewise.
10517
10518         init.sh: accomodate directory with no .exes
10519         * tests/init.sh: Accomodate directory containing only scripts.
10520
10521         tests: avoid compiler warning
10522         * tests/test-stdlib.c (main): Use the variable.
10523
10524         fdutimens, fdutimensat: update signature, again
10525         * lib/utimens.h (gl_futimens): Delete, and move signature...
10526         (fdutimens): ...here.
10527         (fdutimensat): Rearrange signature.
10528         (lutimensat): Rename variable for clarity.
10529         * lib/fdutimensat.c (fdutimensat): Update signature.
10530         * lib/utimens.c (fdutimens): Likewise.
10531         (gl_futimens): Delete.
10532         (utimens, lutimens): Update callers.
10533         * lib/futimens.c (futimens): Likewise.
10534         * tests/test-fdutimensat.c: Likewise.
10535         * tests/test-utimens.c: Likewise.
10536         * tests/test-futimens.h: Update comment.
10537         * NEWS: Mention this.
10538         Suggested by Paul Eggert.
10539
10540 2010-09-17  Bruno Haible  <bruno@clisp.org>
10541
10542         Take over the maintenance of some older macros from Autoconf.
10543         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10544         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10545         GNU Autoconf.
10546         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10547         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10548
10549 2010-09-17  Eric Blake  <eblake@redhat.com>
10550
10551         fdutimensat: drop atflag validation
10552         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10553         with valid fd, to close a race scenario where futimens is
10554         unsupported and FILE was replaced by a symlink.
10555         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10556         accordingly.
10557         Suggested by Paul Eggert.
10558
10559 2010-09-16  Bruno Haible  <bruno@clisp.org>
10560
10561         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10562         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10563
10564 2010-09-16  Bruno Haible  <bruno@clisp.org>
10565
10566         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10567         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10568         login_tty exists.
10569         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10570
10571 2010-09-16  Bruno Haible  <bruno@clisp.org>
10572
10573         login_tty: Make the replacement code work on BSD systems.
10574         * lib/login_tty.c: Include <sys/ioctl.h>.
10575         (login_tty): Use ioctl TIOCSCTTY when available.
10576         * modules/login_tty (Depends-on): Add sys_ioctl.
10577         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10578
10579 2010-09-16  Bruno Haible  <bruno@clisp.org>
10580
10581         login_tty: Stricter unit test.
10582         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10583         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10584         and tcgetsid() after login_tty.
10585         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10586
10587 2010-09-16  Bruno Haible  <bruno@clisp.org>
10588
10589         New module 'tcgetsid'.
10590         * lib/tcgetsid.c: New file.
10591         * m4/tcgetsid.m4: New file.
10592         * modules/tcgetsid: New file.
10593         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10594         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10595         GNULIB_TCGETSID, HAVE_TCGETSID.
10596         * lib/termios.in.h: Include <sys/types.h>.
10597         (tcgetsid): New declaration.
10598         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10599         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10600         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10601         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10602
10603 2010-09-16  Bruno Haible  <bruno@clisp.org>
10604
10605         Tests for module 'termios'.
10606         * modules/termios-c++-tests: New file.
10607         * modules/termios-tests: New file.
10608         * tests/test-termios-c++.cc: New file.
10609         * tests/test-termios.c: New file.
10610
10611         New module 'termios'.
10612         * modules/termios: New file.
10613         * lib/termios.in.h: New file.
10614         * m4/termios_h.m4: New file.
10615         * doc/posix-headers/termios.texi: Mention the new module.
10616
10617 2010-09-16  Eric Blake  <eblake@redhat.com>
10618
10619         fdutimensat: add an atflag parameter
10620         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10621         * lib/utimens.h (fdutimensat): Update prototype.
10622         * tests/test-fdutimensat.c: Adjust test to match.
10623         * NEWS: Document the change.
10624         Suggested by Paul Eggert.
10625
10626 2010-09-16  Bruno Haible  <bruno@clisp.org>
10627
10628         Fix typos in comments.
10629         * lib/striconveh.h: Fix typo in comment.
10630         * lib/login_tty.c (login_tty): Likewise.
10631
10632 2010-09-15  Bruno Haible  <bruno@clisp.org>
10633
10634         stdlib: clarify MirBSD WEXITSTATUS bug
10635         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10636         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10637
10638 2010-09-15  Eric Blake  <eblake@redhat.com>
10639
10640         stdlib: work around MirBSD WEXITSTATUS bug
10641         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10642         * modules/stdlib (Depends-on): Add sys_wait.
10643         * tests/test-sys_wait.c (main): Enhance test.
10644         * tests/test-stdlib.c (main): Likewise.
10645         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10646
10647         docs: mention MacOS issue with WEXITSTATUS(constant)
10648         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10649         issue.
10650         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10651
10652         strnlen: add tests
10653         * modules/strnlen-tests: New file.
10654         * tests/test-strnlen.c: Likewise.
10655
10656 2010-09-14  Bruno Haible  <bruno@clisp.org>
10657
10658         unistr/base: Avoid link errors when module 'libunistring' is also used.
10659         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10660         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10661         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10662         Declare also when HAVE_LIBUNISTRING is set.
10663         Reported by Pádraig Brady <P@draigbrady.com>.
10664
10665 2010-09-14  Eric Blake  <eblake@redhat.com>
10666
10667         test-rawmemchr: make more robust
10668         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10669         (Depends-on, configure.ac): Add needed prerequisites to use it.
10670         * modules/memchr-tests (Files, Depends-on, configure.ac):
10671         Likewise, to avoid implicit reliance on memchr module prereqs.
10672         * tests/test-memchr.c (main): Ensure proper masking.
10673         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10674         reads.
10675
10676         memchr: detect glibc Alpha bug
10677         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10678         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10679         Alpha.
10680         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10681         * tests/test-memchr.c (main): Enhance test.
10682         Reported by Nelson H. F. Beebe.
10683
10684 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10685
10686         fts, getcwd, glob: audit for dirfd returning -1
10687         * lib/fts.c (opendir): Remove #define; no longer used.
10688         (opendirat): New arg PDIR_FD.  All callers changed.
10689         (fts_build, _opendir2): Use new opendirat to avoid the need for
10690         dirfd, or for checking whether dirfd returns a negative value.
10691         Don't use opendir; always use openat followed by fdopendir.
10692         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10693         it.
10694         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10695         returns -1 here.
10696         * modules/fts (Depends-on): Remove dirfd.
10697         * modules/getcwd (Depends-on): Likewise.
10698
10699 2010-09-13  Eric Blake  <eblake@redhat.com>
10700
10701         float: fix broken MirBSD header
10702         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10703         * doc/posix-headers/float.texi (float.h): Document it.
10704
10705 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10706
10707         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10708         * lib/fts.c (opendirat): New arg extra_flags.
10709         (__opendir2): Use it to avoid following symlinks when opening
10710         a directory, if symlinks are not supposed to be followed.  See
10711         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10712
10713         fdopendir: preserve argument fd before returning
10714         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10715         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10716         (fdopendir): Use them, arranging for FD to be open to the same
10717         directory that it was when it started.  (It might be temporarily
10718         closed while fdopendir is running, so this not thread- or
10719         signal-safe.)  Be careful to do the right thing even when file
10720         descriptors are scarce and dup fails with errno == EMFILE.  See
10721         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10722
10723 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10724
10725         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10726         * NEWS: Document change.
10727         * m4/regex.m4: Disable test for regoff_t size.
10728
10729 2010-09-13  Jim Meyering  <meyering@redhat.com>
10730
10731         fts: don't operate on an invalid file descriptor after failed dup
10732         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10733         negative file descriptor.
10734
10735 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10736
10737         savedir: add streamsavedir, deprecate fdsavedir
10738         * NEWS: Mention deprecation of fdsavedir.
10739         * lib/savedir.c (streamsavedir): New extern function, whose name
10740         ends in "savedir" to be consistent with the others.  This differs
10741         from savedirstream in that it doesn't close its argument.  The
10742         next version of GNU tar will use this instead of fdsavedir, to
10743         avoid some race conditions and conserve file descriptors.
10744         (savedirstream): Reimplement as a wrapper around streamsavedir.
10745         (fdsavedir): Add a comment deprecating this function.  As far as
10746         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10747         * lib/savedir.h (streamsavedir): New decl.
10748         (fdsavedir): Add a comment deprecating this.
10749
10750 2010-09-10  Bruno Haible  <bruno@clisp.org>
10751
10752         langinfo: Fix last commit.
10753         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10754         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10755         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10756
10757 2010-09-10  Bruno Haible  <bruno@clisp.org>
10758
10759         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10760         * lib/progreloc.c (O_EXEC): Define fallback.
10761
10762 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10763
10764         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10765         * NEWS: Document recent changes to fcntl-h.
10766         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10767         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10768         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10769         Similarly for O_SEARCH; this last was already true, but not documented.
10770         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10771         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10772         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10773         Likewise.
10774         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10775         is zero, not whether it is defined.
10776         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10777         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10778         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10779
10780 2010-09-10  Bruno Haible  <bruno@clisp.org>
10781
10782         langinfo, nl_langinfo: Fix for IRIX 5.3.
10783         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10784         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10785         HAVE_LANGINFO_YESEXPR.
10786         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10787         HAVE_LANGINFO_YESEXPR.
10788         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10789         HAVE_LANGINFO_T_FMT_AMPM is 0.
10790         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10791         HAVE_LANGINFO_YESEXPR is 0.
10792         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10793         NOEXPR.
10794         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10795         * doc/posix-functions/nl_langinfo.texi: Likewise.
10796         Reported by Eric Blake.
10797
10798 2010-09-10  Bruno Haible  <bruno@clisp.org>
10799
10800         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10801         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10802         on FreeBSD 8.0 and OpenBSD 4.6.
10803         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10804         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10805         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10806         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10807         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10808         ac_includes_default.
10809         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10810
10811 2010-09-09  Eric Blake  <eblake@redhat.com>
10812
10813         strsignal: work around NetBSD bug
10814         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10815         * lib/string.in.h (includes): Likewise.
10816         * doc/posix-functions/strsignal.texi (strsignal): Document the
10817         bug.
10818         Reported by Nelson H. F. Beebe.
10819
10820         gnulib-tool: work with NetBSD /bin/sh
10821         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10822         (func_get_description, func_get_comment, func_get_status)
10823         (func_get_notice, func_get_applicability, func_get_filelist)
10824         (func_get_dependencies, func_get_autoconf_early_snippet)
10825         (func_get_autoconf_snippet, func_get_automake_snippet)
10826         (func_get_include_directive, func_get_link_directive)
10827         (func_get_license, func_get_maintainer, func_import): Avoid
10828         shell syntax errors from parsing syntax extensions.
10829
10830 2010-09-09  Bruno Haible  <bruno@clisp.org>
10831
10832         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10833         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10834         a reliable way to determine whether the 'alias' command works.
10835
10836 2010-09-08  Jim Meyering  <meyering@redhat.com>
10837
10838         init.sh: penalize a set-x-impaired shell; don't disqualify it
10839         * tests/init.sh: Too many shells corrupt application stderr when
10840         you set -x, so we can't afford to disqualify them, since at least
10841         on Irix-6.5, that would disqualify all bourne shells.
10842         Instead, use a two-pass approach.
10843         On the first pass, try to find a shell that meets the stricter
10844         condition that set -x does not corrupt stderr.
10845         If no shell meets the stricter condition, retest each candidate
10846         shell, but without that extra condition.  Finally, when
10847         VERBOSE=yes is requested and set -x might cause trouble, simply
10848         issue a warning and refrain from enabling debug output.
10849
10850 2010-09-08  Eric Blake  <eblake@redhat.com>
10851
10852         unsetenv: fix OpenBSD bug
10853         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10854         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10855         documentation.
10856         Reported by Jim Meyering.
10857
10858         strtod: work around IRIX 6.5 bug
10859         * lib/strtod.c (strtod): Reparse number on shorter string if
10860         exponent parse was invalid.
10861         * tests/test-strtod.c (main): Add check for "0x1p 2".
10862         Reported by Tom G. Christensen.
10863
10864         getopt: optimize previous patch
10865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10866         empty variable.  Speed up awk script.
10867         Reported by Paolo Bonzini.
10868
10869 2010-09-08  Jim Meyering  <meyering@redhat.com>
10870
10871         test.sh: disqualify shells for which set -x corrupts stderr
10872         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10873         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10874         appear in stderr output.  For example, this command:
10875             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10876         prints "P=1" on those two systems:
10877
10878 2010-09-08  Bruno Haible  <bruno@clisp.org>
10879
10880         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10881         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10882         commands, because some shells ignore redirections when there is an
10883         error in the command lookup.
10884         Reported by Eric Blake.
10885
10886 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10887
10888         * lib/regex.h: Fix a mention of `regex_compile' (should be
10889         `re_compile_pattern').
10890         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10891         (re_set_registers): Correct name of parameter in comment.
10892
10893         * doc/regex.texi: Add documentation for missing syntax flags.
10894         Remove commented-out documentation of defunct syntax option
10895         RE_NO_EMPTY_ALTS.
10896         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10897         Add documentation of re_set_registers.
10898         Document trick to re-use a pattern buffer by setting fastmap manually.
10899         Update documentation of struct re_pattern_buffer per public members.
10900         Uncomment documentation of equivalence class operators and
10901         collating symbol operators, since they are now implemented,
10902         Explain leftmost-longest matching in relation to alternatives.
10903         Tidy documentation of substring matching.
10904         Remove POSIX documentation, which is done better in
10905         glibc, and refer the reader there. Keep BSD API documentation, as
10906         that is not readily available elsewhere.
10907
10908 2010-09-07  Eric Blake  <eblake@redhat.com>
10909
10910         getopt: handle POSIXLY_CORRECT set but not exported
10911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10912         export state of POSIXLY_CORRECT, due to bash set -o posix.
10913         Reported by Dustin J. Mitchell.
10914
10915 2010-09-05  Bruno Haible  <bruno@clisp.org>
10916
10917         gnulib-tool: Highlight the changed options.
10918         * gnulib-tool (func_usage): Display the --import, --add-import,
10919         --remove-import explanations in bold font.
10920
10921 2010-09-06  Karl Berry  <karl@gnu.org>
10922
10923         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10924
10925 2010-09-05  Bruno Haible  <bruno@clisp.org>
10926
10927         uniwidth/width: Update comment.
10928         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10929         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10930
10931 2010-09-05  Bruno Haible  <bruno@clisp.org>
10932
10933         isinf, isnan: Relax license.
10934         * modules/isinf (License): Change from GPL to LGPL, with consent from
10935         Ben Pfaff.
10936         * modules/isnan (License): Likewise.
10937         Requested by Ludovic Courtès.
10938
10939 2010-09-04  Bruno Haible  <bruno@clisp.org>
10940
10941         gnulib-tool: Help migration from --import to --add-import or --update.
10942         * gnulib-tool: Emit a verbose error message when --import is used
10943         without any module name.
10944
10945 2010-09-04  Bruno Haible  <bruno@clisp.org>
10946
10947         Update doc about gnulib-tool.
10948         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10949         'gnulib-tool --update' in more detail.
10950         Reported by Eric Blake.
10951
10952 2010-09-04  Bruno Haible  <bruno@clisp.org>
10953
10954         gnulib-tool: Change --import. New options --add/remove-import.
10955         * gnulib-tool: New options --add-import, --remove-import.
10956         (func_usage): Document them.
10957         (have_associative): Define always.
10958         (func_import): In import mode, don't merge the specified settings with
10959         the cached settings. Implement remove-import mode.
10960         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10961         Explain when to use them versus --import.
10962         (Simple update): Use --add-import instead of --import.
10963         * NEWS: Mention the change.
10964
10965 2010-09-04  Bruno Haible  <bruno@clisp.org>
10966
10967         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10968         separate gnulib.mk.
10969
10970 2010-09-04  Bruno Haible  <bruno@clisp.org>
10971
10972         gnulib-tool: Don't talk about CVS any more.
10973         * gnulib-tool (func_usage, func_import): Write "version control"
10974         instead of CVS.
10975
10976 2010-09-04  Jim Meyering  <meyering@redhat.com>
10977
10978         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10979         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10980         false positives (whose names may be ill-chosen) when searching
10981         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10982         would cause a false-positive.
10983
10984         avoid coreutils "make distcheck" failure
10985         Coreutils tests with an absolute build directory name that contains
10986         a space.  Not quoting this directory name caused a failure.
10987         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10988         * tests/test-vc-list-files-cvs.sh: Likewise.
10989
10990 2010-09-04  Bruno Haible  <bruno@clisp.org>
10991
10992         gnulib-tool: Avoid error when run in a package without Makefile.am.
10993         * gnulib-tool: When collecting the m4dirs in a package that does not
10994         have a Makefile.am, eliminate those directories that contain no
10995         gnulib-cache.m4. Fix expression that counts these directories.
10996
10997 2010-09-04  Bruno Haible  <bruno@clisp.org>
10998
10999         update-copyright test: Improve output when perl is missing or too old.
11000         * tests/test-update-copyright.sh: Move test of Perl version down after
11001         the test whether Perl exists. Provide an explanation relating Perl's
11002         error message to Automake's SKIP: message.
11003
11004 2010-09-04  Bruno Haible  <bruno@clisp.org>
11005
11006         Don't augment PATH in TESTS_ENVIRONMENT.
11007         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11008         set abs_aux_dir instead of augmenting PATH.
11009         * modules/vc-list-files-tests (Makefile.am): Likewise.
11010         * tests/test-update-copyright.sh: Augment PATH here.
11011         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11012         path_prepend_.
11013         * tests/test-vc-list-files-git.sh: Likewise.
11014
11015 2010-09-04  Jim Meyering  <meyering@redhat.com>
11016
11017         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11018         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11019
11020 2010-09-04  Bruno Haible  <bruno@clisp.org>
11021
11022         strdup: Fix compilation error in C++ mode.
11023         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11024         the macro.
11025
11026 2010-09-04  Bruno Haible  <bruno@clisp.org>
11027
11028         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11029         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11030         macro into a function.
11031         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11032
11033 2010-09-04  Bruno Haible  <bruno@clisp.org>
11034
11035         Set PATH_SEPARATOR the same way autoconf does.
11036         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11037         the value of PATH_SEPARATOR the same way autoconf-generated configure
11038         scripts do.
11039         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11040         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11041
11042 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11043
11044         Set PATH_SEPARATOR the same way autoconf does.
11045         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11046         the same way autoconf-generated configure scripts do.
11047         * posix-modules: Likewise.
11048
11049 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11050
11051         hash: fix safe_hasher const typo
11052         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11053         const; otherwise, there is a type error later.
11054
11055 2010-09-02  Jim Meyering  <meyering@redhat.com>
11056
11057         test-update-copyright.sh: require perl 5.8.0
11058         * tests/test-update-copyright.sh: Require 5.8.0,
11059         which Tom G. Christensen has confirmed is adequate,
11060         while 5.6.1 is not.
11061
11062 2010-09-02  Eric Blake  <eblake@redhat.com>
11063
11064         tests: init.sh improvements for re-exec'ing with zsh
11065         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11066         -vx through shell re-exec.
11067         Reported by Tom G. Christensen.
11068
11069         wctype: fix typo in previous commit
11070         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11071         Reported by Ludovic Courtès.
11072
11073 2010-09-02  Jim Meyering  <meyering@redhat.com>
11074
11075         test-update-copyright.sh: skip test if Perl is too old
11076         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11077         Reported by Tom G. Christensen.
11078
11079 2010-09-02  Bruno Haible  <bruno@clisp.org>
11080
11081         wctype: Avoid compilation error on IRIX 6.5.30.
11082         * lib/wctype.in.h (iswblank): Declare with a replacement if
11083         REPLACE_ISWBLANK is set.
11084         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11085         declared. Set REPLACE_ISWBLANK.
11086         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11087         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11088         * doc/posix-headers/wctype.texi: Likewise.
11089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11090
11091 2010-09-01  Bruno Haible  <bruno@clisp.org>
11092
11093         New module 'socketlib'.
11094         * modules/socketlib: New file.
11095         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11096         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11097         * modules/sockets (Depends-on): Add socketlib.
11098         Suggested by Sam Steingold <sds@gnu.org>.
11099
11100 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11101
11102         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11103
11104         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11105         when one needs search access to a directory but not read access.
11106         On systems where it is available, it works in some cases where
11107         O_RDONLY does not, namely on directories that are searchable but
11108         not readable, and which need only to be searchable.  If O_SEARCH
11109         is not available, fall back to the traditional method of using
11110         O_RDONLY.
11111
11112         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11113         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11114         when opening a directory that needs only to be searchable.
11115         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11116         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11117         * lib/openat-proc.c (openat_proc_name): Likewise.
11118         * lib/openat.c (openat_needs_fchdir): Likewise.
11119         * lib/save-cwd.c (save_cwd): Likewise.
11120         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11121
11122 2010-08-28  Bruno Haible  <bruno@clisp.org>
11123
11124         New module 'host-cpu-c-abi'.
11125         * modules/host-cpu-c-abi: New file.
11126         * m4/host-cpu-c-abi.m4: New file, based on part of
11127         clisp/src/m4/general.m4.
11128         Requested by Sam Steingold <sds@gnu.org>.
11129
11130 2010-08-31  Eric Blake  <eblake@redhat.com>
11131         and Jim Meyering  <meyering@redhat.com>
11132
11133         hash: factor, and guard against misbehaving hasher function
11134         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11135         of table->hasher's return value.  Also protect against a hash value
11136         so large that adding it to table->bucket results in a NULL pointer.
11137         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11138         Use it in place of open-coded check-and-abort.
11139
11140 2010-08-30  Bruno Haible  <bruno@clisp.org>
11141
11142         hash: silence spurious clang warning
11143         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11144         Reported by Eric Blake.
11145
11146 2010-08-30  Eric Blake  <eblake@redhat.com>
11147
11148         strstr, memmem, strcasestr: avoid leaked shell message
11149         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11150         FreeBSD.
11151         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11152         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11153
11154         tests: silence clang warning
11155         * tests/test-malloca.c (do_allocation): Avoid dead store.
11156
11157 2010-08-29  Bruno Haible  <bruno@clisp.org>
11158
11159         gettext: Fix recent mistake.
11160         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11161
11162 2010-08-29  Bruno Haible  <bruno@clisp.org>
11163
11164         selinux-h: Offer a --without-selinux option.
11165         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11166         --without-selinux was specified, skip all tests and define
11167         HAVE_SELINUX_SELINUX_H to 0.
11168         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11169         set LIB_SELINUX to empty.
11170         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11171         gl_LIBSELINUX. If --without-selinux was specified, replace
11172         selinux/context.h.
11173         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11174
11175 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11176             Bruno Haible  <bruno@clisp.org>
11177
11178         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11179         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11180         of HAVE_REALLOC.
11181         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11182         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11183         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11184         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11185
11186 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11187             Bruno Haible  <bruno@clisp.org>
11188
11189         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11190         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11191         HAVE_CALLOC.
11192         * lib/xmalloc.c: Update accordingly.
11193         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11194         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11195         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11196
11197 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11198             Bruno Haible  <bruno@clisp.org>
11199
11200         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11201         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11202         HAVE_MALLOC.
11203         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11204         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11205         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11206
11207 2010-08-29  Bruno Haible  <bruno@clisp.org>
11208
11209         Update modules list.
11210         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11211         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11212         (String handling <string.h>): Add astrxfrm.
11213         (File system functions): Add readlinkat.
11214
11215 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11216
11217         Tests for module 'realloc-gnu'.
11218         * modules/realloc-gnu-tests: New file.
11219         * tests/test-realloc-gnu.c: New file.
11220
11221         Tests for module 'calloc-gnu'.
11222         * modules/calloc-gnu-tests: New file.
11223         * tests/test-calloc-gnu.c: New file.
11224
11225         Tests for module 'malloc-gnu'.
11226         * modules/malloc-gnu-tests: New file.
11227         * tests/test-malloc-gnu.c: New file.
11228
11229 2010-08-28  Bruno Haible  <bruno@clisp.org>
11230
11231         Rename module 'realloc' -> 'realloc-gnu'.
11232         * modules/realloc-gnu: New file, copied from modules/realloc.
11233         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11234         obsolete.
11235         * modules/mgetgroups (Depends-on): Update.
11236         * doc/posix-functions/realloc.texi: Update.
11237         * NEWS: Mention the change.
11238
11239         Rename module 'calloc' -> 'calloc-gnu'.
11240         * modules/calloc-gnu: New file, copied from modules/calloc.
11241         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11242         obsolete.
11243         * doc/posix-functions/calloc.texi: Update.
11244         * NEWS: Mention the change.
11245
11246         Rename module 'malloc' -> 'malloc-gnu'.
11247         * modules/malloc-gnu: New file, copied from modules/malloc.
11248         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11249         obsolete.
11250         * modules/argp (Depends-on): Update.
11251         * modules/regex (Depends-on): Update.
11252         * doc/posix-functions/malloc.texi: Update.
11253         * NEWS: Mention the change.
11254
11255 2010-08-28  Eric Blake  <eblake@redhat.com>
11256
11257         pread, pwrite: add missing dependency
11258         * modules/pread (Depends-on): Add extensions.
11259         * modules/pwrite (Depends-on): Likewise.
11260
11261 2010-08-28  Bruno Haible  <bruno@clisp.org>
11262
11263         unistr/u*-strchr: Fix tests dependencies.
11264         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11265         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11266         Reported by Ian Beckwith <ianb@erislabs.net>.
11267
11268 2010-08-28  Bruno Haible  <bruno@clisp.org>
11269
11270         read-file: Don't occupy too much unused memory.
11271         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11272
11273 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11274             Eric Blake  <eblake@redhat.com>
11275             Bruno Haible  <bruno@clisp.org>
11276
11277         read-file: Avoid memory reallocations with regular files.
11278         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11279         (fread_file): With regular files, use the remaining length as the
11280         initial buffer size.  Check against overflow.
11281         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11282         sys_stat.
11283
11284 2010-08-28  Bruno Haible  <bruno@clisp.org>
11285
11286         ftello: Relax license.
11287         * modules/ftello (License): Relax to LGPLv2+.
11288         Reported by Eric Blake.
11289
11290 2010-08-28  Bruno Haible  <bruno@clisp.org>
11291
11292         Avoid relocwrapper link errors due to gnulib replacement functions.
11293         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11294         function.
11295         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11296
11297 2010-08-28  Bruno Haible  <bruno@clisp.org>
11298
11299         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11300         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11301         defined.
11302         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11303         Suggested by Eric Blake.
11304
11305 2010-08-28  Bruno Haible  <bruno@clisp.org>
11306
11307         sys_socket, netdb: Ensure socklen_t gets defined.
11308         * modules/sys_socket (Depends-on): Add socklen.
11309         * modules/netdb (Depends-on): Likewise.
11310         * modules/getaddrinfo (Depends-on): Remove socklen.
11311         * modules/getsockopt (Depends-on): Likewise.
11312         * modules/setsockopt (Depends-on): Likewise.
11313         * tests/test-sys_socket.c: Check that socklen_t is defined.
11314         * tests/test-netdb.c: Likewise.
11315         * m4/socklen.m4: Update comments.
11316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11317
11318 2010-08-27  Eric Blake  <eblake@redhat.com>
11319
11320         login_tty: add missing dependency
11321         * modules/login_tty (Depends-on): Add pty.
11322
11323 2010-08-26  Eric Blake  <eblake@redhat.com>
11324
11325         lib-symbol-versions: fix m4 quoting
11326         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11327         format for AC_LINK_IFELSE.
11328
11329         glob: fix compile test
11330         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11331
11332         btowc: fix missing file
11333         * modules/btowc (Files): Also ship locale-fr.m4.
11334
11335         lseek: fix link test
11336         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11337         AC_LINK_IFELSE.
11338
11339         include_next: silence autoconf 2.68 warning
11340         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11341         AC_COMPILE_IFELSE as special.
11342         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11343         autoconf < 2.68.
11344
11345         acl: fix compilation test
11346         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11347         AC_COMPILE_IFELSE.
11348
11349 2010-08-26  Bruno Haible  <bruno@clisp.org>
11350
11351         Modernize AC_TRY_RUN invocations.
11352         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11353         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11354         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11355         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11356         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11357         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11358         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11360         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11361         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11362         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11363         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11364         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11365         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11367         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11368         gl_MBRLEN_NUL_RETVAL): Likewise.
11369         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11370         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11371         Likewise.
11372         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11373         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11374         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11375         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11376         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11377         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11378         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11379         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11380         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11381         Likewise.
11382         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11383         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11384         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11385         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11386         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11387         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11388         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11389         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11390         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11392
11393 2010-08-26  Bruno Haible  <bruno@clisp.org>
11394
11395         Modernize AC_TRY_LINK invocations.
11396         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11397         AC_TRY_LINK.
11398         * m4/argp.m4 (gl_ARGP): Likewise.
11399         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11400         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11401         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11402         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11403         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11404         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11405         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11406         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11407         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11408         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11409         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11410         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11411         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11412         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11413         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11414         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11415         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11416         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11417         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11418         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11419         Likewise.
11420         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11421         Likewise.
11422         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11423         Likewise.
11424         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11425         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11426         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11427         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11428         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11429         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11430         * m4/servent.m4 (gl_SERVENT): Likewise.
11431         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11432         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11433         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11434         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11435         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11436         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11437         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11438         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11439         * modules/tsearch-tests (configure.ac): Likewise.
11440
11441 2010-08-26  Bruno Haible  <bruno@clisp.org>
11442
11443         Modernize AC_TRY_COMPILE invocations.
11444         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11445         AC_TRY_COMPILE.
11446         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11447         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11448         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11449         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11450         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11451         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11452         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11453         * m4/lock.m4 (gl_LOCK): Likewise.
11454         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11455         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11456         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11457         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11458         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11459         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11460         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11461         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11462         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11463         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11464         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11465         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11466         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11467         extraneous semicolon.
11468
11469 2010-08-26  Jim Meyering  <meyering@redhat.com>
11470
11471         stat-time: relax license LGPL
11472         * modules/stat-time (License): Change from GPL to LGPL,
11473         with consent from all contributors, for use in libguile.
11474         Requested by Ludovic Courtès.
11475
11476 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11477
11478         poll: return immediately on POLLHUP.
11479         * lib/poll.c (poll): Always set timeout before wait_timeout is
11480         computed.
11481
11482 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11483
11484         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11485         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11486         rmdir ("dir/.//"), unlinkat.
11487
11488 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11489
11490         stdbool: avoid spurious failure with modern xlc
11491         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11492
11493 2010-08-24  Bruno Haible  <bruno@clisp.org>
11494
11495         getloadavg: simplify code
11496         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11497         gl_have_func. Update comments.
11498
11499 2010-08-24  Eric Blake  <eblake@redhat.com>
11500
11501         getloadavg: don't define SVR4 on cygwin
11502         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11503         only define SVR4 when -lkvm is required.
11504         Reported by Yaakov Selkowitz.
11505
11506 2010-08-24  Bruno Haible  <bruno@clisp.org>
11507
11508         priv-set: fix comment
11509         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11510
11511 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11512
11513         priv-set: fix comments
11514         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11515         to match code, as suggested by David Bartley in:
11516         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11517
11518 2010-08-23  Eric Blake  <eblake@redhat.com>
11519
11520         stdbool: avoid rejecting clang
11521         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11522         * tests/test-stdbool.c: Enable more tests if using the system
11523         <stdbool.h> instead of the gnulib replacement.
11524         (main): Move xlc bug test to a runtime test for all compilers.
11525         Reported by Anders Kaseorg.
11526
11527         argz: fix shell quoting issue
11528         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11529         Reported by Charles Wilson.
11530
11531 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11532             Erik Faye-Lund <kusmabite@gmail.com>
11533
11534         poll, select: handle ERROR_BROKEN_PIPE.
11535         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11536         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11537         * lib/select.c (win32_compute_revents): Do not mark a pipe
11538         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11539
11540 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11541
11542         fts: allow compilation with C++
11543         * lib/fts_.h: Specify extern "C" linkage with C++.
11544
11545 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11546
11547         Fix gnulib-tool sed script de-commentation for AIX sed.
11548         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11549         sed.
11550
11551 2010-08-17  Eric Blake  <eblake@redhat.com>
11552
11553         test-stddef: test for (some) offsetof bugs
11554         * tests/test-stddef.c: Enhance test to ensure correct type of
11555         offsetof.
11556         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11557         that we are not fixing at this time.
11558
11559 2010-08-15  Bruno Haible  <bruno@clisp.org>
11560
11561         stpncpy: Allow stpncpy to be defined as a macro.
11562         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11563         if it's already correctly declared.
11564         * lib/string.in.h (stpncpy): Undefine before redefining.
11565         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11566
11567 2010-08-14  Bruno Haible  <bruno@clisp.org>
11568
11569         Rename module 'memxfrm' to 'amemxfrm'.
11570         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11571         (amemxfrm): Renamed from memxfrm.
11572         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11573         (amemxfrm): Renamed from memxfrm.
11574         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11575         * NEWS: Mention the change.
11576         * MODULES.html.sh (String handling <string.h>): Update.
11577         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11578         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11579         * lib/unicase/u16-casexfrm.c: Likewise.
11580         * lib/unicase/u32-casexfrm.c: Likewise.
11581         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11582         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11583         * lib/uninorm/u16-normxfrm.c: Likewise.
11584         * lib/uninorm/u32-normxfrm.c: Likewise.
11585         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11586         memxfrm.
11587         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11588         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11589         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11590         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11591         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11592         Suggested by Paul Eggert.
11593
11594 2010-08-14  Bruno Haible  <bruno@clisp.org>
11595
11596         Tests for module 'astrxfrm'.
11597         * modules/astrxfrm-tests: New file.
11598         * tests/test-astrxfrm.c: New file.
11599
11600         New module 'astrxfrm'.
11601         * lib/astrxfrm.h: New file.
11602         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11603         * modules/astrxfrm: New file.
11604
11605 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11606
11607         regex: Tweak doc.
11608         * doc/regex.texi (Overview): Don't mention regex.c.
11609         (GNU Regular Expression Compiling): Likewise.
11610         (Match-end-of-line Operator): Mention 'not_eol'.
11611
11612 2010-08-14  Brian Gough  <bjg@gnu.org>
11613             Bruno Haible  <bruno@clisp.org>
11614
11615         git-merge-changelog: add doc relating to use with bzr and hg.
11616         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11617
11618 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11619
11620         pthread: fix pthread.h creation for srcdir != builddir
11621         * modules/pthread (Makefile.am): Fix the rule to work also in a
11622         non-srcdir build.
11623
11624 2010-08-13  Karl Berry  <karl@gnu.org>
11625
11626         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11627         * doc/posix-*/*: force line break before @url of POSIX
11628         specifications.
11629         Suggested by Werner Lemberg.
11630
11631 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11632
11633         strtod: fix const diagnostic
11634         * lib/strtod.c (strtod): Don't assign const char * to char *,
11635         as this elicits a warning from GCC when warnings are enabled.
11636
11637 2010-08-10  Pádraig Brady <P@draigbrady.com>
11638         and Eric Blake  <eblake@redhat.com>
11639
11640         copy-acl: ignore ENOTSUP on HP-UX
11641         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11642         so that it is available for HP-UX.
11643         * lib/copy-acl.c (qcopy_acl): Use it.
11644         Reported by Patrick M. Callahan.
11645
11646 2010-08-10  Eric Blake  <eblake@redhat.com>
11647
11648         open, chown: relax license
11649         * modules/open (License): Change to LGPLv2+, with consent by all
11650         authors, for use in augeas.
11651         * modules/chown (License): Likewise.
11652         * modules/lchown (Likewise): Likewise.
11653         Requested by Adam Stokes.
11654
11655 2010-08-09  Karl Berry  <karl@gnu.org>
11656
11657         * build-aux/ar-lib: new file, import from Automake.
11658         * config/srclist.txt: autocheck for updates.
11659
11660 2010-08-09  Eric Blake  <eblake@redhat.com>
11661
11662         readlinkat: adjust client modules
11663         * modules/areadlinkat (Depends-on): Use readlinkat, not
11664         symlinkat.
11665         * modules/areadlinkat-with-size (Depends-on): Likewise.
11666
11667         mknod: be more vocal about danger of running tests as root
11668         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11669         root, since that is just asking for problems.
11670         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11671
11672         readlinkat: split into its own module
11673         * modules/symlinkat: Split readlinkat...
11674         * modules/readlinkat: ...into separate module.
11675         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11676         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11677         * lib/symlinkat.c (readlinkat): Move...
11678         * lib/readlinkat.c: ...into new file.
11679         * modules/symlinkat-tests: Split readlinkat test...
11680         * modules/readlinkat-tests: ...into separate module.
11681         * tests/test-symlinkat.c: Split...
11682         * tests/test-readlinkat.c: ...into new file.
11683         * NEWS: Document the split.
11684         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11685         * lib/unistd.in.h (readlinkat): Likewise.
11686         Suggested by Bruno Haible.
11687
11688 2010-08-08  Bruno Haible  <bruno@clisp.org>
11689
11690         memxfrm: Speed up.
11691         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11692         that usually only one call to strxfrm is necessary for each string
11693         part.
11694         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11695
11696 2010-08-07  Karl Berry  <karl@gnu.org>
11697
11698         * doc/posix-headers/limits.texi,
11699         * doc/posix-functions/malloc.texi,
11700         * doc/posix-functions/strsignal.texi: missing @item.
11701         * doc/ld-version-script.texi: spurious leading i.
11702         * doc/regex.texi (Interval Operators): no commas inside @var.
11703
11704 2010-08-01  Bruno Haible  <bruno@clisp.org>
11705
11706         Integrate the regex documentation.
11707         * doc/gnulib.texi: Define 'cn' index.
11708         (Regular expressions): New a chapter that includes regex.texi and
11709         regexprops-generic.texi.
11710         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11711         syntax.
11712
11713         Whitespace cleanup.
11714         * doc/regex.texi: Remove trailing spaces.
11715
11716         Add regex documentation.
11717         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11718         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11719         Written by Kathy A. Hargreaves and Karl Berry.
11720
11721 2010-08-01  Bruno Haible  <bruno@clisp.org>
11722
11723         link: Update documentation.
11724         * doc/posix-functions/link.texi: Update regarding Solaris.
11725
11726 2010-07-31  Bruno Haible  <bruno@clisp.org>
11727
11728         Update modules list.
11729         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11730         (String handling <string.h>): Add memcmp2, memxfrm.
11731         (Container data structures): Add xlist, xsublist, xoset.
11732         (Core language properties): Add alignof, unused-parameter.
11733         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11734         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11735         (Unibyte characters <ctype.h>): New section.
11736         (String handling <string.h>): New section.
11737         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11738         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11739         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11740         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11741         tan, tanh, tanl, y0, y1, yn.
11742         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11743         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11744         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11745         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11746         unlockpt, vdprintf, vdprintf-posix.
11747         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11748         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11749         xconcat-filename.
11750         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11751         getdtablesize, pipe2, pipe2-safer.
11752         (Security): New section.
11753         (Networking functions): Add accept4.
11754         (Signal handling): Add sigpipe.
11755         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11756         mbmemcasecoll.
11757         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11758         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11759         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11760         pipe-filter-ii.
11761         (Misc): Add argp-version-etc, login_tty, parse-duration.
11762
11763 2010-07-31  Bruno Haible  <bruno@clisp.org>
11764
11765         Improve doc in MODULES.html.
11766         * modules/linkat (Description): Add the word "function".
11767         * modules/mkfifo (Description): Likewise.
11768         * modules/mknod (Description): Likewise.
11769         * modules/remove (Description): Likewise.
11770         * modules/renameat (Description): Likewise.
11771         * modules/stat (Description): Likewise.
11772         * modules/symlink (Description): Likewise.
11773         * modules/unlink (Description): Likewise.
11774
11775 2010-07-31  Bruno Haible  <bruno@clisp.org>
11776
11777         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11778         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11779         option --enable/disable-c++ instead of --enable/disable-cxx.
11780         * NEWS: Mention the change.
11781
11782 2010-07-31  Bruno Haible  <bruno@clisp.org>
11783
11784         readlink, areadlink: Relax test a bit.
11785         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11786         alternative to ENOTDIR.
11787         * tests/test-areadlink.h (test_areadlink): Likewise.
11788         Reported by Rainer Tammer.
11789
11790 2010-07-31  Bruno Haible  <bruno@clisp.org>
11791
11792         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11793         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11794         character, perform the search using U_STRCHR.
11795         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11796         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11797         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11798         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11799         Suggested by Paolo Bonzini.
11800
11801 2010-07-31  Bruno Haible  <bruno@clisp.org>
11802
11803         unistr/u*-strstr: Fix dependencies.
11804         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11805         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11806         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11807
11808 2010-07-31  Bruno Haible  <bruno@clisp.org>
11809
11810         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11811         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11812         the beginning of the loop.
11813         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11814         cases in 'switch' statement.
11815
11816         unistr/u8-strchr: Fix several bugs.
11817         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11818         the string. When not found, return NULL, not a pointer near the end.
11819
11820         More tests for unistr/u8-strchr.
11821         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11822         that the function does not read past the first occurrence of the byte
11823         being searched.
11824         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11825         * tests/unistr/test-u16-strchr.c (main): New function.
11826         * tests/unistr/test-u32-strchr.c (main): New function.
11827
11828 2010-07-31  Bruno Haible  <bruno@clisp.org>
11829
11830         posix-modules: Ignore backup files of documentation files.
11831         * posix-modules: grep only through files named *.texi.
11832
11833 2010-07-31  Bruno Haible  <bruno@clisp.org>
11834
11835         symlinkat: Fix documentation.
11836         * doc/posix-functions/readlinkat.texi: Fix module name.
11837
11838 2010-07-31  Bruno Haible  <bruno@clisp.org>
11839
11840         fchownat: Replace also when chown has the trailing slash bug.
11841         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11842         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11843         introduced on 2010-04-10.
11844         Reported by Rainer Tammer.
11845
11846 2010-07-31  Bruno Haible  <bruno@clisp.org>
11847
11848         linkat: Work around AIX 7.1 bug.
11849         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11850         whether linkat handles trailing slash correctly. If not, replace linkat
11851         and define LINKAT_TRAILING_SLASH_BUG.
11852         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11853         check whether (fd1,file1) points to a directory if file1 or file2 ends
11854         in a slash. Code taken from lib/link.c.
11855         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11856         Reported by Rainer Tammer.
11857
11858 2010-07-31  Bruno Haible  <bruno@clisp.org>
11859
11860         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11861         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11862         This disables an xlc optimization that was causing wrong test results.
11863         Reported by Rainer Tammer.
11864
11865 2010-07-31  Bruno Haible  <bruno@clisp.org>
11866
11867         iconv: Work around AIX 6.1..7.1 bug.
11868         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11869         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11870         cross-compiling, guess no on all versions of AIX.
11871         Reported by Rainer Tammer.
11872
11873 2010-07-31  Bruno Haible  <bruno@clisp.org>
11874
11875         readlink: Relax test a bit.
11876         * tests/test-readlink.h (test_readlink): Allow different errno value
11877         when readlink is called with a file name that ends in / and refers to
11878         a file.
11879         Suggested by Eric Blake.
11880         Reported by Rainer Tammer.
11881
11882 2010-07-31  Bruno Haible  <bruno@clisp.org>
11883
11884         copysign: Does not require -lm on glibc systems.
11885         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11886         gl_COMMON_DOUBLE_MATHFUNC.
11887         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11888
11889 2010-07-31  Bruno Haible  <bruno@clisp.org>
11890
11891         duplocale: Work around AIX 7.1 bug.
11892         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11893         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11894         * lib/duplocale.c (rpl_duplocale): Update comment.
11895         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11896         Reported by Rainer Tammer.
11897
11898 2010-07-30  Bruno Haible  <bruno@clisp.org>
11899
11900         dirfd: Avoid link error on AIX 7.1.
11901         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11902         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11903         exist, set REPLACE_DIRFD.
11904         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11905         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11906         * doc/posix-functions/dirfd.texi: Update.
11907         Reported by Rainer Tammer.
11908
11909 2010-07-30  Eric Blake  <eblake@redhat.com>
11910
11911         strtod: next round of AIX fixes
11912         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11913         exponent.
11914         * tests/test-strtod.c (main): Enhance tests.
11915         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11916         Reported by Rainer Tammer.
11917
11918         futimens: fix configure check
11919         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11920         Reported by Bruno Haible.
11921
11922 2010-07-30  Bruno Haible  <bruno@clisp.org>
11923
11924         getline: Update regarding AIX.
11925         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11926         Reported by Rainer Tammer.
11927
11928 2010-07-30  Bruno Haible  <bruno@clisp.org>
11929
11930         wcwidth: Drop replacement on AIX 7.
11931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11932         AIX 7.
11933         Reported by Rainer Tammer.
11934
11935 2010-07-30  Bruno Haible  <bruno@clisp.org>
11936
11937         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11938         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11939         a 'char *'.
11940         Reported by Rainer Tammer.
11941
11942 2010-07-30  Bruno Haible  <bruno@clisp.org>
11943
11944         unlink: Update regarding AIX.
11945         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11946         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11947         Reported by Rainer Tammer.
11948
11949 2010-07-30  Bruno Haible  <bruno@clisp.org>
11950
11951         symlink: Update regarding AIX.
11952         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11953         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11954         Reported by Rainer Tammer.
11955
11956 2010-07-30  Bruno Haible  <bruno@clisp.org>
11957
11958         strndup: Update regarding AIX.
11959         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11960         AIX 7.
11961         Reported by Rainer Tammer.
11962
11963 2010-07-30  Bruno Haible  <bruno@clisp.org>
11964
11965         stat: Update regarding AIX.
11966         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11967         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11968         Reported by Rainer Tammer.
11969
11970 2010-07-30  Bruno Haible  <bruno@clisp.org>
11971
11972         truncl: Fix autoconf test.
11973         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11974         whether truncl works.
11975         Reported by Rainer Tammer.
11976
11977 2010-07-30  Bruno Haible  <bruno@clisp.org>
11978
11979         round: Update regarding AIX.
11980         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11981         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11982         Reported by Rainer Tammer.
11983
11984 2010-07-30  Bruno Haible  <bruno@clisp.org>
11985
11986         rename: Update regarding AIX.
11987         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11988         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11989         Reported by Rainer Tammer.
11990
11991 2010-07-30  Bruno Haible  <bruno@clisp.org>
11992
11993         printf.m4: Update regarding AIX.
11994         * m4/printf.m4: Update comments regarding AIX.
11995         Reported by Rainer Tammer.
11996
11997 2010-07-30  Bruno Haible  <bruno@clisp.org>
11998
11999         iconv: Update regarding AIX.
12000         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12001         AIX 7.
12002         Reported by Rainer Tammer.
12003
12004 2010-07-30  Bruno Haible  <bruno@clisp.org>
12005
12006         getopt: Update regarding AIX.
12007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12008         no on AIX.
12009         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12010         Reported by Rainer Tammer.
12011
12012 2010-07-30  Bruno Haible  <bruno@clisp.org>
12013
12014         ldexpl; Update regarding AIX.
12015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12016         on AIX 7.
12017         Reported by Rainer Tammer.
12018
12019 2010-07-30  Bruno Haible  <bruno@clisp.org>
12020
12021         frexpl: Update regarding AIX.
12022         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12023         on AIX 7.
12024         Reported by Rainer Tammer.
12025
12026 2010-07-30  Bruno Haible  <bruno@clisp.org>
12027
12028         open, fopen: Update regarding AIX.
12029         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12030         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12031         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12032         * doc/posix-functions/fopen.texi: Likewise.
12033         Reported by Rainer Tammer.
12034
12035 2010-07-30  Bruno Haible  <bruno@clisp.org>
12036
12037         chown: Update doc regarding AIX.
12038         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12039         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12040         Reported by Rainer Tammer.
12041
12042 2010-07-30  Eric Blake  <eblake@redhat.com>
12043
12044         strtod: fix bug in replacement function on AIX
12045         * lib/strtod.c (strtod): Special case broken "0x" parse in
12046         underlying strtod.
12047         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12048         * doc/posix-functions/strtod.texi (strtod): Likewise.
12049         Reported by Rainer Tammer.
12050
12051 2010-07-30  Bruno Haible  <bruno@clisp.org>
12052
12053         mbrlen: Fix cross-compilation guess for AIX.
12054         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12055         guess. Leftover from 2008-12-22.
12056
12057 2010-07-30  Bruno Haible  <bruno@clisp.org>
12058
12059         mbrtowc: Fix cross-compilation guess for AIX.
12060         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12061         guess. Leftover from 2008-12-21.
12062
12063 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12064
12065         init.sh: work around trap limitation of some shells
12066         * tests/init.sh (setup_): Move exit trap outside of shell function.
12067
12068 2010-07-29  Eric Blake  <eblake@redhat.com>
12069
12070         strtod: aid debugging
12071         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12072         understanding why strtod is rejected.
12073
12074 2010-07-28  Bruno Haible  <bruno@clisp.org>
12075
12076         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12077         * lib/unistr/u8-chr.c: Include <string.h>.
12078         * tests/unistr/test-u8-chr.c: Likewise.
12079         * tests/unistr/test-u16-chr.c: Likewise.
12080         * tests/unistr/test-u32-chr.c: Likewise.
12081         * tests/unistr/test-u8-strchr.c: Likewise.
12082         * tests/unistr/test-u16-strchr.c: Likewise.
12083         * tests/unistr/test-u32-strchr.c: Likewise.
12084         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12085         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12086         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12087         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12088
12089 2010-07-28  Bruno Haible  <bruno@clisp.org>
12090
12091         Use spaces for indentation, not tabs.
12092         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12093
12094 2010-07-27  Bruno Haible  <bruno@clisp.org>
12095
12096         mbspcasecmp: Fix function specification.
12097         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12098         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12099         Reported by Eric Blake <eblake@redhat.com>.
12100
12101 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12102
12103         timespec: use cast and not conditional, as truncation isn't possible
12104         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12105         instead of a conditional.  Comment about the situation in more detail.
12106         This undoes most of the 2009-10-29 patch.
12107
12108 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12109
12110         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12111         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12112         * lib/unistr/u8-strchr.c: Likewise.
12113         * modules/unistr/u8-chr: Depend on memchr.
12114
12115         unistr/u*-strchr: add tests
12116         * modules/unistr/u8-strchr-tests: New file.
12117         * modules/unistr/u16-strchr-tests: New file.
12118         * modules/unistr/u32-strchr-tests: New file.
12119         * tests/unistr/test-strchr.h: New file.
12120         * tests/unistr/test-u8-strchr.c: New file.
12121         * tests/unistr/test-u16-strchr.c: New file.
12122         * tests/unistr/test-u32-strchr.c: New file.
12123
12124         unistr/u*-chr: test multibyte sequences more
12125         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12126         test vector.
12127         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12128         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12129         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12130
12131         unistr/u*-chr: test multibyte sequences
12132         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12133
12134         unistr/u*-chr: prepare for multibyte tests
12135         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12136         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12137         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12138         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12139         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12140         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12141
12142 2010-07-18  Bruno Haible  <bruno@clisp.org>
12143
12144         unistr/u8-strchr: Optimize non-ASCII argument case.
12145         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12146         because the first byte often matches anyway.
12147         Reported by Pádraig Brady <P@draigbrady.com>.
12148
12149 2010-07-15  Karl Berry  <karl@gnu.org>
12150
12151         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12152
12153 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12154
12155         getcwd: on Solaris, work better if ancestors are inaccessible
12156         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12157         buffer and size, try again with a large buffer.  This works better
12158         on Solaris, since its getcwd succeeds even if the path to the root
12159         is inaccessible, and this is helpful in common cases such as .zfs
12160         hidden directories.  Problem reported by J Chapman Flack in
12161         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12162         Use system getcwd if it's declared, not merely if it's partly
12163         working; use the partly-working test only to avoid needless effort
12164         if the system getcwd fails.
12165         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12166         comment that was already obsolete and is now even more obsolete.
12167         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12168         now might call strdup.
12169
12170 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12171
12172         pthread: Add enough so that coreutils/src/sort.c compiles.
12173         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12174         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12175         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12176         Include <sys/types.h>, in case it defines pthread_t.
12177         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12178         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12179         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12180         (pthread_rwlockattr_t, pthread_spinlock_t):
12181         New typedefs, if HAVE_PTHREAD_T is not defined.
12182         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12183         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12184         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12185         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12186         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12187         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12188         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12189         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12190         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12191         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12192         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12193         New macros.
12194         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12195         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12196         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12197         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12198         (pthread_spin_unlock): New dummy functions.
12199         (pthread_create): Return EAGAIN; don't set errno.
12200         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12201         require AC_C_INLINE.
12202         * modules/pthread (Depends-on): Add sched, time.
12203         (pthread.h): Use AM_V_GEN.
12204
12205 2010-07-13  Bruno Haible  <bruno@clisp.org>
12206
12207         striconveh: Don't malloc memory if the result buffer is sufficient.
12208         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12209         buffer if its size is sufficient.
12210         Reported by Ludovic Courtès <ludo@gnu.org>.
12211
12212 2010-07-13  Bruno Haible  <bruno@clisp.org>
12213
12214         strtod: Add safety check.
12215         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12216
12217 2010-07-12  Bruno Haible  <bruno@clisp.org>
12218
12219         Unify tests that set gl_cv_func_ldexpl_no_libm.
12220         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12221         gl_FUNC_LDEXPL.
12222         (gl_FUNC_LDEXPL): Invoke it.
12223         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12224
12225 2010-07-12  Bruno Haible  <bruno@clisp.org>
12226
12227         Unify tests that set gl_cv_func_ldexp_no_libm.
12228         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12229         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12230         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12231         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12232         * modules/strtod (Files): Add m4/ldexp.m4.
12233
12234 2010-07-12  Bruno Haible  <bruno@clisp.org>
12235
12236         Unify tests that set gl_cv_func_frexpl_no_libm.
12237         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12238         gl_FUNC_FREXPL_NO_LIBM.
12239         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12240         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12241
12242 2010-07-12  Bruno Haible  <bruno@clisp.org>
12243
12244         Unify tests that set gl_cv_func_frexp_no_libm.
12245         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12246         gl_FUNC_FREXP_NO_LIBM.
12247         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12248         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12249
12250 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12251
12252         memcoll: clarify sizes versus lengths, document better, and tweak perf
12253         * lib/memcoll.c (strcoll_loop, memcoll0):
12254         Improve quality of descriptive comments.  Name variables
12255         consistently as to whether they are lengths (which do not include
12256         terminating null) versus sizes (which do).
12257         * lib/xmemcoll.c (xmemcoll0): Likewise.
12258         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12259         returned when s1size == 0; this is easier to compile and saves
12260         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12261
12262 2010-07-12  Bruno Haible  <bruno@clisp.org>
12263
12264         Tests for module '_Exit'.
12265         * modules/_Exit-tests: New file.
12266         * tests/test-_Exit.sh: New file.
12267         * tests/test-_Exit.c: New file.
12268
12269         New module '_Exit'.
12270         * lib/stdlib.in.h (__attribute__): New macro.
12271         (_Exit): New declaration.
12272         * lib/_Exit.c: New file.
12273         * m4/_Exit.m4: New file.
12274         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12275         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12276         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12277         * modules/_Exit: New file.
12278         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12279         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12280
12281 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12282
12283         strtod: make it more-accurate typically, and don't require libm
12284         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12285         Include limits.h.  Don't include string.h.
12286         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12287         (locale_isspace): New function, so that no casts are needed to
12288         check whether *s is a space.
12289         (ldexp): Provide an unused dummy if not available.
12290         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12291         (strtod): Use them.  This implementation prefers to use the
12292         underlying strtod if available, falling back on our own code
12293         only to fix known bugs.  This is more likely to produce an
12294         accurate result.  Also, it avoids the use of libm functions.
12295         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12296         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12297         was absent, but it caused a test failure with coreutils.
12298         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12299         with libm.
12300         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12301         * modules/strtod-tests (Makefile.am): Likewise.
12302
12303 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12304             Bruno Haible  <bruno@clisp.org>
12305
12306         unistr/u8-strchr: Optimize ASCII argument case.
12307         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12308
12309 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12310
12311         (x)memcoll: minor tweaks
12312         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12313         is after the type that it qualifies.
12314         (memcoll0): Likewise.
12315         * lib/memcoll.h (memcoll0): Likewise.
12316         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12317         * lib/xmemcoll.h (xmemcoll0): Likewise.
12318         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12319         differs from memcoll in that the NUL byte is part of the argument.
12320         Omit the abort-checks, as performance is a real issue here.  Plus,
12321         the checks were wrong anyway (an off-by-one error).  Omit local
12322         variable 'diff', as it's a bit clearer that way.
12323         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12324         no longer needed.
12325
12326 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12327
12328         (x)memcoll: speedup when input is known to be NUL delimited
12329         * lib/memcoll.c: Include stdlib.
12330         (memcoll0): New function.
12331         (strcoll_loop): New function, refactored for use in both memcoll
12332         and memcoll0.
12333         * lib/memcoll.h (memcoll0): Add prototype.
12334         * lib/xmemcoll.c (xmemcoll0): New function.
12335         (collate_error): New function, refactored for use in both xmemcoll
12336         and xmemcoll0.
12337         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12338         * m4/memcoll.m4: add inline invocation.
12339
12340 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12341
12342         * build-aux/bootstrap: Remove any local translations
12343         from the translation project synchronization directory,
12344         so that local only translations are not distributed.
12345
12346 2010-07-04  Bruno Haible  <bruno@clisp.org>
12347
12348         fsusage: Clarify which code applies to which platforms.
12349         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12350         platform.
12351         * lib/fsusage.c (get_fs_usage): Likewise.
12352
12353 2010-07-04  Bruno Haible  <bruno@clisp.org>
12354
12355         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12356         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12357         Reported by Martin Lambers <marlam@marlam.de>.
12358
12359 2010-07-04  Jim Meyering  <meyering@redhat.com>
12360
12361         hash: once again explicitly disallow insertion of NULL
12362         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12363         inserting a NULL pointer cannot work with these functions.
12364         Add a comment with details.
12365         This reverts part of the 2010-07-01 commit, 5bef1a35
12366         "hash: extend module to deal with non-pointer keys".
12367
12368 2010-07-01  Bruno Haible  <bruno@clisp.org>
12369
12370         stdbool: Update doc.
12371         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12372         Info from Christian Weisgerber <naddy@mips.inka.de>.
12373
12374 2010-07-01  Jim Meyering  <meyering@redhat.com>
12375
12376         hash: extend module to deal with non-pointer keys
12377         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12378         but that allows insertion of non-pointer entries.
12379         Do not disallow an ENTRY value of NULL.
12380         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12381         * lib/hash.h (hash_insert0): Declare.
12382
12383 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12384
12385         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12386         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12387         not present (i.e. with autoconf 2.59 and when using gettextize, not
12388         gnulib), require AC_GNU_SOURCE instead.
12389
12390 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12391
12392         idpriv-drop: Fix tests.
12393         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12394         not to the test-idpriv-droptemp program.
12395
12396 2010-06-29  Bruno Haible  <bruno@clisp.org>
12397
12398         string: Fix syntax error with g++ 2.96.
12399         * lib/string.in.h (__pure__): Remove definition.
12400         (_GL_ATTRIBUTE_PURE): New macro.
12401         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12402         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12403         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12404
12405 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12406
12407         unitypes: Fix bug introduced on 2010-05-18.
12408         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12409
12410 2010-06-22  Eric Blake  <eblake@redhat.com>
12411
12412         memmem: slight optimization
12413         * lib/str-two-way.h (critical_factorization): Update comments.
12414         Reduce work during factorization phase.
12415         Reported by Carlos Bueno <carlos@bueno.org>.
12416
12417 2010-06-21  Bruno Haible  <bruno@clisp.org>
12418
12419         Fix HAVE_CALLOC_POSIX misnomer.
12420         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12421         !HAVE_CALLOC_POSIX.
12422         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12423         HAVE_CALLOC_POSIX.
12424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12425         instead of HAVE_CALLOC_POSIX.
12426         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12427         HAVE_CALLOC_POSIX.
12428
12429         Use modern idiom for calloc() replacement.
12430         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12431         AC_FUNC_CALLOC.
12432         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12433         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12434         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12435         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12436         (gl_REPLACE_CALLOC): New macro.
12437
12438 2010-06-21  Bruno Haible  <bruno@clisp.org>
12439
12440         Fix HAVE_REALLOC_POSIX misnomer.
12441         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12442         !HAVE_REALLOC_POSIX.
12443         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12444         HAVE_REALLOC_POSIX.
12445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12446         instead of HAVE_REALLOC_POSIX.
12447         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12448         HAVE_REALLOC_POSIX.
12449
12450         Use modern idiom for realloc() replacement.
12451         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12452         AC_FUNC_REALLOC.
12453         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12454         Autoconf's AC_FUNC_REALLOC.
12455         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12456         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12457         (gl_REPLACE_REALLOC): New macro.
12458         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12459
12460 2010-06-21  Bruno Haible  <bruno@clisp.org>
12461
12462         Fix HAVE_MALLOC_POSIX misnomer.
12463         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12464         !HAVE_MALLOC_POSIX.
12465         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12466         HAVE_MALLOC_POSIX.
12467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12468         instead of HAVE_MALLOC_POSIX.
12469         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12470         HAVE_MALLOC_POSIX.
12471
12472         Use modern idiom for malloc() replacement.
12473         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12474         AC_FUNC_MALLOC.
12475         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12476         Autoconf's AC_FUNC_MALLOC.
12477         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12478         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12479         (gl_REPLACE_MALLOC): New macro.
12480         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12481
12482 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12483
12484         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12485         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12486         This macro takes 3 arguments, not 4.
12487
12488 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12489
12490         ipv6: fix detection under mingw
12491         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12492         in6_addr.
12493
12494 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12495
12496         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12497         that strtod() works when cross-compiling to a glibc version known
12498         to work.
12499
12500 2010-06-15  Bruno Haible  <bruno@clisp.org>
12501
12502         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12503
12504 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12505
12506         select: Correct timeout.
12507         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12508
12509 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12510
12511         git-version-gen: init shell var to avoid env var influence
12512         * build-aux/git-version-gen (v): Init shell var to empty.
12513
12514 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12515
12516         priv-set: Don't assume that priv.h exists merely because getppriv does.
12517         See Jan Andersen's bug report about AIX 5L in
12518         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12519         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12520         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12521         * lib/priv-set.h: Likewise.
12522         * tests/test-priv-set.c: Likewise.
12523
12524 2010-06-13  Bruno Haible  <bruno@clisp.org>
12525
12526         relocatable: Make it easier to test whether to install wrappers.
12527         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12528         RELOCATABLE_VIA_WRAPPER.
12529
12530 2010-06-13  Bruno Haible  <bruno@clisp.org>
12531
12532         gnulib-tool: Display specified modules and dependencies differently.
12533         * gnulib-tool (func_show_module_list): New function.
12534         (func_import, func_create_testdir): Invoke it.
12535         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12536
12537 2010-06-13  Bruno Haible  <bruno@clisp.org>
12538
12539         gnulib-tool: Align code of func_import and func_create_testdir.
12540         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12541         specified_modules.
12542
12543 2010-06-12  Jim Meyering  <meyering@redhat.com>
12544
12545         test-inttostr: avoid spurious failure on Solaris 9
12546         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12547         to accept "%ju".  Reported by Bruno Haible.
12548
12549 2010-06-11  Jim Meyering  <meyering@redhat.com>
12550
12551         test-sys_socket: mark variables as used more readably
12552         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12553         as "used" explicitly via (void) statement casts.  This is more
12554         readable than using them in an artificial return expression.
12555         Suggestion from Bruno Haible.
12556
12557 2010-06-11  Bruno Haible  <bruno@clisp.org>
12558
12559         Avoid some more warnings from "gcc -Wwrite-strings".
12560         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12561         to 'const char *'.
12562         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12563         * tests/test-c-strcasestr.c (main): Likewise.
12564         * tests/test-mbscasestr1.c (main): Likewise.
12565         * tests/test-mbscasestr2.c (main): Likewise.
12566         * tests/test-memmem.c (main): Likewise.
12567         * tests/test-strstr.c (main): Likewise.
12568         * tests/test-strcasestr.c (main): Likewise.
12569
12570 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12571
12572         init.sh: change framework_failure_ to fail with status 99, not 1
12573         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12574         automake's parallel-tests rule that this is an unexpected failure,
12575         even if the test is listed in XFAIL_TESTS.
12576
12577 2010-06-11  Jim Meyering  <meyering@redhat.com>
12578
12579         test-inttostr: avoid warnings about 4-6KB literal strings
12580         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12581         Include "macros.h", for its definition of ASSERT.
12582         (CK): s/assert/ASSERT/
12583         * modules/inttostr-tests (Files): Add macros.h.
12584
12585         init.sh: don't use $ME_ or skip_ before they are defined
12586         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12587         their first uses.  Also hoist their companions: warn_, fail_,
12588         framework_failure_, $stderr_fileno.  Prompted by a patch from
12589         Stefano Lattarini.
12590
12591         test-sys_socket: avoid set-but-not-used warnings from gcc
12592         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12593         avoid warning about set-but-not-used variables.
12594
12595         test-xvasprintf: avoid 'const' discard warnings
12596         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12597         "const" when assigning from literal strings.
12598         (test_xasprintf): Add "void" in function argument list to placate
12599         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12600
12601         tests: avoid compilation warnings in argmatch and exclude tests...
12602         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12603         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12604         Since it always exits, declare with the "noreturn" attribute.
12605         * tests/test-argmatch.c: Likewise.
12606
12607         tests: avoid 'const' discard warnings in mbsstr tests
12608         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12609         * tests/test-mbsstr2.c (main): Likewise.
12610
12611         test-verify: avoid warning from gcc's -Wmissing-declarations
12612         * tests/test-verify.c (function): Declare to be static.
12613
12614         test-inttostr.c: include <string.h> for use of strcmp
12615         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12616
12617         test-linkat: avoid failed assertion on "other" architectures
12618         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12619         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12620         sparc: https://bugs.launchpad.net/bugs/591968
12621
12622 2010-06-11  Jim Meyering  <meyering@redhat.com>
12623
12624         printf.m4: avoid autoconf's "Expanded Before Required" warning
12625         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12626         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12627         autoconf warning.
12628
12629 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12630
12631         Replacement header templates are now named with ".in", not "_".
12632         * doc/gnulib-intro.texi: Correct.
12633
12634 2010-06-10  Jim Meyering  <meyering@redhat.com>
12635
12636         inttostr-tests: depend on snprintf, not snprintf-posix
12637         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12638         snprintf-posix, to avoid this aclocal failure:
12639           missing file gnulib-tests/vasnprintf.c
12640           configure.ac:45: error: expected source file, required through \
12641           AC_LIBSOURCES, not found
12642
12643 2010-06-10  Jim Meyering  <meyering@redhat.com>
12644
12645         inttostr: add a new function, inttostr, and tests
12646         The namesake function was not available.  The existence of the
12647         template file, inttostr.c makes its addition nontrivial.
12648         * lib/anytostr.c: Rename from inttostr.c.
12649         (anytostr): Rename from inttostr.
12650         * lib/inttostr.c: New file.
12651         * modules/inttostr (Files): Add anytostr.c.
12652         (Makefile.am): Set lib_SOURCES instead of ...
12653         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12654         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12655         * lib/offtostr.c: Likewise.
12656         * lib/uinttostr.c: Likewise.
12657         * lib/umaxtostr.c: Likewise.
12658         * modules/inttostr-tests: New file.
12659         * tests/test-inttostr.c: New file.  Test these functions.
12660
12661 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12662             Bruno Haible  <bruno@clisp.org>
12663
12664         Add "Extending Gnulib" chapter to manual.
12665         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12666         chapter.
12667         (Extending Gnulib): New chapter.
12668         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12669         chapter.
12670
12671 2010-06-09  Bruno Haible  <bruno@clisp.org>
12672
12673         Avoid relocwrapper link errors due to gnulib replacement functions.
12674         * lib/areadlink.c: Use the system's malloc, realloc functions.
12675         (areadlink): Set errno to ENOMEM explicitly.
12676         * modules/areadlink (Depends-on): Remove malloc-posix.
12677         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12678
12679 2010-06-09  Bruno Haible  <bruno@clisp.org>
12680
12681         Avoid relocwrapper link errors due to gnulib replacement functions.
12682         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12683         * lib/malloca.c: Likewise.
12684         * lib/relocatable.c: Likewise.
12685         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12686         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12687         * lib/setenv.c: Use the system's malloc, realloc functions.
12688         * lib/strerror.c: Use the system's sprintf function.
12689         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12690
12691 2010-06-04  Bruno Haible  <bruno@clisp.org>
12692
12693         Prefer documented low-level autoconf macro names.
12694         * m4/lib-link.m4: Use m4_translit instead of translit.
12695         * m4/environ.m4: Likewise.
12696         * m4/mathfunc.m4: Likewise.
12697         * m4/onceonly.m4: Likewise.
12698         * m4/stdint.m4: Likewise.
12699         Suggested by Eric Blake.
12700
12701 2010-06-04  Martin Lambers  <marlam@marlam.de>
12702             Bruno Haible  <bruno@clisp.org>
12703
12704         havelib: Allow library names with '+' characters.
12705         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12706         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12707
12708 2010-06-09  Bruno Haible  <bruno@clisp.org>
12709
12710         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12711         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12712         realloc failed.
12713
12714 2010-06-08  Peter Simons  <simons@cryp.to>
12715
12716         maint.mk: make the news-check rule more configurable
12717         * top/maint.mk (news-check-lines-spec): New variable.
12718         (news-check): Use "sed -n 1,10p" in place of "head".
12719
12720 2010-06-07  Jim Meyering  <meyering@redhat.com>
12721
12722         do-release-commit-and-tag: fix typo in --help
12723         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12724
12725         regex: avoid new dead-code warning with gcc-4.6.0
12726         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12727         if-block containing a while-loop.  It's been unused for at least
12728         5 years.
12729
12730 2010-06-05  Bruno Haible  <bruno@clisp.org>
12731
12732         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12733         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12734
12735 2010-06-04  Bruno Haible  <bruno@clisp.org>
12736
12737         Update to GNU gettext 0.18.1.
12738         * modules/gettext (configure.ac): Require gettext infrastructure from
12739         version 0.18.1.
12740
12741 2010-06-03  Bruno Haible  <bruno@clisp.org>
12742
12743         Don't use AC_LIBOBJ with file names in subdirectories.
12744         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12745         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12746         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12747         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12748         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12749         gl_LIBUNISTRING_LIBSOURCE.
12750         (Makefile.am): Augment lib_SOURCES here, conditionally.
12751         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12752
12753 2010-06-03  Bruno Haible  <bruno@clisp.org>
12754
12755         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12756         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12757         expansion does not end with a newline.
12758         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12759         unnecessary newline.
12760
12761 2010-06-03  Bruno Haible  <bruno@clisp.org>
12762
12763         Reduce dependencies.
12764         * tests/test-quotearg.h: New file, extracted from
12765         tests/test-quotearg.c.
12766         * tests/test-quotearg-simple.c: New file, extracted from
12767         tests/test-quotearg.c.
12768         * tests/test-quotearg.c: Don't include <ctype.h>.
12769         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12770         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12771         use_quote_double_quotes, use_quotearg_colon): Moved to
12772         tests/test-quotearg.h.
12773         (results_g, flag_results, custom_quotes, custom_results): Moved
12774         to tests/test-quotearg-simple.c.
12775         (main): Moved the part that does not depend on gettext to
12776         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12777         performed.
12778         * modules/quotearg-simple: New file.
12779         * modules/quotearg-simple-tests: New file.
12780         * modules/quotearg (Depends-on): Add quotearg-simple.
12781         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12782         (Files): Add tests/test-quotearg.h.
12783         Reported by Paolo Bonzini.
12784
12785 2010-06-03  Bruno Haible  <bruno@clisp.org>
12786
12787         Reduce dependencies.
12788         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12789
12790 2010-06-03  Bruno Haible  <bruno@clisp.org>
12791
12792         time: Undefine more broken macros.
12793         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12794         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12795         Reported by Eric Blake.
12796
12797 2010-06-03  Bruno Haible  <bruno@clisp.org>
12798
12799         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12800         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12801         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12802         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12803         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12804         Reported by Ludovic Courtès <ludo@gnu.org>.
12805
12806 2010-06-02  Eric Blake  <eblake@redhat.com>
12807
12808         time: work with mingw + pthreads-win32 library
12809         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12810         if timespec is defined only in pthread.h.
12811         * modules/time (Makefile.am): Substitute it.
12812         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12813         <pthread.h>, when needed.
12814         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12815         from the library.
12816
12817 2010-05-31  Bruno Haible  <bruno@clisp.org>
12818
12819         Avoid expanding two macros in the wrong order.
12820         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12821         gl_LIBUNISTRING if it is defined.
12822         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12823         autoconf >= 2.64.
12824         Reported by Ludovic Courtès <ludo@gnu.org>.
12825
12826 2010-05-27  Jim Meyering  <meyering@redhat.com>
12827
12828         maint.mk: also prohibit "#undef" of always-defined symbols
12829         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12830         Allow more than one space before the symbol name.
12831         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12832         the regexp uses alternation.
12833
12834 2010-05-26  Eric Blake  <eblake@redhat.com>
12835
12836         maint.mk: avoid echo -e
12837         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12838         Convert all uses of echo -* to printf.
12839         Reported by Matthias Bolte.
12840
12841 2010-05-25  Bruno Haible  <bruno@clisp.org>
12842
12843         Update to GNU gettext 0.18, part 2.
12844         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12845         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12846
12847 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12848
12849         Add missing include in test-pwrite.c.
12850         * tests/test-pwrite.c: Include string.h, for strcmp.
12851
12852 2010-05-24  Bruno Haible  <bruno@clisp.org>
12853
12854         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12855
12856 2010-05-24  Bruno Haible  <bruno@clisp.org>
12857
12858         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12859         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12860         iconveh_error argument.
12861         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12862         U_STRCONV_TO_LOCALE.
12863         * lib/unistr/u16-strcoll.c: Likewise.
12864         * lib/unistr/u32-strcoll.c: Likewise.
12865         * modules/unistr/u8-strcoll (Depends-on): Add
12866         uniconv/u8-strconv-to-enc, localcharset. Remove
12867         uniconv/u8-strconv-to-locale.
12868         (configure.ac): Bump version number.
12869         * modules/unistr/u16-strcoll (Depends-on): Add
12870         uniconv/u16-strconv-to-enc, localcharset. Remove
12871         uniconv/u16-strconv-to-locale.
12872         (configure.ac): Bump version number.
12873         * modules/unistr/u32-strcoll (Depends-on): Add
12874         uniconv/u32-strconv-to-enc, localcharset. Remove
12875         uniconv/u32-strconv-to-locale.
12876         (configure.ac): Bump version number.
12877
12878 2010-05-24  Bruno Haible  <bruno@clisp.org>
12879
12880         Avoid a test failure on NetBSD 5.0.
12881         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12882         an iconv() bug.
12883
12884 2010-05-24  Bruno Haible  <bruno@clisp.org>
12885
12886         Adjust #include directive style.
12887         * modules/regex (Includes): Recommend to write <regex.h>.
12888
12889 2010-05-24  Bruno Haible  <bruno@clisp.org>
12890
12891         regex: Don't require alloca.
12892         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12893         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12894         only inside if (0).
12895
12896 2010-05-23  Jim Meyering  <meyering@redhat.com>
12897
12898         test-renameat.c: include <sys/stat.h>
12899         * tests/test-renameat.c: Include <sys/stat.h>; required for
12900         definition of S_IS* macros.
12901
12902 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12903
12904         Update maintainer documentation for 'relocatable-prog' module.
12905         * doc/relocatable-maint.texi: Update.
12906         Comments by Bruno Haible.
12907
12908 2010-05-23  Bruno Haible  <bruno@clisp.org>
12909
12910         git-merge-changelog: Enable --split-merged-entry by default.
12911         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12912         (usage): Don't mention this option any more.
12913         Reported by Ralf Wildenhues.
12914
12915 2010-05-23  Jim Meyering  <meyering@redhat.com>
12916
12917         test-pwrite: do not leave behind a test file named "out"
12918         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12919         The trivial-looking use of init.sh is really necessary.
12920         It ensures that the temporary file, "out", is created in
12921         a temporary directory, and removed upon termination.
12922         * tests/test-pwrite.sh: Re-add file.
12923         * modules/pwrite-tests: Reference it.
12924
12925 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12926
12927         Fix output redirection buglet in init.sh.
12928         * tests/init.sh: Fix redirection of stderr.
12929
12930 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12931
12932         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12933
12934 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12935
12936         * modules/valgrind-tests: New file.
12937         * m4/valgrind-tests.m4: New file.
12938         * doc/valgrind-tests.texi: New file.
12939         * doc/gnulib.texi (Running self-tests under valgrind): New
12940         section.
12941
12942 2010-05-19  Bruno Haible  <bruno@clisp.org>
12943
12944         Clean up dead code in recent commit.
12945         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12946         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12947         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12948         Suggested by Paolo Bonzini.
12949
12950 2010-05-19  Bruno Haible  <bruno@clisp.org>
12951
12952         Avoid valgrind error reports from libunistring.
12953         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12954         * modules/libunistring (Files): Add it.
12955         * modules/libunistring-optional (Files): Likewise.
12956
12957 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12958             Bruno Haible  <bruno@clisp.org>
12959
12960         New module 'libunistring-optional'.
12961         * modules/libunistring-optional: New file.
12962         * m4/libunistring-base.m4: New file.
12963         * m4/libunistring-optional.m4: New file.
12964         * lib/unicase.in.h: Renamed from lib/unicase.h.
12965         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12966         * lib/unictype.in.h: Renamed from lib/unictype.h.
12967         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12968         * lib/uniname.in.h: Renamed from lib/uniname.h.
12969         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12970         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12971         * lib/unistr.in.h: Renamed from lib/unistr.h.
12972         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12973         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12974         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12975         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12976         gl_LIBUNISTRING. If the library was found, determine the installed
12977         version and set LIBUNISTRING_VERSION.
12978         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12979         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12980         handle a configuration option --with-included-libunistring.
12981         * modules/libunistring (Files): Add m4/absolute-header.m4.
12982         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12983         Add m4/libunistring-base.m4.
12984         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12985         (Makefile.am): Build unicase.h from unicase.in.h.
12986         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12987         Add m4/libunistring-base.m4.
12988         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12989         (Makefile.am): Build uniconv.h from uniconv.in.h.
12990         * modules/unictype/base (Files): Use unictype.in.h instead of
12991         unictype.h. Add m4/libunistring-base.m4.
12992         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12993         (Makefile.am): Build unictype.h from unictype.in.h.
12994         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12995         Add m4/libunistring-base.m4.
12996         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12997         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12998         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12999         Add m4/libunistring-base.m4.
13000         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13001         (Makefile.am): Build uniname.h from uniname.in.h.
13002         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13003         Add m4/libunistring-base.m4.
13004         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13005         (Makefile.am): Build uninorm.h from uninorm.in.h.
13006         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13007         unistdio.h. Add m4/libunistring-base.m4.
13008         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13009         (Makefile.am): Build unistdio.h from unistdio.in.h.
13010         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13011         Add m4/libunistring-base.m4.
13012         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13013         (Makefile.am): Build unistr.h from unistr.in.h.
13014         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13015         Add m4/libunistring-base.m4.
13016         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13017         (Makefile.am): Build unitypes.h from unitypes.in.h.
13018         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13019         Add m4/libunistring-base.m4.
13020         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13021         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13022         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13023         uniwidth.h. Add m4/libunistring-base.m4.
13024         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13025         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13026         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13027         instead of augmenting lib_SOURCES.
13028         * modules/unicase/empty-suffix-context: Likewise.
13029         * modules/unicase/locale-language: Likewise.
13030         * modules/unicase/tolower: Likewise.
13031         * modules/unicase/totitle: Likewise.
13032         * modules/unicase/toupper: Likewise.
13033         * modules/unicase/u8-casecmp: Likewise.
13034         * modules/unicase/u8-casecoll: Likewise.
13035         * modules/unicase/u8-casefold: Likewise.
13036         * modules/unicase/u8-casexfrm: Likewise.
13037         * modules/unicase/u8-ct-casefold: Likewise.
13038         * modules/unicase/u8-ct-tolower: Likewise.
13039         * modules/unicase/u8-ct-totitle: Likewise.
13040         * modules/unicase/u8-ct-toupper: Likewise.
13041         * modules/unicase/u8-is-cased: Likewise.
13042         * modules/unicase/u8-is-casefolded: Likewise.
13043         * modules/unicase/u8-is-lowercase: Likewise.
13044         * modules/unicase/u8-is-titlecase: Likewise.
13045         * modules/unicase/u8-is-uppercase: Likewise.
13046         * modules/unicase/u8-prefix-context: Likewise.
13047         * modules/unicase/u8-suffix-context: Likewise.
13048         * modules/unicase/u8-tolower: Likewise.
13049         * modules/unicase/u8-totitle: Likewise.
13050         * modules/unicase/u8-toupper: Likewise.
13051         * modules/unicase/u16-casecmp: Likewise.
13052         * modules/unicase/u16-casecoll: Likewise.
13053         * modules/unicase/u16-casefold: Likewise.
13054         * modules/unicase/u16-casexfrm: Likewise.
13055         * modules/unicase/u16-ct-casefold: Likewise.
13056         * modules/unicase/u16-ct-tolower: Likewise.
13057         * modules/unicase/u16-ct-totitle: Likewise.
13058         * modules/unicase/u16-ct-toupper: Likewise.
13059         * modules/unicase/u16-is-cased: Likewise.
13060         * modules/unicase/u16-is-casefolded: Likewise.
13061         * modules/unicase/u16-is-lowercase: Likewise.
13062         * modules/unicase/u16-is-titlecase: Likewise.
13063         * modules/unicase/u16-is-uppercase: Likewise.
13064         * modules/unicase/u16-prefix-context: Likewise.
13065         * modules/unicase/u16-suffix-context: Likewise.
13066         * modules/unicase/u16-tolower: Likewise.
13067         * modules/unicase/u16-totitle: Likewise.
13068         * modules/unicase/u16-toupper: Likewise.
13069         * modules/unicase/u32-casecmp: Likewise.
13070         * modules/unicase/u32-casecoll: Likewise.
13071         * modules/unicase/u32-casefold: Likewise.
13072         * modules/unicase/u32-casexfrm: Likewise.
13073         * modules/unicase/u32-ct-casefold: Likewise.
13074         * modules/unicase/u32-ct-tolower: Likewise.
13075         * modules/unicase/u32-ct-totitle: Likewise.
13076         * modules/unicase/u32-ct-toupper: Likewise.
13077         * modules/unicase/u32-is-cased: Likewise.
13078         * modules/unicase/u32-is-casefolded: Likewise.
13079         * modules/unicase/u32-is-lowercase: Likewise.
13080         * modules/unicase/u32-is-titlecase: Likewise.
13081         * modules/unicase/u32-is-uppercase: Likewise.
13082         * modules/unicase/u32-prefix-context: Likewise.
13083         * modules/unicase/u32-suffix-context: Likewise.
13084         * modules/unicase/u32-tolower: Likewise.
13085         * modules/unicase/u32-totitle: Likewise.
13086         * modules/unicase/u32-toupper: Likewise.
13087         * modules/unicase/ulc-casecmp: Likewise.
13088         * modules/unicase/ulc-casecoll: Likewise.
13089         * modules/unicase/ulc-casexfrm: Likewise.
13090         * modules/uniconv/u8-conv-from-enc: Likewise.
13091         * modules/uniconv/u8-conv-to-enc: Likewise.
13092         * modules/uniconv/u8-strconv-from-enc: Likewise.
13093         * modules/uniconv/u8-strconv-from-locale: Likewise.
13094         * modules/uniconv/u8-strconv-to-enc: Likewise.
13095         * modules/uniconv/u8-strconv-to-locale: Likewise.
13096         * modules/uniconv/u16-conv-from-enc: Likewise.
13097         * modules/uniconv/u16-conv-to-enc: Likewise.
13098         * modules/uniconv/u16-strconv-from-enc: Likewise.
13099         * modules/uniconv/u16-strconv-from-locale: Likewise.
13100         * modules/uniconv/u16-strconv-to-enc: Likewise.
13101         * modules/uniconv/u16-strconv-to-locale: Likewise.
13102         * modules/uniconv/u32-conv-from-enc: Likewise.
13103         * modules/uniconv/u32-conv-to-enc: Likewise.
13104         * modules/uniconv/u32-strconv-from-enc: Likewise.
13105         * modules/uniconv/u32-strconv-from-locale: Likewise.
13106         * modules/uniconv/u32-strconv-to-enc: Likewise.
13107         * modules/uniconv/u32-strconv-to-locale: Likewise.
13108         * modules/unictype/bidicategory-byname: Likewise.
13109         * modules/unictype/bidicategory-name: Likewise.
13110         * modules/unictype/bidicategory-of: Likewise.
13111         * modules/unictype/bidicategory-test: Likewise.
13112         * modules/unictype/block-list: Likewise.
13113         * modules/unictype/block-test: Likewise.
13114         * modules/unictype/category-C: Likewise.
13115         * modules/unictype/category-Cc: Likewise.
13116         * modules/unictype/category-Cf: Likewise.
13117         * modules/unictype/category-Cn: Likewise.
13118         * modules/unictype/category-Co: Likewise.
13119         * modules/unictype/category-Cs: Likewise.
13120         * modules/unictype/category-L: Likewise.
13121         * modules/unictype/category-Ll: Likewise.
13122         * modules/unictype/category-Lm: Likewise.
13123         * modules/unictype/category-Lo: Likewise.
13124         * modules/unictype/category-Lt: Likewise.
13125         * modules/unictype/category-Lu: Likewise.
13126         * modules/unictype/category-M: Likewise.
13127         * modules/unictype/category-Mc: Likewise.
13128         * modules/unictype/category-Me: Likewise.
13129         * modules/unictype/category-Mn: Likewise.
13130         * modules/unictype/category-N: Likewise.
13131         * modules/unictype/category-Nd: Likewise.
13132         * modules/unictype/category-Nl: Likewise.
13133         * modules/unictype/category-No: Likewise.
13134         * modules/unictype/category-P: Likewise.
13135         * modules/unictype/category-Pc: Likewise.
13136         * modules/unictype/category-Pd: Likewise.
13137         * modules/unictype/category-Pe: Likewise.
13138         * modules/unictype/category-Pf: Likewise.
13139         * modules/unictype/category-Pi: Likewise.
13140         * modules/unictype/category-Po: Likewise.
13141         * modules/unictype/category-Ps: Likewise.
13142         * modules/unictype/category-S: Likewise.
13143         * modules/unictype/category-Sc: Likewise.
13144         * modules/unictype/category-Sk: Likewise.
13145         * modules/unictype/category-Sm: Likewise.
13146         * modules/unictype/category-So: Likewise.
13147         * modules/unictype/category-Z: Likewise.
13148         * modules/unictype/category-Zl: Likewise.
13149         * modules/unictype/category-Zp: Likewise.
13150         * modules/unictype/category-Zs: Likewise.
13151         * modules/unictype/category-and: Likewise.
13152         * modules/unictype/category-and-not: Likewise.
13153         * modules/unictype/category-byname: Likewise.
13154         * modules/unictype/category-name: Likewise.
13155         * modules/unictype/category-none: Likewise.
13156         * modules/unictype/category-of: Likewise.
13157         * modules/unictype/category-or: Likewise.
13158         * modules/unictype/category-test: Likewise.
13159         * modules/unictype/combining-class: Likewise.
13160         * modules/unictype/ctype-alnum: Likewise.
13161         * modules/unictype/ctype-alpha: Likewise.
13162         * modules/unictype/ctype-blank: Likewise.
13163         * modules/unictype/ctype-cntrl: Likewise.
13164         * modules/unictype/ctype-digit: Likewise.
13165         * modules/unictype/ctype-graph: Likewise.
13166         * modules/unictype/ctype-lower: Likewise.
13167         * modules/unictype/ctype-print: Likewise.
13168         * modules/unictype/ctype-punct: Likewise.
13169         * modules/unictype/ctype-space: Likewise.
13170         * modules/unictype/ctype-upper: Likewise.
13171         * modules/unictype/ctype-xdigit: Likewise.
13172         * modules/unictype/decimal-digit: Likewise.
13173         * modules/unictype/digit: Likewise.
13174         * modules/unictype/mirror: Likewise.
13175         * modules/unictype/numeric: Likewise.
13176         * modules/unictype/property-alphabetic: Likewise.
13177         * modules/unictype/property-ascii-hex-digit: Likewise.
13178         * modules/unictype/property-bidi-arabic-digit: Likewise.
13179         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13180         * modules/unictype/property-bidi-block-separator: Likewise.
13181         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13182         * modules/unictype/property-bidi-common-separator: Likewise.
13183         * modules/unictype/property-bidi-control: Likewise.
13184         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13185         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13186         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13187         * modules/unictype/property-bidi-european-digit: Likewise.
13188         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13189         * modules/unictype/property-bidi-left-to-right: Likewise.
13190         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13191         * modules/unictype/property-bidi-other-neutral: Likewise.
13192         * modules/unictype/property-bidi-pdf: Likewise.
13193         * modules/unictype/property-bidi-segment-separator: Likewise.
13194         * modules/unictype/property-bidi-whitespace: Likewise.
13195         * modules/unictype/property-byname: Likewise.
13196         * modules/unictype/property-combining: Likewise.
13197         * modules/unictype/property-composite: Likewise.
13198         * modules/unictype/property-currency-symbol: Likewise.
13199         * modules/unictype/property-dash: Likewise.
13200         * modules/unictype/property-decimal-digit: Likewise.
13201         * modules/unictype/property-default-ignorable-code-point: Likewise.
13202         * modules/unictype/property-deprecated: Likewise.
13203         * modules/unictype/property-diacritic: Likewise.
13204         * modules/unictype/property-extender: Likewise.
13205         * modules/unictype/property-format-control: Likewise.
13206         * modules/unictype/property-grapheme-base: Likewise.
13207         * modules/unictype/property-grapheme-extend: Likewise.
13208         * modules/unictype/property-grapheme-link: Likewise.
13209         * modules/unictype/property-hex-digit: Likewise.
13210         * modules/unictype/property-hyphen: Likewise.
13211         * modules/unictype/property-id-continue: Likewise.
13212         * modules/unictype/property-id-start: Likewise.
13213         * modules/unictype/property-ideographic: Likewise.
13214         * modules/unictype/property-ids-binary-operator: Likewise.
13215         * modules/unictype/property-ids-trinary-operator: Likewise.
13216         * modules/unictype/property-ignorable-control: Likewise.
13217         * modules/unictype/property-iso-control: Likewise.
13218         * modules/unictype/property-join-control: Likewise.
13219         * modules/unictype/property-left-of-pair: Likewise.
13220         * modules/unictype/property-line-separator: Likewise.
13221         * modules/unictype/property-logical-order-exception: Likewise.
13222         * modules/unictype/property-lowercase: Likewise.
13223         * modules/unictype/property-math: Likewise.
13224         * modules/unictype/property-non-break: Likewise.
13225         * modules/unictype/property-not-a-character: Likewise.
13226         * modules/unictype/property-numeric: Likewise.
13227         * modules/unictype/property-other-alphabetic: Likewise.
13228         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13229         * modules/unictype/property-other-grapheme-extend: Likewise.
13230         * modules/unictype/property-other-id-continue: Likewise.
13231         * modules/unictype/property-other-id-start: Likewise.
13232         * modules/unictype/property-other-lowercase: Likewise.
13233         * modules/unictype/property-other-math: Likewise.
13234         * modules/unictype/property-other-uppercase: Likewise.
13235         * modules/unictype/property-paired-punctuation: Likewise.
13236         * modules/unictype/property-paragraph-separator: Likewise.
13237         * modules/unictype/property-pattern-syntax: Likewise.
13238         * modules/unictype/property-pattern-white-space: Likewise.
13239         * modules/unictype/property-private-use: Likewise.
13240         * modules/unictype/property-punctuation: Likewise.
13241         * modules/unictype/property-quotation-mark: Likewise.
13242         * modules/unictype/property-radical: Likewise.
13243         * modules/unictype/property-sentence-terminal: Likewise.
13244         * modules/unictype/property-soft-dotted: Likewise.
13245         * modules/unictype/property-space: Likewise.
13246         * modules/unictype/property-terminal-punctuation: Likewise.
13247         * modules/unictype/property-test: Likewise.
13248         * modules/unictype/property-titlecase: Likewise.
13249         * modules/unictype/property-unassigned-code-value: Likewise.
13250         * modules/unictype/property-unified-ideograph: Likewise.
13251         * modules/unictype/property-uppercase: Likewise.
13252         * modules/unictype/property-variation-selector: Likewise.
13253         * modules/unictype/property-white-space: Likewise.
13254         * modules/unictype/property-xid-continue: Likewise.
13255         * modules/unictype/property-xid-start: Likewise.
13256         * modules/unictype/property-zero-width: Likewise.
13257         * modules/unictype/scripts: Likewise.
13258         * modules/unictype/syntax-c-ident: Likewise.
13259         * modules/unictype/syntax-c-whitespace: Likewise.
13260         * modules/unictype/syntax-java-ident: Likewise.
13261         * modules/unictype/syntax-java-whitespace: Likewise.
13262         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13263         * modules/unilbrk/u8-width-linebreaks: Likewise.
13264         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13265         * modules/unilbrk/u16-width-linebreaks: Likewise.
13266         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13267         * modules/unilbrk/u32-width-linebreaks: Likewise.
13268         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13269         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13270         * modules/uniname/uniname: Likewise.
13271         * modules/uninorm/canonical-decomposition: Likewise.
13272         * modules/uninorm/composition: Likewise.
13273         * modules/uninorm/decomposing-form: Likewise.
13274         * modules/uninorm/decomposition: Likewise.
13275         * modules/uninorm/filter: Likewise.
13276         * modules/uninorm/nfc: Likewise.
13277         * modules/uninorm/nfd: Likewise.
13278         * modules/uninorm/nfkc: Likewise.
13279         * modules/uninorm/nfkd: Likewise.
13280         * modules/uninorm/u8-normalize: Likewise.
13281         * modules/uninorm/u8-normcmp: Likewise.
13282         * modules/uninorm/u8-normcoll: Likewise.
13283         * modules/uninorm/u8-normxfrm: Likewise.
13284         * modules/uninorm/u16-normalize: Likewise.
13285         * modules/uninorm/u16-normcmp: Likewise.
13286         * modules/uninorm/u16-normcoll: Likewise.
13287         * modules/uninorm/u16-normxfrm: Likewise.
13288         * modules/uninorm/u32-normalize: Likewise.
13289         * modules/uninorm/u32-normcmp: Likewise.
13290         * modules/uninorm/u32-normcoll: Likewise.
13291         * modules/uninorm/u32-normxfrm: Likewise.
13292         * modules/unistdio/u8-asnprintf: Likewise.
13293         * modules/unistdio/u8-asprintf: Likewise.
13294         * modules/unistdio/u8-snprintf: Likewise.
13295         * modules/unistdio/u8-sprintf: Likewise.
13296         * modules/unistdio/u8-u8-asnprintf: Likewise.
13297         * modules/unistdio/u8-u8-asprintf: Likewise.
13298         * modules/unistdio/u8-u8-snprintf: Likewise.
13299         * modules/unistdio/u8-u8-sprintf: Likewise.
13300         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13301         * modules/unistdio/u8-u8-vasprintf: Likewise.
13302         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13303         * modules/unistdio/u8-u8-vsprintf: Likewise.
13304         * modules/unistdio/u8-vasnprintf: Likewise.
13305         * modules/unistdio/u8-vasprintf: Likewise.
13306         * modules/unistdio/u8-vsnprintf: Likewise.
13307         * modules/unistdio/u8-vsprintf: Likewise.
13308         * modules/unistdio/u16-asnprintf: Likewise.
13309         * modules/unistdio/u16-asprintf: Likewise.
13310         * modules/unistdio/u16-snprintf: Likewise.
13311         * modules/unistdio/u16-sprintf: Likewise.
13312         * modules/unistdio/u16-u16-asnprintf: Likewise.
13313         * modules/unistdio/u16-u16-asprintf: Likewise.
13314         * modules/unistdio/u16-u16-snprintf: Likewise.
13315         * modules/unistdio/u16-u16-sprintf: Likewise.
13316         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13317         * modules/unistdio/u16-u16-vasprintf: Likewise.
13318         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13319         * modules/unistdio/u16-u16-vsprintf: Likewise.
13320         * modules/unistdio/u16-vasnprintf: Likewise.
13321         * modules/unistdio/u16-vasprintf: Likewise.
13322         * modules/unistdio/u16-vsnprintf: Likewise.
13323         * modules/unistdio/u16-vsprintf: Likewise.
13324         * modules/unistdio/u32-asnprintf: Likewise.
13325         * modules/unistdio/u32-asprintf: Likewise.
13326         * modules/unistdio/u32-snprintf: Likewise.
13327         * modules/unistdio/u32-sprintf: Likewise.
13328         * modules/unistdio/u32-u32-asnprintf: Likewise.
13329         * modules/unistdio/u32-u32-asprintf: Likewise.
13330         * modules/unistdio/u32-u32-snprintf: Likewise.
13331         * modules/unistdio/u32-u32-sprintf: Likewise.
13332         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13333         * modules/unistdio/u32-u32-vasprintf: Likewise.
13334         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13335         * modules/unistdio/u32-u32-vsprintf: Likewise.
13336         * modules/unistdio/u32-vasnprintf: Likewise.
13337         * modules/unistdio/u32-vasprintf: Likewise.
13338         * modules/unistdio/u32-vsnprintf: Likewise.
13339         * modules/unistdio/u32-vsprintf: Likewise.
13340         * modules/unistdio/ulc-asnprintf: Likewise.
13341         * modules/unistdio/ulc-asprintf: Likewise.
13342         * modules/unistdio/ulc-fprintf: Likewise.
13343         * modules/unistdio/ulc-snprintf: Likewise.
13344         * modules/unistdio/ulc-sprintf: Likewise.
13345         * modules/unistdio/ulc-vasnprintf: Likewise.
13346         * modules/unistdio/ulc-vasprintf: Likewise.
13347         * modules/unistdio/ulc-vfprintf: Likewise.
13348         * modules/unistdio/ulc-vsnprintf: Likewise.
13349         * modules/unistdio/ulc-vsprintf: Likewise.
13350         * modules/unistr/u8-check: Likewise.
13351         * modules/unistr/u8-chr: Likewise.
13352         * modules/unistr/u8-cmp: Likewise.
13353         * modules/unistr/u8-cmp2: Likewise.
13354         * modules/unistr/u8-cpy: Likewise.
13355         * modules/unistr/u8-cpy-alloc: Likewise.
13356         * modules/unistr/u8-endswith: Likewise.
13357         * modules/unistr/u8-mblen: Likewise.
13358         * modules/unistr/u8-mbsnlen: Likewise.
13359         * modules/unistr/u8-mbtouc: Likewise.
13360         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13361         * modules/unistr/u8-mbtoucr: Likewise.
13362         * modules/unistr/u8-move: Likewise.
13363         * modules/unistr/u8-next: Likewise.
13364         * modules/unistr/u8-prev: Likewise.
13365         * modules/unistr/u8-set: Likewise.
13366         * modules/unistr/u8-startswith: Likewise.
13367         * modules/unistr/u8-stpcpy: Likewise.
13368         * modules/unistr/u8-stpncpy: Likewise.
13369         * modules/unistr/u8-strcat: Likewise.
13370         * modules/unistr/u8-strchr: Likewise.
13371         * modules/unistr/u8-strcmp: Likewise.
13372         * modules/unistr/u8-strcoll: Likewise.
13373         * modules/unistr/u8-strcpy: Likewise.
13374         * modules/unistr/u8-strcspn: Likewise.
13375         * modules/unistr/u8-strdup: Likewise.
13376         * modules/unistr/u8-strlen: Likewise.
13377         * modules/unistr/u8-strmblen: Likewise.
13378         * modules/unistr/u8-strmbtouc: Likewise.
13379         * modules/unistr/u8-strncat: Likewise.
13380         * modules/unistr/u8-strncmp: Likewise.
13381         * modules/unistr/u8-strncpy: Likewise.
13382         * modules/unistr/u8-strnlen: Likewise.
13383         * modules/unistr/u8-strpbrk: Likewise.
13384         * modules/unistr/u8-strrchr: Likewise.
13385         * modules/unistr/u8-strspn: Likewise.
13386         * modules/unistr/u8-strstr: Likewise.
13387         * modules/unistr/u8-strtok: Likewise.
13388         * modules/unistr/u8-to-u16: Likewise.
13389         * modules/unistr/u8-to-u32: Likewise.
13390         * modules/unistr/u8-uctomb: Likewise.
13391         * modules/unistr/u16-check: Likewise.
13392         * modules/unistr/u16-chr: Likewise.
13393         * modules/unistr/u16-cmp: Likewise.
13394         * modules/unistr/u16-cmp2: Likewise.
13395         * modules/unistr/u16-cpy: Likewise.
13396         * modules/unistr/u16-cpy-alloc: Likewise.
13397         * modules/unistr/u16-endswith: Likewise.
13398         * modules/unistr/u16-mblen: Likewise.
13399         * modules/unistr/u16-mbsnlen: Likewise.
13400         * modules/unistr/u16-mbtouc: Likewise.
13401         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13402         * modules/unistr/u16-mbtoucr: Likewise.
13403         * modules/unistr/u16-move: Likewise.
13404         * modules/unistr/u16-next: Likewise.
13405         * modules/unistr/u16-prev: Likewise.
13406         * modules/unistr/u16-set: Likewise.
13407         * modules/unistr/u16-startswith: Likewise.
13408         * modules/unistr/u16-stpcpy: Likewise.
13409         * modules/unistr/u16-stpncpy: Likewise.
13410         * modules/unistr/u16-strcat: Likewise.
13411         * modules/unistr/u16-strchr: Likewise.
13412         * modules/unistr/u16-strcmp: Likewise.
13413         * modules/unistr/u16-strcoll: Likewise.
13414         * modules/unistr/u16-strcpy: Likewise.
13415         * modules/unistr/u16-strcspn: Likewise.
13416         * modules/unistr/u16-strdup: Likewise.
13417         * modules/unistr/u16-strlen: Likewise.
13418         * modules/unistr/u16-strmblen: Likewise.
13419         * modules/unistr/u16-strmbtouc: Likewise.
13420         * modules/unistr/u16-strncat: Likewise.
13421         * modules/unistr/u16-strncmp: Likewise.
13422         * modules/unistr/u16-strncpy: Likewise.
13423         * modules/unistr/u16-strnlen: Likewise.
13424         * modules/unistr/u16-strpbrk: Likewise.
13425         * modules/unistr/u16-strrchr: Likewise.
13426         * modules/unistr/u16-strspn: Likewise.
13427         * modules/unistr/u16-strstr: Likewise.
13428         * modules/unistr/u16-strtok: Likewise.
13429         * modules/unistr/u16-to-u32: Likewise.
13430         * modules/unistr/u16-to-u8: Likewise.
13431         * modules/unistr/u16-uctomb: Likewise.
13432         * modules/unistr/u32-check: Likewise.
13433         * modules/unistr/u32-chr: Likewise.
13434         * modules/unistr/u32-cmp: Likewise.
13435         * modules/unistr/u32-cmp2: Likewise.
13436         * modules/unistr/u32-cpy: Likewise.
13437         * modules/unistr/u32-cpy-alloc: Likewise.
13438         * modules/unistr/u32-endswith: Likewise.
13439         * modules/unistr/u32-mblen: Likewise.
13440         * modules/unistr/u32-mbsnlen: Likewise.
13441         * modules/unistr/u32-mbtouc: Likewise.
13442         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13443         * modules/unistr/u32-mbtoucr: Likewise.
13444         * modules/unistr/u32-move: Likewise.
13445         * modules/unistr/u32-next: Likewise.
13446         * modules/unistr/u32-prev: Likewise.
13447         * modules/unistr/u32-set: Likewise.
13448         * modules/unistr/u32-startswith: Likewise.
13449         * modules/unistr/u32-stpcpy: Likewise.
13450         * modules/unistr/u32-stpncpy: Likewise.
13451         * modules/unistr/u32-strcat: Likewise.
13452         * modules/unistr/u32-strchr: Likewise.
13453         * modules/unistr/u32-strcmp: Likewise.
13454         * modules/unistr/u32-strcoll: Likewise.
13455         * modules/unistr/u32-strcpy: Likewise.
13456         * modules/unistr/u32-strcspn: Likewise.
13457         * modules/unistr/u32-strdup: Likewise.
13458         * modules/unistr/u32-strlen: Likewise.
13459         * modules/unistr/u32-strmblen: Likewise.
13460         * modules/unistr/u32-strmbtouc: Likewise.
13461         * modules/unistr/u32-strncat: Likewise.
13462         * modules/unistr/u32-strncmp: Likewise.
13463         * modules/unistr/u32-strncpy: Likewise.
13464         * modules/unistr/u32-strnlen: Likewise.
13465         * modules/unistr/u32-strpbrk: Likewise.
13466         * modules/unistr/u32-strrchr: Likewise.
13467         * modules/unistr/u32-strspn: Likewise.
13468         * modules/unistr/u32-strstr: Likewise.
13469         * modules/unistr/u32-strtok: Likewise.
13470         * modules/unistr/u32-to-u16: Likewise.
13471         * modules/unistr/u32-to-u8: Likewise.
13472         * modules/unistr/u32-uctomb: Likewise.
13473         * modules/uniwbrk/u8-wordbreaks: Likewise.
13474         * modules/uniwbrk/u16-wordbreaks: Likewise.
13475         * modules/uniwbrk/u32-wordbreaks: Likewise.
13476         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13477         * modules/uniwbrk/wordbreak-property: Likewise.
13478         * modules/uniwidth/u8-strwidth: Likewise.
13479         * modules/uniwidth/u8-width: Likewise.
13480         * modules/uniwidth/u16-strwidth: Likewise.
13481         * modules/uniwidth/u16-width: Likewise.
13482         * modules/uniwidth/u32-strwidth: Likewise.
13483         * modules/uniwidth/u32-width: Likewise.
13484         * modules/uniwidth/width: Likewise.
13485         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13486         with $(LIBUNISTRING).
13487         * modules/unicase/ignorable-tests: Likewise.
13488         * modules/unicase/locale-language-tests: Likewise.
13489         * modules/unicase/tolower-tests: Likewise.
13490         * modules/unicase/totitle-tests: Likewise.
13491         * modules/unicase/toupper-tests: Likewise.
13492         * modules/unicase/u8-casecmp-tests: Likewise.
13493         * modules/unicase/u8-casecoll-tests: Likewise.
13494         * modules/unicase/u8-casefold-tests: Likewise.
13495         * modules/unicase/u8-is-cased-tests: Likewise.
13496         * modules/unicase/u8-is-casefolded-tests: Likewise.
13497         * modules/unicase/u8-is-lowercase-tests: Likewise.
13498         * modules/unicase/u8-is-titlecase-tests: Likewise.
13499         * modules/unicase/u8-is-uppercase-tests: Likewise.
13500         * modules/unicase/u8-tolower-tests: Likewise.
13501         * modules/unicase/u8-totitle-tests: Likewise.
13502         * modules/unicase/u8-toupper-tests: Likewise.
13503         * modules/unicase/u16-casecmp-tests: Likewise.
13504         * modules/unicase/u16-casecoll-tests: Likewise.
13505         * modules/unicase/u16-casefold-tests: Likewise.
13506         * modules/unicase/u16-is-cased-tests: Likewise.
13507         * modules/unicase/u16-is-casefolded-tests: Likewise.
13508         * modules/unicase/u16-is-lowercase-tests: Likewise.
13509         * modules/unicase/u16-is-titlecase-tests: Likewise.
13510         * modules/unicase/u16-is-uppercase-tests: Likewise.
13511         * modules/unicase/u16-tolower-tests: Likewise.
13512         * modules/unicase/u16-totitle-tests: Likewise.
13513         * modules/unicase/u16-toupper-tests: Likewise.
13514         * modules/unicase/u32-casecmp-tests: Likewise.
13515         * modules/unicase/u32-casecoll-tests: Likewise.
13516         * modules/unicase/u32-casefold-tests: Likewise.
13517         * modules/unicase/u32-is-cased-tests: Likewise.
13518         * modules/unicase/u32-is-casefolded-tests: Likewise.
13519         * modules/unicase/u32-is-lowercase-tests: Likewise.
13520         * modules/unicase/u32-is-titlecase-tests: Likewise.
13521         * modules/unicase/u32-is-uppercase-tests: Likewise.
13522         * modules/unicase/u32-tolower-tests: Likewise.
13523         * modules/unicase/u32-totitle-tests: Likewise.
13524         * modules/unicase/u32-toupper-tests: Likewise.
13525         * modules/unicase/ulc-casecmp-tests: Likewise.
13526         * modules/unicase/ulc-casecoll-tests: Likewise.
13527         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13528         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13529         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13530         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13531         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13532         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13533         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13534         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13535         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13536         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13537         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13538         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13539         * modules/unictype/bidicategory-byname-tests: Likewise.
13540         * modules/unictype/bidicategory-name-tests: Likewise.
13541         * modules/unictype/bidicategory-of-tests: Likewise.
13542         * modules/unictype/bidicategory-test-tests: Likewise.
13543         * modules/unictype/block-list-tests: Likewise.
13544         * modules/unictype/block-of-tests: Likewise.
13545         * modules/unictype/block-test-tests: Likewise.
13546         * modules/unictype/category-C-tests: Likewise.
13547         * modules/unictype/category-Cc-tests: Likewise.
13548         * modules/unictype/category-Cf-tests: Likewise.
13549         * modules/unictype/category-Cn-tests: Likewise.
13550         * modules/unictype/category-Co-tests: Likewise.
13551         * modules/unictype/category-Cs-tests: Likewise.
13552         * modules/unictype/category-L-tests: Likewise.
13553         * modules/unictype/category-Ll-tests: Likewise.
13554         * modules/unictype/category-Lm-tests: Likewise.
13555         * modules/unictype/category-Lo-tests: Likewise.
13556         * modules/unictype/category-Lt-tests: Likewise.
13557         * modules/unictype/category-Lu-tests: Likewise.
13558         * modules/unictype/category-M-tests: Likewise.
13559         * modules/unictype/category-Mc-tests: Likewise.
13560         * modules/unictype/category-Me-tests: Likewise.
13561         * modules/unictype/category-Mn-tests: Likewise.
13562         * modules/unictype/category-N-tests: Likewise.
13563         * modules/unictype/category-Nd-tests: Likewise.
13564         * modules/unictype/category-Nl-tests: Likewise.
13565         * modules/unictype/category-No-tests: Likewise.
13566         * modules/unictype/category-P-tests: Likewise.
13567         * modules/unictype/category-Pc-tests: Likewise.
13568         * modules/unictype/category-Pd-tests: Likewise.
13569         * modules/unictype/category-Pe-tests: Likewise.
13570         * modules/unictype/category-Pf-tests: Likewise.
13571         * modules/unictype/category-Pi-tests: Likewise.
13572         * modules/unictype/category-Po-tests: Likewise.
13573         * modules/unictype/category-Ps-tests: Likewise.
13574         * modules/unictype/category-S-tests: Likewise.
13575         * modules/unictype/category-Sc-tests: Likewise.
13576         * modules/unictype/category-Sk-tests: Likewise.
13577         * modules/unictype/category-Sm-tests: Likewise.
13578         * modules/unictype/category-So-tests: Likewise.
13579         * modules/unictype/category-Z-tests: Likewise.
13580         * modules/unictype/category-Zl-tests: Likewise.
13581         * modules/unictype/category-Zp-tests: Likewise.
13582         * modules/unictype/category-Zs-tests: Likewise.
13583         * modules/unictype/category-and-not-tests: Likewise.
13584         * modules/unictype/category-and-tests: Likewise.
13585         * modules/unictype/category-byname-tests: Likewise.
13586         * modules/unictype/category-name-tests: Likewise.
13587         * modules/unictype/category-none-tests: Likewise.
13588         * modules/unictype/category-of-tests: Likewise.
13589         * modules/unictype/category-or-tests: Likewise.
13590         * modules/unictype/category-test-withtable-tests: Likewise.
13591         * modules/unictype/combining-class-tests: Likewise.
13592         * modules/unictype/ctype-alnum-tests: Likewise.
13593         * modules/unictype/ctype-alpha-tests: Likewise.
13594         * modules/unictype/ctype-blank-tests: Likewise.
13595         * modules/unictype/ctype-cntrl-tests: Likewise.
13596         * modules/unictype/ctype-digit-tests: Likewise.
13597         * modules/unictype/ctype-graph-tests: Likewise.
13598         * modules/unictype/ctype-lower-tests: Likewise.
13599         * modules/unictype/ctype-print-tests: Likewise.
13600         * modules/unictype/ctype-punct-tests: Likewise.
13601         * modules/unictype/ctype-space-tests: Likewise.
13602         * modules/unictype/ctype-upper-tests: Likewise.
13603         * modules/unictype/ctype-xdigit-tests: Likewise.
13604         * modules/unictype/decimal-digit-tests: Likewise.
13605         * modules/unictype/digit-tests: Likewise.
13606         * modules/unictype/mirror-tests: Likewise.
13607         * modules/unictype/numeric-tests: Likewise.
13608         * modules/unictype/property-alphabetic-tests: Likewise.
13609         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13610         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13611         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13612         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13613         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13614         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13615         * modules/unictype/property-bidi-control-tests: Likewise.
13616         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13617         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13618         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13619         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13620         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13621         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13622         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13623         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13624         * modules/unictype/property-bidi-pdf-tests: Likewise.
13625         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13626         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13627         * modules/unictype/property-byname-tests: Likewise.
13628         * modules/unictype/property-combining-tests: Likewise.
13629         * modules/unictype/property-composite-tests: Likewise.
13630         * modules/unictype/property-currency-symbol-tests: Likewise.
13631         * modules/unictype/property-dash-tests: Likewise.
13632         * modules/unictype/property-decimal-digit-tests: Likewise.
13633         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13634         * modules/unictype/property-deprecated-tests: Likewise.
13635         * modules/unictype/property-diacritic-tests: Likewise.
13636         * modules/unictype/property-extender-tests: Likewise.
13637         * modules/unictype/property-format-control-tests: Likewise.
13638         * modules/unictype/property-grapheme-base-tests: Likewise.
13639         * modules/unictype/property-grapheme-extend-tests: Likewise.
13640         * modules/unictype/property-grapheme-link-tests: Likewise.
13641         * modules/unictype/property-hex-digit-tests: Likewise.
13642         * modules/unictype/property-hyphen-tests: Likewise.
13643         * modules/unictype/property-id-continue-tests: Likewise.
13644         * modules/unictype/property-id-start-tests: Likewise.
13645         * modules/unictype/property-ideographic-tests: Likewise.
13646         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13647         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13648         * modules/unictype/property-ignorable-control-tests: Likewise.
13649         * modules/unictype/property-iso-control-tests: Likewise.
13650         * modules/unictype/property-join-control-tests: Likewise.
13651         * modules/unictype/property-left-of-pair-tests: Likewise.
13652         * modules/unictype/property-line-separator-tests: Likewise.
13653         * modules/unictype/property-logical-order-exception-tests: Likewise.
13654         * modules/unictype/property-lowercase-tests: Likewise.
13655         * modules/unictype/property-math-tests: Likewise.
13656         * modules/unictype/property-non-break-tests: Likewise.
13657         * modules/unictype/property-not-a-character-tests: Likewise.
13658         * modules/unictype/property-numeric-tests: Likewise.
13659         * modules/unictype/property-other-alphabetic-tests: Likewise.
13660         * modules/unictype/property-other-default-ignorable-code-point-tests:
13661         Likewise.
13662         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13663         * modules/unictype/property-other-id-continue-tests: Likewise.
13664         * modules/unictype/property-other-id-start-tests: Likewise.
13665         * modules/unictype/property-other-lowercase-tests: Likewise.
13666         * modules/unictype/property-other-math-tests: Likewise.
13667         * modules/unictype/property-other-uppercase-tests: Likewise.
13668         * modules/unictype/property-paired-punctuation-tests: Likewise.
13669         * modules/unictype/property-paragraph-separator-tests: Likewise.
13670         * modules/unictype/property-pattern-syntax-tests: Likewise.
13671         * modules/unictype/property-pattern-white-space-tests: Likewise.
13672         * modules/unictype/property-private-use-tests: Likewise.
13673         * modules/unictype/property-punctuation-tests: Likewise.
13674         * modules/unictype/property-quotation-mark-tests: Likewise.
13675         * modules/unictype/property-radical-tests: Likewise.
13676         * modules/unictype/property-sentence-terminal-tests: Likewise.
13677         * modules/unictype/property-soft-dotted-tests: Likewise.
13678         * modules/unictype/property-space-tests: Likewise.
13679         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13680         * modules/unictype/property-test-tests: Likewise.
13681         * modules/unictype/property-titlecase-tests: Likewise.
13682         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13683         * modules/unictype/property-unified-ideograph-tests: Likewise.
13684         * modules/unictype/property-uppercase-tests: Likewise.
13685         * modules/unictype/property-variation-selector-tests: Likewise.
13686         * modules/unictype/property-white-space-tests: Likewise.
13687         * modules/unictype/property-xid-continue-tests: Likewise.
13688         * modules/unictype/property-xid-start-tests: Likewise.
13689         * modules/unictype/property-zero-width-tests: Likewise.
13690         * modules/unictype/scripts-tests: Likewise.
13691         * modules/unictype/syntax-c-ident-tests: Likewise.
13692         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13693         * modules/unictype/syntax-java-ident-tests: Likewise.
13694         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13695         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13696         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13697         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13698         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13699         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13700         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13701         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13702         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13703         * modules/uniname/uniname-tests: Likewise.
13704         * modules/uninorm/canonical-decomposition-tests: Likewise.
13705         * modules/uninorm/compat-decomposition-tests: Likewise.
13706         * modules/uninorm/composition-tests: Likewise.
13707         * modules/uninorm/decomposing-form-tests: Likewise.
13708         * modules/uninorm/decomposition-tests: Likewise.
13709         * modules/uninorm/filter-tests: Likewise.
13710         * modules/uninorm/nfc-tests: Likewise.
13711         * modules/uninorm/nfd-tests: Likewise.
13712         * modules/uninorm/nfkc-tests: Likewise.
13713         * modules/uninorm/nfkd-tests: Likewise.
13714         * modules/uninorm/u8-normcmp-tests: Likewise.
13715         * modules/uninorm/u8-normcoll-tests: Likewise.
13716         * modules/uninorm/u16-normcmp-tests: Likewise.
13717         * modules/uninorm/u16-normcoll-tests: Likewise.
13718         * modules/uninorm/u32-normcmp-tests: Likewise.
13719         * modules/uninorm/u32-normcoll-tests: Likewise.
13720         * modules/unistdio/u8-asnprintf-tests: Likewise.
13721         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13722         * modules/unistdio/u8-vasprintf-tests: Likewise.
13723         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13724         * modules/unistdio/u8-vsprintf-tests: Likewise.
13725         * modules/unistdio/u16-asnprintf-tests: Likewise.
13726         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13727         * modules/unistdio/u16-vasprintf-tests: Likewise.
13728         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13729         * modules/unistdio/u16-vsprintf-tests: Likewise.
13730         * modules/unistdio/u32-asnprintf-tests: Likewise.
13731         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13732         * modules/unistdio/u32-vasprintf-tests: Likewise.
13733         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13734         * modules/unistdio/u32-vsprintf-tests: Likewise.
13735         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13736         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13737         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13738         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13739         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13740         * modules/unistr/u8-check-tests: Likewise.
13741         * modules/unistr/u8-chr-tests: Likewise.
13742         * modules/unistr/u8-cmp-tests: Likewise.
13743         * modules/unistr/u8-cmp2-tests: Likewise.
13744         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13745         * modules/unistr/u8-cpy-tests: Likewise.
13746         * modules/unistr/u8-mblen-tests: Likewise.
13747         * modules/unistr/u8-mbsnlen-tests: Likewise.
13748         * modules/unistr/u8-mbtouc-tests: Likewise.
13749         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13750         * modules/unistr/u8-mbtoucr-tests: Likewise.
13751         * modules/unistr/u8-move-tests: Likewise.
13752         * modules/unistr/u8-next-tests: Likewise.
13753         * modules/unistr/u8-prev-tests: Likewise.
13754         * modules/unistr/u8-set-tests: Likewise.
13755         * modules/unistr/u8-stpcpy-tests: Likewise.
13756         * modules/unistr/u8-stpncpy-tests: Likewise.
13757         * modules/unistr/u8-strcat-tests: Likewise.
13758         * modules/unistr/u8-strcmp-tests: Likewise.
13759         * modules/unistr/u8-strcoll-tests: Likewise.
13760         * modules/unistr/u8-strcpy-tests: Likewise.
13761         * modules/unistr/u8-strdup-tests: Likewise.
13762         * modules/unistr/u8-strlen-tests: Likewise.
13763         * modules/unistr/u8-strmblen-tests: Likewise.
13764         * modules/unistr/u8-strmbtouc-tests: Likewise.
13765         * modules/unistr/u8-strncat-tests: Likewise.
13766         * modules/unistr/u8-strncmp-tests: Likewise.
13767         * modules/unistr/u8-strncpy-tests: Likewise.
13768         * modules/unistr/u8-strnlen-tests: Likewise.
13769         * modules/unistr/u8-to-u16-tests: Likewise.
13770         * modules/unistr/u8-to-u32-tests: Likewise.
13771         * modules/unistr/u8-uctomb-tests: Likewise.
13772         * modules/unistr/u16-check-tests: Likewise.
13773         * modules/unistr/u16-chr-tests: Likewise.
13774         * modules/unistr/u16-cmp-tests: Likewise.
13775         * modules/unistr/u16-cmp2-tests: Likewise.
13776         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13777         * modules/unistr/u16-cpy-tests: Likewise.
13778         * modules/unistr/u16-mblen-tests: Likewise.
13779         * modules/unistr/u16-mbsnlen-tests: Likewise.
13780         * modules/unistr/u16-mbtouc-tests: Likewise.
13781         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13782         * modules/unistr/u16-mbtoucr-tests: Likewise.
13783         * modules/unistr/u16-move-tests: Likewise.
13784         * modules/unistr/u16-next-tests: Likewise.
13785         * modules/unistr/u16-prev-tests: Likewise.
13786         * modules/unistr/u16-set-tests: Likewise.
13787         * modules/unistr/u16-stpcpy-tests: Likewise.
13788         * modules/unistr/u16-stpncpy-tests: Likewise.
13789         * modules/unistr/u16-strcat-tests: Likewise.
13790         * modules/unistr/u16-strcmp-tests: Likewise.
13791         * modules/unistr/u16-strcoll-tests: Likewise.
13792         * modules/unistr/u16-strcpy-tests: Likewise.
13793         * modules/unistr/u16-strdup-tests: Likewise.
13794         * modules/unistr/u16-strlen-tests: Likewise.
13795         * modules/unistr/u16-strmblen-tests: Likewise.
13796         * modules/unistr/u16-strmbtouc-tests: Likewise.
13797         * modules/unistr/u16-strncat-tests: Likewise.
13798         * modules/unistr/u16-strncmp-tests: Likewise.
13799         * modules/unistr/u16-strncpy-tests: Likewise.
13800         * modules/unistr/u16-strnlen-tests: Likewise.
13801         * modules/unistr/u16-to-u32-tests: Likewise.
13802         * modules/unistr/u16-to-u8-tests: Likewise.
13803         * modules/unistr/u16-uctomb-tests: Likewise.
13804         * modules/unistr/u32-check-tests: Likewise.
13805         * modules/unistr/u32-chr-tests: Likewise.
13806         * modules/unistr/u32-cmp-tests: Likewise.
13807         * modules/unistr/u32-cmp2-tests: Likewise.
13808         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13809         * modules/unistr/u32-cpy-tests: Likewise.
13810         * modules/unistr/u32-mblen-tests: Likewise.
13811         * modules/unistr/u32-mbsnlen-tests: Likewise.
13812         * modules/unistr/u32-mbtouc-tests: Likewise.
13813         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13814         * modules/unistr/u32-mbtoucr-tests: Likewise.
13815         * modules/unistr/u32-move-tests: Likewise.
13816         * modules/unistr/u32-next-tests: Likewise.
13817         * modules/unistr/u32-prev-tests: Likewise.
13818         * modules/unistr/u32-set-tests: Likewise.
13819         * modules/unistr/u32-stpcpy-tests: Likewise.
13820         * modules/unistr/u32-stpncpy-tests: Likewise.
13821         * modules/unistr/u32-strcat-tests: Likewise.
13822         * modules/unistr/u32-strcmp-tests: Likewise.
13823         * modules/unistr/u32-strcoll-tests: Likewise.
13824         * modules/unistr/u32-strcpy-tests: Likewise.
13825         * modules/unistr/u32-strdup-tests: Likewise.
13826         * modules/unistr/u32-strlen-tests: Likewise.
13827         * modules/unistr/u32-strmblen-tests: Likewise.
13828         * modules/unistr/u32-strmbtouc-tests: Likewise.
13829         * modules/unistr/u32-strncat-tests: Likewise.
13830         * modules/unistr/u32-strncmp-tests: Likewise.
13831         * modules/unistr/u32-strncpy-tests: Likewise.
13832         * modules/unistr/u32-strnlen-tests: Likewise.
13833         * modules/unistr/u32-to-u16-tests: Likewise.
13834         * modules/unistr/u32-to-u8-tests: Likewise.
13835         * modules/unistr/u32-uctomb-tests: Likewise.
13836         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13837         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13838         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13839         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13840         * modules/uniwidth/u8-strwidth-tests: Likewise.
13841         * modules/uniwidth/u8-width-tests: Likewise.
13842         * modules/uniwidth/u16-strwidth-tests: Likewise.
13843         * modules/uniwidth/u16-width-tests: Likewise.
13844         * modules/uniwidth/u32-strwidth-tests: Likewise.
13845         * modules/uniwidth/u32-width-tests: Likewise.
13846         * modules/uniwidth/width-tests: Likewise.
13847
13848 2010-05-18  Richard Jones  <rjones@redhat.com>
13849
13850         doc: users.txt: list hivex
13851         * users.txt: Add hivex.
13852
13853 2010-05-18  Richard Jones  <rjones@redhat.com>
13854
13855         doc: users.txt: list febootstrap
13856         * users.txt: Add febootstrap.
13857
13858 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13859
13860         bootstrap: fix an error when gnulib is not used as a git submodule
13861         * build-aux/bootstrap (gnulib_path): If its length is zero then
13862         assign "gnulib" to it.
13863         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13864
13865 2010-05-16  Bruno Haible  <bruno@clisp.org>
13866
13867         Avoid autoconf warnings about AM_ICONV.
13868         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13869         2.64.
13870
13871 2010-05-16  Bruno Haible  <bruno@clisp.org>
13872
13873         absolute-header: Make the macro usable in more situations.
13874         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13875         from gl_ABSOLUTE_HEADER.
13876         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13877
13878 2010-05-16  James Youngman  <jay@gnu.org>
13879
13880         doc: update users.txt
13881         * users.txt: Add CSSC.
13882
13883 2010-05-16  Jim Meyering  <meyering@redhat.com>
13884
13885         init.sh: fix an error in the previous change; add more comments
13886         * tests/init.sh: Compare exit code in loop against 9, not 2.
13887         Patch by Bruno Haible.
13888         Make the two tests more similar by adding an empty "then" clause.
13889         Add comments.
13890
13891         init.sh: avoid unnecessary shell re-exec
13892         * tests/init.sh: Improve the re-exec-required check to first test the
13893         current shell.  If it passes the test, do not search for a shell that
13894         does pass, and do not re-exec.  This test is particularly contorted to
13895         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13896         of $(...) evokes a syntax error and causes immediate shell exit with
13897         status 2.  Bruno Haible reported that the re-exec made it impossible
13898         to single-step through any init.sh-using script.
13899
13900 2010-05-16  Bruno Haible  <bruno@clisp.org>
13901
13902         Fix collision between gnulib's and libintl's printf replacements.
13903         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13904         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13905         (printf): When using GNU C, map the __printf__ function to rpl_printf
13906         via __asm__. When not using GNU C, define rpl_printf instead of
13907         __printf__.
13908         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13909         commit.
13910         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13911         commit.
13912         * m4/asm-underscore.m4: New file.
13913         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13914         * modules/stdio (Files): Add m4/asm-underscore.m4.
13915         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13916         Reported by Ben Pfaff.
13917
13918 2010-05-16  Bruno Haible  <bruno@clisp.org>
13919
13920         verify: Avoid skipping the test on openSUSE 11.0.
13921         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13922
13923 2010-05-13  Bruno Haible  <bruno@clisp.org>
13924
13925         Avoid useless warnings from G++.
13926         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13927         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13928         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13929
13930 2010-05-11  Jim Meyering  <meyering@redhat.com>
13931
13932         maint.mk: tweak preceding change
13933         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13934         regexps tighter by anchoring at EOL, and make the new group "shy"
13935         for slightly decreased overhead.
13936
13937 2010-05-11  Eric Blake  <eblake@redhat.com>
13938
13939         maint.mk: gnulib doesn't guarantee NSIG
13940         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13941
13942 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13943
13944         test-pwrite.c: Remove unused variable declaration.
13945         * tests/test-pwrite.c (main): Remove read_buf declaration.
13946
13947         Remove useless test-pwrite.sh file.
13948         * tests/test-pwrite.sh: Delete file.
13949         * modules/pwrite-tests: Remove references.
13950         Reported by Bruno Haible.
13951
13952 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13953
13954         init.sh: fix a typo
13955         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13956
13957 2010-05-10  Jim Meyering  <meyering@redhat.com>
13958
13959         maint.mk: avoid using a temporary file in the always-defined-macros check
13960         * top/maint.mk (.re-defmac): Remove rule.
13961         (gl_trap_): Remove definition.
13962         (sc_prohibit_always-defined_macros): Rewrite not to create and
13963         depend on a temporary file.  Instead, depend on GNU grep's ability
13964         to read a list of regular expressions from stdin when given "-f -".
13965
13966 2010-05-09  Bruno Haible  <bruno@clisp.org>
13967
13968         Update to GNU gettext 0.18, part 1.
13969         * m4/gettext.m4: Update to GNU gettext 0.18.
13970         * m4/intl.m4: Likewise.
13971         * m4/po.m4: Likewise.
13972         * modules/gettext (Files): Add m4/fcntl-o.m4.
13973         (configure.ac): Require gettext infrastructure from version 0.18.
13974
13975 2010-05-09  Jim Meyering  <meyering@redhat.com>
13976
13977         init.sh: enable MALLOC_PERTURB_
13978         * tests/init.sh: Enable glibc's malloc-perturbing option.
13979
13980         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13981         With my recent change in init.sh from the two-line form:
13982             -#   : ${srcdir=.}
13983             -#   . "$srcdir/init.sh"; path_prepend_ .
13984             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13985         I noticed that using the one-line form would cause this test
13986         to fail with a false-positive, or to stop working altogether,
13987         depending on whether help-version changed or all the tests did.
13988         * top/maint.mk (_hv_regex): Remove this definition.
13989         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13990         (_hv_regex_strong): Use a stronger regex to check for conformance.
13991         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13992         Give a separate diagnostic for lack of conforming use.
13993
13994         maint.mk: prohibit definition of symbols defined by gnulib
13995         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13996         definition of symbols defined by gnulib.
13997
13998 2010-05-09  Bruno Haible  <bruno@clisp.org>
13999
14000         acl: Avoid test failure on Cygwin-hosted mingw.
14001         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14002
14003 2010-05-09  Bruno Haible  <bruno@clisp.org>
14004
14005         error: Use system's fcntl function.
14006         * lib/error.c (fcntl): Undefine.
14007
14008 2010-05-09  Jim Meyering  <meyering@redhat.com>
14009
14010         verify: adjust formatting to be more consistent
14011         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14012         argument-list '('s, and after one comma.
14013
14014 2010-05-09  Bruno Haible  <bruno@clisp.org>
14015
14016         error: More reliable output on mingw.
14017         * lib/error.c: Include <windows.h>.
14018         (is_open): New function.
14019         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14020         defined.
14021
14022 2010-05-09  Bruno Haible  <bruno@clisp.org>
14023
14024         vasnprintf: Fix syntax errors in libintl build on mingw.
14025         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14026         pad_ourselves and prec_ourselves after use.
14027
14028 2010-05-08  Bruno Haible  <bruno@clisp.org>
14029
14030         * lib/config.charset: Update comments for Cygwin 1.7.
14031         * lib/localcharset.c: Likewise.
14032
14033 2010-05-07  Jim Meyering  <meyering@redhat.com>
14034
14035         init.sh: improve comments
14036         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14037         . "${srcdir=.}/init.sh"; path_prepend_ .
14038         Add a note about path_prepend_ and the alternative of using
14039         TESTS_ENVIRONMENT.
14040
14041 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14042
14043         exclude: Unescape hashed patterns in wildcard mode.
14044         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14045         to the hash list.
14046         * tests/test-exclude8.sh: New test case.
14047         * modules/exclude-tests: Add new test.
14048
14049 2010-05-05  Eric Blake  <eblake@redhat.com>
14050
14051         verify: automate tests
14052         * modules/verify-tests: New module.
14053         * tests/test-verify.sh: New file.
14054         * tests/test-verify.c: Guard each negative test with a unique id.
14055         Also avoid warning about unused left hand of comma expressions.
14056
14057 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14058
14059         Further improvements to verify.h, suggested by Eric Blake.
14060         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14061         the GL_* versions, to avoid collision with OpenGL.
14062         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14063         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14064         than testing merely whether it's defined.
14065
14066         Modify verify.h to pacify gcc -Wredundant_decls.
14067         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14068         These use the prefix "GL_" since they're likely to be useful elsewhere.
14069         We may need to break them out into a different .h file.
14070         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14071         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14072         of verify_function__.
14073
14074 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14075
14076         Tests for module pwrite.
14077         * modules/pwrite-tests: New file.
14078         * tests/test-pwrite.sh: New file.
14079         * tests/test-pwrite.c: New file.
14080
14081         New module pwrite.
14082         * lib/unistd.in.h (pwrite): New declaration.
14083         * lib/pwrite.c: New file, from glibc with modifications.
14084         * m4/pwrite.m4: New file.
14085         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14086         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14087         REPLACE_PWRITE.
14088         * modules/pwrite: New file.
14089         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14090         REPLACE_PWRITE.
14091         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14092         * doc/posix-functions/pwrite.texi: Mention the new module.
14093
14094 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14095
14096         pread: Update documentation.
14097         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14098
14099 2010-05-04  Eric Blake  <eblake@redhat.com>
14100
14101         docs: update cygwin progress
14102         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14103         this bug.
14104         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14105         Added in cygwin 1.7.2.
14106         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14107         Likewise.
14108         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14109         Likewise.
14110         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14111         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14112         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14113         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14114         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14115         Mention nproc module.
14116         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14117         bug in cygwin 1.7.5 addition.
14118         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14119         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14120         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14121         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14122         1.7.5.
14123         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14124         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14125         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14126         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14127         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14128         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14129         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14130         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14131         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14132         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14133         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14134         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14135         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14136         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14137         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14138         Likewise.
14139         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14140         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14141         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14142         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14143         Likewise.
14144         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14145         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14146         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14147         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14148         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14149         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14150         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14151         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14152         Likewise.
14153         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14154         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14155         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14156         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14157         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14158         Likewise.
14159         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14160         Likewise.
14161         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14162         Likewise.
14163         * doc/glibc-functions/xdrrec_endofrecord.texi
14164         (xdrrec_endofrecord): Likewise.
14165         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14166         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14167         Likewise.
14168         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14169         Likewise.
14170
14171 2010-05-04  Jim Meyering  <meyering@redhat.com>
14172
14173         gendocs.sh: make its "-s FILE" option more useful
14174         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14175         $PACKAGE to reflect the probably-different basename of "FILE".
14176
14177 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14178
14179         bootstrap: don't ignore download_po_files failure
14180         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14181         failure.
14182
14183 2010-05-03  Jim Meyering  <meyering@redhat.com>
14184
14185         maint.mk: allow to pass options to gendocs.sh
14186         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14187         (gendocs_options_): New overridable variable.
14188
14189         gnu-web-doc-update: don't ignore configure or build failure
14190         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14191
14192         announce-gen: backslash-escape '@'s in --help output
14193         * build-aux/announce-gen: Fix syntax errors.
14194
14195         maint.mk, announce-gen: allow project-specific announcement mail headers
14196         * top/maint.mk (translation_project_): Define default.
14197         (announcement_Cc_, announcement_mail_headers_): Likewise.
14198         (announcement): Invoke announce-gen with new --mail-headers option.
14199         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14200
14201         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14202         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14203         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14204         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14205         line in the "err2" output file when running "make check" in verbose
14206         mode (i.e., with set -x enabled).
14207
14208 2010-05-03  Bruno Haible  <bruno@clisp.org>
14209
14210         wctob: Fix for weird platforms.
14211         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14212         argument value.
14213
14214 2010-05-03  Jim Meyering  <meyering@redhat.com>
14215
14216         maint.mk: prohibit unwarranted use of <strings.h>
14217         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14218         strings.h in a file that does not also use strcasecmp, strncasecmp,
14219         ffs or ffsll.
14220
14221         maint.mk: remove obsolete comments
14222         * top/maint.mk: Remove stale, commented-out rules.
14223
14224 2010-05-02  Bruno Haible  <bruno@clisp.org>
14225
14226         wcwidth: Declare also when it's aliased.
14227         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14228         macro.
14229
14230 2010-05-02  Bruno Haible  <bruno@clisp.org>
14231
14232         Fix regression from 2010-04-25.
14233         * gnulib-tool (func_modules_transitive_closure): Check the status of
14234         all modules, not only of the tests that are of the form foo-tests where
14235         foo is a module.
14236
14237 2010-05-02  Bruno Haible  <bruno@clisp.org>
14238
14239         wctob: Work around nasty Cygwin 1.7.2 bug.
14240         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14241         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14242
14243 2010-05-01  Bruno Haible  <bruno@clisp.org>
14244
14245         fpurge: Sharper test.
14246         * tests/test-fpurge.c (main): Add one more ftell check.
14247         * modules/fpurge-tests (Depends-on): Add ftell.
14248         Suggested by Eric Blake.
14249
14250 2010-05-01  Bruno Haible  <bruno@clisp.org>
14251
14252         ftello: Another test.
14253         * tests/test-ftello3.c: New file.
14254         * modules/ftello-tests (Files): Add it.
14255         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14256         MOSTLYCLEANFILES.
14257
14258         ftell: Another test.
14259         * tests/test-ftell3.c: New file.
14260         * modules/ftell-tests (Files): Add it.
14261         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14262         MOSTLYCLEANFILES.
14263
14264 2010-05-01  Bruno Haible  <bruno@clisp.org>
14265
14266         ftell, ftello: Work around Solaris bug.
14267         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14268         * lib/ftello.c: Include stdio-impl.h.
14269         (ftello): On Solaris, when _IOWRT is set, compute the result without
14270         looking at _IOREAD.
14271         * modules/ftello (Files): Add lib/stdio-impl.h.
14272         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14273         * doc/posix-functions/ftello.texi: Likewise.
14274         Reported by Eric Blake.
14275
14276 2010-05-01  Bruno Haible  <bruno@clisp.org>
14277
14278         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14279         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14280         the _IOWRT flag is also set.
14281
14282 2010-05-01  Bruno Haible  <bruno@clisp.org>
14283
14284         Fix doc about a HP-UX stdio bug.
14285         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14286         * doc/posix-functions/ftello.texi: Likewise.
14287
14288 2010-05-01  Bruno Haible  <bruno@clisp.org>
14289
14290         lseek test: Fix failure on Solaris.
14291         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14292         output.
14293
14294 2010-04-30  Jim Meyering  <meyering@redhat.com>
14295
14296         bootstrap: don't ignore failure to generate po*/Makevars
14297         * build-aux/bootstrap (with_gettext): Don't ignore failure
14298         to create po/Makevars or runtime-po/Makevars.
14299
14300 2010-04-29  Eric Blake  <eblake@redhat.com>
14301
14302         headers: relax license to LGPLv2+
14303         * modules/fcntl-h (License): Relax license.
14304         * modules/getopt-posix (License): Likewise.
14305         * modules/locale (License): Likewise.
14306         * modules/math (License): Likewise.
14307         * modules/pty (License): Likewise.
14308         * modules/sched (License): Likewise.
14309         * modules/search (License): Likewise.
14310         * modules/spawn (License): Likewise.
14311         * modules/stdarg (License): Likewise.
14312         * modules/sysexits (License): Likewise.
14313
14314 2010-04-29  Jim Meyering  <meyering@redhat.com>
14315
14316         inttypes: relax license to LGPLv2+
14317         * modules/inttypes (License): Relax license.
14318
14319 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14320
14321         * top/maint.mk (indent): Run twice to produce idempotent results.
14322
14323 2010-04-28  Bruno Haible  <bruno@clisp.org>
14324
14325         getdate: Generate getdate.c in the source directory.
14326         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14327         MOSTLYCLEANFILES.
14328         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14329
14330 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14331
14332         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14333         is not declared as a const *; avoid warnings in that case.
14334
14335 2010-04-28  Eric Blake  <eblake@redhat.com>
14336
14337         canonicalize-lgpl: avoid compiler warning
14338         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14339         declaration' / 'extraneous semicolon' warning with some compilers.
14340         Reported by Andreas Gruenbacher.
14341
14342 2010-04-28  Jim Meyering  <meyering@redhat.com>
14343
14344         init.sh: ensure a more reliable exit status when exiting via trap
14345         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14346         Inspired by patches from Dmitry V. Levin.
14347         Also trap on signal 3 (SIGQUIT).
14348
14349 2010-04-27  Bruno Haible  <bruno@clisp.org>
14350
14351         Update doc about utimes().
14352         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14353         'utimens' module.
14354         Reported by Andreas Gruenbacher <agruen@suse.de>.
14355
14356 2010-04-27  Eric Blake  <eblake@redhat.com>
14357
14358         full-read, full-write: relax license
14359         * modules/full-read (License): Drop to LGPLv2+.
14360         * modules/full-write (License): Likewise.
14361         * modules/safe-read (License): Likewise.
14362         * modules/safe-write (License): Likewise.
14363
14364         pthread: mention library for linking
14365         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14366
14367 2010-04-27  Jim Meyering  <meyering@redhat.com>
14368
14369         maint.mk: fix a bug introduced in last change
14370         * top/maint.mk (gl_assured_headers_): Now that all names are on
14371         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14372         is not anchored to end of word, it should be adequate.
14373
14374         maint.mk: avoid side-effect in latest syntax-check
14375         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14376         to run commands via $(shell...), and hence to incur cost only when
14377         the new rule is actually run.
14378
14379         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14380         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14381         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14382         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14383         (gl_assured_headers_, az_, AZ_): Define.
14384         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14385
14386 2010-04-26  Jim Meyering  <jim@meyering.net>
14387             Bruno Haible  <bruno@clisp.org>
14388
14389         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14390         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14391         Prompted by an exchange with Gilles Espinasse.
14392
14393 2010-04-26  Jim Meyering  <meyering@redhat.com>
14394
14395         git-version-gen: aesthetic tweak
14396         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14397         so that the command remains on a single line.
14398
14399 2010-04-26  Eric Blake  <eblake@redhat.com>
14400
14401         git-version-gen: allow use on EBCDIC hosts
14402         * build-aux/git-version-gen (dirty): Use literal rather than tying
14403         ourselves to ascii.
14404         Reported by Steve Goetze.
14405
14406 2010-04-25  Bruno Haible  <bruno@clisp.org>
14407
14408         netdb: Add support for GNULIB_POSIXCHECK.
14409         * lib/netdb.in.h: Include warn-on-use.h.
14410         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14411         functions are used when GNULIB_POSIXCHECK is defined and the
14412         getaddrinfo module is not in use.
14413         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14414         freeaddrinfo, gai_strerror, getnameinfo are declared.
14415         * modules/netdb (Depends-on): Add warn-on-use.
14416         (Makefile.am): Include warn-on-use.h in netdb.h.
14417
14418 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14419
14420         build: avoid "make check" failure without .git/ directory
14421         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14422         there is no .git/ directory.
14423
14424 2010-04-25  Bruno Haible  <bruno@clisp.org>
14425
14426         ptsname: Fix misuse of ttyname_r.
14427         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14428         of errno.
14429
14430 2010-04-25  Bruno Haible  <bruno@clisp.org>
14431
14432         ttyname_r: Make it work on Solaris 10.
14433         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14434         if the system function has the POSIX declaration. Test whether the
14435         function fails if the buffer is less than 128 bytes large.
14436         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14437         system's ttyname_r function. Provide a reasonably large buffer.
14438         * modules/ttyname_r (Depends-on): Add extensions.
14439         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14440
14441 2010-04-25  Bruno Haible  <bruno@clisp.org>
14442
14443         Use the 'extensions' module for some more functions on Solaris.
14444         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14445         module.
14446         * doc/posix-functions/ctime_r.texi: Likewise.
14447         * doc/posix-functions/getgrgid_r.texi: Likewise.
14448         * doc/posix-functions/getgrnam_r.texi: Likewise.
14449         * doc/posix-functions/getpwnam_r.texi: Likewise.
14450         * doc/posix-functions/getpwuid_r.texi: Likewise.
14451         * doc/posix-functions/readdir_r.texi: Likewise.
14452         * doc/posix-functions/sigwait.texi: Likewise.
14453         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14454         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14455
14456 2010-04-25  Bruno Haible  <bruno@clisp.org>
14457
14458         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14459         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14460         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14461         * lib/ttyname_r.c: Include <limits.h>.
14462         (ttyname_r): Define using the system's ttyname_r function, if it exists
14463         and not on Solaris.
14464         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14465         set.
14466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14467         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14468         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14469         Reported by Simon Josefsson.
14470
14471 2010-04-25  Bruno Haible  <bruno@clisp.org>
14472
14473         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14474         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14475         * doc/posix-functions/ctime_r.texi: Likewise.
14476         * doc/posix-functions/getgrgid_r.texi: Likewise.
14477         * doc/posix-functions/getgrnam_r.texi: Likewise.
14478         * doc/posix-functions/getlogin_r.texi: Likewise.
14479         * doc/posix-functions/getpwnam_r.texi: Likewise.
14480         * doc/posix-functions/getpwuid_r.texi: Likewise.
14481         * doc/posix-functions/readdir_r.texi: Likewise.
14482         * doc/posix-functions/sigwait.texi: Likewise.
14483         * doc/posix-functions/ttyname_r.texi: Likewise.
14484         Reported by Simon Josefsson.
14485
14486 2010-04-25  Bruno Haible  <bruno@clisp.org>
14487
14488         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14489         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14490         also to --create-testdir.
14491         (func_acceptable): Don't consider the status of *-tests modules here.
14492         (func_modules_transitive_closure): Consider it here, before including a
14493         test module.
14494         (func_import, func_create_testdir): Set inc_all_direct_tests,
14495         inc_all_indirect_tests.
14496         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14497         --create-testdir and --create-megatestdir.
14498
14499 2010-04-25  Bruno Haible  <bruno@clisp.org>
14500
14501         gnulib-tool: Add --without-*-tests options.
14502         * gnulib-tool (func_usage): Document the --without-*-tests options.
14503         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14504         excl_unportable_tests): New variables.
14505         Fail if they are specified with --import or --update.
14506         (func_acceptable): Respect the excl_*_tests variables.
14507         (func_import): Set the excl_*_tests variables to empty.
14508
14509 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14510             Bruno Haible  <bruno@clisp.org>
14511
14512         Work around a MacOS X 10.4 bug with openpty.
14513         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14514         * tests/test-openpty.c (main): Close the master side explicitly.
14515
14516 2010-04-25  Bruno Haible  <bruno@clisp.org>
14517
14518         strnlen: Fix a C++ test error on MacOS X and Solaris.
14519         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14520         the function is not declared.
14521         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14522         Simon Josefsson.
14523
14524 2010-04-24  Bruno Haible  <bruno@clisp.org>
14525
14526         Avoid a gcc warning.
14527         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14528         of correct type for %08lx directive.
14529         Reported by Eric Blake.
14530
14531 2010-04-24  Bruno Haible  <bruno@clisp.org>
14532
14533         vasnprintf: Correct errno value in case of out-of-memory.
14534         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14535         or sprintf. Use the errno value from SNPRINTF or sprintf.
14536         Reported by Ian Beckwith <ianb@erislabs.net>.
14537
14538 2010-04-24  Bruno Haible  <bruno@clisp.org>
14539
14540         ansi-c++-opt: Find correct compiler when cross-compiling.
14541         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14542         AC_CHECK_PROGS.
14543         Reported by Simon Josefsson.
14544
14545 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14546
14547         vc-list-files: Add support for subversion
14548         * build-aux/vc-list-files: Use "svn list" to generate the list of
14549         files controlled by subversion.
14550
14551 2010-04-23  Jim Meyering  <meyering@redhat.com>
14552
14553         vc-list-files tests: convert to use init.sh
14554         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14555         path_prepend_.
14556         Use Exit, not exit.
14557         Use skip_ rather than open coding it.
14558         Remove trap set-up and compare definitions.
14559         * tests/test-vc-list-files-git.sh: Likewise.
14560         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14561
14562 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14563
14564         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14565         backup files.
14566
14567 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14568
14569         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14570
14571 2010-04-20  Eric Blake  <eblake@redhat.com>
14572
14573         tests: be robust to ignored SIGPIPE
14574         * tests/test-select-in.sh: Consume all output.
14575         * tests/test-lseek.sh: Check correct exit status, while avoiding
14576         EPIPE.
14577
14578 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14579             Bruno Haible  <bruno@clisp.org>
14580
14581         visibility: Don't use -fvisibility if it leads to a warning.
14582         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14583         yes, don't pretend that visibility works if it leads to a warning.
14584         Reported by Mike Gran <spk121@yahoo.com>.
14585
14586 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14587
14588         * build-aux/bootstrap: Use "git -h" for testing for supported options
14589         instead of "git --help".  The short-form option only shows a summary,
14590         and doesn't layout the full man page.  Grep for the full option name
14591         in the summary, too.
14592
14593 2010-04-19  Bruno Haible  <bruno@clisp.org>
14594
14595         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14596         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14597         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14598         mention of RELOCATABLE_STRIP.
14599         Reported by Sylvain Beucler <beuc@beuc.net>.
14600
14601 2010-04-19  Bruno Haible  <bruno@clisp.org>
14602
14603         * lib/diffseq.h: Fix typo in comment.
14604         Reported by Eric Blake.
14605
14606 2010-04-19  Bruno Haible  <bruno@clisp.org>
14607
14608         ioctl: Move autoconf macro to a .m4 file.
14609         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14610         * modules/ioctl (Files): Add it.
14611         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14612         Reported by Ian Beckwith <ianb@erislabs.net>.
14613
14614 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14615             Bruno Haible  <bruno@clisp.org>
14616
14617         diffseq: Accommodate use-case with abstract arrays.
14618         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14619         is not defined.
14620         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14621         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14622
14623 2010-04-18  Bruno Haible  <bruno@clisp.org>
14624
14625         * doc/posix-headers/stdbool.texi: More precise wording.
14626
14627 2010-04-17  Jim Meyering  <meyering@redhat.com>
14628
14629         maint.mk: use gnu-style indentation in an embedded perl script
14630         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14631         Rename variable: s/two/last_two_bytes/
14632
14633 2010-04-16  Eric Blake  <eblake@redhat.com>
14634
14635         test-stdbool: skip test that fails with Solaris CC
14636         * tests/test-stdbool.c (f): Skip test that causes compilation
14637         error under buggy C++ compiler.
14638         * lib/stdbool.in.h: Document the limitation.
14639         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14640
14641         setenv: allow compilation with C++
14642         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14643         register keyword.
14644
14645         stdint: allow test to pass with C++
14646         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14647
14648         getopt: allow compilation with C++
14649         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14650         struct.
14651         * lib/getopt.c (_getopt_internal_r): Use correct type.
14652         Reported by Dagobert Michelson, via Joel E. Denny.
14653
14654 2010-04-16  Bruno Haible  <bruno@clisp.org>
14655
14656         Override netdb.h always.
14657         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14658         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14659         Reported by Ludovic Courtès <ludo@gnu.org>.
14660
14661 2010-04-15  Bruno Haible  <bruno@clisp.org>
14662
14663         openpty: Fix mistake from 2010-03-21.
14664         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14665         Reported by Simon Josefsson.
14666
14667 2010-04-15  Eric Blake  <eblake@redhat.com>
14668
14669         test-forkpty: fix expected signature
14670         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14671         Reported by Simon Josefsson.
14672
14673 2010-04-15  Jim Meyering  <meyering@redhat.com>
14674
14675         maint.mk: texinfo_suffix_re_: correct the default regexp
14676         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14677
14678         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14679         make it configurable via texinfo_suffix_re_.
14680
14681 2010-04-14  Eric Blake  <eblake@redhat.com>
14682
14683         strtok_r: relax license to LGPLv2+
14684         * modules/strtok_r (License): Relax license.
14685         Reported by Matthias Bolte.
14686
14687 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14688
14689         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14690         version 1.4.4 by default instead of requiring the libgcrypt
14691         version used during build.  This makes it possible to use the
14692         application with older but still binary compatible libgcrypt
14693         versions.
14694
14695 2010-04-13  Eric Blake  <eblake@redhat.com>
14696
14697         getopt-gnu: match recent glibc fixes and posix ruling
14698         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14699         '+' handling, when requesting extensions.
14700         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14701         'W;' handling.
14702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14703         * doc/posix-functions/getopt.texi (getopt): Document this.
14704         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14705         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14706         Likewise.
14707
14708         getopt: merge bug fixes from glibc
14709         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14710         diagnostics.  Honor '+:' correctly.  Reject ';'.
14711
14712         getopt-posix: detect MacOS bug
14713         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14714         optind when missing a required argument.
14715         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14716         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14717         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14718         Likewise.
14719
14720         getopt-posix: avoid spurious failure on Solaris
14721         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14722         an indicator that setting optind=1 is sufficient for reset.
14723
14724         getopt-posix: avoid spurious failure on FreeBSD
14725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14726         in POSIX mode, since the m4 test uses it.
14727
14728         gnulib-tool: silence warning on BSD sh
14729         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14730
14731 2010-04-13  Jim Meyering  <meyering@redhat.com>
14732
14733         doc: users.txt: GNU patch now uses gnulib
14734         * users.txt: Add patch.
14735
14736 2010-04-12  Jim Meyering  <meyering@redhat.com>
14737
14738         maint.mk: generate more concise timing data for syntax-check rules
14739         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14740         " done" from each line that reports a syntax-check test duration.
14741
14742 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14743
14744         git-version-gen: use "git update-index..." rather than "git status"
14745         * build-aux/git-version-gen: Use git update-index --refresh, not
14746         "git status".  With some versions of git, "git status" would fail
14747         to update the index and result in an unwarranted "-dirty" suffix.
14748
14749 2010-04-11  Jim Meyering  <meyering@redhat.com>
14750
14751         openat: correct formatting (no semantic change)
14752         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14753         Suggested by Bruno Haible.
14754
14755 2010-04-11  Bruno Haible  <bruno@clisp.org>
14756
14757         Stricter declaration checking in testdirs.
14758         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14759         If for_tests is true, augment AM_CPPFLAGS to define
14760         GNULIB_STRICT_CHECKING.
14761         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14762         GNULIB_STRICT_CHECKING is defined, verify that the function is
14763         declared.
14764
14765 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14766             Bruno Haible  <bruno@clisp.org>
14767
14768         libunistring: Improve configure output.
14769         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14770         Don't say "consider installing GNU libunistring" when checking again
14771         with libiconv.
14772
14773 2010-04-11  Bruno Haible  <bruno@clisp.org>
14774
14775         libunistring: Correct value of $LTLIBUNISTRING.
14776         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14777         correct the value of $LTLIBUNISTRING.
14778
14779 2010-04-11  Bruno Haible  <bruno@clisp.org>
14780
14781         havelib: Add static libraries to LIBS in the right order.
14782         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14783         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14784
14785 2010-04-11  Bruno Haible  <bruno@clisp.org>
14786
14787         libunistring: Detect libunistring also when it depends on libiconv.
14788         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14789         the second AC_LIB_HAVE_LINKFLAGS invocation.
14790
14791 2010-04-11  James Youngman  <jay@gnu.org>
14792
14793         close-stream: declare local scalars to be "const"
14794         * lib/close-stream.c (close_stream): Make boolean variables const
14795         to document the fact that we set but do not change them.
14796
14797 2010-04-11  Bruno Haible  <bruno@clisp.org>
14798
14799         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14800
14801 2010-04-11  Jim Meyering  <meyering@redhat.com>
14802
14803         maint.mk: don't include dist-check.mk
14804         * top/maint.mk: Remove bogus include directive.
14805
14806         maint.mk: improve empty-line-at-EOF check
14807         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14808         solution, rather than tail+Perl-based one.  The latter would read
14809         a few kilobytes from the end of each file, and did not handle empty
14810         files properly.
14811
14812         maint.mk: print the elapsed time for each syntax-check rule
14813         * top/maint.mk (sc_m_rules_): Save start time in a file.
14814         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14815         (local-check): Interpose the .z rules
14816
14817 2010-04-11  Jim Meyering  <meyering@redhat.com>
14818
14819         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14820         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14821         empty file with one that ends in an empty line.
14822
14823 2010-04-10  Bruno Haible  <bruno@clisp.org>
14824
14825         mkdir: Make it work on mingw64.
14826         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14827         * lib/mkdir.c: Update comment.
14828         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14829
14830 2010-04-10  Bruno Haible  <bruno@clisp.org>
14831
14832         Don't override improved macro from newer autoconf.
14833         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14834         autoconf >= 2.62.
14835         Reported by Joel E. Denny <jdenny@clemson.edu>.
14836
14837 2010-04-10  Jim Meyering  <meyering@redhat.com>
14838
14839         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14840         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14841
14842         maint.mk: correct a diagnostic
14843         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14844         in diagnostic; now use $prohibit.
14845
14846 2010-04-10  Bruno Haible  <address@hidden>
14847
14848         fchownat: Fix a C++ test error on Solaris 8.
14849         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14850         the function does not exist.
14851
14852 2010-04-10  Bruno Haible  <bruno@clisp.org>
14853
14854         vasnprintf: Add more tests.
14855         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14856         (test_function): Test converting an invalid wide string.
14857
14858         vasnprintf: Correct handling of unconvertible wide string arguments.
14859         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14860         VASNPRINTF.
14861         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14862         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14863         smaller than the expected maximum need for the directive. Set errno to
14864         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14865         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14866         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14867         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14868         * modules/vasnprintf (Files): Add m4/printf.m4.
14869         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14870
14871 2010-04-10  Bruno Haible  <bruno@clisp.org>
14872
14873         vasnprintf: Fix crash in %ls directive.
14874         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14875         string is passed as argument to %ls, with no precision and no width.
14876         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14877
14878 2010-04-10  Bruno Haible  <bruno@clisp.org>
14879
14880         vasnprintf: Fix multiple test failures on mingw.
14881         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14882         _snprintf, or snwprintf, not _snwprintf.
14883
14884 2010-04-10  Bruno Haible  <bruno@clisp.org>
14885
14886         write: Fix a C++ test error on mingw.
14887         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14888
14889 2010-04-10  Bruno Haible  <bruno@clisp.org>
14890
14891         vasnprintf test: Reduce code duplication.
14892         * tests/test-vasnprintf.c (test_function): New function, extracted from
14893         test_vasnprintf.
14894         (test_vasnprintf, test_asnprintf): Invoke it.
14895
14896 2010-04-10  Bruno Haible  <bruno@clisp.org>
14897
14898         strnlen: Fix warning in C++ mode on MacOS X.
14899         * lib/string.in.h (strnlen): Use the modern idiom.
14900         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14901         defining strnlen as a macro already in <config.h>.
14902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14903         REPLACE_STRNLEN.
14904         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14906
14907 2010-04-08  James Youngman  <jay@gnu.org>
14908
14909         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14910         the example.
14911
14912 2010-04-09  Jim Meyering  <meyering@redhat.com>
14913
14914         maint.mk: print better diagnostic when there is no $(_hv_file)
14915         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14916         announce that when $(_hv_file) (aka help-version) does not exist.
14917
14918         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14919         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14920         not try to interpret its random input bytes.  Jarno Rajahalme reported
14921         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14922         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14923         (mktempd_): Likewise, just in case.
14924
14925         ftruncate: add two years to projected module removal date: 2012
14926         * m4/ftruncate.m4: Adjust comments.
14927
14928         ftruncate: mark module as obsolete; even MinGW provides it, now
14929         * modules/ftruncate (Status): Obsolete.
14930         (Notice): Say that.
14931         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14932         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14933
14934 2010-04-08  Bruno Haible  <bruno@clisp.org>
14935
14936         Fix side effects from tests-related modules.
14937         * modules/dprintf-posix (Comment): New section.
14938         * modules/fprintf-posix (Comment): Likewise.
14939         * modules/obstack-printf-posix (Comment): Likewise.
14940         * modules/printf-posix (Comment): Likewise.
14941         * modules/snprintf-posix (Comment): Likewise.
14942         * modules/sprintf-posix (Comment): Likewise.
14943         * modules/vasnprintf-posix (Comment): Likewise.
14944         * modules/vasprintf-posix (Comment): Likewise.
14945         * modules/vdprintf-posix (Comment): Likewise.
14946         * modules/vfprintf-posix (Comment): Likewise.
14947         * modules/vprintf-posix (Comment): Likewise.
14948         * modules/vsnprintf-posix (Comment): Likewise.
14949         * modules/vsprintf-posix (Comment): Likewise.
14950         * modules/xprintf-posix (Comment): Likewise.
14951         * modules/xvasprintf-posix (Comment): Likewise.
14952         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14953         * modules/floorf-tests (Depends-on): Likewise.
14954         * modules/round-tests (Depends-on): Likewise.
14955         * modules/roundf-tests (Depends-on): Likewise.
14956         * modules/trunc-tests (Depends-on): Likewise.
14957         * modules/truncf-tests (Depends-on): Likewise.
14958         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14959         'fprintf-posix' module is not present.
14960         * tests/test-floorf2.c (check): Likewise.
14961         * tests/test-trunc2.c (check): Likewise.
14962         * tests/test-truncf2.c (check): Likewise.
14963         * tests/test-round2.c (equal): Likewise.
14964         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14965
14966 2010-04-07  Karl Berry  <karl@gnu.org>
14967
14968         * config/srclist.txt,
14969         * config/srclistvars.sh,
14970         * config/srclist-update: doc fixes.
14971
14972 2010-04-07  Jim Meyering  <meyering@redhat.com>
14973
14974         maint.mk: add a PATH crosschecking syntax-check rule
14975         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14976         Useful if you use a test like the one in help-version (coreutils,
14977         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14978         printed by prog --version.
14979
14980 2010-04-06  Bruno Haible  <bruno@clisp.org>
14981
14982         Fix link error on mingw.
14983         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14984         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14985
14986 2010-04-06  Bruno Haible  <bruno@clisp.org>
14987
14988         Assume rmdir exists.
14989         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14990
14991 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14992
14993         doc: update users.txt
14994         * users.txt: Add gcal.
14995
14996 2010-04-06  Jim Meyering  <meyering@redhat.com>
14997
14998         init.sh: simply unset TMPDIR rather than risking env -i
14999         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15000         although it probably works fine on all Unix-based systems, some
15001         systems (Cygwin?) cannot tolerate a totally cleared environment.
15002         Suggestion from Eric Blake.
15003
15004 2010-04-06  Jim Meyering  <meyering@redhat.com>
15005
15006         init.sh: portability fix: use env's POSIX-specified -i option not -u
15007         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15008         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15009
15010 2010-04-05  Bruno Haible  <bruno@clisp.org>
15011
15012         btowc: Work around Cygwin 1.7.2 bug.
15013         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15014         does not map NUL to 0.
15015         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15016
15017 2010-04-05  Bruno Haible  <bruno@clisp.org>
15018
15019         Make the multithread modules work on Cygwin 1.7.2.
15020         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15021         imported symbols can be declared weak, so that it returns "no" on
15022         Cygwin 1.7.2.
15023
15024 2010-04-05  Bruno Haible  <bruno@clisp.org>
15025
15026         Use the module 'strncat'.
15027         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15028
15029         Tests for module 'strncat'.
15030         * modules/strncat-tests: New file.
15031         * tests/test-strncat.c: New file.
15032
15033         New module 'strncat'.
15034         * lib/string.in.h (strncat): New declaration.
15035         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15036         * m4/strncat.m4: New file, based on m4/memchr.m4.
15037         * modules/strncat: New file.
15038         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15039         is declared.
15040         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15041         REPLACE_STRNCAT.
15042         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15043         REPLACE_STRNCAT.
15044         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15045         module.
15046         * tests/test-string-c++.cc: Check signature of strncat.
15047
15048 2010-04-05  Jim Meyering  <meyering@redhat.com>
15049
15050         xstrtoumax-tests: convert to use init.sh
15051         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15052         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15053         Use Exit, not exit.
15054         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15055
15056         xstrtoimax-tests: convert to use init.sh
15057         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15058         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15059         Use Exit, not exit.
15060         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15061
15062 2010-04-05  Bruno Haible  <bruno@clisp.org>
15063
15064         sys_socket: Avoid #define replacements in C++ mode.
15065         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15066         warning to the function if possible, rather than #defining the symbol
15067         to a dysfunctional alias.
15068
15069 2010-04-05  Bruno Haible  <bruno@clisp.org>
15070
15071         fseeko: Fix C++ test error on mingw.
15072         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15073         gl_FUNC_FSEEKO.
15074         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15075         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15076         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15077         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15078
15079 2010-04-05  Bruno Haible  <bruno@clisp.org>
15080
15081         duplocale: Improve test output.
15082         * tests/test-duplocale.c (main): Print reason for skipped test.
15083
15084 2010-04-05  Bruno Haible  <bruno@clisp.org>
15085
15086         Assume rmdir exists.
15087         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15088         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15089
15090 2010-04-05  Bruno Haible  <bruno@clisp.org>
15091
15092         Fix link error on Solaris 8 with cc.
15093         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15094
15095 2010-04-05  Bruno Haible  <bruno@clisp.org>
15096
15097         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15098         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15099
15100 2010-04-05  Bruno Haible  <bruno@clisp.org>
15101
15102         vasprintf: Update documentation.
15103         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15104
15105 2010-04-05  Bruno Haible  <bruno@clisp.org>
15106
15107         ptsname: Improve test.
15108         * tests/test-ptsname.c (main): Also try the various master names of BSD
15109         systems.
15110
15111 2010-04-05  Bruno Haible  <bruno@clisp.org>
15112
15113         memchr: Avoid a possible C++ test error.
15114         * lib/string.in.h (memchr): Provide declaration if function is missing.
15115         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15116         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15118         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15119
15120 2010-04-05  Bruno Haible  <bruno@clisp.org>
15121
15122         strtok_r: Improve idiom.
15123         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15124         AC_LIBOBJ is used.
15125
15126 2010-04-05  Bruno Haible  <bruno@clisp.org>
15127
15128         strdup: Improve idiom.
15129         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15130         AC_LIBOBJ is used.
15131         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15132         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15133         when AC_LIBOBJ is used.
15134
15135 2010-04-05  Bruno Haible  <bruno@clisp.org>
15136
15137         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15138         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15139         don't set REPLACE_MBSINIT to 1.
15140         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15141         don't set REPLACE_MBRTOWC to 1.
15142         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15143         exist, don't set REPLACE_MBSRTOWCS to 1.
15144         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15145         exist, don't set REPLACE_MBSNRTOWCS to 1.
15146         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15147         don't set REPLACE_WCRTOMB to 1.
15148         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15149         exist, don't set REPLACE_WCSRTOMBS to 1.
15150         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15151         exist, don't set REPLACE_WCSNRTOMBS to 1.
15152
15153 2010-04-05  Bruno Haible  <bruno@clisp.org>
15154
15155         ldexpl: Improve idiom.
15156         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15157         make sure to set HAVE_DECL_LDEXPL to 0.
15158
15159 2010-04-05  Jim Meyering  <meyering@redhat.com>
15160
15161         xstrtol-tests: convert to use init.sh
15162         * modules/xstrtol-tests (Files): Add tests/init.sh.
15163         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15164         Use Exit, not exit.
15165         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15166
15167         atexit-tests: convert to use init.sh
15168         * modules/atexit-tests (Files): Add tests/init.sh.
15169         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15170         Use Exit, not exit.
15171         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15172
15173         init.sh: fix typo
15174         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15175
15176         init.sh: make it easier for a test script to write to the tty, ...
15177         when using automake's parallel-tests mode.
15178         * tests/init.sh (stderr_fileno_): Define overridable variable.
15179         (warn_): New function, to use it.
15180         (fail_, skip_, framework_failure_): Use warn_.
15181
15182 2010-04-04  Bruno Haible  <bruno@clisp.org>
15183
15184         btowc: Avoid warning.
15185         * lib/btowc.c: Include <stdlib.h>.
15186         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15187
15188 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15189             Bruno Haible  <bruno@clisp.org>
15190
15191         wchar: Port to NetBSD 1.5.
15192         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15193         * lib/wctype.in.h (WEOF): Likewise.
15194
15195 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15196             Bruno Haible  <bruno@clisp.org>
15197
15198         Port extended stdio to NetBSD 1.5.
15199         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15200         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15201         older.
15202
15203 2010-04-04  Bruno Haible  <bruno@clisp.org>
15204
15205         string: Remove unused substitution.
15206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15207         HAVE_DECL_STRERROR.
15208         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15209
15210 2010-04-04  Bruno Haible  <bruno@clisp.org>
15211
15212         strtod: Avoid a possible C++ test error.
15213         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15214         set REPLACE_STRTOD.
15215
15216 2010-04-04  Bruno Haible  <bruno@clisp.org>
15217
15218         strerror: Update documentation.
15219         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15220
15221 2010-04-04  Bruno Haible  <bruno@clisp.org>
15222
15223         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15224         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15225         _GL_CXXALIAS_SYS_CAST.
15226
15227 2010-04-04  Bruno Haible  <bruno@clisp.org>
15228
15229         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15230         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15231         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15232         REPLACE_FREXPL to 1.
15233         * doc/posix-functions/frexpl.texi: Update documentation.
15234
15235 2010-04-04  Bruno Haible  <bruno@clisp.org>
15236
15237         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15238         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15239
15240 2010-04-04  Bruno Haible  <bruno@clisp.org>
15241
15242         Implement nanosleep for native Windows.
15243         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15244
15245 2010-04-04  Bruno Haible  <bruno@clisp.org>
15246
15247         math: Fix some C++ test errors on Solaris 8.
15248         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15249
15250 2010-04-04  Bruno Haible  <bruno@clisp.org>
15251
15252         math: Fix some C++ test errors on Cygwin.
15253         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15254         truncl): Provide declaration if the system does not have it.
15255         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15256         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15257         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15258         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15259         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15260         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15261         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15262         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15263         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15264         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15265         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15266         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15267         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15268         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15269         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15270         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15272         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15273         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15274         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15275         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15276         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15277
15278 2010-04-04  Bruno Haible  <bruno@clisp.org>
15279
15280         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15281         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15282         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15283         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15284         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15285         * m4/isinf.m4 (gl_ISINF): Likewise.
15286         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15287
15288 2010-04-04  Bruno Haible  <bruno@clisp.org>
15289
15290         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15291         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15292
15293 2010-04-04  Bruno Haible  <bruno@clisp.org>
15294
15295         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15296         * modules/tmpfile (configure.ac): Update.
15297
15298         tmpfile: Fix C++ test error on mingw.
15299         * lib/stdio.in.h (tmpfile): New declaration.
15300         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15301         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15302         * modules/tmpfile (Depends-on): Add stdio.
15303         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15304         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15305         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15306         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15307         REPLACE_TMPFILE.
15308         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15309
15310 2010-04-04  Bruno Haible  <bruno@clisp.org>
15311
15312         ioctl: Fix C++ test error on mingw.
15313         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15314         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15315         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15316
15317 2010-04-03  Bruno Haible  <bruno@clisp.org>
15318
15319         wcwidth: Fix C++ test error on mingw.
15320         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15322         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15323
15324 2010-04-03  Bruno Haible  <bruno@clisp.org>
15325
15326         nanosleep: Fix C++ test error on mingw.
15327         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15328         * lib/time.in.h (nanosleep): Use modern idiom.
15329         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15330         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15331         REPLACE_NANOSLEEP to 1.
15332         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15333         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15334
15335 2010-04-03  Bruno Haible  <bruno@clisp.org>
15336
15337         strptime: Fix C++ test error on mingw.
15338         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15339         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15340         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15341         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15342         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15343         not REPLACE_STRPTIME.
15344         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15345         REPLACE_STRPTIME.
15346
15347 2010-04-03  Bruno Haible  <bruno@clisp.org>
15348
15349         timegm: Fix C++ test error on mingw.
15350         * lib/time.in.h (timegm): Use modern idiom.
15351         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15352         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15353         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15354         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15355
15356 2010-04-03  Bruno Haible  <bruno@clisp.org>
15357
15358         timegm: Assume declaration if function exists.
15359         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15360         if it exists. Don't clobber ac_cv_func_timegm.
15361
15362 2010-04-03  Bruno Haible  <bruno@clisp.org>
15363
15364         time_r: Fix C++ test error on mingw.
15365         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15366         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15367         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15368         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15369         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15370
15371 2010-04-03  Bruno Haible  <bruno@clisp.org>
15372
15373         time_r: Minor updates.
15374         * modules/time_r (Description): Mention the provided functions.
15375         * lib/time_r.c: Don't include <string.h>.
15376         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15377         * doc/posix-functions/localtime_r.texi: Likewise.
15378
15379 2010-04-03  Bruno Haible  <bruno@clisp.org>
15380
15381         time: Fix regression introduced on 2010-03-08.
15382         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15383         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15384
15385 2010-04-03  Jim Meyering  <meyering@redhat.com>
15386
15387         maint.mk: don't silently disable project-specific syntax-check rules
15388         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15389         that they need to convert their project-specific syntax-check rules
15390         to use the new _sc_search_regexp.
15391
15392 2010-04-03  Bruno Haible  <bruno@clisp.org>
15393
15394         fchdir: Fix regression introduced on 2010-03-08.
15395         * lib/unistd.in.h (fchdir): Fix declaration.
15396         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15398         REPLACE_FCHDIR.
15399         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15400         REPLACE_FCHDIR.
15401
15402 2010-04-03  Bruno Haible  <bruno@clisp.org>
15403
15404         getpagesize: Fix C++ test error on mingw.
15405         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15406         system does not declare the function.
15407         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15408         declared.
15409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15410         HAVE_DECL_GETPAGESIZE.
15411         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15412
15413 2010-04-03  Bruno Haible  <bruno@clisp.org>
15414
15415         stdio: Make C++ tests work on mingw.
15416         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15417         does not declare the function.
15418
15419 2010-04-03  Bruno Haible  <bruno@clisp.org>
15420
15421         ftello: Fix C++ test error on mingw.
15422         * lib/stdio.in.h (ftello): Use modern idiom.
15423         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15424         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15425         is missing and that it needs to be replaced.
15426         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15427         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15428         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15429
15430 2010-04-03  Bruno Haible  <bruno@clisp.org>
15431
15432         fseeko: Fix C++ test error on mingw.
15433         * lib/stdio.in.h (fseeko): Use modern idiom.
15434         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15435         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15436         is missing and that it needs to be replaced.
15437         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15439         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15440
15441 2010-04-03  Bruno Haible  <bruno@clisp.org>
15442
15443         mkstemp: Fix C++ test error on mingw.
15444         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15445         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15446         function is missing and that it needs to be replaced.
15447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15448         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15449
15450 2010-04-03  Bruno Haible  <bruno@clisp.org>
15451
15452         stpncpy: Fix C++ test error on mingw.
15453         * lib/string.in.h (stpncpy): Use modern idiom.
15454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15455         function is missing and that it needs to be replaced.
15456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15457         REPLACE_STPNCPY.
15458         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15459
15460 2010-04-03  Bruno Haible  <bruno@clisp.org>
15461
15462         sys_stat: Fix C++ test error on mingw.
15463         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15464         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15465
15466 2010-04-03  Bruno Haible  <bruno@clisp.org>
15467
15468         pty: Update doc.
15469         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15470
15471 2010-04-03  Bruno Haible  <bruno@clisp.org>
15472
15473         unistd: Fix C++ test error on mingw.
15474         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15475
15476 2010-04-03  Bruno Haible  <bruno@clisp.org>
15477
15478         Update doc regarding mingw.
15479         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15480         * doc/glibc-functions/login_tty.texi: Likewise.
15481         * doc/glibc-functions/forkpty.texi: Likewise.
15482
15483 2010-04-03  Bruno Haible  <bruno@clisp.org>
15484
15485         stdlib: Avoid compilation failure of c-strtold on mingw.
15486         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15487
15488 2010-04-03  Bruno Haible  <bruno@clisp.org>
15489
15490         locale: Make C++ tests work on Cygwin and mingw.
15491         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15492         cannot provide the function.
15493         Reported by Simon Josefsson.
15494
15495 2010-04-03  Bruno Haible  <bruno@clisp.org>
15496
15497         localename: Port to MacOS X 10.6.
15498         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15499         memory layout of the locales in MacOS X 10.6 as well.
15500         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15501
15502 2010-04-02  Bruno Haible  <bruno@clisp.org>
15503
15504         gnulib-tool: Ensure that long-running tests are executed last.
15505         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15506         running tests after the one for the other tests.
15507
15508 2010-04-02  Bruno Haible  <bruno@clisp.org>
15509
15510         gnulib-tool: Ensure the tests in the main directory are executed first.
15511         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15512         start with the current directory.
15513
15514 2010-04-02  Bruno Haible  <bruno@clisp.org>
15515
15516         Tests for module 'havelib', moved here from GNU gettext.
15517         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15518         modifications.
15519         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15520         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15521         with modifications.
15522         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15523         modifications.
15524         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15525         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15526         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15527         with modifications.
15528         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15529         with modifications.
15530         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15531         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15532         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15533         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15534         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15535         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15536         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15537         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15538         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15539         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15540         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15541         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15542         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15543         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15544         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15545         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15546         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15547         with modifications.
15548         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15549         with modifications.
15550         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15551         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15552         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15553         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15554         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15555         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15556         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15557         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15558         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15559         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15560         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15561         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15562         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15563         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15564         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15565         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15566         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15567         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15568         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15569         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15570         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15571         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15572         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15573         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15574         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15575         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15576         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15577         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15578         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15579         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15580         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15581         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15582         * tests/havelib/rpathx/rpathx.c: New file, from
15583         gettext/autoconf-lib-link.
15584         * tests/havelib/rpathx/Makefile.am: New file, from
15585         gettext/autoconf-lib-link.
15586         * tests/havelib/rpathx/configure.ac: New file, from
15587         gettext/autoconf-lib-link with modifications.
15588         * tests/havelib/rpathy/rpathy.c: New file, from
15589         gettext/autoconf-lib-link.
15590         * tests/havelib/rpathy/Makefile.am: New file, from
15591         gettext/autoconf-lib-link.
15592         * tests/havelib/rpathy/configure.ac: New file, from
15593         gettext/autoconf-lib-link with modifications.
15594         * tests/havelib/rpathz/rpathz.c: New file, from
15595         gettext/autoconf-lib-link.
15596         * tests/havelib/rpathz/Makefile.am: New file, from
15597         gettext/autoconf-lib-link.
15598         * tests/havelib/rpathz/configure.ac: New file, from
15599         gettext/autoconf-lib-link with modifications.
15600         * tests/havelib/rpathlx/usex.c: New file, from
15601         gettext/autoconf-lib-link.
15602         * tests/havelib/rpathlx/Makefile.am: New file, from
15603         gettext/autoconf-lib-link.
15604         * tests/havelib/rpathlx/configure.ac: New file, from
15605         gettext/autoconf-lib-link with modifications.
15606         * tests/havelib/rpathly/usey.c: New file, from
15607         gettext/autoconf-lib-link.
15608         * tests/havelib/rpathly/Makefile.am: New file, from
15609         gettext/autoconf-lib-link.
15610         * tests/havelib/rpathly/configure.ac: New file, from
15611         gettext/autoconf-lib-link with modifications.
15612         * tests/havelib/rpathlz/usez.c: New file, from
15613         gettext/autoconf-lib-link.
15614         * tests/havelib/rpathlz/Makefile.am: New file, from
15615         gettext/autoconf-lib-link.
15616         * tests/havelib/rpathlz/configure.ac: New file, from
15617         gettext/autoconf-lib-link with modifications.
15618         * tests/havelib/rpathlyx/usey.c: New file, from
15619         gettext/autoconf-lib-link.
15620         * tests/havelib/rpathlyx/Makefile.am: New file, from
15621         gettext/autoconf-lib-link.
15622         * tests/havelib/rpathlyx/configure.ac: New file, from
15623         gettext/autoconf-lib-link with modifications.
15624         * tests/havelib/rpathlzyx/usez.c: New file, from
15625         gettext/autoconf-lib-link.
15626         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15627         gettext/autoconf-lib-link.
15628         * tests/havelib/rpathlzyx/configure.ac: New file, from
15629         gettext/autoconf-lib-link with modifications.
15630         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15631         with modifications.
15632
15633 2010-04-02  Bruno Haible  <bruno@clisp.org>
15634
15635         gnulib-tool: Create distributed built sources also for the tests.
15636         * gnulib-tool (func_create_testdir): Also generate distributed built
15637         sources in the tests directory.
15638
15639 2010-04-02  Bruno Haible  <bruno@clisp.org>
15640
15641         gnulib-tool: Obey user's environment variables.
15642         * gnulib-tool (func_create_testdir): When creating built sources,
15643         respect the environment variables for autoconf, automake, etc. given by
15644         the user.
15645
15646 2010-04-02  Bruno Haible  <bruno@clisp.org>
15647
15648         gnulib-tool: Provide the value of --m4-base to modules.
15649         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15650         of gl_m4_base.
15651
15652 2010-04-02  Eric Blake  <eblake@redhat.com>
15653
15654         maint.mk: fix some fallout
15655         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15656         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15657
15658 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15659
15660         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15661         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15662         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15663         (sc_cast_of_x_alloc_return_value): Likewise.
15664         (sc_cast_of_alloca_return_value): Likewise.
15665         (sc_space_tab): Likewise.
15666         (sc_prohibit_atoi_atof): Likewise.
15667         (sc_prohibit_magic_number_exit): Likewise.
15668         (sc_error_exit_success): Likewise.
15669         (sc_file_system): Likewise.
15670         (sc_prohibit_have_config_h): Likewise.
15671         (sc_require_config_h): Likewise.
15672         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15673         (sc_obsolete_symbols): Likewise.
15674         (sc_changelog): Likewise.
15675         (sc_program_name): Likewise.
15676         (sc_the_the): Likewise.
15677         (sc_trailing_blank): Likewise.
15678         (sc_two_space_separator_in_usage): Likewise.
15679         (sc_useless_cpp_parens): Likewise.
15680         (sc_GPL_version): Likewise.
15681         (sc_GFDL_version): Likewise.
15682         (sc_texinfo_acronym): Likewise.
15683         (sc_prohibit_cvs_keyword): Likewise.
15684         (sc_prohibit_stat_st_blocks): Likewise.
15685         (sc_prohibit_S_IS_definition): Likewise.
15686         (sc_redundant_const): Likewise.
15687         (sc_makefile_TAB_only_indentation): Likewise.
15688         (sc_m4_quote_check): Likewise.
15689         (sc_makefile_path_separator_check): Likewise.
15690         (sc_copyright_check): Likewise.
15691         (sc_Wundef_boolean): Likewise.
15692         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15693
15694         maint.mk: match 0 or more whitespace-before-function-call '('
15695         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15696         that have zero or two-and-more spaces between the function name
15697         and the open parenthesis.
15698         (sc_error_message_warn_fatal): Likewise.
15699         (sc_error_message_uppercase): Likewise.
15700         (sc_error_message_period): Likewise.
15701
15702 2010-03-31  Eric Blake  <eblake@redhat.com>
15703
15704         maint.mk: check for [ as well as test
15705         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15706         Based on a libvirt report by Matthias Bolte.
15707
15708         gnumakefile: don't squelch _version output
15709         * top/GNUmakefile (_version): Create one-shot dependency rather
15710         than using $(shell) when version must be regenerated.
15711         (_autoreconf): Run verbosely, by default.
15712
15713         sys_time: avoid compiler warnings
15714         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15715         unconditional, fixing regression from 2010-03-29.
15716         Reported by Simon Josefsson.
15717
15718 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15719
15720         maint.mk: s/_header_without_use/_sc_header_without_use/
15721         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15722         (sc_prohibit_assert_without_use): Use the new name.
15723         (sc_prohibit_close_stream_without_use): Likewise.
15724         (sc_prohibit_getopt_without_use): Likewise.
15725         (sc_prohibit_quotearg_without_use): Likewise.
15726         (sc_prohibit_quote_without_use): Likewise.
15727         (sc_prohibit_long_options_without_use): Likewise.
15728         (sc_prohibit_inttostr_without_use): Likewise.
15729         (sc_prohibit_ignore_value_without_use): Likewise.
15730         (sc_prohibit_error_without_use): Likewise.
15731         (sc_prohibit_xalloc_without_use): Likewise.
15732         (sc_prohibit_hash_without_use): Likewise.
15733         (sc_prohibit_hash_pjw_without_use): Likewise.
15734         (sc_prohibit_safe_read_without_use): Likewise.
15735         (sc_prohibit_argmatch_without_use): Likewise.
15736         (sc_prohibit_canonicalize_without_use): Likewise.
15737         (sc_prohibit_root_dev_ino_without_use): Likewise.
15738         (sc_prohibit_openat_without_use): Likewise.
15739         (sc_prohibit_c_ctype_without_use): Likewise.
15740         (sc_prohibit_signal_without_use): Likewise.
15741         (sc_prohibit_intprops_without_use): Likewise.
15742
15743 2010-03-30  Eric Blake  <eblake@redhat.com>
15744
15745         maint: improve module indicators
15746         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15747         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15748         columns, and avoid extra macro expansion.
15749
15750         fdopendir: work around FreeBSD bug
15751         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15752         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15753         * modules/dirent (Makefile.am): Substitute it.
15754         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15755         declaration.
15756         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15757         fix.
15758         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15759
15760 2010-03-29  Bruno Haible  <bruno@clisp.org>
15761
15762         Emit #pragma system_header after the inclusion guard, not before.
15763         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15764         guard that spans the entire file, not before. This enables an
15765         optimization in GCC's preprocessor.
15766         * lib/ctype.in.h: Likewise.
15767         * lib/dirent.in.h: Likewise.
15768         * lib/errno.in.h: Likewise.
15769         * lib/float.in.h: Likewise.
15770         * lib/getopt.in.h: Likewise.
15771         * lib/iconv.in.h: Likewise.
15772         * lib/langinfo.in.h: Likewise.
15773         * lib/locale.in.h: Likewise.
15774         * lib/math.in.h: Likewise.
15775         * lib/netdb.in.h: Likewise.
15776         * lib/netinet_in.in.h: Likewise.
15777         * lib/pty.in.h: Likewise.
15778         * lib/sched.in.h: Likewise.
15779         * lib/se-selinux.in.h: Likewise.
15780         * lib/search.in.h: Likewise.
15781         * lib/spawn.in.h: Likewise.
15782         * lib/stdarg.in.h: Likewise.
15783         * lib/stdint.in.h: Likewise.
15784         * lib/string.in.h: Likewise.
15785         * lib/strings.in.h: Likewise.
15786         * lib/sys_file.in.h: Likewise.
15787         * lib/sys_ioctl.in.h: Likewise.
15788         * lib/sys_time.in.h: Likewise.
15789         * lib/sys_times.in.h: Likewise.
15790         * lib/sys_utsname.in.h: Likewise.
15791         * lib/sys_wait.in.h: Likewise.
15792         * lib/sysexits.in.h: Likewise.
15793         * lib/wctype.in.h: Likewise.
15794
15795 2010-03-28  James Youngman  <jay@gnu.org>
15796
15797         save-cwd: don't leak a file descriptor when the caller execs.
15798         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15799         saved file descriptor.
15800         * modules/save-cwd (Depends-on): Depend on cloexec.
15801
15802 2010-03-29  Bruno Haible  <bruno@clisp.org>
15803
15804         Remove vestiges of fts-lgpl module.
15805         * lib/fts_.h: Assume GNULIB_FTS is 1.
15806         * lib/fts.c: Likewise.
15807         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15808
15809 2010-03-28  Bruno Haible  <bruno@clisp.org>
15810
15811         Fix definition of tests witness macro.
15812         * gnulib-tool (func_import): Fix definition of witness macro.
15813
15814 2010-03-28  Bruno Haible  <bruno@clisp.org>
15815
15816         Fix ioctl's protoype on glibc systems.
15817         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15818         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15819         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15820         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15821         signature. If not, arrange to replace the ioctl function.
15822         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15823         REPLACE_IOCTL.
15824         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15825         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15826         Reported by Ludovic Courtès <ludo@gnu.org>.
15827
15828 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15829
15830         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15831         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15832         made it so grep -r --include=GLOB* ... did not work.
15833
15834 2010-03-26  Jim Meyering  <meyering@redhat.com>
15835             Eric Blake  <eblake@redhat.com>
15836
15837         maint.mk: prohibit use of test's -o and -a operators
15838         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15839
15840 2010-03-28  Bruno Haible  <bruno@clisp.org>
15841
15842         Remove unused GNULIB_XYZ macro definitions.
15843         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15844         invocation.
15845
15846 2010-03-28  Bruno Haible  <bruno@clisp.org>
15847
15848         Mark privileged tests modules.
15849         * modules/idpriv-drop-tests (Status): New section.
15850         * modules/idpriv-droptemp-tests (Status): New section.
15851
15852 2010-03-28  Bruno Haible  <bruno@clisp.org>
15853
15854         Split C++ tests into separate tests modules.
15855         * modules/dirent-c++-tests: New file, extracted from
15856         modules/dirent-tests.
15857         * modules/dirent-tests: Depend on it.
15858         * modules/fcntl-h-c++-tests: New file, extracted from
15859         modules/fcntl-h-tests.
15860         * modules/fcntl-h-tests: Depend on it.
15861         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15862         * modules/glob-tests: Depend on it.
15863         * modules/iconv-h-c++-tests: New file, extracted from
15864         modules/iconv-h-tests.
15865         * modules/iconv-h-tests: Depend on it.
15866         * modules/langinfo-c++-tests: New file, extracted from
15867         modules/langinfo-tests.
15868         * modules/langinfo-tests: Depend on it.
15869         * modules/locale-c++-tests: New file, extracted from
15870         modules/locale-tests.
15871         * modules/locale-tests: Depend on it.
15872         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15873         * modules/math-tests: Depend on it.
15874         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15875         * modules/pty-tests: Depend on it.
15876         * modules/search-c++-tests: New file, extracted from
15877         modules/search-tests.
15878         * modules/search-tests: Depend on it.
15879         * modules/signal-c++-tests: New file, extracted from
15880         modules/signal-tests.
15881         * modules/signal-tests: Depend on it.
15882         * modules/spawn-c++-tests: New file, extracted from
15883         modules/spawn-tests.
15884         * modules/spawn-tests: Depend on it.
15885         * modules/stdio-c++-tests: New file, extracted from
15886         modules/stdio-tests.
15887         * modules/stdio-tests: Depend on it.
15888         * modules/stdlib-c++-tests: New file, extracted from
15889         modules/stdlib-tests.
15890         * modules/stdlib-tests: Depend on it.
15891         * modules/string-c++-tests: New file, extracted from
15892         modules/string-tests.
15893         * modules/string-tests: Depend on it.
15894         * modules/sys_ioctl-c++-tests: New file, extracted from
15895         modules/sys_ioctl-tests.
15896         * modules/sys_ioctl-tests: Depend on it.
15897         * modules/sys_select-c++-tests: New file, extracted from
15898         modules/sys_select-tests.
15899         * modules/sys_select-tests: Depend on it.
15900         * modules/sys_socket-c++-tests: New file, extracted from
15901         modules/sys_socket-tests.
15902         * modules/sys_socket-tests: Depend on it.
15903         * modules/sys_stat-c++-tests: New file, extracted from
15904         modules/sys_stat-tests.
15905         * modules/sys_stat-tests: Depend on it.
15906         * modules/sys_time-c++-tests: New file, extracted from
15907         modules/sys_time-tests.
15908         * modules/sys_time-tests: Depend on it.
15909         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15910         * modules/time-tests: Depend on it.
15911         * modules/unistd-c++-tests: New file, extracted from
15912         modules/unistd-tests.
15913         * modules/unistd-tests: Depend on it.
15914         * modules/wchar-c++-tests: New file, extracted from
15915         modules/wchar-tests.
15916         * modules/wchar-tests: Depend on it.
15917         * modules/wctype-c++-tests: New file, extracted from
15918         modules/wctype-tests.
15919         * modules/wctype-tests: Depend on it.
15920         Reported by Simon Josefsson.
15921
15922 2010-03-28  Bruno Haible  <bruno@clisp.org>
15923
15924         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15925         * gnulib-tool (func_exists_module): New function, extracted from
15926         func_verify_module.
15927         (func_verify_module): Use it.
15928         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15929         'foo' only if 'foo' exists.
15930         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15931         module.
15932
15933 2010-03-28  Bruno Haible  <bruno@clisp.org>
15934
15935         gnulib-tool: Add support for special categories of tests.
15936         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15937         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15938         (func_usage): Document them.
15939         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15940         inc_unportable_tests, inc_all_tests): New variables.
15941         (func_acceptable): Consider these variables.
15942         (func_modules_transitive_closure): Make it work when the 'Status' field
15943         consists of multiple words.
15944         (func_import): Store and restore the values of inc_cxx_tests,
15945         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15946         inc_all_tests in gnulib-comp.m4.
15947         (func_create_testdir): Set inc_all_tests to true.
15948         * doc/gnulib.texi (Extra tests modules): New section.
15949         Suggested by Jim Meyering.
15950
15951 2010-03-28  Bruno Haible  <bruno@clisp.org>
15952
15953         ansi-c++-opt: Allow turning off the C++ build by default.
15954         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15955         gl_CXX_CHOICE_DEFAULT_NO is defined.
15956         Requested by Eric Blake.
15957
15958 2010-03-28  Bruno Haible  <bruno@clisp.org>
15959
15960         unistd: Avoid #define replacements in C++ mode.
15961         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15962         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15963         setsockopt, shutdown, select): In C++, attach a warning to the function
15964         if possible, rather than #defining the symbol to a dysfunctional alias.
15965         Reported by John W. Eaton <jwe@gnu.org>.
15966
15967 2010-03-28  Bruno Haible  <bruno@clisp.org>
15968
15969         Fix link errors on mingw.
15970         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15971         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15972         $(LIBSOCKET).
15973         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15974         $(LIBSOCKET).
15975
15976 2010-03-28  Bruno Haible  <bruno@clisp.org>
15977             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15978
15979         lib-ignore: Determine different options for different compilers.
15980         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15981         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15982         Add comments.
15983         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15984         * NEWS: Mention the change.
15985
15986 2010-03-27  Bruno Haible  <bruno@clisp.org>
15987
15988         Remove unused GNULIB_XYZ macro definitions.
15989         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15990         * modules/fseek (configure.ac): Likewise.
15991         * modules/ioctl (configure.ac): Likewise.
15992         * modules/open (configure.ac): Likewise.
15993         * modules/stdlib-safer (configure.ac): Likewise.
15994
15995 2010-03-27  Bruno Haible  <bruno@clisp.org>
15996
15997         Add a remark about certain modules.
15998         * modules/malloc (Comment): New section.
15999         * modules/realloc (Comment): Likewise.
16000         * modules/sigpipe (Comment): Likewise.
16001
16002 2010-03-27  Bruno Haible  <bruno@clisp.org>
16003
16004         Resolve conflict between the two kinds of module indicators.
16005         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16006         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16007         * modules/canonicalize (configure.ac): Invoke
16008         gl_MODULE_INDICATOR_FOR_TESTS.
16009         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16010         GNULIB_XYZ.
16011         * tests/test-dirent-c++.cc: Likewise.
16012         * tests/test-dirent-safer.c: Likewise.
16013         * tests/test-dup2.c: Likewise.
16014         * tests/test-fchdir.c: Likewise.
16015         * tests/test-fcntl-h-c++.cc: Likewise.
16016         * tests/test-getopt.c: Likewise.
16017         * tests/test-getopt.h: Likewise.
16018         * tests/test-langinfo-c++.cc: Likewise.
16019         * tests/test-locale-c++.cc: Likewise.
16020         * tests/test-math-c++.cc: Likewise.
16021         * tests/test-pty-c++.cc: Likewise.
16022         * tests/test-search-c++.cc: Likewise.
16023         * tests/test-signal-c++.cc: Likewise.
16024         * tests/test-spawn-c++.cc: Likewise.
16025         * tests/test-stdio-c++.cc: Likewise.
16026         * tests/test-stdlib-c++.cc: Likewise.
16027         * tests/test-string-c++.cc: Likewise.
16028         * tests/test-sys_ioctl-c++.cc: Likewise.
16029         * tests/test-sys_select-c++.cc: Likewise.
16030         * tests/test-sys_socket-c++.cc: Likewise.
16031         * tests/test-sys_stat-c++.cc: Likewise.
16032         * tests/test-sys_time-c++.cc: Likewise.
16033         * tests/test-time-c++.cc: Likewise.
16034         * tests/test-unistd-c++.cc: Likewise.
16035         * tests/test-wchar-c++.cc: Likewise.
16036         * tests/uninorm/test-u8-nfc.c: Likewise.
16037         * tests/uninorm/test-u8-nfd.c: Likewise.
16038         * tests/uninorm/test-u8-nfkc.c: Likewise.
16039         * tests/uninorm/test-u8-nfkd.c: Likewise.
16040         * tests/uninorm/test-u16-nfc.c: Likewise.
16041         * tests/uninorm/test-u16-nfd.c: Likewise.
16042         * tests/uninorm/test-u16-nfkc.c: Likewise.
16043         * tests/uninorm/test-u16-nfkd.c: Likewise.
16044         * tests/uninorm/test-u32-nfc.c: Likewise.
16045         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16046         * tests/uninorm/test-u32-nfd.c: Likewise.
16047         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16048         * tests/uninorm/test-u32-nfkc.c: Likewise.
16049         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16050         * tests/uninorm/test-u32-nfkd.c: Likewise.
16051         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16052         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16053
16054 2010-03-27  Bruno Haible  <bruno@clisp.org>
16055
16056         Distinguish two kinds of module indicators.
16057         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16058         gl_MODULE_INDICATOR.
16059         (gl_MODULE_INDICATOR): New macro.
16060         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16061         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16062         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16063         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16064         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16065         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16066         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16067         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16068         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16069         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16070         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16071         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16072         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16073         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16074         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16075         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16076         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16077         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16078         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16079         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16080         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16081         * modules/cloexec (configure.ac): Likewise.
16082         * modules/getopt-gnu (configure.ac): Likewise.
16083         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16084         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16085         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16086         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16087
16088 2010-03-27  Bruno Haible  <bruno@clisp.org>
16089
16090         New module description field 'Comment'.
16091         * gnulib-tool: New option --extract-comment.
16092         (func_usage): Document it.
16093         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16094         (func_get_comment): New function.
16095         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16096
16097 2010-03-27  Bruno Haible  <bruno@clisp.org>
16098
16099         Addendum to 2010-02-07 commit.
16100         * gnulib-tool (func_usage): Document --extract-applicability option.
16101
16102 2010-03-27  Bruno Haible  <bruno@clisp.org>
16103
16104         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16105         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16106         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16107         rather than link errors.
16108
16109 2010-03-27  Bruno Haible  <bruno@clisp.org>
16110
16111         Avoid side effects from tests-related modules on the compilation of lib.
16112         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16113         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16114         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16115         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16116         macro.
16117         (func_import): Define a witness macro. Assign it a value that depends
16118         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16119         tests-related modules.
16120         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16121         Reported by Jim Meyering.
16122
16123 2010-03-27  Bruno Haible  <bruno@clisp.org>
16124
16125         Factorize common .m4 code.
16126         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16127         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16128         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16129         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16130         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16131         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16132         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16133         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16134         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16135         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16136         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16137         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16138         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16139         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16140         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16141         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16142         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16143         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16145         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16146         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16147         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16148         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16149         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16150         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16151         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16152         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16153         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16154         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16155         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16156         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16157         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16158
16159 2010-03-27  Bruno Haible  <bruno@clisp.org>
16160
16161         Fix a compilation error on Cygwin with g++ >= 4.3.
16162         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16163         if it is undefined or if we alias it to chmod.
16164         (lstat): Don't warn about the use of this function if it is undefined
16165         or if we alias it to stat.
16166         Reported by Simon Josefsson.
16167
16168 2010-03-27  Bruno Haible  <bruno@clisp.org>
16169
16170         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16171         * modules/getlogin (configure.ac): Update.
16172
16173         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16174         * modules/getlogin_r (configure.ac): Update.
16175
16176         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16177         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16178         * modules/inet_ntop (configure.ac): Update.
16179
16180         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16181         * modules/inet_pton (configure.ac): Update.
16182
16183         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16184         * modules/mbslen (configure.ac): Update.
16185
16186         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16187         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16188         * modules/forkpty (configure.ac): Update.
16189         * modules/openpty (configure.ac): Update.
16190
16191 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16192
16193         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16194         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16195
16196 2010-03-25  Eric Blake  <eblake@redhat.com>
16197
16198         maint: use pragma consistently across replacement headers
16199         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16200         * lib/dirent.in.h (system_header): Likewise.
16201         * lib/errno.in.h (system_header): Likewise.
16202         * lib/float.in.h (system_header): Likewise.
16203         * lib/getopt.in.h (system_header): Likewise.
16204         * lib/iconv.in.h (system_header): Likewise.
16205         * lib/inttypes.in.h (system_header): Likewise.
16206         * lib/langinfo.in.h (system_header): Likewise.
16207         * lib/locale.in.h (system_header): Likewise.
16208         * lib/math.in.h (system_header): Likewise.
16209         * lib/netdb.in.h (system_header): Likewise.
16210         * lib/netinet_in.in.h (system_header): Likewise.
16211         * lib/pty.in.h (system_header): Likewise.
16212         * lib/sched.in.h (system_header): Likewise.
16213         * lib/se-selinux.in.h (system_header): Likewise.
16214         * lib/search.in.h (system_header): Likewise.
16215         * lib/spawn.in.h (system_header): Likewise.
16216         * lib/stdarg.in.h (system_header): Likewise.
16217         * lib/stdint.in.h (system_header): Likewise.
16218         * lib/string.in.h (system_header): Likewise.
16219         * lib/strings.in.h (system_header): Likewise.
16220         * lib/sys_file.in.h (system_header): Likewise.
16221         * lib/sys_ioctl.in.h (system_header): Likewise.
16222         * lib/sys_socket.in.h (system_header): Likewise.
16223         * lib/sys_times.in.h (system_header): Likewise.
16224         * lib/sys_utsname.in.h (system_header): Likewise.
16225         * lib/sys_wait.in.h (system_header): Likewise.
16226         * lib/sysexits.in.h (system_header): Likewise.
16227         * lib/unistd.in.h (system_header): Likewise.
16228         * lib/wctype.in.h (system_header): Likewise.
16229
16230         arpa/inet: fix mingw compilation warning
16231         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16232         Reported by Matthew Bolte.
16233
16234 2010-03-25  Bruno Haible  <bruno@clisp.org>
16235
16236         Avoid collision between gnulib wrapper and libintl wrapper.
16237         * lib/printf.c (printf): Don't define if a printf wrapper is already
16238         defined in intl/printf.c.
16239         Reported by Michel Boaventura <michel@michelboaventura.com>.
16240
16241 2010-03-25  Bruno Haible  <bruno@clisp.org>
16242
16243         Use ANSI C.
16244         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16245
16246 2010-03-25  Bruno Haible  <bruno@clisp.org>
16247
16248         Minor formatting changes.
16249         * lib/acosl.c: Insert space before function argument list.
16250         * lib/argz.c: Likewise.
16251         * lib/asinl.c: Likewise.
16252         * lib/expl.c: Likewise.
16253         * lib/gen-uni-tables.c: Likewise.
16254         * lib/gettext.h: Likewise.
16255         * lib/glthread/lock.h: Likewise.
16256         * lib/tanl.c: Likewise.
16257         * lib/uniname/uniname.c: Likewise.
16258         * tests/test-idpriv-drop.c: Likewise.
16259         * tests/test-idpriv-droptemp.c: Likewise.
16260         * tests/test-lock.c: Likewise.
16261         * tests/test-tls.c: Likewise.
16262         * lib/argp-help.c: Insert space before function-like macro argument
16263         list.
16264         * lib/memcmp.c: Likewise.
16265         * tests/test-base64.c: Likewise.
16266         * lib/localename.c: Insert space before sizeof's argument list.
16267         * lib/safe-alloc.h: Likewise.
16268         * lib/file-set.h: Insert space before macro argument list.
16269         * tests/test-argp.c: Likewise.
16270         * lib/argp-namefrob.h: Insert space before function parameter list.
16271         * lib/getaddrinfo.c: Likewise.
16272         * lib/netdb.in.h: Likewise.
16273         * lib/parse-duration.h: Likewise.
16274         * lib/parse-duration.c: Likewise.
16275         * lib/poll.c: Likewise.
16276         * lib/select.c: Likewise.
16277         * lib/trim.h: Likewise.
16278         * tests/test-usleep.c: Likewise.
16279         * lib/ldexpl.c: Insert space before function parameter list and before
16280         function argument list.
16281         * lib/logl.c: Likewise.
16282         * lib/sqrtl.c: Likewise.
16283         * lib/trim.c: Likewise.
16284         * lib/cosl.c: Use GNU style indentation. Insert space before function
16285         argument list.
16286         * lib/sinl.c: Likewise.
16287         * lib/tsearch.c: Insert space after 'for'.
16288         Reported by Jim Meyering.
16289
16290 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16291
16292         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16293         config header before grepping, as it's not present before
16294         autoreconf/configure are run.  Reported by Simon Josefsson.
16295
16296 2010-03-23  Bruno Haible  <bruno@clisp.org>
16297
16298         pt_chown: Make it work with automake < 1.11.
16299         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16300         Reported by Simon Josefsson.
16301
16302 2010-03-23  Bruno Haible  <bruno@clisp.org>
16303
16304         pt_chown: Don't depend on GPLed modules.
16305         * lib/pt_chown.c: Don't include idpriv.h.
16306         (main): Don't drop privileges.
16307         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16308         Reported by Simon Josefsson.
16309
16310 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16311
16312         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16313         suggestions from karl@freefriends.org (Karl Berry).
16314
16315 2010-03-22  Eric Blake  <eblake@redhat.com>
16316
16317         gethostname: further tweaks
16318         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16319         are overriding gethostname.
16320         Suggested by Bruno Haible.
16321
16322 2010-03-21  Bruno Haible  <bruno@clisp.org>
16323
16324         Fix comments.
16325         * lib/forkpty.c (rpl_forkpty): Fix comment.
16326         * lib/openpty.c (rpl_openpty): Likewise.
16327         Reported by Eric Blake.
16328
16329 2010-03-22  Eric Blake  <eblake@redhat.com>
16330
16331         gethostname: fix build on mingw
16332         * lib/unistd.in.h (includes): Work around fact that mingw
16333         <winsock2.h> re-includes <unistd.h>, by avoiding any
16334         redeclarations if we are being included by <winsock2.h>.
16335         Reported by Matthias Bolte.
16336
16337 2010-03-21  Bruno Haible  <bruno@clisp.org>
16338
16339         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16340         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16341         modifications.
16342         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16343         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16344         provide the replacement.
16345         * modules/forkpty (Depends-on): Add openpty, login_tty.
16346         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16347         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16348         * doc/glibc-functions/forkpty.texi: More supported platforms.
16349         * config/srclist.txt: Add forkpty.c (commented).
16350
16351 2010-03-21  Bruno Haible  <bruno@clisp.org>
16352
16353         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16354         (Makefile.am): Verify that PTY_LIB is defined.
16355
16356         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16357
16358 2010-03-21  Bruno Haible  <bruno@clisp.org>
16359
16360         Tests for module 'login_tty'.
16361         * modules/login_tty-tests: New file.
16362         * tests/test-login_tty.c: New file.
16363
16364         New module 'login_tty'.
16365         * lib/login_tty.c: New file.
16366         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16367         * modules/login_tty: New file.
16368         * doc/glibc-functions/login_tty.texi: Mention the new module.
16369
16370 2010-03-21  Bruno Haible  <bruno@clisp.org>
16371
16372         login_tty: Documentation.
16373         * doc/glibc-functions/login_tty.texi: New file.
16374         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16375
16376 2010-03-21  Bruno Haible  <bruno@clisp.org>
16377
16378         pty: Consistent macro naming.
16379         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16380         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16381         * modules/pty (configure.ac): Update.
16382
16383 2010-03-21  Bruno Haible  <bruno@clisp.org>
16384
16385         Tests for openpty: Make stricter.
16386         * tests/test-openpty.c (main): Add test of canonical processing and
16387         erase.
16388         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16389
16390         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16391         * lib/openpty.c (openpty): New replacement function.
16392         * lib/pty.in.h: Include <termios.h>.
16393         (openpty): Update declaration. Add comments.
16394         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16395         is not declared, arrange to provide the replacement. Check for _getpty
16396         and posix_openpt.
16397         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16398         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16399         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16400         * modules/pty-tests (test_pty_c___LDADD): New variable.
16401         * doc/glibc-functions/openpty.texi: More supported platforms.
16402
16403 2010-03-21  Bruno Haible  <bruno@clisp.org>
16404
16405         setenv: Tweaks.
16406         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16407         the test program.
16408         * doc/posix-functions/setenv.texi: Update platforms list.
16409
16410 2010-03-21  Bruno Haible  <bruno@clisp.org>
16411
16412         New module 'unlockpt'.
16413         * lib/unlockpt.c: New file, from glibc with modifications.
16414         * m4/unlockpt.m4: New file.
16415         * modules/unlockpt: New file.
16416         * lib/stdlib.in.h (unlockpt): New declaration.
16417         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16418         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16419         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16420         HAVE_UNLOCKPT.
16421         * doc/posix-functions/unlockpt.texi: Mention the new module.
16422         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16423         * config/srclist.txt: Add unlockpt.c (commented).
16424
16425 2010-03-21  Jim Meyering  <meyering@redhat.com>
16426
16427         maint.mk: prohibit inclusion of "intprops.h" without use
16428         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16429
16430 2010-03-21  Bruno Haible  <bruno@clisp.org>
16431
16432         New module 'grantpt'.
16433         * lib/grantpt.c: New file, from glibc with modifications.
16434         * m4/grantpt.m4: New file.
16435         * modules/grantpt: New file.
16436         * lib/stdlib.in.h (grantpt): New declaration.
16437         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16438         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16439         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16440         HAVE_GRANTPT.
16441         * doc/posix-functions/grantpt.texi: Mention the new module.
16442         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16443         * config/srclist.txt: Add grantpt.c (commented).
16444
16445 2010-03-21  Bruno Haible  <bruno@clisp.org>
16446
16447         New module 'pt_chown'.
16448         * lib/pt_chown.c: New file, from glibc with modifications.
16449         * lib/pty-private.h: New file, from glibc with modifications.
16450         * modules/pt_chown: New file.
16451         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16452
16453 2010-03-21  Bruno Haible  <bruno@clisp.org>
16454
16455         Tests for module 'ptsname'.
16456         * modules/ptsname-tests: New file.
16457         * tests/test-ptsname.c: New file.
16458
16459         New module 'ptsname'.
16460         * lib/ptsname.c: New file, from glibc with modifications.
16461         * m4/ptsname.m4: New file.
16462         * modules/ptsname: New file.
16463         * lib/stdlib.in.h (ptsname): New declaration.
16464         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16465         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16466         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16467         HAVE_PTSNAME.
16468         * doc/posix-functions/ptsname.texi: Mention the new module.
16469         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16470         * config/srclist.txt: Add ptsname.c (commented).
16471
16472 2010-03-21  Bruno Haible  <bruno@clisp.org>
16473
16474         Tests for module 'ttyname_r'.
16475         * modules/ttyname_r-tests: New file.
16476         * tests/test-ttyname_r.c: New file.
16477
16478         New module 'ttyname_r'.
16479         * lib/ttyname_r.c: New file.
16480         * m4/ttyname_r.m4: New file.
16481         * modules/ttyname_r: New file.
16482         * lib/unistd.in.h (ttyname_r): New declaration.
16483         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16484         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16485         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16486         HAVE_TTYNAME_R.
16487         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16488         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16489
16490 2010-03-20  Bruno Haible  <bruno@clisp.org>
16491
16492         signal: Undefine macro definitions in C++ mode.
16493         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16494         sigfillset): Undefine macro definitions from the system header in C++
16495         mode.
16496         Reported by John W. Eaton <jwe@gnu.org>.
16497
16498 2010-03-20  Bruno Haible  <bruno@clisp.org>
16499
16500         Ensure no #include statements inside extern "C" { ... }.
16501         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16502         contain #include statements.
16503         * lib/time.in.h: Likewise.
16504
16505 2010-03-20  Bruno Haible  <bruno@clisp.org>
16506
16507         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16508         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16509         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16510         Reported by John W. Eaton <jwe@gnu.org>.
16511
16512 2010-03-20  Bruno Haible  <bruno@clisp.org>
16513
16514         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16515         Reported by Jim Meyering.
16516
16517 2010-03-20  Bruno Haible  <bruno@clisp.org>
16518
16519         pipe: Set errno upon failure.
16520         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16521         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16522         errno value in error message.
16523
16524 2010-03-20  Bruno Haible  <bruno@clisp.org>
16525             Jim Meyering  <meyering@redhat.com>
16526
16527         lchown: Avoid "unused variable" warning.
16528         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16529
16530 2010-03-20  Bruno Haible  <bruno@clisp.org>
16531
16532         Work around unlink() bug on MacOS X 10.5.6.
16533         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16534         attempting to unlink a parent directory.
16535         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16536         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16537         activate for the replacement function.
16538         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16539
16540 2010-03-20  Bruno Haible  <bruno@clisp.org>
16541
16542         Fix link errors on Solaris 8.
16543         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16544         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16545
16546 2010-03-19  Jim Meyering  <meyering@redhat.com>
16547
16548         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16549         The _LIBC implementation of build_range_exp correctly honors the
16550         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16551         However, the non-_LIBC implementation would ignore that syntax-bit
16552         flag and return REG_ERANGE unconditionally.
16553         This change makes it honor that flag.
16554         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16555         Make two pointer parameters "const".
16556         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16557         (parse_bracket_exp): Update caller.
16558
16559         regex.m4: correct the reversed range endpoint ([b-a]) test
16560         * m4/regex.m4: When requiring that [b-a] evoke failure,
16561         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16562         test pass once again for x86-based systems.
16563
16564 2010-03-19  Bruno Haible  <bruno@clisp.org>
16565
16566         scandir: Fix link error on Solaris 8.
16567         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16568         macros.
16569
16570 2010-03-19  Bruno Haible  <bruno@clisp.org>
16571
16572         getusershell: Fix documentation.
16573         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16574         module.
16575         * doc/glibc-functions/setusershell.texi: Likewise.
16576
16577         getusershell: Provide declaration, missing on Solaris 9.
16578         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16579         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16580         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16581         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16583         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16584         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16585         HAVE_GETUSERSHELL.
16586         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16587
16588 2010-03-19  Bruno Haible  <bruno@clisp.org>
16589
16590         wctype: Provide iswblank function.
16591         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16592         exists and is fine.
16593         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16594         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16595         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16596         * doc/posix-functions/iswblank.texi: Update.
16597
16598 2010-03-19  Bruno Haible  <bruno@clisp.org>
16599
16600         Tests of module 'pty' in C++ mode.
16601         * modules/pty-tests: New file.
16602         * tests/test-pty-c++.cc: New file.
16603         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16604
16605 2010-03-19  Eric Blake  <eblake@redhat.com>
16606
16607         logb: fix documentation
16608         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16609         1.5 declaration bug.
16610
16611         forkpty, openpty: prefer glibc's const-safe prototype
16612         * lib/forkpty.c (rpl_forkpty): New file.
16613         * lib/openpty.c (rpl_openpty): Likewise.
16614         * modules/forkpty (Files): Distribute it.
16615         * modules/openpty (Files): Likewise.
16616         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16617         check...
16618         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16619         replacement for for non-const BSD signature.
16620         * modules/pty (Makefile.am): Substitute witnesses.
16621         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16622         * tests/test-forkpty.c: Update signature check.
16623         * tests/test-openpty.c: Likewise.
16624         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16625         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16626
16627         forkpty, openpty: split functions into new modules
16628         * modules/pty (Makefile.am): Substitute new witnesses.
16629         (Libraries): Move library detection...
16630         * modules/forkpty: ...into new module.
16631         * modules/openpty: Another new module.
16632         * modules/pty-tests: Rename and split...
16633         * modules/forkpty-tests: ...to this...
16634         * modules/openpty-tests: ...and this.
16635         * tests/test-pty.c: Rename and split...
16636         * tests/test-forkpty.c: ...to this...
16637         * tests/test-openpty.c: ...and this.
16638         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16639         (gl_PTY): Split library searching...
16640         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16641         (gl_FORKPTY, gl_OPENPTY): New macros.
16642         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16643         * NEWS: Mention the split.
16644         * MODULES.html.sh (Misc): Document the modules.
16645         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16646         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16647
16648         pty: improve replacement header
16649         * lib/pty.in.h: New file.
16650         * modules/pty (Files): Ship it.
16651         (Makefile.am): Always build replacement.
16652         * m4/pty.m4: Rename...
16653         * m4/pty_h.m4: ...to this.
16654         (gl_PTY): Modernize setting of witness macros; update check of
16655         forkpty to take proper advantage of cache.
16656         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16657
16658         getopt: avoid compiler warning
16659         * lib/getopt.c (attribute_hidden): Remove unused macro.
16660
16661 2010-03-18  Bruno Haible  <bruno@clisp.org>
16662
16663         Fix link errors on Solaris 8.
16664         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16665         * modules/search-tests (test_search_c___LDADD): Likewise.
16666         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16667         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16668         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16669         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16670         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16671         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16672         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16673
16674 2010-03-18  Bruno Haible  <bruno@clisp.org>
16675
16676         Fix bug introduced on 2010-03-14.
16677         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16678         (gl_SPAWN_H): Require it.
16679         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16680         Reported by Simon Josefsson.
16681
16682 2010-03-18  Bruno Haible  <bruno@clisp.org>
16683
16684         Fix typo introduced on 2009-12-31.
16685         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16686         posix_spawn_file_actions_adddup2.
16687
16688 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16689         and Eric Blake  <eblake@redhat.com>
16690
16691         test-vc-list-files-git: make more robust
16692         * tests/test-vc-list-files-git.sh: Unset problematic environment
16693         variables.  Chain commands together.
16694
16695 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16696
16697         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16698         `AC_CHECK_DECL' invocation.
16699
16700 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16701
16702         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16703         appears before executable statements. Suggested by Petr Sumbera
16704         <Petr.Sumbera@Sun.COM>.
16705
16706 2010-03-14  Bruno Haible  <bruno@clisp.org>
16707
16708         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16709         portability problems. Instead use a simpler test.
16710         (main): Check that invalid arguments are rejected only on Linux.
16711
16712 2010-03-14  Bruno Haible  <bruno@clisp.org>
16713
16714         Fix bug introduced on 2009-12-31.
16715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16716         gl_PREREQ_SYS_H_WINSOCK2 always.
16717         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16718         SYS_SOCKET_H variable.
16719         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16720         Update comments.
16721         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16722         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16723         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16724         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16725         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16726
16727 2010-03-14  Bruno Haible  <bruno@clisp.org>
16728
16729         Fix values returned by sinl, cosl.
16730         * lib/trigl.h: Add specification comments.
16731         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16732         that combines the values from the precomputed table with the values of
16733         the Chebyshev polynomials.
16734
16735 2010-03-14  Bruno Haible  <bruno@clisp.org>
16736
16737         Fix compilation error when modules 'posix_spawn[p]' are not used.
16738         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16739         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16740
16741 2010-03-14  Bruno Haible  <bruno@clisp.org>
16742
16743         Fix compilation error on mingw when module 'time_r' is not used.
16744         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16745         is 1.
16746         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16747         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16748         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16749         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16750
16751 2010-03-14  Bruno Haible  <bruno@clisp.org>
16752
16753         Fix compilation error with Sun C.
16754         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16755         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16756         instead of GCC specific ULONG_LONG_MAX.
16757         * lib/xstrtoll.c: Likewise.
16758         * lib/xstrtoull.c: Likewise.
16759
16760 2010-03-13  Bruno Haible  <bruno@clisp.org>
16761
16762         Allow the user to disable C++ code and tests.
16763         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16764         (gl_PROG_ANSI_CXX): Require it.
16765
16766 2010-03-13  Bruno Haible  <bruno@clisp.org>
16767
16768         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16769         cases.
16770
16771 2010-03-13  Bruno Haible  <bruno@clisp.org>
16772
16773         Test that gnulib does not break the standard C++ headers.
16774         * tests/test-locale-c++2.cc: New file.
16775         * modules/locale-tests (Files): Add it.
16776         (Makefile.am): Compile it for test-locale-c++.
16777         * tests/test-math-c++2.cc: New file.
16778         * modules/math-tests (Files): Add it.
16779         (Makefile.am): Compile it for test-math-c++.
16780         * tests/test-signal-c++2.cc: New file.
16781         * modules/signal-tests (Files): Add it.
16782         (Makefile.am): Compile it for test-signal-c++.
16783         * tests/test-stdio-c++2.cc: New file.
16784         * modules/stdio-tests (Files): Add it.
16785         (Makefile.am): Compile it for test-stdio-c++.
16786         * tests/test-stdlib-c++2.cc: New file.
16787         * modules/stdlib-tests (Files): Add it.
16788         (Makefile.am): Compile it for test-stdlib-c++.
16789         * tests/test-string-c++2.cc: New file.
16790         * modules/string-tests (Files): Add it.
16791         (Makefile.am): Compile it for test-string-c++.
16792         * tests/test-time-c++2.cc: New file.
16793         * modules/time-tests (Files): Add it.
16794         (Makefile.am): Compile it for test-time-c++.
16795         Reported by John W. Eaton <jwe@gnu.org>.
16796
16797 2010-03-13  Bruno Haible  <bruno@clisp.org>
16798
16799         * gnulib-tool (func_usage): Clarify which options are available for
16800         --create-testdir and --create-megatestdir.
16801
16802 2010-03-13  Bruno Haible  <bruno@clisp.org>
16803
16804         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16805         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16806         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16807         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16808         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16809         when appropriate.
16810         Reported by Jim Meyering.
16811
16812 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16813
16814         * gnulib-tool (func_import): Explain origin of code.
16815
16816 2010-03-12  Bruno Haible  <bruno@clisp.org>
16817
16818         Fix problem with automake's definition of CXXLINK.
16819         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16820         Reported by Simon Josefsson and Ludovic Courtès.
16821
16822 2010-03-12  Bruno Haible  <bruno@clisp.org>
16823
16824         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16825         stable releases.
16826
16827 2010-03-11  Bruno Haible  <bruno@clisp.org>
16828
16829         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16830         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16831         whether the system provides one variant or multiple variants of the
16832         function.
16833         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16834         C++ compilers.
16835         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16836         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16837         Reported by Jim Meyering.
16838
16839 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16840
16841         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16842
16843 2010-03-08  Bruno Haible  <bruno@clisp.org>
16844
16845         gnulib-tool: Add support for --libtool in --create-testdir.
16846         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16847         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16848
16849 2010-03-08  Eric Blake  <eblake@redhat.com>
16850
16851         gnulib-tool.texi: mention possibility of git submodule
16852         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16853         submodules.
16854         * doc/.gitignore: Ignore another generated file.
16855
16856 2010-03-08  Karl Berry  <karl@gnu.org>
16857
16858         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16859         of committing gnulib files while skipping others.
16860
16861 2010-03-07  Bruno Haible  <bruno@clisp.org>
16862
16863         Tests of module 'wctype' in C++ mode.
16864         * tests/test-wctype-c++.cc: New file.
16865         * modules/wctype-tests (Files): Add it and tests/signature.h.
16866         (Depends-on): Add ansi-c++-opt.
16867         (Makefile.am): Arrange to compile and run test-wctype-c++.
16868
16869         Tests of module 'wchar' in C++ mode.
16870         * tests/test-wchar-c++.cc: New file.
16871         * modules/wchar-tests (Files): Add it and tests/signature.h.
16872         (Depends-on): Add ansi-c++-opt.
16873         (Makefile.am): Arrange to compile and run test-wchar-c++.
16874         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16875         gl_MODULE_INDICATOR.
16876
16877         Tests of module 'unistd' in C++ mode.
16878         * tests/test-unistd-c++.cc: New file.
16879         * modules/unistd-tests (Files): Add it and tests/signature.h.
16880         (Depends-on): Add ansi-c++-opt.
16881         (Makefile.am): Arrange to compile and run test-unistd-c++.
16882         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16883         gl_MODULE_INDICATOR.
16884
16885         Tests of module 'time' in C++ mode.
16886         * tests/test-time-c++.cc: New file.
16887         * modules/time-tests (Files): Add it and tests/signature.h.
16888         (Depends-on): Add ansi-c++-opt.
16889         (Makefile.am): Arrange to compile and run test-time-c++.
16890         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16891
16892         Tests of module 'sys_time' in C++ mode.
16893         * tests/test-sys_time-c++.cc: New file.
16894         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16895         (Depends-on): Add ansi-c++-opt.
16896         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16897         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16898         gl_MODULE_INDICATOR.
16899
16900         Tests of module 'sys_stat' in C++ mode.
16901         * tests/test-sys_stat-c++.cc: New file.
16902         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16903         (Depends-on): Add ansi-c++-opt.
16904         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16905         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16906         gl_MODULE_INDICATOR.
16907
16908         Tests of module 'sys_socket' in C++ mode.
16909         * tests/test-sys_socket-c++.cc: New file.
16910         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16911         (Depends-on): Add ansi-c++-opt.
16912         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16913         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16914         gl_MODULE_INDICATOR.
16915
16916         Tests of module 'sys_select' in C++ mode.
16917         * tests/test-sys_select-c++.cc: New file.
16918         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16919         (Depends-on): Add ansi-c++-opt.
16920         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16921         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16922         gl_MODULE_INDICATOR.
16923
16924         Tests of module 'sys_ioctl' in C++ mode.
16925         * tests/test-sys_ioctl-c++.cc: New file.
16926         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16927         (Depends-on): Add ansi-c++-opt.
16928         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16929         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16930         gl_MODULE_INDICATOR.
16931
16932         Tests of module 'string' in C++ mode.
16933         * tests/test-string-c++.cc: New file.
16934         * modules/string-tests (Files): Add it and tests/signature.h.
16935         (Depends-on): Add ansi-c++-opt.
16936         (Makefile.am): Arrange to compile and run test-string-c++.
16937         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16938         gl_MODULE_INDICATOR.
16939
16940         Tests of module 'stdlib' in C++ mode.
16941         * tests/test-stdlib-c++.cc: New file.
16942         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16943         (Depends-on): Add ansi-c++-opt.
16944         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16945         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16946         gl_MODULE_INDICATOR.
16947
16948         Tests of module 'stdio' in C++ mode.
16949         * tests/test-stdio-c++.cc: New file.
16950         * modules/stdio-tests (Files): Add it and tests/signature.h.
16951         (Depends-on): Add ansi-c++-opt.
16952         (Makefile.am): Arrange to compile and run test-stdio-c++.
16953         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16954         gl_MODULE_INDICATOR.
16955
16956         Tests of module 'spawn' in C++ mode.
16957         * tests/test-spawn-c++.cc: New file.
16958         * modules/spawn-tests (Files): Add it and tests/signature.h.
16959         (Depends-on): Add ansi-c++-opt.
16960         (Makefile.am): Arrange to compile and run test-spawn-c++.
16961         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16962         gl_MODULE_INDICATOR.
16963
16964         Tests of module 'signal' in C++ mode.
16965         * tests/test-signal-c++.cc: New file.
16966         * modules/signal-tests (Files): Add it and tests/signature.h.
16967         (Depends-on): Add ansi-c++-opt.
16968         (Makefile.am): Arrange to compile and run test-signal-c++.
16969         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16970         gl_MODULE_INDICATOR.
16971
16972         Tests of module 'search' in C++ mode.
16973         * tests/test-search-c++.cc: New file.
16974         * modules/search-tests (Files): Add it and tests/signature.h.
16975         (Depends-on): Add ansi-c++-opt.
16976         (Makefile.am): Arrange to compile and run test-search-c++.
16977         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16978         gl_MODULE_INDICATOR.
16979
16980         Tests of module 'math' in C++ mode.
16981         * tests/test-math-c++.cc: New file.
16982         * modules/math-tests (Files): Add it and tests/signature.h.
16983         (Depends-on): Add ansi-c++-opt.
16984         (Makefile.am): Arrange to compile and run test-math-c++.
16985         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16986
16987         Tests of module 'locale' in C++ mode.
16988         * tests/test-locale-c++.cc: New file.
16989         * modules/locale-tests (Files): Add it and tests/signature.h.
16990         (Depends-on): Add ansi-c++-opt.
16991         (Makefile.am): Arrange to compile and run test-locale-c++.
16992         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16993         gl_MODULE_INDICATOR.
16994
16995         Tests of module 'langinfo' in C++ mode.
16996         * tests/test-langinfo-c++.cc: New file.
16997         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16998         (Depends-on): Add ansi-c++-opt.
16999         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17000         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17001         gl_MODULE_INDICATOR.
17002
17003         Tests of module 'iconv-h' in C++ mode.
17004         * tests/test-iconv-h-c++.cc: New file.
17005         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17006         (Depends-on): Add ansi-c++-opt.
17007         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17008
17009         Tests of module 'glob' in C++ mode.
17010         * tests/test-glob-c++.cc: New file.
17011         * modules/glob-tests (Files): Add it.
17012         (Depends-on): Add ansi-c++-opt.
17013         (Makefile.am): Arrange to compile and run test-glob-c++.
17014
17015         Tests of module 'fcntl-h' in C++ mode.
17016         * tests/test-fcntl-h-c++.cc: New file.
17017         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17018         (Depends-on): Add ansi-c++-opt.
17019         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17020         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17021         gl_MODULE_INDICATOR.
17022
17023         Tests of module 'dirent' in C++ mode.
17024         * tests/test-dirent-c++.cc: New file.
17025         * modules/dirent-tests (Files): Add it and tests/signature.h.
17026         (Depends-on): Add ansi-c++-opt.
17027         (Makefile.am): Arrange to compile and run test-dirent-c++.
17028         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17029         gl_MODULE_INDICATOR.
17030
17031         New module 'ansi-c++-opt'.
17032         * modules/ansi-c++-opt: New file.
17033         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17034
17035         Document C++ namespace mode.
17036         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17037
17038         wctype: Avoid #define replacements in C++ mode.
17039         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17040         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17041         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17042         In C++, define a namespaced alias symbol.
17043         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17044         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17045         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17046         rule.
17047
17048         wchar: Avoid #define replacements in C++ mode.
17049         * lib/wchar.in.h: Include c++defs.h.
17050         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17051         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17052         symbol.
17053         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17054         * modules/wchar (Depends-on): Add c++defs.
17055         (Makefile.am): Update wchar.h rule.
17056
17057         unistd: Avoid #define replacements in C++ mode.
17058         * lib/unistd.in.h: Include c++defs.h.
17059         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17060         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17061         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17062         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17063         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17064         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17065         symbol.
17066         (environ): Update.
17067         * modules/unistd (Depends-on): Add c++defs.
17068         (Makefile.am): Update unistd.h rule.
17069
17070         time: Avoid #define replacements in C++ mode.
17071         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17072         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17073         define a namespaced alias symbol.
17074         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17075         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17076         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17077         * modules/time (Depends-on): Add c++defs, warn-on-use.
17078         (Makefile.am): Update time.h rule.
17079         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17080         * modules/nanosleep (configure.ac): Likewise.
17081         * modules/strptime (configure.ac): Likewise.
17082         * modules/timegm (configure.ac): Likewise.
17083
17084         sys_time: Avoid #define replacements in C++ mode.
17085         * lib/sys_time.in.h: Include c++defs.h.
17086         (gettimeofday): In C++, define a namespaced alias symbol.
17087         * modules/sys_time (Depends-on): Add c++defs.
17088         (Makefile.am): Update sys/time.h rule.
17089
17090         sys_stat: Avoid #define replacements in C++ mode.
17091         * lib/sys_stat.in.h: Include c++defs.h.
17092         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17093         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17094         namespaced alias symbol.
17095         In C++, define a namespaced alias symbol.
17096         * modules/sys_stat (Depends-on): Add c++defs.
17097         (Makefile.am): Update sys/stat.h rule.
17098
17099         sys_socket: Avoid #define replacements in C++ mode.
17100         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17101         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17102         definitions also when the system has a <sys/socket.h>.
17103         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17104         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17105         In C++, define a namespaced alias symbol.
17106         * modules/sys_socket (Depends-on): Add c++defs.
17107         (Makefile.am): Update sys/socket.h rule.
17108
17109         sys_select: Avoid #define replacements in C++ mode.
17110         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17111         definitions also when the system has a <sys/select.h>.
17112         (select): In C++, define a namespaced alias symbol.
17113         * modules/sys_select (Depends-on): Add c++defs.
17114         (Makefile.am): Update sys/select.h rule.
17115
17116         sys_ioctl: Avoid #define replacements in C++ mode.
17117         * lib/sys_ioctl.in.h: Include c++defs.h.
17118         (ioctl): In C++, define a namespaced alias symbol.
17119         * modules/sys_ioctl (Depends-on): Add c++defs.
17120         (Makefile.am): Update sys/ioctl.h rule.
17121
17122         string: Avoid #define replacements in C++ mode.
17123         * lib/string.in.h: Include c++defs.h.
17124         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17125         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17126         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17127         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17128         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17129         * modules/string (Depends-on): Add c++defs.
17130         (Makefile.am): Update string.h rule.
17131
17132         stdlib: Avoid #define replacements in C++ mode.
17133         * lib/stdlib.in.h: Include c++defs.h.
17134         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17135         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17136         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17137         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17138         symbol.
17139         * modules/stdlib (Depends-on): Add c++defs.
17140         (Makefile.am): Update stdlib.h rule.
17141
17142         stdio: Avoid #define replacements in C++ mode.
17143         * lib/stdio.in.h: Include c++defs.h.
17144         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17145         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17146         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17147         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17148         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17149         namespaced alias symbol.
17150         * modules/stdio (Depends-on): Add c++defs.
17151         (Makefile.am): Update stdio.h rule.
17152
17153         spawn: Avoid #define replacements in C++ mode.
17154         * lib/spawn.in.h: Include c++defs.h.
17155         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17156         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17157         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17158         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17159         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17160         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17161         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17162         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17163         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17164         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17165         In C++, define a namespaced alias symbol.
17166         * modules/spawn (Depends-on): Add c++defs.
17167         (Makefile.am): Update spawn.h rule.
17168
17169         signal: Avoid #define replacements in C++ mode.
17170         * lib/signal.in.h: Include c++defs.h.
17171         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17172         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17173         namespaced alias symbol.
17174         * modules/signal (Depends-on): Add c++defs.
17175         (Makefile.am): Update signal.h rule.
17176
17177         search: Avoid #define replacements in C++ mode.
17178         * lib/search.in.h: Include c++defs.h.
17179         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17180         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17181         symbol.
17182         * modules/search (Depends-on): Add c++defs.
17183         (Makefile.am): Update search.h rule.
17184
17185         math: Avoid #define replacements in C++ mode.
17186         * lib/math.in.h: Include c++defs.h.
17187         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17188         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17189         trunc, truncl): In C++, define a namespaced alias symbol.
17190         * modules/math (Depends-on): Add c++defs.
17191         (Makefile.am): Update math.h rule.
17192
17193         locale: Avoid #define replacements in C++ mode.
17194         * lib/locale.in.h: Include c++defs.h.
17195         (duplocale): In C++, define a namespaced alias symbol.
17196         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17197         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17198         * modules/locale (Depends-on): Add c++defs.
17199         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17200
17201         langinfo: Avoid #define replacements in C++ mode.
17202         * lib/langinfo.in.h: Include c++defs.h.
17203         (nl_langinfo): In C++, define a namespaced alias symbol.
17204         * modules/langinfo (Depends-on): Add c++defs.
17205         (Makefile.am): Update langinfo.h rule.
17206
17207         iconv-h: Avoid #define replacements in C++ mode.
17208         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17209         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17210         symbol.
17211         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17212         whenever iconv is present.
17213         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17214         (Makefile.am): Update iconv.h rule.
17215
17216         glob: Avoid #define replacements in C++ mode.
17217         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17218         (_gl_glob_errfunc_fn): New type.
17219         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17220         symbol.
17221         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17222         (Makefile.am): Update glob.h rule.
17223
17224         fcntl-h: Avoid #define replacements in C++ mode.
17225         * lib/fcntl.in.h: Include c++defs.h.
17226         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17227         * modules/fcntl-h (Depends-on): Add c++defs.
17228         (Makefile.am): Update fcntl.h rule.
17229
17230         dirent: Avoid #define replacements in C++ mode.
17231         * lib/dirent.in.h: Include c++defs.h.
17232         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17233         namespaced alias symbol.
17234         (dirfd): Update declaration.
17235         * modules/dirent (Depends-on): Add c++defs.
17236         (Makefile.am): Update dirent.h rule.
17237
17238         ctype: Make it usable in C++ code.
17239         * lib/ctype.in.h: Include c++defs.h.
17240         (isblank): Declare as extern "C".
17241         * modules/ctype (Depends-on): Add c++defs.
17242         (Makefile.am): Update ctype.h rule.
17243
17244         New module 'c++defs'.
17245         * modules/c++defs: New file.
17246         * build-aux/c++defs.h: New file.
17247         Reported by John W. Eaton <jwe@gnu.org>.
17248
17249 2010-03-07  Bruno Haible  <bruno@clisp.org>
17250
17251         logb: Provide missing declaration for Cygwin.
17252         * lib/math.in.h (logb): New declaration.
17253         * m4/logb.m4: New file.
17254         * modules/logb (Files): Add m4/logb.m4.
17255         (Depends-on): Add math.
17256         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17257         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17259         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17260         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17261
17262 2010-03-07  Bruno Haible  <bruno@clisp.org>
17263
17264         Fix test-cond link error.
17265         * tests/test-cond.c: Include <stdio.h>.
17266
17267 2010-03-07  Bruno Haible  <bruno@clisp.org>
17268
17269         Fix test-dirent-safer link error.
17270         * modules/dirent-safer-tests (Makefile.am): Define
17271         test_dirent_safer_LDADD.
17272
17273 2010-03-07  Bruno Haible  <bruno@clisp.org>
17274
17275         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17276         among default module list.
17277
17278 2010-03-07  Bruno Haible  <bruno@clisp.org>
17279
17280         Fix link error on platforms with GNU libiconv.
17281         * modules/unistr/u8-strcoll-tests (Makefile): Define
17282         test_u8_strcoll_LDADD.
17283         * modules/unistr/u16-strcoll-tests (Makefile): Define
17284         test_u16_strcoll_LDADD.
17285         * modules/unistr/u32-strcoll-tests (Makefile): Define
17286         test_u32_strcoll_LDADD.
17287
17288 2010-03-07  Bruno Haible  <bruno@clisp.org>
17289
17290         Use POSIX declarations for socket functions.
17291         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17292         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17293         rpl_sendto): Change declaration to match POSIX.
17294         * lib/connect.c (rpl_connect): Likewise.
17295         * lib/accept.c (rpl_accept): Likewise.
17296         * lib/bind.c (rpl_bind): Likewise.
17297         * lib/getpeername.c (rpl_getpeername): Likewise.
17298         * lib/getsockname.c (rpl_getsockname): Likewise.
17299         * lib/recv.c (rpl_recv): Likewise.
17300         * lib/send.c (rpl_send): Likewise.
17301         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17302         * lib/sendto.c (rpl_sendto): Likewise.
17303
17304 2010-03-06  Bruno Haible  <bruno@clisp.org>
17305
17306         Clarify access, euidaccess, faccessat.
17307         * doc/posix-functions/faccessat.texi: Mention security problem under
17308         "Other problems", not "Portability problems".
17309         * doc/posix-functions/access.texi: Likewise. Mention a related security
17310         problem.
17311         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17312         * lib/euidaccess.c: Add comments about platforms.
17313         * lib/unistd.in.h (access, euidaccess): Add warnings.
17314
17315 2010-03-07  Bruno Haible  <bruno@clisp.org>
17316
17317         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17318         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17319         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17320         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17321         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17322         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17323         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17324         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17325         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17326         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17327         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17328         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17329         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17330         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17331         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17332         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17333         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17334         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17335         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17336         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17337         Likewise.
17338         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17339         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17340         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17341         Likewise.
17342         * tests/test-spawn.c (main): Make it work when
17343         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17344
17345 2010-03-07  Bruno Haible  <bruno@clisp.org>
17346
17347         Fix incorrect Makefile.am generation in German locale.
17348         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17349         Execute sed command with character range in C locale.
17350
17351 2010-03-06  Bruno Haible  <bruno@clisp.org>
17352
17353         Tests for module 'iconv-h'.
17354         * modules/iconv-h-tests: New file.
17355         * tests/test-iconv-h.c: New file.
17356
17357         New module 'iconv-h'.
17358         * modules/iconv-h: New file.
17359         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17360         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17361         (configure.ac): Remove gl_ICONV_H.
17362         (Makefile.am): Remove rule for iconv.h.
17363
17364 2010-03-06  Bruno Haible  <bruno@clisp.org>
17365
17366         More consistent naming of *.m4 files.
17367         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17368         * modules/wctype (Files): Update.
17369
17370         More consistent naming of *.m4 files.
17371         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17372         * modules/wchar (Files): Update.
17373
17374 2010-03-06  Jim Meyering  <meyering@redhat.com>
17375
17376         euidaccess: relax license to LGPLv2+
17377         * modules/euidaccess (License): Relax to LGPLv2+.
17378
17379 2010-03-06  Bruno Haible  <bruno@clisp.org>
17380
17381         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17382         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17383         (Makefile.am): Augment lib_SOURCES instead.
17384
17385 2010-03-04  Jim Meyering  <meyering@redhat.com>
17386
17387         utime: remove obsolete module
17388         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17389         unnecessary for years, and has been marked as obsolete for 10 months.
17390         * modules/utime: Remove file.
17391         * lib/utime.c: Remove file.
17392         * m4/utime.m4: Remove file.
17393         * m4/utimes-null.m4: Remove file.
17394         * doc/posix-functions/utime.texi (utime): Remove reference to
17395         the module.  Move the sole "fixed by gnulib" item into the
17396         "problems not fixed by Gnulib" list.
17397         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17398
17399 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17400
17401         * modules/exit (License): Relax license to LGPLv2+.
17402         (Status): Mark as obsolete.
17403         * NEWS: Mention deprecated 'exit' module.
17404         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17405         of now obsolete 'exit'.
17406
17407 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17408
17409         fts-lgpl: remove unused module
17410         * modules/fts-lgpl: Remove.
17411         * MODULES.html.sh (func_all_modules): Adjust.
17412         * check-module (find_included_lib_files): Adjust.
17413         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17414
17415 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17416
17417         copy-acl: enhance Solaris ACL error handling
17418         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17419         * lib/set-mode-acl.c (qset_acl): Likewise.
17420
17421 2010-03-02  Bruno Haible  <bruno@clisp.org>
17422
17423         spawn: Don't override the system defined values on FreeBSD 8.
17424         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17425         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17426         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17427         if HAVE_POSIX_SPAWN is 1.
17428         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17429
17430 2010-03-01  Bruno Haible  <bruno@clisp.org>
17431
17432         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17433         regarding Automake.
17434
17435 2010-02-25  Bruno Haible  <bruno@clisp.org>
17436
17437         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17438         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17439         setting, not afterwards.
17440         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17441
17442 2010-02-24  Eric Blake  <eblake@redhat.com>
17443
17444         bootstrap, git-version-gen: use timestamp
17445         * build-aux/git-version-gen (scriptversion): Force UTC.
17446         * build-aux/bootstrap (scriptversion): New variable.
17447
17448         bootstrap: allow older git
17449         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17450         older than 1.6.4.  Requested by the libvirt project.
17451
17452 2010-02-23  Eric Blake  <eblake@redhat.com>
17453
17454         warn-on-use: work with old autoconf
17455         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17456         AS_VAR semantics of autoconf 2.60.
17457         Reported by Bruno Haible.
17458
17459         bootstrap: improve some comments
17460         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17461         clarification comments.
17462
17463         gettimeofday: provide correct function
17464         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17465         when replacement is declared, otherwise provide gettimeofday.
17466         Reported by Michael Goffioul.
17467
17468 2010-02-23  Jim Meyering  <meyering@redhat.com>
17469
17470         lib-ignore: relax license to "unlimited", not LGPLv2+
17471         * modules/lib-ignore (License): Relax to "unlimited".
17472
17473 2010-02-23  Jim Meyering  <meyering@redhat.com>
17474
17475         lib-ignore: relax license to LGPLv2+
17476         * modules/lib-ignore (License): Relax to LGPLv2+.
17477
17478 2010-02-22  Eric Blake  <eblake@redhat.com>
17479
17480         lseek: avoid bash 3.2 broken pipe bug
17481         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17482         warning from bash 3.2.
17483         Reported by Ben Pfaff, with analysis from Bruno Haible.
17484
17485         bootstrap: support non-FSF copyright holder
17486         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17487         bootstrap.conf override of COPYRIGHT_HOLDER.
17488         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17489
17490         bootstrap: interoperate with gettext 0.14.1
17491         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17492
17493         bootstrap: allow for alternate submodule location
17494         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17495         hardcoding submodule location.
17496         (gnulib_mk): Allow direct use of Makefile.am.
17497
17498         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17499         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17500         rather than reconfiguring where the submodule points.
17501
17502         gettimeofday: restore support for platforms that lack function
17503         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17504         replacement if function is missing.
17505         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17506         * modules/sys_time (Makefile.am): Substitute it.
17507         * lib/sys_time.in.h (gettimeofday): Check it.
17508         Reported by Michael Goffioul.
17509
17510 2010-02-21  Bruno Haible  <bruno@clisp.org>
17511
17512         * lib/stdio.in.h (obstack_printf): Fix typo.
17513
17514 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17515
17516         vc-list-files: use bzr ls's -R option
17517         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17518         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17519
17520 2010-02-21  Jim Meyering  <meyering@redhat.com>
17521
17522         init.sh: fix EXEEXT shims to work also for names like test-prog
17523         * tests/init.sh: Re-exec a better shell, when needed.
17524         If the current shell lacks support for posix $(...), an init.sh-using
17525         test will now try to find a shell that supports that.  If EXEEXT is
17526         nonempty, we also require support for hyphen-in-alias-name and shell
17527         substitutions like ${var#glob}.  Failure to find such a shell results
17528         in a skipped test.
17529
17530 2010-02-21  Bruno Haible  <bruno@clisp.org>
17531
17532         Really work around around "broken pipe" error message from bash 3.2.
17533         * gnulib-tool (func_reset_sigpipe): Remove function.
17534         (echo): In bash 3.2, define to a function that uses printf.
17535         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17536
17537 2010-02-20  Bruno Haible  <bruno@clisp.org>
17538
17539         Restore support for automake 1.9.6 with autoconf 2.61.
17540         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17541         Reported by James Youngman <jay@gnu.org>.
17542
17543 2010-02-20  Bruno Haible  <bruno@clisp.org>
17544
17545         Improve *printf warning condition.
17546         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17547         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17548         and the function is overridden due to SIGPIPE emulation.
17549
17550 2010-02-20  Bruno Haible  <bruno@clisp.org>
17551
17552         * lib/stdio.in.h: Tweak comments.
17553
17554 2010-02-19  Bruno Haible  <bruno@clisp.org>
17555
17556         Make it easier to find modules. New gnulib-tool option '--find'.
17557         * gnulib-tool: New option --find.
17558         (func_usage): Document it.
17559         (func_sanitize_modulelist): New function, extracted from
17560         func_all_modules.
17561         (func_all_modules): Invoke it.
17562         * doc/gnulib-tool.texi (Which modules?): New node.
17563
17564 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17565
17566         * lib/sys_select.in.h: Provide select replacement even if
17567         sys/select.h exists on a system, for Interix.
17568
17569 2010-02-18  Jim Meyering  <meyering@redhat.com>
17570
17571         init.sh: don't use $(...) just yet
17572         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17573         to accommodate e.g., Solaris' /bin/sh.
17574
17575 2010-02-17  Bruno Haible  <bruno@clisp.org>
17576
17577         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17578         Reported by Ludovic Courtès <ludo@gnu.org>.
17579
17580 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17581
17582         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17583         linking with -lintl.
17584
17585 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17586
17587         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17588         if not provided by the system's netdb.h.  Reported by
17589         ludo@gnu.org (Ludovic Courtès).
17590
17591 2010-02-15  Jim Meyering  <meyering@redhat.com>
17592
17593         init.sh: improve portability and efficiency
17594         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17595         "dummy" in a for loop.
17596         Use '!', not '^' to select the complement of a character set used
17597         in a "case" statement.
17598         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17599         Suggestions from Eric Blake.
17600
17601         init.sh: automatically accommodate programs with the .exe suffix
17602         Automatically arrange for an invocation of "prog" to execute the
17603         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17604         may use the simpler "prog", yet still work when built on a system
17605         that requires specifying the added suffix.
17606         Do this by constructing a function named "prog" that invokes
17607         "prog.exe" for each .exe file in selected directories.
17608         * tests/init.sh (find_exe_basenames_): New function.
17609         (create_exe_shim_functions_): New function.
17610         (path_prepend_): Use it.
17611
17612         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17613         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17614         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17615
17616 2010-02-14  Jim Meyering  <meyering@redhat.com>
17617
17618         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17619         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17620         (sc_prohibit_hash_pjw_without_use): New rule.
17621
17622         maint.mk: allow the default upload destination dir to be overridden
17623         * top/maint.mk (upload_dest_dir_): Define with a default that
17624         preserves the status quo.
17625         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17626         Reported by Peter Simons.
17627
17628         maint.mk: prohibit inclusion of "hash.h" without_use
17629         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17630
17631 2010-02-10  Jim Meyering  <meyering@redhat.com>
17632
17633         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17634         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17635
17636 2010-02-09  Eric Blake  <ebb9@byu.net>
17637         and Bruno Haible  <bruno@clisp.org>
17638
17639         obstack-printf-posix: ensure declaration
17640         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17641         extracted from gl_FUNC_OBSTACK_PRINTF.
17642         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17643         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17644         Likewise.
17645         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17646         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17647         0.
17648
17649 2010-02-08  Bruno Haible  <bruno@clisp.org>
17650
17651         gnulib-tool: Fix typo in 2010-02-07 commit.
17652         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17653         Reported by Eric Blake.
17654
17655 2010-02-07  Bruno Haible  <bruno@clisp.org>
17656
17657         gnulib-tool: Fix up caching patches.
17658         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17659         option --no-cache. Use associative arrays when supported by the shell.
17660         (sed_comments): New variable.
17661         (modcache): Renamed from do_cache.
17662         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17663         abbreviate unnecessarily.
17664         (have_associative): New variable.
17665         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17666         way also for ksh and zsh.
17667         (func_init_sed_convert_to_cache_statements): New function, extracted
17668         from func_cache_lookup_module. Add support for associative arrays.
17669         Don't set the c_MODULE_cached variable here. Ignore all lines before
17670         the first field header. Remove only the final newline, not all trailing
17671         newlines. Support empty fields correctly. Limit the use of 'eval' to
17672         assignments.
17673         (func_get_description, func_get_status, func_get_notice,
17674         func_get_applicability, func_get_filelist, func_get_dependencies,
17675         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17676         func_get_automake_snippet, func_get_include_directive,
17677         func_get_link_directive, func_get_license, func_get_maintainer):
17678         Update documentation. List the unoptimized code first. Add support for
17679         associative arrays. Limit the use of 'eval' to assignments.
17680         (func_get_applicability): Undo stylistic pessimisations.
17681         (func_get_automake_snippet, func_get_include_directive): Reduce code
17682         duplication.
17683         (func_modules_transitive_closure, func_modules_add_dummy,
17684         func_modules_notice, func_modules_to_filelist, func_add_file,
17685         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17686         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17687         func_create_testdir, func_create_megatestdir): Update documentation.
17688
17689 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17690
17691         * gnulib-tool (func_cache_lookup_module): Store the module name
17692         belonging to the cache variable; error out if two different
17693         module names map to the same cache variable name.
17694
17695 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17696
17697         gnulib-tool: Make caching optional.
17698         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17699         Update matching short versions of --no-changelog.
17700         (func_usage): Update.
17701         (sed_extract_cache_prog): Renamed from ...
17702         (sed_extract_prog): ... this; revert to old extraction script.
17703         (func_get_description, func_get_status)
17704         (func_get_notice, func_get_applicability, func_get_filelist)
17705         (func_get_dependencies, func_get_autoconf_early_snippet)
17706         (func_get_autoconf_snippet, func_get_automake_snippet)
17707         (func_get_include_directive, func_get_link_directive)
17708         (func_get_license, func_get_maintainer): If $do_cache is false,
17709         use old, non-caching extraction scripts.
17710         Suggestion by Bruno Haible.
17711
17712 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17713
17714         gnulib-tool: cache module metainformation.
17715         * gnulib-tool (sed_extract_prog): Match newline before each
17716         header, and rewrite header to a shell variable suffix.
17717         (func_cache_var, func_cache_lookup_module): New functions,
17718         to turn a module name into a cache variable prefix, and to
17719         look up and cache module metainformation.
17720         (func_get_description, func_get_status)
17721         (func_get_notice, func_get_applicability, func_get_filelist)
17722         (func_get_dependencies, func_get_autoconf_early_snippet)
17723         (func_get_autoconf_snippet, func_get_automake_snippet)
17724         (func_get_include_directive, func_get_link_directive)
17725         (func_get_license, func_get_maintainer): Use
17726         func_cache_lookup_module.
17727
17728 2010-02-07  Bruno Haible  <bruno@clisp.org>
17729
17730         fnctl: Fix missing dependency.
17731         * modules/fcntl (Depends-on): Add getdtablesize.
17732         Reported by John W. Eaton <jwe@gnu.org>.
17733
17734 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17735
17736         Argp: fix recognition of short alias options.
17737
17738         * lib/argp-parse.c (convert_options): Fix improper use of
17739         `|' between character values.
17740         * tests/test-argp.c (group1_option): New alias option
17741         --read (-r).
17742         (group1_parser): Special handling for 'r'.
17743         (test15): New test case.
17744         (test_fun): Add test15.
17745         * tests/test-argp-2.sh: Update expected --help and --usage
17746         outputs.
17747
17748 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17749
17750         * tests/test-argp.c: Fix indentation.
17751
17752 2010-02-04  Eric Blake  <ebb9@byu.net>
17753
17754         gettimeofday: expose type of second argument
17755         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17756         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17757         * tests/test-gettimeofday.c: Use it to silence warning.
17758         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17759         the issue.
17760
17761 2010-02-03  Jim Meyering  <meyering@redhat.com>
17762
17763         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17764         * lib/regcomp.c (TYPE_SIGNED): Define.
17765         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17766
17767         regcomp.c: avoid a new -Wshadow warning
17768         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17769
17770 2010-02-01  Jim Meyering  <meyering@redhat.com>
17771
17772         removing useless parentheses in cpp #define directives
17773         For motivation, see commit c0221df4, "define STREQ(a,b)
17774         consistently, removing useless parentheses"
17775         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17776         * lib/mountlist.c (MNT_IGNORE): Likewise.
17777         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17778
17779 2010-02-01  Eric Blake  <ebb9@byu.net>
17780
17781         sys_time: use link-warning
17782         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17783         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17784         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17785         * modules/sys_time (Depends-on): Add warn-on-use.
17786         (Makefile.am): Always build replacement.
17787         (configure.ac): Update substitutions.
17788         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17789         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17790         bother with SYS_TIME_H.
17791         * modules/gettimeofday (configure.ac): Declare indicator.
17792         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17793         in use.
17794
17795         closein-tests: silence compiler warning
17796         * tests/test-closein.c (main): Ignore fread result.
17797         * modules/closein-tests (Depends-on): Add ignore-value.
17798
17799         tests: silence warning about system return
17800         * tests/test-areadlink-with-size.c (main): Ignore system result.
17801         * tests/test-areadlink.c (main): Likewise.
17802         * tests/test-areadlinkat-with-size.c (main): Likewise.
17803         * tests/test-areadlinkat.c (main): Likewise.
17804         * tests/test-canonicalize-lgpl.c (main): Likewise.
17805         * tests/test-canonicalize.c (main): Likewise.
17806         * tests/test-chown.c (main): Likewise.
17807         * tests/test-fchownat.c (main): Likewise.
17808         * tests/test-fdutimensat.c (main): Likewise.
17809         * tests/test-fstatat.c (main): Likewise.
17810         * tests/test-futimens.c (main): Likewise.
17811         * tests/test-lchown.c (main): Likewise.
17812         * tests/test-link.c (main): Likewise.
17813         * tests/test-linkat.c (main): Likewise.
17814         * tests/test-lstat.c (main): Likewise.
17815         * tests/test-mkdir.c (main): Likewise.
17816         * tests/test-mkdirat.c (main): Likewise.
17817         * tests/test-mkfifo.c (main): Likewise.
17818         * tests/test-mkfifoat.c (main): Likewise.
17819         * tests/test-mknod.c (main): Likewise.
17820         * tests/test-readlink.c (main): Likewise.
17821         * tests/test-remove.c (main): Likewise.
17822         * tests/test-rename.c (main): Likewise.
17823         * tests/test-renameat.c (main): Likewise.
17824         * tests/test-rmdir.c (main): Likewise.
17825         * tests/test-symlink.c (main): Likewise.
17826         * tests/test-symlinkat.c (main): Likewise.
17827         * tests/test-unlink.c (main): Likewise.
17828         * tests/test-unlinkat.c (main): Likewise.
17829         * tests/test-utimens.c (main): Likewise.
17830         * tests/test-utimensat.c (main): Likewise.
17831         * modules/areadlink-tests (Depends-on): Add ignore-value.
17832         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17833         * modules/areadlinkat-tests (Depends-on): Likewise.
17834         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17835         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17836         * modules/canonicalize-tests (Depends-on): Likewise.
17837         * modules/chown-tests (Depends-on): Likewise.
17838         * modules/fdutimensat-tests (Depends-on): Likewise.
17839         * modules/futimens-tests (Depends-on): Likewise.
17840         * modules/lchown-tests (Depends-on): Likewise.
17841         * modules/link-tests (Depends-on): Likewise.
17842         * modules/linkat-tests (Depends-on): Likewise.
17843         * modules/lstat-tests (Depends-on): Likewise.
17844         * modules/mkdir-tests (Depends-on): Likewise.
17845         * modules/mkfifo-tests (Depends-on): Likewise.
17846         * modules/mkfifoat-tests (Depends-on): Likewise.
17847         * modules/mknod-tests (Depends-on): Likewise.
17848         * modules/openat-tests (Depends-on): Likewise.
17849         * modules/readlink-tests (Depends-on): Likewise.
17850         * modules/remove-tests (Depends-on): Likewise.
17851         * modules/rename-tests (Depends-on): Likewise.
17852         * modules/renameat-tests (Depends-on): Likewise.
17853         * modules/rmdir-tests (Depends-on): Likewise.
17854         * modules/symlink-tests (Depends-on): Likewise.
17855         * modules/symlinkat-tests (Depends-on): Likewise.
17856         * modules/unlink-tests (Depends-on): Likewise.
17857         * modules/utimens-tests (Depends-on): Likewise.
17858         * modules/utimensat-tests (Depends-on): Likewise.
17859
17860 2010-01-31  Bruno Haible  <bruno@clisp.org>
17861
17862         Perform the same test for many <math.h> functions.
17863         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17864         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17865         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17866         of gl_MATHFUNC.
17867         * modules/acos (configure.ac): Likewise.
17868         * modules/asin (configure.ac): Likewise.
17869         * modules/atan (configure.ac): Likewise.
17870         * modules/atan2 (configure.ac): Likewise.
17871         * modules/cbrt (configure.ac): Likewise.
17872         * modules/copysign (configure.ac): Likewise.
17873         * modules/cos (configure.ac): Likewise.
17874         * modules/cosh (configure.ac): Likewise.
17875         * modules/erf (configure.ac): Likewise.
17876         * modules/erfc (configure.ac): Likewise.
17877         * modules/exp (configure.ac): Likewise.
17878         * modules/fmod (configure.ac): Likewise.
17879         * modules/hypot (configure.ac): Likewise.
17880         * modules/j0 (configure.ac): Likewise.
17881         * modules/j1 (configure.ac): Likewise.
17882         * modules/jn (configure.ac): Likewise.
17883         * modules/lgamma (configure.ac): Likewise.
17884         * modules/log (configure.ac): Likewise.
17885         * modules/log10 (configure.ac): Likewise.
17886         * modules/log1p (configure.ac): Likewise.
17887         * modules/pow (configure.ac): Likewise.
17888         * modules/remainder (configure.ac): Likewise.
17889         * modules/sin (configure.ac): Likewise.
17890         * modules/sinh (configure.ac): Likewise.
17891         * modules/tan (configure.ac): Likewise.
17892         * modules/tanh (configure.ac): Likewise.
17893         * modules/y0 (configure.ac): Likewise.
17894         * modules/y1 (configure.ac): Likewise.
17895         * modules/yn (configure.ac): Likewise.
17896         Suggested by Paolo Bonzini.
17897
17898 2010-01-31  Bruno Haible  <bruno@clisp.org>
17899
17900         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17901
17902 2010-01-31  Bruno Haible  <bruno@clisp.org>
17903
17904         Work around getdelim() bug on FreeBSD 8.0.
17905         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17906         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17907         not work.
17908         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17909         is 1.
17910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17911         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17912         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17913         a non-zero size.
17914         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17915
17916 2010-01-31  Bruno Haible  <bruno@clisp.org>
17917
17918         Work around getline() bug on FreeBSD 8.0.
17919         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17920         and a non-zero size.
17921         * tests/test-getline.c (main): Likewise.
17922         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17923         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17924
17925 2010-01-28  Eric Blake  <ebb9@byu.net>
17926
17927         regex: fix build failure
17928         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17929         platforms.
17930
17931 2010-01-28  Jim Meyering  <meyering@redhat.com>
17932
17933         regex: do not ignore memory allocation failure
17934         * lib/regex_internal.c (create_cd_newstate): Detect
17935         re_node_set_init_copy failure.   Extracted from glibc commit
17936         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17937
17938         regex: sync more white-space changes from libc
17939         * lib/regex_internal.c: White-space only changes.
17940         * lib/regexec.c: Likewise.
17941
17942         regex: add many uses of __attribute_warn_unused_result__
17943         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17944         * lib/regexec.c: Likewise.
17945         Extracted from a messy glibc commit.
17946
17947         regcomp.c: spelling and merge-artifact from glibc
17948         * lib/regcomp.c: Merge remainder of glibc's
17949         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17950
17951         regcomp.c: sync white-space changes from glibc
17952         * lib/regcomp.c: Merge to accommodate white space
17953         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17954
17955         regcomp.c: do not ignore internal return values
17956         * lib/regcomp.c: Do not ignore internal return values.
17957         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17958         but without its white-space changes and spelling fixes.
17959
17960         regex_internal.h: define __attribute_warn_unused_result__
17961         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17962
17963         maint: add a syntax-check rule to check for vulnerable Makefile.in
17964         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17965
17966 2010-01-27  Jim Meyering  <meyering@redhat.com>
17967
17968         ncftpput-ftp: clean up spaces
17969         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17970         Remove trailing blanks.
17971
17972 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17973
17974         * build-aux/git-version-gen: Fix copyright statement.
17975         * build-aux/gnupload: Likewise.
17976         * tests/test-arcfour.c: Likewise.
17977         * tests/test-arctwo.c: Likewise.
17978         * tests/test-count-one-bits.c: Likewise.
17979         * tests/test-crc.c: Likewise.
17980         * tests/test-des.c: Likewise.
17981         * tests/test-gc-arcfour.c: Likewise.
17982         * tests/test-gc-arctwo.c: Likewise.
17983         * tests/test-gc-des.c: Likewise.
17984         * tests/test-gc-hmac-md5.c: Likewise.
17985         * tests/test-gc-hmac-sha1.c: Likewise.
17986         * tests/test-gc-md2.c: Likewise.
17987         * tests/test-gc-md4.c: Likewise.
17988         * tests/test-gc-md5.c: Likewise.
17989         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17990         * tests/test-gc-rijndael.c: Likewise.
17991         * tests/test-gc-sha1.c: Likewise.
17992         * tests/test-gc.c: Likewise.
17993         * tests/test-gethostname.c: Likewise.
17994         * tests/test-gettimeofday.c: Likewise.
17995         * tests/test-hash.c: Likewise.
17996         * tests/test-hmac-md5.c: Likewise.
17997         * tests/test-hmac-sha1.c: Likewise.
17998         * tests/test-md2.c: Likewise.
17999         * tests/test-md4.c: Likewise.
18000         * tests/test-md5.c: Likewise.
18001         * tests/test-memchr.c: Likewise.
18002         * tests/test-memchr2.c: Likewise.
18003         * tests/test-memcmp.c: Likewise.
18004         * tests/test-memmem.c: Likewise.
18005         * tests/test-memrchr.c: Likewise.
18006         * tests/test-rawmemchr.c: Likewise.
18007         * tests/test-read-file.c: Likewise.
18008         * tests/test-rijndael.c: Likewise.
18009         * tests/test-sockets.c: Likewise.
18010         * tests/test-strchrnul.c: Likewise.
18011         * tests/test-strstr.c: Likewise.
18012         * tests/test-strtod.c: Likewise.
18013         * build-aux/ncftpput-ftp: Likewise.
18014
18015 2010-01-26  Eric Blake  <ebb9@byu.net>
18016
18017         ignore-value: update recommended header name
18018         * modules/ignore-value (Include): Only use <> for headers that
18019         exist in glibc.
18020
18021 2010-01-26  Jim Meyering  <meyering@redhat.com>
18022
18023         test-userspec.c: avoid compiler warnings
18024         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18025         and "initialization discards qualifiers..." warnings.
18026         Put the first "uid" in its own scope, and make char* members "const".
18027
18028 2010-01-25  Bruno Haible  <bruno@clisp.org>
18029
18030         gnulib-tool: Make warning diagnostics consistent.
18031         * gnulib-tool (func_warning): New function.
18032         Use it everywhere where gnulib-tool produces output to stderr and it is
18033         not a fatal error.
18034
18035 2010-01-25  Bruno Haible  <bruno@clisp.org>
18036
18037         Fix test dependencies.
18038         * modules/xstrtol-tests (Depends-on): Add inttypes.
18039         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18040
18041 2010-01-25 Pádraig Brady <P@draigBrady.com>
18042
18043         syntax-check: detect incorrect boolean macro values in config.h
18044         * modules/maintainer-makefile (configure.ac): Parameterize the location
18045         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18046         The logic is from Eric Blake and the location indicated by Jim Meyering.
18047         Note the more natural CONFIG_HEADER name is prohibited by automake
18048         for backwards compatibility reasons.
18049         * top/maint.mk (sc_Wundef_boolean): New rule.
18050
18051 2010-01-25  Jim Meyering  <meyering@redhat.com>
18052
18053         bootstrap: detect MacOS 10.6's shasum, too
18054         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18055         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18056
18057 2010-01-23  Jim Meyering  <meyering@redhat.com>
18058
18059         xstrtoll: new module
18060         * modules/xstrtoll: New file.
18061         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18062         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18063         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18064         ./configure fails if you use this module and lack "long long".
18065         * modules/xstrtoll-tests: New module.
18066         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18067         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18068         new init.sh-based test framework.
18069
18070 2010-01-24  Bruno Haible  <bruno@clisp.org>
18071
18072         Tests for module 'yn'.
18073         * modules/yn-tests: New file.
18074         * tests/test-yn.c: New file.
18075
18076         Tests for module 'y1'.
18077         * modules/y1-tests: New file.
18078         * tests/test-y1.c: New file.
18079
18080         Tests for module 'y0'.
18081         * modules/y0-tests: New file.
18082         * tests/test-y0.c: New file.
18083
18084         Tests for module 'tanh'.
18085         * modules/tanh-tests: New file.
18086         * tests/test-tanh.c: New file.
18087
18088         Tests for module 'tan'.
18089         * modules/tan-tests: New file.
18090         * tests/test-tan.c: New file.
18091
18092         Tests for module 'sqrt'.
18093         * modules/sqrt-tests: New file.
18094         * tests/test-sqrt.c: New file.
18095
18096         Tests for module 'sinh'.
18097         * modules/sinh-tests: New file.
18098         * tests/test-sinh.c: New file.
18099
18100         Tests for module 'sin'.
18101         * modules/sin-tests: New file.
18102         * tests/test-sin.c: New file.
18103
18104         Tests for module 'rint'.
18105         * modules/rint-tests: New file.
18106         * tests/test-rint.c: New file.
18107
18108         Tests for module 'remainder'.
18109         * modules/remainder-tests: New file.
18110         * tests/test-remainder.c: New file.
18111
18112         Tests for module 'pow'.
18113         * modules/pow-tests: New file.
18114         * tests/test-pow.c: New file.
18115
18116         Tests for module 'nextafter'.
18117         * modules/nextafter-tests: New file.
18118         * tests/test-nextafter.c: New file.
18119
18120         Tests for module 'modf'.
18121         * modules/modf-tests: New file.
18122         * tests/test-modf.c: New file.
18123
18124         Tests for module 'logb'.
18125         * modules/logb-tests: New file.
18126         * tests/test-logb.c: New file.
18127
18128         Tests for module 'log1p'.
18129         * modules/log1p-tests: New file.
18130         * tests/test-log1p.c: New file.
18131
18132         Tests for module 'log10'.
18133         * modules/log10-tests: New file.
18134         * tests/test-log10.c: New file.
18135
18136         Tests for module 'log'.
18137         * modules/log-tests: New file.
18138         * tests/test-log.c: New file.
18139
18140         Tests for module 'lgamma'.
18141         * modules/lgamma-tests: New file.
18142         * tests/test-lgamma.c: New file.
18143
18144         Tests for module 'ldexp'.
18145         * modules/ldexp-tests: New file.
18146         * tests/test-ldexp.c: New file.
18147
18148         Tests for module 'jn'.
18149         * modules/jn-tests: New file.
18150         * tests/test-jn.c: New file.
18151
18152         Tests for module 'j1'.
18153         * modules/j1-tests: New file.
18154         * tests/test-j1.c: New file.
18155
18156         Tests for module 'j0'.
18157         * modules/j0-tests: New file.
18158         * tests/test-j0.c: New file.
18159
18160         Tests for module 'hypot'.
18161         * modules/hypot-tests: New file.
18162         * tests/test-hypot.c: New file.
18163
18164         Tests for module 'fmod'.
18165         * modules/fmod-tests: New file.
18166         * tests/test-fmod.c: New file.
18167
18168         Tests for module 'fabs'.
18169         * modules/fabs-tests: New file.
18170         * tests/test-fabs.c: New file.
18171
18172         Tests for module 'exp'.
18173         * modules/exp-tests: New file.
18174         * tests/test-exp.c: New file.
18175
18176         Tests for module 'erfc'.
18177         * modules/erfc-tests: New file.
18178         * tests/test-erfc.c: New file.
18179
18180         Tests for module 'erf'.
18181         * modules/erf-tests: New file.
18182         * tests/test-erf.c: New file.
18183
18184         Tests for module 'cosh'.
18185         * modules/cosh-tests: New file.
18186         * tests/test-cosh.c: New file.
18187
18188         Tests for module 'cos'.
18189         * modules/cos-tests: New file.
18190         * tests/test-cos.c: New file.
18191
18192         Tests for module 'copysign'.
18193         * modules/copysign-tests: New file.
18194         * tests/test-copysign.c: New file.
18195
18196         Tests for module 'cbrt'.
18197         * modules/cbrt-tests: New file.
18198         * tests/test-cbrt.c: New file.
18199
18200         Tests for module 'atan2'.
18201         * modules/atan2-tests: New file.
18202         * tests/test-atan2.c: New file.
18203
18204         Tests for module 'atan'.
18205         * modules/atan-tests: New file.
18206         * tests/test-atan.c: New file.
18207
18208         Tests for module 'asin'.
18209         * modules/asin-tests: New file.
18210         * tests/test-asin.c: New file.
18211
18212         Tests for module 'acos'.
18213         * modules/acos-tests: New file.
18214         * tests/test-acos.c: New file.
18215
18216 2010-01-24  Bruno Haible  <bruno@clisp.org>
18217
18218         Fix tests for common <math.h> functions.
18219         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18220         code snippet that references the function pointer, rather than merely
18221         calling the function. Substitute the FUNC_LIBM variable.
18222         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18223         * modules/acos (configure.ac): Likewise.
18224         * modules/asin (configure.ac): Likewise.
18225         * modules/atan (configure.ac): Likewise.
18226         * modules/atan2 (configure.ac): Likewise.
18227         * modules/cbrt (configure.ac): Likewise.
18228         * modules/copysign (configure.ac): Likewise.
18229         * modules/cos (configure.ac): Likewise.
18230         * modules/cosh (configure.ac): Likewise.
18231         * modules/erf (configure.ac): Likewise.
18232         * modules/erfc (configure.ac): Likewise.
18233         * modules/exp (configure.ac): Likewise.
18234         * modules/fabs (configure.ac): Likewise.
18235         * modules/fmod (configure.ac): Likewise.
18236         * modules/hypot (configure.ac): Likewise.
18237         * modules/j0 (configure.ac): Likewise.
18238         * modules/j1 (configure.ac): Likewise.
18239         * modules/jn (configure.ac): Likewise.
18240         * modules/ldexp (configure.ac): Likewise.
18241         * modules/lgamma (configure.ac): Likewise.
18242         * modules/log (configure.ac): Likewise.
18243         * modules/log10 (configure.ac): Likewise.
18244         * modules/log1p (configure.ac): Likewise.
18245         * modules/logb (configure.ac): Likewise.
18246         * modules/modf (configure.ac): Likewise.
18247         * modules/nextafter (configure.ac): Likewise.
18248         * modules/pow (configure.ac): Likewise.
18249         * modules/remainder (configure.ac): Likewise.
18250         * modules/rint (configure.ac): Likewise.
18251         * modules/sin (configure.ac): Likewise.
18252         * modules/sinh (configure.ac): Likewise.
18253         * modules/tan (configure.ac): Likewise.
18254         * modules/tanh (configure.ac): Likewise.
18255         * modules/y0 (configure.ac): Likewise.
18256         * modules/y1 (configure.ac): Likewise.
18257         * modules/yn (configure.ac): Likewise.
18258
18259 2010-01-24  Bruno Haible  <bruno@clisp.org>
18260
18261         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18262         * tests/test-acosl.c (x): New variable.
18263         (main): Store argument in x and fetch it from x.
18264         * tests/test-asinl.c (x): New variable.
18265         (main): Store argument in x and fetch it from x.
18266         * tests/test-atanl.c (x): New variable.
18267         (main): Store argument in x and fetch it from x.
18268         * tests/test-cosl.c (x): New variable.
18269         (main): Store argument in x and fetch it from x.
18270         * tests/test-expl.c (x): New variable.
18271         (main): Store argument in x and fetch it from x.
18272         * tests/test-logl.c (x): New variable.
18273         (main): Store argument in x and fetch it from x.
18274         * tests/test-sinl.c (x): New variable.
18275         (main): Store argument in x and fetch it from x.
18276         * tests/test-sqrtl.c (x): New variable.
18277         (main): Store argument in x and fetch it from x.
18278         * tests/test-tanl.c (x): New variable.
18279         (main): Store argument in x and fetch it from x.
18280
18281 2010-01-24  Bruno Haible  <bruno@clisp.org>
18282
18283         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18284         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18285         assignments to the initial TESTS_ENVIRONMENT.
18286         * doc/gnulib.texi (Unit test modules): Document it.
18287         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18288         TESTS_ENVIRONMENT.
18289         * modules/btowc-tests (Makefile.am): Likewise.
18290         * modules/c-stack-tests (Makefile.am): Likewise.
18291         * modules/c-strcase-tests (Makefile.am): Likewise.
18292         * modules/copy-file-tests (Makefile.am): Likewise.
18293         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18294         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18295         * modules/mbrtowc-tests (Makefile.am): Likewise.
18296         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18297         * modules/mbscasestr-tests (Makefile.am): Likewise.
18298         * modules/mbschr-tests (Makefile.am): Likewise.
18299         * modules/mbscspn-tests (Makefile.am): Likewise.
18300         * modules/mbsinit-tests (Makefile.am): Likewise.
18301         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18302         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18303         * modules/mbspbrk-tests (Makefile.am): Likewise.
18304         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18305         * modules/mbsrchr-tests (Makefile.am): Likewise.
18306         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18307         * modules/mbsspn-tests (Makefile.am): Likewise.
18308         * modules/mbsstr-tests (Makefile.am): Likewise.
18309         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18310         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18311         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18312         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18313         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18314         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18315         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18316         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18317         * modules/wcrtomb-tests (Makefile.am): Likewise.
18318         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18319         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18320         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18321         assignments from TESTS_ENVIRONMENT.
18322         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18323         augmentation.
18324         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18325         * modules/atexit-tests (Makefile.am): Likewise.
18326         * modules/binary-io-tests (Makefile.am): Likewise.
18327         * modules/closein-tests (Makefile.am): Likewise.
18328         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18329         * modules/exclude-tests (Makefile.am): Likewise.
18330         * modules/fflush-tests (Makefile.am): Likewise.
18331         * modules/fpending-tests (Makefile.am): Likewise.
18332         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18333         * modules/freadahead-tests (Makefile.am): Likewise.
18334         * modules/freadptr-tests (Makefile.am): Likewise.
18335         * modules/freadseek-tests (Makefile.am): Likewise.
18336         * modules/fseek-tests (Makefile.am): Likewise.
18337         * modules/fseeko-tests (Makefile.am): Likewise.
18338         * modules/ftell-tests (Makefile.am): Likewise.
18339         * modules/ftello-tests (Makefile.am): Likewise.
18340         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18341         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18342         * modules/lseek-tests (Makefile.am): Likewise.
18343         * modules/parse-duration-tests (Makefile.am): Likewise.
18344         * modules/perror-tests (Makefile.am): Likewise.
18345         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18346         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18347         * modules/pipe-tests (Makefile.am): Likewise.
18348         * modules/pread-tests (Makefile.am): Likewise.
18349         * modules/printf-posix-tests (Makefile.am): Likewise.
18350         * modules/select-tests (Makefile.am): Likewise.
18351         * modules/sigpipe-tests (Makefile.am): Likewise.
18352         * modules/tsearch-tests (Makefile.am): Likewise.
18353         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18354         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18355         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18356         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18357         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18358         * modules/version-etc-tests (Makefile.am): Likewise.
18359         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18360         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18361         * modules/xalloc-die-tests (Makefile.am): Likewise.
18362         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18363         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18364         * modules/xstrtol-tests (Makefile.am): Likewise.
18365         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18366         * modules/yesno-tests (Makefile.am): Likewise.
18367         Suggested by Jim Meyering.
18368
18369 2010-01-24  Bruno Haible  <bruno@clisp.org>
18370
18371         More documentation.
18372         * doc/gnulib.texi (Writing modules): New chapter.
18373         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18374         the new chapter.
18375
18376 2010-01-24  Jim Meyering  <meyering@redhat.com>
18377
18378         maint.mk: do not prepend "./" after filtering
18379         * top/maint.mk (_prepend_srcdir_prefix): New variable
18380         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18381         "./" when $(srcdir) is ".".
18382
18383         define STREQ(a,b) consistently, removing useless parentheses
18384         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18385         since the only risk is that "a" or "b" contains an unparenthesized
18386         comma, but if either did that, STREQ would have 3 or more arguments.
18387         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18388         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18389         * lib/hash-triple.c (STREQ): Likewise.
18390         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18391         * lib/getugroups.c (STREQ): Likewise.
18392
18393 2010-01-23  Jim Meyering  <meyering@redhat.com>
18394
18395         maint.mk: fix syntax-check in a non-srcdir build directory
18396         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18397         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18398
18399 2010-01-22  Jim Meyering  <meyering@redhat.com>
18400
18401         userspec: add unit tests
18402         * tests/test-userspec.c: New file.
18403         * modules/userspec-tests: Likewise.
18404
18405 2010-01-21  Jim Meyering  <meyering@redhat.com>
18406
18407         maint.mk: handle source file names containing "." robustly
18408         * top/maint.mk (_dot_escaped_srcdir): Define.
18409         (VC_LIST): Use it in LHS of sed substitution.
18410
18411 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18412
18413         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18414         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18415         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18416         from a non-srcdir build.
18417
18418 2010-01-20  Eric Blake  <ebb9@byu.net>
18419
18420         warn-on-use: use instead of link-warning
18421         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18422         * modules/unistd (Depends-on, Makefile.am): Likewise.
18423         * modules/arpa_inet (Depends-on): Replace link-warning with
18424         warn-on-use.
18425         (Makefile.am): Update rules accordingly.
18426         * modules/ctype (Depends-on, Makefile.am): Likewise.
18427         * modules/dirent (Depends-on, Makefile.am): Likewise.
18428         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18429         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18430         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18431         * modules/locale (Depends-on, Makefile.am): Likewise.
18432         * modules/math (Depends-on, Makefile.am): Likewise.
18433         * modules/search (Depends-on, Makefile.am): Likewise.
18434         * modules/signal (Depends-on, Makefile.am): Likewise.
18435         * modules/spawn (Depends-on, Makefile.am): Likewise.
18436         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18437         * modules/string (Depends-on, Makefile.am): Likewise.
18438         * modules/strings (Depends-on, Makefile.am): Likewise.
18439         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18440         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18441         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18442         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18443         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18444         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18445         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18446         * modules/wchar (Depends-on, Makefile.am): Likewise.
18447         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18448         should be poisoned.
18449         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18450         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18451         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18452         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18453         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18454         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18455         * m4/math_h.m4 (gl_MATH_H): Likewise.
18456         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18457         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18458         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18459         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18460         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18461         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18462         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18463         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18464         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18465         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18466         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18468         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18469         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18470         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18471         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18472         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18473         GL_LINK_WARNING.
18474         * lib/ctype.in.h: Likewise.
18475         * lib/dirent.in.h: Likewise.
18476         * lib/fcntl.in.h: Likewise.
18477         * lib/inttypes.in.h: Likewise.
18478         * lib/langinfo.in.h: Likewise.
18479         * lib/locale.in.h: Likewise.
18480         * lib/math.in.h: Likewise.
18481         * lib/search.in.h: Likewise.
18482         * lib/signal.in.h: Likewise.
18483         * lib/spawn.in.h: Likewise.
18484         * lib/stdio.in.h: Likewise.
18485         * lib/stdlib.in.h: Likewise.
18486         * lib/string.in.h: Likewise.
18487         * lib/strings.in.h: Likewise.
18488         * lib/sys_file.in.h: Likewise.
18489         * lib/sys_ioctl.in.h: Likewise.
18490         * lib/sys_select.in.h: Likewise.
18491         * lib/sys_socket.in.h: Likewise.
18492         * lib/sys_stat.in.h: Likewise.
18493         * lib/sys_times.in.h: Likewise.
18494         * lib/sys_utsname.in.h: Likewise.
18495         * lib/unistd.in.h: Likewise.
18496         * lib/wchar.in.h: Likewise.
18497
18498 2010-01-20  Bruno Haible  <bruno@clisp.org>
18499
18500         Avoid duplicate -lm.
18501         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18502         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18503         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18504         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18505         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18506         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18507         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18508         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18509         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18510         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18511         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18512         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18513         Reported by Paolo Bonzini.
18514
18515 2010-01-19  Bruno Haible  <bruno@clisp.org>
18516
18517         langinfo, nl_langinfo: Relicense under LGPLv2+.
18518         * modules/langinfo (License): Change to LGPLv2+.
18519         * modules/nl_langinfo (License): Likewise.
18520         Patch by David Lutterkort <lutter@redhat.com>.
18521
18522 2010-01-19  Bruno Haible  <bruno@clisp.org>
18523
18524         Avoid compilation error with cc on OSF/1 5.1.
18525         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18526         statement, not before.
18527         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18528
18529 2010-01-18  Bruno Haible  <bruno@clisp.org>
18530
18531         Avoid a link error due to the __printf__ symbol.
18532         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18533         and 2.6.x.
18534         (__format__, __printf__): Remove definitions.
18535         * lib/argp-fmtstream.h: Likewise.
18536         * lib/argp.h: Likewise.
18537         * lib/error.h: Likewise.
18538         * lib/vasnprintf.h: Likewise.
18539         * lib/xprintf.h: Likewise.
18540         * lib/xvasprintf.h: Likewise.
18541         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18542
18543 2010-01-18  Bruno Haible  <bruno@clisp.org>
18544
18545         Tests for module 'tanl'.
18546         * modules/tanl-tests: New file.
18547         * tests/test-tanl.c: New file.
18548
18549         Tests for module 'sqrtl'.
18550         * modules/sqrtl-tests: New file.
18551         * tests/test-sqrtl.c: New file.
18552
18553         Tests for module 'sinl'.
18554         * modules/sinl-tests: New file.
18555         * tests/test-sinl.c: New file.
18556
18557         Tests for module 'logl'.
18558         * modules/logl-tests: New file.
18559         * tests/test-logl.c: New file.
18560
18561         Tests for module 'expl'.
18562         * modules/expl-tests: New file.
18563         * tests/test-expl.c: New file.
18564
18565         Tests for module 'cosl'.
18566         * modules/cosl-tests: New file.
18567         * tests/test-cosl.c: New file.
18568
18569         Tests for module 'atanl'.
18570         * modules/atanl-tests: New file.
18571         * tests/test-atanl.c: New file.
18572
18573         Tests for module 'asinl'.
18574         * modules/asinl-tests: New file.
18575         * tests/test-asinl.c: New file.
18576
18577         Tests for module 'acosl'.
18578         * modules/acosl-tests: New file.
18579         * tests/test-acosl.c: New file.
18580
18581         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18582         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18583         tanl): Use the standard gnulib idiom.
18584         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18585         * lib/sinl.c: Likewise.
18586         * lib/tanl.c: Don't include trigl.c.
18587         (kernel_tanl): Make static.
18588         * lib/sincosl.c: Include trigl.h first.
18589         * lib/trigl.c: Likewise.
18590         * m4/acosl.m4: New file.
18591         * m4/asinl.m4: New file.
18592         * m4/atanl.m4: New file.
18593         * m4/cosl.m4: New file.
18594         * m4/expl.m4: New file.
18595         * m4/logl.m4: New file.
18596         * m4/sinl.m4: New file.
18597         * m4/sqrtl.m4: New file.
18598         * m4/tanl.m4: New file.
18599         * m4/mathl.m4: Remove file.
18600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18601         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18602         Don't initialize GNULIB_MATHL.
18603         * modules/acosl: New file.
18604         * modules/asinl: New file.
18605         * modules/atanl: New file.
18606         * modules/cosl: New file.
18607         * modules/expl: New file.
18608         * modules/logl: New file.
18609         * modules/sinl: New file.
18610         * modules/sqrtl: New file.
18611         * modules/tanl: New file.
18612         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18613         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18614         substitute GNULIB_MATHL.
18615         * modules/mathl: Rewritten.
18616         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18617         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18618         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18619         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18620         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18621         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18622         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18623         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18624         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18625
18626 2010-01-18  Bruno Haible  <bruno@clisp.org>
18627
18628         sqrt: Make gl_FUNC_SQRT requirable.
18629         * m4/sqrt.m4: New file.
18630         * modules/sqrt (Files): Add it.
18631         (configure.ac): Invoke gl_FUNC_SQRT.
18632
18633 2010-01-18  Bruno Haible  <bruno@clisp.org>
18634
18635         New modules for common <math.h> functions.
18636         * m4/mathfunc.m4: New file.
18637         * modules/acos: New file.
18638         * modules/asin: New file.
18639         * modules/atan: New file.
18640         * modules/atan2: New file.
18641         * modules/cbrt: New file.
18642         * modules/copysign: New file.
18643         * modules/cos: New file.
18644         * modules/cosh: New file.
18645         * modules/erf: New file.
18646         * modules/erfc: New file.
18647         * modules/exp: New file.
18648         * modules/fabs: New file.
18649         * modules/fmod: New file.
18650         * modules/hypot: New file.
18651         * modules/j0: New file.
18652         * modules/j1: New file.
18653         * modules/jn: New file.
18654         * modules/ldexp: New file.
18655         * modules/lgamma: New file.
18656         * modules/log: New file.
18657         * modules/log10: New file.
18658         * modules/log1p: New file.
18659         * modules/logb: New file.
18660         * modules/modf: New file.
18661         * modules/nextafter: New file.
18662         * modules/pow: New file.
18663         * modules/remainder: New file.
18664         * modules/rint: New file.
18665         * modules/sin: New file.
18666         * modules/sinh: New file.
18667         * modules/sqrt: New file.
18668         * modules/tan: New file.
18669         * modules/tanh: New file.
18670         * modules/y0: New file.
18671         * modules/y1: New file.
18672         * modules/yn: New file.
18673         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18674         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18675         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18676         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18677         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18678         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18679         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18680         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18681         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18682         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18683         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18684         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18685         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18686         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18687         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18688         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18689         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18690         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18691         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18692         * doc/posix-functions/log.texi: Mention the 'log' module.
18693         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18694         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18695         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18696         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18697         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18698         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18699         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18700         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18701         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18702         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18703         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18704         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18705         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18706         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18707         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18708         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18709
18710 2010-01-18  Jim Meyering  <meyering@redhat.com>
18711
18712         ignore-value: relax license to LGPLv2+
18713         * modules/ignore-value (License): Relax to LGPLv2+.
18714
18715         getdate: don't leak when TZ contains two or more '"'s
18716         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18717         double quote in TZ after the first one.
18718
18719         readtokens: do not leak internal token_lengths buffer
18720         * lib/readtokens.c (readtokens): Free the local, lengths,
18721         when the supplied "token_lengths" parameter is NULL.
18722
18723 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18724
18725         Fix a couple of missing LIBTHREAD link failures on AIX.
18726         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18727         $(LIBTHREAD).
18728         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18729
18730         Link test-poll against INET_PTON_LIB.
18731         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18732         for inet_pton on Solaris 10.
18733
18734 2010-01-17  Bruno Haible  <bruno@clisp.org>
18735
18736         unistdio/*-sprintf: Fix typo in module description.
18737         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18738         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18739         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18740         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18741         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18742         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18743         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18745
18746 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18747
18748         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18749         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18750         variables in shell case patterns, for AIX and HP-UX ksh.
18751
18752         Split large sed scripts, for HP-UX sed.
18753         * modules/stdio: Split sed scripts around 50 sed commands,
18754         to avoid HP-UX limit of 99 commands, in the near future.
18755         * modules/string: Likewise.
18756         * modules/unistd: Likewise.
18757
18758         gnulib-tool: avoid writing in the current directory.
18759         * gnulib-tool (func_emit_lib_Makefile_am)
18760         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18761         not in the current directory, so concurrent gnulib-tool
18762         instances do not interfere.
18763
18764 2010-01-16  Jim Meyering  <meyering@redhat.com>
18765
18766         doc: update users.txt
18767         * users.txt: Add grep.
18768         (diffutils, gzip): Update URLs.
18769
18770 2010-01-12  Bruno Haible  <bruno@clisp.org>
18771
18772         posix_spawn: Avoid test failure on Cygwin.
18773         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18774         characters.
18775         Reported by Simon Josefsson.
18776
18777 2010-01-12  Bruno Haible  <bruno@clisp.org>
18778
18779         * tests/test-cond.c (main): When skipping the test, show the reason.
18780
18781 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18782
18783         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18784
18785 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18786
18787         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18788         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18789
18790 2010-01-12  Eric Blake  <ebb9@byu.net>
18791
18792         build: guarantee AS_VAR_IF
18793         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18794         (gl_AS_VAR_IF): Move...
18795         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18796         Reported by Simon Josefsson.
18797
18798 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18799
18800         * lib/stdio.in.h: Fix typo.
18801
18802 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18803
18804         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18805         libgpg-error.
18806
18807 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18808
18809         * tests/test-xalloc-die.sh: Use $EXEEXT.
18810
18811 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18812             Bruno Haible  <bruno@clisp.org>
18813
18814         getlogin, getlogin_r: Avoid test failure.
18815         * tests/test-getlogin.c: Include <stdio.h>.
18816         (main): Skip the test when the function fails because stdin is not a
18817         tty.
18818         * tests/test-getlogin_r.c: Include <stdio.h>.
18819         (main): Skip the test when the function fails because stdin is not a
18820         tty.
18821
18822 2010-01-11  Eric Blake  <ebb9@byu.net>
18823
18824         tests: avoid more large file warnings
18825         * tests/test-fflush.c: Avoid warning about ftell use.
18826         * tests/test-fseek.c: Avoid warning about fseek use.
18827
18828 2010-01-10  Bruno Haible  <bruno@clisp.org>
18829
18830         nproc: Work better on Linux when /proc and /sys are not mounted.
18831         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18832         as lower bound when, on glibc/Linux systems,
18833         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18834         Suggested by Pádraig Brady <P@draigbrady.com>.
18835         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18836
18837         nproc: Refactor.
18838         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18839         extracted from num_processors.
18840         (num_processors): Call it.
18841
18842 2010-01-11  Jim Meyering  <meyering@redhat.com>
18843
18844         utimecmp: avoid new warning from upcoming gcc-4.5.0
18845         * lib/utimecmp.c (BILLION): Define using #define rather than an
18846         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18847
18848 2010-01-11  Eric Blake  <ebb9@byu.net>
18849
18850         math: add portability warnings for classification macros
18851         * modules/math (Depends-on): Add warn-on-use.
18852         (Makefile.am): Provide new substitutions.
18853         * m4/math_h.m4 (gl_MATH_H): Require inline.
18854         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18855         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18856         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18857         implement warnings.
18858
18859         unistd: warn on use of environ without module
18860         * modules/unistd (Depends-on): Add warn-on-use.
18861         (Makefile.am): Provide new substitutions.
18862         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18863         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18864
18865         stdio: warn on suspicious uses
18866         * modules/stdio (Depends-on): Add warn-on-use.
18867         (Makefile.am): Provide new substitutions.
18868         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18869         fseeko.
18870         * lib/stdio.in.h (gets): Always warn on use.
18871         (fseek, ftell): Adjust when warnings are issued, and honor
18872         _GL_NO_LARGE_FILES as a way to silence the warning.
18873         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18874         any warning about large file offsets.
18875         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18876         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18877         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18878         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18879         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18880         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18881         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18882         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18883
18884         warn-on-use: new module
18885         * modules/warn-on-use: New file.
18886         * build-aux/warn-on-use.h: Likewise.
18887         * m4/warn-on-use.m4: Likewise.
18888         * MODULES.html.sh (Support for building): Mention it.
18889
18890 2010-01-10  Bruno Haible  <bruno@clisp.org>
18891
18892         Tests for module 'unistr/u32-strdup'.
18893         * modules/unistr/u32-strdup-tests: New file.
18894         * tests/unistr/test-u32-strdup.c: New file.
18895
18896         Tests for module 'unistr/u16-strdup'.
18897         * modules/unistr/u16-strdup-tests: New file.
18898         * tests/unistr/test-u16-strdup.c: New file.
18899
18900         Tests for module 'unistr/u8-strdup'.
18901         * modules/unistr/u8-strdup-tests: New file.
18902         * tests/unistr/test-u8-strdup.c: New file.
18903         * tests/unistr/test-strdup.h: New file.
18904
18905         Tests for module 'unistr/u32-strncmp'.
18906         * modules/unistr/u32-strncmp-tests: New file.
18907         * tests/unistr/test-u32-strncmp.c: New file.
18908
18909         Tests for module 'unistr/u16-strncmp'.
18910         * modules/unistr/u16-strncmp-tests: New file.
18911         * tests/unistr/test-u16-strncmp.c: New file.
18912
18913         Tests for module 'unistr/u8-strncmp'.
18914         * modules/unistr/u8-strncmp-tests: New file.
18915         * tests/unistr/test-u8-strncmp.c: New file.
18916         * tests/unistr/test-strncmp.h: New file.
18917
18918         Tests for module 'unistr/u32-strcoll'.
18919         * modules/unistr/u32-strcoll-tests: New file.
18920         * tests/unistr/test-u32-strcoll.c: New file.
18921
18922         Tests for module 'unistr/u16-strcoll'.
18923         * modules/unistr/u16-strcoll-tests: New file.
18924         * tests/unistr/test-u16-strcoll.c: New file.
18925
18926         Tests for module 'unistr/u8-strcoll'.
18927         * modules/unistr/u8-strcoll-tests: New file.
18928         * tests/unistr/test-u8-strcoll.c: New file.
18929
18930         Tests for module 'unistr/u32-strcmp'.
18931         * modules/unistr/u32-strcmp-tests: New file.
18932         * tests/unistr/test-u32-strcmp.c: New file.
18933         * tests/unistr/test-u32-strcmp.h: New file.
18934
18935         Tests for module 'unistr/u16-strcmp'.
18936         * modules/unistr/u16-strcmp-tests: New file.
18937         * tests/unistr/test-u16-strcmp.c: New file.
18938         * tests/unistr/test-u16-strcmp.h: New file.
18939
18940         Tests for module 'unistr/u8-strcmp'.
18941         * modules/unistr/u8-strcmp-tests: New file.
18942         * tests/unistr/test-u8-strcmp.c: New file.
18943         * tests/unistr/test-u8-strcmp.h: New file.
18944         * tests/unistr/test-strcmp.h: New file.
18945
18946         Tests for module 'unistr/u32-strncat'.
18947         * modules/unistr/u32-strncat-tests: New file.
18948         * tests/unistr/test-u32-strncat.c: New file.
18949
18950         Tests for module 'unistr/u16-strncat'.
18951         * modules/unistr/u16-strncat-tests: New file.
18952         * tests/unistr/test-u16-strncat.c: New file.
18953
18954         Tests for module 'unistr/u8-strncat'.
18955         * modules/unistr/u8-strncat-tests: New file.
18956         * tests/unistr/test-u8-strncat.c: New file.
18957         * tests/unistr/test-strncat.h: New file.
18958
18959         Tests for module 'unistr/u32-strcat'.
18960         * modules/unistr/u32-strcat-tests: New file.
18961         * tests/unistr/test-u32-strcat.c: New file.
18962
18963         Tests for module 'unistr/u16-strcat'.
18964         * modules/unistr/u16-strcat-tests: New file.
18965         * tests/unistr/test-u16-strcat.c: New file.
18966
18967         Tests for module 'unistr/u8-strcat'.
18968         * modules/unistr/u8-strcat-tests: New file.
18969         * tests/unistr/test-u8-strcat.c: New file.
18970         * tests/unistr/test-strcat.h: New file.
18971
18972         Tests for module 'unistr/u32-stpncpy'.
18973         * modules/unistr/u32-stpncpy-tests: New file.
18974         * tests/unistr/test-u32-stpncpy.c: New file.
18975
18976         Tests for module 'unistr/u16-stpncpy'.
18977         * modules/unistr/u16-stpncpy-tests: New file.
18978         * tests/unistr/test-u16-stpncpy.c: New file.
18979
18980         Tests for module 'unistr/u8-stpncpy'.
18981         * modules/unistr/u8-stpncpy-tests: New file.
18982         * tests/unistr/test-u8-stpncpy.c: New file.
18983         * tests/unistr/test-stpncpy.h: New file.
18984
18985         Tests for module 'unistr/u32-strncpy'.
18986         * modules/unistr/u32-strncpy-tests: New file.
18987         * tests/unistr/test-u32-strncpy.c: New file.
18988
18989         Tests for module 'unistr/u16-strncpy'.
18990         * modules/unistr/u16-strncpy-tests: New file.
18991         * tests/unistr/test-u16-strncpy.c: New file.
18992
18993         Tests for module 'unistr/u8-strncpy'.
18994         * modules/unistr/u8-strncpy-tests: New file.
18995         * tests/unistr/test-u8-strncpy.c: New file.
18996         * tests/unistr/test-strncpy.h: New file.
18997
18998         Tests for module 'unistr/u32-stpcpy'.
18999         * modules/unistr/u32-stpcpy-tests: New file.
19000         * tests/unistr/test-u32-stpcpy.c: New file.
19001
19002         Tests for module 'unistr/u16-stpcpy'.
19003         * modules/unistr/u16-stpcpy-tests: New file.
19004         * tests/unistr/test-u16-stpcpy.c: New file.
19005
19006         Tests for module 'unistr/u8-stpcpy'.
19007         * modules/unistr/u8-stpcpy-tests: New file.
19008         * tests/unistr/test-u8-stpcpy.c: New file.
19009         * tests/unistr/test-stpcpy.h: New file.
19010
19011         Tests for module 'unistr/u32-strcpy'.
19012         * modules/unistr/u32-strcpy-tests: New file.
19013         * tests/unistr/test-u32-strcpy.c: New file.
19014
19015         Tests for module 'unistr/u16-strcpy'.
19016         * modules/unistr/u16-strcpy-tests: New file.
19017         * tests/unistr/test-u16-strcpy.c: New file.
19018
19019         Tests for module 'unistr/u8-strcpy'.
19020         * modules/unistr/u8-strcpy-tests: New file.
19021         * tests/unistr/test-u8-strcpy.c: New file.
19022         * tests/unistr/test-strcpy.h: New file.
19023
19024         Tests for module 'unistr/u32-strnlen'.
19025         * modules/unistr/u32-strnlen-tests: New file.
19026         * tests/unistr/test-u32-strnlen.c: New file.
19027
19028         Tests for module 'unistr/u16-strnlen'.
19029         * modules/unistr/u16-strnlen-tests: New file.
19030         * tests/unistr/test-u16-strnlen.c: New file.
19031
19032         Tests for module 'unistr/u8-strnlen'.
19033         * modules/unistr/u8-strnlen-tests: New file.
19034         * tests/unistr/test-u8-strnlen.c: New file.
19035         * tests/unistr/test-strnlen.h: New file.
19036
19037         Tests for module 'unistr/u32-strlen'.
19038         * modules/unistr/u32-strlen-tests: New file.
19039         * tests/unistr/test-u32-strlen.c: New file.
19040
19041         Tests for module 'unistr/u16-strlen'.
19042         * modules/unistr/u16-strlen-tests: New file.
19043         * tests/unistr/test-u16-strlen.c: New file.
19044
19045         Tests for module 'unistr/u8-strlen'.
19046         * modules/unistr/u8-strlen-tests: New file.
19047         * tests/unistr/test-u8-strlen.c: New file.
19048
19049         Tests for module 'unistr/u32-prev'.
19050         * modules/unistr/u32-prev-tests: New file.
19051         * tests/unistr/test-u32-prev.c: New file.
19052
19053         Tests for module 'unistr/u16-prev'.
19054         * modules/unistr/u16-prev-tests: New file.
19055         * tests/unistr/test-u16-prev.c: New file.
19056
19057         Tests for module 'unistr/u8-prev'.
19058         * modules/unistr/u8-prev-tests: New file.
19059         * tests/unistr/test-u8-prev.c: New file.
19060
19061         Tests for module 'unistr/u32-next'.
19062         * modules/unistr/u32-next-tests: New file.
19063         * tests/unistr/test-u32-next.c: New file.
19064
19065         Tests for module 'unistr/u16-next'.
19066         * modules/unistr/u16-next-tests: New file.
19067         * tests/unistr/test-u16-next.c: New file.
19068
19069         Tests for module 'unistr/u8-next'.
19070         * modules/unistr/u8-next-tests: New file.
19071         * tests/unistr/test-u8-next.c: New file.
19072
19073         Tests for module 'unistr/u32-strmbtouc'.
19074         * modules/unistr/u32-strmbtouc-tests: New file.
19075         * tests/unistr/test-u32-strmbtouc.c: New file.
19076
19077         Tests for module 'unistr/u16-strmbtouc'.
19078         * modules/unistr/u16-strmbtouc-tests: New file.
19079         * tests/unistr/test-u16-strmbtouc.c: New file.
19080
19081         Tests for module 'unistr/u8-strmbtouc'.
19082         * modules/unistr/u8-strmbtouc-tests: New file.
19083         * tests/unistr/test-u8-strmbtouc.c: New file.
19084
19085         Tests for module 'unistr/u32-strmblen'.
19086         * modules/unistr/u32-strmblen-tests: New file.
19087         * tests/unistr/test-u32-strmblen.c: New file.
19088
19089         Tests for module 'unistr/u16-strmblen'.
19090         * modules/unistr/u16-strmblen-tests: New file.
19091         * tests/unistr/test-u16-strmblen.c: New file.
19092
19093         Tests for module 'unistr/u8-strmblen'.
19094         * modules/unistr/u8-strmblen-tests: New file.
19095         * tests/unistr/test-u8-strmblen.c: New file.
19096
19097         Tests for module 'unistr/u32-cpy-alloc'.
19098         * modules/unistr/u32-cpy-alloc-tests: New file.
19099         * tests/unistr/test-u32-cpy-alloc.c: New file.
19100
19101         Tests for module 'unistr/u16-cpy-alloc'.
19102         * modules/unistr/u16-cpy-alloc-tests: New file.
19103         * tests/unistr/test-u16-cpy-alloc.c: New file.
19104
19105         Tests for module 'unistr/u8-cpy-alloc'.
19106         * modules/unistr/u8-cpy-alloc-tests: New file.
19107         * tests/unistr/test-u8-cpy-alloc.c: New file.
19108         * tests/unistr/test-cpy-alloc.h: New file.
19109
19110         Tests for module 'unistr/u32-mbsnlen'.
19111         * modules/unistr/u32-mbsnlen-tests: New file.
19112         * tests/unistr/test-u32-mbsnlen.c: New file.
19113
19114         Tests for module 'unistr/u16-mbsnlen'.
19115         * modules/unistr/u16-mbsnlen-tests: New file.
19116         * tests/unistr/test-u16-mbsnlen.c: New file.
19117
19118         Tests for module 'unistr/u8-mbsnlen'.
19119         * modules/unistr/u8-mbsnlen-tests: New file.
19120         * tests/unistr/test-u8-mbsnlen.c: New file.
19121
19122         Tests for module 'unistr/u32-chr'.
19123         * modules/unistr/u32-chr-tests: New file.
19124         * tests/unistr/test-u32-chr.c: New file.
19125
19126         Tests for module 'unistr/u16-chr'.
19127         * modules/unistr/u16-chr-tests: New file.
19128         * tests/unistr/test-u16-chr.c: New file.
19129
19130         Tests for module 'unistr/u8-chr'.
19131         * modules/unistr/u8-chr-tests: New file.
19132         * tests/unistr/test-u8-chr.c: New file.
19133         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19134
19135         Tests for module 'unistr/u32-cmp2'.
19136         * modules/unistr/u32-cmp2-tests: New file.
19137         * tests/unistr/test-u32-cmp2.c: New file.
19138
19139         Tests for module 'unistr/u16-cmp2'.
19140         * modules/unistr/u16-cmp2-tests: New file.
19141         * tests/unistr/test-u16-cmp2.c: New file.
19142
19143         Tests for module 'unistr/u8-cmp2'.
19144         * modules/unistr/u8-cmp2-tests: New file.
19145         * tests/unistr/test-u8-cmp2.c: New file.
19146         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19147
19148         Tests for module 'unistr/u32-cmp'.
19149         * modules/unistr/u32-cmp-tests: New file.
19150         * tests/unistr/test-u32-cmp.c: New file.
19151
19152         Tests for module 'unistr/u16-cmp'.
19153         * modules/unistr/u16-cmp-tests: New file.
19154         * tests/unistr/test-u16-cmp.c: New file.
19155
19156         Tests for module 'unistr/u8-cmp'.
19157         * modules/unistr/u8-cmp-tests: New file.
19158         * tests/unistr/test-u8-cmp.c: New file.
19159         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19160
19161         Tests for module 'unistr/u32-set'.
19162         * modules/unistr/u32-set-tests: New file.
19163         * tests/unistr/test-u32-set.c: New file.
19164
19165         Tests for module 'unistr/u16-set'.
19166         * modules/unistr/u16-set-tests: New file.
19167         * tests/unistr/test-u16-set.c: New file.
19168
19169         Tests for module 'unistr/u8-set'.
19170         * modules/unistr/u8-set-tests: New file.
19171         * tests/unistr/test-u8-set.c: New file.
19172         * tests/unistr/test-set.h: New file.
19173
19174         Tests for module 'unistr/u32-move'.
19175         * modules/unistr/u32-move-tests: New file.
19176         * tests/unistr/test-u32-move.c: New file.
19177
19178         Tests for module 'unistr/u16-move'.
19179         * modules/unistr/u16-move-tests: New file.
19180         * tests/unistr/test-u16-move.c: New file.
19181
19182         Tests for module 'unistr/u8-move'.
19183         * modules/unistr/u8-move-tests: New file.
19184         * tests/unistr/test-u8-move.c: New file.
19185         * tests/unistr/test-move.h: New file.
19186
19187         Tests for module 'unistr/u32-cpy'.
19188         * modules/unistr/u32-cpy-tests: New file.
19189         * tests/unistr/test-u32-cpy.c: New file.
19190
19191         Tests for module 'unistr/u16-cpy'.
19192         * modules/unistr/u16-cpy-tests: New file.
19193         * tests/unistr/test-u16-cpy.c: New file.
19194
19195         Tests for module 'unistr/u8-cpy'.
19196         * modules/unistr/u8-cpy-tests: New file.
19197         * tests/unistr/test-u8-cpy.c: New file.
19198         * tests/unistr/test-cpy.h: New file.
19199
19200 2010-01-09  Bruno Haible  <bruno@clisp.org>
19201
19202         Tests for module 'unistr/u32-uctomb'.
19203         * modules/unistr/u32-uctomb-tests: New file.
19204         * tests/unistr/test-u32-uctomb.c: New file.
19205
19206         Tests for module 'unistr/u16-uctomb'.
19207         * modules/unistr/u16-uctomb-tests: New file.
19208         * tests/unistr/test-u16-uctomb.c: New file.
19209
19210         Tests for module 'unistr/u8-uctomb'.
19211         * modules/unistr/u8-uctomb-tests: New file.
19212         * tests/unistr/test-u8-uctomb.c: New file.
19213
19214         Tests for module 'unistr/u32-mbtoucr'.
19215         * modules/unistr/u32-mbtoucr-tests: New file.
19216         * tests/unistr/test-u32-mbtoucr.c: New file.
19217
19218         Tests for module 'unistr/u16-mbtoucr'.
19219         * modules/unistr/u16-mbtoucr-tests: New file.
19220         * tests/unistr/test-u16-mbtoucr.c: New file.
19221
19222         Tests for module 'unistr/u8-mbtoucr'.
19223         * modules/unistr/u8-mbtoucr-tests: New file.
19224         * tests/unistr/test-u8-mbtoucr.c: New file.
19225
19226         Tests for module 'unistr/u32-mbtouc'.
19227         * modules/unistr/u32-mbtouc-tests: New file.
19228         * tests/unistr/test-u32-mbtouc.c: New file.
19229
19230         Tests for module 'unistr/u16-mbtouc'.
19231         * modules/unistr/u16-mbtouc-tests: New file.
19232         * tests/unistr/test-u16-mbtouc.c: New file.
19233
19234         Tests for module 'unistr/u8-mbtouc'.
19235         * modules/unistr/u8-mbtouc-tests: New file.
19236         * tests/unistr/test-u8-mbtouc.c: New file.
19237
19238         Tests for module 'unistr/u32-mbtouc-unsafe'.
19239         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19240         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19241         * tests/unistr/test-u32-mbtouc.h: New file.
19242
19243         Tests for module 'unistr/u16-mbtouc-unsafe'.
19244         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19245         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19246         * tests/unistr/test-u16-mbtouc.h: New file.
19247
19248         Tests for module 'unistr/u8-mbtouc-unsafe'.
19249         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19250         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19251         * tests/unistr/test-u8-mbtouc.h: New file.
19252
19253         Tests for module 'unistr/u32-mblen'.
19254         * modules/unistr/u32-mblen-tests: New file.
19255         * tests/unistr/test-u32-mblen.c: New file.
19256
19257         Tests for module 'unistr/u16-mblen'.
19258         * modules/unistr/u16-mblen-tests: New file.
19259         * tests/unistr/test-u16-mblen.c: New file.
19260
19261         Tests for module 'unistr/u8-mblen'.
19262         * modules/unistr/u8-mblen-tests: New file.
19263         * tests/unistr/test-u8-mblen.c: New file.
19264
19265         Tests for module 'unistr/u32-to-u16'.
19266         * modules/unistr/u32-to-u16-tests: New file.
19267         * tests/unistr/test-u32-to-u16.c: New file.
19268
19269         Tests for module 'unistr/u32-to-u8'.
19270         * modules/unistr/u32-to-u8-tests: New file.
19271         * tests/unistr/test-u32-to-u8.c: New file.
19272
19273         Tests for module 'unistr/u16-to-u32'.
19274         * modules/unistr/u16-to-u32-tests: New file.
19275         * tests/unistr/test-u16-to-u32.c: New file.
19276
19277         Tests for module 'unistr/u16-to-u8'.
19278         * modules/unistr/u16-to-u8-tests: New file.
19279         * tests/unistr/test-u16-to-u8.c: New file.
19280
19281         Tests for module 'unistr/u8-to-u32'.
19282         * modules/unistr/u8-to-u32-tests: New file.
19283         * tests/unistr/test-u8-to-u32.c: New file.
19284
19285         Tests for module 'unistr/u8-to-u16'.
19286         * modules/unistr/u8-to-u16-tests: New file.
19287         * tests/unistr/test-u8-to-u16.c: New file.
19288
19289         Tests for module 'unistr/u32-check'.
19290         * modules/unistr/u32-check-tests: New file.
19291         * tests/unistr/test-u32-check.c: New file.
19292
19293         Tests for module 'unistr/u16-check'.
19294         * modules/unistr/u16-check-tests: New file.
19295         * tests/unistr/test-u16-check.c: New file.
19296
19297         Tests for module 'unistr/u8-check'.
19298         * modules/unistr/u8-check-tests: New file.
19299         * tests/unistr/test-u8-check.c: New file.
19300
19301         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19302         (category_equals): New function.
19303         (main): Add more tests.
19304         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19305
19306         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19307
19308 2010-01-10  Bruno Haible  <bruno@clisp.org>
19309
19310         unistr/u*-strcoll: Try harder to distinguish different strings.
19311         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19312         compare s1 and s2 to see if they are different.
19313
19314 2010-01-10  Bruno Haible  <bruno@clisp.org>
19315
19316         unistr/u*-stpncpy: Fix the return value.
19317         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19318         description of the return value consistent with stpncpy in glibc.
19319         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19320         written non-NUL unit.
19321
19322 2010-01-10  Bruno Haible  <bruno@clisp.org>
19323
19324         unistr/u*-next: Add missing dependencies.
19325         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19326         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19327         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19328
19329 2010-01-10  Bruno Haible  <bruno@clisp.org>
19330
19331         unistr/u8-mbsnlen: Fix return value for incomplete character.
19332         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19333         u8_mblen.
19334         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19335         Remove unistr/u8-mblen.
19336         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19337         u16_mblen.
19338         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19339         Remove unistr/u16-mblen.
19340
19341 2010-01-10  Bruno Haible  <bruno@clisp.org>
19342
19343         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19344         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19345         Reported by Brian Gough <bjg@gnu.org> and
19346         Chris Clayton <chris2553@googlemail.com> via
19347         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19348
19349 2010-01-09  Bruno Haible  <bruno@clisp.org>
19350
19351         unistr/u16-to-u32: Reject invalid input.
19352         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19353         u16_mbtouc.
19354         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19355         Remove unistr/u16-mbtouc.
19356
19357         unistr/u16-to-u8: Reject invalid input.
19358         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19359         u16_mbtouc.
19360         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19361         Remove unistr/u16-mbtouc.
19362
19363         unistr/u8-to-u32: Reject invalid input.
19364         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19365         u8_mbtouc.
19366         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19367         Remove unistr/u8-mbtouc.
19368
19369         unistr/u8-to-u16: Reject invalid input.
19370         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19371         u8_mbtouc.
19372         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19373         Remove unistr/u8-mbtouc.
19374
19375 2010-01-09  Bruno Haible  <bruno@clisp.org>
19376
19377         Tests for module 'getlogin'.
19378         * modules/getlogin-tests: New file.
19379         * tests/test-getlogin.c: New file.
19380
19381         New module 'getlogin'.
19382         * lib/unistd.in.h (getlogin): New declaration.
19383         * lib/getlogin.c: New file.
19384         * m4/getlogin.m4: New file.
19385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19386         HAVE_GETLOGIN.
19387         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19388         HAVE_GETLOGIN.
19389         * modules/getlogin: New file.
19390         * doc/posix-functions/getlogin.texi: Mention the new module.
19391         Reported by John W. Eaton <jwe@gnu.org>.
19392
19393 2010-01-09  Bruno Haible  <bruno@clisp.org>
19394
19395         getlogin_r: Support for native Windows.
19396         * lib/getlogin_r.c: Include <windows.h>
19397         (getlogin_r): Implement for native Windows.
19398         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19399         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19400         via John W. Eaton <jwe@gnu.org>.
19401
19402 2010-01-09  Bruno Haible  <bruno@clisp.org>
19403
19404         getlogin_r: Small fixes.
19405         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19406         succeeds.
19407         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19408         before testing whether getlogin_r is declared. No need to set
19409         HAVE_DECL_GETLOGIN_R to 1.
19410         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19411
19412 2010-01-09  Bruno Haible  <bruno@clisp.org>
19413
19414         * lib/unistd.in.h (getlogin_r): Add comment.
19415
19416 2010-01-09  Bruno Haible  <bruno@clisp.org>
19417
19418         Tests for module 'getlogin_r'.
19419         * modules/getlogin_r-tests: New file.
19420         * tests/test-getlogin_r.c: New file.
19421
19422 2010-01-09  Jim Meyering  <meyering@redhat.com>
19423
19424         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19425         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19426         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19427
19428 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19429
19430         * lib/dup2.c (rpl_dup2): Improve comment.
19431
19432 2010-01-08  Eric Blake  <ebb9@byu.net>
19433
19434         maint.mk: allow packages to add makefile @@ exceptions
19435         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19436         (sc_makefile_check): Rename...
19437         (sc_makefile_at_at_check): ...to this, and use hook.
19438
19439         dup2: work around mingw bug
19440         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19441         Reported by Simon Josefsson.
19442
19443 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19444
19445         glob: Fix C++ compilation.
19446         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19447         C++.
19448
19449 2010-01-07  Bruno Haible  <bruno@clisp.org>
19450
19451         Fix indentation of wctype.in.h, broken since 2007-01-06.
19452         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19453
19454 2010-01-07  Bruno Haible  <bruno@clisp.org>
19455
19456         mbslen: Avoid collision with system function.
19457         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19458         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19459         * m4/mbslen.m4: New file.
19460         * modules/mbslen (Files): Add it.
19461         (configure.ac): Invoke gl_MBSLEN.
19462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19463         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19464         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19465         via Ian Beckwith <ianb@erislabs.net>.
19466
19467 2010-01-07  Bruno Haible  <bruno@clisp.org>
19468
19469         dirent: Document the last fix.
19470         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19471
19472 2010-01-07  Bruno Haible  <bruno@clisp.org>
19473
19474         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19475         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19476         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19477         va_list are defined.
19478         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19479         Reported by Eric Blake.
19480
19481 2010-01-07  Bruno Haible  <bruno@clisp.org>
19482
19483         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19484         * modules/xlist (Depends-on): Add 'list',
19485         * modules/xoset (Depends-on): Add 'oset'.
19486         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19487
19488 2010-01-07  Bruno Haible  <bruno@clisp.org>
19489
19490         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19491         * doc/posix-functions/strncasecmp.texi: Likewise.
19492
19493 2010-01-07  Bruno Haible  <bruno@clisp.org>
19494
19495         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19496
19497 2010-01-07  John W. Eaton  <jwe@octave.org>
19498
19499         wctype: allow C++ use
19500         * lib/wctype.in.h: Add extern "C" block for C++.
19501
19502 2010-01-06  Eric Blake  <ebb9@byu.net>
19503
19504         maint.mk: detect incorrect GFDL usage
19505         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19506
19507 2010-01-06  Jim Meyering  <meyering@redhat.com>
19508         and Eric Blake  <ebb9@byu.net>
19509
19510         maint.mk: ignore multi-line copyright in NEWS
19511         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19512
19513 2010-01-06  Eric Blake  <ebb9@byu.net>
19514
19515         select: add missing dependency
19516         * modules/select-tests (Depends-on): Move sockets dependency...
19517         * modules/select (Depends-on): ...here.
19518         Reported by Ian Beckwith.
19519
19520         doc: regenerate INSTALL
19521         * doc/INSTALL: Reflect recent autoconf update.
19522         * doc/INSTALL.ISO: Likewise.
19523         * doc/INSTALL.UTF-8: Likewise.
19524
19525         pread: fix compilation on glibc
19526         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19527         Reported by Ralf Wildenhues.
19528
19529         dirent: fix test failure
19530         * lib/dirent.in.h (includes): Guarantee ino_t.
19531         Reported by Ralf Wildenhues.
19532
19533 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19534
19535         linkat, renameat: avoid bad free
19536         * lib/at-func2.c (at_func2): Fix typo.
19537         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19538
19539 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19540
19541         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19542         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19543         to avoid failure of symlink test later.
19544
19545 2010-01-06  Eric Blake  <ebb9@byu.net>
19546
19547         stdio, unistd: guarantee ssize_t
19548         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19549         2008 are exposed when needed.
19550         * lib/stdio.in.h (includes): Likewise.
19551         Reported by Ralf Wildenhues.
19552
19553 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19554
19555         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19556         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19557         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19558
19559 2010-01-06  Jim Meyering  <meyering@redhat.com>
19560
19561         readtokens: this module *does* require xalloc.h
19562         It uses only functions that were omitted by the old syntax-check rule.
19563         * lib/readtokens.c: Include "xalloc.h" once again.
19564         * modules/readtokens (Depends-on): Add xalloc.
19565         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19566
19567 2010-01-05  Eric Blake  <ebb9@byu.net>
19568
19569         maint: support 'make announcement' from a VPATH build
19570         * top/maint.mk (announcement): Look for correct NEWS file.
19571
19572 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19573
19574         utimens (fdutimens): ignore a negative FD, per contract
19575         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19576         when we have a valid file descriptor.  Otherwise, using a brand
19577         new glibc (with just-patched futimens that now fails with EBADF)
19578         would cause this function to fail with ENOSYS.
19579         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19580         See also http://bugzilla.redhat.com/552320.
19581
19582 2010-01-05  Eric Blake  <ebb9@byu.net>
19583
19584         strcase: document what it provides
19585         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19586         gnulib module.
19587         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19588         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19589
19590 2010-01-05  Jim Meyering  <meyering@redhat.com>
19591
19592         maint: remove useless inclusions of "xalloc.h"
19593         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19594         * lib/readtokens.c: Likewise.
19595         * lib/same.c: Likewise.
19596         * modules/getloadavg (Depends-on): Remove xalloc.
19597         * modules/readtokens: Likewise.
19598         * modules/same: Likewise.
19599
19600         maint.mk: include 4 more function names in alloca.h-checking regexp
19601         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19602         regexp.  Before, we would give a false-positive (saying alloca.h
19603         is included unnecessarily) when the only uses involved omitted symbols.
19604
19605         xalloc.h: use consistent formatting
19606         * lib/xalloc.h: Move declarations to start in the first column.
19607
19608 2010-01-05  Eric Blake  <ebb9@byu.net>
19609
19610         mkdir: avoid xalloc
19611         * lib/mkdir.c (includes): Drop unused header.
19612         Reported by John W. Eaton.
19613
19614 2010-01-04  Jim Meyering  <meyering@redhat.com>
19615
19616         nl_langinfo: avoid configure-time syntax error
19617         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19618         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19619         the empty string.  Don't let that provoke a shell syntax error.
19620
19621         regcomp, regexec, fnmatch: avoid array bounds read error
19622         * lib/regcomp.c (build_equiv_class): From glibc:
19623         Use only the low 24 bits of a findidx return value as an index
19624         into the weights array.  Patch by Ulrich Drepper:
19625         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19626         * lib/regexec.c (check_node_accept_bytes): Likewise.
19627         * lib/fnmatch_loop.c (FCT): Likewise.
19628
19629         regcomp: skip collseq lookup when there are no rules
19630         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19631         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19632
19633         regcomp: recognize ill-formed { } expressions
19634         * lib/regcomp.c (parse_dup_op): From glibc:
19635         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19636
19637         regcomp: fix typo in comment
19638         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19639         s/satisfy/satisfies/.
19640
19641         regcomp: sync from glibc: remove dead store
19642         * lib/regcomp.c (duplicate_node_closure): Remove useless
19643         search_duplicated_node call and dead store.
19644
19645         regcomp: sync from glibc; always use nl_langinfo
19646         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19647         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19648         * modules/regex (Depends-on): Add nl_langinfo.
19649
19650 2010-01-04  Eric Blake  <ebb9@byu.net>
19651
19652         fdopendir: fix configure test
19653         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19654
19655 2010-01-01  Bruno Haible  <bruno@clisp.org>
19656
19657         wchar: Remove unused configure check.
19658         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19659
19660 2010-01-01  Eric Blake  <ebb9@byu.net>
19661
19662         headers: make check of system header explicit
19663         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19664         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19665         ourselves.
19666         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19668         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19669         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19670         internals.
19671         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19672         missing.
19673         Suggested by Bruno Haible.
19674
19675 2010-01-01  Jim Meyering  <meyering@redhat.com>
19676
19677         ChangeLog: tweak to eliminate unnecessary copyright line
19678         * ChangeLog: Remove a copyright line that was mistakenly updated
19679         by today's update-copyright run.  Reported by Eric Blake.
19680
19681         test-update-copyright: don't let envvar setting cause test failure
19682         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19683
19684 2010-01-01  Bruno Haible  <bruno@clisp.org>
19685
19686         localename: Avoid gcc warning.
19687         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19688         function if it is not used.
19689
19690 2010-01-01  Jim Meyering  <meyering@redhat.com>
19691
19692         update nearly all FSF copyright year lists to include 2010
19693         Use the same procedure as for 2009, outlined in
19694         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19695
19696         version-etc: set COPYRIGHT_YEAR to 2010
19697         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19698
19699 2009-12-31  Eric Blake  <ebb9@byu.net>
19700
19701         doc: correct availability of cygwin 1.5.x getopt
19702         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19703         variables.
19704         * doc/posix-functions/opterr.texi (opterr): Likewise.
19705         * doc/posix-functions/optind.texi (optind): Likewise.
19706         * doc/posix-functions/optopt.texi (optopt): Likewise.
19707         * doc/posix-functions/tzname.texi (tzname): Likewise.
19708
19709         openat: update maintainer
19710         * modules/openat (Maintainer): Add myself.
19711
19712         utimens: avoid shadowing warning
19713         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19714         buffers into one, to avoid shadowing, as well as avoiding a
19715         redundant stat.
19716         Reported by Jim Meyering.
19717
19718         test-dup2: avoid compiler warning
19719         * tests/test-dup2.c (is_inheritable): Only define if used.
19720
19721 2010-01-01  Bruno Haible  <bruno@clisp.org>
19722
19723         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19724         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19725         defined, use wctomb instead of wcrtomb.
19726
19727 2010-01-01  Bruno Haible  <bruno@clisp.org>
19728
19729         iconv: Reject native Solaris iconv.
19730         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19731         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19732
19733 2009-12-31  Bruno Haible  <bruno@clisp.org>
19734
19735         * tests/test-signal.c (main): Remove test of 'SIG'.
19736
19737 2009-12-31  Bruno Haible  <bruno@clisp.org>
19738
19739         spawn: Fix incomplete fix.
19740         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19741         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19742         warnings for GNULIB_POSIXCHECK again.
19743         Reported by Eric Blake.
19744
19745 2009-12-31  Bruno Haible  <bruno@clisp.org>
19746
19747         Avoid namespace pollution on glibc systems.
19748         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19749         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19750         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19751         glibc systems.
19752
19753 2009-12-31  Bruno Haible  <bruno@clisp.org>
19754
19755         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19756         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19757         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19758         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19759         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19760         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19761         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19762
19763 2009-12-31  Bruno Haible  <bruno@clisp.org>
19764
19765         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19766         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19767         afterwards.
19768
19769 2009-12-31  Bruno Haible  <bruno@clisp.org>
19770
19771         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19772         SYS_UTSNAME_H.
19773
19774 2009-12-31  Bruno Haible  <bruno@clisp.org>
19775
19776         spawn: Fix misapplied patch.
19777         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19778         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19779         warnings for GNULIB_POSIXCHECK.
19780
19781 2009-12-31  Bruno Haible  <bruno@clisp.org>
19782
19783         times: Update after sys_times changed.
19784         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19785         * modules/times (Files): Add it.
19786         (configure.ac): Invoke gl_FUNC_TIMES.
19787
19788 2009-12-31  Bruno Haible  <bruno@clisp.org>
19789
19790         Use AC_C_INLINE where necessary.
19791         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19792         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19793         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19794         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19795         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19796         * m4/mbiter.m4 (gl_MBITER): Likewise.
19797         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19798         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19799         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19800         * modules/u64 (configure.ac): Likewise.
19801
19802 2009-12-31  Bruno Haible  <bruno@clisp.org>
19803
19804         Use AC_C_INLINE instead of module 'inline' where possible.
19805         * modules/inline (Description): Clarify purpose.
19806         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19807         * modules/count-one-bits (Depends-on): Remove inline.
19808         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19809         * modules/openat (Depends-on): Remove inline.
19810         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19811         instead of depending on module 'inline'.
19812         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19813         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19814         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19815         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19816         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19817         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19818         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19819         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19820         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19821         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19822         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19823         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19824         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19825         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19826         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19827         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19828         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19829         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19830         Likewise.
19831         * modules/unictype/property-ascii-hex-digit (Depends-on,
19832         configure.ac): Likewise.
19833         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19834         configure.ac): Likewise.
19835         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19836         configure.ac): Likewise.
19837         * modules/unictype/property-bidi-block-separator (Depends-on,
19838         configure.ac): Likewise.
19839         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19840         configure.ac): Likewise.
19841         * modules/unictype/property-bidi-common-separator (Depends-on,
19842         configure.ac): Likewise.
19843         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19844         Likewise.
19845         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19846         configure.ac): Likewise.
19847         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19848         configure.ac): Likewise.
19849         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19850         configure.ac): Likewise.
19851         * modules/unictype/property-bidi-european-digit (Depends-on,
19852         configure.ac): Likewise.
19853         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19854         configure.ac): Likewise.
19855         * modules/unictype/property-bidi-left-to-right (Depends-on,
19856         configure.ac): Likewise.
19857         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19858         configure.ac): Likewise.
19859         * modules/unictype/property-bidi-other-neutral (Depends-on,
19860         configure.ac): Likewise.
19861         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19862         Likewise.
19863         * modules/unictype/property-bidi-segment-separator (Depends-on,
19864         configure.ac): Likewise.
19865         * modules/unictype/property-bidi-whitespace (Depends-on,
19866         configure.ac): Likewise.
19867         * modules/unictype/property-combining (Depends-on, configure.ac):
19868         Likewise.
19869         * modules/unictype/property-composite (Depends-on, configure.ac):
19870         Likewise.
19871         * modules/unictype/property-currency-symbol (Depends-on,
19872         configure.ac): Likewise.
19873         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19874         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19875         Likewise.
19876         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19877         configure.ac): Likewise.
19878         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19879         Likewise.
19880         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19881         Likewise.
19882         * modules/unictype/property-extender (Depends-on, configure.ac):
19883         Likewise.
19884         * modules/unictype/property-format-control (Depends-on, configure.ac):
19885         Likewise.
19886         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19887         Likewise.
19888         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19889         Likewise.
19890         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19891         Likewise.
19892         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19893         Likewise.
19894         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19895         Likewise.
19896         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19897         Likewise.
19898         * modules/unictype/property-id-start (Depends-on, configure.ac):
19899         Likewise.
19900         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19901         Likewise.
19902         * modules/unictype/property-ids-binary-operator (Depends-on,
19903         configure.ac): Likewise.
19904         * modules/unictype/property-ids-trinary-operator (Depends-on,
19905         configure.ac): Likewise.
19906         * modules/unictype/property-ignorable-control (Depends-on,
19907         configure.ac): Likewise.
19908         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19909         Likewise.
19910         * modules/unictype/property-join-control (Depends-on, configure.ac):
19911         Likewise.
19912         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19913         Likewise.
19914         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19915         Likewise.
19916         * modules/unictype/property-logical-order-exception (Depends-on,
19917         configure.ac): Likewise.
19918         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19919         Likewise.
19920         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19921         * modules/unictype/property-non-break (Depends-on, configure.ac):
19922         Likewise.
19923         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19924         Likewise.
19925         * modules/unictype/property-numeric (Depends-on, configure.ac):
19926         Likewise.
19927         * modules/unictype/property-other-alphabetic (Depends-on,
19928         configure.ac): Likewise.
19929         * modules/unictype/property-other-default-ignorable-code-point
19930         (Depends-on, configure.ac): Likewise.
19931         * modules/unictype/property-other-grapheme-extend (Depends-on,
19932         configure.ac): Likewise.
19933         * modules/unictype/property-other-id-continue (Depends-on,
19934         configure.ac): Likewise.
19935         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19936         Likewise.
19937         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19938         Likewise.
19939         * modules/unictype/property-other-math (Depends-on, configure.ac):
19940         Likewise.
19941         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19942         Likewise.
19943         * modules/unictype/property-paired-punctuation (Depends-on,
19944         configure.ac): Likewise.
19945         * modules/unictype/property-paragraph-separator (Depends-on,
19946         configure.ac): Likewise.
19947         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19948         Likewise.
19949         * modules/unictype/property-pattern-white-space (Depends-on,
19950         configure.ac): Likewise.
19951         * modules/unictype/property-private-use (Depends-on, configure.ac):
19952         Likewise.
19953         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19954         Likewise.
19955         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19956         Likewise.
19957         * modules/unictype/property-radical (Depends-on, configure.ac):
19958         Likewise.
19959         * modules/unictype/property-sentence-terminal (Depends-on,
19960         configure.ac): Likewise.
19961         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19962         Likewise.
19963         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19964         * modules/unictype/property-terminal-punctuation (Depends-on,
19965         configure.ac): Likewise.
19966         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19967         Likewise.
19968         * modules/unictype/property-unassigned-code-value (Depends-on,
19969         configure.ac): Likewise.
19970         * modules/unictype/property-unified-ideograph (Depends-on,
19971         configure.ac): Likewise.
19972         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19973         Likewise.
19974         * modules/unictype/property-variation-selector (Depends-on,
19975         configure.ac): Likewise.
19976         * modules/unictype/property-white-space (Depends-on, configure.ac):
19977         Likewise.
19978         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19979         Likewise.
19980         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19981         Likewise.
19982         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19983         Likewise.
19984         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19985         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19986         Likewise.
19987
19988 2009-12-31  Bruno Haible  <bruno@clisp.org>
19989
19990         Remove unnecessary AC_C_INLINE invocation.
19991         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19992         since 2009-08-21.
19993
19994 2009-12-31  Jim Meyering  <meyering@redhat.com>
19995
19996         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19997         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19998         With this change, we can all remove the gpg_key_ID = ... definition
19999         from our respective cfg.mk files.
20000
20001         maint.mk: create announcement template in ~/, not in /tmp
20002         * top/maint.mk (emit_upload_commands): Adjust.
20003         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20004         Remove temporary file, .ci-msg.
20005
20006 2009-12-31  Eric Blake  <ebb9@byu.net>
20007
20008         link-warning: always build headers with link warnings
20009         * modules/arpa_inet (Makefile.am): Always build replacement
20010         header.
20011         * modules/ctype (Makefile.am): Likewise.
20012         * modules/dirent (Makefile.am): Likewise.
20013         * modules/inttypes (Makefile.am): Likewise.
20014         * modules/langinfo (Makefile.am): Likewise.
20015         * modules/locale (Makefile.am): Likewise.
20016         * modules/spawn (Makefile.am): Likewise.
20017         * modules/sys_file (Makefile.am): Likewise.
20018         * modules/sys_ioctl (Makefile.am): Likewise.
20019         * modules/sys_select (Makefile.am): Likewise.
20020         * modules/sys_socket (Makefile.am): Likewise.
20021         * modules/sys_times (Makefile.am): Likewise.
20022         * modules/sys_utsname (Makefile.am): Likewise.
20023         * modules/sys_wait (Makefile.am): Likewise.
20024         * modules/wchar (Makefile.am): Likewise.
20025         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20026         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20027         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20028         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20029         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20030         Likewise.
20031         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20032         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20033         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20034         Likewise.
20035         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20036         Likewise.
20037         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20038         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20039         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20040         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20041         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20042         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20043         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20044         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20045         (gl_WCHAR_H_DEFAULTS): Likewise.
20046
20047 2009-12-31  Eric Blake  <ebb9@byu.net>
20048
20049         signal, spawn: use link warnings
20050         * lib/signal.in.h (sigset_t): Make unconditional.
20051         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20052         (sigpending, sigprocmask, sigaction): Add link warnings.
20053         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20054         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20055         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20056         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20057         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20058         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20059         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20060         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20061         (posix_spawn_file_actions_destroy)
20062         (posix_spawn_file_actions_addopen)
20063         (posix_spawn_file_actions_addclose)
20064         (posix_spawn_file_actions_adddup2): Likewise.
20065         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20066         * tests/test-signal.c (main): Enhance test.
20067
20068         spawn: improve wrapper support
20069         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20070         (gl_SPAWN_H_DEFAULTS): New defaults.
20071         * modules/spawn (Makefile.am): Substitute them.
20072         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20073         Only declare if missing or broken.
20074
20075         sys_times, sys_utsname: use include_next
20076         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20077         header.
20078         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20079         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20080         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20081         * modules/sys_times (Depends-on): Add include_next.
20082         (Makefile.am): Substitute additional values.
20083         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20084         * lib/sys_times.in.h (includes): Include native header, if
20085         available.
20086         * lib/sys_utsname.in.h (includes): Likewise.
20087         * tests/test-sys_times.c (main): Enhance test.
20088
20089         fdutimensat: revert prior patch
20090         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20091         utimens.h.
20092         Reported by Bruno Haible.
20093
20094 2009-12-30  Eric Blake  <ebb9@byu.net>
20095
20096         sys_wait: drop link-warning dependency
20097         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20098         link-warning efforts.
20099         * lib/sys_wait.in.h: Likewise.
20100
20101         fdutimensat: remove bogus dependency
20102         * modules/fdutimensat (Depends-on): Drop inline.
20103
20104         unistd: fix typo
20105         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20106
20107 2009-12-30  Bruno Haible  <bruno@clisp.org>
20108
20109         Fix compilation error with Solaris cc.
20110         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20111         * lib/unicase/u16-is-invariant.c: Likewise.
20112         * lib/unicase/u32-is-invariant.c: Likewise.
20113         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20114
20115 2009-12-30  Bruno Haible  <bruno@clisp.org>
20116
20117         Fix test crash.
20118         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20119         locales.
20120         Reported by Simon Josefsson <simon@josefsson.org>.
20121
20122 2009-12-30  Bruno Haible  <bruno@clisp.org>
20123
20124         Fix compilation error on most platforms.
20125         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20126         Reported by Simon Josefsson <simon@josefsson.org>
20127         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20128
20129 2009-12-30  Eric Blake  <ebb9@byu.net>
20130
20131         futimens, utimensat: work around ntfs-3g bug
20132         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20133         a ctime bug is present, and expand workaround to cover ntfs-3g.
20134         * lib/utimens.c (fdutimens, lutimens): Likewise.
20135         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20136         (validate_timespec): Adjust return value.
20137         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20138         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20139         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20140
20141 2009-12-29  Eric Blake  <ebb9@byu.net>
20142
20143         link-warning: make usage consistent
20144         * modules/ctype (Depends-on): Add link-warning.
20145         (Makefile.am): Update rules accordingly.
20146         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20147         * modules/locale (Depends-on, Makefile.am): Likewise.
20148         * modules/sys_file (Makefile.am): Likewise.
20149         * modules/getopt-posix (Makefile.am): Delete unused link warning
20150         efforts.
20151         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20152         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20153         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20154         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20155
20156         stdio: remove unused variables
20157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20158         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20159         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20160
20161         tests: test more substitute headers
20162         * modules/ctype-tests: New file.
20163         * modules/dirent-tests: Likewise.
20164         * modules/spawn-tests: Likewise.
20165         * modules/sys_file-tests: Likewise.
20166         * modules/sys_ioctl-tests: Likewise.
20167         * modules/sys_wait-tests: Likewise.
20168         * tests/test-ctype.c: Likewise.
20169         * tests/test-dirent.c: Likewise.
20170         * tests/test-spawn.c: Likewise.
20171         * tests/test-sys_file.c: Likewise.
20172         * tests/test-sys_ioctl.c: Likewise.
20173         * tests/test-sys_wait.c: Likewise.
20174         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20175         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20176         whether or not flock is in use.
20177
20178         tests: remove License section from module
20179         * modules/arpa_inet-tests: Remove unneeded section.
20180         * modules/byteswap-tests: Likewise.
20181         * modules/ceilf-tests: Likewise.
20182         * modules/ceill-tests: Likewise.
20183         * modules/crypto/des-tests: Likewise.
20184         * modules/crypto/gc-arcfour-tests: Likewise.
20185         * modules/crypto/gc-arctwo-tests: Likewise.
20186         * modules/crypto/gc-des-tests: Likewise.
20187         * modules/crypto/gc-hmac-md5-tests: Likewise.
20188         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20189         * modules/crypto/gc-md2-tests: Likewise.
20190         * modules/crypto/gc-md4-tests: Likewise.
20191         * modules/crypto/gc-md5-tests: Likewise.
20192         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20193         * modules/crypto/gc-rijndael-tests: Likewise.
20194         * modules/crypto/gc-sha1-tests: Likewise.
20195         * modules/crypto/gc-tests: Likewise.
20196         * modules/crypto/md2-tests: Likewise.
20197         * modules/crypto/md4-tests: Likewise.
20198         * modules/fcntl-h-tests: Likewise.
20199         * modules/floorf-tests: Likewise.
20200         * modules/floorl-tests: Likewise.
20201         * modules/frexp-nolibm-tests: Likewise.
20202         * modules/frexp-tests: Likewise.
20203         * modules/frexpl-nolibm-tests: Likewise.
20204         * modules/frexpl-tests: Likewise.
20205         * modules/getaddrinfo-tests: Likewise.
20206         * modules/inttypes-tests: Likewise.
20207         * modules/isfinite-tests: Likewise.
20208         * modules/isinf-tests: Likewise.
20209         * modules/ldexpl-tests: Likewise.
20210         * modules/locale-tests: Likewise.
20211         * modules/math-tests: Likewise.
20212         * modules/netdb-tests: Likewise.
20213         * modules/netinet_in-tests: Likewise.
20214         * modules/printf-frexp-tests: Likewise.
20215         * modules/printf-frexpl-tests: Likewise.
20216         * modules/priv-set-tests: Likewise.
20217         * modules/random_r-tests: Likewise.
20218         * modules/round-tests: Likewise.
20219         * modules/roundf-tests: Likewise.
20220         * modules/roundl-tests: Likewise.
20221         * modules/search-tests: Likewise.
20222         * modules/select-tests: Likewise.
20223         * modules/signal-tests: Likewise.
20224         * modules/stdbool-tests: Likewise.
20225         * modules/stddef-tests: Likewise.
20226         * modules/stdint-tests: Likewise.
20227         * modules/stdio-tests: Likewise.
20228         * modules/stdlib-tests: Likewise.
20229         * modules/string-tests: Likewise.
20230         * modules/strings-tests: Likewise.
20231         * modules/sys_select-tests: Likewise.
20232         * modules/sys_socket-tests: Likewise.
20233         * modules/sys_stat-tests: Likewise.
20234         * modules/sys_time-tests: Likewise.
20235         * modules/sys_utsname-tests: Likewise.
20236         * modules/sysexits-tests: Likewise.
20237         * modules/time-tests: Likewise.
20238         * modules/trunc-tests: Likewise.
20239         * modules/truncf-tests: Likewise.
20240         * modules/truncl-tests: Likewise.
20241         * modules/tsearch-tests: Likewise.
20242         * modules/unistd-tests: Likewise.
20243         * modules/wchar-tests: Likewise.
20244         * modules/wctype-tests: Likewise.
20245
20246         tests: fix license on several tests
20247         * tests/test-des.c: Update to GPLv3+.
20248         * tests/test-flock.c: Likewise.
20249         * tests/test-fsync.c: Likewise.
20250         * tests/test-futimens.h: Likewise.
20251         * tests/test-gc-arcfour.c: Likewise.
20252         * tests/test-gc-arctwo.c: Likewise.
20253         * tests/test-gc-des.c: Likewise.
20254         * tests/test-gc-hmac-md5.c: Likewise.
20255         * tests/test-gc-hmac-sha1.c: Likewise.
20256         * tests/test-gc-md2.c: Likewise.
20257         * tests/test-gc-md4.c: Likewise.
20258         * tests/test-gc-md5.c: Likewise.
20259         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20260         * tests/test-gc-rijndael.c: Likewise.
20261         * tests/test-gc-sha1.c: Likewise.
20262         * tests/test-gc.c: Likewise.
20263         * tests/test-getcwd.c: Likewise.
20264         * tests/test-link.c: Likewise.
20265         * tests/test-link.h: Likewise.
20266         * tests/test-lutimens.h: Likewise.
20267         * tests/test-md2.c: Likewise.
20268         * tests/test-md4.c: Likewise.
20269         * tests/test-mkdir.h: Likewise.
20270         * tests/test-rename.c: Likewise.
20271         * tests/test-rename.h: Likewise.
20272         * tests/test-safe-alloc.c: Likewise.
20273         * tests/test-utimens-common.h: Likewise.
20274         * tests/test-utimens.h: Likewise.
20275
20276         maint: sync license texts
20277         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20278         * doc/gpl-3.0.texi: Revert copyright year update.
20279         * doc/lgpl-3.0.texi: Likewise.
20280
20281 2009-12-29  Jim Meyering  <meyering@redhat.com>
20282
20283         update nearly all FSF copyright year lists to include 2009
20284         The files named by the following are exempted:
20285             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20286               test -f "$dst" && { echo "$dst"; continue; }
20287               test -d "$dst" || continue
20288               echo "$dst"/$(basename "$src")
20289             done > exempt
20290             git ls-files tests/unictype >> exempt
20291         In the remaining files, convert to all-interval notation if
20292         - there is already at least one year interval like 2000-2003
20293         - the file is maintained by me
20294         - the file is in lib/uni*/, where that style already prevails
20295         Otherwise, use update-copyright's default.
20296
20297 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20298         and Eric Blake  <ebb9@byu.net>
20299
20300         tests: don't require debug system() to pass
20301         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20302         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20303         * tests/test-unlink.h (test_unlink_func): Likewise.
20304         * tests/test-fstatat.c (main): ...into callers.
20305         * tests/test-lstat.c (main): Likewise.
20306         * tests/test-rmdir.c (main): Likewise.
20307         * tests/test-unlink.c (main): Likewise.
20308         * tests/test-unlinkat.c (main): Likewise.
20309         * tests/test-areadlink-with-size.c (main): Don't require a
20310         debug-only system call to pass, aiding cross-testing to mingw.
20311         * tests/test-areadlink.c (main): Likewise.
20312         * tests/test-areadlinkat-with-size.c (main): Likewise.
20313         * tests/test-areadlinkat.c (main): Likewise.
20314         * tests/test-canonicalize-lgpl.c (main): Likewise.
20315         * tests/test-canonicalize.c (main): Likewise.
20316         * tests/test-chown.c (main): Likewise.
20317         * tests/test-fchownat.c (main): Likewise.
20318         * tests/test-lchown.c (main): Likewise.
20319         * tests/test-fdutimensat.c (main): Likewise.
20320         * tests/test-futimens.c (main): Likewise.
20321         * tests/test-link.c (main): Likewise.
20322         * tests/test-linkat.c (main): Likewise.
20323         * tests/test-mkdir.c (main): Likewise.
20324         * tests/test-mkdirat.c (main): Likewise.
20325         * tests/test-mkfifo.c (main): Likewise.
20326         * tests/test-mkfifoat.c (main): Likewise.
20327         * tests/test-mknod.c (main): Likewise.
20328         * tests/test-readlink.c (main): Likewise.
20329         * tests/test-remove.c (main): Likewise.
20330         * tests/test-rename.c (main): Likewise.
20331         * tests/test-renameat.c (main): Likewise.
20332         * tests/test-symlink.c (main): Likewise.
20333         * tests/test-symlinkat.c (main): Likewise.
20334         * tests/test-utimens.c (main): Likewise.
20335         * tests/test-utimensat.c (main): Likewise.
20336
20337 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20338
20339         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20340         on $(UNUSED_PARAMETER_H) to avoid build failure.
20341
20342 2009-12-28  Jim Meyering  <meyering@redhat.com>
20343
20344         update-copyright: you may specify a max. line length other than 72
20345         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20346
20347         maint: use consistent FSF copyright line syntax
20348         * lib/posixtm.c: Add missing comma in FSF copyright line.
20349         * lib/posixtm.h: Likewise.
20350         * lib/getugroups.c: Add missing ", Inc.".
20351
20352         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20353         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20354         FSF copyright line.  Remove trailing blanks.
20355
20356 2009-12-28  Eric Blake  <ebb9@byu.net>
20357
20358         test-dup2: reduce dependencies
20359         * modules/cloexec (Configure.ac): Set witness.
20360         * modules/dup2-tests (Depends-on): Drop cloexec.
20361         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20362         not present.
20363         Suggested by Bruno Haible.
20364
20365 2009-12-26  Bruno Haible  <bruno@clisp.org>
20366
20367         Remove an unneeded dependency.
20368         * modules/fseterr (Depends-on): Remove dup2.
20369
20370 2009-12-26  Eric Blake  <ebb9@byu.net>
20371
20372         tests: use macros.h in more places
20373         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20374         (ASSERT_STREAM): Provide default of stderr.
20375         * tests/test-dirent-safer.c: Include macros.h, using alternate
20376         stream for assertions.
20377         * tests/test-dup-safer.c: Likewise.
20378         * tests/test-freopen-safer.c: Likewise.
20379         * tests/test-getopt.c: Likewise.
20380         * tests/test-openat-safer.c: Likewise.
20381         * tests/test-pipe.c: Likewise.
20382         * tests/test-popen-safer.c: Likewise.
20383         * modules/dirent-safer-tests (Files): Include macros.h.
20384         * modules/unistd-safer-tests (Files): Likewise.
20385         * modules/freopen-safer-tests (Files): Likewise.
20386         * modules/getopt-posix-tests (Files): Likewise.
20387         * modules/openat-safer-tests (Files): Likewise.
20388         * modules/pipe-tests (Files): Likewise.
20389
20390 2009-12-26  Bruno Haible  <bruno@clisp.org>
20391
20392         javacomp: Portability fix.
20393         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20394         that it also works on Solaris.
20395
20396 2009-12-26  Bruno Haible  <bruno@clisp.org>
20397
20398         localename: Fix storage allocation of gl_locale_name_thread's result.
20399         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20400         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20401         all platforms that have 'uselocale'.
20402         (gl_locale_name_thread_unsafe): New function, extracted from
20403         gl_locale_name_thread.
20404         (gl_locale_name_thread): Call struniq on all platforms that have
20405         'uselocale'.
20406         * tests/test-localename.c (test_locale_name_thread): Check that the
20407         resulting strings are permanently allocated.
20408         * modules/localename-tests (Depends-on): Add strdup.
20409
20410 2009-12-26  Bruno Haible  <bruno@clisp.org>
20411
20412         * tests/test-localename.c (categories): Fill in the strings.
20413
20414 2009-12-26  Jim Meyering  <meyering@redhat.com>
20415
20416         isdir: complete the removal of m4/isdir.m4
20417         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20418
20419         isdir: clean up, since at least grep still uses it
20420         * lib/isdir.c: Include "isdir.h".
20421         (S_ISDIR): Remove now-unneeded definition.
20422         * modules/isdir (Files): Add lib/isdir.h.
20423         * lib/isdir.h: New file, with declaration.
20424         * m4/isdir.m4: Remove file -- unneeded.
20425
20426 2009-12-25  Bruno Haible  <bruno@clisp.org>
20427
20428         selinux-h: Make generated .h files standalone.
20429         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20430         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20431         * lib/se-selinux.in.h: Likewise.
20432         * modules/selinux-h (Depends-on): Add unused-parameter.
20433         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20434         selinux/selinux.h and selinux/context.h.
20435         Suggested by Eric Blake.
20436
20437 2009-12-25  Bruno Haible  <bruno@clisp.org>
20438
20439         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20440         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20441         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20442         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20443         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20444
20445 2009-12-24  Bruno Haible  <bruno@clisp.org>
20446
20447         openat: Fix warning.
20448         * lib/openat-proc.c: Include <unistd.h>.
20449
20450 2009-12-24  Bruno Haible  <bruno@clisp.org>
20451
20452         New module 'unused-parameter'.
20453         * build-aux/unused-parameter.h: New file, extracted from earlier
20454         gnulib-common.m4.
20455         * modules/unused-parameter: New file.
20456         * lib/unistr.h: Include unused-parameter.h.
20457         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20458         _GL_UNUSED.
20459         * modules/unistr/base (Depends-on): Add unused-parameter.
20460
20461 2009-12-24  Bruno Haible  <bruno@clisp.org>
20462
20463         Add missing dependencies to 'extensions' module.
20464         * m4/extensions.m4: Add comment.
20465         * modules/accept4 (Depends-on): Add extensions.
20466         * modules/dup3 (Depends-on): Likewise.
20467         * modules/fcntl (Depends-on): Likewise.
20468         * modules/futimens (Depends-on): Likewise.
20469         * modules/mknod (Depends-on): Likewise.
20470         * modules/pipe2 (Depends-on): Likewise.
20471         * modules/stat-time (Depends-on): Likewise.
20472         * modules/strcasestr-simple (Depends-on): Likewise.
20473         * modules/strsignal (Depends-on): Likewise.
20474         * modules/utimensat (Depends-on): Likewise.
20475         * modules/localcharset (Depends-on): Likewise. Needed because of
20476         gl_FCNTL_O_FLAGS.
20477         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20478         AC_TYPE_MBSTATE_T.
20479         * modules/wcsnrtombs (Depends-on): Likewise.
20480         * modules/wcsrtombs (Depends-on): Likewise.
20481
20482 2009-12-24  Bruno Haible  <bruno@clisp.org>
20483
20484         binary-io: Avoid gcc warning due to SET_BINARY.
20485         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20486         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20487
20488 2009-12-24  Bruno Haible  <bruno@clisp.org>
20489
20490         Avoid future namespace pollution on glibc systems.
20491         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20492         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20493         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20494         glibc systems.
20495
20496 2009-12-24  Bruno Haible  <bruno@clisp.org>
20497
20498         Refactor common macros used in tests.
20499         * tests/macros.h: New file.
20500         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20501         and/or <stdlib.h>, if appropriate.
20502         (ASSERT, SIZEOF): Remove macros.
20503         * tests/test-areadlink-with-size.c: Likewise.
20504         * tests/test-areadlinkat.c: Likewise.
20505         * tests/test-areadlinkat-with-size.c: Likewise.
20506         * tests/test-argmatch.c: Likewise.
20507         * tests/test-argv-iter.c: Likewise.
20508         * tests/test-array-mergesort.c: Likewise.
20509         * tests/test-array_list.c: Likewise.
20510         * tests/test-array_oset.c: Likewise.
20511         * tests/test-avltree_list.c: Likewise.
20512         * tests/test-avltree_oset.c: Likewise.
20513         * tests/test-avltreehash_list.c: Likewise.
20514         * tests/test-base64.c: Likewise.
20515         * tests/test-binary-io.c: Likewise.
20516         * tests/test-bitrotate.c: Likewise.
20517         * tests/test-btowc.c: Likewise.
20518         * tests/test-byteswap.c: Likewise.
20519         * tests/test-c-ctype.c: Likewise.
20520         * tests/test-c-stack.c: Likewise.
20521         * tests/test-c-strcasecmp.c: Likewise.
20522         * tests/test-c-strcasestr.c: Likewise.
20523         * tests/test-c-strncasecmp.c: Likewise.
20524         * tests/test-c-strstr.c: Likewise.
20525         * tests/test-canonicalize-lgpl.c: Likewise.
20526         * tests/test-canonicalize.c: Likewise.
20527         * tests/test-carray_list.c: Likewise.
20528         * tests/test-ceilf1.c: Likewise.
20529         * tests/test-ceilf2.c: Likewise.
20530         * tests/test-ceill.c: Likewise.
20531         * tests/test-chown.c: Likewise.
20532         * tests/test-cloexec.c: Likewise.
20533         * tests/test-copy-acl.c: Likewise.
20534         * tests/test-copy-file.c: Likewise.
20535         * tests/test-count-one-bits.c: Likewise.
20536         * tests/test-dprintf-posix.c: Likewise.
20537         * tests/test-dup2.c: Likewise.
20538         * tests/test-dup3.c: Likewise.
20539         * tests/test-duplocale.c: Likewise.
20540         * tests/test-fbufmode.c: Likewise.
20541         * tests/test-fchdir.c: Likewise.
20542         * tests/test-fchownat.c: Likewise.
20543         * tests/test-fcntl-safer.c: Likewise.
20544         * tests/test-fcntl.c: Likewise.
20545         * tests/test-fdopendir.c: Likewise.
20546         * tests/test-fdutimensat.c: Likewise.
20547         * tests/test-fflush2.c: Likewise.
20548         * tests/test-file-has-acl.c: Likewise.
20549         * tests/test-filevercmp.c: Likewise.
20550         * tests/test-flock.c: Likewise.
20551         * tests/test-floorf1.c: Likewise.
20552         * tests/test-floorf2.c: Likewise.
20553         * tests/test-floorl.c: Likewise.
20554         * tests/test-fnmatch.c: Likewise.
20555         * tests/test-fopen.h: Likewise.
20556         * tests/test-fpending.c: Likewise.
20557         * tests/test-fprintf-posix.c: Likewise.
20558         * tests/test-fpurge.c: Likewise.
20559         * tests/test-freadable.c: Likewise.
20560         * tests/test-freadahead.c: Likewise.
20561         * tests/test-freading.c: Likewise.
20562         * tests/test-freadptr.c: Likewise.
20563         * tests/test-freadptr2.c: Likewise.
20564         * tests/test-freadseek.c: Likewise.
20565         * tests/test-freopen.c: Likewise.
20566         * tests/test-frexp.c: Likewise.
20567         * tests/test-frexpl.c: Likewise.
20568         * tests/test-fseek.c: Likewise.
20569         * tests/test-fseeko.c: Likewise.
20570         * tests/test-fstatat.c: Likewise.
20571         * tests/test-fstrcmp.c: Likewise.
20572         * tests/test-fsync.c: Likewise.
20573         * tests/test-ftell.c: Likewise.
20574         * tests/test-ftello.c: Likewise.
20575         * tests/test-func.c: Likewise.
20576         * tests/test-futimens.c: Likewise.
20577         * tests/test-fwritable.c: Likewise.
20578         * tests/test-fwriting.c: Likewise.
20579         * tests/test-getcwd.c: Likewise.
20580         * tests/test-getdate.c: Likewise.
20581         * tests/test-getdelim.c: Likewise.
20582         * tests/test-getdtablesize.c: Likewise.
20583         * tests/test-getgroups.c: Likewise.
20584         * tests/test-getline.c: Likewise.
20585         * tests/test-getndelim2.c: Likewise.
20586         * tests/test-glob.c: Likewise.
20587         * tests/test-hash.c: Likewise.
20588         * tests/test-i-ring.c: Likewise.
20589         * tests/test-iconv-utf.c: Likewise.
20590         * tests/test-iconv.c: Likewise.
20591         * tests/test-idpriv-drop.c: Likewise.
20592         * tests/test-idpriv-droptemp.c: Likewise.
20593         * tests/test-inet_ntop.c: Likewise.
20594         * tests/test-inet_pton.c: Likewise.
20595         * tests/test-isblank.c: Likewise.
20596         * tests/test-isfinite.c: Likewise.
20597         * tests/test-isinf.c: Likewise.
20598         * tests/test-isnan.c: Likewise.
20599         * tests/test-isnand.h: Likewise.
20600         * tests/test-isnanf.h: Likewise.
20601         * tests/test-isnanl.h: Likewise.
20602         * tests/test-lchown.c: Likewise.
20603         * tests/test-ldexpl.c: Likewise.
20604         * tests/test-link.c: Likewise.
20605         * tests/test-linkat.c: Likewise.
20606         * tests/test-linked_list.c: Likewise.
20607         * tests/test-linkedhash_list.c: Likewise.
20608         * tests/test-localename.c: Likewise.
20609         * tests/test-lseek.c: Likewise.
20610         * tests/test-lstat.c: Likewise.
20611         * tests/test-mbmemcasecmp.c: Likewise.
20612         * tests/test-mbmemcasecoll.c: Likewise.
20613         * tests/test-mbrtowc.c: Likewise.
20614         * tests/test-mbscasecmp.c: Likewise.
20615         * tests/test-mbscasestr1.c: Likewise.
20616         * tests/test-mbscasestr2.c: Likewise.
20617         * tests/test-mbscasestr3.c: Likewise.
20618         * tests/test-mbscasestr4.c: Likewise.
20619         * tests/test-mbschr.c: Likewise.
20620         * tests/test-mbscspn.c: Likewise.
20621         * tests/test-mbsinit.c: Likewise.
20622         * tests/test-mbsncasecmp.c: Likewise.
20623         * tests/test-mbsnrtowcs.c: Likewise.
20624         * tests/test-mbspbrk.c: Likewise.
20625         * tests/test-mbspcasecmp.c: Likewise.
20626         * tests/test-mbsrchr.c: Likewise.
20627         * tests/test-mbsrtowcs.c: Likewise.
20628         * tests/test-mbsspn.c: Likewise.
20629         * tests/test-mbsstr1.c: Likewise.
20630         * tests/test-mbsstr2.c: Likewise.
20631         * tests/test-mbsstr3.c: Likewise.
20632         * tests/test-memchr.c: Likewise.
20633         * tests/test-memchr2.c: Likewise.
20634         * tests/test-memcmp.c: Likewise.
20635         * tests/test-memmem.c: Likewise.
20636         * tests/test-memrchr.c: Likewise.
20637         * tests/test-mkdir.c: Likewise.
20638         * tests/test-mkdirat.c: Likewise.
20639         * tests/test-mkfifo.c: Likewise.
20640         * tests/test-mkfifoat.c: Likewise.
20641         * tests/test-mknod.c: Likewise.
20642         * tests/test-nanosleep.c: Likewise.
20643         * tests/test-nl_langinfo.c: Likewise.
20644         * tests/test-obstack-printf.c: Likewise.
20645         * tests/test-open.c: Likewise.
20646         * tests/test-openat.c: Likewise.
20647         * tests/test-pipe-filter-gi1.c: Likewise.
20648         * tests/test-pipe-filter-gi2-main.c: Likewise.
20649         * tests/test-pipe-filter-ii1.c: Likewise.
20650         * tests/test-pipe-filter-ii2-main.c: Likewise.
20651         * tests/test-pipe2.c: Likewise.
20652         * tests/test-popen.h: Likewise.
20653         * tests/test-posixtm.c: Likewise.
20654         * tests/test-pread.c: Likewise.
20655         * tests/test-printf-frexp.c: Likewise.
20656         * tests/test-printf-frexpl.c: Likewise.
20657         * tests/test-printf-posix.c: Likewise.
20658         * tests/test-priv-set.c: Likewise.
20659         * tests/test-quotearg.c: Likewise.
20660         * tests/test-random_r.c: Likewise.
20661         * tests/test-rawmemchr.c: Likewise.
20662         * tests/test-rbtree_list.c: Likewise.
20663         * tests/test-rbtree_oset.c: Likewise.
20664         * tests/test-rbtreehash_list.c: Likewise.
20665         * tests/test-readlink.c: Likewise.
20666         * tests/test-remove.c: Likewise.
20667         * tests/test-rename.c: Likewise.
20668         * tests/test-renameat.c: Likewise.
20669         * tests/test-rmdir.c: Likewise.
20670         * tests/test-round1.c: Likewise.
20671         * tests/test-roundf1.c: Likewise.
20672         * tests/test-roundl.c: Likewise.
20673         * tests/test-safe-alloc.c: Likewise.
20674         * tests/test-sameacls.c: Likewise.
20675         * tests/test-set-mode-acl.c: Likewise.
20676         * tests/test-setenv.c: Likewise.
20677         * tests/test-sigaction.c: Likewise.
20678         * tests/test-signbit.c: Likewise.
20679         * tests/test-sleep.c: Likewise.
20680         * tests/test-snprintf-posix.c: Likewise.
20681         * tests/test-snprintf.c: Likewise.
20682         * tests/test-sprintf-posix.c: Likewise.
20683         * tests/test-stat-time.c: Likewise.
20684         * tests/test-stat.c: Likewise.
20685         * tests/test-strcasestr.c: Likewise.
20686         * tests/test-strchrnul.c: Likewise.
20687         * tests/test-strerror.c: Likewise.
20688         * tests/test-striconv.c: Likewise.
20689         * tests/test-striconveh.c: Likewise.
20690         * tests/test-striconveha.c: Likewise.
20691         * tests/test-strsignal.c: Likewise.
20692         * tests/test-strstr.c: Likewise.
20693         * tests/test-strtod.c: Likewise.
20694         * tests/test-strverscmp.c: Likewise.
20695         * tests/test-symlink.c: Likewise.
20696         * tests/test-symlinkat.c: Likewise.
20697         * tests/test-trunc1.c: Likewise.
20698         * tests/test-trunc2.c: Likewise.
20699         * tests/test-truncf1.c: Likewise.
20700         * tests/test-truncf2.c: Likewise.
20701         * tests/test-truncl.c: Likewise.
20702         * tests/test-uname.c: Likewise.
20703         * tests/test-unlink.c: Likewise.
20704         * tests/test-unlinkat.c: Likewise.
20705         * tests/test-unsetenv.c: Likewise.
20706         * tests/test-usleep.c: Likewise.
20707         * tests/test-utimens.c: Likewise.
20708         * tests/test-utimensat.c: Likewise.
20709         * tests/test-vasnprintf-posix.c: Likewise.
20710         * tests/test-vasnprintf-posix2.c: Likewise.
20711         * tests/test-vasnprintf.c: Likewise.
20712         * tests/test-vasprintf-posix.c: Likewise.
20713         * tests/test-vasprintf.c: Likewise.
20714         * tests/test-vdprintf-posix.c: Likewise.
20715         * tests/test-vfprintf-posix.c: Likewise.
20716         * tests/test-vprintf-posix.c: Likewise.
20717         * tests/test-vsnprintf-posix.c: Likewise.
20718         * tests/test-vsnprintf.c: Likewise.
20719         * tests/test-vsprintf-posix.c: Likewise.
20720         * tests/test-wcrtomb.c: Likewise.
20721         * tests/test-wcsnrtombs.c: Likewise.
20722         * tests/test-wcsrtombs.c: Likewise.
20723         * tests/test-wctype.c: Likewise.
20724         * tests/test-wcwidth.c: Likewise.
20725         * tests/test-xfprintf-posix.c: Likewise.
20726         * tests/test-xmemdup0.c: Likewise.
20727         * tests/test-xprintf-posix.c: Likewise.
20728         * tests/test-xvasprintf.c: Likewise.
20729         * tests/unicase/test-locale-language.c: Likewise.
20730         * tests/unicase/test-mapping-part1.h: Likewise.
20731         * tests/unicase/test-predicate-part1.h: Likewise.
20732         * tests/unicase/test-u8-casecmp.c: Likewise.
20733         * tests/unicase/test-u8-casecoll.c: Likewise.
20734         * tests/unicase/test-u8-casefold.c: Likewise.
20735         * tests/unicase/test-u8-is-cased.c: Likewise.
20736         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20737         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20738         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20739         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20740         * tests/unicase/test-u8-tolower.c: Likewise.
20741         * tests/unicase/test-u8-totitle.c: Likewise.
20742         * tests/unicase/test-u8-toupper.c: Likewise.
20743         * tests/unicase/test-u16-casecmp.c: Likewise.
20744         * tests/unicase/test-u16-casecoll.c: Likewise.
20745         * tests/unicase/test-u16-casefold.c: Likewise.
20746         * tests/unicase/test-u16-is-cased.c: Likewise.
20747         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20748         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20749         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20750         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20751         * tests/unicase/test-u16-tolower.c: Likewise.
20752         * tests/unicase/test-u16-totitle.c: Likewise.
20753         * tests/unicase/test-u16-toupper.c: Likewise.
20754         * tests/unicase/test-u32-casecmp.c: Likewise.
20755         * tests/unicase/test-u32-casecoll.c: Likewise.
20756         * tests/unicase/test-u32-casefold.c: Likewise.
20757         * tests/unicase/test-u32-is-cased.c: Likewise.
20758         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20759         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20760         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20761         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20762         * tests/unicase/test-u32-tolower.c: Likewise.
20763         * tests/unicase/test-u32-totitle.c: Likewise.
20764         * tests/unicase/test-u32-toupper.c: Likewise.
20765         * tests/unicase/test-ulc-casecmp.c: Likewise.
20766         * tests/unicase/test-ulc-casecoll.c: Likewise.
20767         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20768         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20769         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20770         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20771         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20772         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20773         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20774         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20775         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20776         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20777         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20778         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20779         * tests/unictype/test-bidi_byname.c: Likewise.
20780         * tests/unictype/test-bidi_name.c: Likewise.
20781         * tests/unictype/test-bidi_of.c: Likewise.
20782         * tests/unictype/test-bidi_test.c: Likewise.
20783         * tests/unictype/test-block_list.c: Likewise.
20784         * tests/unictype/test-block_of.c: Likewise.
20785         * tests/unictype/test-block_test.c: Likewise.
20786         * tests/unictype/test-categ_and.c: Likewise.
20787         * tests/unictype/test-categ_and_not.c: Likewise.
20788         * tests/unictype/test-categ_byname.c: Likewise.
20789         * tests/unictype/test-categ_name.c: Likewise.
20790         * tests/unictype/test-categ_none.c: Likewise.
20791         * tests/unictype/test-categ_of.c: Likewise.
20792         * tests/unictype/test-categ_or.c: Likewise.
20793         * tests/unictype/test-categ_test_withtable.c: Likewise.
20794         * tests/unictype/test-combining.c: Likewise.
20795         * tests/unictype/test-decdigit.c: Likewise.
20796         * tests/unictype/test-digit.c: Likewise.
20797         * tests/unictype/test-mirror.c: Likewise.
20798         * tests/unictype/test-numeric.c: Likewise.
20799         * tests/unictype/test-pr_byname.c: Likewise.
20800         * tests/unictype/test-pr_test.c: Likewise.
20801         * tests/unictype/test-predicate-part1.h: Likewise.
20802         * tests/unictype/test-scripts.c: Likewise.
20803         * tests/unictype/test-sy_c_ident.c: Likewise.
20804         * tests/unictype/test-sy_java_ident.c: Likewise.
20805         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20806         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20807         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20808         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20809         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20810         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20811         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20812         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20813         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20814         * tests/uninorm/test-compat-decomposition.c: Likewise.
20815         * tests/uninorm/test-composition.c: Likewise.
20816         * tests/uninorm/test-decomposing-form.c: Likewise.
20817         * tests/uninorm/test-decomposition.c: Likewise.
20818         * tests/uninorm/test-u8-nfc.c: Likewise.
20819         * tests/uninorm/test-u8-nfd.c: Likewise.
20820         * tests/uninorm/test-u8-nfkc.c: Likewise.
20821         * tests/uninorm/test-u8-nfkd.c: Likewise.
20822         * tests/uninorm/test-u8-normcmp.c: Likewise.
20823         * tests/uninorm/test-u8-normcoll.c: Likewise.
20824         * tests/uninorm/test-u16-nfc.c: Likewise.
20825         * tests/uninorm/test-u16-nfd.c: Likewise.
20826         * tests/uninorm/test-u16-nfkc.c: Likewise.
20827         * tests/uninorm/test-u16-nfkd.c: Likewise.
20828         * tests/uninorm/test-u16-normcmp.c: Likewise.
20829         * tests/uninorm/test-u16-normcoll.c: Likewise.
20830         * tests/uninorm/test-u32-nfc.c: Likewise.
20831         * tests/uninorm/test-u32-nfd.c: Likewise.
20832         * tests/uninorm/test-u32-nfkc.c: Likewise.
20833         * tests/uninorm/test-u32-nfkd.c: Likewise.
20834         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20835         * tests/uninorm/test-u32-normcmp.c: Likewise.
20836         * tests/uninorm/test-u32-normcoll.c: Likewise.
20837         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20838         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20839         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20840         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20841         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20842         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20843         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20844         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20845         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20846         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20847         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20848         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20849         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20850         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20851         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20852         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20853         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20854         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20855         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20856         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20857         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20858         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20859         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20860         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20861         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20862         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20863         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20864         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20865         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20866         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20867         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20868         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20869         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20870         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20871         * tests/uniwidth/test-u8-width.c: Likewise.
20872         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20873         * tests/uniwidth/test-u16-width.c: Likewise.
20874         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20875         * tests/uniwidth/test-u32-width.c: Likewise.
20876         * tests/uniwidth/test-uc_width.c: Likewise.
20877         * tests/uniwidth/test-uc_width2.c: Likewise.
20878         * modules/acl-tests (Files): Add tests/macros.h.
20879         * modules/areadlink-tests (Files): Likewise.
20880         * modules/areadlink-with-size-tests (Files): Likewise.
20881         * modules/areadlinkat-tests (Files): Likewise.
20882         * modules/areadlinkat-with-size-tests (Files): Likewise.
20883         * modules/argmatch-tests (Files): Likewise.
20884         * modules/argv-iter-tests (Files): Likewise.
20885         * modules/array-list-tests (Files): Likewise.
20886         * modules/array-mergesort-tests (Files): Likewise.
20887         * modules/array-oset-tests (Files): Likewise.
20888         * modules/avltree-list-tests (Files): Likewise.
20889         * modules/avltree-oset-tests (Files): Likewise.
20890         * modules/avltreehash-list-tests (Files): Likewise.
20891         * modules/base64-tests (Files): Likewise.
20892         * modules/binary-io-tests (Files): Likewise.
20893         * modules/bitrotate-tests (Files): Likewise.
20894         * modules/btowc-tests (Files): Likewise.
20895         * modules/byteswap-tests (Files): Likewise.
20896         * modules/c-ctype-tests (Files): Likewise.
20897         * modules/c-stack-tests (Files): Likewise.
20898         * modules/c-strcase-tests (Files): Likewise.
20899         * modules/c-strcasestr-tests (Files): Likewise.
20900         * modules/c-strstr-tests (Files): Likewise.
20901         * modules/canonicalize-lgpl-tests (Files): Likewise.
20902         * modules/canonicalize-tests (Files): Likewise.
20903         * modules/carray-list-tests (Files): Likewise.
20904         * modules/ceilf-tests (Files): Likewise.
20905         * modules/ceill-tests (Files): Likewise.
20906         * modules/chown-tests (Files): Likewise.
20907         * modules/cloexec-tests (Files): Likewise.
20908         * modules/copy-file-tests (Files): Likewise.
20909         * modules/count-one-bits-tests (Files): Likewise.
20910         * modules/dprintf-posix-tests (Files): Likewise.
20911         * modules/dup2-tests (Files): Likewise.
20912         * modules/dup3-tests (Files): Likewise.
20913         * modules/duplocale-tests (Files): Likewise.
20914         * modules/fbufmode-tests (Files): Likewise.
20915         * modules/fchdir-tests (Files): Likewise.
20916         * modules/fcntl-safer-tests (Files): Likewise.
20917         * modules/fcntl-tests (Files): Likewise.
20918         * modules/fdopendir-tests (Files): Likewise.
20919         * modules/fdutimensat-tests (Files): Likewise.
20920         * modules/fflush-tests (Files): Likewise.
20921         * modules/filevercmp-tests (Files): Likewise.
20922         * modules/flock-tests (Files): Likewise.
20923         * modules/floorf-tests (Files): Likewise.
20924         * modules/floorl-tests (Files): Likewise.
20925         * modules/fnmatch-tests (Files): Likewise.
20926         * modules/fopen-safer-tests (Files): Likewise.
20927         * modules/fopen-tests (Files): Likewise.
20928         * modules/fpending-tests (Files): Likewise.
20929         * modules/fprintf-posix-tests (Files): Likewise.
20930         * modules/fpurge-tests (Files): Likewise.
20931         * modules/freadable-tests (Files): Likewise.
20932         * modules/freadahead-tests (Files): Likewise.
20933         * modules/freading-tests (Files): Likewise.
20934         * modules/freadptr-tests (Files): Likewise.
20935         * modules/freadseek-tests (Files): Likewise.
20936         * modules/freopen-tests (Files): Likewise.
20937         * modules/frexp-nolibm-tests (Files): Likewise.
20938         * modules/frexp-tests (Files): Likewise.
20939         * modules/frexpl-nolibm-tests (Files): Likewise.
20940         * modules/frexpl-tests (Files): Likewise.
20941         * modules/fseek-tests (Files): Likewise.
20942         * modules/fseeko-tests (Files): Likewise.
20943         * modules/fstrcmp-tests (Files): Likewise.
20944         * modules/fsync-tests (Files): Likewise.
20945         * modules/ftell-tests (Files): Likewise.
20946         * modules/ftello-tests (Files): Likewise.
20947         * modules/func-tests (Files): Likewise.
20948         * modules/futimens-tests (Files): Likewise.
20949         * modules/fwritable-tests (Files): Likewise.
20950         * modules/fwriting-tests (Files): Likewise.
20951         * modules/getcwd-tests (Files): Likewise.
20952         * modules/getdate-tests (Files): Likewise.
20953         * modules/getdelim-tests (Files): Likewise.
20954         * modules/getdtablesize-tests (Files): Likewise.
20955         * modules/getgroups-tests (Files): Likewise.
20956         * modules/getline-tests (Files): Likewise.
20957         * modules/getndelim2-tests (Files): Likewise.
20958         * modules/glob-tests (Files): Likewise.
20959         * modules/hash-tests (Files): Likewise.
20960         * modules/i-ring-tests (Files): Likewise.
20961         * modules/iconv-tests (Files): Likewise.
20962         * modules/iconv_open-utf-tests (Files): Likewise.
20963         * modules/idpriv-drop-tests (Files): Likewise.
20964         * modules/idpriv-droptemp-tests (Files): Likewise.
20965         * modules/inet_ntop-tests (Files): Likewise.
20966         * modules/inet_pton-tests (Files): Likewise.
20967         * modules/isblank-tests (Files): Likewise.
20968         * modules/isfinite-tests (Files): Likewise.
20969         * modules/isinf-tests (Files): Likewise.
20970         * modules/isnan-tests (Files): Likewise.
20971         * modules/isnand-nolibm-tests (Files): Likewise.
20972         * modules/isnand-tests (Files): Likewise.
20973         * modules/isnanf-nolibm-tests (Files): Likewise.
20974         * modules/isnanf-tests (Files): Likewise.
20975         * modules/isnanl-nolibm-tests (Files): Likewise.
20976         * modules/isnanl-tests (Files): Likewise.
20977         * modules/lchown-tests (Files): Likewise.
20978         * modules/ldexpl-tests (Files): Likewise.
20979         * modules/link-tests (Files): Likewise.
20980         * modules/linkat-tests (Files): Likewise.
20981         * modules/linked-list-tests (Files): Likewise.
20982         * modules/linkedhash-list-tests (Files): Likewise.
20983         * modules/localename-tests (Files): Likewise.
20984         * modules/lseek-tests (Files): Likewise.
20985         * modules/lstat-tests (Files): Likewise.
20986         * modules/mbmemcasecmp-tests (Files): Likewise.
20987         * modules/mbmemcasecoll-tests (Files): Likewise.
20988         * modules/mbrtowc-tests (Files): Likewise.
20989         * modules/mbscasecmp-tests (Files): Likewise.
20990         * modules/mbscasestr-tests (Files): Likewise.
20991         * modules/mbschr-tests (Files): Likewise.
20992         * modules/mbscspn-tests (Files): Likewise.
20993         * modules/mbsinit-tests (Files): Likewise.
20994         * modules/mbsncasecmp-tests (Files): Likewise.
20995         * modules/mbsnrtowcs-tests (Files): Likewise.
20996         * modules/mbspbrk-tests (Files): Likewise.
20997         * modules/mbspcasecmp-tests (Files): Likewise.
20998         * modules/mbsrchr-tests (Files): Likewise.
20999         * modules/mbsrtowcs-tests (Files): Likewise.
21000         * modules/mbsspn-tests (Files): Likewise.
21001         * modules/mbsstr-tests (Files): Likewise.
21002         * modules/memchr-tests (Files): Likewise.
21003         * modules/memchr2-tests (Files): Likewise.
21004         * modules/memcmp-tests (Files): Likewise.
21005         * modules/memmem-tests (Files): Likewise.
21006         * modules/memrchr-tests (Files): Likewise.
21007         * modules/mkdir-tests (Files): Likewise.
21008         * modules/mkfifo-tests (Files): Likewise.
21009         * modules/mkfifoat-tests (Files): Likewise.
21010         * modules/mknod-tests (Files): Likewise.
21011         * modules/nanosleep-tests (Files): Likewise.
21012         * modules/nl_langinfo-tests (Files): Likewise.
21013         * modules/obstack-printf-tests (Files): Likewise.
21014         * modules/open-tests (Files): Likewise.
21015         * modules/openat-tests (Files): Likewise.
21016         * modules/pipe-filter-gi-tests (Files): Likewise.
21017         * modules/pipe-filter-ii-tests (Files): Likewise.
21018         * modules/pipe2-tests (Files): Likewise.
21019         * modules/popen-safer-tests (Files): Likewise.
21020         * modules/popen-tests (Files): Likewise.
21021         * modules/posixtm-tests (Files): Likewise.
21022         * modules/pread-tests (Files): Likewise.
21023         * modules/printf-frexp-tests (Files): Likewise.
21024         * modules/printf-frexpl-tests (Files): Likewise.
21025         * modules/printf-posix-tests (Files): Likewise.
21026         * modules/priv-set-tests (Files): Likewise.
21027         * modules/quotearg-tests (Files): Likewise.
21028         * modules/random_r-tests (Files): Likewise.
21029         * modules/rawmemchr-tests (Files): Likewise.
21030         * modules/rbtree-list-tests (Files): Likewise.
21031         * modules/rbtree-oset-tests (Files): Likewise.
21032         * modules/rbtreehash-list-tests (Files): Likewise.
21033         * modules/readlink-tests (Files): Likewise.
21034         * modules/remove-tests (Files): Likewise.
21035         * modules/rename-tests (Files): Likewise.
21036         * modules/renameat-tests (Files): Likewise.
21037         * modules/rmdir-tests (Files): Likewise.
21038         * modules/round-tests (Files): Likewise.
21039         * modules/roundf-tests (Files): Likewise.
21040         * modules/roundl-tests (Files): Likewise.
21041         * modules/safe-alloc-tests (Files): Likewise.
21042         * modules/setenv-tests (Files): Likewise.
21043         * modules/sigaction-tests (Files): Likewise.
21044         * modules/signbit-tests (Files): Likewise.
21045         * modules/sleep-tests (Files): Likewise.
21046         * modules/snprintf-posix-tests (Files): Likewise.
21047         * modules/snprintf-tests (Files): Likewise.
21048         * modules/sprintf-posix-tests (Files): Likewise.
21049         * modules/stat-tests (Files): Likewise.
21050         * modules/stat-time-tests (Files): Likewise.
21051         * modules/strcasestr-tests (Files): Likewise.
21052         * modules/strchrnul-tests (Files): Likewise.
21053         * modules/strerror-tests (Files): Likewise.
21054         * modules/striconv-tests (Files): Likewise.
21055         * modules/striconveh-tests (Files): Likewise.
21056         * modules/striconveha-tests (Files): Likewise.
21057         * modules/strsignal-tests (Files): Likewise.
21058         * modules/strstr-tests (Files): Likewise.
21059         * modules/strtod-tests (Files): Likewise.
21060         * modules/strverscmp-tests (Files): Likewise.
21061         * modules/symlink-tests (Files): Likewise.
21062         * modules/symlinkat-tests (Files): Likewise.
21063         * modules/trunc-tests (Files): Likewise.
21064         * modules/truncf-tests (Files): Likewise.
21065         * modules/truncl-tests (Files): Likewise.
21066         * modules/uname-tests (Files): Likewise.
21067         * modules/unicase/cased-tests (Files): Likewise.
21068         * modules/unicase/ignorable-tests (Files): Likewise.
21069         * modules/unicase/locale-language-tests (Files): Likewise.
21070         * modules/unicase/tolower-tests (Files): Likewise.
21071         * modules/unicase/totitle-tests (Files): Likewise.
21072         * modules/unicase/toupper-tests (Files): Likewise.
21073         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21074         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21075         * modules/unicase/u8-casefold-tests (Files): Likewise.
21076         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21077         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21078         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21079         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21080         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21081         * modules/unicase/u8-tolower-tests (Files): Likewise.
21082         * modules/unicase/u8-totitle-tests (Files): Likewise.
21083         * modules/unicase/u8-toupper-tests (Files): Likewise.
21084         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21085         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21086         * modules/unicase/u16-casefold-tests (Files): Likewise.
21087         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21088         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21089         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21090         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21091         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21092         * modules/unicase/u16-tolower-tests (Files): Likewise.
21093         * modules/unicase/u16-totitle-tests (Files): Likewise.
21094         * modules/unicase/u16-toupper-tests (Files): Likewise.
21095         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21096         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21097         * modules/unicase/u32-casefold-tests (Files): Likewise.
21098         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21099         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21100         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21101         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21102         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21103         * modules/unicase/u32-tolower-tests (Files): Likewise.
21104         * modules/unicase/u32-totitle-tests (Files): Likewise.
21105         * modules/unicase/u32-toupper-tests (Files): Likewise.
21106         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21107         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21108         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21109         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21110         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21111         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21112         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21113         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21114         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21115         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21116         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21117         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21118         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21119         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21120         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21121         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21122         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21123         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21124         * modules/unictype/block-list-tests (Files): Likewise.
21125         * modules/unictype/block-of-tests (Files): Likewise.
21126         * modules/unictype/block-test-tests (Files): Likewise.
21127         * modules/unictype/category-C-tests (Files): Likewise.
21128         * modules/unictype/category-Cc-tests (Files): Likewise.
21129         * modules/unictype/category-Cf-tests (Files): Likewise.
21130         * modules/unictype/category-Cn-tests (Files): Likewise.
21131         * modules/unictype/category-Co-tests (Files): Likewise.
21132         * modules/unictype/category-Cs-tests (Files): Likewise.
21133         * modules/unictype/category-L-tests (Files): Likewise.
21134         * modules/unictype/category-Ll-tests (Files): Likewise.
21135         * modules/unictype/category-Lm-tests (Files): Likewise.
21136         * modules/unictype/category-Lo-tests (Files): Likewise.
21137         * modules/unictype/category-Lt-tests (Files): Likewise.
21138         * modules/unictype/category-Lu-tests (Files): Likewise.
21139         * modules/unictype/category-M-tests (Files): Likewise.
21140         * modules/unictype/category-Mc-tests (Files): Likewise.
21141         * modules/unictype/category-Me-tests (Files): Likewise.
21142         * modules/unictype/category-Mn-tests (Files): Likewise.
21143         * modules/unictype/category-N-tests (Files): Likewise.
21144         * modules/unictype/category-Nd-tests (Files): Likewise.
21145         * modules/unictype/category-Nl-tests (Files): Likewise.
21146         * modules/unictype/category-No-tests (Files): Likewise.
21147         * modules/unictype/category-P-tests (Files): Likewise.
21148         * modules/unictype/category-Pc-tests (Files): Likewise.
21149         * modules/unictype/category-Pd-tests (Files): Likewise.
21150         * modules/unictype/category-Pe-tests (Files): Likewise.
21151         * modules/unictype/category-Pf-tests (Files): Likewise.
21152         * modules/unictype/category-Pi-tests (Files): Likewise.
21153         * modules/unictype/category-Po-tests (Files): Likewise.
21154         * modules/unictype/category-Ps-tests (Files): Likewise.
21155         * modules/unictype/category-S-tests (Files): Likewise.
21156         * modules/unictype/category-Sc-tests (Files): Likewise.
21157         * modules/unictype/category-Sk-tests (Files): Likewise.
21158         * modules/unictype/category-Sm-tests (Files): Likewise.
21159         * modules/unictype/category-So-tests (Files): Likewise.
21160         * modules/unictype/category-Z-tests (Files): Likewise.
21161         * modules/unictype/category-Zl-tests (Files): Likewise.
21162         * modules/unictype/category-Zp-tests (Files): Likewise.
21163         * modules/unictype/category-Zs-tests (Files): Likewise.
21164         * modules/unictype/category-and-not-tests (Files): Likewise.
21165         * modules/unictype/category-and-tests (Files): Likewise.
21166         * modules/unictype/category-byname-tests (Files): Likewise.
21167         * modules/unictype/category-name-tests (Files): Likewise.
21168         * modules/unictype/category-none-tests (Files): Likewise.
21169         * modules/unictype/category-of-tests (Files): Likewise.
21170         * modules/unictype/category-or-tests (Files): Likewise.
21171         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21172         * modules/unictype/combining-class-tests (Files): Likewise.
21173         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21174         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21175         * modules/unictype/ctype-blank-tests (Files): Likewise.
21176         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21177         * modules/unictype/ctype-digit-tests (Files): Likewise.
21178         * modules/unictype/ctype-graph-tests (Files): Likewise.
21179         * modules/unictype/ctype-lower-tests (Files): Likewise.
21180         * modules/unictype/ctype-print-tests (Files): Likewise.
21181         * modules/unictype/ctype-punct-tests (Files): Likewise.
21182         * modules/unictype/ctype-space-tests (Files): Likewise.
21183         * modules/unictype/ctype-upper-tests (Files): Likewise.
21184         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21185         * modules/unictype/decimal-digit-tests (Files): Likewise.
21186         * modules/unictype/digit-tests (Files): Likewise.
21187         * modules/unictype/mirror-tests (Files): Likewise.
21188         * modules/unictype/numeric-tests (Files): Likewise.
21189         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21190         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21191         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21192         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21193         Likewise.
21194         * modules/unictype/property-bidi-block-separator-tests (Files):
21195         Likewise.
21196         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21197         Likewise.
21198         * modules/unictype/property-bidi-common-separator-tests (Files):
21199         Likewise.
21200         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21201         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21202         Likewise.
21203         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21204         Likewise.
21205         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21206         Likewise.
21207         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21208         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21209         Likewise.
21210         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21211         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21212         Likewise.
21213         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21214         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21215         * modules/unictype/property-bidi-segment-separator-tests (Files):
21216         Likewise.
21217         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21218         * modules/unictype/property-byname-tests (Files): Likewise.
21219         * modules/unictype/property-combining-tests (Files): Likewise.
21220         * modules/unictype/property-composite-tests (Files): Likewise.
21221         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21222         * modules/unictype/property-dash-tests (Files): Likewise.
21223         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21224         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21225         Likewise.
21226         * modules/unictype/property-deprecated-tests (Files): Likewise.
21227         * modules/unictype/property-diacritic-tests (Files): Likewise.
21228         * modules/unictype/property-extender-tests (Files): Likewise.
21229         * modules/unictype/property-format-control-tests (Files): Likewise.
21230         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21231         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21232         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21233         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21234         * modules/unictype/property-hyphen-tests (Files): Likewise.
21235         * modules/unictype/property-id-continue-tests (Files): Likewise.
21236         * modules/unictype/property-id-start-tests (Files): Likewise.
21237         * modules/unictype/property-ideographic-tests (Files): Likewise.
21238         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21239         * modules/unictype/property-ids-trinary-operator-tests (Files):
21240         Likewise.
21241         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21242         * modules/unictype/property-iso-control-tests (Files): Likewise.
21243         * modules/unictype/property-join-control-tests (Files): Likewise.
21244         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21245         * modules/unictype/property-line-separator-tests (Files): Likewise.
21246         * modules/unictype/property-logical-order-exception-tests (Files):
21247         Likewise.
21248         * modules/unictype/property-lowercase-tests (Files): Likewise.
21249         * modules/unictype/property-math-tests (Files): Likewise.
21250         * modules/unictype/property-non-break-tests (Files): Likewise.
21251         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21252         * modules/unictype/property-numeric-tests (Files): Likewise.
21253         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21254         * modules/unictype/property-other-default-ignorable-code-point-tests
21255         (Files): Likewise.
21256         * modules/unictype/property-other-grapheme-extend-tests (Files):
21257         Likewise.
21258         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21259         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21260         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21261         * modules/unictype/property-other-math-tests (Files): Likewise.
21262         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21263         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21264         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21265         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21266         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21267         * modules/unictype/property-private-use-tests (Files): Likewise.
21268         * modules/unictype/property-punctuation-tests (Files): Likewise.
21269         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21270         * modules/unictype/property-radical-tests (Files): Likewise.
21271         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21272         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21273         * modules/unictype/property-space-tests (Files): Likewise.
21274         * modules/unictype/property-terminal-punctuation-tests (Files):
21275         Likewise.
21276         * modules/unictype/property-test-tests (Files): Likewise.
21277         * modules/unictype/property-titlecase-tests (Files): Likewise.
21278         * modules/unictype/property-unassigned-code-value-tests (Files):
21279         Likewise.
21280         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21281         * modules/unictype/property-uppercase-tests (Files): Likewise.
21282         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21283         * modules/unictype/property-white-space-tests (Files): Likewise.
21284         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21285         * modules/unictype/property-xid-start-tests (Files): Likewise.
21286         * modules/unictype/property-zero-width-tests (Files): Likewise.
21287         * modules/unictype/scripts-tests (Files): Likewise.
21288         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21289         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21290         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21291         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21292         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21293         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21294         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21295         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21296         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21297         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21298         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21299         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21300         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21301         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21302         * modules/uninorm/composition-tests (Files): Likewise.
21303         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21304         * modules/uninorm/decomposition-tests (Files): Likewise.
21305         * modules/uninorm/filter-tests (Files): Likewise.
21306         * modules/uninorm/nfc-tests (Files): Likewise.
21307         * modules/uninorm/nfd-tests (Files): Likewise.
21308         * modules/uninorm/nfkc-tests (Files): Likewise.
21309         * modules/uninorm/nfkd-tests (Files): Likewise.
21310         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21311         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21312         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21313         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21314         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21315         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21316         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21317         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21318         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21319         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21320         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21321         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21322         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21323         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21324         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21325         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21326         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21327         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21328         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21329         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21330         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21331         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21332         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21333         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21334         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21335         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21336         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21337         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21338         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21339         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21340         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21341         * modules/uniwidth/u8-width-tests (Files): Likewise.
21342         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21343         * modules/uniwidth/u16-width-tests (Files): Likewise.
21344         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21345         * modules/uniwidth/u32-width-tests (Files): Likewise.
21346         * modules/uniwidth/width-tests (Files): Likewise.
21347         * modules/unlink-tests (Files): Likewise.
21348         * modules/unsetenv-tests (Files): Likewise.
21349         * modules/usleep-tests (Files): Likewise.
21350         * modules/utimens-tests (Files): Likewise.
21351         * modules/utimensat-tests (Files): Likewise.
21352         * modules/vasnprintf-posix-tests (Files): Likewise.
21353         * modules/vasnprintf-tests (Files): Likewise.
21354         * modules/vasprintf-posix-tests (Files): Likewise.
21355         * modules/vasprintf-tests (Files): Likewise.
21356         * modules/vdprintf-posix-tests (Files): Likewise.
21357         * modules/vfprintf-posix-tests (Files): Likewise.
21358         * modules/vprintf-posix-tests (Files): Likewise.
21359         * modules/vsnprintf-posix-tests (Files): Likewise.
21360         * modules/vsnprintf-tests (Files): Likewise.
21361         * modules/vsprintf-posix-tests (Files): Likewise.
21362         * modules/wcrtomb-tests (Files): Likewise.
21363         * modules/wcsnrtombs-tests (Files): Likewise.
21364         * modules/wcsrtombs-tests (Files): Likewise.
21365         * modules/wctype-tests (Files): Likewise.
21366         * modules/wcwidth-tests (Files): Likewise.
21367         * modules/xmemdup0-tests (Files): Likewise.
21368         * modules/xprintf-posix-tests (Files): Likewise.
21369         * modules/xvasprintf-tests (Files): Likewise.
21370
21371 2009-12-24  Eric Blake  <ebb9@byu.net>
21372
21373         test-nanosleep: fix typo
21374         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21375         patch.
21376         Reported by Bruno Haible.
21377
21378 2009-12-24  Bruno Haible  <bruno@clisp.org>
21379
21380         Reduce namespace pollution on glibc systems.
21381         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21382         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21383         systems.
21384         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21385         <getopt.h> on glibc systems.
21386         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21387         systems.
21388         * lib/fcntl.c: Include <unistd.h> here instead.
21389
21390 2009-12-24  Bruno Haible  <bruno@clisp.org>
21391
21392         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21393
21394 2009-12-24  Eric Blake  <ebb9@byu.net>
21395
21396         tests: add signature checks
21397         * tests/signature.h (SIGNATURE_CHECK): New file.
21398         * modules/atexit-tests (Files): Use it.
21399         * modules/btowc-tests (Files): Likewise.
21400         * modules/canonicalize-lgpl-tests (Files): Likewise.
21401         * modules/ceilf-tests (Files): Likewise.
21402         * modules/ceill-tests (Files): Likewise.
21403         * modules/chown-tests (Files): Likewise.
21404         * modules/dprintf-posix-tests (Files): Likewise.
21405         * modules/dup2-tests (Files): Likewise.
21406         * modules/dup3-tests (Files): Likewise.
21407         * modules/duplocale-tests (Files): Likewise.
21408         * modules/fchdir-tests (Files): Likewise.
21409         * modules/fcntl-tests (Files): Likewise.
21410         * modules/fdopendir-tests (Files): Likewise.
21411         * modules/fflush-tests (Files): Likewise.
21412         * modules/flock-tests (Files): Likewise.
21413         * modules/floorf-tests (Files): Likewise.
21414         * modules/floorl-tests (Files): Likewise.
21415         * modules/fnmatch-tests (Files): Likewise.
21416         * modules/fopen-tests (Files): Likewise.
21417         * modules/fprintf-posix-tests (Files): Likewise.
21418         * modules/freopen-tests (Files): Likewise.
21419         * modules/frexp-nolibm-tests (Files): Likewise.
21420         * modules/frexp-tests (Files): Likewise.
21421         * modules/frexpl-nolibm-tests (Files): Likewise.
21422         * modules/frexpl-tests (Files): Likewise.
21423         * modules/fseek-tests (Files): Likewise.
21424         * modules/fseeko-tests (Files): Likewise.
21425         * modules/fsync-tests (Files): Likewise.
21426         * modules/ftell-tests (Files): Likewise.
21427         * modules/ftello-tests (Files): Likewise.
21428         * modules/futimens-tests (Files): Likewise.
21429         * modules/getaddrinfo-tests (Files): Likewise.
21430         * modules/getcwd-tests (Files): Likewise.
21431         * modules/getdelim-tests (Files): Likewise.
21432         * modules/getdtablesize-tests (Files): Likewise.
21433         * modules/getgroups-tests (Files): Likewise.
21434         * modules/gethostname-tests (Files): Likewise.
21435         * modules/getline-tests (Files): Likewise.
21436         * modules/getopt-posix-tests (Files): Likewise.
21437         * modules/gettimeofday-tests (Files): Likewise.
21438         * modules/glob-tests (Files): Likewise.
21439         * modules/iconv-tests (Files): Likewise.
21440         * modules/inet_ntop-tests (Files): Likewise.
21441         * modules/inet_pton-tests (Files): Likewise.
21442         * modules/isblank-tests (Files): Likewise.
21443         * modules/lchown-tests (Files): Likewise.
21444         * modules/ldexpl-tests (Files): Likewise.
21445         * modules/link-tests (Files): Likewise.
21446         * modules/linkat-tests (Files): Likewise.
21447         * modules/lseek-tests (Files): Likewise.
21448         * modules/lstat-tests (Files): Likewise.
21449         * modules/mbrtowc-tests (Files): Likewise.
21450         * modules/mbsinit-tests (Files): Likewise.
21451         * modules/mbsnrtowcs-tests (Files): Likewise.
21452         * modules/mbsrtowcs-tests (Files): Likewise.
21453         * modules/memchr-tests (Files): Likewise.
21454         * modules/memcmp-tests (Files): Likewise.
21455         * modules/memmem-tests (Files): Likewise.
21456         * modules/memrchr-tests (Files): Likewise.
21457         * modules/mkdir-tests (Files): Likewise.
21458         * modules/mkfifo-tests (Files): Likewise.
21459         * modules/mkfifoat-tests (Files): Likewise.
21460         * modules/mknod-tests (Files): Likewise.
21461         * modules/nanosleep-tests (Files): Likewise.
21462         * modules/nl_langinfo-tests (Files): Likewise.
21463         * modules/obstack-printf-tests (Files): Likewise.
21464         * modules/open-tests (Files): Likewise.
21465         * modules/openat-tests (Files): Likewise.
21466         * modules/perror-tests (Files): Likewise.
21467         * modules/pipe2-tests (Files): Likewise.
21468         * modules/poll-tests (Files): Likewise.
21469         * modules/popen-tests (Files): Likewise.
21470         * modules/posix_spawn-tests (Files): Likewise.
21471         * modules/posix_spawnp-tests (Files): Likewise.
21472         * modules/pread-tests (Files): Likewise.
21473         * modules/printf-posix-tests (Files): Likewise.
21474         * modules/pty-tests (Files): Likewise.
21475         * modules/random_r-tests (Files): Likewise.
21476         * modules/rawmemchr-tests (Files): Likewise.
21477         * modules/readlink-tests (Files): Likewise.
21478         * modules/remove-tests (Files): Likewise.
21479         * modules/rename-tests (Files): Likewise.
21480         * modules/renameat-tests (Files): Likewise.
21481         * modules/rmdir-tests (Files): Likewise.
21482         * modules/round-tests (Files): Likewise.
21483         * modules/roundf-tests (Files): Likewise.
21484         * modules/roundl-tests (Files): Likewise.
21485         * modules/select-tests (Files): Likewise.
21486         * modules/setenv-tests (Files): Likewise.
21487         * modules/sigaction-tests (Files): Likewise.
21488         * modules/sleep-tests (Files): Likewise.
21489         * modules/snprintf-posix-tests (Files): Likewise.
21490         * modules/snprintf-tests (Files): Likewise.
21491         * modules/sprintf-posix-tests (Files): Likewise.
21492         * modules/stat-tests (Files): Likewise.
21493         * modules/strcasestr-tests (Files): Likewise.
21494         * modules/strchrnul-tests (Files): Likewise.
21495         * modules/strerror-tests (Files): Likewise.
21496         * modules/strsignal-tests (Files): Likewise.
21497         * modules/strstr-tests (Files): Likewise.
21498         * modules/strtod-tests (Files): Likewise.
21499         * modules/strverscmp-tests (Files): Likewise.
21500         * modules/symlink-tests (Files): Likewise.
21501         * modules/symlinkat-tests (Files): Likewise.
21502         * modules/times-tests (Files): Likewise.
21503         * modules/trunc-tests (Files): Likewise.
21504         * modules/truncf-tests (Files): Likewise.
21505         * modules/truncl-tests (Files): Likewise.
21506         * modules/tsearch-tests (Files): Likewise.
21507         * modules/uname-tests (Files): Likewise.
21508         * modules/unlink-tests (Files): Likewise.
21509         * modules/unsetenv-tests (Files): Likewise.
21510         * modules/usleep-tests (Files): Likewise.
21511         * modules/utimensat-tests (Files): Likewise.
21512         * modules/vasprintf-tests (Files): Likewise.
21513         * modules/vdprintf-posix-tests (Files): Likewise.
21514         * modules/vfprintf-posix-tests (Files): Likewise.
21515         * modules/vprintf-posix-tests (Files): Likewise.
21516         * modules/vsnprintf-posix-tests (Files): Likewise.
21517         * modules/vsnprintf-tests (Files): Likewise.
21518         * modules/vsprintf-posix-tests (Files): Likewise.
21519         * modules/wcrtomb-tests (Files): Likewise.
21520         * modules/wcsnrtombs-tests (Files): Likewise.
21521         * modules/wcsrtombs-tests (Files): Likewise.
21522         * modules/wcwidth-tests (Files): Likewise.
21523         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21524         * tests/test-isinf.c (isinf): Likewise.
21525         * tests/test-isnan.c (isnan): Likewise.
21526         * tests/test-signbit.c (signbit): Likewise.
21527         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21528         declaration, either as macro or with correct signature.
21529         (select): Ensure function under test is declared with correct
21530         signature in correct header.
21531         * tests/test-atexit.c (atexit): Likewise.
21532         * tests/test-btowc.c (btowc): Likewise.
21533         * tests/test-canonicalize-lgpl.c (realpath)
21534         (canonicalize_file_name): Likewise.
21535         * tests/test-ceilf1.c (ceilf): Likewise.
21536         * tests/test-ceill.c (ceill): Likewise.
21537         * tests/test-chown.c (chown): Likewise.
21538         * tests/test-dprintf-posix.c (dprintf): Likewise.
21539         * tests/test-dup2.c (dup2): Likewise.
21540         * tests/test-dup3.c (dup3): Likewise.
21541         * tests/test-duplocale.c (duplocale): Likewise.
21542         * tests/test-fchdir.c (fchdir): Likewise.
21543         * tests/test-fchownat.c (fchownat): Likewise.
21544         * tests/test-fcntl.c (fcntl): Likewise.
21545         * tests/test-fdopendir.c (fdopendir): Likewise.
21546         * tests/test-fflush.c (fflush): Likewise.
21547         * tests/test-flock.c (flock): Likewise.
21548         * tests/test-floorf1.c (floorf): Likewise.
21549         * tests/test-floorl.c (floorl): Likewise.
21550         * tests/test-fnmatch.c (fnmatch): Likewise.
21551         * tests/test-fopen.c (fopen): Likewise.
21552         * tests/test-fprintf-posix.c (fprintf): Likewise.
21553         * tests/test-freopen.c (freopen): Likewise.
21554         * tests/test-frexp.c (frexp): Likewise.
21555         * tests/test-frexpl.c (frexpl): Likewise.
21556         * tests/test-fseek.c (fseek): Likewise.
21557         * tests/test-fseeko.c (fseeko): Likewise.
21558         * tests/test-fstatat.c (fstatat): Likewise.
21559         * tests/test-fsync.c (fsync): Likewise.
21560         * tests/test-ftell.c (ftell): Likewise.
21561         * tests/test-ftello.c (ftello): Likewise.
21562         * tests/test-futimens.c (futimens): Likewise.
21563         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21564         (gai_strerror): Likewise.
21565         * tests/test-getcwd.c (getcwd): Likewise.
21566         * tests/test-getdelim.c (getdelim): Likewise.
21567         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21568         * tests/test-getgroups.c (getgroups): Likewise.
21569         * tests/test-gethostname.c (gethostname): Likewise.
21570         * tests/test-getline.c (getline): Likewise.
21571         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21572         Likewise.
21573         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21574         * tests/test-glob.c (glob, globfree): Likewise.
21575         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21576         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21577         * tests/test-inet_pton.c (inet_pton): Likewise.
21578         * tests/test-isblank.c (isblank): Likewise.
21579         * tests/test-lchown.c (lchown): Likewise.
21580         * tests/test-ldexpl.c (ldexpl): Likewise.
21581         * tests/test-link.c (link): Likewise.
21582         * tests/test-linkat.c (linkat): Likewise.
21583         * tests/test-lseek.c (lseek): Likewise.
21584         * tests/test-lstat.c (lstat): Likewise.
21585         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21586         * tests/test-mbsinit.c (mbsinit): Likewise.
21587         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21588         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21589         * tests/test-memchr.c (memchr): Likewise.
21590         * tests/test-memcmp.c (memcmp): Likewise.
21591         * tests/test-memmem.c (memmem): Likewise.
21592         * tests/test-memrchr.c (memrchr): Likewise.
21593         * tests/test-mkdir.c (mkdir): Likewise.
21594         * tests/test-mkdirat.c (mkdirat): Likewise.
21595         * tests/test-mkfifo.c (mkfifo): Likewise.
21596         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21597         * tests/test-mknod.c (mknod): Likewise.
21598         * tests/test-nanosleep.c (nanosleep): Likewise.
21599         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21600         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21601         Likewise.
21602         * tests/test-open.c (open): Likewise.
21603         * tests/test-openat.c (openat): Likewise.
21604         * tests/test-perror.c (perror): Likewise.
21605         * tests/test-pipe2.c (pipe2): Likewise.
21606         * tests/test-poll.c (poll): Likewise.
21607         * tests/test-popen.c (popen, pclose): Likewise.
21608         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21609         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21610         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21611         (posix_spawn_file_actions_destroy)
21612         (posix_spawn_file_actions_addclose)
21613         (posix_spawn_file_actions_addopen)
21614         (posix_spawn_file_actions_adddup2): Likewise.
21615         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21616         * tests/test-pread.c (pread): Likewise.
21617         * tests/test-printf-posix.c (printf): Likewise.
21618         * tests/test-pty.c (openpty, forkpty): Likewise.
21619         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21620         (random_r): Likewise.
21621         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21622         * tests/test-readlink.c (readlink): Likewise.
21623         * tests/test-remove.c (remove): Likewise.
21624         * tests/test-rename.c (rename): Likewise.
21625         * tests/test-renameat.c (renameat): Likewise.
21626         * tests/test-rmdir.c (rmdir): Likewise.
21627         * tests/test-round1.c (round): Likewise.
21628         * tests/test-roundf1.c (roundf): Likewise.
21629         * tests/test-roundl.c (roundl): Likewise.
21630         * tests/test-setenv.c (setenv): Likewise.
21631         * tests/test-sigaction.c (sigaction): Likewise.
21632         * tests/test-sleep.c (sleep): Likewise.
21633         * tests/test-snprintf.c (snprintf): Likewise.
21634         * tests/test-sprintf-posix.c (sprintf): Likewise.
21635         * tests/test-stat.c (stat): Likewise.
21636         * tests/test-stpncpy.c (stpncpy): Likewise.
21637         * tests/test-strcasestr.c (strcasestr): Likewise.
21638         * tests/test-strchrnul.c (strchrnul): Likewise.
21639         * tests/test-strerror.c (strerror): Likewise.
21640         * tests/test-strsignal.c (strsignal): Likewise.
21641         * tests/test-strstr.c (strstr): Likewise.
21642         * tests/test-strtod.c (strtod): Likewise.
21643         * tests/test-strverscmp.c (strverscmp): Likewise.
21644         * tests/test-symlink.c (symlink): Likewise.
21645         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21646         * tests/test-times.c (times): Likewise.
21647         * tests/test-trunc1.c (trunc): Likewise.
21648         * tests/test-truncf1.c (truncf): Likewise.
21649         * tests/test-truncl.c (truncl): Likewise.
21650         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21651         Likewise.
21652         * tests/test-uname.c (uname): Likewise.
21653         * tests/test-unlink.c (unlink): Likewise.
21654         * tests/test-unlinkat.c (unlinkat): Likewise.
21655         * tests/test-unsetenv.c (unsetenv): Likewise.
21656         * tests/test-usleep.c (usleep): Likewise.
21657         * tests/test-utimensat.c (utimensat): Likewise.
21658         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21659         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21660         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21661         * tests/test-vprintf-posix.c (vprintf): Likewise.
21662         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21663         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21664         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21665         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21666         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21667         * tests/test-wcwidth.c (wcwidth): Likewise.
21668
21669         build: pull in conditional headers during GNULIB_POSIXCHECK
21670         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21671         definitions from any conditionally-included headers.
21672         * lib/stdlib.in.h (includes): Likewise.
21673         * lib/unistd.in.h (includes): Likewise.
21674
21675 2009-12-24  Bruno Haible  <bruno@clisp.org>
21676
21677         * tests/test-argv-iter.c: Include header file being tested immediately
21678         after config.h.
21679         * tests/test-base64.c: Likewise.
21680         * tests/test-flock.c: Likewise.
21681         * tests/test-fsync.c: Likewise.
21682         * tests/test-getdate.c: Likewise.
21683         * tests/test-getndelim2.c: Likewise.
21684         * tests/test-isfinite.c: Likewise.
21685         * tests/test-isinf.c: Likewise.
21686         * tests/test-strerror.c: Likewise.
21687         * tests/test-strsignal.c: Likewise.
21688
21689 2009-12-23  Eric Blake  <ebb9@byu.net>
21690
21691         unistd: work around cygwin bug
21692         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21693         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21694         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21695
21696 2009-12-23  Bruno Haible  <bruno@clisp.org>
21697
21698         localename: More tests.
21699         * tests/test-localename.c (SIZEOF): New macro.
21700         (categories): New variable.
21701         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21702         test_locale_name_default): Add test w.r.t. thread locale.
21703         (test_locale_name_thread): New function.
21704         (main): Invoke it.
21705
21706         localename: Make aware of thread locale.
21707         * lib/localename.h (gl_locale_name_thread): New declaration.
21708         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21709         behaviour with respect to thread locale.
21710         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21711         <langinfo.h>, glthread/lock.h.
21712         (SIZE_BITS): New macro.
21713         (string_hash): New function.
21714         (struct hash_node): New type.
21715         (HASH_TABLE_SIZE): New macro.
21716         (struniq_hash_table, struniq_lock): New variables.
21717         (struniq): New function.
21718         (gl_locale_name_thread): New function.
21719         (gl_locale_name): Invoke it.
21720         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21721         * modules/localename (Depends-on): Add lock.
21722         Reported by Mike Gran <spk121@yahoo.com>.
21723
21724 2009-12-23  Eric Blake  <ebb9@byu.net>
21725
21726         va-args: new module
21727         * modules/va-args: New file.
21728         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21729         * MODULES.html.sh (Core language properties): Mention it.
21730
21731         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21732         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21733         named alias for __attribute__((__unused__)).
21734         * lib/chown.c: Update client.
21735         * lib/fchmodat.c: Likewise.
21736         * lib/fts.c: Likewise.
21737         * lib/getdate.y: Likewise.
21738         * lib/getgroups.c: Likewise.
21739         * lib/getopt.c: Likewise.
21740         * lib/getugroups.c: Likewise.
21741         * lib/mkdir.c: Likewise.
21742         * lib/mkfifo.c: Likewise.
21743         * lib/mkfifoat.c: Likewise.
21744         * lib/mknod.c: Likewise.
21745         * lib/mknodat.c: Likewise.
21746         * lib/readlink.c: Likewise.
21747         * lib/se-context.in.h: Likewise.
21748         * lib/se-selinux.in.h: Likewise.
21749         * lib/sockets.c: Likewise.
21750         * lib/symlink.c: Likewise.
21751         * lib/symlinkat.c: Likewise.
21752         * lib/unicodeio.c: Likewise.
21753         * lib/unistr.h: Likewise.
21754         * tests/test-areadlink.c: Likewise.
21755         * tests/test-areadlinkat.c: Likewise.
21756         * tests/test-filenamecat.c: Likewise.
21757         * tests/test-fseeko.c: Likewise.
21758         * tests/test-ftello.c: Likewise.
21759         * tests/test-getdate.c: Likewise.
21760         * tests/test-getgroups.c: Likewise.
21761         * tests/test-gethostname.c: Likewise.
21762         * tests/test-quotearg.c: Likewise.
21763         * tests/test-version-etc.c: Likewise.
21764         * tests/test-xalloc-die.c: Likewise.
21765         * tests/test-xfprintf-posix.c: Likewise.
21766         * tests/test-xprintf-posix.c: Likewise.
21767         * tests/test-xvasprintf.c: Likewise.
21768
21769         tests: avoid compiler warnings
21770         * tests/test-fcntl.c (main): Delete unused parameters.
21771         * tests/test-freopen-safer.c (main): Likewise.
21772         * tests/test-xalloc-die.c (main): Mark unused parameters.
21773         * tests/test-fseeko.c (main): Likewise.
21774         * tests/test-ftello.c (main): Likewise.
21775         * tests/test-nanosleep.c (main): Avoid declaration warning.
21776         * tests/test-sleep.c (main): Likewise.
21777         * tests/test-unsetenv.c (main): Silence warning about string
21778         literal.
21779         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21780
21781 2009-12-23  Bruno Haible  <bruno@clisp.org>
21782
21783         * tests/test-localename.c (test_locale_name): New function, extracted
21784         from main. Also test mixed situations.
21785         (test_locale_name_posix, test_locale_name_environ,
21786         test_locale_name_default): New functions.
21787         (main): Invoke them all.
21788         * modules/localename-tests (configure.ac): Test for newlocale.
21789
21790 2009-12-23  Bruno Haible  <bruno@clisp.org>
21791
21792         unistd: Ensure getcwd gets declared before being overridden.
21793         * lib/unistd.in.h: Conditionally include <io.h>.
21794
21795 2009-12-22  Bruno Haible  <bruno@clisp.org>
21796
21797         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21798         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21799         (gl_WCHAR_H): Invoke it.
21800         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21801         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21802         Reported by Karl Berry <karl@freefriends.org>.
21803
21804 2009-12-22  Eric Blake  <ebb9@byu.net>
21805
21806         math, unistd: avoid redundant includes
21807         * lib/math.in.h (isnan): No need to re-include <math.h>.
21808         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21809
21810         getsubopt: work around cygwin bug
21811         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21812         avoid conflicting with system getsubopt.
21813         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21814         bug.
21815
21816         getopt: synchronize from glibc
21817         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21818         parameter order.  Adjust all callers.
21819         (_getopt_internal_r, main): Adjust quoting in error messages.
21820         Drop considerations for outdated POSIX 1003.2 error message.
21821         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21822         callers.
21823         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21824
21825         test-getopt: test stderr behavior
21826         * modules/getopt-posix-tests (Depends-on): Add dup2.
21827         * tests/test-getopt.c (ASSERT): Avoid stderr.
21828         (main): Move stderr to a temporary file.
21829         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21830         Instead, add parameter to inform caller if output occurred.
21831         (test_getopt): Adjust all existing tests to expect silence, and
21832         add new tests of leading ":".
21833         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21834         glibc shortcomings with leading "-:" or "+:" in optstring.
21835         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21836         Likewise.
21837         * doc/posix-functions/getopt.texi (getopt): Likewise.
21838
21839         test-getopt: enhance test
21840         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21841         supports optind=0.
21842         * tests/test-getopt.c (OPTIND_MIN): Move...
21843         * tests/test-getopt.h (OPTIND_MIN): ...here.
21844         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21845         Require that optind=0 works, since modern BSD supports it in
21846         addition to optreset, and since coreutils expects it.
21847         (test_getopt_long_only): New test.
21848         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21849         glibc shortcomings with 'W;', and enforcement of optind=0.
21850         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21851         Likewise.
21852
21853 2009-12-21  Bruno Haible  <bruno@clisp.org>
21854
21855         localename: Improvements for MacOS X and Cygwin.
21856         * lib/localename.h (gl_locale_name_environ): New declaration.
21857         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21858         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21859         (gl_locale_name_posix): Invoke it.
21860         (gl_locale_name_default): Add comments. Use Windows native API also on
21861         Cygwin.
21862
21863 2009-12-21  Bruno Haible  <bruno@clisp.org>
21864
21865         Update list of Win32 locale ids.
21866         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21867         (LANG_SAMI): Renamed from LANG_SAAMI.
21868         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21869         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21870         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21871         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21872         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21873         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21874         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21875         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21876         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21877         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21878         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21879         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21880         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21881         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21882         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21883         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21884         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21885         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21886         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21887         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21888         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21889         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21890         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21891         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21892         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21893         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21894         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21895         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21896         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21897         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21898         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21899         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21900         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21901         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21902         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21903         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21904         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21905         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21906         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21907         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21908         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21909         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21910         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21911         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21912         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21913         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21914         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21915         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21916         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21917         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21918         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21919         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21920         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21921         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21922         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21923         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21924         Add more languages and countries for Sami, Sorbian. Add more countries
21925         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21926         for Pashto. Change country for Syriac, Tswana.
21927
21928 2009-12-21  Eric Blake  <ebb9@byu.net>
21929
21930         test-utimens: avoid spurious failure
21931         * tests/test-chown.h (nap): Factor...
21932         * tests/nap.h: ...into new file.
21933         * tests/test-lchown.h (nap): Avoid duplication.
21934         * tests/test-utimens-common.h (nap): Use shared implementation,
21935         necessary on file systems with 1-second resolution.
21936         * modules/chown-tests (Files): Include new file.
21937         * modules/fdutimensat-tests (Files): Likewise.
21938         * modules/futimens-tests (Files): Likewise.
21939         * modules/lchown-tests (Files): Likewise.
21940         * modules/openat-tests (Files): Likewise.
21941         * modules/utimens-tests (Files): Likewise.
21942         * modules/utimensat-tests (Files): Likewise.
21943
21944 2009-12-19  Eric Blake  <ebb9@byu.net>
21945
21946         futimens, utimensat: work around Linux bug
21947         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21948         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21949         * lib/utimensat.c (rpl_utimensat): Work around it.
21950         * lib/futimens.c (rpl_futimens): Adjust comment.
21951
21952         utimens: work around Linux ctime bug
21953         * lib/utimens.c (detect_ctime_bug): New helper function.
21954         (update_timespec): Differentiate between workaround needed for
21955         this bug vs. what is needed for systems that lack utimensat.
21956         (fdutimens, lutimens): Work around bug.
21957
21958         utimens: check for ctime update
21959         * tests/test-utimens-common.h (check_ctime): Define.
21960         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21961         * tests/test-futimens.h (test_futimens): Likewise.
21962         * tests/test-lutimens.h (test_lutimens): Likewise.
21963         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21964         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21965
21966 2009-12-19  Bruno Haible  <bruno@clisp.org>
21967
21968         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21969         * tests/test-dprintf-posix2.sh: New file.
21970         * tests/test-dprintf-posix2.c: New file.
21971         * modules/dprintf-posix-tests (Files): Add them.
21972         (configure.ac): Check for getrlimit and setrlimit.
21973         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21974
21975 2009-12-19  Bruno Haible  <bruno@clisp.org>
21976
21977         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21978         * tests/test-fprintf-posix3.sh: New file.
21979         * tests/test-fprintf-posix3.c: New file.
21980         * modules/fprintf-posix-tests (Files): Add them.
21981         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21982
21983 2009-12-19  Eric Blake  <ebb9@byu.net>
21984
21985         dirfd: fix prototype
21986         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21987         * lib/dirfd.c (dirfd): Likewise.
21988
21989         canonicalize: reduce memory usage
21990         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21991         allocation to size.
21992         Reported by Solar Designer <solar@openwall.com>.
21993
21994 2009-12-19  Bruno Haible  <bruno@clisp.org>
21995
21996         New module attribute 'Applicability'.
21997         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21998         * gnulib-tool: New option --extract-applicability.
21999         (func_usage): Document it.
22000         (sed_extract_prog): Recognize it.
22001         (func_get_applicability): New function.
22002         (func_import): Generalize handling of 'link-warning' module.
22003         * modules/link-warning (Applicability): New section.
22004         * modules/arg-nonnull (Applicability): New section.
22005         Repoted by Simon Josefsson <simon@josefsson.org>.
22006
22007 2009-12-19  Bruno Haible  <bruno@clisp.org>
22008
22009         fflush: tweak
22010         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22011         * lib/fseeko.c (rpl_fseeko): Likewise.
22012
22013 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22014
22015         * lib/gl_list.h: Fix typo in comment.
22016
22017 2009-12-16  Eric Blake  <ebb9@byu.net>
22018
22019         fcntl: use to simplify other modules
22020         * modules/cloexec (Depends-on): Add fcntl.
22021         * modules/fchdir (Depends-on): Likewise.
22022         * modules/fd-safer-flag (Depends-on): Likewise.
22023         * modules/unistd-safer (Depends-on): Likewise.
22024         * modules/dup3 (configure.ac): Set module indicator.
22025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22026         missing.
22027         * lib/fchdir.c (_gl_register_dup): Fix comment.
22028         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22029         * lib/dup-safer.c (dup_safer): Likewise.
22030         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22031         * lib/dup3.c (dup3): Likewise.
22032         * tests/test-fchdir.c (main): Enhance test.
22033         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22034
22035         fcntl: port portions of fcntl to mingw
22036         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22037         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22038         replacement for mingw.
22039         * modules/fcntl (Description): Update.
22040         (Depends-on): Add dup2.
22041         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22042         * modules/fcntl-h (Makefile.am): Substitute it.
22043         * lib/fcntl.in.h (fcntl): Update declaration.
22044         (F_DUPFD, F_GETFD): New macros, when needed.
22045         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22046         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22047         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22048         we now guarantee.
22049
22050         fcntl: work around cygwin bug in F_DUPFD
22051         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22052         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22053         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22054         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22055         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22056
22057         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22058         * modules/fcntl (Files): List new files.
22059         (configure.ac): Run a test.
22060         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22061         * lib/fcntl.c (rpl_fcntl): Likewise.
22062         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22063         (gl_FCNTL_H): Always replace fcntl.h.
22064         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22065         * lib/fcntl.in.h (fcntl): Declare replacement.
22066         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22067         needed, plus a witness.
22068         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22069         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22070         * tests/test-fcntl.c: New file.
22071         * modules/fcntl-tests: Likewise.
22072
22073         binary-io: avoid potential compilation warning
22074         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22075         directives.
22076
22077         fflush: avoid compilation error on NetBSD
22078         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22079         between off_t and fpos_t, since the latter is sometimes a struct.
22080         * lib/fseeko.c (rpl_fseeko): Likewise.
22081         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22082
22083 2009-12-15  Eric Blake  <ebb9@byu.net>
22084
22085         fcntl-h, stdio, sys_ioctl: fix declarations
22086         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22087         function must not take arguments.
22088         * lib/sys_ioctl.in.h (ioctl): Likewise.
22089         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22090         (open): Add a link warning.
22091
22092 2009-12-15  Jim Meyering  <meyering@redhat.com>
22093
22094         areadlink, areadlink-with-size: relax license to LGPLv2+
22095         * modules/areadlink (License): Relax to LGPLv2+.
22096         * modules/areadlink-with-size (License): Likewise.
22097
22098 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22099             Bruno Haible  <bruno@clisp.org>
22100
22101         *printf: Fix memory leak.
22102         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22103         * lib/vfprintf.c (vfprintf): Likewise.
22104         * lib/dprintf.c (dprintf): Likewise.
22105         * lib/vdprintf.c (vdprintf): Likewise.
22106
22107 2009-12-14  Eric Blake  <ebb9@byu.net>
22108
22109         accept4: adjust module dependencies
22110         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22111
22112         utimens: one more try at avoiding compiler warning
22113         * lib/utimens.c (lutimens): Lower scope of result.
22114
22115 2009-12-13  Bruno Haible  <bruno@clisp.org>
22116
22117         Move the malloc checking from module 'list' to new module 'xlist'.
22118         * modules/xlist: New file.
22119         * lib/gl_xlist.h: New file.
22120         * lib/gl_xlist.c: New file.
22121         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22122         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22123         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22124         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22125         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22126         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22127         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22128         gl_sortedlist_nx_add): New declarations.
22129         (struct gl_list_implementation): Rename and change methods accordingly.
22130         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22131         (gl_list_nx_create): Renamed from gl_list_create.
22132         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22133         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22134         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22135         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22136         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22137         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22138         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22139         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22140         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22141         gl_list_create_empty.
22142         (gl_list_nx_create): Renamed from gl_list_create.
22143         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22144         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22145         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22146         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22147         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22148         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22149         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22150         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22151         * lib/gl_array_list.c: Don't include xalloc.h.
22152         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22153         NULL upon out-of-memory.
22154         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22155         out-of-memory.
22156         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22157         Change return type to 'int'.
22158         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22159         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22160         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22161         upon out-of-memory.
22162         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22163         upon out-of-memory.
22164         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22165         upon out-of-memory.
22166         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22167         upon out-of-memory.
22168         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22169         out-of-memory.
22170         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22171         Update.
22172         (gl_array_list_implementation): Update.
22173         * lib/gl_carray_list.c: Don't include xalloc.h.
22174         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22175         Return NULL upon out-of-memory.
22176         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22177         out-of-memory.
22178         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22179         Change return type to 'int'.
22180         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22181         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22182         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22183         upon out-of-memory.
22184         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22185         upon out-of-memory.
22186         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22187         out-of-memory.
22188         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22189         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22190         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22191         Update.
22192         (gl_carray_list_implementation): Update.
22193         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22194         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22195         gl_linked_create_empty. Return NULL upon out-of-memory.
22196         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22197         out-of-memory.
22198         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22199         Change return type to 'int'. Return -1 upon out-of-memory.
22200         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22201         out-of-memory.
22202         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22203         upon out-of-memory.
22204         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22205         upon out-of-memory.
22206         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22207         NULL upon out-of-memory.
22208         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22209         upon out-of-memory.
22210         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22211         out-of-memory.
22212         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22213         Update.
22214         * lib/gl_linked_list.c: Don't include xalloc.h.
22215         (gl_linked_list_implementation): Update.
22216         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22217         (add_to_bucket): Change return type to 'int'.
22218         (gl_linkedhash_list_implementation): Update.
22219         * lib/gl_anytree_list1.h (free_subtree): New function.
22220         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22221         gl_tree_create_empty. Return NULL upon out-of-memory.
22222         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22223         Change return type to 'int'. Return -1 upon out-of-memory.
22224         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22225         out-of-memory.
22226         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22227         (gl_tree_remove_node): New function, moved here from
22228         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22229         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22230         Update.
22231         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22232         malloc, not xmalloc. Return NULL upon out-of-memory.
22233         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22234         out-of-memory.
22235         (gl_tree_remove_node_from_tree): New function, extracted from
22236         gl_tree_remove_node.
22237         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22238         upon out-of-memory.
22239         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22240         out-of-memory.
22241         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22242         upon out-of-memory.
22243         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22244         upon out-of-memory.
22245         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22246         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22247         not xmalloc. Return NULL upon out-of-memory.
22248         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22249         out-of-memory.
22250         (gl_tree_remove_node_from_tree): New function, extracted from
22251         gl_tree_remove_node.
22252         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22253         upon out-of-memory.
22254         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22255         out-of-memory.
22256         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22257         upon out-of-memory.
22258         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22259         upon out-of-memory.
22260         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22261         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22262         gl_anytree_list1.h before gl_anyavltree_list2.h.
22263         (gl_avltree_list_implementation): Update.
22264         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22265         gl_anytree_list1.h before gl_anyavltree_list2.h.
22266         (gl_rbtree_list_implementation): Update.
22267         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22268         Change return type to 'int'. Return -1 upon out-of-memory. Use
22269         __builtin_expect.
22270         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22271         (gl_avltreehash_list_implementation): Update.
22272         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22273         (gl_rbtreehash_list_implementation): Update.
22274         * modules/array-list (Depends-on): Remove xalloc.
22275         * modules/carray-list (Depends-on): Likewise.
22276         * modules/linked-list (Depends-on): Likewise.
22277         * modules/linkedhash-list (Depends-on): Likewise.
22278         * modules/avltree-list (Depends-on): Likewise.
22279         * modules/rbtree-list (Depends-on): Likewise.
22280         * modules/avltreehash-list (Depends-on): Likewise.
22281         * modules/rbtreehash-list (Depends-on): Likewise.
22282
22283         * modules/xsublist: New file.
22284         * lib/gl_xsublist.h: New file.
22285         * lib/gl_xsublist.c: New file.
22286         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22287         (gl_sublist_nx_create): New declaration.
22288         * lib/gl_sublist.c: Don't include xalloc.h.
22289         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22290         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22291         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22292         Change return type to 'int'. Return -1 upon out-of-memory.
22293         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22294         upon out-of-memory.
22295         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22296         NULL upon out-of-memory.
22297         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22298         upon out-of-memory.
22299         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22300         NULL upon out-of-memory.
22301         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22302         NULL upon out-of-memory.
22303         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22304         upon out-of-memory.
22305         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22306         (gl_sublist_list_implementation): Update.
22307         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22308         upon out-of-memory.
22309         * modules/sublist (Depends-on): Remove xalloc.
22310
22311         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22312         * tests/test-carray_list.c: Likewise.
22313         * tests/test-linked_list.c: Likewise.
22314         * tests/test-linkedhash_list.c: Likewise.
22315         * tests/test-avltree_list.c: Likewise.
22316         * tests/test-rbtree_list.c: Likewise.
22317         * tests/test-avltreehash_list.c: Likewise.
22318         * tests/test-rbtreehash_list.c: Likewise.
22319         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22320         * modules/carray-list-tests (Makefile.am): Likewise.
22321         * modules/linked-list-tests (Makefile.am): Likewise.
22322         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22323         * modules/avltree-list-tests (Makefile.am): Likewise.
22324         * modules/rbtree-list-tests (Makefile.am): Likewise.
22325         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22326         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22327
22328         * NEWS: Mention the changes.
22329
22330         * lib/clean-temp.c: Include gl_xlist.h.
22331         * modules/clean-temp (Depends-on): Add xlist.
22332
22333         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22334         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22335
22336         * tests/test-array_oset.c: Include gl_xlist.h.
22337         * modules/array-oset-tests (Depends-on): Add xlist.
22338
22339         Reported by José E. Marchesi <jemarch@gnu.org>.
22340
22341 2009-12-13  Bruno Haible  <bruno@clisp.org>
22342
22343         Move the malloc checking from module 'oset' to new module 'xoset'.
22344         * modules/xoset: New file.
22345         * lib/gl_xoset.h: New file.
22346         * lib/gl_xoset.c: New file.
22347         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22348         declarations.
22349         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22350         (struct gl_oset_implementation): Rename and change methods accordingly.
22351         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22352         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22353         'int'. Mark as __warn_unused_result__.
22354         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22355         gl_oset_create_empty.
22356         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22357         'int'.
22358         * lib/gl_array_oset.c: Don't include xalloc.h.
22359         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22360         malloc, not xmalloc.
22361         (grow): Change return type to 'int'. Don't call xalloc_die.
22362         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22363         to 'int'.
22364         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22365         'int'.
22366         (gl_array_oset_implementation): Update.
22367         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22368         gl_tree_create_empty.
22369         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22370         'int'.
22371         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22372         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22373         xmalloc.
22374         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22375         not xmalloc.
22376         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22377         xmalloc.
22378         (gl_avltree_oset_implementation): Update.
22379         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22380         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22381         xmalloc.
22382         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22383         not xmalloc.
22384         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22385         xmalloc.
22386         (gl_rbtree_oset_implementation): Update.
22387         * modules/array-oset (Depends-on): Remove xalloc.
22388         * modules/avltree-oset (Depends-on): Likewise.
22389         * modules/rbtree-oset (Depends-on): Likewise.
22390         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22391         * tests/test-avltree_oset.c: Likewise.
22392         * tests/test-rbtree_oset.c: Likewise.
22393         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22394         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22395         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22396         * NEWS: Mention the change.
22397
22398 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22399
22400         maint.mk: allow a project to override release-prep commands
22401         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22402         commands into a new rule.
22403         (release-prep): New rule.
22404         (release-prep-hook): New overridable variable.
22405
22406 2009-12-13  Bruno Haible  <bruno@clisp.org>
22407
22408         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22409
22410 2009-12-13  Jim Meyering  <meyering@redhat.com>
22411
22412         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22413         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22414
22415 2009-12-12  Bruno Haible  <bruno@clisp.org>
22416
22417         duplocale: Tweak.
22418         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22419
22420 2009-12-12  Karl Berry  <karl@gnu.org>
22421
22422         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22423
22424 2009-12-12  Bruno Haible  <bruno@clisp.org>
22425
22426         * m4/po.m4: Undo incorrect untabification.
22427
22428 2009-12-12  Bruno Haible  <bruno@clisp.org>
22429
22430         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22431         * modules/c-strtod (Depends-on): Add locale.
22432         * modules/c-strtold (Depends-on): Likewise.
22433
22434 2009-12-12  Bruno Haible  <bruno@clisp.org>
22435
22436         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22437
22438 2009-12-11  Eric Blake  <ebb9@byu.net>
22439
22440         setenv: relax requirement in light of POSIX ruling
22441         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22442         not NULL.
22443         * tests/test-setenv.c (main): Relax test.
22444         * tests/test-unsetenv.c (main): Likewise.
22445         * doc/posix-functions/setenv.texi (setenv): Document this.
22446         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22447
22448 2009-12-11  Bruno Haible  <bruno@clisp.org>
22449
22450         New module 'fd-safer-flag'.
22451         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22452         * lib/dup-safer.c (dup_safer_flag): Remove function.
22453         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22454         * lib/fd-safer.c (fd_safer_flag): Remove function.
22455         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22456         * modules/cloexec (configure.ac): Drop indicator macro.
22457         * modules/fd-safer-flag: New file.
22458         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22459         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22460         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22461
22462 2009-12-11  Bruno Haible  <bruno@clisp.org>
22463
22464         Tests for module 'nl_langinfo'.
22465         * modules/nl_langinfo-tests: New file.
22466         * tests/test-nl_langinfo.sh: New file.
22467         * tests/test-nl_langinfo.c: New file.
22468
22469         New module 'nl_langinfo'.
22470         * lib/nl_langinfo.c: New file.
22471         * m4/nl_langinfo.m4: New file.
22472         * modules/nl_langinfo: New file.
22473         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22474
22475 2009-12-11  Bruno Haible  <bruno@clisp.org>
22476
22477         Tests for module 'langinfo'.
22478         * modules/langinfo-tests: New file.
22479         * tests/test-langinfo.c: New file.
22480
22481         New module 'langinfo'.
22482         * lib/langinfo.in.h: New file.
22483         * m4/langinfo_h.m4: New file.
22484         * modules/langinfo: New file.
22485         * doc/posix-headers/langinfo.texi: Mention the new module.
22486
22487 2009-12-11  Bruno Haible  <bruno@clisp.org>
22488
22489         * lib/config.charset: Untabify.
22490
22491 2009-12-11  Bruno Haible  <bruno@clisp.org>
22492
22493         * modules/unistd-safer (configure.ac): Drop indicator macro.
22494
22495 2009-12-11  Bruno Haible  <bruno@clisp.org>
22496
22497         Move pipe2-safer code to its own file.
22498         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22499         * lib/pipe-safer.c (pipe2_safer): Remove function.
22500         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22501         (Makefile.am): Add it to lib_SOURCES.
22502
22503 2009-12-10  Bruno Haible  <bruno@clisp.org>
22504
22505         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22506
22507 2009-12-10  Bruno Haible  <bruno@clisp.org>
22508
22509         Declare which arguments expect non-NULL values, for GCC and clang.
22510         * build-aux/arg-nonnull.h: New file.
22511         * modules/arg-nonnull: New file.
22512         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22513         (inet_ntop, inet_pton): Use it.
22514         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22515         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22516         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22517         (open, openat): Use it.
22518         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22519         (fnmatch): Use it.
22520         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22521         (getopt, getopt_long, getopt_long_only): Use it.
22522         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22523         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22524         Use it.
22525         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22526         (iconv_open): Use it.
22527         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22528         (strtoimax, strtoumax): Use it.
22529         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22530         (duplocale): Use it.
22531         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22532         (frexp, frexpl): Use it.
22533         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22534         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22535         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22536         (tsearch, tfind, tdelete, twalk): Use it.
22537         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22538         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22539         sigpending): Use it.
22540         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22541         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22542         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22543         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22544         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22545         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22546         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22547         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22548         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22549         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22550         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22551         Use it.
22552         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22553         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22554         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22555         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22556         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22557         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22558         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22559         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22560         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22561         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22562         strtoull, unsetenv): Use it.
22563         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22564         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22565         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22566         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22567         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22568         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22569         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22570         (strcasecmp, strncasecmp): Use it.
22571         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22572         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22573         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22574         rpl_setsockopt): Use it.
22575         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22576         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22577         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22578         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22579         (gettimeofday): Use it.
22580         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22581         (times): Use it.
22582         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22583         (uname): Use it.
22584         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22585         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22586         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22587         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22588         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22589         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22590         unlinkat, write): Use it.
22591         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22592         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22593         * lib/argv-iter.h: Include arg-nonnull.h.
22594         (_ATTRIBUTE_NONNULL_): Remove macro.
22595         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22596         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22597         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22598         optimization.
22599         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22600         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22601         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22602         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22603         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22604         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22605         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22606         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22607         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22608         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22609         * modules/dirent (Depends-on): Add arg-nonnull.
22610         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22611         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22612         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22613         * modules/fnmatch (Depends-on): Add arg-nonnull.
22614         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22615         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22616         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22617         * modules/glob (Depends-on): Add arg-nonnull.
22618         (Makefile.am): Insert arg-nonnull.h into glob.h.
22619         * modules/iconv_open (Depends-on): Add arg-nonnull.
22620         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22621         * modules/inttypes (Depends-on): Add arg-nonnull.
22622         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22623         * modules/locale (Depends-on): Add arg-nonnull.
22624         (Makefile.am): Insert arg-nonnull.h into locale.h.
22625         * modules/math (Depends-on): Add arg-nonnull.
22626         (Makefile.am): Insert arg-nonnull.h into math.h.
22627         * modules/netdb (Depends-on): Add arg-nonnull.
22628         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22629         * modules/search (Depends-on): Add arg-nonnull.
22630         (Makefile.am): Insert arg-nonnull.h into search.h.
22631         * modules/signal (Depends-on): Add arg-nonnull.
22632         (Makefile.am): Insert arg-nonnull.h into signal.h.
22633         * modules/spawn (Depends-on): Add arg-nonnull.
22634         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22635         * modules/stdio (Depends-on): Add arg-nonnull.
22636         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22637         * modules/stdlib (Depends-on): Add arg-nonnull.
22638         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22639         * modules/string (Depends-on): Add arg-nonnull.
22640         (Makefile.am): Insert arg-nonnull.h into string.h.
22641         * modules/strings (Depends-on): Add arg-nonnull.
22642         (Makefile.am): Insert arg-nonnull.h into strings.h.
22643         * modules/sys_socket (Depends-on): Add arg-nonnull.
22644         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22645         * modules/sys_stat (Depends-on): Add arg-nonnull.
22646         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22647         * modules/sys_time (Depends-on): Add arg-nonnull.
22648         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22649         * modules/sys_times (Depends-on): Add arg-nonnull.
22650         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22651         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22652         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22653         * modules/time (Depends-on): Add arg-nonnull.
22654         (Makefile.am): Insert arg-nonnull.h into time.h.
22655         * modules/unistd (Depends-on): Add arg-nonnull.
22656         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22657         * modules/wchar (Depends-on): Add arg-nonnull.
22658         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22659         * modules/argv-iter (Depends-on): Add arg-nonnull.
22660         * tests/test-canonicalize.c (null_ptr): New function.
22661         (main): Use it.
22662         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22663         (main): Use it.
22664         * tests/test-memmem.c (null_ptr): New function.
22665         (main): Use it.
22666         Reported by Jim Meyering.
22667
22668 2009-12-10  Bruno Haible  <bruno@clisp.org>
22669
22670         Use spaces for indentation, not tabs.
22671         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22672         * m4/*.m4: Untabify.
22673         * build-aux/*.h: Untabify.
22674         * tests/**/*.[hc]: Untabify.
22675         * README: New section "Indent with spaces, not TABs", based on
22676         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22677         * NEWS: Mention the change.
22678
22679 2009-12-10  Bruno Haible  <bruno@clisp.org>
22680
22681         pty test: Fix link error.
22682         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22683         test_pty_LDADD.
22684
22685 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22686
22687         * modules/pty: New file.
22688         * modules/pty-tests: New file.
22689         * m4/pty.m4: New file.
22690         * tests/test-pty.c: New file.
22691         * doc/glibc-headers/pty.texi: Modified.
22692         * doc/glibc-functions/forkpty.texi: Modified.
22693         * doc/glibc-functions/openpty.texi: Modified.
22694
22695 2009-12-10  Bruno Haible  <bruno@clisp.org>
22696
22697         Avoid syntax error in C++ mode.
22698         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22699
22700 2009-12-10  Bruno Haible  <bruno@clisp.org>
22701
22702         Use sed with option -e.
22703         * gnulib-tool (func_version, func_emit_copyright_notice,
22704         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22705         option -e to sed.
22706         * modules/link-warning (Makefile.am): Likewise.
22707
22708 2009-12-10  Jim Meyering  <meyering@redhat.com>
22709
22710         mgetgroups: do not write bytes beyond end of malloc'd buffer
22711         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22712         username, we call getgroups with a one-element-shorter buffer,
22713         but still told it the length was original, max_n_groups.
22714
22715 2009-12-09  Eric Blake  <ebb9@byu.net>
22716
22717         cloexec: relax license
22718         * modules/cloexec (Maintainer): Add myself.
22719         (License): Use LGPL, not GPL.
22720
22721         link-warning: optimize generation
22722         * modules/link-warning (Makefile.am): Reduce process usage.
22723
22724 2009-12-09  Bruno Haible  <bruno@clisp.org>
22725
22726         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22727         workaround was added on 2009-11-17.
22728
22729 2009-12-09  Jim Meyering  <meyering@redhat.com>
22730             Bruno Haible  <bruno@clisp.org>
22731
22732         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22733         * modules/link-warning (Makefile.am): Make the comment-removing sed
22734         command more robust in the face of bootstrap-prepended comment lines.
22735
22736 2009-12-09  Bruno Haible  <bruno@clisp.org>
22737
22738         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22739         most one group.
22740
22741 2009-12-09  Simon Josefsson <simon@josefsson.org>
22742             Bruno Haible  <bruno@clisp.org>
22743
22744         * build-aux/link-warning.h: Add copyright notice.
22745         * modules/link-warning (Makefile.am): Generate link-warning.h from
22746         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22747         * NEWS: Mention change in link-warning module.
22748         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22749         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22750         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22751         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22752         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22753         * modules/math (Makefile.am): Add dependency to math.h.
22754         * modules/search (Makefile.am): Add dependency to search.h.
22755         * modules/signal (Makefile.am): Add dependency to signal.h.
22756         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22757         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22758         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22759         * modules/string (Makefile.am): Add dependency to string.h.
22760         * modules/strings (Makefile.am): Add dependency to strings.h.
22761         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22762         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22763         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22764         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22765         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22766         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22767         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22768         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22769         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22770
22771 2009-12-09  Bruno Haible  <bruno@clisp.org>
22772
22773         fchdir: Optimize away rpl_fstat when possible.
22774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22775         REPLACE_OPEN_DIRECTORY.
22776         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22777
22778 2009-12-09  Bruno Haible  <bruno@clisp.org>
22779
22780         * lib/fchdir.c: Update comment.
22781
22782 2009-12-09  Bruno Haible  <bruno@clisp.org>
22783
22784         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22785
22786 2009-12-08  Eric Blake  <ebb9@byu.net>
22787
22788         fchdir: avoid memory leak on re-registration.
22789         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22790
22791 2009-12-08  Jim Meyering  <meyering@redhat.com>
22792
22793         init.sh: avoid Solaris 10 /bin/sh portability problem
22794         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22795         sourced script:
22796           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22797           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22798           bar
22799         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22800         and two tests used that idiom.
22801         * tests/init.sh: Update suggested usage comments.
22802         (path_prepend_): New function, to be used in place
22803         of the --src-path=DIR option.
22804         (setup_): Move PATH-prepending code into path_prepend_.
22805         * tests/test-pread.sh: Adapt to new usage.
22806         * tests/test-xalloc-die.sh: Likewise.
22807
22808 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22809
22810         * doc/gnulib.texi (Glibc pty.h): Add.
22811         * doc/glibc-functions/forkpty.texi: Add.
22812         * doc/glibc-functions/openpty.texi: Add.
22813         Suggested by Bruno Haible.
22814
22815 2009-12-08  Eric Blake  <ebb9@byu.net>
22816
22817         fchdir: fix logic bugs
22818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22819         * tests/test-fchdir.c (main): Enhance test.
22820         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22821         is in use.
22822
22823         dup2: fix logic bugs
22824         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22825         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22826         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22827         exists.
22828         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22829
22830 2009-12-07  Eric Blake  <ebb9@byu.net>
22831
22832         unlink: fix m4 detection
22833         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22834
22835         unistd-safer: add unit test
22836         * modules/unistd-safer-tests: New file.
22837         * tests/test-dup-safer.c: Likewise.
22838         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22839         * tests/test-dup2.c (setmode): Likewise.
22840         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22841
22842         cloexec: preserve text vs. binary across dup_cloexec
22843         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22844         mode.
22845         * modules/dup2-tests (Depends-on): Add binary-io.
22846         * modules/cloexec-tests (Depends-on): Likewise.
22847         * tests/test-dup2.c (setmode, is_mode): New helpers.
22848         (main): Add tests that translation mode is preserved.
22849         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22850         Reported by Bruno Haible.
22851
22852         mgetgroups: reduce duplicate listings
22853         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22854         resulting array.
22855         * tests/test-chown.h (test_chown): Simplify client.
22856         * tests/test-lchown.h (test_lchown): Likewise.
22857
22858 2009-12-06  Bruno Haible  <bruno@clisp.org>
22859
22860         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22861         value.
22862
22863 2009-12-06  Bruno Haible  <bruno@clisp.org>
22864
22865         * lib/progname.c: Include stdio.h, stdlib.h.
22866         (set_program_name): Reject a NULL argument.
22867
22868 2009-12-05  Eric Blake  <ebb9@byu.net>
22869
22870         pipe2-safer: new module
22871         * modules/pipe2-safer: New file.
22872         * lib/unistd-safer.h (pipe2_safer): New prototype.
22873         * lib/unistd--.h (pipe2): New wrapper.
22874         * lib/pipe-safer.c (pipe2_safer): New function.
22875         * modules/pipe (Depends-on): Add pipe2-safer.
22876         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22877
22878         stdlib-safer: preserve cloexec flag for mkostemp[s]
22879         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22880         fd_safer_flag.
22881
22882         unistd-safer: allow preservation of cloexec status via flag
22883         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22884         prototypes.
22885         * lib/dup-safer.c (dup_safer_flag): New function.
22886         * lib/fd-safer.c (fd_safer_flag): Likewise.
22887         * modules/cloexec (configure.ac): Set witness.
22888
22889         test-dup2: enhance test
22890         * modules/dup2-tests (Depends-on): Add cloexec.
22891         * tests/test-dup2.c (main): Enhance test.
22892
22893         cloexec: add dup_cloexec
22894         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22895         header and comments.
22896         * lib/cloexec.c (set_cloexec_flag): Add comments.
22897         (dup_cloexec): New function, with mingw implementation borrowed
22898         from...
22899         * lib/w32spawn.h (dup_noinherit): ...here.
22900         * modules/execute (Depends-on): Add cloexec.
22901         * modules/pipe (Depends-on): Likewise.
22902         * modules/cloexec (Depends-on): Add dup2.
22903         * modules/cloexec-tests (Files): New file.
22904         * tests/test-cloexec.c: Likewise.
22905
22906         test-xalloc-die: fix test for mingw
22907         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22908         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22909         directory and .exe suffix off argv[0] output.
22910
22911         test-fseeko: fix test for mingw
22912         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22913         than undefining fseek, so test will pass on mingw.
22914
22915 2009-12-05  Bruno Haible  <bruno@clisp.org>
22916
22917         * lib/progname.h (set_program_name): Clarify specification.
22918         * lib/progname.c (set_program_name): Likewise.
22919         Reported by Jim Meyering.
22920
22921 2009-12-05  Jim Meyering  <meyering@redhat.com>
22922
22923         maint.mk: backslash-escape parens in default regexp
22924         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22925         backslash-escape the literal parentheses.
22926
22927         maint.mk: news-date-check: use grep -E
22928         * top/maint.mk (today): Define a Make variable, not a...
22929         (news-date-check): ...shell variable.
22930         (news-date-regexp): Use the Make variable.
22931         Use grep's -E option.  Change the failing diagnostic to mention
22932         the variable, $(news-date-regexp).
22933
22934 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22935
22936         maintainer-makefile: allow customization of NEWS entry format
22937         * top/maint.mk (news-date-regexp): New overridable variable.
22938         (news-date-check): Use it.
22939
22940 2009-12-04  Eric Blake  <ebb9@byu.net>
22941
22942         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22943         * lib/mgetgroups.h (xgetgroups): New prototype.
22944         * lib/mgetgroups.c (xgetgroups): New wrapper.
22945         (mgetgroups): Handle ENOSYS.
22946         * modules/mgetgroups (Depends-on): Add realloc.
22947         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22948
22949         mgetgroups: avoid argument promotion issues with -1
22950         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22951         for invalid gid_t.
22952         * tests/test-chown.h (getegid, test_chown): Likewise.
22953         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22954
22955 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22956
22957         exclude: Fix header file problems.
22958         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22959
22960 2009-12-01  Jim Meyering  <meyering@redhat.com>
22961
22962         fts: fts_open: do not let an empty string cause immediate failure
22963         This is required in support of GNU rm, for which the command
22964         "rm A '' B" must process and remove both A and B, in spite of
22965         the empty string argument.
22966         * lib/fts.c (fts_open): Do not let the presence of an empty string
22967         cause fts_open to fail immediately.  Most fts-using tools must be
22968         able to process all arguments, in order, and can be expected to
22969         diagnose such arguments themselves.
22970
22971 2009-11-30  Eric Blake  <ebb9@byu.net>
22972
22973         utimens: fix compilation error
22974         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22975         Declare variable at right scope.
22976
22977 2009-11-29  Jim Meyering  <meyering@redhat.com>
22978
22979         bootstrap: handle perl-5.11's changed --version output
22980         * build-aux/bootstrap (get_version): Handle perl separately,
22981         since perl-5.11's --version output is different.
22982
22983 2009-11-28  Jim Meyering  <meyering@redhat.com>
22984
22985         userspec: depend on the inttostr module, too
22986         * modules/userspec (Depends-on): Add inttostr.
22987
22988         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22989         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22990         number of MAXUID when it evaluates to (uid_t) -1.
22991         Likewise for group ID.  Reported by Matt McCutchen in
22992         <http://savannah.gnu.org/bugs/?28113>
22993
22994         userspec: reformat to use spaces, not TABs
22995         * lib/userspec.c: Expand TABs to spaces.
22996         Add Emacs' "indent-tabs-mode: nil" hint.
22997
22998 2009-11-27  Eric Blake  <ebb9@byu.net>
22999
23000         getopt-gnu: flush out another BSD bug
23001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23002         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23003         flush out BSD bug.
23004         * tests/test-getopt.h (test_getopt): End lists with NULL.
23005         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23006         (test_getopt_long_posix): Enhance test.
23007         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23008         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23009         getopt-gnu.
23010         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23011         Likewise.
23012
23013 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23014
23015         * modules/idpriv-droptemp-tests (Notice): Fix text.
23016
23017 2009-11-27  Jim Meyering  <meyering@redhat.com>
23018
23019         test-xalloc-die: avoid spurious failure due to libtool argv difference
23020         In a libtool-enabled project, this test would fail due to a difference
23021         in the emitted program name, e.g.,
23022         -test-xalloc-die: memory exhausted
23023         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23024         Use program to avoid that.
23025         * modules/xalloc-die-tests (Depends-on): Add progname.
23026         * tests/test-xalloc-die.c: Include progname.h".
23027         (program_name): Remove decl.
23028         (main): Call set_program_name.
23029         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23030
23031 2009-11-26  Richard Jones  <rjones@redhat.com>
23032
23033         w32sock: leave win32 error in place.
23034         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23035
23036 2009-11-26  Eric Blake  <ebb9@byu.net>
23037
23038         init.sh: suggest to use skip_ and fail_ functions in comments
23039         * tests/init.sh: Add a sentence.
23040
23041 2009-11-25  Bruno Haible  <bruno@clisp.org>
23042
23043         init.sh: add documentation in comments
23044         * tests/init.sh: Add some developer and user documentation.
23045
23046 2009-11-26  Jim Meyering  <meyering@redhat.com>
23047
23048         init.sh: accommodate even those who specify bogus srcdir manually
23049         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23050         configure-time tests to be sanitized, so that there is no need to
23051         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23052         (with no double quotes) suffices.  However, since tests may be
23053         invoked manually, and since you may explicitly set srcdir to the
23054         name of a directory containing spaces, do quote its uses here.
23055         * tests/test-pread.sh: Likewise.
23056         Suggested by Bruno Haible.
23057
23058         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23059         * tests/test-pread.sh: Write no data into the pipe, because
23060         test-pread actually reads none.  This avoids a diagnostic,
23061         "bash: echo: write error: Broken pipe", that arises in the unusual
23062         event something is ignoring SIGPIPE, and might be interpreted
23063         as some sort of failure.  Reported by Bruno Haible.
23064
23065 2009-11-25  Jim Meyering  <meyering@redhat.com>
23066
23067         test-pread: cover failure with ESPIPE and EINVAL
23068         * tests/test-pread.c (main): Test for failure, too.
23069         * tests/test-pread.sh: Invoke with stdin on a pipe.
23070         Suggested by Eric Blake.
23071
23072         pread: improvement and fix
23073         * modules/pread (Depends-on): Depend on lseek, for portability to
23074         e.g., mingw.  Suggested by Eric Blake.
23075         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23076
23077         unistd.in.h: correct declaration of pread
23078         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23079         Reported by Richard W.M. Jones.
23080
23081         test-pread.sh: distribute the test script
23082         * modules/pread-tests (Files): Include test-pread.sh.
23083
23084         test-pread.sh: clean up
23085         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23086         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23087         That is unnecessary, since it's always ".".
23088         Suggestion from Eric Blake.
23089
23090         test-pread.sh: make executable
23091         * tests/test-pread.sh: Set executable bit.
23092         Reported by Eric Blake.
23093
23094         correct typo in test-pread.sh
23095         * tests/test-pread.sh: Add #! line.
23096
23097         test pread
23098         * tests/test-pread.c: New file.
23099         * tests/test-pread.sh: Likewise.
23100         * modules/pread-tests: Likewise.
23101
23102         pread: new module
23103         * modules/pread: New file.
23104         * lib/unistd.in.h (pread): Define/declare.
23105         * lib/pread.c (pread): New file.
23106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23107         * modules/unistd (Makefile.am): Substitute witnesses.
23108         * doc/posix-functions/pread.texi (pread): Update.
23109         * MODULES.html.sh: Add pread.
23110
23111 2009-11-25  Jim Meyering  <meyering@redhat.com>
23112
23113         tests/init.sh: new file to be used via most *.sh tests
23114         * tests/init.sh: New file.
23115
23116 2009-11-25  Eric Blake  <ebb9@byu.net>
23117
23118         utimens: work around older Linux failure with symlinks
23119         * lib/utimens.c (lutimensat_works_really): New variable.
23120         (fdutimens, lutimens): Use it to manage kernels that support
23121         nanosecond times on files, but not on symlinks.
23122         Reported by OndÅ™ej Vašík.
23123
23124         utimes: fix configure grammar
23125         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23126
23127 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23128
23129         regex: Fix fastmap for multibyte character ranges.
23130         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23131         characters when a multibyte character range is included.
23132
23133 2009-11-22  Andy Wingo  <wingo@pobox.com>
23134
23135         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23136         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23137
23138 2009-11-24  Bruno Haible  <bruno@clisp.org>
23139
23140         doc: Most *_l functions exist in MacOS X 10.5.
23141         * doc/posix-functions/duplocale.texi: Update platforms list.
23142         * doc/posix-functions/freelocale.texi: Likewise.
23143         * doc/posix-functions/newlocale.texi: Likewise.
23144         * doc/posix-functions/uselocale.texi: Likewise.
23145         * doc/posix-functions/isalnum_l.texi: Likewise.
23146         * doc/posix-functions/isalpha_l.texi: Likewise.
23147         * doc/posix-functions/isblank_l.texi: Likewise.
23148         * doc/posix-functions/iscntrl_l.texi: Likewise.
23149         * doc/posix-functions/isdigit_l.texi: Likewise.
23150         * doc/posix-functions/isgraph_l.texi: Likewise.
23151         * doc/posix-functions/islower_l.texi: Likewise.
23152         * doc/posix-functions/isprint_l.texi: Likewise.
23153         * doc/posix-functions/ispunct_l.texi: Likewise.
23154         * doc/posix-functions/isspace_l.texi: Likewise.
23155         * doc/posix-functions/isupper_l.texi: Likewise.
23156         * doc/posix-functions/iswalnum_l.texi: Likewise.
23157         * doc/posix-functions/iswalpha_l.texi: Likewise.
23158         * doc/posix-functions/iswblank_l.texi: Likewise.
23159         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23160         * doc/posix-functions/iswctype_l.texi: Likewise.
23161         * doc/posix-functions/iswdigit_l.texi: Likewise.
23162         * doc/posix-functions/iswgraph_l.texi: Likewise.
23163         * doc/posix-functions/iswlower_l.texi: Likewise.
23164         * doc/posix-functions/iswprint_l.texi: Likewise.
23165         * doc/posix-functions/iswpunct_l.texi: Likewise.
23166         * doc/posix-functions/iswspace_l.texi: Likewise.
23167         * doc/posix-functions/iswupper_l.texi: Likewise.
23168         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23169         * doc/posix-functions/isxdigit_l.texi: Likewise.
23170         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23171         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23172         * doc/posix-functions/strcoll_l.texi: Likewise.
23173         * doc/posix-functions/strfmon_l.texi: Likewise.
23174         * doc/posix-functions/strftime_l.texi: Likewise.
23175         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23176         * doc/posix-functions/strxfrm_l.texi: Likewise.
23177         * doc/posix-functions/tolower_l.texi: Likewise.
23178         * doc/posix-functions/toupper_l.texi: Likewise.
23179         * doc/posix-functions/towctrans_l.texi: Likewise.
23180         * doc/posix-functions/towlower_l.texi: Likewise.
23181         * doc/posix-functions/towupper_l.texi: Likewise.
23182         * doc/posix-functions/wcscoll_l.texi: Likewise.
23183         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23184         * doc/posix-functions/wctrans_l.texi: Likewise.
23185         * doc/posix-functions/wctype_l.texi: Likewise.
23186         * doc/glibc-functions/strptime_l.texi: Likewise.
23187         * doc/glibc-functions/strtod_l.texi: Likewise.
23188         * doc/glibc-functions/strtof_l.texi: Likewise.
23189         * doc/glibc-functions/strtol_l.texi: Likewise.
23190         * doc/glibc-functions/strtold_l.texi: Likewise.
23191         * doc/glibc-functions/strtoll_l.texi: Likewise.
23192         * doc/glibc-functions/strtoul_l.texi: Likewise.
23193         * doc/glibc-functions/strtoull_l.texi: Likewise.
23194         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23195         * doc/glibc-functions/wcstod_l.texi: Likewise.
23196         * doc/glibc-functions/wcstof_l.texi: Likewise.
23197         * doc/glibc-functions/wcstol_l.texi: Likewise.
23198         * doc/glibc-functions/wcstold_l.texi: Likewise.
23199         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23200         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23201         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23202
23203 2009-11-24  Bruno Haible  <bruno@clisp.org>
23204
23205         duplocale: Fix logic bug.
23206         * lib/duplocale.c: Don't include <langinfo.h>.
23207         (_NL_LOCALE_NAME): Remove macro.
23208         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23209         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23210
23211 2009-11-23  Jim Meyering  <meyering@redhat.com>
23212
23213         test-update-copyright: don't hard-code /usr/bin/perl
23214         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23215         perl to print the current year.  Gilles Espinasse reported that
23216         the replaced use of perl was hard-coded as /usr/bin/perl.
23217
23218 2009-11-23  Bruno Haible  <bruno@clisp.org>
23219
23220         duplocale: Add support for glibc 2.3.x.
23221         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23222
23223 2009-11-22  Bruno Haible  <bruno@clisp.org>
23224
23225         vasnprintf: Tiny optimization.
23226         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23227         MacOS X.
23228
23229 2009-11-22  Bruno Haible  <bruno@clisp.org>
23230
23231         Tests for module 'duplocale'.
23232         * modules/duplocale-tests: New file.
23233         * tests/test-duplocale.c: New file.
23234
23235         New module 'duplocale'.
23236         * m4/duplocale.m4: New file.
23237         * lib/locale.in.h (duplocale): New declaration.
23238         * lib/duplocale.c: New file.
23239         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23240         gl_LOCALE_H_DEFAULTS): New macros.
23241         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23242         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23243         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23244         REPLACE_DUPLOCALE.
23245         * modules/duplocale: New file.
23246         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23247
23248 2009-11-22  Bruno Haible  <bruno@clisp.org>
23249
23250         * modules/locale-tests (configure.ac): Test for newlocale function.
23251         * tests/test-locale.c: When the system has extended locale functions,
23252         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23253
23254         locale: Make locale_t available when possible.
23255         * lib/locale.in.h: Include <xlocale.h> when it exists.
23256         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23257         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23258         * modules/locale (Depends-on): Add extensions.
23259         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23260         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23261
23262 2009-11-22  Bruno Haible  <bruno@clisp.org>
23263
23264         Add comments.
23265         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23266         invocation.
23267         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23268         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23269         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23270
23271 2009-11-22  Bruno Haible  <bruno@clisp.org>
23272
23273         error: account for the possibility of freopen (stdout).
23274         * lib/error.c: Include <unistd.h>.
23275         (flush_stdout): New function, extracted from error and error_at_line.
23276         Determine stdout's fd dynamically.
23277         (error, error_at_line): Invoke flush_stdout.
23278         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23279         * modules/error (Depends-on): Add unistd.
23280
23281 2009-11-22  Bruno Haible  <bruno@clisp.org>
23282
23283         diffseq: Add comment.
23284         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23285
23286 2009-11-22  Jim Meyering  <meyering@redhat.com>
23287
23288         c-stack: avoid defining an unused static function
23289         * lib/c-stack.c (find_stack_direction): Do not define this function
23290         when it will not be used.
23291
23292         diffseq: avoid spurious gcc warnings
23293         * lib/diffseq.h (IF_LINT2): Define.
23294         (compareseq): Use it to initialize two members of "part".
23295         This avoids two used-uninitialized warnings.
23296
23297 2009-11-21  Jim Meyering  <meyering@redhat.com>
23298
23299         c-stack: avoid "ignoring return value of `write'" warning
23300         * lib/c-stack.c: Include "ignore-value.h".
23301         (die): Explicitly ignore each write return value.
23302         * modules/c-stack (Depends-on): Add ignore-value.
23303
23304 2009-11-21  Bruno Haible  <bruno@clisp.org>
23305
23306         diffseq: reduce scope of variable 'best'.
23307         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23308         variable, earlier used for two different purposes.
23309
23310 2009-11-21  Jim Meyering  <meyering@redhat.com>
23311
23312         diffseq: remove useless assignment to "best"
23313         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23314         assignment.  At that point "best" is already guaranteed to be zero.
23315
23316 2009-11-20  Eric Blake  <ebb9@byu.net>
23317
23318         build: mention ftp redirector in release announcements
23319         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23320         values that used to come from cfg.mk; mention FTP redirect URL.
23321         * build-aux/announce-gen: Mention the mirror list.
23322         Suggested by Karl Berry.
23323
23324         nanosleep: improve port to mingw
23325         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23327         LIB_NANOSLEEP, but only when needed.
23328         * modules/select (Link): Document LIBSOCKET.
23329         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23330         enough.
23331
23332         nanosleep: work around cygwin bug
23333         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23334         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23335         bug.
23336         (getnow): Delete, not needed.
23337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23338         LIB_CLOCK_GETTIME.
23339         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23340         clock-time, gettime.
23341         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23342         bug.
23343         * modules/nanosleep-tests: New test.
23344         * tests/test-nanosleep.c: New file.
23345
23346         sleep: work around cygwin bug
23347         * lib/sleep.c (rpl_sleep): Work around the bug.
23348         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23349         (gl_PREREQ_SLEEP): Delete unused macro.
23350         * modules/sleep (Depends-on): Add verify.
23351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23352         * modules/unistd (Makefile.am): Substitute witness.
23353         * lib/unistd.in.h (sleep): Update prototype.
23354         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23355         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23356         * modules/sleep-tests (Depends-on): Check for alarm.
23357
23358 2009-11-20  Jim Meyering  <meyering@redhat.com>
23359
23360         maint.mk: improve sc_prohibit_magic_number_exit
23361         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23362         so it does not match uses like System.exit(1).
23363         Add comments showing how to correct all offenders.
23364
23365 2009-11-19  Eric Blake  <ebb9@byu.net>
23366
23367         xalloc-die-tests: add missing library
23368         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23369
23370         test-xvasprintf: silence compiler warnings
23371         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23372         empty string from gcc.
23373
23374 2009-11-19  Jim Meyering  <meyering@redhat.com>
23375
23376         xfreopen: new module, from coreutils
23377         * modules/xfreopen: New module.
23378         * lib/xfreopen.c: New file.
23379         * lib/xfreopen.h: New file.
23380         * MODULES.html.sh (File stream based Input/Output"): Add it.
23381
23382 2009-11-19  Eric Blake  <ebb9@byu.net>
23383
23384         manywarnings: depend on warnings
23385         * modules/manywarnings (Depends-on): Add warnings.
23386
23387         build: avoid compiler warnings
23388         * lib/select.c (rpl_select): Delete unused variable.
23389         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23390
23391 2009-11-18  Eric Blake  <ebb9@byu.net>
23392
23393         tests: avoid false negative with --with-packager
23394         * tests/test-version-etc.sh: Discard packager information.
23395         * tests/test-argp-version-etc-1.sh: Likewise.
23396         Reported by Mike Frysinger.
23397
23398         utimens: fix regression on Solaris
23399         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23400         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23401         can only change fd timestamps via futimesat.  Instead, use an
23402         additional witness macro to avoid BSD bug.
23403         Reported by Jim Meyering.
23404
23405 2009-11-17  Eric Blake  <ebb9@byu.net>
23406
23407         usleep: use it to simplify tests
23408         * modules/stat-time-tests (Depends-on): Add usleep.
23409         (configure.ac): Drop usleep check.
23410         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23411         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23412         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23413         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23414         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23415         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23416         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23417         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23418         Likewise.
23419         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23420         * tests/test-lchown.h (nap): Likewise.
23421         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23422         * tests/test-stat-time.c (nap): Likewise.
23423         * tests/test-utimens-common.h (nap): Update comments.
23424
23425         usleep: new module
23426         * modules/usleep: New file.
23427         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23428         * lib/usleep.c (usleep): Likewise.
23429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23430         * modules/unistd (Makefile.am): Substitute witnesses.
23431         * lib/unistd.in.h (usleep): Add declaration.
23432         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23433         * MODULES.html.sh (Date and time): Likewise.
23434         * modules/usleep-tests (Depends-on): New test.
23435         * tests/test-usleep.c: New file.
23436
23437         chown: work around OpenBSD bug
23438         * lib/chown.c (rpl_chown): Work around the bug.
23439         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23440         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23441         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23442         * modules/chown (Depends-on): Add stdbool.
23443         * modules/lchown (Depends-on): Likewise.
23444         * doc/posix-functions/chown.texi (chown): Document the bug.
23445         * doc/posix-functions/lchown.texi (lchown): Likewise.
23446         * tests/test-lchown.h (test_chown): Relax test.
23447
23448         mkstemp: avoid conflict with C++ keyword template
23449         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23450         * lib/mkostemp.c (mkostemp): Likewise.
23451         * lib/mkostemps.c (mkostemps): Likewise.
23452         * lib/mkstemp.c (mkstemp): Likewise.
23453         * lib/mkstemps.c (mkstemps): Likewise.
23454
23455         xalloc-die-tests: optimize
23456         * tests/test-xalloc-die.sh: Reduce number of processes.
23457
23458 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23459
23460         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23461         patch from ludo@gnu.org (Ludovic Courtès).
23462
23463 2009-11-17  Jim Meyering  <meyering@redhat.com>
23464
23465         version-etc: use proper license string
23466         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23467         * modules/version-etc-fsf: Likewise.
23468
23469 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23470
23471         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23472         printed to stdout.  Deal with EOL differences.
23473
23474 2009-11-17  Eric Blake  <ebb9@byu.net>
23475
23476         unsetenv: work around Solaris bug
23477         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23478         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23479         Reported by Jim Meyering.
23480
23481         vasnprintf: avoid compiler warnings
23482         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23483         variables.
23484         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23485
23486 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23487
23488         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23489         settings since xalloc-die is no longer the self test,
23490         xalloc-die.sh is.
23491
23492 2009-11-17  Jim Meyering  <meyering@redhat.com>
23493
23494         test-xalloc-die.sh: make the code agree with the commit log
23495         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23496         at the end, just in case you happen to have a test-xalloc-die
23497         program in some other PATH directory.
23498
23499         test-xalloc-die.sh: fix a portability bug
23500         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23501         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23502         Otherwise, argv[0] (as often seen in diagnostics) would be too
23503         system-dependent, sometimes with, and sometimes without the leading "./".
23504
23505         version-etc-fsf: relax license to LGPLv3+
23506         * modules/version-etc-fsf (License): Relax license.
23507
23508 2009-11-16  Eric Blake  <ebb9@byu.net>
23509
23510         xalloc-die-tests: avoid printing null pointer
23511         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23512         shell script.
23513         * tests/test-xalloc-die.c (program_name): Declare.
23514         * tests/test-xalloc-die.sh (tmpfiles): New file.
23515
23516         setenv, unsetenv: work around various bugs
23517         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23518         (setenv) [HAVE_SETENV]: Work around bugs.
23519         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23520         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23521         for bugs.
23522         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23523         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23525         * modules/stdlib (Makefile.am): Update substitutions.
23526         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23527         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23528         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23529         * modules/setenv-tests: New test.
23530         * modules/unsetenv-tests: Likewise.
23531         * tests/test-setenv.c: New file.
23532         * tests/test-unsetenv.c: Likewise.
23533
23534 2009-11-16  Jim Meyering  <meyering@redhat.com>
23535
23536         version-etc: relax license to LGPLv3+
23537         * modules/version-etc (License): Relax license.
23538
23539         better AC_REQUIRE expanded-before-required-warning avoidance
23540         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23541         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23542         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23543         which is no longer needed.
23544
23545 2009-11-16  Eric Blake  <ebb9@byu.net>
23546
23547         test-freading: clean up temporary file
23548         * tests/test-freading.c (main): Remove file on success, and use
23549         ASSERT more liberally.
23550         Reported by Jim Meyering.
23551
23552 2009-11-16  Jim Meyering  <meyering@redhat.com>
23553
23554         avoid new AC_REQUIRE expanded-before-required warnings
23555         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23556         merely using it.
23557         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23558         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23559
23560 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23561
23562         * tests/test-xalloc-die.c: New file.
23563         * modules/xalloc-die-tests: New file.
23564         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23565         XFAIL_TESTS so it can be appended by modules.
23566
23567 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23568
23569         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23570         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23571
23572 2009-11-14  Eric Blake  <ebb9@byu.net>
23573
23574         fnmatch: avoid compiler warning
23575         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23576         to silence compiler warning about mismatch signedness in ?:.
23577         Reported by Robert Millan.
23578
23579         intprops: add double-inclusion guard
23580         * lib/intprops.h: Allow idempotent includes.
23581         Suggested by Bruce Korb.
23582
23583         openat: detect Solaris fchownat bug
23584         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23585         penalizing glibc chownat when only lchownat is broken.
23586         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23587         trailing slash bugs.
23588         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23589         * modules/openat-tests (Files): Include more files.
23590         (Depends-on): Add mgetgroups, sleep, stat-time.
23591         (configure.ac): Add additional checks.
23592         (Makefile.am): Build new test.
23593         * tests/test-fchownat.c: New file.
23594
23595         lchown: detect Solaris and FreeBSD bug
23596         * lib/lchown.c (rpl_lchown): Work around bug.
23597         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23599         * modules/unistd (Makefile.am): Populate it.
23600         * lib/unistd.in.h (lchown): Update declaration.
23601         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23602         * modules/lchown-tests: New file.
23603         * tests/test-lchown.h (test_lchown): Likewise.
23604         * tests/test-lchown.c (main): Likewise.
23605
23606         chown: detect Solaris and FreeBSD bug
23607         * lib/chown.c (rpl_chown): Work around bug.
23608         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23609         (gl_PREREQ_CHOWN): Delete.
23610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23611         * modules/unistd (Makefile.am): Populate it.
23612         * lib/unistd.in.h (chown): Update declaration.
23613         * lib/lchown.c (chown): Update client.
23614         * modules/lchown (Depends-on): Add lstat.
23615         * doc/posix-functions/chown.texi (chown): Document the bug.
23616         * doc/posix-functions/getgroups.texi (getgroups): Document
23617         getgroups pitfall.
23618         * modules/chown-tests: New file.
23619         * tests/test-chown.h (test_chown): Likewise.
23620         * tests/test-chown.c (main): Likewise.
23621
23622 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23623
23624         gnulib-tool: correctly detect absence of m4 directories
23625         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23626
23627 2009-11-14  Jim Meyering  <meyering@redhat.com>
23628
23629         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23630         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23631
23632 2009-11-14  John W. Eaton  <jwe@gnu.org>
23633
23634         strftime.h: wrap funtion declaration in extern "C" block
23635         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23636
23637 2009-11-13  Eric Blake  <ebb9@byu.net>
23638
23639         getgroups: avoid compiler warning
23640         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23641
23642         getgroups: work around FreeBSD bug
23643         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23644         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23645         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23646         * tests/test-getgroups.c (main): Fix buffer overrun.
23647
23648         getgroups: avoid compilation failure
23649         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23650         * modules/getgroups (Depends-on): Add stdint.
23651
23652 2009-11-13  Jim Meyering  <meyering@redhat.com>
23653
23654         test-getgroups: avoid compilation failure
23655         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23656
23657 2009-11-13  Eric Blake  <ebb9@byu.net>
23658
23659         mgetgroups: new module, taken from coreutils
23660         * modules/mgetgroups: New file.
23661         * lib/mgetgroups.h: Likewise.
23662         * lib/mgetgroups.c (mgetgroups): Likewise.
23663         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23664         * MODULES.html.sh (Users and groups): Mention it.
23665
23666         getgroups: don't expose GETGROUPS_T to user
23667         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23668         an element at a time if GETGROUPS_T is wrong size.
23669         * lib/getugroups.h (getugroups): Change signature.
23670         * lib/unistd.in.h (getgroups): Likewise.
23671         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23672         signature needs fixing.
23673         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23674         AC_TYPE_GETGROUPS.
23675         * modules/group-member (Depends-on): Add getgroups.
23676         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23677         (group_member): Rely on getgroups replacement.
23678         * lib/getugroups.c (getugroups): Use gid_t.
23679         * tests/test-getgroups.c (main): Likewise.
23680         * NEWS: Mention the signature change.
23681         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23682         problem with signature.
23683         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23684         GETGROUPS_T is still useful for setgroups.
23685
23686         getgroups, getugroups: provide stubs for mingw
23687         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23688         * lib/getugroups.c (getugroups): Likewise.
23689         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23690         function.  Modernize replacement scheme.
23691         (gl_PREREQ_GETGROUPS): Delete.
23692         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23693         * modules/getgroups (configure.ac): Declare witness.
23694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23695         * modules/unistd (Depends-on): Substitute witness.
23696         * lib/unistd.in.h (getgroups): Declare replacement.
23697
23698         getgroups: avoid calling exit
23699         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23700         drop xalloc.
23701         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23702         dependencies.
23703         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23704         exiting, in the rare case of malloc failure.
23705
23706         getgroups: fix logic error
23707         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23708         has more than 20 groups.
23709         * modules/getgroups-tests: New test.
23710         * tests/test-getgroups.c: New file.
23711
23712 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23713
23714         * tests/test-base64.c: Improve.
23715
23716 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23717
23718         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23719         Blake <ebb9@byu.net>.
23720
23721 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23722
23723         * tests/test-xvasprintf.c: Add %s%s related checks.
23724
23725 2009-11-12  Eric Blake  <ebb9@byu.net>
23726
23727         version-etc: match standards.texi style
23728         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23729         and use <> only for URLs.
23730
23731 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23732
23733         fts: do not fail on a submount during traversal
23734         * lib/fts.c (fts_build): Read the stat info again after opening
23735         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23736         Original report at http://bugzilla.redhat.com/501848.
23737
23738 2009-11-12  Jim Meyering  <meyering@redhat.com>
23739
23740         bootstrap: sync from coreutils
23741         * build-aux/bootstrap (bootstrap_epilogue): New function.
23742         Use git_modules_config in one more place.  This make bootstrap's
23743         --gnulib-srcdir option more useful for testing.
23744
23745         bootstrap: generalize autoheader check
23746         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23747         AC_CONFIG_HEADERS.
23748
23749 2009-11-11  Eric Blake  <ebb9@byu.net>
23750
23751         mkfifoat: use new modules for Solaris and BSD bugs
23752         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23753         * lib/mkfifoat.c (mknodat): Split...
23754         * lib/mknodat.c (mknodat): ...into new file.
23755         * modules/mkfifoat (Files): Ship new file.
23756         (Depends-on): Add mkfifo, mknod.
23757         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23758         (Depends-on): Add symlink.
23759         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23760         redundant with test_mkfifo.h.
23761         (do_mkfifoat, do_mknodat): New helpers.
23762
23763         mknod: new module
23764         * modules/mknod: New file.
23765         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23766         * lib/mknod.c (mknod): Likewise.
23767         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23768         defaults.
23769         * modules/sys_stat (Makefile.am): Substitute them.
23770         * lib/sys_stat.in.h (mknod): Declare replacement.
23771         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23772         Document it.
23773         * doc/posix-functions/mknod.texi (mknod): Likewise.
23774         * modules/mknod-tests: New test.
23775         * tests/test-mknod.c: Likewise.
23776
23777         mkfifo: new module
23778         * modules/mkfifo: New file.
23779         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23780         * lib/mkfifo.c (mkfifo): Likewise.
23781         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23782         defaults.
23783         * modules/sys_stat (Makefile.am): Substitute them.
23784         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23785         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23786         Document it.
23787         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23788         * modules/mkfifo-tests: New test.
23789         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23790         from test-mkfifoat.c.
23791         * tests/test-mkfifo.c: New file.
23792
23793         readlink: detect FreeBSD bug
23794         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23795         slash on symlink.
23796         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23797         * tests/test-readlink.h (test_readlink): Enhance test.
23798
23799         symlink: detect FreeBSD bug
23800         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23801         slash on symlink.
23802         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23803         * tests/test-symlink.h (test_symlink): Enhance test.
23804
23805 2009-11-10  Eric Blake  <ebb9@byu.net>
23806
23807         link: detect FreeBSD bug
23808         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23809         symlink.
23810         * doc/posix-functions/link.texi (link): Document the bug.
23811         * tests/test-link.h (test_link): Enhance test.
23812         * tests/test-linkat.c (main): Update caller.
23813
23814         unlink, remove: detect FreeBSD bug
23815         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23816         slash on symlink.
23817         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23818         * doc/posix-functions/remove.texi (remove): Likewise.
23819         * tests/test-unlink.h (test_unlink): Enhance test.
23820         * tests/test-remove.c (main): Likewise.
23821
23822 2009-11-09  Eric Blake  <ebb9@byu.net>
23823
23824         rename: detect FreeBSD bug
23825         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23826         slash on symlink.
23827         * modules/renameat-tests (Depends-on): Add filenamecat.
23828         * tests/test-rename.h (test_rename): Allow one more errno.
23829         * tests/test-renameat.c (main): Likewise.
23830         * doc/posix-functions/rename.texi (rename): Document the bug.
23831
23832         open: detect FreeBSD bug
23833         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23834         symlink.
23835         * doc/posix-functions/open.texi (open): Document the bug.
23836         * doc/posix-functions/utimes.texi (utimes): Likewise.
23837         * tests/test-open.h (test_open): Add parameters, and test symlink
23838         handling.
23839         * tests/test-open.c (main): Adjust caller.
23840         * tests/test-fcntl-safer.c (main): Likewise.
23841         * modules/open-tests (Depends-on): Add stdbool, symlink.
23842         * modules/fcntl-safer-tests (Depends-on): Likewise.
23843         * tests/test-openat.c (main): Add test-open tests.
23844
23845         stat: detect FreeBSD bug
23846         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23847         symlink.
23848         * doc/posix-functions/stat.texi (stat): Document the bug.
23849         * tests/test-stat.h (test_stat_func): Add argument.
23850         * tests/test-stat.c (main): Adjust caller.
23851         * tests/test-fstatat.c (main): Likewise.
23852         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23853         Reported by Jim Meyering.
23854
23855 2009-11-09  James Youngman  <jay@gnu.org>
23856
23857         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23858         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23859
23860 2009-11-08  Jim Meyering  <meyering@redhat.com>
23861
23862         utimens: remove invalid futimesat call
23863         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23864         It used the file descriptor of the target file as the DIR_FD
23865         parameter and NULL as the file name.  That caused failure with
23866         errno == EFAULT on FreeBSD-8.0-rc2
23867
23868 2009-11-07  Eric Blake  <ebb9@byu.net>
23869
23870         fflush, freadseek: use fseeko, not fseek
23871         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23872         (clear_ungetc_buffer): Avoid potential problems on large files.
23873         * lib/freadseek.c (freadseek): Likewise.
23874         * modules/freadseek (Depends-on): Add fseeko.
23875         * modules/fseek (configure.ac): Set a witness.
23876         * tests/test-fflush.c (main): Use fseeko.
23877         * tests/test-fpurge.c (fseek): Disable link warning.
23878         * tests/test-freadable.c (fseek): Likewise.
23879         * tests/test-freading.c (fseek): Likewise.
23880         * tests/test-fseeko.c (fseek): Likewise.
23881         * tests/test-ftell.c (fseek): Likewise.
23882         * tests/test-ftello.c (fseek): Likewise.
23883         * tests/test-fwritable.c (fseek): Likewise.
23884         * tests/test-fwriting.c (fseek): Likewise.
23885
23886 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23887
23888         * modules/memchr (Depends-on): Drop getpagesize dependency.
23889
23890 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23891
23892         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23893         Reported by Ludovic Courtès.
23894         * build-aux/pmccabe2html: Improve example usage.
23895         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23896
23897 2009-11-06  Jim Meyering  <meyering@redhat.com>
23898
23899         do-release-commit-and-tag: New module.
23900         Automate the release-commit and tag process.
23901         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23902         * modules/do-release-commit-and-tag: New file.
23903         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23904
23905 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23906
23907         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23908         because test-select.c uses inet_pton.
23909
23910 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23911
23912         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23913         GETADDRINFO_LIB.  Bump serial number.
23914         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23915         Suggested by Eric Blake <ebb9@byu.net>.
23916
23917 2009-11-05  Eric Blake  <ebb9@byu.net>
23918
23919         strtod: detect darwin bug
23920         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23921         Reported by Leo Davis.
23922
23923         freopen-safer: new module
23924         * modules/freopen-safer: New module.
23925         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23926         * lib/freopen-safer.c (freopen_safer): New file.
23927         * lib/stdio-safer.h (freopen_safer): New declaration.
23928         * lib/stdio--.h (freopen): New override.
23929         * MODULES.html.sh (File stream based Input/Output): Mention it.
23930         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23931         freopen-safer module.
23932         * doc/posix-functions/stderr.texi (stderr): Likewise.
23933         * doc/posix-functions/stdin.texi (stdin): Likewise.
23934         * doc/posix-functions/stdout.texi (stdout): Likewise.
23935         * modules/freopen-safer-tests: New test.
23936         * tests/test-reopen-safer.c: New file.
23937
23938 2009-11-05  Jim Meyering  <meyering@redhat.com>
23939
23940         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23941         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23942
23943 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23944
23945         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23946
23947 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23948
23949         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23950
23951 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23952
23953         Fix link error.
23954         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23955         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23956
23957 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23958
23959         * tests/test-func.c: Also test value of __func__.
23960
23961 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23962
23963         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23964         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23965
23966 2009-11-05  Bruno Haible  <bruno@clisp.org>
23967
23968         Fix link error.
23969         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23970         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23971         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23972
23973 2009-11-05  Bruno Haible  <bruno@clisp.org>
23974
23975         Tests for module 'inet_pton'.
23976         * modules/inet_pton-tests: New file.
23977         * tests/test-inet_pton.c: New file.
23978
23979 2009-11-05  Bruno Haible  <bruno@clisp.org>
23980
23981         Tests for module 'inet_ntop'.
23982         * modules/inet_ntop-tests: New file.
23983         * tests/test-inet_ntop.c: New file.
23984
23985 2009-11-04  Eric Blake  <ebb9@byu.net>
23986
23987         stdlib-safer: wrap all mkstemp variants
23988         * modules/mkostemp (configure.ac): Set witness.
23989         * modules/mkostemps (configure.ac): Likewise.
23990         * modules/mkstemps (configure.ac): Likewise.
23991         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23992         (mkstemps_safer): Wrap more functions.
23993         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23994         wrapping.
23995         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23996         (mkstemps_safer): Implement the wrappers.
23997
23998         mkstemps, mkostemps: new modules
23999         * modules/mkostemps: New module.
24000         * modules/mkstemps: Likewise.
24001         * lib/mkostemps.c (mkostemps): New file.
24002         * lib/mkstemps.c (mkstemps): Likewise.
24003         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24004         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24005         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24006         * modules/stdlib (Makefile.am): Substitute them.
24007         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24008         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24009         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24010         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24011         * MODULES.html.sh (File system functions): Mention them.
24012
24013         tempname: resync from glibc
24014         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24015         same values for __GT_FILE as glibc.  Abort even when assertions
24016         are disabled.
24017         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24018         match its value otherwise.  Allow idempotent inclusion.
24019         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24020         * lib/mkostemp.c (mkostemp): Likewise.
24021         * lib/mkstemp.c (mkstemp): Likewise.
24022         * lib/tmpfile.c (tmpfile): Likewise.
24023         * NEWS: Document this.
24024
24025         utimens: fix use of futimens on older Linux
24026         * lib/utimens.c (fdutimens): Use updated, rather than original,
24027         timespec to avoid bug in older Linux kernel.
24028         Reported by Simon Josefsson.
24029
24030 2009-11-04  Bruno Haible  <bruno@clisp.org>
24031
24032         Make num_processors more flexible and consistent.
24033         * lib/nproc.h (enum nproc_query): New type.
24034         (num_processors): Add a 'query' argument.
24035         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24036         (num_processors): Add a 'query' argument. Test the value of the
24037         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24038         mingw, count the number of CPUs available for the current process.
24039         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24040         Check for sched_getaffinity and sched_getaffinity_np.
24041         * modules/nproc (Depends-on): Add c-ctype, extensions.
24042         * NEWS: Mention the change.
24043
24044 2009-11-03  Bruno Haible  <bruno@clisp.org>
24045
24046         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24047
24048 2009-11-03  Jim Meyering  <meyering@redhat.com>
24049
24050         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24051         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24052         if it is defined.
24053
24054 2009-11-02  Eric Blake  <ebb9@byu.net>
24055
24056         mktime, timegm: share common declaration
24057         * lib/mktime-internal.h: New file.
24058         * lib/mktime.c: Use it rather than open-coding a declaration.
24059         * lib/timegm.c: Likewise.
24060         * modules/mktime (Files): Ship it.
24061         * modules/timegm (Files): Likewise.
24062         Suggested by Bruno Haible.
24063
24064         test-update-copyright: update test to match script changes
24065         * tests/test-update-copyright.sh: Avoid hard-coding perl
24066         location.  Don't update *.bak created by earlier runs.
24067
24068 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24069             Simon Josefsson  <simon@josefsson.org>
24070             Bruno Haible  <bruno@clisp.org>
24071
24072         Fix link error on Solaris 8.
24073         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24074         also in libnsl. Define also INET_PTON_LIB.
24075         * modules/inet_pton (Link): New section.
24076
24077 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24078             Bruno Haible  <bruno@clisp.org>
24079
24080         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24081         * modules/inet_ntop (Link): New section.
24082         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24083
24084 2009-11-02  Eric Blake  <ebb9@byu.net>
24085
24086         maint: avoid compiler warnings in m4 macros
24087         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24088         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24089
24090 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24091
24092         * m4/pmccabe2html.m4: Remove file.
24093         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24094         function.  Change maintainer.
24095         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24096         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24097         Courtès).
24098
24099 2009-10-31  Eric Blake  <ebb9@byu.net>
24100
24101         fseeko: fix m4 regression
24102         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24103         regression from 2009-10-27.
24104         Reported by Ralf Wildenhues.
24105
24106 2009-10-31  Jim Meyering  <meyering@redhat.com>
24107
24108         inttostr: aesthetics and improved (compile-time) safety
24109         Define inttype_is_signed rather than inttype_is_unsigned,
24110         since the sole use is via "#if inttype_is_signed".
24111         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24112         inttype_is_unsigned.
24113         * lib/offtostr.c (inttype_is_signed): Likewise.
24114         * lib/uinttostr.c (inttype_is_signed): Likewise.
24115         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24116         * lib/inttostr.c (inttostr): Use verify to cross-check the
24117         inttype_is_signed value and the signedness of the actual type.
24118         * modules/inttostr (Depends-on): Add verify.
24119
24120 2009-10-30  Eric Blake  <ebb9@byu.net>
24121
24122         build: avoid compiler warnings
24123         * lib/fchmodat.c (lchmod): Mark unused variables.
24124         * lib/getopt.c (_getopt_initialize): Likewise.
24125         * lib/mktime.c (__mktime_internal): Provide prototype.
24126         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24127         older gcc that do not understand #pragma GCC diagnostic.
24128         * lib/uinttostr.c (inttype_is_unsigned): Define.
24129         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24130
24131 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24132
24133         stat: fix compilation on AIX
24134         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24135         only see struct stat64.
24136
24137 2009-10-30  Eric Blake  <ebb9@byu.net>
24138
24139         exclude: make more robust
24140         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24141         rather than masking a coding bug.
24142         Suggested by Bruno Haible.
24143
24144 2009-10-30  Jim Meyering  <meyering@redhat.com>
24145
24146         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24147         Rather than putting #!/usr/bin/perl on the first line,
24148         start with a variant of what's recommended by "man perlrun" that
24149         invokes the first "perl" program from your shell's search path.
24150         * build-aux/gitlog-to-changelog: Replace #!... as above.
24151         Add a "Local Variables" perl mode setting.
24152         Prompted by a patch from Ludovic Courtès.
24153         Improved by Eric Blake.
24154         * build-aux/useless-if-before-free: Likewise.
24155         * build-aux/announce-gen: Likewise.
24156         * build-aux/update-copyright: Likewise.
24157
24158 2009-10-29  Eric Blake  <ebb9@byu.net>
24159
24160         filenamecat-lgpl: adjust clients
24161         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24162         filenamecat.
24163         * modules/renameat (Depends-on): Likewise.
24164
24165         filenamecat: split into filenamecat-lgpl
24166         * modules/filenamecat-lgpl: New module.
24167         * modules/filenamecat (Files): Move library-safe files into
24168         filenamecat-lgpl.
24169         (Depends-on): Add filenamecat-lgpl.
24170         (configure.ac): Declare witness.
24171         * lib/filenamecat.h (file_name_concat): Only declare when using
24172         GPL module.
24173         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24174         Move...
24175         * lib/filenamecat-lgpl.c: ...into new file.
24176         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24177         (gl_FILE_NAME_CONCAT): Use it.
24178         * MODULES.html.sh (File system functions): Mention new module.
24179
24180         argp: avoid memory leak
24181         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24182         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24183         base_name, since the latter malloc()s and can call exit().
24184         Leak introduced 2006-07-03.
24185
24186         dirname-lgpl: adjust clients that don't need full dirname
24187         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24188         * modules/filenamecat (Depends-on): Likewise.
24189         * modules/linkat (Depends-on): Likewise.
24190         * modules/mkancesdirs (Depends-on): Likewise.
24191         * modules/mkdir (Depends-on): Likewise.
24192         * modules/openat (Depends-on): Likewise.
24193         * modules/savewd (Depends-on): Likewise.
24194         * modules/rename (Depends-on): Likewise.
24195         (License): Relax license.
24196         * modules/mkdir-tests (Depends-on): Drop progname.
24197         (Makefile.am): Delete unneeded LDADD.
24198         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24199
24200         dirname: split into dirname-lgpl
24201         * modules/dirname-lgpl: New module.
24202         * modules/dirname (Files): Move library-safe files into
24203         dirname-lgpl.
24204         (Depends-on): Add dirname-lgpl.
24205         (configure.ac): Declare witness.
24206         * modules/double-slash-root (License): Relax license.
24207         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24208         module.
24209         * lib/dirname.c (dir_len, mdir_name): Move...
24210         * lib/dirname-lgpl.c: ...into new file.
24211         * lib/basename.c (last_component, base_len): Move...
24212         * lib/basename-lgpl.c: ...into new file.
24213         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24214         (gl_DIRNAME): Use it.
24215         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24216         Mention new module.
24217         * modules/dirname-tests (Depends-on): Add progname.
24218         * tests/test-dirname.c (program_name): Delete.
24219
24220         mkdir: make safe for libraries
24221         * modules/mkdir (Depends-on): Drop xalloc.
24222         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24223         exit.
24224
24225         tests: avoid some compiler warnings
24226         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24227         literals.
24228         * tests/test-memchr.c (main): Avoid type mismatch.
24229         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24230         * tests/test-base64.c (main): Likewise.
24231         * tests/test-getdelim.c (main): Likewise.
24232         * tests/test-gethostname.c (main): Likewise.
24233         * tests/test-getline.c (main): Likewise.
24234         * tests/test-netinet_in.c (main): Likewise.
24235         * tests/test-select.c (open_server_socket, main): Likewise.
24236         * tests/test-select-stdin.c (main): Likewise.
24237         * tests/test-sockets.c (main): Likewise.
24238         * tests/test-strsignal.c (main): Likewise.
24239         * tests/test-sys_select.c (main): Likewise.
24240         * tests/test-sys_socket.c (main): Likewise.
24241         * tests/test-u64.c (main): Likewise.
24242         * tests/test-xfprintf-posix.c (main): Likewise.
24243         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24244
24245         sockets: avoid compiler warning
24246         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24247
24248         maint: detect usage(1) and other suspicious exits
24249         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24250
24251 2009-10-29  Jim Meyering  <meyering@redhat.com>
24252
24253         timespec: long-to-int truncation could make timespec_cmp malfunction
24254         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24255         a multiple of 2^32 nanoseconds as no difference.
24256
24257 2009-10-28  Jim Meyering  <meyering@redhat.com>
24258
24259         fprintftime: wrap macro code argument in "do {...} while(0)"
24260         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24261         cpy macro must be a statement that can be followed by a semicolon.
24262         Now that the else clause contains a comment and is hence longer
24263         than one line, I require curly braces.  That in turn requires
24264         that we wrap this code block in the standard do...while(0).
24265
24266         fprintftime: remove stray semicolon from previous change
24267         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24268
24269         fprintftime: avoid a warning about ignored fwrite return value
24270         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24271         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24272         that is unsafe.
24273         * modules/fprintftime (Depends-on): Add ignore-value.
24274
24275         exclude: avoid an unwarranted warning
24276         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24277
24278 2009-10-27  Eric Blake  <ebb9@byu.net>
24279
24280         fseek: avoid compilation failure when fflush is replaced
24281         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24282         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24283         module is in use.
24284         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24285         module is not in use; since REPLACE_FSEEK worked otherwise.
24286         (GNULIB_FTELLO): Likewise for ftell.
24287         Reported by Ian Beckwith and others.
24288
24289 2009-10-27  Bruno Haible  <bruno@clisp.org>
24290
24291         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24292         Reported by Jim Meyering.
24293
24294 2009-10-27  Jim Meyering  <jim@meyering.net>
24295             Bruno Haible  <bruno@clisp.org>
24296
24297         Avoid warning despite dropping the return value of fwrite.
24298         * lib/unicodeio.c: Include ignore-value.h.
24299         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24300         * modules/unicodeio (Depends-on): Add ignore-value.
24301
24302 2009-10-26  Eric Blake  <ebb9@byu.net>
24303
24304         areadlinkat: fix fallback path
24305         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24306         pointer and zero.
24307
24308 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24309
24310         Use a better IO block size for modern systems
24311         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24312         * lib/md2.c: Likewise.
24313         * lib/md4.c: Likewise.
24314         * lib/md5.c: Likewise.
24315         * lib/sha1.c: Likewise.
24316         * lib/sha256.c: Likewise.
24317         * lib/sha512.c: Likewise.
24318
24319 2009-10-22  Eric Blake  <ebb9@byu.net>
24320
24321         tests: avoid several compiler warnings
24322         * tests/test-getcwd.c (main): Avoid buffer underflow.
24323         * tests/test-getdate.c (main): String literals are not safe with
24324         putenv, so use setenv.  Declare unused argument.
24325         * modules/getdate-tests (Depends-on): Add setenv.
24326         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24327         problems with string literals in char *.
24328         * tests/test-hash.c (main): Avoid shadowing declaration.
24329         (insert_new): Treat string literals as char const *.
24330         * tests/test-getopt.h (test_getopt): Likewise.
24331         (getopt_loop): Alter types to minimize casting elsewhere.
24332         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24333         (test_getopt_long_posix): Likewise.
24334         (do_getopt_long): Add wrapper to minimize casting.
24335         * tests/test-atexit.c (clear_temp_file): Use void.
24336         * tests/test-areadlink-with-size.c (main): Declare unused
24337         arguments.
24338         * tests/test-areadlink.c (main): Likewise.
24339         * tests/test-areadlinkat-with-size.c (main): Likewise.
24340         * tests/test-areadlinkat.c (main): Likewise.
24341         * tests/test-canonicalize-lgpl.c (main): Likewise.
24342         * tests/test-canonicalize.c (main): Likewise.
24343         * tests/test-dirent-safer.c (main): Likewise.
24344         * tests/test-dirname.c (main): Likewise.
24345         * tests/test-dup2.c (main): Likewise.
24346         * tests/test-fchdir.c (main): Likewise.
24347         * tests/test-fcntl-h.c (main): Likewise.
24348         * tests/test-fcntl-safer.c (main): Likewise.
24349         * tests/test-fdopendir.c (main): Likewise.
24350         * tests/test-fdutimensat.c (main): Likewise.
24351         * tests/test-fflush.c (main): Likewise.
24352         * tests/test-filenamecat.c (main): Likewise.
24353         * tests/test-filevercmp.c (main): Likewise.
24354         * tests/test-fopen-safer.c (main): Likewise.
24355         * tests/test-fopen.c (main): Likewise.
24356         * tests/test-fpending.c (main): Likewise.
24357         * tests/test-fpurge.c (main): Likewise.
24358         * tests/test-freading.c (main): Likewise.
24359         * tests/test-fstatat.c (main): Likewise.
24360         * tests/test-fsync.c (main): Likewise.
24361         * tests/test-futimens.c (main): Likewise.
24362         * tests/test-getndelim2.c (main): Likewise.
24363         * tests/test-gettimeofday.c (main): Likewise.
24364         * tests/test-getopt.c (main): Likewise.
24365         * tests/test-i-ring.c (main): Likewise.
24366         * tests/test-inttypes.c (main): Likewise.
24367         * tests/test-link.c (main): Likewise.
24368         * tests/test-lstat.c (main): Likewise.
24369         * tests/test-math.c (main): Likewise.
24370         * tests/test-md5.c (main): Likewise.
24371         * tests/test-memchr2.c (main): Likewise.
24372         * tests/test-memrchr.c (main): Likewise.
24373         * tests/test-mkdir.c (main): Likewise.
24374         * tests/test-mkdirat.c (main): Likewise.
24375         * tests/test-mkfifoat.c (main): Likewise.
24376         * tests/test-open.c (main): Likewise.
24377         * tests/test-openat-safer.c (main): Likewise.
24378         * tests/test-openat.c (main): Likewise.
24379         * tests/test-quotearg.c (main): Likewise.
24380         * tests/test-rawmemchr.c (main): Likewise.
24381         * tests/test-readlink.c (main): Likewise.
24382         * tests/test-remove.c (main): Likewise.
24383         * tests/test-rename.c (main): Likewise.
24384         * tests/test-renameat.c (main): Likewise.
24385         * tests/test-rmdir.c (main): Likewise.
24386         * tests/test-sha1.c (main): Likewise.
24387         * tests/test-signal.c (main): Likewise.
24388         * tests/test-sigaction.c (main): Likewise.
24389         * tests/test-stat.c (main): Likewise.
24390         * tests/test-stat-time.c (main): Likewise.
24391         * tests/test-stddef.c (main): Likewise.
24392         * tests/test-stdint.c (main): Likewise.
24393         * tests/test-stdio.c (main): Likewise.
24394         * tests/test-stdlib.c (main): Likewise.
24395         * tests/test-strchrnul.c (main): Likewise.
24396         * tests/test-strerror.c (main): Likewise.
24397         * tests/test-string.c (main): Likewise.
24398         * tests/test-strtod.c (main): Likewise.
24399         * tests/test-strverscmp.c (main): Likewise.
24400         * tests/test-symlink.c (main): Likewise.
24401         * tests/test-symlinkat.c (main): Likewise.
24402         * tests/test-sys_stat.c (main): Likewise.
24403         * tests/test-sys_time.c (main): Likewise.
24404         * tests/test-time.c (main): Likewise.
24405         * tests/test-unistd.c (main): Likewise.
24406         * tests/test-unlink.c (main): Likewise.
24407         * tests/test-unlinkat.c (main): Likewise.
24408         * tests/test-utimens.c (main): Likewise.
24409         * tests/test-utimensat.c (main): Likewise.
24410         * tests/test-version-etc.c (main): Likewise.
24411         * tests/test-wchar.c (main): Likewise.
24412         * tests/test-wctype.c (main): Likewise.
24413         * tests/test-xprintf-posix.c (main): Likewise.
24414         * tests/test-posixtm.c (main): Likewise.
24415         (STREQ): Delete unused macro.
24416         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24417         shadowed variables.
24418         * tests/test-memchr.c (main): Likewise.
24419
24420 2009-10-21  Eric Blake  <ebb9@byu.net>
24421
24422         areadlinkat: avoid failure on older glibc
24423         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24424         rather than mis-comparing 0 against FUNC_RESULT of char*.
24425
24426 2009-10-21  Bruno Haible  <bruno@clisp.org>
24427
24428         * modules/stpncpy (License): Relicense under LGPLv2+.
24429         Reported by David Lutterkort <lutter@redhat.com>.
24430
24431 2009-10-20  Eric Blake  <ebb9@byu.net>
24432
24433         utimensat: work around Solaris 9 bug
24434         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24435         has trailing slash bugs.
24436         * tests/test-lutimens.h (test_lutimens): Enhance test.
24437         * tests/test-utimens.h (test_utimens): Likewise.
24438         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24439         * doc/posix-functions/utimes.texi (utimes): Likewise.
24440         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24441         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24442         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24443         * doc/posix-functions/futimens.texi (futimens): Likewise.
24444
24445         fdutimensat: new module
24446         * modules/fdutimensat: New file.
24447         * lib/fdutimensat.c (fdutimensat): Likewise.
24448         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24449         * MODULES.html.sh (File system functions): Mention module.
24450         * modules/fdutimensat-tests: New test.
24451         * tests/test-fdutimensat.c: Likewise.
24452
24453         doc: regenerate INSTALL
24454         * doc/INSTALL: Reflect recent autoconf update.
24455         * doc/INSTALL.ISO: Likewise.
24456         * doc/INSTALL.UTF-8: Likewise.
24457
24458 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24459
24460         acl: warn if ACL support is not detected
24461         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24462
24463 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24464
24465         * lib/nproc.h: Add extern "C" block for C++.
24466
24467 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24468             Bruno Haible  <bruno@clisp.org>
24469
24470         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24471         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24472         * doc/posix-functions/isalpha.texi: Likewise.
24473         * doc/posix-functions/isblank.texi: Likewise.
24474         * doc/posix-functions/iscntrl.texi: Likewise.
24475         * doc/posix-functions/isdigit.texi: Likewise.
24476         * doc/posix-functions/isgraph.texi: Likewise.
24477         * doc/posix-functions/islower.texi: Likewise.
24478         * doc/posix-functions/isprint.texi: Likewise.
24479         * doc/posix-functions/ispunct.texi: Likewise.
24480         * doc/posix-functions/isspace.texi: Likewise.
24481         * doc/posix-functions/isupper.texi: Likewise.
24482         * doc/posix-functions/isxdigit.texi: Likewise.
24483
24484 2009-10-18  Bruno Haible  <bruno@clisp.org>
24485
24486         Tests for module 'isblank'.
24487         * modules/isblank-tests: New file.
24488         * tests/test-isblank.c: New file.
24489
24490         New module 'isblank'.
24491         * lib/isblank.c: New file.
24492         * m4/isblank.m4: New file.
24493         * modules/isblank: New file.
24494         * doc/posix-functions/isblank.texi: Mention the new module.
24495
24496 2009-10-18  Bruno Haible  <bruno@clisp.org>
24497
24498         New module 'ctype'.
24499         * lib/ctype.in.h: New file.
24500         * m4/ctype.m4: New file.
24501         * modules/ctype: New file.
24502         * doc/posix-headers/ctype.texi: Mention the new module.
24503
24504 2009-10-18  Jim Meyering  <meyering@redhat.com>
24505
24506         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24507         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24508         right after its initialization, rather than farther down.
24509         Keeping these in close proximity makes it easier to ensure
24510         that each such variable is initialized.  E.g.,
24511
24512             LIB_CLOCK_GETTIME=
24513             AC_SUBST([LIB_CLOCK_GETTIME])
24514
24515         This change also increments these serial numbers.
24516         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24517         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24519
24520 2009-10-18  Bruno Haible  <bruno@clisp.org>
24521
24522         Don't let environment variables perturb build.
24523         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24524         (gl_PREREQ_GETHRXTIME): ... not here.
24525
24526 2009-10-18  Bruno Haible  <bruno@clisp.org>
24527
24528         Avoid symlink attack in localcharset module.
24529         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24530         (O_NOFOLLOW): Define fallback.
24531         (get_charset_aliases): Don't open the file if it is a symbolic link.
24532         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24533         gl_FCNTL_H.
24534         (gl_FCNTL_H): Require it.
24535         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24536         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24537         Reported by Fergal Glynn <fglynn@veracode.com>.
24538
24539 2009-10-18  Bruno Haible  <bruno@clisp.org>
24540
24541         Implement nproc for mingw.
24542         * lib/nproc.c: Include <windows.h>
24543         (num_processors): On native Windows platforms, try GetSystemInfo.
24544
24545 2009-10-18  Bruno Haible  <bruno@clisp.org>
24546
24547         Implement nproc for IRIX.
24548         * lib/nproc.c: Include <sys/sysmp.h>.
24549         (num_processors): On IRIX systems, try sysmp.
24550         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24551
24552 2009-10-18  Bruno Haible  <bruno@clisp.org>
24553
24554         Implement nproc for HP-UX.
24555         * lib/nproc.c: Include <sys/pstat.h>
24556         (num_processors): On HP-UX systems, try pstat_getdynamic.
24557         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24558         pstat_getdynamic.
24559
24560 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24561             Bruno Haible  <bruno@clisp.org>
24562
24563         Implement nproc for NetBSD, OpenBSD.
24564         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24565         (ARRAY_SIZE): New macro.
24566         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24567         * m4/nproc.m4: New file.
24568         * modules/nproc (Files): Add m4/nproc.m4.
24569         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24570         (Makefile.am): Instead, augment lib_SOURCES.
24571
24572 2009-10-18  Bruno Haible  <bruno@clisp.org>
24573
24574         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24575         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24576         sys/param.h.
24577
24578 2009-10-16  Eric Blake  <ebb9@byu.net>
24579
24580         utimensat: new module
24581         * modules/utimensat: New file.
24582         * lib/utimensat.c (utimensat): Likewise.
24583         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24584         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24585         so we can work around Linux bugs.
24586         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24587         * modules/sys_stat (Makefile.am): Substitute them.
24588         * lib/sys_stat.in.h (utimensat): Declare it.
24589         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24590         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24591         * modules/utimensat-tests: New test.
24592         * tests/test-utimensat.c: Likewise.
24593
24594         utimens: let lutimens work on non-symlinks
24595         * lib/utimens.c (lutimens): Fall back to utimens rather than
24596         failing with ENOSYS, when file is not a symlink.
24597         (utimens): Reduce redirection.
24598         * tests/test-lutimens.h (test_lutimens): Update test to cover
24599         non-symlinks.
24600         * tests/test-utimens.h (test_utimens): Update test to cover
24601         symlinks.
24602         * tests/test-utimens.c (main): Update caller.
24603
24604         utimens: cache whether utimensat syscall works
24605         * lib/utimens.c (utimensat_works_really): New cache variable.
24606         (fdutimens, lutimens): Use it to avoid failing syscall.
24607
24608         test-stat-time, test-utimens: improve portability
24609         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24610         ext4 on alpha, and for cygwin.
24611         * tests/test-utimens-common.h: New file.
24612         (nap): Factor delays into single function.
24613         * tests/test-lutimens.h (test_lutimens): Use new header.
24614         * tests/test-futimens.h (test_futimens): Likewise.
24615         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24616         timestamps to occur from same machine, as was done previously for
24617         test_utimens.
24618         * modules/utimens-tests (Files): Ship new file.
24619         * modules/futimens-tests (Files): Likewise.
24620         Reported in part by Jim Meyering.
24621
24622         sys_stat: sort replacement declarations
24623         * lib/sys_stat.in.h: Sort declarations.
24624         * lib/futimens.c (futimens): Fix typo.
24625
24626 2009-10-15  Jim Meyering  <meyering@redhat.com>
24627
24628         don't let environment settings perturb build
24629         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24630         could cause a configure-time and/or build-time malfunction.
24631         Typically, a configure-time function-in-library test is performed
24632         via code like this:
24633
24634           LIB_VAR=
24635           AC_SUBST([LIB_VAR])
24636           prefix_saved_LIBS=$LIBS
24637             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24638                        [test "$ac_cv_search_FUNC" = "none required" ||
24639                         LIB_VAR=$ac_cv_search_FUNC])
24640           LIBS=$prefix_saved_LIBS
24641
24642         However, in each of the files affected by this change, the LIB_VAR=
24643         initialization was omitted.  Thus, when set in the environment, its
24644         value would propagate into generated Makefiles when FUNC is not found
24645         in LIB_NAME.
24646         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24647         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24648         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24649
24650 2009-10-14  Eric Blake  <ebb9@byu.net>
24651
24652         fchdir: avoid infinite recursion in mingw
24653         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24654         recursing.
24655
24656         test-stat-time: port to mingw
24657         * tests/test-stat-time.c (force_unlink): Return a value.
24658         (test_ctime) [W32]: Fix compilation error.
24659         (nap): Don't call usleep with too large an argument.  Use
24660         force_unlink.
24661         * doc/pastposix-functions/usleep.texi (usleep): Document the
24662         portability issue.
24663
24664 2009-10-13  Jim Meyering  <meyering@redhat.com>
24665
24666         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24667         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24668         * modules/pipe-filter-ii: Likewise.
24669         * modules/sys_socket-tests: Likewise.
24670         * modules/tsearch-tests: Likewise.
24671         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24672         (check): Depend on it.
24673
24674 2009-10-12  Eric Blake  <ebb9@byu.net>
24675
24676         utimens-tests: port to NFS file systems
24677         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24678         comparisons to avoid spurious failures from timestamp drift
24679         between NFS machines.
24680
24681 2009-10-12  Eric Blake  <ebb9@byu.net>
24682
24683         stat-time-tests: minor cleanups
24684         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24685         * tests/test-stat-time.c (nap): Separate assignment from call.
24686         Suggested by Paolo Bonzini and Bruno Haible.
24687
24688         sys_stat: guarantee struct timespec
24689         * lib/sys_stat.in.h (includes): Always include <time.h>
24690         * modules/sys_stat (Depends-on): Add time.
24691         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24692         mode_t permission values.
24693         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24694         get at subsecond timestamps.
24695
24696 2009-10-10  Eric Blake  <ebb9@byu.net>
24697
24698         futimens: new module
24699         * modules/futimens: New file.
24700         * lib/futimens.c (futimens): Likewise.
24701         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24702         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24703         we can work around Linux bugs.
24704         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24705         * modules/sys_stat (Makefile.am): Substitute them.
24706         * lib/sys_stat.in.h (futimens): Declare it.
24707         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24708         * doc/posix-functions/futimens.texi (futimens): Likewise.
24709         * modules/futimens-tests: New test.
24710         * tests/test-futimens.c: Likewise.
24711
24712         utimens: introduce fdutimens
24713         * lib/utimens.h (fdutimens): New prototype.
24714         * lib/utimens.c (gl_futimens): Move guts...
24715         (fdutimens): ...to new interface.
24716         * tests/test-utimens.c (do_fdutimens): Use it.
24717
24718         utimens: add UTIME_NOW and UTIME_OMIT support
24719         * lib/utimens.c (validate_timespec, update_timespec): New helper
24720         functions.
24721         (gl_futimens, lutimens): Use them.
24722         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24723         stdbool, sys_stat.
24724         (Link): Mention resulting library dependency.
24725         * modules/utimecmp (Link): Likewise.
24726         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24727         (Makefile.am): Pick up library dependency.
24728         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24729         definition.
24730         * tests/test-sys_stat.c: Test the definitions.
24731         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24732         * NEWS: Document library dependency.
24733
24734         utimecmp: support symlink timestamps
24735         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24736         hashing when possible.  Use pathconf when available.
24737         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24738         * modules/utimecmp (Depends-on): Add lstat.
24739
24740         utimens: add lutimens interface
24741         * lib/utimens.c (lutimens): New function.
24742         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24743         * lib/utimens.h (lutimens): Declare new interface.
24744         * tests/test-utimens.c (main): Enhance test.
24745         * tests/test-lutimens.h (test_lutimens): New file.
24746         * modules/utimens-tests (Files): Distribute it.
24747         (Depends-on): Add symlink.
24748         (configure.ac): Check for usleep.
24749
24750         utimens: validate futimens usage
24751         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24752         fewer syscalls on failure later on.  Avoid compiler warning on
24753         mingw.
24754         * modules/utimens (Depends-on): Add dup2.
24755
24756         utimens: add test
24757         * modules/utimens-tests: New test.
24758         * tests/test-utimens.h: New file.
24759         * tests/test-futimens.h: Likewise.
24760         * tests/test-utimens.c: Likewise.
24761
24762         doc: mention timestamp portability issues
24763         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24764         instead.
24765         * doc/posix-functions/utime.texi (utime): Likewise.
24766         * doc/posix-functions/utimes.texi (utimes): Likewise.
24767         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24768         instead.
24769         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24770         module.
24771         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24772         Mention weakness with symlink timestamps.
24773         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24774         to utimensat/futimens instead.
24775         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24776
24777         test-dup2: enhance test
24778         * tests/test-dup2.c (main): Also check AT_FDCWD.
24779
24780         test-stat-time: avoid more spurious failures
24781         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24782         xfs; and avoid race if the two timestamps cross quantization edge.
24783
24784         relocatable: prefer 'file system' over 'filesystem'
24785         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24786         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24787         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24788         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24789         * lib/relocatable.c (compute_curr_prefix): Likewise.
24790
24791 2009-10-10  Jim Meyering  <meyering@redhat.com>
24792
24793         stat-time-tests: check for the usleep function
24794         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24795
24796 2009-10-10  Bruno Haible  <bruno@clisp.org>
24797
24798         * modules/xnanosleep: Put the Link section after the Include section.
24799
24800 2009-10-09  Eric Blake  <ebb9@byu.net>
24801
24802         dup2: work around FreeBSD 6.1 bug
24803         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24804         * doc/posix-functions/dup2.texi (dup2): Document it.
24805         Reported by Nelson H. F. Beebe and Jim Meyering.
24806
24807         test-stat-time: port to buggy NFS clients
24808         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24809         (test_ctime): Also skip test if mtime and ctime are skewed.
24810
24811         maint: prefer 'file system' over 'filesystem'
24812         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24813         * doc/posix-functions/lstat.texi (lstat): Likewise.
24814         * lib/file-has-acl.c (file_has_acl): Likewise.
24815         * lib/fwriteerror.c [TEST]: Likewise.
24816         * tests/test-areadlink.h (test_areadlink): Likewise.
24817         * tests/test-areadlinkat-with-size.c (main): Likewise.
24818         * tests/test-areadlinkat.c (main): Likewise.
24819         * tests/test-canonicalize-lgpl.c (main): Likewise.
24820         * tests/test-canonicalize.c (main): Likewise.
24821         * tests/test-fstatat.c (main): Likewise.
24822         * tests/test-linkat.c (main): Likewise.
24823         * tests/test-lstat.h (test_lstat_func): Likewise.
24824         * tests/test-mkdir.h (test_mkdir): Likewise.
24825         * tests/test-readlink.h (test_readlink): Likewise.
24826         * tests/test-remove.c (main): Likewise.
24827         * tests/test-rename.h (test_rename): Likewise.
24828         * tests/test-renameat.c (main): Likewise.
24829         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24830         * tests/test-symlink.h (test_symlink): Likewise.
24831         * tests/test-symlinkat.c (main): Likewise.
24832         * tests/test-unlink.h (test_unlink_func): Likewise.
24833         * tests/test-unlinkat.c (main): Likewise.
24834
24835         maint: make realtime library usage explicit
24836         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24837         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24838         * modules/settime (Link): Likewise.
24839         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24840
24841         test-stat-time: speed up execution
24842         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24843         warning on mingw.
24844         (nap): New helper function.
24845         (prepare_test): Use it to reduce sleep time.
24846         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24847         execution.
24848         * modules/stat-time-tests (configure.ac): Check for usleep.
24849
24850 2009-10-09  Jim Meyering  <meyering@redhat.com>
24851
24852         selinux-h: always use getfilecon wrappers
24853         * lib/getfilecon.c: New file.
24854         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24855         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24856         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24857         (fgetfilecon): Provide a stub.
24858         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24859         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24860         file unconditionally.
24861         When <selinux/selinux.h> is found, arrange to use wrappers.
24862         * modules/selinux-h (Files): Add getfilecon.c.
24863         (Makefile.am): Substitute include-next-related bits
24864         into the now-always-generated selinux/selinux.h file.
24865         * doc/glibc-functions/lgetfilecon.texi: New file.
24866         * doc/glibc-functions/fgetfilecon.texi: New file.
24867         * doc/glibc-functions/getfilecon.texi: New file.
24868         * doc/glibc-functions/getfilecon-desc.texi: New file.
24869         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24870         which to pull in the new files.
24871         * MODULES.html.sh (Misc): Add selinux-h.
24872
24873 2009-10-08  Jim Meyering  <meyering@redhat.com>
24874
24875         unistd: fix comment typo
24876         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24877
24878 2009-10-08  Eric Blake  <ebb9@byu.net>
24879
24880         areadlink: use SIZE_MAX consistently
24881         * modules/areadlink (Depends-on): Add stdint.
24882         * modules/areadlink-with-size (Depends-on): Likewise.
24883         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24884         gives NULL; drop sys/types, since unistd gives size_t; and add
24885         stdint for SIZE_MAX.
24886         (SIZE_MAX): Rely on headers.
24887         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24888         and add stdint.
24889         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24890         (SIZE_MAX): Likewise.
24891         (INITIAL_BUF_SIZE): Turn into enum.
24892         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24893
24894 2009-10-08  Jim Meyering  <meyering@redhat.com>
24895
24896         areadlinkat: avoid compilation failure
24897         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24898         Fix typo in comment.
24899
24900 2009-10-07  Eric Blake  <ebb9@byu.net>
24901
24902         areadlinkat-with-size: new module
24903         * modules/areadlinkat-with-size: New module.
24904         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24905         * lib/areadlink.h (areadlinkat): Declare it.
24906         * MODULES.html.sh (File system functions): Mention it.
24907         * modules/areadlinkat-with-size-tests: New test.
24908         * tests/test-areadlinkat-with-size.c: New file.
24909
24910         xreadlinkat: new module
24911         * modules/xreadlinkat: New module.
24912         * lib/xreadlinkat.c (xreadlinkat): New file.
24913         * lib/xreadlink.h (xreadlinkat): Declare it.
24914         * MODULES.html.sh (File system functions): Mention it.
24915
24916         areadlinkat: new module
24917         * lib/at-func.c (FUNC_FAIL): New define.
24918         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24919         * modules/areadlinkat: New module.
24920         * lib/linkat.c (areadlinkat): Move...
24921         * lib/areadlinkat.c (areadlinkat): ...to new file.
24922         * lib/areadlink.h (areadlinkat): Declare it.
24923         * modules/linkat (Depends-on): Add areadlinkat.
24924         * MODULES.html.sh (File system functions): Mention it.
24925         * modules/areadlinkat-tests: New test.
24926         * tests/test-areadlinkat.c: New file.
24927
24928         areadlink, areadlink-with-size: add tests
24929         * modules/areadlink-tests: New test.
24930         * modules/areadlink-with-size-tests: Likewise.
24931         * tests/test-areadlink.h: New file.
24932         * tests/test-areadlink.c: Likewise.
24933         * tests/test-areadlink-with-size.c: Likewise.
24934
24935         maint: minor cleanups
24936         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24937         _UNUSED_PARAMETER_ instead.
24938         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24939         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24940         * modules/linkat-tests (Files): Distribute test-link.h.
24941
24942         openat, utimens: whitespace cleanup
24943         * lib/openat.c: Prefer space throughout, rather than mix of 8
24944         spaces vs. tabs.
24945         * lib/at-func.c: Likewise.
24946         * lib/utimens.c: Likewise.
24947
24948         openat: avoid using wrong fd
24949         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24950         working directory chooses same fd.
24951         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24952
24953         mkdir, mkdirat: fix cygwin 1.5.x bug
24954         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24955         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24956         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24957         bug.
24958         (gl_PREREQ_MKDIR): Delete unused macro.
24959         * modules/mkdir (Files): Track file rename.
24960         (configure.ac): Update macro name.
24961         * modules/openat (Depends-on): Add mkdir.
24962         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24963
24964         mkdir, mkdirat: add tests
24965         * modules/mkdir-tests: New test.
24966         * tests/test-mkdir.h: New file.
24967         * tests/test-mkdir.c: Likewise.
24968         * tests/test-mkdirat.c: Likewise.
24969         * modules/openat-tests (Files): Add new files.
24970         (Makefile.am): Run new test.
24971
24972 2009-10-06  Eric Blake  <ebb9@byu.net>
24973
24974         doc: tweak *at function documentation
24975         * doc/posix-functions/faccessat.texi (faccessat): Mention
24976         known issue with replacement.
24977         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24978         * doc/posix-functions/linkat.texi (linkat): Likewise.
24979         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24980         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24981         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24982         * doc/posix-functions/renameat.texi (renameat): Likewise.
24983         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24984
24985         openat: fix GNU/Hurd bug in unlinkat
24986         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24987         broken.
24988         * doc/posix-functions/unlink.texi (unlink): Document this.
24989         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24990
24991         fdopendir: fix GNU/Hurd bug
24992         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24993         allowing non-directory fds.
24994         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24995         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24996         * modules/dirent (Makefile.am): Substitute it.
24997         * lib/dirent.in.h (fdopendir): Declare replacement.
24998         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24999         * tests/test-fdopendir.c (main): Test something other than
25000         /dev/null, since on Hurd that behaves like a directory.
25001
25002         test-symlink: port to GNU/Hurd
25003         * tests/test-symlink.h (test_symlink): Relax expected errno.
25004
25005         doc: tweak more cygwin information
25006         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25007         now compatible with glibc.
25008         * doc/posix-functions/getopt.texi (getopt): Likewise.
25009
25010         getopt-gnu: add another test
25011         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25012         guarantee behavior relied on by m4.
25013         * tests/test-getopt.c (main): Use it.
25014         * modules/getopt-posix-tests (Depends-on): Add setenv.
25015         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25016
25017         getopt: fix compilation on darwin
25018         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25019         include.
25020         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25021         Reported by Ludovic Courtès.
25022
25023 2009-10-06  Bruno Haible  <bruno@clisp.org>
25024
25025         * modules/size_max (Description): Discourage its use.
25026         Reported by Simon Josefsson.
25027
25028 2009-10-06  Jim Meyering  <meyering@redhat.com>
25029
25030         linkat: avoid compilation failure
25031         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25032
25033 2009-10-05  Eric Blake  <ebb9@byu.net>
25034
25035         linkat: support Linux 2.6.17
25036         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25037         linkat on Linux, but allow cache variable override.
25038         * lib/linkat.c (rpl_linkat): Define override.
25039         * modules/linkat (Depends-on): Add symlinkat.
25040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25041         * modules/unistd (Makefile.am): Substitute it.
25042         * lib/unistd.in.h (linkat): Declare replacement.
25043         Reported by Pádraig Brady.
25044
25045         quotearg: port test to systems with C.UTF-8 locale
25046         * tests/test-quotearg.c (struct result_strings): Add another
25047         member, differentiating between C.ASCII and C.UTF-8 handling.
25048         (compare_strings): Add parameter.
25049         (main): Adjust all callers.
25050
25051         getopt: avoid clash with FreeBSD _getopt_internal
25052         * lib/getopt.in.h (_getopt_internal): Override the name.
25053         * lib/getopt_int.h (includes): Pick up any overrides.
25054         Reported by Reuben Thomas.
25055
25056         hash: allow C89 compilation
25057         * lib/hash.c (check_tuning): Move declaration before statement.
25058         Reported by Reuben Thomas.
25059
25060 2009-10-05  Karl Berry  <karl@gnu.org>
25061
25062         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25063
25064 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25065             Bruno Haible  <bruno@clisp.org>
25066
25067         * lib/uname.c (uname): Use a table-driven algorithm to compute
25068         Windows NT versions.
25069
25070 2009-10-04  Bruno Haible  <bruno@clisp.org>
25071
25072         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25073         program_invocation_short_name.
25074         * modules/progname (configure.ac): Test for presence of
25075         program_invocation_short_name.
25076         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25077
25078 2009-10-04  Bruno Haible  <bruno@clisp.org>
25079
25080         * lib/progname.c (set_program_name): Fix comment.
25081         Reported by Jim Meyering.
25082
25083 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25084             Bruno Haible  <bruno@clisp.org>
25085
25086         * lib/uname.c: Include <string.h>.
25087         (uname): Do only one call to GetVersionEx in the common case.
25088
25089 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25090             Bruno Haible  <bruno@clisp.org>
25091
25092         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25093         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25094         (uname): Add support for Windows CE and various non-x86 CPU types.
25095
25096 2009-10-03  Bruno Haible  <bruno@clisp.org>
25097
25098         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25099         invocation to tests/configure.ac.
25100         Reported by Ian Beckwith <ianb@erislabs.net>.
25101
25102 2009-10-02  Eric Blake  <ebb9@byu.net>
25103
25104         fchdir: avoid compiler warning
25105         * lib/fchdir.c (canonicalize_file_name)
25106         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25107
25108         test-open: support mingw errno values
25109         * tests/test-open.h (test_open): Relax test.
25110         * tests/test-fopen.h (test_fopen): Likewise.
25111         * tests/test-openat-safer.c (main): Likewise.
25112
25113         open: fix opening directory on mingw
25114         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25115
25116         test-open: on GNU/Hurd, /dev/null is a directory
25117         * tests/test-fopen.h (main): Rename...
25118         (test_fopen): ...to this.  Use a guaranteed non-directory when
25119         confirming open behavior on trailing slash.
25120         * tests/test-openat-safer.c (main): Likewise.
25121         * tests/test-open.h (main): Likewise....
25122         (test_open): ...to this.
25123         * tests/test-fopen.c (main): Adjust caller.
25124         * tests/test-fopen-safer.c (main): Likewise.
25125         * tests/test-open.c (main): Likewise.
25126         * tests/test-fcntl-safer.c (main): Likewise.
25127         Reported by Samuel Thibault.
25128
25129         rename, fchdir: don't ignore chdir failure
25130         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25131         * lib/rename.c (rpl_rename) [W32]: Likewise.
25132         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25133         an empty destination directory if source cannot be renamed,
25134         although there is still possibility for failure.
25135         * doc/posix-functions/rename.texi (rename): Document the race.
25136         Reported by Jim Meyering.
25137
25138         maint: cleanup whitespace in recent commits
25139         * lib/rename.c (rpl_rename): Remove tabs.
25140         * tests/test-link.h (test_link): Likewise.
25141         * lib/fchdir.c (get_name): Likewise.
25142         Reported by Jim Meyering.
25143
25144 2009-10-02  Ben Pfaff  <blp@gnu.org>
25145
25146         relocatable-prog-wrapper: Add missing dependency on
25147         double-slash-root.
25148         * modules/relocatable-prog-wrapper: Add dependency.
25149         Reported by Ian Beckwith <ianb@erislabs.net>.
25150
25151 2009-10-02  Eric Blake  <ebb9@byu.net>
25152
25153         renameat: fix Solaris bugs
25154         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25155         needed fixing.
25156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25157         * modules/stdio (Makefile.am): Substitute it.
25158         * lib/stdio.in.h (renameat): Declare replacement.
25159         * lib/renameat.c (rpl_renameat): Implement fix.
25160
25161         renameat: new module
25162         * modules/renameat: New file.
25163         * lib/renameat.c (renameat): Likewise.
25164         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25165         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25166         * modules/stdio (Makefile.am): Substitute them.
25167         * lib/stdio.in.h (renameat): Declare it.
25168         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25169         * doc/posix-functions/renameat.texi (renameat): Likewise.
25170         * modules/renameat-tests: New test.
25171         * tests/test-renameat.c: Likewise.
25172
25173         rename: fix mingw bugs
25174         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25175         directory overwrite bugs.
25176
25177         rename: fix another cygwin 1.5 bug
25178         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25179         checks.
25180         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25181         unnecessary cygwin workarounds.  Also work around bug with moving
25182         full directory onto an empty one.
25183         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25184
25185         rename-dest-slash: merge into rename module
25186         * modules/rename-dest-slash (Status): Mark obsolete.
25187         (Depends-on): Add rename.
25188         (Files): Let rename do it all.
25189         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25190         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25191         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25192         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25193         * lib/rename.c (rpl_rename): Update comments.
25194
25195         rename: fix cygwin 1.5.x bugs
25196         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25197         * lib/rename.c (rpl_rename): Work around them.
25198         * modules/rename (Depends-on): Add same-inode.
25199
25200         rename: fix Solaris 10 bug
25201         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25202         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25203         was the only bug.
25204
25205         rename: fix Solaris 9 bug
25206         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25207         on non-directory.  Avoid calling exit.
25208         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25209         strdup.
25210         * modules/rename-tests (Depends-on): Drop lstat.
25211         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25212         (gl_PREREQ_RENAME): Delete unused macro.
25213
25214         rename-dest-slash: fix NetBSD bug
25215         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25216         links.
25217         * modules/rename-dest-slash (Depends-on): Add same-inode.
25218
25219         rename-tests: new test, exposes several platform bugs
25220         * modules/rename-tests: New file.
25221         * tests/test-rename.h: Likewise.
25222         * tests/test-rename.c: Likewise.
25223         * doc/posix-functions/rename.texi (rename): Improve documentation,
25224         including bugs that will eventually be fixed in gnulib.
25225
25226 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25227
25228         * lib/uname.c: Include <stdlib.h>
25229         (uname): Assume version info is available.
25230
25231 2009-10-02  Jim Meyering  <meyering@redhat.com>
25232
25233         gnu-web-doc-update: correct --help output
25234         * build-aux/gnu-web-doc-update: Make --help output relevant.
25235
25236         gnu-web-doc-update: add standard options
25237         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25238
25239         gnu-web-doc-update: New module.
25240         Use this script to automatically update the on-line web documentation
25241         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25242         * modules/gnu-web-doc-update: New file, from coreutils.
25243         * build-aux/gnu-web-doc-update: New script.
25244
25245 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25246
25247         link: LoadLibrary is not needed.
25248         * lib/link.c: Use GetModuleHandle.
25249
25250 2009-10-01  Eric Blake  <ebb9@byu.net>
25251
25252         getopt: bump serial number
25253         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25254         change.
25255
25256         tests: tighten link, rmdir, and remove tests
25257         * tests/test-link.h (includes): No need to use <config.h> here.
25258         Clean up if directory hard link was created, otherwise test for
25259         trailing '.'.
25260         * tests/test-linkat.c (main): Simplify.
25261         * tests/test-remove.c (main): Enhance test for trailing '.'.
25262         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25263
25264 2009-10-01  Jim Meyering  <meyering@redhat.com>
25265
25266         maint.mk: requiring "make major" was annoying, for a "minor" release.
25267         What is intended is "stable", to contrast with alpha and beta,
25268         so require "make stable", not "make major".
25269         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25270         (get_tool_versions): Likewise.
25271         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25272
25273 2009-09-30  Ben Pfaff  <blp@gnu.org>
25274
25275         Fix broken build of replacement for Windows tmpfile().
25276         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25277         flags argument added along with the 'mkostemp' module.
25278
25279 2009-09-28  Bruno Haible  <bruno@clisp.org>
25280
25281         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25282         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25283         to 'remove_elt'.
25284         (gl_list_remove): Update.
25285         * lib/gl_list.c (gl_list_remove): Update.
25286         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25287         to 'remove_elt'.
25288         (gl_oset_remove): Update.
25289         * lib/gl_list.c (gl_oset_remove): Update.
25290         Reported by Eric Blake.
25291
25292 2009-09-28  Eric Blake  <ebb9@byu.net>
25293
25294         doc: mention yet more cygwin 1.7 status
25295         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25296         cygwin.
25297         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25298         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25299
25300         argp: fix test failure
25301         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25302         that are not upper-case.  Pass correct range to tolower.
25303
25304 2009-09-27  Jim Meyering  <meyering@redhat.com>
25305
25306         test-yesno: work around sparc-dash here-document infelicity
25307         Without this change, the literal \177 byte in a here document
25308         would make dash 0.5.5.1-3 access uninitialized memory.
25309         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25310         Instead, use a marker, "@", and filter through tr to create the desired
25311         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25312
25313 2009-09-27  Bruno Haible  <bruno@clisp.org>
25314
25315         Disable untested support for new flavours of ACLs on AIX.
25316         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25317         progress.
25318         * lib/set-mode-acl.c (qset_acl): Likewise.
25319
25320 2008-12-07  Bruno Haible  <bruno@clisp.org>
25321
25322         Add support for new flavours of ACLs on AIX. (Untested.)
25323         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25324         (file_has_acl): Add support for newer AIX.
25325         * lib/set-mode-acl.c (qset_acl): Likewise.
25326         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25327         Rainer Tammer <tammer@tammer.net>.
25328
25329 2009-09-26  Eric Blake  <ebb9@byu.net>
25330
25331         argp: fix compilation of getopt
25332         * lib/getopt.in.h (includes): Use different guard than glibc.
25333         Reported by Sergey Poznyakoff.
25334
25335         doc: mention more cygwin 1.7 status
25336         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25337         bug.
25338         * doc/posix-functions/execl.texi (execl): Likewise.
25339         * doc/posix-functions/execle.texi (execle): Likewise.
25340         * doc/posix-functions/execlp.texi (execlp): Likewise.
25341         * doc/posix-functions/execv.texi (execv): Likewise.
25342         * doc/posix-functions/execve.texi (execve): Likewise.
25343         * doc/posix-functions/execvp.texi (execvp): Likewise.
25344         * doc/glibc-functions/canonicalize_file_name.texi
25345         (canonicalize_file_name): Cygwin 1.7 now provides this.
25346         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25347         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25348         on AT_SYMLINK_NOFOLLOW.
25349
25350 2009-09-24  Eric Blake  <ebb9@byu.net>
25351
25352         test-linkat: make test more robust
25353         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25354
25355         getopt: fix inclusion guards for cygwin
25356         * modules/getopt-posix (Depends-on): Add include-next.
25357         (Makefile.am): Substitute more items in replacement header.
25358         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25359         <getopt.h>.
25360         * lib/getopt.in.h (includes): Use split inclusion guard, and
25361         prefer <getopt.h> over include <unistd.h> when one is present.
25362         (option): Also override name of 'struct option'.
25363
25364         same-inode: revert prior change; it is not yet ready
25365         * NEWS: Undo mention of this change.
25366         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25367         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25368         * lib/cycle-check.c (cycle_check): Likewise.
25369         * lib/same.c (same_name): Likewise.
25370         * lib/at-func2.c (at_func2): Likewise.
25371
25372 2009-09-23  Eric Blake  <ebb9@byu.net>
25373
25374         linkat: new module
25375         * modules/linkat: New file.
25376         * lib/at-func2.c (at_func2): Likewise.
25377         * lib/linkat.c (linkat): Likewise.
25378         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25379         * lib/openat-priv.h (at_func2): Add declaration.
25380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25381         * modules/unistd (Makefile.am): Substitute them.
25382         * lib/unistd.in.h (linkat): Declare it.
25383         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25384         * doc/posix-functions/linkat.texi (linkat): Likewise.
25385         * doc/posix-functions/link.texi (link): Tweak wording.
25386         * tests/test-link.c (main): Move guts...
25387         * tests/test-link.h (test_link): ...into new file.
25388         * modules/linkat-tests: New test.
25389         * tests/test-linkat.c: Likewise.
25390         * modules/link-tests (Files): Ship new file.
25391         (Depends-on): Add stdbool.
25392
25393         dirname: add library-safe mdir_name
25394         * lib/dirname.h (mdir_name): New prototype.
25395         * lib/dirname.c (dir_name): Move guts...
25396         (mdir_name): ...to new function that avoids xalloc_die.
25397
25398         fchdir: another mingw fix
25399         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25400         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25401         on mingw (where it has not yet been ported), and make it optional
25402         elsewhere.
25403         (_gl_register_fd): Use it.
25404
25405         same-inode: make SAME_INODE tri-state, to port to mingw
25406         * NEWS: Mention this change.
25407         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25408         st_ino always being 0.
25409         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25410         * lib/cycle-check.c (cycle_check): Likewise.
25411         * lib/same.c (same_name): Likewise.
25412
25413         lstat: avoid mingw compilation error
25414         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25415         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25416         lstat ourselves.
25417         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25418         was adequate.
25419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25420         the checks for lstat.
25421         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25422
25423         link: fix test failure on Solaris 9
25424         * lib/link.c (rpl_link): Don't assume link will catch bogus
25425         trailing slash on source.
25426
25427         test-symlinkat: enhance test
25428         * tests/test-readlink.c (main): Move guts...
25429         * tests/test-readlink.h (test_readlink): ...into new file.
25430         * tests/test-symlink.c (main): Move guts...
25431         * tests/test-symlink.h (test_symlink): ...into new file.
25432         * tests/test-symlinkat.c (main): Use new files for further
25433         coverage.
25434         (do_symlink, do_readlink): New helper functions.
25435         * modules/symlink-tests (Files): Ship new file.
25436         (Depends-on): Add stdbool.
25437         * modules/readlink-tests (Files): Ship new file.
25438         (Depends-on): Add stdbool.
25439         * modules/symlinkat-tests (Files): Use new files.
25440
25441 2009-09-23  Eric Blake  <ebb9@byu.net>
25442
25443         readlink: document portability issue with symlink length
25444         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25445         systems have bogus st_size on symlinks, and mention the
25446         areadlink-with-size module.
25447         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25448         * doc/posix-functions/readlink.texi (readlink): Mention the
25449         areadlink module, and ERANGE failure.
25450         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25451         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25452
25453         readlink: fix Solaris 9 bug with trailing slash
25454         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25455         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25456         * doc/posix-functions/readlink.texi (readlink): Document this.
25457         * modules/readlink-tests: New test.
25458         * tests/test-readlink.c: Likewise.
25459
25460         readlink: fix cygwin 1.5.x bug with return type
25461         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25462         * lib/unistd.in.h (readlink): Use ssize_t.
25463         * lib/readlink.c (readlink): Likewise.
25464         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25465         * modules/unistd (Makefile.am): Substitute it.
25466         * lib/unistd.in.h (readlink): Declare replacement.
25467         * doc/posix-functions/readlink.texi (readlink): Document this.
25468
25469         symlink: use throughout gnulib
25470         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25471         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25472         symlink is not used.
25473         * modules/symlinkat (Depends-on): Add symlink.
25474         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25475         * modules/canonicalize-tests (Depends-on): Likewise.
25476         * modules/lstat-tests (Depends-on): Likewise.
25477         * modules/openat-tests (Depends-on): Likewise.
25478         * modules/remove-tests (Depends-on): Likewise.
25479         * modules/rmdir-tests (Depends-on): Likewise.
25480         * modules/unlink-tests (Depends-on): Likewise.
25481         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25482         * tests/test-canonicalize.c (symlink): Likewise.
25483         * tests/test-fstatat.c (symlink): Likewise.
25484         * tests/test-lstat.c (symlink): Likewise.
25485         * tests/test-remove.c (symlink): Likewise.
25486         * tests/test-rmdir.c (symlink): Likewise.
25487         * tests/test-unlink.c (symlink): Likewise.
25488         * tests/test-unlinkat.c (symlink): Likewise.
25489
25490         symlink: new module, for Solaris 9 bug
25491         * modules/symlink: New file.
25492         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25493         * lib/symlink.c: Likewise.
25494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25495         * modules/unistd (Makefile.am): Substitute them.
25496         * lib/unistd.in.h (symlink): Declare replacement.
25497         * MODULES.html.sh (File system functions): Mention it.
25498         * doc/posix-functions/symlink.texi (symlink): Likewise.
25499         * modules/symlink-tests: New test.
25500         * tests/test-symlink.c: Likewise.
25501
25502 2009-09-23  Bruno Haible  <bruno@clisp.org>
25503
25504         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25505         when needed.
25506         Test case: gnulib-tool --import --with-tests atexit inttypes.
25507         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25508
25509 2009-09-23  Bruno Haible  <bruno@clisp.org>
25510
25511         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25512         subcommand, not in a subshell.
25513
25514 2009-09-22  Eric Blake  <ebb9@byu.net>
25515
25516         unistd: sort replacement declarations
25517         * lib/unistd.in.h: Sort declarations.
25518
25519         open, openat: minor optimization
25520         * lib/open.c (open): If open succeeded, len is non-zero.
25521         * lib/openat.c (rpl_openat): Likewise.
25522
25523         link-follow: ensure correct result
25524         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25525         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25526         distinguish between possible failures.
25527
25528 2009-09-21  Eric Blake  <ebb9@byu.net>
25529
25530         fts: avoid compiler warning
25531         * lib/fts.c (dirent_inode_sort_may_be_useful)
25532         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25533
25534 2009-09-19  Bruno Haible  <bruno@clisp.org>
25535
25536         * lib/progreloc.c (canonicalize_file_name): New declaration.
25537
25538 2009-09-19  Eric Blake  <ebb9@byu.net>
25539
25540         link: fix quoting
25541         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25542
25543         openat: fix openat bugs on Solaris 9
25544         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25545         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25546         * modules/openat (Depends-on): Add open.
25547         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25548         * modules/fcntl-h (Makefile.am): Substitute it.
25549         * lib/fcntl.in.h (openat): Declare replacement.
25550         * doc/posix-functions/openat.texi (openat): Document this.
25551
25552         openat: move fstatat and unlinkat into correct files
25553         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25554         compiled.
25555         * lib/openat.c (fstatat, unlinkat): Move...
25556         * lib/fstatat.c (fstatat): ...into correct files.
25557         * lib/unlinkat.c (unlinkat): Likewise.
25558
25559         openat: fix unlinkat bugs on Solaris 9
25560         * lib/unlinkat.c (unlinkat): New file.
25561         * modules/openat (Depends-on): Add unlink.
25562         (Files): Distribute it.
25563         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25564         trailing slash behavior is broken.
25565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25566         * modules/unistd (Makefile.am): Substitute it.
25567         * lib/unistd.in.h (unlinkat): Declare replacement.
25568         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25569
25570         openat: fix fstatat bugs on Solaris 9
25571         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25572         stat.
25573         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25574
25575         test-unlinkat: enhance test, to expose Solaris 9 bug
25576         * tests/test-unlink.c (main): Factor guts...
25577         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25578         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25579         * tests/test-rmdir.c (main): Adjust caller.
25580         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25581         (unlinker): New helper function.
25582         (rmdirat): Enhance check.
25583         * modules/rmdir-tests (Depends-on): Add stdbool.
25584         * modules/unlink-tests (Depends-on): Likewise.
25585         (Files): Add test-unlink.h.
25586         * modules/openat-tests (Files): Likewise.
25587         (Depends-on): Add unlinkdir.
25588
25589         test-fstatat: new test, to expose Solaris 9 bugs
25590         * tests/test-stat.c (main): Factor guts...
25591         * tests/test-stat.h (test_stat_func): ...into new file.
25592         * tests/test-lstat.c (main): Factor guts...
25593         * tests/test-lstat.h (test_lstat_func): ...into new file.
25594         * tests/test-fstatat.c: New file.
25595         * modules/stat-tests (Files): Add test-stat.h.
25596         * modules/lstat-tests (Files): Add test-lstat.h.
25597         (Depends-on): Add stdbool.
25598         * modules/openat-tests (Depends-on): Add pathmax.
25599         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25600         (Makefile.am): Run new test.
25601
25602         remove: new module, for mingw and Solaris 9 bugs
25603         * modules/remove: New file.
25604         * lib/remove.c: Likewise.
25605         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25607         * modules/stdio (Makefile.am): Use them.
25608         * lib/stdio.in.h (remove): Declare replacement.
25609         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25610         * doc/posix-functions/remove.texi (remove): Likewise.
25611         * modules/remove-tests: New test.
25612         * tests/test-remove.c: Likewise.
25613
25614         unlink: new module, for Solaris 9 bug
25615         * modules/unlink: New file.
25616         * lib/unlink.c: Likewise.
25617         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25619         * modules/unistd (Makefile.am): Use them.
25620         * lib/unistd.in.h (stat): Declare replacement.
25621         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25622         * doc/posix-functions/unlink.texi (unlink): Likewise.
25623         * modules/unlink-tests: New test.
25624         * tests/test-unlink.c: Likewise.
25625
25626         lstat: fix Solaris 9 bug
25627         * lib/lstat.c (lstat): Also check for trailing slash on
25628         non-symlink, non-directories.  Use stat module to simplify logic.
25629         * doc/posix-functions/lstat.texi (lstat): Document it.
25630         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25631         (configure.ac): Check for symlink.
25632         * tests/test-lstat.c (main): Add more tests.
25633
25634         stat: add as dependency to other modules
25635         * modules/chown (Depends-on): Add stat.
25636         * modules/euidaccess (Depends-on): Likewise.
25637         * modules/fchdir (Depends-on): Likewise.
25638         * modules/isdir (Depends-on): Likewise.
25639         * modules/link (Depends-on): Likewise.
25640         * modules/lstat (Depends-on): Likewise.
25641         * modules/mkdir-p (Depends-on): Likewise.
25642         * modules/modechange (Depends-on): Likewise.
25643         * modules/open (Depends-on): Likewise.
25644         * modules/readlink (Depends-on): Likewise.
25645         * modules/same (Depends-on): Likewise.
25646
25647         stat: fix Solaris 9 bug
25648         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25649         slash.
25650         * lib/stat.c (rpl_stat): Work around it.
25651         * doc/posix-functions/stat.texi (stat): Update documentation.
25652
25653         stat: new module, for mingw bug
25654         * modules/stat: New file.
25655         * lib/stat.c: Likewise.
25656         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25657         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25658         * modules/sys_stat (Makefile.am): Use them.
25659         * lib/sys_stat.in.h (stat): Declare replacement.
25660         * lib/openat.c (fstatat): Deal with lstat and stat being function
25661         macros.
25662         * modules/openat (Depends-on): Add inline.
25663         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25664         * doc/posix-functions/stat.texi (stat): Likewise.
25665         * modules/stat-tests: New test.
25666         * tests/test-stat.c: Likewise.
25667
25668 2009-09-19  Jim Meyering  <meyering@redhat.com>
25669
25670         syntax-check: detect unnecessary inclusion of canonicalize.h
25671         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25672
25673 2009-09-19  Eric Blake  <ebb9@byu.net>
25674
25675         canonicalize-lgpl: adjust clients to use correct header
25676         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25677         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25678         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25679         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25680         * lib/progreloc.c (includes): Likewise.
25681
25682 2009-09-19  Jim Meyering  <meyering@redhat.com>
25683
25684         test-posixtm.c: correct a comment
25685         * tests/test-posixtm.c: Correct first-line comment.
25686         Spotted by Eric Blake.
25687
25688 2009-09-16  Jim Meyering  <meyering@redhat.com>
25689
25690         posixtm-tests: make T const-correct; add a test case
25691         * tests/test-posixtm.c (T): Declare const.
25692         Add a test for -(2^31+1).
25693         Remove useless can-succeed-only-in-2002 test.
25694
25695         posixtm-tests: adjust the sole failing test
25696         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25697         expected output matches what mktime now produces.  Cross-checked via
25698         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25699
25700         posixtm: move #ifdef'd tests into a new module
25701         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25702         * tests/test-posixtm.c: ... this new file.
25703         * modules/posixtm-tests: New module.
25704
25705 2009-09-19  Eric Blake  <ebb9@byu.net>
25706
25707         openat: simplify use of at-func.c
25708         * lib/at-func.c (includes): Include prerequisites here, to
25709         simplify requirements on client files.
25710         * lib/openat-priv.h: Add double-inclusion guard.
25711         * lib/faccessat.c (includes): Simplify.
25712         * lib/fchmodat.c (includes): Likewise.
25713         * lib/fchownat.c (includes): Likewise.
25714         * lib/mkdirat.c (includes): Likewise.
25715         * lib/mkfifoat.c (includes): Likewise.
25716         * lib/symlinkat.c (includes): Likewise.
25717
25718         openat: allow return of fd 0
25719         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25720         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25721         unistd-safer.
25722         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25723         <fcntl.h>; this module does not leak fds.
25724         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25725         must be allowed to return 0, leaving openat_safer to add the
25726         safety.
25727         (openat_permissive): Avoid writing to just-opened fd 2 if
25728         restoring the current directory fails.
25729         * lib/openat-die.c (openat_restore_fail): Add comment.
25730         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25731         (save_cwd): Guarantee safe fd, but without use of open_safer.
25732         * tests/test-openat.c: New test.
25733         * modules/openat-tests (Files, Makefile.am): Distribute and build
25734         new file.
25735
25736         relocatable-prog-wrapper: fix build
25737         * modules/relocatable-prog-wrapper (Files): Update name of
25738         canonicalize m4 file, broken on 2009-09-17.
25739         Reported by emad hajjar <aleppos@hotmail.com>.
25740
25741 2009-09-19  Bruno Haible  <bruno@clisp.org>
25742
25743         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25744         * lib/safe-alloc.c: Likewise.
25745         Reported by Ian Beckwith <ianb@erislabs.net>.
25746
25747 2009-09-18  Bruno Haible  <bruno@clisp.org>
25748
25749         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25750         Reported by <erobles@sensacd.com.mx>.
25751
25752 2009-09-17  Eric Blake  <ebb9@byu.net>
25753
25754         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25755         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25756         slashes when checking if last component is missing.
25757         * tests/test-canonicalize.c (main): Test this.
25758
25759         canonicalize, canonicalize-lgpl: honor // if distinct from /
25760         * modules/canonicalize (Files): Add double-slash-root.m4.
25761         * modules/canonicalize-lgpl (Files): Likewise.
25762         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25763         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25764         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25765         fallback definition.
25766         (canonicalize_filename_mode): Use it to protect //.
25767         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25768         (__realpath): Likewise.
25769         * tests/test-canonicalize.c (main): Test this.
25770         * tests/test-canonicalize-lgpl.c (main): Likewise.
25771         * modules/canonicalize-tests (Depends-on): Add same-inode.
25772         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25773
25774         canonicalize-lgpl: fix glibc bug with trailing slash
25775         * m4/canonicalize-lgpl.m4: Move contents...
25776         * m4/canonicalize.m4: ...here.
25777         (gl_CANONICALIZE_LGPL): Factor realpath check...
25778         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25779         glibc 2.3.5 bug, fixed 2005-04-27.
25780         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25781         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25782         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25783         * modules/canonicalize-lgpl (Files): Manage file rename.
25784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25785         * modules/stdlib (Makefile.am): Substitute witness.
25786         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25787         is needed.
25788         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25789         replacement is required.
25790         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25791         * doc/glibc-functions/canonicalize_file_name.texi
25792         (canonicalize_file_name): Document this.
25793         * doc/posix-functions/realpath.texi (realpath): Likewise.
25794
25795         canonicalize-lgpl: reject non-directory with trailing slash
25796         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25797         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25798         catches failures in glibc 2.3.5.
25799         * tests/test-canonicalize.c (main): Likewise.
25800
25801         canonicalize-lgpl: use native realpath if it works
25802         * lib/canonicalize-lgpl.c (realpath): Guard with
25803         FUNC_REALPATH_WORKS.
25804         * lib/stdlib.in.h (realpath): Make declaration optional based on
25805         HAVE_REALPATH.
25806         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25807         native realpath works.
25808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25809         * modules/stdlib (Makefile.am): Substitute witness.
25810
25811         canonicalize, canonicalize-lgpl: use <stdlib.h>
25812         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25813         (Include): Mention <stdlib.h>.
25814         (configure.ac): Mention functions we provide.
25815         * modules/canonicalize (configure.ac): Likewise.
25816         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25817         realpath if canonicalize_file_name is missing.
25818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25819         * modules/stdlib (Makefile.am): Substitute witnesses.
25820         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25821         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25822         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25823         * NEWS: Document this.
25824         * doc/glibc-functions/canonicalize_file_name.texi
25825         (canonicalize_file_name): Likewise.
25826         * doc/posix-functions/realpath.texi (realpath): Likewise.
25827         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25828
25829         test-canonicalize: consolidate into single C program
25830         * tests/test-canonicalize.sh: Delete; move setup into...
25831         * tests/test-canonicalize.c (main): ...the program, making it
25832         easier to run in debugger.  Add some tests.
25833         * modules/canonicalize-tests (Files): Remove unused file.
25834         (Depends-on): Add progname.
25835         (configure.ac, Makefile.am): Simplify.
25836
25837         test-canonicalize-lgpl: consolidate into single C program
25838         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25839         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25840         easier to run in debugger.  Add some tests.
25841         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25842         (configure.ac, Makefile.am): Simplify.
25843
25844         canonicalize: avoid resolvepath
25845         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25846         unnecessary checks.
25847         * lib/canonicalize.c (includes): Simplify.
25848         (canonicalize_file_name): Drop resolvepath implementation.
25849         * modules/canonicalize (Depends-on): Drop filenamecat.
25850
25851         canonicalize: don't lose errno
25852         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25853         over calls to free.
25854
25855         canonicalize: simplify errno handling
25856         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25857         assignment.
25858
25859         canonicalize, canonicalize-lgpl: update module dependencies
25860         * modules/canonicalize (Depends-on): Add extensions, lstat,
25861         pathmax, stdlib.
25862         (Files): Drop pathmax.h.
25863         (configure.ac): Adjust macro name.
25864         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25865         lstat, stdlib, sys_stat.
25866         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25867         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25868         extensions.
25869         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25870         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25871         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25872         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25873         declaration, if available.
25874         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25875         we can rely on the readlink module.
25876         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25877         (includes): Use <unistd.h> unconditionally.
25878
25879 2009-09-17  Eric Blake  <ebb9@byu.net>
25880
25881         maint: make Include sections of modules consistent
25882         * modules/alloca: Use only header name; no need to list #include.
25883         * modules/alloca-opt: Likewise.
25884         * modules/arpa_inet: Likewise.
25885         * modules/canon-host: Likewise.
25886         * modules/configmake: Likewise.
25887         * modules/dirent: Likewise.
25888         * modules/eealloc: Likewise.
25889         * modules/environ: Likewise.
25890         * modules/fchdir: Likewise.
25891         * modules/fcntl: Likewise.
25892         * modules/fcntl-h: Likewise.
25893         * modules/gethrxtime: Likewise.
25894         * modules/gettime: Likewise.
25895         * modules/ignore-value: Likewise.
25896         * modules/inet_ntop: Likewise.
25897         * modules/inet_pton: Likewise.
25898         * modules/inttypes: Likewise.
25899         * modules/isnand-nolibm: Likewise.
25900         * modules/isnanf-nolibm: Likewise.
25901         * modules/mbchar: Likewise.
25902         * modules/mbfile: Likewise.
25903         * modules/mbiter: Likewise.
25904         * modules/mbuiter: Likewise.
25905         * modules/netdb: Likewise.
25906         * modules/netinet_in: Likewise.
25907         * modules/nproc: Likewise.
25908         * modules/pagealign_alloc: Likewise.
25909         * modules/poll: Likewise.
25910         * modules/printf-frexp: Likewise.
25911         * modules/pthread: Likewise.
25912         * modules/putenv: Likewise.
25913         * modules/random_r: Likewise.
25914         * modules/relocatable-prog: Likewise.
25915         * modules/search: Likewise.
25916         * modules/select: Likewise.
25917         * modules/selinux-h: Likewise.
25918         * modules/settime: Likewise.
25919         * modules/signal: Likewise.
25920         * modules/size_max: Likewise.
25921         * modules/socklen: Likewise.
25922         * modules/ssize_t: Likewise.
25923         * modules/stdarg: Likewise.
25924         * modules/stdbool: Likewise.
25925         * modules/stddef: Likewise.
25926         * modules/stdint: Likewise.
25927         * modules/stdio: Likewise.
25928         * modules/stdlib: Likewise.
25929         * modules/string: Likewise.
25930         * modules/strings: Likewise.
25931         * modules/sys_file: Likewise.
25932         * modules/sys_ioctl: Likewise.
25933         * modules/sys_select: Likewise.
25934         * modules/sys_socket: Likewise.
25935         * modules/sys_stat: Likewise.
25936         * modules/sys_time: Likewise.
25937         * modules/sys_times: Likewise.
25938         * modules/sys_utsname: Likewise.
25939         * modules/sys_wait: Likewise.
25940         * modules/sysexits: Likewise.
25941         * modules/time: Likewise.
25942         * modules/times: Likewise.
25943         * modules/tmpfile: Likewise.
25944         * modules/trim: Likewise.
25945         * modules/unistd: Likewise.
25946         * modules/wchar: Likewise.
25947         * modules/wctype: Likewise.
25948
25949 2009-09-17  Bruno Haible  <bruno@clisp.org>
25950
25951         Make getdate.y compile on QNX and NetBSD 5 / i386.
25952         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25953         TIME_T_FITS_IN_LONG_INT.
25954         * lib/getdate.y (long_time_t): New type.
25955         (relative_time): Change type of 'seconds' field to long_time_t.
25956         (get_date): Update types of local variables. Check against overflow
25957         during conversion from long_time_t to time_t.
25958         Reported by Matt Kraai <kraai@ftbfs.org>
25959         and Hasso Tepper <hasso@netbsd.org>.
25960
25961 2009-09-17  Bruno Haible  <bruno@clisp.org>
25962
25963         * modules/COPYING: Update copyright years.
25964         * modules/README: Likeiwse.
25965         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25966         Reported by Ian Beckwith <ianb@erislabs.net>.
25967
25968 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25969
25970         * users.txt: Update references for gnuit package.
25971
25972 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25973
25974         * m4/getdelim.m4: Fix typo in copyright line.
25975
25976 2009-09-17  Bruno Haible  <bruno@clisp.org>
25977
25978         * lib/atoll.c: Use the standard header with GPL copyright.
25979         * lib/argz.in.h: Likewise.
25980         * lib/glob.c: Likewise.
25981         * lib/glob-libc.h: Likewise.
25982         * lib/random_r.c: Likewise.
25983         * lib/siglist.h: Likewise.
25984         * lib/strsignal.c: Likewise.
25985         Reported by Ian Beckwith <ianb@erislabs.net>.
25986
25987 2009-09-17  Eric Blake  <ebb9@byu.net>
25988
25989         rmdir: ensure correct dependency order
25990         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25991
25992 2009-09-17  Bruno Haible  <bruno@clisp.org>
25993
25994         Disable assertion that fails on NetBSD 5 / i386.
25995         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25996         Reported by Sam Steingold <sds@gnu.org>
25997         and Hasso Tepper <hasso@netbsd.org>.
25998
25999 2009-09-16  Eric Blake  <ebb9@byu.net>
26000
26001         unlinkdir: port to mingw
26002         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26003         on which no one can unlink a directory.
26004
26005         stdlib: sort witness names
26006         * modules/stdlib (Makefile.am): Sort replacements.
26007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26008         * lib/stdlib.in.h: Likewise.
26009
26010         parse-duration-tests: avoid link failure
26011         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26012         LIBINTL.
26013         Reported by Tom G. Christensen.
26014
26015         openat-tests: ensure unlinkat behaves like rmdir
26016         * tests/test-rmdir.c (main): Factor guts...
26017         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26018         * modules/rmdir-tests (Files): Ship new file.
26019         * modules/openat-tests: New test.
26020         * tests/test-unlinkat.c: Likewise.
26021
26022         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26023         * modules/rmdir-errno (Status, Notice): Now obsolete.
26024
26025         rmdir: work around cygwin 1.5.x and mingw bugs
26026         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26027         * lib/rmdir.c (rmdir): Work around it.
26028         * modules/rmdir (Status, Notice): No longer obsolete.
26029         (Files): Add dos.m4.
26030         (Depends-on): Add unistd.
26031         (configure.ac): Set witnesses.
26032         (License): Relax to LGPLv2+.
26033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26034         * modules/unistd (Makefile.am): Substitute witnesses.
26035         * lib/unistd.in.h (rmdir): Declare replacement.
26036         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26037         * modules/rmdir-tests: New tests.
26038         * tests/test-rmdir.c: Likewise.
26039
26040 2009-09-15  Eric Blake  <ebb9@byu.net>
26041
26042         fchdir: improve use of replacement functions
26043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26044         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26045         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26046         REPLACE_CLOSEDIR.
26047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26048         * modules/sys_stat (Makefile.am): Substitute correct witness.
26049         * modules/dirent (Makefile.am): Likewise.
26050         * modules/unistd (Makefile.am): Likewise.
26051         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26052         * lib/unistd.in.h (dup): Likewise.
26053         * lib/sys_stat.in.h (fstat): Likewise.
26054
26055         maint: ignore gnulib-tool temp files
26056         * .gitignore: Ignore files created during gnulib-tool --test.
26057
26058 2009-09-13  Jim Meyering  <meyering@redhat.com>
26059
26060         posixtm: don't reject a time that specify "60" as the number of seconds
26061         * lib/posixtm.c (posixtime): The code to reject invalid dates
26062         would also reject a time specified with the .60 suffix.
26063         But POSIX allows that, in order to accommodate leap seconds.
26064         So don't reject it.
26065         (main): Adjust tests accordingly.
26066         * modules/posixtm (Depends-on): Add stpcpy.
26067
26068 2009-09-11  Jim Meyering  <meyering@redhat.com>
26069
26070         announce-gen: include [$release_type] in emitted Subject:
26071         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26072         e.g., [stable] in the emitted Subject: line.
26073
26074 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26075
26076         Remove obsolete macros from several modules.
26077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26078         obsolete Autoconf macros with their modern counterparts.
26079         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26080         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26081         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26082         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26083         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26084         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26085         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26086         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26087         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26088         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26089         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26090         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26091         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26092         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26093         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26094         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26095         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26096         * m4/time_r.m4 (gl_TIME_R): Likewise.
26097         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26098         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26099         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26100
26101         Fix copyright header in build-aux scripts.
26102         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26103         recommendation.
26104         * build-aux/ncftpput-ftp: Likewise.
26105         * build-aux/update-copyright: Likewise.
26106
26107 2009-09-09  Eric Blake  <ebb9@byu.net>
26108
26109         test-link: allow Linux choice of errno
26110         * tests/test-link.c (main): Relax test for alternate error.
26111
26112         strndup: fix improper m4 caching
26113         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26114         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26115         (gl_PREREQ_STRNDUP): Delete.
26116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26117         * modules/string (Makefile.am): Substitute it.
26118         * lib/string.in.h (strndup): Modernize prototype.
26119
26120         getcwd: port to mingw
26121         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26122         different from the POSIX assumptions made throughout the getcwd
26123         module; fortunately, the mingw getcwd does not need replacement.
26124         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26125         * modules/getcwd-tests: New test.
26126         * tests/test-getcwd.c: Likewise.
26127
26128         link: fix platform bugs
26129         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26130         * lib/link.c (link): Work around them.  Fix related mingw bug.
26131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26132         * modules/unistd (Makefile.am): Substitute it.
26133         * lib/unistd.in.h (link): Declare replacement.
26134         * doc/posix-functions/link.texi (link): Document this.
26135         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26136
26137         test-link: consolidate into single C program, test more cases
26138         * tests/test-link.sh: Delete.
26139         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26140         at least Cygwin and Solaris.
26141         * modules/link-tests (Files): Remove unused file.
26142         (Depends-on): Add errno, sys_stat.
26143         (Makefile.am): Simplify.
26144
26145 2009-09-08  Bruno Haible  <bruno@clisp.org>
26146
26147         Work around towlower, towupper bug on mingw.
26148         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26149         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26150         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26151         * doc/posix-functions/towupper.texi: Likewise.
26152         Reported by Eric Blake.
26153
26154 2009-09-08  Jim Meyering  <meyering@redhat.com>
26155
26156         build: don't try to run autoheader if we don't use it
26157         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26158         is not used in configure.ac.
26159
26160 2009-09-08  Eric Blake  <ebb9@byu.net>
26161
26162         euidaccess: fix compilation error
26163         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26164
26165         rawmemchr: relax license
26166         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26167         okay.
26168         Reported by Jim Meyering.
26169
26170         mkfifoat: new module
26171         * modules/mkfifoat: New file.
26172         * lib/mkfifoat.c: Likewise.
26173         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26174         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26175         * modules/sys_stat (Makefile.am): Use them.
26176         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26177         * MODULES.html.sh (File system functions): Mention module.
26178         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26179         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26180         * modules/mkfifoat-tests: New test.
26181         * tests/test-mkfifoat.c: Likewise.
26182
26183         strchrnul: relax license
26184         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26185         okay.
26186         Reported by Jim Meyering.
26187
26188 2009-09-08  Eric Blake  <ebb9@byu.net>
26189
26190         fstatat: fix compilation on Solaris
26191         * lib/fstatat.c (includes): Add fcntl.h.
26192         Reported by Pádraig Brady.
26193
26194 2009-09-07  Eric Blake  <ebb9@byu.net>
26195
26196         rename: modernize replacement
26197         * modules/rename (Depends-on): Add stdio.
26198         (configure.ac): Declare witness.
26199         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26200         stdio take care of replacement.
26201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26202         * modules/stdio (Makefile.am): Substitute them.
26203         * lib/stdio.in.h (rename): Declare replacement.
26204         * lib/rename.c (includes): Allow cross-compilation to non-windows
26205         machines.
26206         * doc/posix-functions/rename.texi (rename): Improve
26207         documentation.
26208
26209         stdio: sort witness names
26210         * modules/stdio (Makefile.am): Sort replacements.
26211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26212         * lib/stdio.in.h: Likewise.
26213
26214         getcwd: minor cleanups
26215         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26216         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26217
26218         openat: provide more convenience names
26219         * modules/faccessat (configure.ac): Add C witness.
26220         * lib/unistd.in.h (readlinkat): Fix typo.
26221         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26222         convenience wrappers.
26223         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26224         wrappers in syntax checks.
26225
26226 2009-09-06  Eric Blake  <ebb9@byu.net>
26227
26228         doc: fix comments in recent patches
26229         * lib/faccessat.c: Mention correct function.
26230         * lib/fchmodat.c: Likewise.
26231         * lib/fchownat.c: Likewise.
26232         * lib/symlinkat.c: Likewise.
26233         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26234         constants.
26235
26236         faccessat, symlinkat: continue cleanup of previous patch
26237         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26238         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26239         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26241         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26242         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26243         set.
26244
26245 2009-09-06  Bruno Haible  <bruno@clisp.org>
26246
26247         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26248         (fstatat): Declare if GNULIB_FSTATAT is set.
26249         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26250         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26251         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26252         * modules/fcntl-h (Files): Remove m4/openat.m4.
26253         * modules/sys_stat (Files): Remove m4/openat.m4.
26254         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26255         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26256         * modules/unistd (Files): Remove m4/openat.m4.
26257         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26258         GNULIB_OPENAT.
26259         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26260         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26261         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26262         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26263         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26264         gl_OPENAT_DEFAULTS.
26265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26266         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26267         Don't require gl_OPENAT_DEFAULTS.
26268         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26269         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26270         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26271         (gl_OPENAT_DEFAULTS): Remove macro.
26272
26273 2009-09-06  Bruno Haible  <bruno@clisp.org>
26274
26275         * modules/openat (configure.ac): Remove unneeded witness.
26276
26277 2009-09-06  Bruno Haible  <bruno@clisp.org>
26278
26279         Set errno to ENOSYS when a function is entirely unsupported.
26280         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26281         EOPNOTSUPP.
26282         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26283         * modules/chown (Depends-on): Remove errno.
26284
26285 2009-09-06  Bruno Haible  <bruno@clisp.org>
26286
26287         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26288
26289 2009-09-06  Bruno Haible  <bruno@clisp.org>
26290
26291         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26292
26293 2009-09-06  Ben Pfaff  <blp@gnu.org>
26294             Bruno Haible  <bruno@clisp.org>
26295
26296         Work around a glibc bug in strtok_r.
26297         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26298         Undefine if UNDEFINE_STRTOK_R is set.
26299         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26301         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26302         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26303         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26304         UNDEFINE_STRTOK_R.
26305         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26306
26307 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26308
26309         exclude: minor fix
26310         * lib/exclude.c: Include wctype.h
26311
26312 2009-09-06  Akim Demaille  <demaille@gostai.com>
26313
26314         bootstrap: improve error message
26315         * build-aux/bootstrap (find_tool): Upon failure, report the list
26316         of candidates.
26317         Honor the initial value of the envvar.
26318
26319 2009-09-05  Eric Blake  <ebb9@byu.net>
26320
26321         symlinkat: new module
26322         * modules/symlinkat: New file.
26323         * lib/symlinkat.c: Likewise.
26324         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26326         * modules/unistd (Makefile.am): Use them.
26327         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26328         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26329         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26330         * MODULES.html.sh (File system functions): Mention module.
26331         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26332         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26333         * modules/symlinkat-tests: New test.
26334         * tests/test-symlinkat.c: Likewise.
26335
26336         test-openat-safer: add more checks
26337         * tests/test-openat-safer.c (main): Check more code paths.
26338
26339 2009-09-05  Jim Meyering  <meyering@redhat.com>
26340
26341         syntax-check: detect unnecessary inclusion of openat.h
26342         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26343
26344 2009-09-05  Bruno Haible  <bruno@clisp.org>
26345
26346         Support towlower, towupper.
26347         * doc/posix-functions/towlower.texi: Mention module wctype.
26348         * doc/posix-functions/towupper.texi: Likewise.
26349         * lib/wctype.in.h (towlower, towupper): New functions.
26350         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26351         (ASSERT): New macro.
26352         (e): New variable.
26353         (main): Test also towlower, towupper. Test WEOF argument.
26354         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26355
26356 2009-09-05  Bruno Haible  <bruno@clisp.org>
26357
26358         Fix conversion behaviour when the input is invalid.
26359         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26360         mark occurring in first pass of indirect conversion.
26361         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26362         input.
26363         Found by clang's static analyzer.
26364
26365 2009-09-05  Bruno Haible  <bruno@clisp.org>
26366
26367         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26368         where direct conversion is possible.
26369
26370 2009-09-04  Eric Blake  <ebb9@byu.net>
26371
26372         openat: fail with ENOENT on empty name
26373         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26374         buffer.
26375
26376         link-follow: fix logic bug in prior patch
26377         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26378         reversed sense of yes and no in prior patch.  Avoid confusing
26379         compilation failure with desired semantics.
26380
26381         link-follow: accomodate mingw and cross-compilation
26382         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26383         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26384         cross-compilation results to -1, to make linkat easier to
26385         implement when cross-compiling.  Trivially support mingw.
26386         * modules/link-follow (configure.ac): Call new name.
26387         * NEWS: Mention this.
26388
26389 2009-09-03  Eric Blake  <ebb9@byu.net>
26390
26391         faccessat: compile replacement
26392         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26393         needed.
26394
26395         fts: fix compilation error
26396         * lib/fts.c (includes): Re-add "openat.h", for
26397         openat_needs_fchdir.
26398
26399         faccessat: new module
26400         * modules/faccessat: New file.
26401         * lib/faccessat.c: Likewise.
26402         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26404         * modules/unistd (Makefile.am): Use it.
26405         * lib/unistd.in.h (faccessat): Declare it.
26406         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26407         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26408         * MODULES.html.sh (File system functions): Mention it.
26409         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26410         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26411
26412         euidaccess: prefer POSIX over non-standard implementation
26413         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26414         * lib/euidaccess.c (euidaccess): Use it if available.
26415
26416         openat: make template easier to use
26417         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26418         AT_FUNC_F2 to be undefined.
26419         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26420         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26421         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26422         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26423         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26424         Likewise.
26425         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26426         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26427         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26428         Likewise.
26429
26430         openat: declare in POSIX headers
26431         * NEWS: Mention this.
26432         * modules/openat (configure.ac): Declare witnesses.
26433         (Depends-on): Add fcntl-h, sys_stat, unistd.
26434         (Include): Mention correct headers.
26435         * modules/fcntl-h (Depends-on): Add link-warning.
26436         (Files): Add openat.m4.
26437         (Makefile.am): Substitute witnesses.
26438         * modules/sys_stat (Files, Makefile.am): Likewise.
26439         * modules/unistd (Files, Makefile.am): Likewise.
26440         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26441         (gl_OPENAT_DEFAULTS): New macro.
26442         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26445         (SYS_STAT_H): Remove unused variable.
26446         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26447         * lib/fcntl--.h (includes): Remove unneeded header.
26448         * lib/openat-safer.c (includes): Likewise.
26449         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26450         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26451         appropriate headers.
26452         (__OPENAT_PREFIX): Delete.
26453         * lib/fcntl.in.h (openat): Provide declaration.
26454         (AT_FDCWD): Fix Solaris bug.
26455         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26456         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26457         * lib/fchmodat.c (includes):  Adjust to find declaration.
26458         * lib/fchownat.c (includes): Likewise.
26459         * lib/mkdirat.c (includes): Likewise.
26460         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26461         still visible.
26462
26463 2009-09-02  Eric Blake  <ebb9@byu.net>
26464
26465         errno: use consistently
26466         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26467         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26468         * lib/canonicalize.c (ELOOP): Likewise.
26469         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26470         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26471         * lib/lchown.c (EOPNOTSUPP): Likewise.
26472         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26473         * lib/savewd.c (ESTALE): Likewise.
26474         * lib/settime.c (ENOSYS): Likewise.
26475         * lib/utimens.c (ENOSYS): Likewise.
26476         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26477         * lib/chdir-safer.c (ELOOP): Likewise.
26478         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26479         * modules/c-stack (Depends-on): Add errno.
26480         * modules/canonicalize (Depends-on): Likewise.
26481         * modules/chdir-safer (Depends-on): Likewise.
26482         * modules/fdopendir (Depends-on): Likewise.
26483         * modules/inet_ntop (Depends-on): Likewise.
26484         * modules/inet_pton (Depends-on): Likewise.
26485         * modules/lchown (Depends-on): Likewise.
26486         * modules/openat (Depends-on): Likewise.
26487         * modules/savewd (Depends-on): Likewise.
26488         * modules/settime (Depends-on): Likewise.
26489         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26490
26491         fts: avoid leaking fds
26492         * modules/fts (Depends-on): Add cloexec.
26493         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26494         flag.
26495
26496         fts: make directory fds more robust
26497         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26498         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26499
26500         backupfile, chdir-long, fts, savedir: make safer
26501         * lib/backupfile.c (includes): Use "dirent--.h", since
26502         numbered_backup can write to stderr during readdir.
26503         * lib/savedir.c (includes): Likewise.
26504         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26505         emulation can write to stderr on failure.
26506         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26507         * lib/getcwd.c: Document why opendir_safer is unused.
26508         * lib/glob.c: Likewise.
26509         * lib/scandir.c: Likewise.
26510         * lib/openat-proc.c: Likewise, for open_safer.
26511         * modules/backupfile (Depends-on): Add dirent-safer.
26512         * modules/savedir (Depends-on): Likewise.
26513         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26514         * modules/chdir-long (Depends-on): Add openat-safer.
26515
26516         openat-safer: new module
26517         * modules/openat-safer: New file.
26518         * lib/openat-safer.c: Likewise.
26519         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26520         * lib/fcntl-safer.h (openat_safer): Declare.
26521         * lib/fcntl--.h (openat): Override.
26522         * MODULES.html.sh (File descriptor based I/O): Mention it.
26523         * lib/openat.h: Add double-inclusion guards.
26524         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26525         "fcntl--.h", so we can implement openat.
26526         * modules/openat-safer-tests: New test.
26527         * tests/test-openat-safer.c: New file.
26528
26529         dirent-safer: new module
26530         * modules/dirent-safer: New file.
26531         * lib/dirent--.h: Likewise.
26532         * lib/dirent-safer.h: Likewise.
26533         * lib/opendir-safer.c: Likewise.
26534         * m4/dirent-safer.m4: Likewise.
26535         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26536         * modules/dirent-safer-tests: New test.
26537         * tests/test-dirent-safer.c: New file.
26538         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26539
26540         fdopendir: optimize on mingw
26541         * lib/unistd.in.h (_gl_directory_name): New prototype.
26542         * lib/fchdir.c (_gl_directory_name): Implement it.
26543         (fchdir): Use it to simplify implementation.
26544         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26545         fchdir, when available, to avoid calling [f]chdir().
26546
26547         fdopendir: split into its own module
26548         * lib/openat.c (fdopendir): Move...
26549         * lib/fdopendir.c: ...into new file.
26550         * modules/fdopendir: New module.
26551         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26552         * modules/openat (Depends-on): Add fdopendir.
26553         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26554         fdopendir here.
26555         * modules/savedir (Depends-on): Only need fdopendir, not full
26556         openat.
26557         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26558         * lib/openat.h (fdopendir): Drop prototype.
26559         * lib/dirent.in.h (fdopendir): Provide prototype.
26560         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26561         * modules/dirent (Makefile.am): Substitute them.
26562         * MODULES.html.sh (File system functions): Mention it.
26563         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26564         * modules/fdopendir-tests: New file.
26565         * tests/test-fdopendir.c: Likewise.
26566
26567         fchdir: use more consistent macro convention
26568         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26569         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26570         REPLACE_FCHDIR, rather than relying on config.h macros.
26571         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26572         inside a single make-time REPLACE_FCHDIR block, rather than using
26573         the config.h FCHDIR_REPLACEMENT.
26574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26575         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26576         Manage fstat replacement.
26577         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26578         REPLACE_FCHDIR.
26579         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26580         (Makefile.am): Substitute REPLACE_FCHDIR.
26581         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26582         FCHDIR_REPLACEMENT.
26583         * lib/dup-safer.c (dup_safer): Likewise.
26584         * lib/dup2.c (rpl_dup2): Likewise.
26585         * lib/dup3.c (rpl_dup3): Likewise.
26586         * lib/open.c (rpl_open): Likewise.
26587
26588         fchdir: simplify error handling, and support dup3
26589         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26590         stdbool, malloc-posix, realloc-posix.
26591         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26592         (ensure_dirs_slot): Return false on allocation failure.
26593         (rpl_dup2): Delete.
26594         (_gl_register_dup): New function.
26595         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26596         (_gl_register_fd): Close fd on allocation failure.
26597         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26598         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26599         prototype.
26600         (rpl_dup2_fchdir): Delete prototype.
26601         * lib/open.c (open): Update caller.
26602         * lib/dup2.c (dup2): Track fchdir metadata.
26603         * lib/dup3.c (dup3): Likewise.
26604         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26606
26607 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26608
26609         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26610         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26611         don't pass arguments to AC_OUTPUT.
26612
26613 2009-09-02  Bruno Haible  <bruno@clisp.org>
26614
26615         * modules/mkdtemp (License): Relicense under LGPLv2+.
26616         Reported by Paolo Bonzini.
26617
26618 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26619
26620         Replace uses of obsolete autoconf macros in Jim's modules.
26621         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26622         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26623         can evoke a warning from autoconf when run with -Wobsolete
26624         enabled.  They were declared obsolete for good reasons (see
26625         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26626         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26627         should not continue using the deprecated macros.
26628         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26629         obsolete Autoconf macros with modern counterparts.
26630         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26631         * m4/dos.m4 (gl_AC_DOS): Likewise.
26632         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26633         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26634         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26635         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26636         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26637         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26638         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26639         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26640         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26641         Likewise.
26642         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26643         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26644         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26645         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26646         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26647         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26648
26649 2009-09-01  Eric Blake  <ebb9@byu.net>
26650
26651         fchdir: fix off-by-one bug in previous patch
26652         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26653         (_gl_unregister_fd): Delete useless if.
26654
26655 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26656
26657         maint.mk: sort the list of syntax-check rules
26658         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26659         easier to get a sense of progress when the rules are run sequentially
26660         and take a long time.
26661
26662 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26663
26664         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26665         * modules/netinet_in: Likewise.
26666         * modules/sys_file: Likewise.
26667         * modules/sys_ioctl: Likewise.
26668         * modules/sys_select: Likewise.
26669         * modules/sys_socket: Likewise.
26670         * modules/sys_stat: Likewise.
26671         * modules/sys_time: Likewise.
26672         * modules/sys_times: Likewise.
26673         * modules/sys_utsname: Likewise.
26674         * modules/sys_wait: Likewise.
26675
26676 2009-09-01  Jim Meyering  <meyering@redhat.com>
26677
26678         fts: help ensure that return values are not ignored
26679         * lib/fts_.h (__GNUC_PREREQ): Define.
26680         (__attribute_warn_unused_result__): Define.
26681         (fts_children, fts_close, fts_open, fts_read): Declare with
26682         __attribute_warn_unused_result__.
26683
26684         fts: fts_close now fails also when closing a dir file descriptor fails
26685         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26686         and propagate to caller, along with errno.
26687
26688         announce-gen: correct formatting in --help output
26689         * build-aux/announce-gen (usage): Move the one-line description in
26690         --help output "up", to where it belongs, just after Usage:.
26691
26692 2009-08-31  Eric Blake  <ebb9@byu.net>
26693
26694         fchdir: port to mingw
26695         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26696         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26697         opened, then use a substitute.
26698         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26699         replacement.
26700         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26701         (_gl_register_fd): No need to check stat if open already filters
26702         all directories.
26703         (fchdir): Fix error condition to match POSIX.
26704         * modules/fchdir (Depends-on): Add sys_stat.
26705         * doc/posix-functions/open.texi (open): Document the limitation.
26706         * modules/fchdir-tests: New file.
26707         * tests/test-fchdir.c: Likewise.
26708
26709         canonicalize: allow cross-testing from cygwin to mingw
26710         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26711         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26712         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26713         Likewise.
26714         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26715         target does not support symlinks.
26716         * tests/test-canonicalize-lgpl.sh: Likewise.
26717
26718         chown: avoid compilation warning on mingw
26719         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26720         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26721         mingw.
26722         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26723         * modules/chown (Depends-on): Add errno.
26724
26725 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26726
26727         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26728         command.
26729
26730 2009-08-31  Jim Meyering  <meyering@redhat.com>
26731
26732         canonicalize: remove useless initialization
26733         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26734         initialization of local, "end".
26735
26736 2009-08-30  Bruno Haible  <bruno@clisp.org>
26737
26738         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26739         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26740         ENOSYS.
26741
26742 2009-08-30  Bruno Haible  <bruno@clisp.org>
26743
26744         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26745         /usr/xpg4/bin/tr when it exists.
26746         * tests/test-pipe-filter-gi1.sh: Likewise.
26747
26748 2009-08-30  Bruno Haible  <bruno@clisp.org>
26749
26750         Work around deficient /usr/bin/id program on Solaris.
26751         * tests/test-file-has-acl.sh (ID): New variable.
26752         * tests/test-set-mode-acl.sh (ID): Likewise.
26753         * tests/test-copy-acl.sh (ID): Likewise.
26754         * tests/test-copy-file.sh (ID): Likewise.
26755
26756 2009-08-30  Bruno Haible  <bruno@clisp.org>
26757
26758         New module 'xstriconveh'.
26759         * lib/xstriconveh.h: New file.
26760         * lib/xstriconveh.c: New file.
26761         * modules/xstriconveh: New file.
26762
26763 2009-08-30  Bruno Haible  <bruno@clisp.org>
26764
26765         Make it easier to use mem_cd_iconveh.
26766         * lib/striconveh.h (iconveh_t): New type.
26767         (iconveh_open, iconveh_close): New declarations.
26768         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26769         with a single 'const iconveh_t *' argument.
26770         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26771         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26772         with a single 'const iconveh_t *' argument.
26773         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26774         * tests/test-striconveh.c (main): Update.
26775         * NEWS: Mention the change.
26776
26777 2009-08-30  Bruno Haible  <bruno@clisp.org>
26778
26779         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26780         problem.
26781
26782 2009-08-30  Bruno Haible  <bruno@clisp.org>
26783
26784         Work around iconv_open problem on Solaris.
26785         * lib/iconv_open-solaris.gperf: New file.
26786         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26787         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26788         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26789         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26790         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26791         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26792
26793 2009-08-29  Jim Meyering  <meyering@redhat.com>
26794
26795         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26796         * top/maint.mk (cvs-check): Remove target; it was just an alias
26797         to the better-named vc-diff-check.
26798         (maintainer-distcheck): Remove rule.  It was used only from
26799         the (alpha/beta/major) target, and all of its commands but one
26800         were coreutils-specific.
26801         (vc-dist): Remove rule.
26802         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26803         Run vc-diff-check, not vc-dist.
26804         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26805
26806 2009-08-27  Bruno Haible  <bruno@clisp.org>
26807
26808         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26809         of 0.
26810
26811 2009-08-27  Bruno Haible  <bruno@clisp.org>
26812
26813         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26814         compilers.
26815         * doc/func.texi: Document the SunPRO C bug.
26816
26817 2009-08-27  Bruno Haible  <bruno@clisp.org>
26818
26819         Fix link error on Solaris.
26820         * tests/test-parse-duration.c (xstrdup): Remove function.
26821
26822 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26823
26824         ignore-value: handle pointer types, too
26825         * lib/ignore-value.h (__attribute__): Remove definition.
26826         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26827         of a more concise and more-often effective "(void) i" statement.
26828         (ignore_ptr): New function to suppress warnings from functions that
26829         return pointers, and to make it explicit that one function doesn't
26830         handle all cases.
26831
26832 2009-08-25  Bruno Haible  <bruno@clisp.org>
26833
26834         dup2: work around a Linux bug.
26835         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26836         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26837         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26838         Reported by Simon Josefsson.
26839
26840 2009-08-25  Jim Meyering  <meyering@redhat.com>
26841
26842         libguestfs uses gnulib
26843         * users.txt: Add libguestfs.
26844
26845 2009-08-24  Eric Blake  <ebb9@byu.net>
26846
26847         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26848         * lib/pipe2.c (includes): Add binary-io.h.
26849         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26850
26851 2009-08-24  Bruno Haible  <bruno@clisp.org>
26852
26853         Tolerate declared but missing accept4 syscall.
26854         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26855         available.
26856         * lib/sys_socket.in.h (accept4): If the function is already present,
26857         override it.
26858         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26859         * modules/accept4 (Makefile.am): Compile accept4.c always.
26860         Reported by Paolo Bonzini and Eric Blake.
26861
26862 2009-08-23  Bruno Haible  <bruno@clisp.org>
26863
26864         New module 'accept4'.
26865         * lib/sys_socket.in.h (accept4): New declaration.
26866         * lib/accept4.c: New file.
26867         * m4/accept4.m4: New file.
26868         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26869         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26870         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26871         HAVE_ACCEPT4.
26872         * modules/accept4: New file.
26873         * doc/glibc-functions/accept4.texi: Mention the new module.
26874
26875 2009-08-24  Jim Meyering  <meyering@redhat.com>
26876
26877         progname: also set global program_invocation_name, when possible
26878         Before this change, a libtool-enabled program that calls glibc's
26879         error function would report the program name as
26880         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26881         * modules/progname (configure.ac): Check for a declaration of
26882         program_invocation_name.
26883         * lib/progname.c:  Include <errno.h>.
26884         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26885         Set program_invocation_name.
26886
26887 2009-08-23  Bruno Haible  <bruno@clisp.org>
26888
26889         * lib/dup3.c: Include <string.h>.
26890
26891 2009-08-23  Bruno Haible  <bruno@clisp.org>
26892
26893         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26894         * lib/pipe2.c (pipe2): Likewise.
26895         Suggested by Eric Blake.
26896
26897 2009-08-23  Bruno Haible  <bruno@clisp.org>
26898
26899         Tolerate declared but missing dup3 syscall.
26900         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26901         * lib/unistd.in.h (dup3): If the function is already present,
26902         override it.
26903         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26904         * modules/dup3 (Makefile.am): Compile dup3.c always.
26905         Reported by Paolo Bonzini.
26906
26907 2009-08-23  Bruno Haible  <bruno@clisp.org>
26908
26909         Tolerate declared but missing pipe2 syscall.
26910         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26911         available.
26912         * lib/unistd.in.h (pipe2): If the function is already present,
26913         override it.
26914         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26915         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26916         Reported by Paolo Bonzini.
26917
26918 2009-08-23  Bruno Haible  <bruno@clisp.org>
26919
26920         * lib/pipe2.c (pipe2): Move #ifs inside function.
26921
26922 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26923
26924         quotearg: document limitations of quote_these_too
26925         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26926         those limitations are created.
26927         * lib/quotearg.h (set_char_quoting): Document that digits and
26928         letters that are special after backslash are not permitted.
26929         (quotearg_char): Cross-reference set_char_quoting documentation.
26930
26931 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26932
26933         quotearg: implement custom_quoting_style
26934         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26935         right_quote fields.
26936         (set_custom_quoting): New public function.
26937         (quotearg_buffer_restyled): Add left_quote and right_quote
26938         arguments, handle them very much like locale quoting, and update
26939         all uses.
26940         (quotearg_n_custom): New public function.
26941         (quotearg_n_custom_mem): New public function.
26942         (quotearg_custom): New public function.
26943         (quotearg_custom_mem): New public function.
26944         * lib/quotearg.h: Prototype and document new public functions.
26945         (enum quoting_style): For escape_quoting_style and
26946         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26947         ignored even though they're otherwise like c_quoting_style.
26948         Add custom_quoting_style member and document with comparison to
26949         clocale_quoting_style.
26950         * tests/test-quotearg.c (custom_quotes): New array.
26951         (custom_results): New array.
26952         (main): Extend to test custom quoting.
26953
26954 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26955
26956         quotearg: fix right quote escaping when it's in quote_these_too
26957         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26958         quote, be sure to prepend only one backslash.
26959         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26960         (main): Test it.
26961
26962 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26963
26964         quotearg-tests: test escaping of embedded locale quotes
26965         * tests/test-quotearg.c (struct result_strings): Add member for
26966         new input.
26967         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26968         (inputs): Add new input.
26969         (results_g): Add expected results.
26970         (flag_results): Likewise.
26971         (locale_results): Likewise.
26972         (compare_strings): Check those.
26973
26974 2009-08-23  Bruno Haible  <bruno@clisp.org>
26975
26976         Tests for module 'dup3'.
26977         * modules/dup3-tests: New file.
26978         * tests/test-dup3.c: New file.
26979
26980         New module 'dup3'.
26981         * lib/unistd.in.h (dup3): New declaration.
26982         * lib/dup3.c: New file.
26983         * m4/dup3.m4: New file.
26984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26985         HAVE_DUP3.
26986         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26987         * modules/dup3: New file.
26988         * doc/glibc-functions/dup3.texi: Mention the new module.
26989
26990 2009-08-23  Bruno Haible  <bruno@clisp.org>
26991
26992         Tweak the dup2 test.
26993         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26994         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26995         the test file is still empty. Fix argument order of lseek.
26996
26997 2009-08-23  Bruno Haible  <bruno@clisp.org>
26998
26999         Avoid test link errors when the modules getopt-gnu, gettext are used.
27000         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27002
27003 2009-08-23  Bruno Haible  <bruno@clisp.org>
27004
27005         Fix getdtablesize() on mingw.
27006         * lib/getdtablesize.c (getdtablesize): Implement differently.
27007         * lib/unistd.in.h (getdtablesize): Improve comment.
27008
27009 2009-08-23  Bruno Haible  <bruno@clisp.org>
27010
27011         New module 'mkostemp'.
27012         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27013         * lib/stdlib.in.h (mksotemp): New declaration.
27014         * lib/mkostemp.c: New file, from glibc with modifications.
27015         * lib/tempname.h (GT_FILE): Remove outdated comment.
27016         (gen_tempname): Add flags argument.
27017         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27018         (__GT_FILE): Map to 1.
27019         (small_open, large_open): Remove macros.
27020         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27021         * lib/mkstemp.c (mkstemp): Update.
27022         * lib/mkdtemp.c (mkdtemp): Likewise.
27023         * m4/mkostemp.m4: New file.
27024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27025         HAVE_MKOSTEMP.
27026         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27027         HAVE_MKOSTEMP.
27028         * modules/mkostemp: New file, based on modules/mkstemp.
27029         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27030         * NEWS: Mention the change.
27031
27032 2009-08-23  Bruno Haible  <bruno@clisp.org>
27033
27034         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27035         Reported by Eric Blake.
27036
27037 2009-08-23  Bruno Haible  <bruno@clisp.org>
27038
27039         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27040         Reported by Eric Blake.
27041
27042 2009-08-23  Bruno Haible  <bruno@clisp.org>
27043
27044         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27045         * modules/pipe2 (Depends-on): Likewise.
27046
27047 2009-08-23  Eric Blake  <ebb9@byu.net>
27048
27049         fcntl-h: add O_TTY_INIT support
27050         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27051         * tests/test-fcntl-h.c (o): Test it.
27052         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27053
27054         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27055         * modules/fcntl: Move <fcntl.h> header replacement...
27056         * modules/fcntl-h: ...to new name, so as not to collide with
27057         like-named function.
27058         * tests/test-fcntl.c: Rename...
27059         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27060         * modules/fcntl-tests: Rename...
27061         * modules/fcntl-h-tests: ...to this.  Update test file name.
27062         * modules/chdir-long (Depends-on): Update clients.
27063         * modules/chdir-safer (Depends-on): Likewise.
27064         * modules/fcntl-safer (Depends-on): Likewise.
27065         * modules/fts (Depends-on): Likewise.
27066         * modules/mkancesdirs (Depends-on): Likewise.
27067         * modules/mkdir-p (Depends-on): Likewise.
27068         * modules/open (Depends-on): Likewise.
27069         * modules/savewd (Depends-on): Likewise.
27070         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27071         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27072
27073 2009-08-22  Bruno Haible  <bruno@clisp.org>
27074
27075         * modules/binary-io (License): Relicense under LGPL.
27076         * modules/pipe2 (License): Likewise.
27077
27078 2009-08-22  Bruno Haible  <bruno@clisp.org>
27079
27080         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27081         return value.
27082         * lib/pipe-filter-gi.c (filter_init): Likewise.
27083         Reported by Eric Blake.
27084
27085 2009-08-22  Bruno Haible  <bruno@clisp.org>
27086
27087         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27088         * modules/pipe (Depends-on): Add pipe2.
27089
27090 2009-08-22  Bruno Haible  <bruno@clisp.org>
27091
27092         Tests for module 'pipe2'.
27093         * modules/pipe2-tests: New file.
27094         * tests/test-pipe2.c: New file.
27095
27096         New module 'pipe2'.
27097         * lib/unistd.in.h (pipe2): New declaration.
27098         * lib/pipe2.c: New file.
27099         * m4/pipe2.m4: New file.
27100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27101         HAVE_PIPE2.
27102         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27103         * modules/pipe2: New file.
27104         * doc/glibc-functions/pipe2.texi: Mention the new module.
27105
27106 2009-08-22  Bruno Haible  <bruno@clisp.org>
27107
27108         Reference some new glibc functions.
27109         * doc/glibc-functions/accept4.texi: New file.
27110         * doc/glibc-functions/dup3.texi: New file.
27111         * doc/glibc-functions/mkostemp.texi: New file.
27112         * doc/glibc-functions/pipe2.texi: New file.
27113         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27114         (Glibc sys/socket.h): Refer to accept4.
27115         (Glibc unistd.h): Refer to dup3, pipe2.
27116         Reported by Eric Blake.
27117
27118 2009-08-22  Jim Meyering  <meyering@redhat.com>
27119             Bruno Haible  <bruno@clisp.org>
27120
27121         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27122         This makes it so packages using automake-1.11's silent-rules option
27123         can print e.g., a single "GEN    configmake.h" line, rather than
27124         the 30+ statements that perform the job.  If you want to see the
27125         actual commands, you can still run "make V=1".
27126         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27127         so that make output is abbreviated when those variables are defined
27128         appropriately.
27129         * modules/argz: Likewise.
27130         * modules/arpa_inet: Likewise.
27131         * modules/byteswap: Likewise.
27132         * modules/configmake: Likewise.
27133         * modules/dirent: Likewise.
27134         * modules/errno: Likewise.
27135         * modules/fcntl: Likewise.
27136         * modules/float: Likewise.
27137         * modules/fnmatch: Likewise.
27138         * modules/getopt-posix: Likewise.
27139         * modules/glob: Likewise.
27140         * modules/iconv_open: Likewise.
27141         * modules/inttypes: Likewise.
27142         * modules/localcharset: Likewise.
27143         * modules/locale: Likewise.
27144         * modules/math: Likewise.
27145         * modules/netdb: Likewise.
27146         * modules/netinet_in: Likewise.
27147         * modules/poll: Likewise.
27148         * modules/posix_spawnp-tests: Likewise.
27149         * modules/sched: Likewise.
27150         * modules/search: Likewise.
27151         * modules/selinux-h: Likewise.
27152         * modules/signal: Likewise.
27153         * modules/spawn: Likewise.
27154         * modules/stdarg: Likewise.
27155         * modules/stdbool: Likewise.
27156         * modules/stddef: Likewise.
27157         * modules/stdint: Likewise.
27158         * modules/stdio: Likewise.
27159         * modules/stdlib: Likewise.
27160         * modules/string: Likewise.
27161         * modules/strings: Likewise.
27162         * modules/sys_file: Likewise.
27163         * modules/sys_ioctl: Likewise.
27164         * modules/sys_select: Likewise.
27165         * modules/sys_socket: Likewise.
27166         * modules/sys_stat: Likewise.
27167         * modules/sys_time: Likewise.
27168         * modules/sys_times: Likewise.
27169         * modules/sys_utsname: Likewise.
27170         * modules/sys_wait: Likewise.
27171         * modules/sysexits: Likewise.
27172         * modules/time: Likewise.
27173         * modules/unistd: Likewise.
27174         * modules/wchar: Likewise.
27175         * modules/wctype: Likewise.
27176
27177 2009-08-22  Jim Meyering  <meyering@redhat.com>
27178
27179         announce-gen: detect write failure
27180         * build-aux/announce-gen: Add Coda at end.
27181         Remove equivalent-but-more-verbose block at top.
27182
27183 2009-08-19  Akim Demaille  <demaille@gostai.com>
27184
27185         bootstrap: --help to stdout.
27186         * bootstrap (usage): Don't send --help to stderr.
27187         Use a here doc instead of a long string.
27188
27189 2009-08-21  Eric Blake  <ebb9@byu.net>
27190
27191         test-popen-safer: split from test-popen
27192         * tests/test-popen.c (main): Move...
27193         * tests/test-popen.h: ...into new file.
27194         * tests/test-popen-safer2.c: New file.
27195         * modules/popen-tests (Files): Add test-popen.h.
27196         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27197         Suggested by Bruno Haible.
27198
27199         test-fcntl-safer: split from test-open
27200         * tests/test-open.c (main): Move...
27201         * tests/test-open.h: ...into new file.
27202         * tests/test-fcntl-safer.c: New file.
27203         * modules/open-tests (Files): Add test-open.h.
27204         * modules/fcntl-safer-tests: New file.
27205         Suggested by Bruno Haible.
27206
27207         test-fopen-safer: split from test-fopen
27208         * tests/test-fopen.c (main): Move...
27209         * tests/test-fopen.h: ...into new file.
27210         * tests/test-fopen-safer.c: New file.
27211         * modules/fopen-tests (Files): Add test-fopen.h.
27212         * modules/fopen-safer-tests: New file.
27213         Suggested by Bruno Haible.
27214
27215 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27216
27217         popen-safer: test O_CLOEXEC at run-time.
27218         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27219
27220 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27221
27222         fcntl: move more flags to the header
27223         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27224         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27225         * lib/fcntl.in.h: Do both things here.
27226
27227 2009-08-21  Jim Meyering  <meyering@redhat.com>
27228
27229         consistently remove $@-t before redirecting to it
27230         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27231         * modules/alloca-opt: Likewise.
27232         * modules/byteswap: Likewise.
27233         * modules/fnmatch: Likewise.
27234         * modules/getopt-posix: Likewise.
27235         * modules/glob: Likewise.
27236         * modules/poll: Likewise.
27237         * modules/posix_spawnp-tests: Likewise.
27238         * modules/sys_socket: Likewise.
27239         * modules/sysexits: Likewise.
27240
27241 2009-08-21  Eric Blake  <ebb9@byu.net>
27242
27243         popen: simplify access to original popen
27244         * lib/popen.c (rpl_popen): No need to worry about popen being a
27245         macro.
27246         Reported by Bruno Haible.
27247
27248 2009-08-20  Eric Blake  <ebb9@byu.net>
27249
27250         build: avoid some compiler warnings
27251         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27252         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27253         type.
27254         (new_exclude_segment, excluded_file_pattern_p)
27255         (excluded_file_name_p): Reduce scope.
27256         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27257         old-style declaration.
27258
27259 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27260
27261         * tests/test-exclude1.sh: Handle Windows EOL.
27262         * tests/test-exclude2.sh: Likewise.
27263         * tests/test-exclude3.sh: Likewise.
27264         * tests/test-exclude4.sh: Likewise.
27265         * tests/test-exclude5.sh: Likewise.
27266         * tests/test-exclude6.sh: Likewise.
27267         * tests/test-exclude7.sh: Likewise.
27268
27269 2009-08-19  Akim Demaille  <demaille@gostai.com>
27270
27271         bootstrap: find sha1sum when named gsha1sum.
27272         * bootstrap (find_tool): New.
27273         ($SHA1SUM): New.
27274         Use it.
27275
27276 2009-08-20  Jim Meyering  <meyering@redhat.com>
27277
27278         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27279         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27280         expression that converts "." in a file name to "\." in the resulting
27281         regexp.  Start with a dummy statement, so that prior shell variable
27282         definitions are expanded portably.  Reported by Simon Josefsson.
27283
27284 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27285
27286         Fix polling for writeability of a screen buffer.
27287         * lib/poll.c: Distinguish input and screen buffers for the
27288         Win32 implementation.
27289         * lib/select.c: Likewise.
27290
27291 2009-08-19  Eric Blake  <ebb9@byu.net>
27292
27293         popen-safer: prevent popen from clobbering std descriptors
27294         * modules/popen-safer: New file.
27295         * lib/popen-safer.c: Likewise.
27296         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27297         * lib/stdio--.h (popen): Provide override.
27298         * lib/stdio-safer.h (popen_safer): Provide declaration.
27299         * tests/test-popen.c (includes): Partially test this.
27300         * modules/popen-safer-tests: New file, for more tests.
27301         * tests/test-popen-safer.c: Likewise.
27302         * MODULES.html.sh (file stream based Input/Output): Mention it.
27303
27304         tests: test some of the *-safer modules
27305         * modules/fopen-safer (Depends-on): Add fopen.
27306         * modules/fcntl-safer (Depends-on): Add fcntl.
27307         * modules/stdlib-safer (Depends-on): Add stdlib.
27308         (configure.ac): Set indicator.
27309         * modules/unistd-safer (configure.ac): Likewise.
27310         * modules/tmpfile-safer (configure.ac): Likewise.
27311         (Depends-on): Add tmpfile.
27312         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27313         active.
27314         * tests/test-fopen.c (includes): Test safer versions when they are
27315         in use.
27316         * tests/test-open.c (includes): Likewise.
27317
27318         popen: fix cygwin 1.5 bug when stdin closed
27319         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27320         * modules/popen: New file.
27321         * modules/popen-tests: Likewise.
27322         * tests/test-popen.c: Likewise.
27323         * m4/popen.m4: Likewise.
27324         * lib/popen.c: Likewise.
27325         * lib/stdio.in.h (popen): New declaration.
27326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27327         * modules/stdio (Makefile.am): Likewise.
27328         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27329
27330 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27331
27332         maint.mk: give full control over update-copyright exclusions
27333         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27334         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27335         (update-copyright): Don't force inclusion of top-level
27336         ChangeLog.  Don't force exclusion of all COPYING files, but make
27337         them the default exclusion instead.
27338
27339 2009-08-16  Bruno Haible  <bruno@clisp.org>
27340
27341         Fix test failures on Solaris 10.
27342         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27343         tests when Solaris iconv() is used.
27344         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27345         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27346         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27347         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27348         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27349
27350 2009-08-16  Bruno Haible  <bruno@clisp.org>
27351
27352         Fix test failures on Solaris 10.
27353         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27354         'tr' program and pass it as first argument.
27355         * tests/test-pipe-filter-gi1.sh: Likewise.
27356         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27357         program as first argument.
27358         * tests/test-pipe-filter-gi1.c (main): Likewise.
27359
27360 2009-08-16  Eric Blake  <ebb9@byu.net>
27361
27362         fpurge: fix previous commits
27363         * modules/fpurge (Makefile.am): Make replacement conditional,
27364         partially reverting 2007-04-29 change; missed in previous
27365         attempt.
27366         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27367         is missing.
27368
27369 2009-08-16  Bruno Haible  <bruno@clisp.org>
27370
27371         Clarify fpurge's effect on the file position.
27372         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27373         * tests/test-fpurge.c (main): Make a second pass for checking the file
27374         position.
27375
27376 2009-08-16  Bruno Haible  <bruno@clisp.org>
27377
27378         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27379         declaration of fpurge is missing.
27380         * tests/test-fpurge.c (main): Check that the file has not more contents
27381         than expected. Close the file before removing it.
27382
27383 2009-08-15  Eric Blake  <ebb9@byu.net>
27384
27385         fpurge: don't wrap working cygwin implementation
27386         * lib/fpurge.c (fpurge): Fix comment typo.
27387         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27388         1.7 to avoid replacement.
27389         * tests/test-fpurge.c (main): Enhance test.
27390
27391 2009-08-15  Eric Blake  <ebb9@byu.net>
27392         and Jim Meyering  <meyering@redhat.com>
27393
27394         test-update-copyright: skip if perl is insufficient
27395         * tests/test-update-copyright.sh: Failure to run maintainer tool
27396         should not cause testsuite failure on cygwin 1.5.
27397
27398 2009-08-14  Eric Blake  <ebb9@byu.net>
27399
27400         doc: mention more functions added in cygwin 1.7.0
27401         * doc/posix-headers/limits.texi (limits.h): Update for recent
27402         cygwin additions.
27403         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27404         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27405         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27406         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27407         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27408
27409 2009-08-14  Eric Blake  <ebb9@byu.net>
27410
27411         maint.mk: simplify update-copyright rule
27412         * top/maint.mk (update-copyright-local): Delete, and document how
27413         to do it in cfg.mk instead.
27414         (update-copyright-exclude-regexp): Delete, and document how to do
27415         it in .x-update-copyright instead.
27416         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27417         exclude ChangeLog.
27418
27419 2009-08-14  Bruno Haible  <bruno@clisp.org>
27420
27421         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27422
27423 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27424
27425         maint.mk: support update-copyright-env
27426         * top/maint.mk (update-copyright-env): Define place-holder.
27427         (update-copyright): Expand $(update-copyright-env) before
27428         invoking update-copyright.
27429
27430 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27431
27432         update-copyright: implement forced reformatting
27433         * build-aux/update-copyright: Implement and document
27434         UPDATE_COPYRIGHT_FORCE.
27435         * tests/test-update-copyright.sh: Test it.
27436
27437 2009-08-14  Eric Blake  <ebb9@byu.net>
27438         and Bruno Haible  <bruno@clisp.org>
27439
27440         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27441         * tests/test-locale.c: Revert previous patch related to NULL.
27442         * tests/test-stdio.c: Likewise.
27443         * tests/test-stdlib.c: Likewise.
27444         * tests/test-string.c: Likewise.
27445         * tests/test-unistd.c: Likewise.
27446         * modules/time-tests (Depends-on): Add verify.
27447         * modules/wchar-tests (Depends-on): Likewise.
27448         * tests/test-time.c: Test for NULL compliance.
27449         * tests/test-wchar.c: Likewise.
27450         * modules/locale (Depends-on): Add stddef.
27451         * modules/stdio (Depends-on): Likewise.
27452         * modules/stdlib (Depends-on): Likewise.
27453         * modules/string (Depends-on): Likewise.
27454         * modules/time (Depends-on): Likewise.
27455         * modules/unistd (Depends-on): Likewise.
27456         * modules/wchar (Depends-on): Likewise.
27457         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27458         * lib/stdlib.in.h (includes): Likewise.
27459         * lib/string.in.h (includes): Likewise.
27460         * lib/time.in.h (includes): Likewise.
27461         * lib/unistd.in.h (includes): Likewise.
27462         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27463         replaced.
27464         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27465         * m4/stddef_h.m4: New file.
27466         * modules/stddef: Likewise.
27467         * lib/stddef.in.h: Likewise.
27468         * modules/stddef-tests: Likewise.
27469         * tests/test-stddef.c: Likewise.
27470         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27471         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27472         * doc/posix-headers/locale.texi (locale.h): Likewise.
27473         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27474         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27475         * doc/posix-headers/string.texi (string.h): Likewise.
27476         * doc/posix-headers/time.texi (time.h): Likewise.
27477         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27478         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27479
27480 2009-08-14  Eric Blake  <ebb9@byu.net>
27481
27482         doc: improve git diff of texinfo files
27483         * .gitattributes: Add rule for *.texi files, with hint on how to
27484         use it.
27485         Copied from m4, and based on a report by Bruno Haible.
27486
27487 2009-08-14  Bruno Haible  <bruno@clisp.org>
27488
27489         Disable multithread support by default on Cygwin 1.5.x for real.
27490         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27491
27492 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27493
27494         update-copyright: much ado about intervals
27495         * build-aux/update-copyright: Implement and document
27496         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27497         of copyright year intervals.
27498         Also, document UPDATE_COPYRIGHT_YEAR.
27499         * tests/test-update-copyright.sh: Test it.
27500
27501         update-copyright: convert 2-digit to 4-digit years
27502         * build-aux/update-copyright: Implement and document.
27503         * tests/test-update-copyright.sh: Update.
27504
27505 2009-08-14  Jim Meyering  <meyering@redhat.com>
27506
27507         test-exclude: avoid coreutils "make check" failure
27508         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27509         just as in test-argmatch.c.
27510
27511 2009-08-13  Eric Blake  <ebb9@byu.net>
27512
27513         test-dup2: fix bad assumption
27514         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27515         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27516
27517         test-version-etc: fix CRLF portability issue
27518         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27519         recognize \r.
27520         * tests/test-argp-version-etc-1.sh: Likewise.
27521
27522         getopt: update client modules
27523         * modules/argp (Depends-on): Use getopt-gnu.
27524         * modules/git-merge-changelog (Depends-on): Likewise.
27525         * modules/long-options (Depends-on): Likewise.
27526         * modules/xstrtol (Depends-on): Likewise.
27527
27528 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27529
27530         * tests/test-version-etc.sh: Don't fail on different
27531         project/version.  Don't fail on CRLF differences.  Rewrite to use
27532         multiple -e instead of multiple sed forks, suggested by Eric Blake
27533         <ebb9@byu.net>.
27534         * tests/test-argp-version-etc-1.sh: Likewise.
27535
27536 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27537
27538         * tests/test-version-etc.sh: Don't fail on different
27539         project/version.
27540
27541 2009-08-12  Bruno Haible  <bruno@clisp.org>
27542
27543         Tests for modules 'getopt-posix', 'getopt-gnu'.
27544         * modules/getopt-posix-tests: New file.
27545         * tests/test-getopt.c: New file.
27546         * tests/test-getopt.h: New file.
27547         * tests/test-getopt_long.h: New file.
27548
27549         New modules 'getopt-posix', 'getopt-gnu'.
27550         * modules/getopt-gnu: New file, renamed from modules/getopt.
27551         * modules/getopt-posix: New file.
27552         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27553         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27554         (gl_GETOPT): Remove macro.
27555         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27556         Disable the test against BSD systems that declare optreset. Test
27557         against mingw bug. Test against lack of support of optional arguments
27558         on many platforms.
27559         * doc/glibc-headers/getopt.texi: Update module name and list of
27560         relevant platforms.
27561         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27562         'getopt-gnu' and more portability problems.
27563         * NEWS: Mention the changes.
27564
27565 2009-08-12  Bruno Haible  <bruno@clisp.org>
27566
27567         Ensure that optarg etc. get declared by <unistd.h>.
27568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27569         AC_USE_SYSTEM_EXTENSIONS.
27570         * modules/getopt (Depends-on): Add 'extensions'.
27571
27572 2009-08-12  Bruno Haible  <bruno@clisp.org>
27573
27574         Avoid test link errors.
27575         * modules/pipe-filter-ii-tests (Makefile.am): Define
27576         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27577         * modules/pipe-filter-gi-tests (Makefile.am): Define
27578         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27579         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27580
27581 2009-08-12  Bruno Haible  <bruno@clisp.org>
27582
27583         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27584         gl_GETOPT_SUBSTITUTE before.
27585         (gl_GETOPT): Use it.
27586         * m4/argp.m4 (gl_ARGP): Update.
27587         Reported by Sergey Poznyakoff.
27588
27589         * m4/getopt.m4: Reorder macros.
27590         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27591         (gl_GETOPT_SUBSTITUTE): Remove macro.
27592
27593 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27594
27595         Minor improvement in gitlog-to-changelog
27596
27597         * build-aux/gitlog-to-changelog: New option `--format' makes
27598         output format string configurable.
27599
27600 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27601
27602         Optimize exclude: use hash tables for non-wildcard patterns.
27603
27604         * lib/exclude.c: Include hash.h and mbuiter.h
27605         (struct exclude_pattern, exclude_segment): New data types.
27606         (struct exclude): Rewrite.
27607         (fnmatch_pattern_has_wildcards): New function.
27608         (new_exclude_segment, free_exclude_segment): New functions.
27609         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27610         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27611         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27612         * modules/exclude: Depend on hash and mbuiter.
27613
27614         * modules/exclude-tests: New file.
27615         * tests/test-exclude.c: New file.
27616         * tests/test-exclude1.sh: New file.
27617         * tests/test-exclude2.sh: New file.
27618         * tests/test-exclude3.sh: New file.
27619         * tests/test-exclude4.sh: New file.
27620         * tests/test-exclude5.sh: New file.
27621         * tests/test-exclude6.sh: New file.
27622         * tests/test-exclude7.sh: New file.
27623
27624 2009-08-12  Bruno Haible  <bruno@clisp.org>
27625
27626         Ensure that getopt() gets declared by <unistd.h>.
27627         * lib/unistd.in.h: Conditionally include getopt.h.
27628         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27629         Set GNULIB_UNISTD_H_GETOPT.
27630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27631         GNULIB_UNISTD_H_GETOPT.
27632         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27633
27634 2009-08-12  Bruno Haible  <bruno@clisp.org>
27635
27636         Clarify logic.
27637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27638         gl_replace_getopt instead of GETOPT_H.
27639
27640 2009-08-12  Bruno Haible  <bruno@clisp.org>
27641
27642         * m4/getopt.m4: Add comments.
27643
27644 2009-08-12  Bruno Haible  <bruno@clisp.org>
27645
27646         Disable multithread support by default on Cygwin 1.5.x.
27647         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27648         set gl_use_threads=no if not specified otherwise.
27649
27650 2009-08-11  Bruno Haible  <bruno@clisp.org>
27651
27652         Avoid compilation error on NetBSD 5.0.
27653         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27654         * tests/test-stdio.c: Likewise.
27655         * tests/test-stdlib.c: Likewise.
27656         * tests/test-string.c: Likewise.
27657         * tests/test-unistd.c: Likewise.
27658         Reported by Greg Troxel <gdt@ir.bbn.com>
27659         at <https://savannah.gnu.org/support/?106973>.
27660
27661 2009-08-11  Bruno Haible  <bruno@clisp.org>
27662
27663         * modules/dup2-tests (Depends-on): Remove close.
27664
27665         Undo 2009-07-19 commit.
27666         * modules/acl-tests (Depends-on): Remove close.
27667         * modules/binary-io-tests (Depends-on): Likewise.
27668         * modules/closein-tests (Depends-on): Likewise.
27669         * modules/flock-tests (Depends-on): Likewise.
27670         * modules/fsync-tests (Depends-on): Likewise.
27671         * modules/lseek-tests (Depends-on): Likewise.
27672         * modules/pipe-tests (Depends-on): Likewise.
27673         * modules/posix_spawn-tests (Depends-on): Likewise.
27674         * modules/posix_spawnp-tests (Depends-on): Likewise.
27675         * modules/stat-time-tests (Depends-on): Likewise.
27676         * modules/yesno-tests (Depends-on): Likewise.
27677
27678 2009-08-10  Bruno Haible  <bruno@clisp.org>
27679
27680         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27681
27682 2009-08-10  Bruno Haible  <bruno@clisp.org>
27683
27684         Fix a gcc warning.
27685         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27686
27687 2009-08-10  Bruno Haible  <bruno@clisp.org>
27688
27689         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27690         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27691         not only the first time.
27692         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27693         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27694         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27695         is 1, not only the the first time.
27696
27697 2009-08-10  Bruno Haible  <bruno@clisp.org>
27698
27699         Make it possible to use module 'gethostname' without module 'close'.
27700         * lib/unistd.in.h (close): Evoke a link error only if
27701         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27703         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27704         * modules/unistd (Makefile.am): Substitute
27705         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27706         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27707         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27708         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27709         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27710         * modules/sys_ioctl (Makefile.am): Substitute
27711         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27712         * modules/socket (configure.ac): On native Windows, set
27713         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27714         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27715         Reported by Sam Steingold <sds@gnu.org>.
27716
27717 2009-08-10  Bruno Haible  <bruno@clisp.org>
27718
27719         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27720         * modules/ioctl (configure.ac): Likewise.
27721
27722 2009-08-10  Bruno Haible  <bruno@clisp.org>
27723
27724         Avoid collision between gnulib wrapper and libintl wrapper.
27725         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27726         already defined in intl/printf.c.
27727         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27728         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27729
27730 2009-08-09  Bruno Haible  <bruno@clisp.org>
27731
27732         Make <sys/select.h> really self-contained, also on Solaris 10.
27733         * lib/sys_select.in.h: Include <string.h>.
27734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27735         Solaris 10 problem.
27736         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27737         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27738         Reported by Jim Meyering.
27739
27740 2009-08-09  Bruno Haible  <bruno@clisp.org>
27741
27742         Avoid warnings from 'aclocal' that are due to a use of macro name
27743         AM_XGETTEXT_OPTION that is not defined in automake.
27744         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27745         automake.
27746         * modules/error (configure.ac): Likewise.
27747         * modules/propername (configure.ac): Likewise.
27748         * modules/vasprintf (configure.ac): Likewise.
27749         * modules/verror (configure.ac): Likewise.
27750         * modules/xprintf (configure.ac): Likewise.
27751         * modules/xvasprintf (configure.ac): Likewise.
27752
27753 2009-08-08  Bruno Haible  <bruno@clisp.org>
27754
27755         Avoid compilation error in C++ mode.
27756         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27757         Reported by Sam Steingold <sds@gnu.org>.
27758
27759 2009-08-08  Bruno Haible  <bruno@clisp.org>
27760
27761         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27762         for the various Unix platforms.
27763         * doc/posix-headers/limits.texi: Update platforms list regarding
27764         HOST_NAME_MAX.
27765         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27766
27767 2009-08-07  Jim Meyering  <meyering@redhat.com>
27768
27769         selinux-at: fix typo in a comment
27770         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27771         Spotted by Paolo Bonzini.
27772
27773         selinux-at: remove redundant m4 code, add documentation
27774         * modules/selinux-at (configure.ac): Remove redundant code.
27775         LIB_SELINUX is already set via the dependent module, selinux-h.
27776         (Include): Add quotes around selinux-at.h.
27777         * lib/selinux-at.h: Add documentation.
27778         Reported by Bruno Haible in
27779         http://marc.info/?l=gnulib-bug&m=124958988300749
27780
27781 2009-08-07  Bruno Haible  <bruno@clisp.org>
27782
27783         Avoid link error on MacOS X 10.3 and 10.4.
27784         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27785         on non-ELF systems.
27786         * lib/argp-pv.c (argp_program_version): Likewise.
27787         Reported by Simon Josefsson.
27788
27789 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27790
27791         * tests/test-version-etc.sh: Use $EXEEXT.
27792
27793 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27794
27795         update-copyright: update documentation to point to maint.mk
27796         * build-aux/update-copyright: Here.
27797
27798 2009-08-06  Jim Meyering  <meyering@redhat.com>
27799
27800         maint.mk: support update-copyright-local
27801         * top/maint.mk (update-copyright-local): Define place-holder.
27802         (update-copyright): Depend on $(update-copyright-local).
27803
27804 2009-08-06  Jim Meyering  <meyering@redhat.com>
27805
27806         selinux-at: new module
27807         Initially written for coreutils, this module will soon be
27808         used by findutils, too.
27809         * MODULES.html.sh [Misc]: Add selinux-at.
27810         * lib/selinux-at.h: New file, from coreutils.
27811         * lib/selinux-at.c: Likewise.
27812         * modules/selinux-at: Likewise.
27813         (License): Change from LGPL to GPL, since it depends
27814         on the GPL'd openat module.
27815
27816         doc: update README
27817         * README: Remove references to cogito.
27818         Remove cvs-repo-updating instructions from 2007.
27819         Don't imply that CVS is better if you have limited disk space.
27820
27821 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27822
27823         update-copyright: support C-style comments
27824         * build-aux/update-copyright: Implement and document.
27825         * tests/test-update-copyright.sh: Test.
27826
27827 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27828
27829         update-copyright: support omitted "(C)"
27830         * build-aux/update-copyright: Implement and document.  Also,
27831         allow variable whitespace before "(C)".
27832         * tests/test-update-copyright.sh: Test.
27833
27834 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27835
27836         update-copyright: don't trip on non-FSF copyright statements
27837         * build-aux/update-copyright: Fix so that the first correctly
27838         formatted FSF copyright statement is recognized no matter what
27839         appears before it.  Update documentation.
27840         * tests/test-update-copyright.sh: Test that.
27841
27842 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27843
27844         update-copyright: clean up code a little
27845         * build-aux/update-copyright: Append "_re" to the name of any
27846         variable holding a regular expression.
27847         Replace "old" and "new" with "stmt" in variable names.
27848         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27849         handled correctly.
27850         Format code more consistently.
27851
27852 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27853
27854         update-copyright-tests: improve portability
27855         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27856         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27857
27858 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27859
27860         update-copyright: support @copyright{} and &copy;
27861         * build-aux/update-copyright: Implement and document.
27862         * tests/test-update-copyright.sh: Test.
27863
27864 2009-08-04  Jim Meyering  <meyering@redhat.com>
27865
27866         update-copyright-tests: correctly test EOL=\r\n handling
27867         * tests/test-update-copyright.sh: Put \r at the end of some lines
27868         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27869
27870         maint.mk: make update-copyright exclusion list more configurable
27871         * top/maint.mk (update-copyright): Default to excluding COPYING,
27872         but allow an override, in case someone does want to update that file.
27873
27874         maint.mk: don't update copyright date in COPYING
27875         * top/maint.mk (update-copyright): Exclude COPYING.
27876
27877         maint.mk: add a copyright-updating rule
27878         * top/maint.mk (update-copyright): New rule.
27879         Derived from coreutils/Makefile.am.
27880
27881         update-copyright: rename some variables
27882         * build-aux/update-copyright: Rename a few variables for clarity.
27883         Tweak syntax.  List Joel E. Denny as coauthor.
27884
27885 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27886
27887         update-copyright: fix bug for 2-digit last year and add tests
27888         * build-aux/update-copyright: Fix bug.
27889         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27890         specified.
27891         * modules/update-copyright-tests: New
27892         * tests/test-update-copyright.sh: New.
27893
27894 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27895
27896         update-copyright: handle leading tabs in line prefix
27897         * build-aux/update-copyright: Count leading tabs as 8 spaces
27898         when computing margin.  This helps with the formatting of
27899         ChangeLogs, for example.
27900         Fix documentation a little.
27901
27902 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27903
27904         update-copyright: support EOL=\r\n
27905         * build-aux/update-copyright: Implement that.
27906
27907 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27908
27909         update-copyright: automatically format copyright statements
27910         * build-aux/update-copyright: Implement that.
27911         Also, be a little more predictable and safer by always failing
27912         when the full copyright format is not perfectly recognized as an
27913         unbroken whole.  Discussed at
27914         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27915         Rewrite documentation.
27916
27917 2009-08-03  Bruno Haible  <bruno@clisp.org>
27918
27919         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27920
27921 2009-08-02  Bruno Haible  <bruno@clisp.org>
27922
27923         Tests for module 'uname'.
27924         * modules/uname-tests: New file.
27925         * tests/test-uname.c: New file.
27926
27927         New module 'uname'.
27928         * lib/uname.c: New file.
27929         * m4/uname.m4: New file.
27930         * modules/uname: New file.
27931         * doc/posix-functions/uname.texi: Mention the new module.
27932
27933 2009-08-02  Bruno Haible  <bruno@clisp.org>
27934
27935         Tests for module 'sys_utsname'.
27936         * modules/sys_utsname-tests: New file.
27937         * tests/test-sys_utsname.c: New file.
27938
27939         New module 'sys_utsname'.
27940         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27941         * m4/sys_utsname_h.m4: New file.
27942         * modules/sys_utsname: New file.
27943         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27944
27945 2009-08-02  Bruno Haible  <bruno@clisp.org>
27946
27947         Implicitly initialize the sockets library.
27948         * lib/gethostname.c: Include sockets.h.
27949         (rpl_gethostname): Invoke gl_sockets_startup.
27950         * lib/socket.c: Include sockets.h.
27951         (rpl_socket): Invoke gl_sockets_startup.
27952         * modules/gethostname (Depends-on): Add sockets.
27953         * modules/socket (Depends-on): Likewise.
27954         * tests/test-poll.c: Don't include sockets.h.
27955         (main): Don't invoke gl_sockets_startup.
27956         * tests/test-select.c: Don't include sockets.h.
27957         (main): Don't invoke gl_sockets_startup.
27958
27959 2009-08-02  Bruno Haible  <bruno@clisp.org>
27960
27961         Allow multiple calls to gl_sockets_startup.
27962         * lib/sockets.c (initialized_sockets_version): New variable.
27963         (gl_sockets_startup): Do nothing if already called for this or a higher
27964         version.
27965         (gl_sockets_cleanup): Reset initialized_sockets_version.
27966
27967 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27968
27969         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27970         different project/version.
27971
27972 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27973             Bruno Haible  <bruno@clisp.org>
27974
27975         Tests for module 'pipe-filter-gi'.
27976         * modules/pipe-filter-gi-tests: New file.
27977         * tests/test-pipe-filter-gi1.sh: New file.
27978         * tests/test-pipe-filter-gi1.c: New file.
27979         * tests/test-pipe-filter-gi2.sh: New file.
27980         * tests/test-pipe-filter-gi2-main.c: New file.
27981         * tests/test-pipe-filter-gi2-child.c: New file.
27982
27983         New module 'pipe-filter-gi'.
27984         * lib/pipe-filter-gi.c: New file.
27985         * modules/pipe-filter-gi: New file.
27986
27987 2009-08-02  Bruno Haible  <bruno@clisp.org>
27988             Paolo Bonzini  <bonzini@gnu.org>
27989
27990         Tests for module 'pipe-filter-ii'.
27991         * modules/pipe-filter-ii-tests: New file.
27992         * tests/test-pipe-filter-ii1.sh: New file.
27993         * tests/test-pipe-filter-ii1.c: New file.
27994         * tests/test-pipe-filter-ii2.sh: New file.
27995         * tests/test-pipe-filter-ii2-main.c: New file.
27996         * tests/test-pipe-filter-ii2-child.c: New file.
27997
27998         New module 'pipe-filter-ii'.
27999         * lib/pipe-filter.h: New file.
28000         * lib/pipe-filter-ii.c: New file.
28001         * lib/pipe-filter-aux.h: New file.
28002         * modules/pipe-filter-ii: New file.
28003
28004 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28005
28006         * lib/gc-libgcrypt.c: Change copyright to FSF.
28007         * lib/gc-gnulib.c: Likewise.
28008
28009 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28010
28011         * lib/gethostname.c: Include limits.h.
28012
28013 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28014             Bruno Haible  <bruno@clisp.org>
28015
28016         Ensure HOST_NAME_MAX as part of the gethostname module.
28017         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28018         define also HOST_NAME_MAX.
28019         * tests/test-gethostname.c: Include <limits.h>.
28020         (main): Check also HOST_NAME_MAX.
28021         * doc/posix-headers/limits.texi: Document the mingw problem.
28022
28023 2009-08-02  Bruno Haible  <bruno@clisp.org>
28024
28025         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28026         Add comments.
28027
28028 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28029
28030         * lib/gethostname.c: Add Windows wrapper.
28031         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28032         * modules/gethostname: Depend on sys_socket & errno, for also
28033         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28034         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28035
28036 2009-07-31  Jim Meyering  <meyering@redhat.com>
28037
28038         getloadavg: fix symbol name in comment
28039         * lib/getloadavg.c: Correct a typo I introduced when adding
28040         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28041         Matt Kraai spotted the problem.
28042
28043 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28044
28045         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28046         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28047         code also if ! defined N_NAME_POINTER.
28048         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28049         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28050         but the n_name member is a 12-byte array.
28051
28052 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28053
28054         update-copyright: generalize comment handling
28055         * build-aux/update-copyright: Handle copyright statements
28056         within more comment styles.
28057         Document usage.
28058         Report any file with an external copyright holder or parse failure.
28059
28060 2009-07-29  Jim Meyering  <meyering@redhat.com>
28061
28062         mktime: correct setting of REPLACE_MKTIME
28063         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28064
28065         update-copyright: new module
28066         * modules/update-copyright: New file.
28067         * build-aux/update-copyright: New file.
28068         * MODULES.html.sh (maint+release support): Add update-copyright.
28069
28070 2009-07-27  Bruno Haible  <bruno@clisp.org>
28071
28072         Fix compilation error when <ctime> is used and mktime is replaced.
28073         * lib/time.in.h (mktime): New declaration.
28074         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28075         REPLACE_MKTIME instead of defining mktime in config.h.
28076         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28077         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28078         Reported by Ross McFarland <rwmcfa1@neces.com>.
28079
28080 2009-07-27  Bruno Haible  <bruno@clisp.org>
28081
28082         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28083         Reported by Matt Kraai <mkraai@beckman.com>.
28084
28085 2009-07-25  Jim Meyering  <meyering@redhat.com>
28086
28087         maint.mk: avoid warnings about missing files
28088         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28089         diagnostic when .prev-version does not exist.
28090         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28091         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28092         nonexistent cfg.mk.
28093         Suggestions from Simon Josefsson.
28094
28095 2009-07-25  Bruno Haible  <bruno@clisp.org>
28096
28097         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28098         defined as macros. Needed on QNX 6.4.1.
28099         Reported by Matt Kraai <mkraai@beckman.com>.
28100
28101 2009-07-23  Jim Meyering  <meyering@redhat.com>
28102
28103         maint.mk: invoke "make dist" with a working value of XZ_OPT
28104         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28105
28106 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28107
28108         Make fseeko.c compile on QNX.
28109         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28110
28111 2009-07-22  Peter Simons  <simons@cryp.to>
28112
28113         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28114         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28115         * lib/md4.h: Likewise.
28116         * lib/md5.h: Likewise.
28117         * lib/sha1.h: Likewise.
28118         * lib/sha256.h: Likewise.
28119         * lib/sha512.h: Likewise.
28120
28121         tests-sha1: don't assign literal string to 'char *' variable
28122         * tests/test-sha1.c (main): Declare locals with "const" to match
28123         attributes of the right hand side.
28124
28125 2009-07-21  Eric Blake  <ebb9@byu.net>
28126
28127         dup2: fix more mingw problems
28128         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28129         fd to itself.
28130         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28131         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28132         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28133         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28134         care of mingw bugs.
28135
28136 2009-07-21  Jim Meyering  <meyering@redhat.com>
28137
28138         vc-list-files: avoid failure when /bin/sh is dash
28139         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28140         On some Debian based systems, /bin/sh is a symlink to dash, and running
28141         this command would omit the "/" following each 'tests' prefix:
28142           dash -x build-aux/vc-list-files -C . tests
28143         That is because bash and dash work differently:
28144           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28145           bash ok
28146           dash odd
28147
28148 2009-07-21  Eric Blake  <ebb9@byu.net>
28149
28150         dup2-tests: test previous patch
28151         * modules/dup2-tests: New file.
28152         * tests/test-dup2.c: Likewise.
28153         * tests/test-open.c (main): Avoid unspecified behavior.
28154         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28155         test.
28156
28157         dup2: work around mingw and cygwin 1.5 bug
28158         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28160         * modules/unistd (Makefile.am): Substitute it.
28161         * lib/unistd.in.h (dup2): Declare the replacement.
28162         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28163         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28164         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28165         * modules/execute (Depends-on): Add dup2.
28166         * modules/fseterr (Depends-on): Likewise.
28167         * modules/pipe (Depends-on): Likewise.
28168         * modules/posix_spawn-internal (Depends-on): Likewise.
28169
28170 2009-07-21  Bruno Haible  <bruno@clisp.org>
28171
28172         * modules/.gitattributes: New file.
28173
28174 2009-07-20  Bruno Haible  <bruno@clisp.org>
28175
28176         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28177         (main): Use it.
28178
28179 2009-07-20  Eric Blake  <ebb9@byu.net>
28180
28181         test-pipe: make a bit more robust.
28182         * tests/test-pipe.c (myerr): Allow error messages regardless of
28183         what we do to stderr.
28184         (test_pipe): Rearrange to avoid deadlock.
28185         (child_main): Try a larger read, to ensure we avoided deadlock.
28186         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28187         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28188         if misused.
28189
28190 2009-07-19  Jim Meyering  <meyering@redhat.com>
28191
28192         fts: avoid false-positive cycle-detection
28193         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28194         for each new command line argument.
28195
28196 2009-07-19  Bruno Haible  <bruno@clisp.org>
28197
28198         Fix build error on mingw with the modules sys_select and unistd.
28199         * modules/acl-tests (Depends-on): Add close.
28200         * modules/binary-io-tests (Depends-on): Likewise.
28201         * modules/closein-tests (Depends-on): Likewise.
28202         * modules/flock-tests (Depends-on): Likewise.
28203         * modules/fsync-tests (Depends-on): Likewise.
28204         * modules/lseek-tests (Depends-on): Likewise.
28205         * modules/pipe-tests (Depends-on): Likewise.
28206         * modules/posix_spawn-tests (Depends-on): Likewise.
28207         * modules/posix_spawnp-tests (Depends-on): Likewise.
28208         * modules/stat-time-tests (Depends-on): Likewise.
28209         * modules/yesno-tests (Depends-on): Likewise.
28210
28211 2009-07-19  Bruno Haible  <bruno@clisp.org>
28212
28213         Unify conditionals.
28214         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28215         macros, not at the compiler macros.
28216         * lib/pipe.c: Likewise.
28217         * lib/execute.c: Likewise.
28218         * lib/spawni.c: Likewise.
28219
28220 2009-07-19  Bruno Haible  <bruno@clisp.org>
28221
28222         Fix handling of closed stdin/stdout/stderr on mingw.
28223         * lib/w32spawn.h: Include unistd.h.
28224         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28225         file descriptor with O_NOINHERIT flag.
28226         (fd_safer_noinherit): New function, based on fd-safer.c.
28227         (dup_safer_noinherit): New function, based on dup-safer.c.
28228         (undup_safer_noinherit): New function.
28229         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28230         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28231         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28232         instead of fd_safer.
28233         * tests/test-pipe.c: Include <windows.h>.
28234         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28235         result.
28236
28237         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28238         from main.
28239         (test_pipe): Pass an extra argument for disambiguation.
28240         (main): Invoke parent_main or child_main.
28241
28242         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28243         consistently.
28244
28245 2009-07-18  Eric Blake  <ebb9@byu.net>
28246
28247         test-pipe: fix mingw build
28248         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28249
28250 2009-07-18  Bruno Haible  <bruno@clisp.org>
28251
28252         * modules/pipe-tests (Makefile.am): Fix typo.
28253
28254 2009-07-18  Eric Blake  <ebb9@byu.net>
28255
28256         error: fix mingw build
28257         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28258         Reported by Bruno Haible.
28259
28260         error: avoid undefined use of stdout
28261         * lib/error.c (error, error_at_line): Check that fd 1 is open
28262         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28263         is handling faults and the close_stdout module wants to report the
28264         detection of closed stdout as an error.
28265
28266 2009-07-17  Eric Blake  <ebb9@byu.net>
28267
28268         pipe: be robust in face of closed fds
28269         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28270         should cause child to misbehave.
28271         * modules/pipe-tests: New module.
28272         * tests/test-pipe.c: New file.
28273         * tests/test-pipe.sh: New file.
28274         Reported by Akim Demaille.
28275
28276 2009-07-14  Bruno Haible  <bruno@clisp.org>
28277
28278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28279         Reported by anonymous kc.
28280
28281 2009-07-07  Jim Meyering  <meyering@redhat.com>
28282
28283         maint.mk: don't look for translatable strings in *.m4 or *.mk
28284         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28285         when searching for translatable strings.
28286
28287 2009-07-05  Jim Meyering  <meyering@redhat.com>
28288
28289         remove superfluous parentheses in STREQ definition
28290         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28291         * lib/getugroups.c (STREQ): Likewise.
28292         * lib/fnmatch.c (STREQ): Likewise.
28293         Spotted by Bruno Haible.
28294
28295 2009-07-04  Jim Meyering  <meyering@redhat.com>
28296
28297         argv-iter: new module
28298         * MODULES.html.sh: Add argv-iter.
28299         * lib/argv-iter.c, lib/argv-iter.h: New files.
28300         * modules/argv-iter: New file.
28301         * modules/argv-iter-tests: New file.
28302         * tests/test-argv-iter.c: Test it.
28303
28304 2009-07-04  Bruno Haible  <bruno@clisp.org>
28305
28306         Fix assertion.
28307         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28308         contains more exact copies of a given entry than file2, leave the extra
28309         copies unpaired rather than aborting.
28310         Reported by Eric Blake.
28311
28312 2009-07-02  Bruno Haible  <bruno@clisp.org>
28313
28314         Speedup git-merge-changelog for git cherry-pick.
28315         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28316         (entries_mapping_get): New function, extracted from compute_mapping.
28317         (entries_mapping_reverse_get): New function.
28318         (compute_mapping): Add a 'full' argument. Return the result in a
28319         'struct entries_mapping'.
28320         (main): Update. Access the mappings through entries_mapping_get.
28321         Reported by Eric Blake.
28322
28323 2009-07-02  Bruno Haible  <bruno@clisp.org>
28324
28325         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28326         best_i.
28327
28328 2009-07-02  Bruno Haible  <bruno@clisp.org>
28329
28330         Speed up approximate search for matching ChangeLog entries.
28331         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28332         argument. Call fstrcmp_bounded instead of fstrcmp.
28333         (compute_mapping, try_split_merged_entry, main): Update callers.
28334
28335 2009-07-02  Bruno Haible  <bruno@clisp.org>
28336
28337         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28338
28339 2009-06-30  Bruno Haible  <bruno@clisp.org>
28340
28341         Reduce the number of uc_is_cased calls.
28342         * lib/unicase.h (casing_suffix_context_t): Add
28343         'first_char_except_ignorable' field.
28344         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28345         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28346         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28347         Update initializer.
28348         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28349         case-ignorable characters.
28350         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28351         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28352         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28353         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28354         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28355
28356 2009-06-30  Bruno Haible  <bruno@clisp.org>
28357
28358         Tests for module 'unicase/ignorable'.
28359         * modules/unicase/ignorable-tests: New file.
28360         * tests/unicase/test-ignorable.c: New file, generated by
28361         gen-uni-tables.
28362
28363         Tests for module 'unicase/cased'.
28364         * modules/unicase/cased-tests: New file.
28365         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28366         * tests/unicase/test-predicate-part1.h: New file, derived from
28367         tests/unictype/test-predicate-part1.h.
28368         * tests/unicase/test-predicate-part2.h: New file, same as
28369         tests/unictype/test-predicate-part2.h.
28370
28371         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28372         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28373         (output_casing_properties): New function.
28374         (main): Call it.
28375         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28376         * lib/unicase/cased.c: Include unictype/bitmap.h.
28377         (uc_is_cased): Define through a bitmap lookup.
28378         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28379         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28380         (uc_is_case_ignorable): Define through a bitmap lookup.
28381         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28382         lib/unictype/bitmap.h.
28383         (Depends-on): Add inline. Clean up.
28384         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28385         lib/unictype/bitmap.h.
28386         (Depends-on): Add inline. Clean up.
28387         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28388         recognition.
28389         * tests/unicase/test-u16-tolower.c (main): Likewise.
28390         * tests/unicase/test-u32-tolower.c (main): Likewise.
28391
28392 2009-06-30  Bruno Haible  <bruno@clisp.org>
28393
28394         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28395         * lib/unicase/u16-casemap.c: Likewise.
28396         * lib/unicase/u32-casemap.c: Likewise.
28397
28398 2009-06-29  Bruno Haible  <bruno@clisp.org>
28399
28400         Define u32_casefold as a wrapper around u32_ct_casefold.
28401         * lib/unicase/u32-casefold.c: Update.
28402         * modules/unicase/u32-casefold (Depends-on): Add
28403         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28404         unicase/empty-suffix-context. Clean up.
28405
28406         Define u16_casefold as a wrapper around u16_ct_casefold.
28407         * lib/unicase/u16-casefold.c: Update.
28408         * modules/unicase/u16-casefold (Depends-on): Add
28409         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28410         unicase/empty-suffix-context. Clean up.
28411
28412         Define u8_casefold as a wrapper around u8_ct_casefold.
28413         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28414         * lib/unicase/u8-casefold.c: Update.
28415         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28416         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28417
28418         Define u32_totitle as a wrapper around u32_ct_totitle.
28419         * lib/unicase/u32-totitle.c: Update.
28420         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28421         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28422
28423         Define u16_totitle as a wrapper around u16_ct_totitle.
28424         * lib/unicase/u16-totitle.c: Update.
28425         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28426         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28427
28428         Define u8_totitle as a wrapper around u8_ct_totitle.
28429         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28430         functions.
28431         (FUNC): Delegate to U_CT_TOTITLE.
28432         * lib/unicase/u8-totitle.c: Update.
28433         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28434         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28435
28436         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28437         invocation.
28438         * modules/unicase/u32-tolower (Depends-on): Add
28439         unicase/empty-prefix-context, unicase/empty-suffix-context.
28440
28441         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28442         invocation.
28443         * modules/unicase/u16-tolower (Depends-on): Add
28444         unicase/empty-prefix-context, unicase/empty-suffix-context.
28445
28446         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28447         * modules/unicase/u8-tolower (Depends-on): Add
28448         unicase/empty-prefix-context, unicase/empty-suffix-context.
28449
28450         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28451         invocation.
28452         * modules/unicase/u32-toupper (Depends-on): Add
28453         unicase/empty-prefix-context, unicase/empty-suffix-context.
28454
28455         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28456         invocation.
28457         * modules/unicase/u16-toupper (Depends-on): Add
28458         unicase/empty-prefix-context, unicase/empty-suffix-context.
28459
28460         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28461         * modules/unicase/u8-toupper (Depends-on): Add
28462         unicase/empty-prefix-context, unicase/empty-suffix-context.
28463
28464         New module 'unicase/u32-ct-casefold'.
28465         * lib/unicase/u32-ct-casefold.c: New file.
28466         * modules/unicase/u32-ct-casefold: New file.
28467
28468         New module 'unicase/u16-ct-casefold'.
28469         * lib/unicase/u16-ct-casefold.c: New file.
28470         * modules/unicase/u16-ct-casefold: New file.
28471
28472         New module 'unicase/u8-ct-casefold'.
28473         * lib/unicase/u8-ct-casefold.c: New file.
28474         * lib/unicase/u-ct-casefold.h: New file, derived from
28475         lib/unicase/u-casefold.h.
28476         * modules/unicase/u8-ct-casefold: New file.
28477
28478         New module 'unicase/u32-ct-totitle'.
28479         * lib/unicase/u32-ct-totitle.c: New file.
28480         * modules/unicase/u32-ct-totitle: New file.
28481
28482         New module 'unicase/u16-ct-totitle'.
28483         * lib/unicase/u16-ct-totitle.c: New file.
28484         * modules/unicase/u16-ct-totitle: New file.
28485
28486         New module 'unicase/u8-ct-totitle'.
28487         * lib/unicase/u8-ct-totitle.c: New file.
28488         * lib/unicase/u-ct-totitle.h: New file, derived from
28489         lib/unicase/u-totitle.h.
28490         * modules/unicase/u8-ct-totitle: New file.
28491
28492         New module 'unicase/u32-ct-tolower'.
28493         * lib/unicase/u32-ct-tolower.c: New file.
28494         * modules/unicase/u32-ct-tolower: New file.
28495
28496         New module 'unicase/u16-ct-tolower'.
28497         * lib/unicase/u16-ct-tolower.c: New file.
28498         * modules/unicase/u16-ct-tolower: New file.
28499
28500         New module 'unicase/u8-ct-tolower'.
28501         * lib/unicase/u8-ct-tolower.c: New file.
28502         * modules/unicase/u8-ct-tolower: New file.
28503
28504         New module 'unicase/u32-ct-toupper'.
28505         * lib/unicase/u32-ct-toupper.c: New file.
28506         * modules/unicase/u32-ct-toupper: New file.
28507
28508         New module 'unicase/u16-ct-toupper'.
28509         * lib/unicase/u16-ct-toupper.c: New file.
28510         * modules/unicase/u16-ct-toupper: New file.
28511
28512         New module 'unicase/u8-ct-toupper'.
28513         * lib/unicase/u8-ct-toupper.c: New file.
28514         * modules/unicase/u8-ct-toupper: New file.
28515
28516         Add context arguments to u*_casemap functions.
28517         * lib/unicase/unicasemap.h: Include unicase.h.
28518         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28519         suffix_context arguments.
28520         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28521         functions.
28522         (FUNC): Add prefix_context and suffix_context arguments. Use
28523         uc_is_cased and uc_is_case_ignorable.
28524         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28525         * lib/unicase/u16-casemap.c: Likewise.
28526         * lib/unicase/u32-casemap.c: Likewise.
28527         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28528         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28529         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28530         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28531         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28532         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28533
28534         New module 'unicase/u32-suffix-context'.
28535         * lib/unicase/u32-suffix-context.c: New file.
28536         * modules/unicase/u32-suffix-context: New file.
28537
28538         New module 'unicase/u16-suffix-context'.
28539         * lib/unicase/u16-suffix-context.c: New file.
28540         * modules/unicase/u16-suffix-context: New file.
28541
28542         New module 'unicase/u8-suffix-context'.
28543         * lib/unicase/u8-suffix-context.c: New file.
28544         * lib/unicase/u-suffix-context.h: New file.
28545         * modules/unicase/u8-suffix-context: New file.
28546
28547         New module 'unicase/empty-suffix-context'.
28548         * lib/unicase/empty-suffix-context.c: New file.
28549         * modules/unicase/empty-suffix-context: New file.
28550
28551         New module 'unicase/u32-prefix-context'.
28552         * lib/unicase/u32-prefix-context.c: New file.
28553         * modules/unicase/u32-prefix-context: New file.
28554
28555         New module 'unicase/u16-prefix-context'.
28556         * lib/unicase/u16-prefix-context.c: New file.
28557         * modules/unicase/u16-prefix-context: New file.
28558
28559         New module 'unicase/u8-prefix-context'.
28560         * lib/unicase/u8-prefix-context.c: New file.
28561         * lib/unicase/u-prefix-context.h: New file.
28562         * lib/unicase/context.h: New file.
28563         * modules/unicase/u8-prefix-context: New file.
28564
28565         New module 'unicase/empty-prefix-context'.
28566         * lib/unicase/empty-prefix-context.c: New file.
28567         * modules/unicase/empty-prefix-context: New file.
28568
28569         New module 'unicase/ignorable'.
28570         * lib/unicase/ignorable.c: New file.
28571         * modules/unicase/ignorable: New file.
28572
28573         New module 'unicase/cased'.
28574         * lib/unicase/caseprop.h: New file.
28575         * lib/unicase/cased.c: New file.
28576         * modules/unicase/cased: New file.
28577
28578         New functions for case mapping of substrings.
28579         * lib/unicase.h (casing_prefix_context_t): New type.
28580         (unicase_empty_prefix_context): New variable.
28581         (u8_casing_prefix_context, u16_casing_prefix_context,
28582         u32_casing_prefix_context, u8_casing_prefixes_context,
28583         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28584         declarations.
28585         (casing_suffix_context_t): New type.
28586         (unicase_empty_suffix_context): New variable.
28587         (u8_casing_suffix_context, u16_casing_suffix_context,
28588         u32_casing_suffix_context, u8_casing_suffixes_context,
28589         u16_casing_suffixes_context, u32_casing_suffixes_context,
28590         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28591         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28592         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28593         declarations.
28594
28595 2009-06-28  Jim Meyering  <meyering@redhat.com>
28596
28597         boostrap: indent only with spaces
28598         * build-aux/bootstrap: Indent only with spaces, never TABs.
28599
28600         bootstrap: split long lines
28601         * build-aux/bootstrap: Keep line length < 80.
28602
28603         bootstrap: sync from coreutils
28604         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28605         just as autoreconf does.  Verify a list of prerequisite
28606         package-name,version-number pairs if defined in bootstrap.conf.
28607         Refer to README-prereq, if prerequisites are not satisfied.
28608
28609 2009-06-27  Eric Blake  <ebb9@byu.net>
28610
28611         tests: add test for bogus NULL definition
28612         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28613         * tests/test-stdlib.c: Likewise.
28614         * tests/test-string.c: Likewise.
28615         * tests/test-locale.c: Likewise.
28616         * tests/test-unistd.c: Likewise.
28617         * modules/stdio-tests (Depends-on): Add verify.
28618         * modules/stdlib-tests (Depends-on): Likewise.
28619         * modules/string-tests (Depends-on): Likewise.
28620         * modules/locale-tests (Depends-on): Likewise.
28621         * modules/unistd-tests (Depends-on): Likewise.
28622
28623 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28624
28625         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28626         self-explaining comment.
28627         * m4/selinux-selinux-h: Update serial.
28628         (gl_LIBSELINUX): New macro, adding a warning for missing development
28629         packages to code extracted from...
28630         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28631         Add warning for missing development packages here, too.
28632
28633 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28634
28635         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28636
28637 2009-06-25  Eric Blake  <ebb9@byu.net>
28638
28639         version-etc: fix regression
28640         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28641         gcc.
28642         (version_etc): Use it, to catch bugs with trailing NULL.
28643         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28644         (version_etc_va): Fix logic bug.
28645         * modules/version-etc-tests: Add test.
28646         * tests/test-version-etc.c: New file.
28647         * tests/test-version-etc.sh: Likewise.
28648
28649 2009-06-25  Sam Steingold  <sds@gnu.org>
28650
28651         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28652         mbtowc declaration.
28653
28654 2009-06-25  Eric Blake  <ebb9@byu.net>
28655
28656         fpurge: migrate into <stdio.h>
28657         * lib/fpurge.h: Delete...
28658         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28659         * lib/fpurge.c (fpurge): Change declaring header.
28660         * modules/fpurge (Files): Drop deleted file.
28661         (Depends-on): Add stdio.
28662         (configure.ac): Set witness.
28663         * modules/stdio (Makefile.am): Support fpurge macros.
28664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28665         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28666         * lib/fflush.c: Update client.
28667         * tests/test-fpurge.c: Likewise.
28668         * NEWS: Mention the change.
28669
28670 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28671
28672         * lib/argp-version-etc.c (program_authors): Add const
28673         qualifier.
28674         * lib/version-etc.c: Fix typos in the comments.
28675         * modules/argp-version-etc: Depends on version-etc.
28676
28677 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28678
28679         argp-version-etc: new module.
28680
28681         * lib/argp-version-etc.c: New file.
28682         * lib/argp-version-etc.h: New file.
28683         * modules/argp-version-etc: New file.
28684         * modules/argp-version-etc-tests: New file.
28685         * tests/test-argp-version-etc.c: New test.
28686         * tests/test-argp-version-etc-1.sh: New test.
28687
28688 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28689
28690         Provide additional interfaces and documentation for version-etc
28691         module.
28692
28693         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28694         interfaces.
28695         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28696         prototypes.
28697
28698 2009-06-24  Bruno Haible  <bruno@clisp.org>
28699
28700         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28701         HAVE_LIB${NAME} macro.
28702         Reported by Sam Steingold <sds@gnu.org>.
28703
28704 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28705
28706         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28707         needed.
28708
28709 2009-06-21  Bruno Haible  <bruno@clisp.org>
28710
28711         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28712         work.
28713         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28714         together with LIB${NAME}, LTLIB${NAME}.
28715         Reported by Sam Steingold <sds@gnu.org>.
28716
28717 2009-06-20  Jim Meyering  <meyering@redhat.com>
28718
28719         tests: make sc_require_test_exit_idiom more generic
28720         * top/maint.mk (Exit_witness_file): New overridable variable.
28721         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28722         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28723
28724 2009-06-19  Jim Meyering  <meyering@redhat.com>
28725
28726         hash: reverse order of src/dst parameters in an internal interface
28727         * lib/hash.c (transfer_entries): Reverse order of parameters to
28728         put DST before SRC.  Adjust callers.
28729
28730         tests: test-hash: avoid wholesale duplication
28731         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28732         Instead, use a loop and add a single conditional.
28733
28734         tests: test-hash: allow seed selection via a command line argument
28735         * tests/test-hash.c (get_seed): New function.
28736         (main): Use it.
28737
28738 2009-06-19  Eric Blake  <ebb9@byu.net>
28739
28740         hash: avoid memory leak on allocation failure
28741         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28742         failure.  Factor repeated algorithm...
28743         (transfer_entries): ...into new helper routine.
28744         (hash_delete): React to hash_rehash return value.
28745
28746         hash: reduce memory pressure in hash_rehash no-op case
28747         * lib/hash.c (next_prime): Avoid overflow.
28748         (hash_initialize): Factor bucket size computation...
28749         (compute_bucket_size): ...into new helper function.
28750         (hash_rehash): Use new function and open coding to reduce memory
28751         pressure, and avoid a memory leak in USE_OBSTACK code.
28752         Reported by Jim Meyering.
28753
28754 2009-06-18  Eric Blake  <ebb9@byu.net>
28755
28756         hash: make rotation more obvious
28757         * modules/hash (Depends-on): Add bitrotate and stdint.
28758         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28759         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28760         (SIZE_MAX): Rely on headers for definition.
28761         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28762         (raw_hasher): Use rotr_sz.
28763         Suggested by Jim Meyering.
28764
28765         hash: fix memory leak in last patch
28766         * lib/hash.c (hash_rehash): Avoid memory leak.
28767
28768         hash: avoid no-op rehashing
28769         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28770
28771         hash: provide default callback functions
28772         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28773         (hash_initialize): Use them as defaults.
28774         * tests/test-hash.c (main): Test this.
28775
28776         hash: minor optimization
28777         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28778         when possible.
28779         (hash_initialize): Document this promise.
28780         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28781         * tests/test-hash.c (hash_compare_strings): Test this.
28782
28783 2009-06-18  Bruno Haible  <bruno@clisp.org>
28784
28785         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28786         going to be replaced anyway.
28787
28788 2009-06-18  Bruno Haible  <bruno@clisp.org>
28789
28790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28791         in one place.
28792         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28793         be replaced anyway.
28794
28795 2009-06-18  Eric Blake  <ebb9@byu.net>
28796
28797         hash: check for resize before insertion
28798         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28799         threshold before insertion, so that a pathological hash_rehash
28800         that fills every bucket can still trigger another rehash.
28801
28802 2009-06-18  Jim Meyering  <meyering@redhat.com>
28803
28804         hash-tests: add a loop around the small tests
28805         * tests/test-hash.c (main): Repeat small tests with selected
28806         small initial table sizes.
28807
28808 2009-06-17  Eric Blake  <ebb9@byu.net>
28809
28810         hash: minor cleanups
28811         * lib/hash.h (hash_entry): Make opaque, by moving...
28812         * lib/hash.c (hash_entry): ...here.
28813         (hash_insert): Clarify restrictions on what can be inserted.
28814         (hash_get_next): Clarify when it is safe to remove an element
28815         during traversal.
28816         (check_tuning): Skip verification when tuning is known safe.
28817         (hash_initialize): Clarify restrictions on tuning.
28818
28819 2009-06-17  Jim Meyering  <jim@meyering.net>
28820         and Eric Blake  <ebb9@byu.net>
28821
28822         hash-tests: new module
28823         * modules/hash-tests: New file.
28824         * tests/test-hash.c: New file.
28825
28826 2009-06-17  Eric Blake  <ebb9@byu.net>
28827
28828         strstr-simple: document new module
28829         * MODULES.html.sh: Document new module.
28830
28831         strstr, strcasestr: replace on platforms with broken memchr
28832         * modules/strstr: Split into...
28833         * modules/strstr-simple: ...new module that does not care about
28834         performance, but does care about glibc bug.
28835         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28836         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28837         if platform memchr is broken, per Debian bug 521737.
28838         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28839         memchr.
28840         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28841         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28842         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28843         * modules/mountlist (Depends-on): Add strstr-simple.
28844         * modules/gen-uni-tables (Depends-on): Likewise.
28845         * modules/argz (Depends-on): Add strstr.
28846
28847 2009-06-17  Bruno Haible  <bruno@clisp.org>
28848
28849         * modules/posix_spawn-internal (Depends-on): Add errno.
28850
28851 2009-06-17  Bruno Haible  <bruno@clisp.org>
28852
28853         Define missing ESTALE on Interix 3.5.
28854         * lib/errno.in.h (ESTALE): Assign a value if missing.
28855         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28856         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28857         missing.
28858         * doc/posix-headers/errno.texi: Mention the Interix bug.
28859         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28860
28861 2009-06-15  Eric Blake  <ebb9@byu.net>
28862
28863         memchr, memchr2: add valgrind exception
28864         * lib/memchr.valgrind: New file.
28865         * lib/memchr2.valgrind: New file.
28866         * modules/memchr (Files): Distribute valgrind file.
28867         * modules/memchr2 (Files): Likewise.
28868
28869         docs: memchr is no longer obsolete
28870         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28871         * lib/string.in.h (memchr): Simplify logic.
28872
28873 2009-06-14  Jim Meyering  <meyering@redhat.com>
28874
28875         link-follow: fix the "checking..." message to not mention trailing slash
28876         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28877         never considered trailing slashes.
28878
28879 2009-06-14  Bruno Haible  <bruno@clisp.org>
28880
28881         * m4/memchr.m4: Mention also the bug on IA-64.
28882         * doc/posix-functions/memchr.texi: Likewise.
28883
28884 2009-06-12  Eric Blake  <ebb9@byu.net>
28885
28886         memchr: detect broken x86_64 and alpha implementations
28887         * modules/memchr-tests (Depends-on): Move mmap detection...
28888         * modules/memchr (Depends-on): ...here.
28889         (configure.ac): Set indicator.
28890         * lib/string.in.h (memchr): Declare replacement.
28891         * modules/string (Makefile.am): Trigger replacement.
28892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28893         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28894         bugs.
28895         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28896         * modules/getpagesize (License): Relax license.
28897
28898 2009-06-11  Bruno Haible  <bruno@clisp.org>
28899
28900         * lib/idpriv.h: Add more references.
28901
28902 2009-06-08  Bruno Haible  <bruno@clisp.org>
28903
28904         Tests for module 'idpriv-droptemp'.
28905         * modules/idpriv-droptemp-tests: New file.
28906         * tests/test-idpriv-droptemp.sh: New file.
28907         * tests/test-idpriv-droptemp.su.sh: New file.
28908         * tests/test-idpriv-droptemp.c: New file.
28909
28910         New module 'idpriv-droptemp'.
28911         * lib/idpriv-droptemp.c: New file.
28912         * modules/idpriv-droptemp: New file.
28913
28914 2009-06-08  Bruno Haible  <bruno@clisp.org>
28915
28916         Tests for module 'idpriv-drop'.
28917         * modules/idpriv-drop-tests: New file.
28918         * tests/test-idpriv-drop.sh: New file.
28919         * tests/test-idpriv-drop.su.sh: New file.
28920         * tests/test-idpriv-drop.c: New file.
28921
28922         New module 'idpriv-drop'.
28923         * lib/idpriv.h: New file.
28924         * lib-idpriv-drop.c: New file.
28925         * m4/idpriv.m4: New file.
28926         * modules/idpriv-drop: New file.
28927
28928 2009-06-08  Bruno Haible  <bruno@clisp.org>
28929
28930         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28931         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28932         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28933         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28934         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28935         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28936         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28937
28938 2009-06-08  Eric Blake  <ebb9@byu.net>
28939
28940         test-strstr: use memory fence, when possible
28941         * tests/test-strstr.c (main): Use memory fence, in order to be
28942         more likely to trigger Debian bug 521737.
28943         * modules/strstr-tests (Files): Pull in additional files.
28944
28945         memchr: no longer obsolete, for wider field testing
28946         * modules/memchr (Status, Notice): Delete, this module is no
28947         longer obsolete.
28948         * modules/vasnprintf (Depends-on): Add memchr.
28949
28950 2009-06-07  Jim Meyering  <meyering@redhat.com>
28951
28952         hash: declare some functions with the warn_unused_result attribute
28953         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28954
28955 2009-06-07  Bruno Haible  <bruno@clisp.org>
28956
28957         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28958         Reported by Eric Blake.
28959
28960 2009-06-06  Eric Blake  <ebb9@byu.net>
28961
28962         test-alignof: fix typo with long double
28963         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28964         compiler error.
28965
28966 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28967
28968         Escape non-texinfo { and }s.
28969         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28970         markup error.
28971
28972 2009-06-04  Jim Meyering  <meyering@redhat.com>
28973
28974         gitlog-to-changelog: don't infloop on an empty commit log
28975         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28976         Reported by Boris Petersen <transacid@centerim.org>.
28977
28978 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28979
28980         version-etc: extend for packagers
28981         Add three new configure options, intended for packagers:
28982           --with-packager="packager name"
28983           --with-packager-version="packager-specific version"
28984           --with-packager-bug-reports="packager bug reporting"
28985         An example with coreutils:
28986           $ ./configure \
28987             --with-packager=Gentoo \
28988             --with-packager-bug-report=http://bugs.gentoo.org/ \
28989             --with-packager-version="patchset 1.6"
28990           $ ./src/ls --version | head -n2
28991           ls (GNU coreutils) 7.1-dirty
28992           Packaged by Gentoo (patchset 1.6)
28993         Note that the bug reporting info via --help doesn't show up because
28994         coreutils uses its own custom emit_bug_reporting_address() implementation
28995         in src/system.h.  If it didn't, it'd look like:
28996           $ ./src/ls --help | tail -n4
28997           Report bugs to <bug-coreutils@gnu.org>.
28998           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28999           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29000           General help using GNU software: <http://www.gnu.org/gethelp/>.
29001         * lib/version-etc.c: Print new information, if provided.
29002         * m4/version-etc.m4: New file.
29003         * modules/version-etc (Files): Add m4/version-etc.m4.
29004         (configure.ac): Add gl_VERSION_ETC.
29005
29006 2009-05-31  Bruno Haible  <bruno@clisp.org>
29007
29008         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29009         and 'int64_t'.
29010         * modules/alignof-tests (Dependencies): Add stdint.
29011         Reported by Eric Blake.
29012
29013 2009-05-31  Bruno Haible  <bruno@clisp.org>
29014
29015         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29016         restriction due to compiler bugs.
29017         Reported by Eric Blake.
29018
29019 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29020             Bruno Haible  <bruno@clisp.org>
29021
29022         Fix test-alignof failure.
29023         * lib/alignof.h (alignof_slot): New macro.
29024         (alignof_type): New macro, with the same semantics as the previous
29025         'alignof'.
29026         (alignof): Alias to alignof_slot.
29027         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29028         check that the results are usable as constant expressions.
29029
29030 2009-05-31  Bruno Haible  <bruno@clisp.org>
29031
29032         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29033         * tests/test-memchr.c (main): Check that memchr does not read past the
29034         first occurrence of the byte.
29035         * tests/test-strstr.c (main): Update comment.
29036         Suggested by Eric Blake.
29037
29038 2009-05-30  Bruno Haible  <bruno@clisp.org>
29039
29040         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29041         detail how to use dumpbin.
29042         Reported by David Byron <dbyron@dbyron.com>.
29043
29044 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29045
29046         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29047
29048 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29049
29050         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29051
29052 2009-05-28  Bruno Haible  <bruno@clisp.org>
29053
29054         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29055         build-aux/ files.
29056
29057 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29058
29059         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29060
29061 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29062
29063         * gnulib-tool (sed_transform_main_lib_file)
29064         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29065         regexps.
29066
29067 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29068
29069         * tests/test-strstr.c: Add another self-test.
29070         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29071         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29072
29073 2009-05-23  Bruno Haible  <bruno@clisp.org>
29074
29075         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29076         change.
29077
29078 2009-05-21  Bruno Haible  <bruno@clisp.org>
29079
29080         Simplify use of mode_t varargs.
29081         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29082         uses 'mode_t' or 'int'.
29083         * lib/openat.c (openat): Likewise.
29084         * lib/open-safer.c (open_safer): Likewise.
29085         * m4/mode_t.m4: New file.
29086         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29087         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29088         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29089         * modules/open (Files): Add m4/mode_t.m4.
29090         * modules/openat (Files): Likewise.
29091         * modules/fcntl-safer (Files): Likewise.
29092         Suggested by Eric Blake.
29093
29094 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29095
29096         * doc/glibc-functions/fallocate.texi: New file.
29097         * doc/gnulib.texi: Include it.
29098
29099 2009-05-21  Eric Blake  <ebb9@byu.net>
29100             Bruno Haible  <bruno@clisp.org>
29101
29102         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29103         invocations.
29104         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29105
29106 2009-05-21  Eric Blake  <ebb9@byu.net>
29107             Bruno Haible  <bruno@clisp.org>
29108
29109         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29110         include_next. Fix of 2008-11-20 commit.
29111         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29112         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29113         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29114         NEXT_MATH_H.
29115         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29116         instead of NEXT_MATH_H.
29117
29118 2009-05-21  Bruno Haible  <bruno@clisp.org>
29119
29120         Avoid redefinition warnings for SIZE_MAX.
29121         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29122         Reported by Simon Josefsson.
29123
29124 2009-05-21  Bruno Haible  <bruno@clisp.org>
29125
29126         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29127         AC_CACHE_VAL.
29128
29129 2009-05-20  Bruno Haible  <bruno@clisp.org>
29130
29131         Make zeroptr.h work on mingw.
29132         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29133         mprotect.
29134         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29135         * modules/memchr2-tests (configure.ac): Likewise.
29136         * modules/memcmp-tests (configure.ac): Likewise.
29137         * modules/memmem-tests (configure.ac): Likewise.
29138         * modules/memrchr-tests (configure.ac): Likewise.
29139         Reported by Simon Josefsson.
29140
29141 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29142
29143         * tests/test-glob.c: Include string.h for strcmp prototype.
29144
29145 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29146
29147         * modules/getdelim (Depends-on): Add explicit stdint, although it
29148         was implicitly already pulled in via realloc-posix.
29149         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29150
29151 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29152
29153         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29154         G. Christensen" <tgc@jupiterrise.com>.
29155         * m4/sys_socket_h.m4: Check for sa_family_t.
29156         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29157         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29158         * tests/test-sys_socket.c: Check that sa_family_t works.
29159
29160 2009-05-18  Eric Blake  <ebb9@byu.net>
29161
29162         maint.mk: allow gnulib_dir in VPATH build
29163         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29164
29165 2009-05-15  Jim Meyering  <meyering@redhat.com>
29166
29167         maint.mk: Give gnulib_dir a default definition.
29168         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29169         Thus, most packages no longer need to specify this variable in cfg.mk
29170
29171 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29172
29173         rename.m4: fix typos that would make non-mingw cross-configure fail
29174         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29175
29176 2009-05-13  Eric Blake  <ebb9@byu.net>
29177
29178         mmap-anon: avoid out-of-order autoconf expansion
29179         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29180         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29181         * modules/memchr-tests (Depends-on): Add extensions.
29182         * modules/memchr2-tests (Depends-on): Add extensions.
29183         * modules/memcmp-tests (Depends-on): Add extensions.
29184         * modules/memmem-tests (Depends-on): Add extensions.
29185         * modules/memrchr-tests (Depends-on): Add extensions.
29186
29187 2009-05-13  Bruno Haible  <bruno@clisp.org>
29188
29189         Make some tests ISO C 99 compliant.
29190         * tests/zerosize-ptr.h: New file.
29191         * tests/test-memchr.c: Include zerosize-ptr.h.
29192         (main): Use a zero-size object pointer instead of NULL.
29193         * tests/test-memchr2.c: Include zerosize-ptr.h.
29194         (main): Use a zero-size object pointer instead of NULL.
29195         * tests/test-memcmp.c: Include zerosize-ptr.h.
29196         (main): Use a zero-size object pointer instead of NULL.
29197         * tests/test-memmem.c: Include zerosize-ptr.h.
29198         (main): Use a zero-size object pointer instead of NULL.
29199         * tests/test-memrchr.c: Include zerosize-ptr.h.
29200         (main): Use a zero-size object pointer instead of NULL.
29201         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29202         m4/mmap-anon.m4.
29203         (Depends-on): Add getpagesize.
29204         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29205         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29206         m4/mmap-anon.m4.
29207         (Depends-on): Add getpagesize.
29208         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29209         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29210         m4/mmap-anon.m4.
29211         (Depends-on): Add getpagesize.
29212         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29213         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29214         m4/mmap-anon.m4.
29215         (Depends-on): Add getpagesize.
29216         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29217         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29218         m4/mmap-anon.m4.
29219         (Depends-on): Add getpagesize.
29220         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29221
29222 2009-05-12  Bruno Haible  <bruno@clisp.org>
29223
29224         Tests for module 'alignof'.
29225         * modules/alignof-tests: New file.
29226         * tests/test-alignof.c: New file.
29227
29228 2009-05-12  Bruno Haible  <bruno@clisp.org>
29229
29230         Fix alignof macro.
29231         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29232         vendor compilers that are always correct.
29233
29234 2009-05-12  Bruno Haible  <bruno@clisp.org>
29235
29236         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29237         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29238         not whether its fully works.
29239
29240 2009-05-12  Bruno Haible  <bruno@clisp.org>
29241
29242         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29243
29244 2009-05-12  Jim Meyering  <meyering@redhat.com>
29245
29246         * top/maint.mk: Adjust backslash alignment.
29247
29248 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29249
29250         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29251
29252 2009-05-11  Eric Blake  <ebb9@byu.net>
29253
29254         argp: avoid undefined behavior
29255         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29256         macros.
29257
29258 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29259
29260         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29261         user.name to prevent git commit from complaining.
29262
29263 2009-05-10  Bruno Haible  <bruno@clisp.org>
29264
29265         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29266         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29267         it rewrites every file name only once.
29268         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29269
29270 2009-05-08  Bruno Haible  <bruno@clisp.org>
29271
29272         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29273         instead of 'max'.
29274
29275 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29276
29277         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29278         sockaddr_storage test.
29279
29280 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29281
29282         * modules/sys_socket (Makefile.am): Substitute
29283         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29284         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29285         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29286         * tests/test-sys_socket.c: Check sockaddr_storage.
29287
29288 2009-05-08  Bruno Haible  <bruno@clisp.org>
29289
29290         New module 'alignof'.
29291         * lib/alignof.h: New file.
29292         * modules/alignof: New file.
29293
29294 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29295             Bruno Haible  <bruno@clisp.org>
29296
29297         Fix test-file-has-acl on FreeBSD.
29298         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29299         mask is implicitly added.
29300         * tests/test-file-has-acl.c: Include <signal.h>.
29301         (main): Terminate the test after 5 seconds.
29302         * modules/acl-tests (configure.ac): Check for alarm function.
29303
29304 2009-05-04  Bruno Haible  <bruno@clisp.org>
29305
29306         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29307         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29308         * modules/errno (configure.ac): Drop AC_REQUIRE.
29309         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29310         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29311
29312 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29313
29314         * modules/glob-tests: New module.
29315         * tests/test-glob.c: Add.
29316
29317 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29318
29319         * modules/fnmatch-tests: New module.
29320         * tests/test-fnmatch.c: Add.
29321
29322 2009-05-04  Eric Blake  <ebb9@byu.net>
29323
29324         maint: make the new no-submodule-changes rule VPATH-safe
29325         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29326
29327 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29328             Bruno Haible  <bruno@clisp.org>
29329
29330         acl: Fix infinite loop on FreeBSD.
29331         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29332         of return value from acl_get_entry.
29333         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29334         Likewise.
29335
29336 2009-05-03  Bruno Haible  <bruno@clisp.org>
29337
29338         * lib/acl-internal.h (acl_entries): Clarify return value.
29339         * lib/acl_entries.c (acl_entries): Likewise.
29340
29341 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29342
29343         Bug fix in acl module.
29344         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29345
29346 2009-05-03  Bruno Haible  <bruno@clisp.org>
29347
29348         Create gperf-generated file in the source dir, not in the build dir.
29349         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29350         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29351         * modules/unicase/locale-language (unicase/locale-languages.h):
29352         Likewise.
29353         * modules/unicase/special-casing (unicase/special-casing-table.h):
29354         Likewise.
29355         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29356         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29357         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29358         Reported by Ralf Wildenhues.
29359
29360 2009-05-03  Bruno Haible  <bruno@clisp.org>
29361
29362         * modules/fnmatch (Description, configure.ac): Taken from
29363         fnmatch-posix.
29364         * modules/fnmatch-posix: Turn into a symbolic reference to the
29365         'fnmatch' module, and deprecate.
29366         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29367
29368 2009-05-03  Bruno Haible  <bruno@clisp.org>
29369
29370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29371         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29372         Reported by Ralf Wildenhues.
29373
29374 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29375
29376         * m4/fnmatch.m4: Fix fnmatch re-define.
29377
29378 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29379
29380         priv-set: new module and tests; adapt write-any-file
29381         * lib/priv-set.c: New file.
29382         * lib/priv-set.h: New file.
29383         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29384         * lib/write-any-file.c: Simplify by using priv-set module.
29385         * m4/priv-set.m4: New file.
29386         * modules/priv-set: New file.
29387         * modules/unlinkdir: Add dependency on priv-set module.
29388         * modules/write-any-file: Likewise.
29389
29390         Tests for module 'priv-set'.
29391         * modules/priv-set-tests: New file.
29392         * tests/test-priv-set.c: New file.
29393
29394 2009-05-03  Jim Meyering  <meyering@redhat.com>
29395             Bruno Haible  <bruno@clisp.org>
29396
29397         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29398         use the converted UTF-8 variant of the name instead.
29399
29400 2009-05-03  Jim Meyering  <meyering@redhat.com>
29401
29402         tests: tighten some getdate tests
29403         * tests/test-getdate.c (main): Tighten tests: require equality,
29404         not just greater than.  Set TZ envvar to UTC0.
29405
29406 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29407
29408         getdate: correctly interpret "next monday" when run on a Monday
29409         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29410         that e.g., "next tues" (when run on a tuesday) results in a date
29411         that is one week in the future, and not today's date.
29412         I.e., add a week when the wday is the same as the current one.
29413         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29414         and earlier by Martin Bernreuther and Jan Minář.
29415         * tests/test-getdate.c (main): Check that "next DAY" is always in
29416         the future and that "last DAY" is always in the past.
29417
29418 2009-05-02  Jim Meyering  <meyering@redhat.com>
29419
29420         build: ensure that a release build fails when a submodule is unclean
29421         * top/maint.mk (no-submodule-changes): New rule.
29422         (alpha beta major): Depend on it.
29423
29424 2009-05-02  Bruno Haible  <bruno@clisp.org>
29425
29426         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29427         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29428         shell variable gl_fnmatch_required to detect which variant is
29429         requested.
29430         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29431         gl_FUNC_FNMATCH_POSIX.
29432         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29433         exclude fnmatch-posix.
29434
29435 2009-05-02  Bruno Haible  <bruno@clisp.org>
29436
29437         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29438         * modules/mbsrtowcs (License): Change to LGPLv2+.
29439         * modules/strnlen1 (License): Likewise.
29440         Reported by Simon Josefsson.
29441
29442 2009-05-02  Bruno Haible  <bruno@clisp.org>
29443
29444         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29445         "cross".
29446         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29447         gnulib-tool was called with option --source-base=lib.
29448
29449 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29450
29451         Use automake *-local hooks without commands, for extensibility.
29452         * modules/localcharset (Makefile.am): Rename install-exec-local
29453         rule to install-exec-localcharset, and make it a prerequisite of
29454         install-exec-local.  Likewise, rename the uninstall-local rule to
29455         uninstall-localcharset, and make it a prerequisite of the former.
29456
29457 2009-05-01  Bruno Haible  <bruno@clisp.org>
29458
29459         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29460         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29461         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29463         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29464         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29465         m4/locale-zh.m4, m4/codeset.m4.
29466
29467         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29468         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29469         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29470         m4/locale-zh.m4.
29471
29472         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29473         REPLACE_WCRTOMB if mbstate_t must be replaced.
29474         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29475         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29476
29477 2009-05-01  Bruno Haible  <bruno@clisp.org>
29478
29479         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29480         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29481         dngettext, dcngettext, textdomain, bindtextdomain,
29482         bind_textdomain_codeset): Undefine before redefining.
29483
29484 2009-04-30  Bruno Haible  <bruno@clisp.org>
29485
29486         Fix bug introduced on 2009-04-25.
29487         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29488         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29489         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29490         is defined.
29491         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29492         is defined.
29493         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29494         is defined.
29495         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29496
29497 2009-04-28  Bruno Haible  <bruno@clisp.org>
29498
29499         Comment tweaks.
29500         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29501         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29502         * lib/unicase.h (u*_casexfrm): Likewise.
29503         Reported by Paolo Bonzini.
29504
29505 2009-04-28  Bruno Haible  <bruno@clisp.org>
29506
29507         Fix a compilation error.
29508         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29509         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29510         Reported by Jim Meyering.
29511
29512 2009-04-27  Bruno Haible  <bruno@clisp.org>
29513
29514         New module 'libunistring'.
29515         * modules/libunistring: New file.
29516         * m4/libunistring.m4: New file.
29517         * MODULES.html.sh (Unicode string functions): Add it.
29518
29519 2009-04-27  Eric Blake  <ebb9@byu.net>
29520
29521         maint.mk: allow package-specific header to provide <config.h>
29522         * top/maint.mk (sc_require_config_h): New variable.
29523         (sc_require_config_h, sc_require_config_h_first): Use it.
29524
29525 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29526
29527         * top/maint.mk (sc_avoid_if_before_free): Except
29528         useless-if-before-free script.
29529
29530 2009-04-27  Eric Blake  <ebb9@byu.net>
29531
29532         maintainer-makefile: depend on all required helper scripts
29533         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29534         useless-if-before-free.
29535         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29536         version, rather than assuming gnulib checkout is available.
29537         Reported by Simen Josefsson.
29538
29539 2009-04-26  Bruno Haible  <bruno@clisp.org>
29540
29541         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29542         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29543         "../" or "..".
29544
29545 2009-04-26  Bruno Haible  <bruno@clisp.org>
29546
29547         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29548         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29549         AC_LIB_HAVE_LINKFLAGS.
29550
29551 2009-04-26  Bruno Haible  <bruno@clisp.org>
29552
29553         Simplify calling convention of u*_conv_from_encoding.
29554         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29555         u32_conv_from_encoding): Expect a resultbuf argument and return the
29556         result directly as a pointer.
29557         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29558         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29559         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29560         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29561         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29562         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29563         Update.
29564         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29565         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29566         * lib/vasnprintf.c (VASNPRINTF): Update.
29567         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29568         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29569         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29570         * NEWS: Mention the change.
29571
29572 2009-04-26  Bruno Haible  <bruno@clisp.org>
29573
29574         Simplify calling convention of u*_conv_to_encoding.
29575         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29576         u32_conv_to_encoding): Expect a resultbuf argument and return the
29577         result directly as a pointer.
29578         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29579         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29580         freeing scaled_offsets if mem_iconveha failed.
29581         * lib/unicase/u-casexfrm.h (FUNC): Update.
29582         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29583         * lib/vasnprintf.c (VASNPRINTF): Update.
29584         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29585         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29586         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29587         * NEWS: Mention the change.
29588
29589 2009-04-26  Bruno Haible  <bruno@clisp.org>
29590
29591         Avoid test failures on AIX and OSF/1.
29592         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29593         malloc(0).
29594         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29595         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29596         Likewise.
29597         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29598         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29599         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29600         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29601         * doc/posix-functions/malloc.texi: Document the portability problem
29602         related to malloc(0).
29603
29604 2009-04-26  Bruno Haible  <bruno@clisp.org>
29605
29606         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29607         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29608         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29609
29610 2009-04-25  Bruno Haible  <bruno@clisp.org>
29611
29612         Avoid link error when creating a namespace clean library.
29613         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29614         as macro with arguments if already defined as an alias.
29615         * lib/signbitf.c (gl_signbitf): Don't undefine.
29616         * lib/signbitd.c (gl_signbitd): Don't undefine.
29617         * lib/signbitl.c (gl_signbitl): Don't undefine.
29618
29619 2009-04-25  Jim Meyering  <meyering@redhat.com>
29620
29621         vc-list-files: fix another quoting bug
29622         * build-aux/vc-list-files: Avoid sed backslash expansion
29623         of pathological directory names.
29624
29625 2009-04-25  Eric Blake  <ebb9@byu.net>
29626
29627         vc-list-files: fix shell quoting error
29628         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29629         timestamp.
29630
29631 2009-04-25  Jim Meyering  <meyering@redhat.com>
29632
29633         vc-list-files: restore lost functionality with subdir argument
29634         * build-aux/vc-list-files: When given a non-"." sub-directory
29635         argument, substitute the $dir/ prefix back onto each resulting name.
29636         Otherwise, coreutils' root_tests check would fail.
29637
29638 2009-04-24  Eric Blake  <ebb9@byu.net>
29639
29640         vc-list-files: ignore git symlinks
29641         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29642         than ls-files, to ignore git symlinks.
29643
29644         maint.mk: import improvements from m4
29645         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29646         (move_if_change): Delete unused macro.
29647         (news-date-check, vc-diff-check): Support VPATH builds.
29648         (announcement): Likewise.  Split --bootstrap-tools list...
29649         (boostrap-tools): ...into separate list, which can be overridden
29650         in cfg.mk.
29651         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29652         requiring dependency on useless-if-before-free module.
29653         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29654         Support VPATH builds.
29655
29656 2009-04-24  Jim Meyering  <meyering@redhat.com>
29657
29658         maint.mk: remove coreutils-specific rules and variables
29659         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29660         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29661         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29662
29663         maint.mk: remove obsolete rule
29664         * top/maint.mk (rel-check): Remove rule.
29665         (WGET, WGETFLAGS): Remove now-unused variables.
29666
29667 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29668
29669         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29670         consistency.
29671
29672         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29673         '$(PATH_SEPARATOR)' instead of ':'.
29674
29675 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29676
29677         * lib/getopt1.c (main): Use 'const' for static array.
29678
29679 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29680
29681         * top/maint.mk: Sync with coreutils.
29682         * NEWS: Explain incompatibilities.
29683
29684 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29685             Bruno Haible  <bruno@clisp.org>
29686
29687         Fix cross-compilation results.
29688         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29689         statement, as third argument of AC_TRY_RUN.
29690         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29691         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29692         Likewise.
29693         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29694         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29695         Likewise.
29696         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29697         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29698         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29699
29700 2009-04-20  Bruno Haible  <bruno@clisp.org>
29701
29702         Avoid test failure on mingw.
29703         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29704
29705 2009-04-20  Bruno Haible  <bruno@clisp.org>
29706
29707         Avoid compilation error on mingw.
29708         * modules/localename-tests (Depends-on): Add locale.
29709
29710 2009-04-19  Bruno Haible  <bruno@clisp.org>
29711
29712         Support for building a shared library on Windows platforms.
29713         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29714         (main): Test the presence of UNINORM_NFC here.
29715         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29716         (main): Test the presence of UNINORM_NFD here.
29717         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29718         (main): Test the presence of UNINORM_NFKC here.
29719         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29720         (main): Test the presence of UNINORM_NFKD here.
29721
29722 2009-04-19  Bruno Haible  <bruno@clisp.org>
29723
29724         Avoid a compiler warning.
29725         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29726         Change type of variable 'sequence'.
29727
29728 2009-04-19  Bruno Haible  <bruno@clisp.org>
29729
29730         * modules/configmake (Makefile.am): When the contents of configmake.h
29731         does not change, arrange to preserve its modification time.
29732
29733 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29734
29735         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29736         gettext domain.
29737
29738 2009-04-16  Jim Meyering  <meyering@redhat.com>
29739
29740         useless-if-before-free: improve conversion code
29741         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29742         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29743
29744 2009-04-14  Bruno Haible  <bruno@clisp.org>
29745
29746         * modules/fcntl (Depends-on): Add extensions.
29747         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29748
29749 2009-04-12  Ben Pfaff  <blp@gnu.org>
29750
29751         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29752         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29753
29754 2009-03-20  Ben Pfaff  <blp@gnu.org>
29755
29756         Make rename replace existing destinations on Windows.
29757         * m4/rename.m4: Add test for Mingw.
29758         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29759         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29760         * doc/posix-functions/rename.texi: Document.
29761
29762 2009-04-10  Bruno Haible  <bruno@clisp.org>
29763
29764         New include file "iconveh.h".
29765         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29766         * lib/striconveh.h: Include it.
29767         (enum iconv_ilseq_handler): Remove definition.
29768         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29769         striconveh.h.
29770         * lib/striconveha.c: Include striconveh.h.
29771         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29772         * modules/striconveh (Files): Add lib/iconveh.h.
29773         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29774         lib/striconveh.h.
29775
29776 2009-04-10  Bruno Haible  <bruno@clisp.org>
29777
29778         * lib/uniconv.h: Update comment.
29779
29780 2009-04-10  Bruno Haible  <bruno@clisp.org>
29781
29782         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29783         always.
29784         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29785         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29786         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29787         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29788         "unistring-notinline.h", so that the function gets defined always.
29789         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29790         * lib/unistr/u8-uctomb.c: Likewise.
29791         * lib/unistr/u16-mbtouc.c: Likewise.
29792         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29793         * lib/unistr/u16-uctomb.c: Likewise.
29794         * lib/unistr/u32-mbtouc.c: Likewise.
29795         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29796         * lib/unistr/u32-uctomb.c: Likewise.
29797
29798 2009-04-10  Bruno Haible  <bruno@clisp.org>
29799
29800         Mark 'utime' obsolete.
29801         * modules/utime (Status, Notice): New sections.
29802         Suggested by Jim Meyering.
29803
29804         Fix cross-compile guess for utime test.
29805         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29806         autoconf.
29807         * doc/posix-functions/utime.texi: Give more precisions.
29808         Reported by Jan <ipif@ymail.com>.
29809
29810 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29811
29812         filevercmp: correct today's change
29813         * lib/filevercmp.c: Also handle coreutils' test inputs.
29814         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29815
29816         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29817         for reporting it.
29818         * lib/filevercmp.c: Special handle for "", "." and "..".
29819         * tests/test-filevercmp.c: Enlarge the set suite.
29820
29821 2009-04-07  Jim Meyering  <meyering@redhat.com>
29822
29823         useless-if-before-free: show how to remove braced useless free, too
29824         * build-aux/useless-if-before-free: still only in a comment, though.
29825
29826 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29827
29828         maint.mk: import changes to syntax-check macros from coreutils
29829         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29830         Use them in the relevant macros.
29831
29832 2009-04-06  Bruno Haible  <bruno@clisp.org>
29833
29834         Fix unportable use of bit-fields.
29835         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29836         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29837         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29838
29839 2009-04-06  Bruno Haible  <bruno@clisp.org>
29840
29841         Avoid test failures on AIX and OSF/1.
29842         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29843         that malloc(0) = NULL.
29844         * tests/unicase/test-u8-tolower.c (check): Likewise.
29845         * tests/unicase/test-u8-totitle.c (check): Likewise.
29846         * tests/unicase/test-u8-toupper.c (check): Likewise.
29847         * tests/unicase/test-u16-casefold.c (check): Likewise.
29848         * tests/unicase/test-u16-tolower.c (check): Likewise.
29849         * tests/unicase/test-u16-totitle.c (check): Likewise.
29850         * tests/unicase/test-u16-toupper.c (check): Likewise.
29851         * tests/unicase/test-u32-casefold.c (check): Likewise.
29852         * tests/unicase/test-u32-tolower.c (check): Likewise.
29853         * tests/unicase/test-u32-totitle.c (check): Likewise.
29854         * tests/unicase/test-u32-toupper.c (check): Likewise.
29855         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29856         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29857         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29858         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29859         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29860         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29861         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29862         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29863         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29864         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29865         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29866         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29867
29868 2009-04-05  Bruno Haible  <bruno@clisp.org>
29869
29870         Work around an autoconf limitation.
29871         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29872         comment line if it would be longer than 3 KB.
29873
29874 2009-04-05  Bruno Haible  <bruno@clisp.org>
29875
29876         Avoid test failure with libiconv-1.13.
29877         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29878         of the expected test results.
29879
29880 2009-04-05  Bruno Haible  <bruno@clisp.org>
29881
29882         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29883         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29884         that it should be installed.
29885
29886 2009-04-05  Bruno Haible  <bruno@clisp.org>
29887
29888         * gnulib-tool: New option --copy-file.
29889         (func_usage): Document it.
29890         (func_dest_tmpfilename): Moved out of func_import.
29891         (func_add_file, func_update_file): New functions, extracted from
29892         func_import.
29893         (func_import): Update.
29894
29895 2009-04-05  Karl Berry  <karl@gnu.org>
29896
29897         * README: prominently mention gnulib-tool.
29898         Rearrange sections so getting the code is near the top.
29899
29900 2009-04-05  Bruno Haible  <bruno@clisp.org>
29901
29902         * lib/unicase.h: Mention u*_cmp2.
29903         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29904         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29905         * lib/unicase/ulc-casecmp.c: Likewise.
29906         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29907         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29908         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29909         unistr/u8-cmp.
29910         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29911         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29912         unistr/u16-cmp.
29913         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29914         unistr/u32-cmp.
29915
29916         * lib/uninorm.h: Mention u*_cmp2.
29917         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29918         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29919         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29920         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29921         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29922         unistr/u8-cmp.
29923         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29924         unistr/u16-cmp.
29925         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29926         unistr/u32-cmp.
29927
29928         New module 'unistr/u32-cmp2'.
29929         * lib/unistr/u32-cmp2.c: New file.
29930         * modules/unistr/u32-cmp2: New file.
29931
29932         New module 'unistr/u16-cmp2'.
29933         * lib/unistr/u16-cmp2.c: New file.
29934         * modules/unistr/u16-cmp2: New file.
29935
29936         New module 'unistr/u8-cmp2'.
29937         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29938         * lib/unistr/u8-cmp2.c: New file.
29939         * lib/unistr/u-cmp2.h: New file.
29940         * modules/unistr/u8-cmp2: New file.
29941
29942 2009-04-05  Bruno Haible  <bruno@clisp.org>
29943
29944         * lib/unictype.h (uc_property_is_valid): New macro.
29945         * tests/unictype/test-pr_byname.c (main): Use it.
29946
29947         * lib/unistr.h: Doc fixes.
29948         * lib/uniconv.h: Doc fixes.
29949         * lib/unictype.h: Doc fixes.
29950
29951 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29952
29953         Port coreutils 7.2 to Solaris 8.
29954
29955         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29956         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29957         for Solaris 8.  This is a bit of a hack, as it means it's the
29958         caller's responsibility to add -lnsl if needed, but most likely it
29959         won't be needed since only getaddrinfo uses this and getaddrinfo
29960         isn't needed on Solaris 8.
29961
29962         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29963         problem to Solaris 8 encountered with coreutils 7.2, which
29964         resulted in a message "fnmatch.c:292: warning: passing argument 4
29965         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29966         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29967
29968 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29969
29970         * m4/ld-version-script.m4: Add FIXME comment.
29971
29972 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29973
29974         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29975         SOVERSION variable.
29976
29977 2009-04-02  Bruno Haible  <bruno@clisp.org>
29978
29979         * Makefile (info, html, dvi, pdf): Combine the rules.
29980         Suggested by Jim Meyering.
29981
29982 2009-04-01  Bruno Haible  <bruno@clisp.org>
29983
29984         * Makefile (info, html, dvi, pdf): New targets.
29985         Reported by Reuben Thomas <rrt@sc3d.org>.
29986
29987 2009-04-01  Bruno Haible  <bruno@clisp.org>
29988
29989         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29990         can be put into PATH.
29991         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29992
29993 2009-04-01  Bruno Haible  <bruno@clisp.org>
29994
29995         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29996
29997 2009-04-01  Bruno Haible  <bruno@clisp.org>
29998
29999         Rename module 'visibility'.
30000         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30001         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30002         * doc/gnulib.texi: Update.
30003         * MODULES.html.sh (Misc): Update.
30004         * NEWS: Mention the change.
30005
30006 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30007
30008         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30009         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30010         Eric Blake <ebb9@byu.net> for review.
30011         * MODULES.html.sh: Add lib-msvc-compat.
30012         * doc/gnulib.texi: Link to new section.
30013         * m4/ld-output-def.m4: New file.
30014         * doc/ld-output-def.texi: New file.
30015
30016 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30017
30018         Rename ld-version-script to lib-symbol-versions.  Suggested by
30019         Bruno Haible <bruno@clisp.org>.
30020         * modules/ld-version-script: Renamed to lib-symbol-versions.
30021         * doc/ld-version-script.texi: Fix module name.
30022         * MODULES.html.sh: Add lib-symbol-versions.
30023
30024 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30025
30026         * modules/u64-tests: New file.
30027         * tests/test-u64.c: New file.
30028
30029 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30030
30031         * MODULES.html.sh: Mention u64.
30032         * modules/u64: New module.
30033         * modules/crypto/sha512: Depend on u64 module instead of providing
30034         u64.h.
30035
30036 2009-03-27  Eric Blake  <ebb9@byu.net>
30037
30038         test-strerror: make debugging EAI_SYSTEM easier
30039         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30040         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30041         failure was EAI_SYSTEM.
30042
30043 2009-03-25  Bruno Haible  <bruno@clisp.org>
30044
30045         Fix a problem with --enable-relocatable on Solaris 7.
30046         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30047         since 2008-02-24.
30048
30049 2009-03-25  Eric Blake  <ebb9@byu.net>
30050
30051         test-sockets: avoid gcc warning
30052         * tests/test-sockets.c (main): Silence compiler warning.
30053
30054 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30055
30056         New modules nproc, pthread, contributed by Glen Lenker.
30057
30058         * MODULES.html.sh: Add pthread, nproc.
30059         * lib/nproc.c: New file.
30060         * lib/nproc.h: New file.
30061         * lib/pthread.in.h: New file.
30062         * m4/pthread.m4: New file.
30063         * modules/nproc: New file.
30064         * modules/pthread: New file.
30065
30066 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30067
30068         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30069         New variable.
30070
30071 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30072
30073         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30074         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30075         * tests/test-filevercmp.c: Add tests for backup suffixes.
30076
30077 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30078
30079         * modules/stdlib (Depends-on): Add stdint, needed when defining
30080         struct random_data on, for example, HP-UX 10.20.  Reported by
30081         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30082
30083 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30084
30085         * lib/readline.c (readline): Call fflush on stdout after printing
30086         prompt.
30087
30088 2009-03-20  Bruno Haible  <bruno@clisp.org>
30089
30090         Remove dependency from 'close' module to -lws2_32 on native Windows.
30091         * lib/close-hook.h: New file.
30092         * lib/close-hook.c: New file.
30093         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30094         w32sock.h.
30095         (_gl_close_fd_maybe_socket): Remove function.
30096         (rpl_close): Invoke execute_all_close_hooks instead of
30097         _gl_close_fd_maybe_socket.
30098         * lib/sockets.c: Include close-hook.h, w32sock.h.
30099         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30100         (close_sockets_hook): New variable.
30101         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30102         (gl_sockets_cleanup): Unregister it.
30103         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30104         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30105         * modules/close-hook: New file.
30106         * modules/close (Files): Remove lib/w32sock.h.
30107         (Depends-on): Add close-hook.
30108         (Link): Remove section.
30109         * modules/sockets (Files): Add lib/w32sock.h.
30110         (Depends-on): Add close-hook.
30111         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30112         invocation.
30113         * NEWS: Mention that LIB_CLOSE is gone.
30114
30115 2009-03-23  Eric Blake  <ebb9@byu.net>
30116
30117         signal-tests: test previous patch
30118         * tests/test-signal.c: New file.
30119         * modules/signal-tests: Likewise.
30120
30121         signal.h: always support 'volatile sig_atomic_t'
30122         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30123         (gl_SIGNAL_H_DEFAULTS): Add a default.
30124         * modules/signal (Makefile.am): Substitute if needed.
30125         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30126         users can blindly add volatile.
30127         * doc/posix-headers/signal.texi (signal.h): Document it.
30128         Reported by Matthew Woehlke.
30129
30130 2009-03-23  Jim Meyering  <meyering@redhat.com>
30131
30132         pathmax: PATH_MAX: use pathconf only when available
30133         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30134         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30135         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30136         This avoids a link failure in a PSP cross-compilation environment
30137         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30138
30139         * lib/vasnprintf.c (divide): Fix typo in comment.
30140
30141 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30142
30143         * gnulib-tool (func_filter_filelist): Fix comment.
30144
30145 2009-03-20  Bruno Haible  <bruno@clisp.org>
30146
30147         Make sockets.h self-contained.
30148         * lib/sockets.c: Include sockets.h first.
30149         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30150
30151 2009-03-19  Eric Blake  <ebb9@byu.net>
30152
30153         doc: mention more functions added in cygwin 1.7.0
30154         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30155         addition.
30156         * doc/posix-functions/log2f.texi: Likewise.
30157
30158 2009-03-19  Jim Meyering  <meyering@redhat.com>
30159
30160         fsusage: avoid syntax error due to statement-before-declaration
30161         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30162         after all declarations.  Reported by Matthew Woehlke in
30163         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30164
30165 2009-03-18  Eric Blake  <ebb9@byu.net>
30166
30167         build-aux/compile: sync from automake
30168         * build-aux/compile: New file, from automake.
30169         * config/srclist.txt: Mention build-aux/compile.
30170
30171 2009-03-17  Bruno Haible  <bruno@clisp.org>
30172
30173         * lib/git-merge-changelog.c: Fix typo in comment.
30174         Reported by Reuben Thomas <rrt@sc3d.org>.
30175
30176 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30177
30178         * m4/regex.m4: update and improve help for
30179         --without-included-regex.
30180
30181 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30182
30183         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30184         failure on missing include files.
30185
30186 2009-03-17  Eric Blake  <ebb9@byu.net>
30187
30188         doc: mention more functions added in cygwin 1.7.0
30189         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30190         addition.
30191         * doc/posix-functions/fwscanf.texi: Likewise.
30192         * doc/posix-functions/swprintf.texi: Likewise.
30193         * doc/posix-functions/swscanf.texi: Likewise.
30194         * doc/posix-functions/vfwprintf.texi: Likewise.
30195         * doc/posix-functions/vfwscanf.texi: Likewise.
30196         * doc/posix-functions/vswprintf.texi: Likewise.
30197         * doc/posix-functions/vswscanf.texi: Likewise.
30198         * doc/posix-functions/vwprintf.texi: Likewise.
30199         * doc/posix-functions/vwscanf.texi: Likewise.
30200         * doc/posix-functions/wcscasecmp.texi: Likewise.
30201         * doc/posix-functions/wcsdup.texi: Likewise.
30202         * doc/posix-functions/wcsftime.texi: Likewise.
30203         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30204         * doc/posix-functions/wprintf.texi: Likewise.
30205         * doc/posix-functions/wscanf.texi: Likewise.
30206         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30207
30208 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30209
30210         maint.mk: really add $(AM_MAKEFLAGS)
30211         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30212         was inadvertently omitted in the last commit.
30213         Spotted by Bruno Haible.
30214
30215         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30216         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30217         $(AM_MAKEFLAGS)' rather than plain `make'.
30218
30219         gnulib-tool: execute $MAKE not make
30220         * gnulib-tool: Default $MAKE to 'make'.
30221         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30222         than make.  Initialize $MAKE in the do-autobuild script.
30223
30224         gnulib-tool: use $MAKE not make in generated files
30225         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30226         make, in generated files.  Initialize $MAKE in the do-autobuild
30227         script.
30228
30229         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30230
30231         GNUmakefile: disable parallelism only for multiple, recursive targets
30232         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30233         additions in the Makefile.
30234         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30235         by Automake.
30236         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30237         are listed on the command line and at least one of them is
30238         listed in $(ALL_RECURSIVE_TARGETS).
30239
30240 2009-03-14  Bruno Haible  <bruno@clisp.org>
30241
30242         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30243         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30244         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30245         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30246         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30247         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30248         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30249         unistr/u8-uctomb.
30250         * modules/unistr/u8-strchr (Depends-on): Likewise.
30251         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30252         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30253         unistr/u16-uctomb.
30254         * modules/unistr/u16-strchr (Depends-on): Likewise.
30255         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30256
30257 2009-03-12  Bruno Haible  <bruno@clisp.org>
30258
30259         Work around select() bug on Interix 3.5.
30260         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30261         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30262         * m4/select.m4: New file.
30263         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30264         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30265         * modules/select (Files): Add m4/select.m4.
30266         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30267         * modules/nanosleep (Depends-on): Add select.
30268         * modules/poll (Depends-on): Likewise.
30269         * doc/posix-functions/select.texi: Mention the Interix bug.
30270         Reported by Markus Duft <mduft@gentoo.org>.
30271
30272         * lib/select.c: Renamed from lib/winsock-select.c.
30273         * modules/select (Files): Add lib/select.c, remove
30274         lib/winsock-select.c.
30275         (configure.ac): Update.
30276
30277 2009-03-12  Jim Meyering  <meyering@redhat.com>
30278
30279         avoid gcc warnings about unused macro definitions
30280         * lib/readtokens.c (STREQ): Remove unused definition.
30281         * lib/xmalloc.c (SIZE_MAX): Likewise.
30282         * lib/openat-die.c (N_): Likewise.
30283         * lib/mountlist.c (SIZE_MAX): Remove definition.
30284         Instead, include <stdint.h>.
30285         * lib/readutmp.c: Likewise.
30286         * modules/readutmp (Depends-on): Add stdint.
30287         * modules/mountlist (Depends-on): Add stdint.
30288         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30289
30290 2009-03-10  Bruno Haible  <bruno@clisp.org>
30291
30292         Tests for module 'mbmemcasecoll'.
30293         * modules/mbmemcasecoll-tests: New file.
30294         * tests/test-mbmemcasecoll1.sh: New file.
30295         * tests/test-mbmemcasecoll2.sh: New file.
30296         * tests/test-mbmemcasecoll3.sh: New file.
30297         * tests/test-mbmemcasecoll.c: New file.
30298
30299         New module 'mbmemcasecoll'.
30300         * lib/mbmemcasecoll.h: New file.
30301         * lib/mbmemcasecoll.c: New file.
30302         * modules/mbmemcasecoll: New file.
30303
30304         * tests/test-mbmemcasecmp.h: New file, extracted from
30305         tests/test-mbmemcasecmp.c.
30306         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30307         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30308         (main): Update.
30309         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30310
30311 2009-03-09  Bruno Haible  <bruno@clisp.org>
30312
30313         Tests for module 'mbmemcasecmp'.
30314         * modules/mbmemcasecmp-tests: New file.
30315         * tests/test-mbmemcasecmp1.sh: New file.
30316         * tests/test-mbmemcasecmp2.sh: New file.
30317         * tests/test-mbmemcasecmp3.sh: New file.
30318         * tests/test-mbmemcasecmp.c: New file.
30319
30320         New module 'mbmemcasecmp'.
30321         * lib/mbmemcasecmp.h: New file.
30322         * lib/mbmemcasecmp.c: New file.
30323         * modules/mbmemcasecmp: New file.
30324
30325 2009-03-09  Bruno Haible  <bruno@clisp.org>
30326
30327         Tests for module 'unicase/ulc-casecoll'.
30328         * modules/unicase/ulc-casecoll-tests: New file.
30329         * tests/unicase/test-ulc-casecoll1.sh: New file.
30330         * tests/unicase/test-ulc-casecoll2.sh: New file.
30331         * tests/unicase/test-ulc-casecoll.c: New file.
30332
30333         New module 'unicase/ulc-casecoll'.
30334         * lib/unicase.h (ulc_casecoll): New declaration.
30335         * lib/unicase/ulc-casecoll.c: New file.
30336         * modules/unicase/ulc-casecoll: New file.
30337
30338         New module 'unicase/ulc-casexfrm'.
30339         * lib/unicase.h (ulc_casexfrm): New declaration.
30340         * lib/unicase/ulc-casexfrm.c: New file.
30341         * modules/unicase/ulc-casexfrm: New file.
30342
30343 2009-03-09  Bruno Haible  <bruno@clisp.org>
30344
30345         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30346         invocations.
30347
30348         * m4/mbscasecmp.m4: Remove file.
30349         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30350         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30351
30352         * m4/mbscasestr.m4: Remove file.
30353         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30354         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30355
30356         * m4/mbschr.m4: Remove file.
30357         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30358         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30359
30360         * m4/mbscspn.m4: Remove file.
30361         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30362         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30363
30364         * m4/mbslen.m4: Remove file.
30365         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30366         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30367
30368         * m4/mbsncasecmp.m4: Remove file.
30369         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30370         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30371
30372         * m4/mbsnlen.m4: Remove file.
30373         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30374         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30375
30376         * m4/mbspbrk.m4: Remove file.
30377         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30378         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30379
30380         * m4/mbspcasecmp.m4: Remove file.
30381         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30382         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30383
30384         * m4/mbsrchr.m4: Remove file.
30385         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30386         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30387
30388         * m4/mbssep.m4: Remove file.
30389         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30390         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30391
30392         * m4/mbsspn.m4: Remove file.
30393         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30394         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30395
30396         * m4/mbsstr.m4: Remove file.
30397         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30398         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30399
30400         * m4/mbstok_r.m4: Remove file.
30401         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30402         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30403
30404         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30405
30406         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30407         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30408
30409         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30410
30411 2009-03-08  Bruno Haible  <bruno@clisp.org>
30412
30413         Tests for module 'unicase/ulc-casecmp'.
30414         * modules/unicase/ulc-casecmp-tests: New file.
30415         * tests/unicase/test-ulc-casecmp1.sh: New file.
30416         * tests/unicase/test-ulc-casecmp2.sh: New file.
30417         * tests/unicase/test-ulc-casecmp.c: New file.
30418
30419         New module 'unicase/ulc-casecmp'.
30420         * lib/unicase.h (ulc_casecmp): New declaration.
30421         * lib/unicase/ulc-casecmp.c: New file.
30422         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30423         'const SRC_UNIT *'.
30424         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30425         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30426         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30427         * modules/unicase/ulc-casecmp: New file.
30428
30429         Tests for module 'unicase/u32-is-cased'.
30430         * modules/unicase/u32-is-cased-tests: New file.
30431         * tests/unicase/test-u32-is-cased.c: New file.
30432
30433         Tests for module 'unicase/u16-is-cased'.
30434         * modules/unicase/u16-is-cased-tests: New file.
30435         * tests/unicase/test-u16-is-cased.c: New file.
30436
30437         Tests for module 'unicase/u8-is-cased'.
30438         * modules/unicase/u8-is-cased-tests: New file.
30439         * tests/unicase/test-u8-is-cased.c: New file.
30440         * tests/unicase/test-is-cased.h: New file.
30441
30442         New module 'unicase/u32-is-cased'.
30443         * lib/unicase/u32-is-cased.c: New file.
30444         * modules/unicase/u32-is-cased: New file.
30445
30446         New module 'unicase/u16-is-cased'.
30447         * lib/unicase/u16-is-cased.c: New file.
30448         * modules/unicase/u16-is-cased: New file.
30449
30450         New module 'unicase/u8-is-cased'.
30451         * lib/unicase/u8-is-cased.c: New file.
30452         * lib/unicase/u-is-cased.h: New file.
30453         * modules/unicase/u8-is-cased: New file.
30454
30455         Tests for module 'unicase/u32-is-casefolded'.
30456         * modules/unicase/u32-is-casefolded-tests: New file.
30457         * tests/unicase/test-u32-is-casefolded.c: New file.
30458
30459         Tests for module 'unicase/u16-is-casefolded'.
30460         * modules/unicase/u16-is-casefolded-tests: New file.
30461         * tests/unicase/test-u16-is-casefolded.c: New file.
30462
30463         Tests for module 'unicase/u8-is-casefolded'.
30464         * modules/unicase/u8-is-casefolded-tests: New file.
30465         * tests/unicase/test-u8-is-casefolded.c: New file.
30466         * tests/unicase/test-is-casefolded.h: New file.
30467
30468         New module 'unicase/u32-is-casefolded'.
30469         * lib/unicase/u32-is-casefolded.c: New file.
30470         * modules/unicase/u32-is-casefolded: New file.
30471
30472         New module 'unicase/u16-is-casefolded'.
30473         * lib/unicase/u16-is-casefolded.c: New file.
30474         * modules/unicase/u16-is-casefolded: New file.
30475
30476         New module 'unicase/u8-is-casefolded'.
30477         * lib/unicase/u8-is-casefolded.c: New file.
30478         * modules/unicase/u8-is-casefolded: New file.
30479
30480         Tests for module 'unicase/u32-is-titlecase'.
30481         * modules/unicase/u32-is-titlecase-tests: New file.
30482         * tests/unicase/test-u32-is-titlecase.c: New file.
30483
30484         Tests for module 'unicase/u16-is-titlecase'.
30485         * modules/unicase/u16-is-titlecase-tests: New file.
30486         * tests/unicase/test-u16-is-titlecase.c: New file.
30487
30488         Tests for module 'unicase/u8-is-titlecase'.
30489         * modules/unicase/u8-is-titlecase-tests: New file.
30490         * tests/unicase/test-u8-is-titlecase.c: New file.
30491         * tests/unicase/test-is-titlecase.h: New file.
30492
30493         New module 'unicase/u32-is-titlecase'.
30494         * lib/unicase/u32-is-titlecase.c: New file.
30495         * modules/unicase/u32-is-titlecase: New file.
30496
30497         New module 'unicase/u16-is-titlecase'.
30498         * lib/unicase/u16-is-titlecase.c: New file.
30499         * modules/unicase/u16-is-titlecase: New file.
30500
30501         New module 'unicase/u8-is-titlecase'.
30502         * lib/unicase/u8-is-titlecase.c: New file.
30503         * modules/unicase/u8-is-titlecase: New file.
30504
30505         Tests for module 'unicase/u32-is-lowercase'.
30506         * modules/unicase/u32-is-lowercase-tests: New file.
30507         * tests/unicase/test-u32-is-lowercase.c: New file.
30508
30509         Tests for module 'unicase/u16-is-lowercase'.
30510         * modules/unicase/u16-is-lowercase-tests: New file.
30511         * tests/unicase/test-u16-is-lowercase.c: New file.
30512
30513         Tests for module 'unicase/u8-is-lowercase'.
30514         * modules/unicase/u8-is-lowercase-tests: New file.
30515         * tests/unicase/test-u8-is-lowercase.c: New file.
30516         * tests/unicase/test-is-lowercase.h: New file.
30517
30518         New module 'unicase/u32-is-lowercase'.
30519         * lib/unicase/u32-is-lowercase.c: New file.
30520         * modules/unicase/u32-is-lowercase: New file.
30521
30522         New module 'unicase/u16-is-lowercase'.
30523         * lib/unicase/u16-is-lowercase.c: New file.
30524         * modules/unicase/u16-is-lowercase: New file.
30525
30526         New module 'unicase/u8-is-lowercase'.
30527         * lib/unicase/u8-is-lowercase.c: New file.
30528         * modules/unicase/u8-is-lowercase: New file.
30529
30530         Tests for module 'unicase/u32-is-uppercase'.
30531         * modules/unicase/u32-is-uppercase-tests: New file.
30532         * tests/unicase/test-u32-is-uppercase.c: New file.
30533
30534         Tests for module 'unicase/u16-is-uppercase'.
30535         * modules/unicase/u16-is-uppercase-tests: New file.
30536         * tests/unicase/test-u16-is-uppercase.c: New file.
30537
30538         Tests for module 'unicase/u8-is-uppercase'.
30539         * modules/unicase/u8-is-uppercase-tests: New file.
30540         * tests/unicase/test-u8-is-uppercase.c: New file.
30541         * tests/unicase/test-is-uppercase.h: New file.
30542
30543         New module 'unicase/u32-is-uppercase'.
30544         * lib/unicase/u32-is-uppercase.c: New file.
30545         * modules/unicase/u32-is-uppercase: New file.
30546
30547         New module 'unicase/u16-is-uppercase'.
30548         * lib/unicase/u16-is-uppercase.c: New file.
30549         * modules/unicase/u16-is-uppercase: New file.
30550
30551         New module 'unicase/u8-is-uppercase'.
30552         * lib/unicase/u8-is-uppercase.c: New file.
30553         * modules/unicase/u8-is-uppercase: New file.
30554
30555         New module 'unicase/u32-is-invariant'.
30556         * lib/unicase/u32-is-invariant.c: New file.
30557         * modules/unicase/u32-is-invariant: New file.
30558
30559         New module 'unicase/u16-is-invariant'.
30560         * lib/unicase/u16-is-invariant.c: New file.
30561         * modules/unicase/u16-is-invariant: New file.
30562
30563         New module 'unicase/u8-is-invariant'.
30564         * lib/unicase/u8-is-invariant.c: New file.
30565         * lib/unicase/invariant.h: New file.
30566         * lib/unicase/u-is-invariant.h: New file.
30567         * modules/unicase/u8-is-invariant: New file.
30568
30569         Tests for module 'unicase/u32-casecoll'.
30570         * modules/unicase/u32-casecoll-tests: New file.
30571         * tests/unicase/test-u32-casecoll.c: New file.
30572
30573         Tests for module 'unicase/u16-casecoll'.
30574         * modules/unicase/u16-casecoll-tests: New file.
30575         * tests/unicase/test-u16-casecoll.c: New file.
30576
30577         Tests for module 'unicase/u8-casecoll'.
30578         * modules/unicase/u8-casecoll-tests: New file.
30579         * tests/unicase/test-u8-casecoll.c: New file.
30580
30581         New module 'unicase/u32-casecoll'.
30582         * lib/unicase/u32-casecoll.c: New file.
30583         * modules/unicase/u32-casecoll: New file.
30584
30585         New module 'unicase/u16-casecoll'.
30586         * lib/unicase/u16-casecoll.c: New file.
30587         * modules/unicase/u16-casecoll: New file.
30588
30589         New module 'unicase/u8-casecoll'.
30590         * lib/unicase/u8-casecoll.c: New file.
30591         * lib/unicase/u-casecoll.h: New file.
30592         * modules/unicase/u8-casecoll: New file.
30593
30594         New module 'unicase/u32-casexfrm'.
30595         * lib/unicase/u32-casexfrm.c: New file.
30596         * modules/unicase/u32-casexfrm: New file.
30597
30598         New module 'unicase/u16-casexfrm'.
30599         * lib/unicase/u16-casexfrm.c: New file.
30600         * modules/unicase/u16-casexfrm: New file.
30601
30602         New module 'unicase/u8-casexfrm'.
30603         * lib/unicase/u8-casexfrm.c: New file.
30604         * lib/unicase/u-casexfrm.h: New file.
30605         * modules/unicase/u8-casexfrm: New file.
30606
30607         Tests for module 'unicase/u32-casecmp'.
30608         * modules/unicase/u32-casecmp-tests: New file.
30609         * tests/unicase/test-u32-casecmp.c: New file.
30610
30611         Tests for module 'unicase/u16-casecmp'.
30612         * modules/unicase/u16-casecmp-tests: New file.
30613         * tests/unicase/test-u16-casecmp.c: New file.
30614
30615         Tests for module 'unicase/u8-casecmp'.
30616         * modules/unicase/u8-casecmp-tests: New file.
30617         * tests/unicase/test-u8-casecmp.c: New file.
30618         * tests/unicase/test-casecmp.h: New file.
30619
30620         New module 'unicase/u32-casecmp'.
30621         * lib/unicase/u32-casecmp.c: New file.
30622         * modules/unicase/u32-casecmp: New file.
30623
30624         New module 'unicase/u16-casecmp'.
30625         * lib/unicase/u16-casecmp.c: New file.
30626         * modules/unicase/u16-casecmp: New file.
30627
30628         New module 'unicase/u8-casecmp'.
30629         * lib/unicase/u8-casecmp.c: New file.
30630         * lib/unicase/u-casecmp.h: New file.
30631         * modules/unicase/u8-casecmp: New file.
30632
30633         Tests for module 'unicase/u32-casefold'.
30634         * modules/unicase/u32-casefold-tests: New file.
30635         * tests/unicase/test-u32-casefold.c: New file.
30636
30637         Tests for module 'unicase/u16-casefold'.
30638         * modules/unicase/u16-casefold-tests: New file.
30639         * tests/unicase/test-u16-casefold.c: New file.
30640
30641         Tests for module 'unicase/u8-casefold'.
30642         * modules/unicase/u8-casefold-tests: New file.
30643         * tests/unicase/test-u8-casefold.c: New file.
30644
30645         New module 'unicase/u32-casefold'.
30646         * lib/unicase/u32-casefold.c: New file.
30647         * modules/unicase/u32-casefold: New file.
30648
30649         New module 'unicase/u16-casefold'.
30650         * lib/unicase/u16-casefold.c: New file.
30651         * modules/unicase/u16-casefold: New file.
30652
30653         New module 'unicase/u8-casefold'.
30654         * lib/unicase/u8-casefold.c: New file.
30655         * lib/unicase/u-casefold.h: New file.
30656         * modules/unicase/u8-casefold: New file.
30657
30658         New module 'unicase/tocasefold'.
30659         * lib/unicase/casefold.h: New file.
30660         * lib/unicase/tocasefold.c: New file.
30661         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30662         * modules/unicase/tocasefold: New file.
30663
30664         Tests for module 'unicase/u32-totitle'.
30665         * modules/unicase/u32-totitle-tests: New file.
30666         * tests/unicase/test-u32-totitle.c: New file.
30667
30668         Tests for module 'unicase/u16-totitle'.
30669         * modules/unicase/u16-totitle-tests: New file.
30670         * tests/unicase/test-u16-totitle.c: New file.
30671
30672         Tests for module 'unicase/u8-totitle'.
30673         * modules/unicase/u8-totitle-tests: New file.
30674         * tests/unicase/test-u8-totitle.c: New file.
30675
30676         New module 'unicase/u32-totitle'.
30677         * lib/unicase/u32-totitle.c: New file.
30678         * modules/unicase/u32-totitle: New file.
30679
30680         New module 'unicase/u16-totitle'.
30681         * lib/unicase/u16-totitle.c: New file.
30682         * modules/unicase/u16-totitle: New file.
30683
30684         New module 'unicase/u8-totitle'.
30685         * lib/unicase/u8-totitle.c: New file.
30686         * lib/unicase/u-totitle.h: New file.
30687         * modules/unicase/u8-totitle: New file.
30688
30689         Tests for module 'unicase/u32-tolower'.
30690         * modules/unicase/u32-tolower-tests: New file.
30691         * tests/unicase/test-u32-tolower.c: New file.
30692
30693         Tests for module 'unicase/u16-tolower'.
30694         * modules/unicase/u16-tolower-tests: New file.
30695         * tests/unicase/test-u16-tolower.c: New file.
30696
30697         Tests for module 'unicase/u8-tolower'.
30698         * modules/unicase/u8-tolower-tests: New file.
30699         * tests/unicase/test-u8-tolower.c: New file.
30700
30701         New module 'unicase/u32-tolower'.
30702         * lib/unicase/u32-tolower.c: New file.
30703         * modules/unicase/u32-tolower: New file.
30704
30705         New module 'unicase/u16-tolower'.
30706         * lib/unicase/u16-tolower.c: New file.
30707         * modules/unicase/u16-tolower: New file.
30708
30709         New module 'unicase/u8-tolower'.
30710         * lib/unicase/u8-tolower.c: New file.
30711         * modules/unicase/u8-tolower: New file.
30712
30713         Tests for module 'unicase/u32-toupper'.
30714         * modules/unicase/u32-toupper-tests: New file.
30715         * tests/unicase/test-u32-toupper.c: New file.
30716
30717         Tests for module 'unicase/u16-toupper'.
30718         * modules/unicase/u16-toupper-tests: New file.
30719         * tests/unicase/test-u16-toupper.c: New file.
30720
30721         Tests for module 'unicase/u8-toupper'.
30722         * modules/unicase/u8-toupper-tests: New file.
30723         * tests/unicase/test-u8-toupper.c: New file.
30724
30725         New module 'unicase/u32-toupper'.
30726         * lib/unicase/u32-toupper.c: New file.
30727         * modules/unicase/u32-toupper: New file.
30728
30729         New module 'unicase/u16-toupper'.
30730         * lib/unicase/u16-toupper.c: New file.
30731         * modules/unicase/u16-toupper: New file.
30732
30733         New module 'unicase/u8-toupper'.
30734         * lib/unicase/u8-toupper.c: New file.
30735         * modules/unicase/u8-toupper: New file.
30736
30737         New module 'unicase/u32-casemap'.
30738         * lib/unicase/u32-casemap.c: New file.
30739         * modules/unicase/u32-casemap: New file.
30740
30741         New module 'unicase/u16-casemap'.
30742         * lib/unicase/u16-casemap.c: New file.
30743         * modules/unicase/u16-casemap: New file.
30744
30745         New module 'unicase/u8-casemap'.
30746         * lib/unicase/unicasemap.h: New file.
30747         * lib/unicase/u8-casemap.c: New file.
30748         * lib/unicase/u-casemap.h: New file.
30749         * modules/unicase/u8-casemap: New file.
30750
30751         New module 'unicase/special-casing'.
30752         * lib/unicase/special-casing.h: New file.
30753         * lib/unicase/special-casing.c: New file.
30754         * lib/unicase/special-casing-table.gperf: New file, generated by
30755         gen-uni-tables.c.
30756         * modules/unicase/special-casing: New file.
30757
30758         Tests for module 'unicase/locale-language'.
30759         * modules/unicase/locale-language-tests: New file.
30760         * tests/unicase/test-locale-language.sh: New file.
30761         * tests/unicase/test-locale-language.c: New file.
30762
30763         New module 'unicase/locale-language'.
30764         * lib/unicase/locale-language.c: New file.
30765         * lib/unicase/locale-languages.gperf: New file.
30766         * modules/unicase/locale-language: New file.
30767
30768         Generate more tables for case conversion and case folding.
30769         * lib/gen-uni-tables.c (SCC_*): New enum items.
30770         (struct special_casing_rule): New type.
30771         (casing_rules, num_casing_rules, allocated_casing_rules): New
30772         variables.
30773         (add_casing_rule, fill_casing_rules): New functions.
30774         (struct casefold_rule): New type.
30775         (casefolding_rules, num_casefolding_rules,
30776         allocated_casefolding_rules): New variables.
30777         (fill_casefolding_rules): New function.
30778         (unicode_casefold): New variable.
30779         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30780         sort_casing_rules, output_casing_rules): New functions.
30781         (main): Accept to more arguments: SpecialCasing.txt and
30782         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30783         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30784         Output mapping for casefolding.
30785
30786         * lib/unicase.h: Include stdbool.h, uninorm.h.
30787         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30788         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30789         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30790         arguments.
30791         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30792         resultp arguments.
30793         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30794         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30795         resultp arguments.
30796         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30797         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30798         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30799         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30800         declarations.
30801         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30802
30803 2009-03-08  Bruno Haible  <bruno@clisp.org>
30804
30805         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30806         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30807         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30808         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30809
30810 2009-03-07  Bruno Haible  <bruno@clisp.org>
30811
30812         Adjust u*_normcmp, u*_normcoll API.
30813         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30814         u16_normcoll, u32_normcoll): Change failure conventions.
30815         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30816         errno and return -1.
30817         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30818
30819 2009-03-07  Bruno Haible  <bruno@clisp.org>
30820
30821         Tests for module 'uninorm/u32-normcoll'.
30822         * modules/uninorm/u32-normcoll-tests: New file.
30823         * tests/uninorm/test-u32-normcoll.c: New file.
30824
30825         Tests for module 'uninorm/u16-normcoll'.
30826         * modules/uninorm/u16-normcoll-tests: New file.
30827         * tests/uninorm/test-u16-normcoll.c: New file.
30828
30829         Tests for module 'uninorm/u8-normcoll'.
30830         * modules/uninorm/u8-normcoll-tests: New file.
30831         * tests/uninorm/test-u8-normcoll.c: New file.
30832
30833 2009-03-07  Bruno Haible  <bruno@clisp.org>
30834
30835         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30836         tests/uninorm/test-u32-normcmp.c.
30837         * tests/uninorm/test-u32-normcmp.c: Include it.
30838         (test_nonascii): New function, extracted from main. Add some more
30839         tests.
30840         (main): Invoke test_ascii and test_nonascii.
30841         * modules/uninorm/u32-normcmp-tests (Files): Add
30842         tests/uninorm/test-u32-normcmp.h.
30843         (Depends-on): Remove uninorm/u32-normcmp.
30844
30845         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30846         tests/uninorm/test-u16-normcmp.c.
30847         * tests/uninorm/test-u16-normcmp.c: Include it.
30848         (test_nonascii): New function, extracted from main. Add some more
30849         tests.
30850         (main): Invoke test_ascii and test_nonascii.
30851         * modules/uninorm/u16-normcmp-tests (Files): Add
30852         tests/uninorm/test-u16-normcmp.h.
30853         (Depends-on): Remove uninorm/u16-normcmp.
30854
30855         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30856         tests/uninorm/test-u8-normcmp.c.
30857         * tests/uninorm/test-u8-normcmp.c: Include it.
30858         (test_nonascii): New function, extracted from main. Add some more
30859         tests.
30860         (main): Invoke test_ascii and test_nonascii.
30861         * modules/uninorm/u8-normcmp-tests (Files): Add
30862         tests/uninorm/test-u8-normcmp.h.
30863         (Depends-on): Remove uninorm/u8-normcmp.
30864
30865 2009-03-07  Bruno Haible  <bruno@clisp.org>
30866
30867         New module 'uninorm/u32-normcoll'.
30868         * lib/uninorm/u32-normcoll.c: New file.
30869         * modules/uninorm/u32-normcoll: New file.
30870
30871         New module 'uninorm/u16-normcoll'.
30872         * lib/uninorm/u16-normcoll.c: New file.
30873         * modules/uninorm/u16-normcoll: New file.
30874
30875         New module 'uninorm/u8-normcoll'.
30876         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30877         declarations.
30878         * lib/uninorm/u8-normcoll.c: New file.
30879         * lib/uninorm/u-normcoll.h: New file.
30880         * modules/uninorm/u8-normcoll: New file.
30881
30882         New module 'uninorm/u32-normxfrm'.
30883         * lib/uninorm/u32-normxfrm.c: New file.
30884         * modules/uninorm/u32-normxfrm: New file.
30885
30886         New module 'uninorm/u16-normxfrm'.
30887         * lib/uninorm/u16-normxfrm.c: New file.
30888         * modules/uninorm/u16-normxfrm: New file.
30889
30890         New module 'uninorm/u8-normxfrm'.
30891         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30892         declarations.
30893         * lib/uninorm/u8-normxfrm.c: New file.
30894         * lib/uninorm/u-normxfrm.h: New file.
30895         * modules/uninorm/u8-normxfrm: New file.
30896
30897 2009-03-07  Bruno Haible  <bruno@clisp.org>
30898
30899         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30900         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30901         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30902
30903 2009-03-07  Bruno Haible  <bruno@clisp.org>
30904
30905         New module 'memxfrm'.
30906         * lib/memxfrm.h: New file.
30907         * lib/memxfrm.c: New file.
30908         * modules/memxfrm: New file.
30909
30910 2009-03-07  Bruno Haible  <bruno@clisp.org>
30911
30912         New module 'memcmp2'.
30913         * lib/memcmp2.h: New file.
30914         * lib/memcmp2.c: New file.
30915         * modules/memcmp2: New file.
30916
30917 2009-03-07  Bruno Haible  <bruno@clisp.org>
30918
30919         Tests for module 'uninorm/decomposing-form'.
30920         * modules/uninorm/decomposing-form-tests: New file.
30921         * tests/uninorm/test-decomposing-form.c: New file.
30922
30923         New module 'uninorm/decomposing-form'.
30924         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30925         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30926         Add 'decomposing_variant' field.
30927         * lib/uninorm/decomposing-form.c: New file.
30928         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30929         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30930         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30931         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30932         * modules/uninorm/decomposing-form: New file.
30933         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30934         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30935
30936 2009-03-07  Bruno Haible  <bruno@clisp.org>
30937
30938         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30939         strings.
30940
30941 2009-03-06  Bruno Haible  <bruno@clisp.org>
30942
30943         Tests for module 'uninorm/u32-normcmp'.
30944         * tests/uninorm/test-u32-normcmp.c: New file.
30945         * modules/uninorm/u32-normcmp-tests: New file.
30946
30947         Tests for module 'uninorm/u16-normcmp'.
30948         * tests/uninorm/test-u16-normcmp.c: New file.
30949         * modules/uninorm/u16-normcmp-tests: New file.
30950
30951         Tests for module 'uninorm/u8-normcmp'.
30952         * tests/uninorm/test-u8-normcmp.c: New file.
30953         * modules/uninorm/u8-normcmp-tests: New file.
30954
30955         New module 'uninorm/u32-normcmp'.
30956         * lib/uninorm/u32-normcmp.c: New file.
30957         * modules/uninorm/u32-normcmp: New file.
30958
30959         New module 'uninorm/u16-normcmp'.
30960         * lib/uninorm/u16-normcmp.c: New file.
30961         * modules/uninorm/u16-normcmp: New file.
30962
30963         New module 'uninorm/u8-normcmp'.
30964         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30965         declarations.
30966         * lib/uninorm/u8-normcmp.c: New file.
30967         * lib/uninorm/u-normcmp.h: New file.
30968         * modules/uninorm/u8-normcmp: New file.
30969
30970 2009-03-06  Bruno Haible  <bruno@clisp.org>
30971
30972         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30973         Reported by Eric Blake.
30974
30975 2009-03-06  Eric Blake  <ebb9@byu.net>
30976             Bruno Haible  <bruno@clisp.org>
30977
30978         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30979         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30980         condition.
30981         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30982         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30983         condition.
30984         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30985
30986 2009-03-06  Eric Blake  <ebb9@byu.net>
30987
30988         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30989         to avoid compiler warnings.
30990         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30991
30992 2009-03-05  Bruno Haible  <bruno@clisp.org>
30993
30994         * tests/test-ftell.c (main): Disable test beyond end of file on
30995         FreeMiNT.
30996         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30997
30998 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30999
31000         * lib/filevercmp.c: Move hidden files up in ordering.
31001         * tests/test-filevercmp.c: Add tests for hidden files.
31002
31003 2009-03-04  Bruno Haible  <bruno@clisp.org>
31004
31005         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31006         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31007         AM_CFLAGS.
31008         Reported by Simon Josefsson.
31009
31010 2009-03-03  Bruno Haible  <bruno@clisp.org>
31011
31012         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31013         Reported by Simon Josefsson.
31014
31015         * doc/ld-version-script.texi: Update node reference.
31016
31017 2009-03-03  Bruno Haible  <bruno@clisp.org>
31018
31019         * modules/visibility (License): Change to 'unlimited'.
31020         Suggested by Simon Josefsson.
31021
31022 2009-03-03  Jim Meyering  <meyering@redhat.com>
31023
31024         unlinkdir: cannot_unlink_dir may modify process state
31025         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31026         it's neither thread-safe nor appropriate for use in a library.
31027
31028 2009-03-03  Eric Blake  <ebb9@byu.net>
31029
31030         test-closein: silence test under Darwin
31031         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31032         care if it dies from EPIPE or EBADF.
31033
31034 2009-03-03  Bruno Haible  <bruno@clisp.org>
31035
31036         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31037         earlier.
31038         * doc/visibility.texi: Fix @node and @section.
31039
31040 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31041
31042         * doc/gnulib.texi: Link to sections for ld version script and
31043         visibility.
31044         * doc/visibility.texi: Add @node and @section.
31045         * modules/ld-version-script: New module.
31046         * m4/ld-version-script.m4: New file.
31047         * doc/ld-version-script.texi: New file.
31048
31049 2009-03-02  David Lutterkort  <lutter@redhat.com>
31050
31051         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31053
31054 2009-03-02  Bruno Haible  <bruno@clisp.org>
31055
31056         * doc/visibility.texi: Mention libtool's -export-symbols option.
31057
31058 2009-03-02  Jim Meyering  <meyering@redhat.com>
31059
31060         announce-gen: new option: --no-print-checksums
31061         * build-aux/announce-gen (usage): Describe it.
31062         (print_checksums): Print a newline here, not in the [*] footnote.
31063         (main): Honor it.
31064
31065 2009-03-01  Bruno Haible  <bruno@clisp.org>
31066
31067         Use socklen_t in the native Windows replacements prototypes.
31068         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31069         instead of 'int'.
31070         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31071         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31072         * modules/getsockopt (Depends-on): Add socklen.
31073         * modules/setsockopt (Depends-on): Add socklen.
31074
31075 2009-03-01  Bruno Haible  <bruno@clisp.org>
31076
31077         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31078         least 4.2.
31079
31080 2009-03-01  Eric Blake  <ebb9@byu.net>
31081             Bruno Haible  <bruno@clisp.org>
31082
31083         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31084         error messages.
31085         * lib/wait-process.c (wait_subprocess): Omit error message about
31086         deadly signal sent to the child of termsigp != NULL.
31087
31088 2009-03-01  Eric Blake  <ebb9@byu.net>
31089
31090         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31091
31092 2009-03-01  Bruno Haible  <bruno@clisp.org>
31093
31094         Avoid a gcc warning.
31095         * tests/test-sched.c (b): Make global.
31096         Reported by Eric Blake.
31097
31098 2009-01-19  Martin Lambers  <marlam@marlam.de>
31099
31100         Provide POSIX semantics for socket timeout options on W32.
31101         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31102         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31103         * modules/setsockopt: Depend on sys_time module for struct timeval.
31104         * modules/getsockopt: Depend on sys_time module for struct timeval.
31105
31106 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31107
31108         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31109         __USE_GNU, for consistency with netdb.in.h.
31110         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31111
31112 2009-03-01  Bruno Haible  <bruno@clisp.org>
31113
31114         More support for FreeMiNT.
31115         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31116         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31117
31118 2009-03-01  Bruno Haible  <bruno@clisp.org>
31119
31120         More support for FreeMiNT.
31121         * lib/fpurge.c (fpurge): Correct last commit.
31122         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31123
31124 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31125
31126         Fix unportable awk script in vc-list-files.
31127         * build-aux/vc-list-files: In the replacement awk script, use
31128         substr with a second argument of 1, not zero.
31129         Report by Simon Josefsson.
31130
31131 2009-02-28  Bruno Haible  <bruno@clisp.org>
31132
31133         More support for FreeMiNT.
31134         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31135         to FreeMiNT today.
31136         * lib/fwriting.c (fwriting): Likewise.
31137         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31138
31139 2009-02-28  Bruno Haible  <bruno@clisp.org>
31140
31141         * tests/test-freadseek.c (main): Disable test beyond end of file on
31142         FreeMiNT.
31143         * tests/test-ftello.c (main): Likewise.
31144         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31145
31146 2009-02-28  Bruno Haible  <bruno@clisp.org>
31147
31148         Add tentative support for FreeMiNT.
31149         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31150         * lib/fpurge.c (fpurge): Likewise.
31151         * lib/freadable.c (freadable): Likewise.
31152         * lib/freading.c (freading): Likewise.
31153         * lib/freadptr.c (freadptr): Likewise.
31154         * lib/freadseek.c (freadptrinc): Likewise.
31155         * lib/fseeko.c (rpl_fseeko): Likewise.
31156         * lib/fseterr.c (fseterr): Likewise.
31157         * lib/fwritable.c (fwritable): Likewise.
31158         * lib/fwriting.c (fwriting): Likewise.
31159         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31160         Hourihane.
31161         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31162
31163 2009-02-28  Bruno Haible  <bruno@clisp.org>
31164
31165         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31166         SIGCHLD.
31167         Reported by Jim Meyering.
31168
31169 2009-02-28  Bruno Haible  <bruno@clisp.org>
31170
31171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31172         Mention the results of these tests on various platforms.
31173         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31174         order.
31175         * doc/posix-functions/printf.texi: Likewise.
31176         * doc/posix-functions/snprintf.texi: Likewise.
31177         * doc/posix-functions/sprintf.texi: Likewise.
31178         * doc/posix-functions/vfprintf.texi: Likewise.
31179         * doc/posix-functions/vprintf.texi: Likewise.
31180         * doc/posix-functions/vsnprintf.texi: Likewise.
31181         * doc/posix-functions/vsprintf.texi: Likewise.
31182         * doc/glibc-functions/obstack_printf.texi: Likewise.
31183         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31184
31185 2009-02-28  Bruno Haible  <bruno@clisp.org>
31186
31187         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31188         Reported by Loïc Minier <lool@dooz.org>.
31189
31190 2009-02-27  Bruno Haible  <bruno@clisp.org>
31191
31192         * gnulib-tool (func_import): Make the sed expression used to create the
31193         sed script for updating the .gitignore file POSIX compliant.
31194         Reported by Eric Blake.
31195
31196 2009-02-27  Bruno Haible  <bruno@clisp.org>
31197
31198         * gnulib-tool (sed): Don't alias as "sed --posix".
31199         Reported by Eric Blake.
31200
31201 2009-02-27  Bruno Haible  <bruno@clisp.org>
31202
31203         Avoid test link errors.
31204         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31205         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31206         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31207         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31208         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31209
31210 2009-02-27  Bruno Haible  <bruno@clisp.org>
31211
31212         Avoid spurious "(cached)" in configure output.
31213         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31214         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31215         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31216         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31217         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31218         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31219         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31220         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31221         Reported by Eric Blake.
31222
31223 2009-02-27  Eric Blake  <ebb9@byu.net>
31224
31225         printf: fix regression in previous patch
31226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31227
31228 2009-02-27  Bruno Haible  <bruno@clisp.org>
31229
31230         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31231         value.
31232         * lib/stdint.in.h: Likewise.
31233         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31234
31235 2009-02-27  Eric Blake  <ebb9@byu.net>
31236
31237         doc: mention more functions added in cygwin 1.7.0
31238         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31239         addition.
31240         * doc/posix-functions/open_wmemstream.texi: Likewise.
31241         * doc/posix-functions/wcsnlen.texi: Likewise.
31242         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31243         * doc/posix-functions/wcstod.texi: Likewise.
31244         * doc/posix-functions/wcstof.texi: Likewise.
31245         * doc/posix-functions/wcstoimax.texi: Likewise.
31246         * doc/posix-functions/wcstok.texi: Likewise.
31247         * doc/posix-functions/wcstoumax.texi: Likewise.
31248
31249         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31250         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31251         * doc/posix-functions/fprintf.texi: Update.
31252         * doc/posix-functions/printf.texi: Update.
31253         * doc/posix-functions/snprintf.texi: Update.
31254         * doc/posix-functions/sprintf.texi: Update.
31255         * doc/posix-functions/vfprintf.texi: Update.
31256         * doc/posix-functions/vprintf.texi: Update.
31257         * doc/posix-functions/vsnprintf.texi: Update.
31258         * doc/posix-functions/vsprintf.texi: Update.
31259         * doc/glibc-functions/obstack_printf.texi: Update.
31260         * doc/glibc-functions/obstack_vprintf.texi: Update.
31261
31262 2009-02-26  Eric Blake  <ebb9@byu.net>
31263
31264         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31265         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31266         compilation bug by using runtime conversion.
31267         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31268         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31269         * modules/ceill-tests (Files): Use nan.h.
31270         * modules/floorl-tests (Files): Likewise.
31271         * modules/frexpl-tests (Files): Likewise.
31272         * modules/isnanl-tests (Files): Likewise.
31273         * modules/ldexpl-tests (Files): Likewise.
31274         * modules/roundl-tests (Files): Likewise.
31275         * modules/truncl-tests (Files): Likewise.
31276         * tests/test-ceill.c (main): Use a working NaN.
31277         * tests/test-floorl.c (main): Likewise.
31278         * tests/test-frexpl.c (main): Likewise.
31279         * tests/test-isnan.c (test_long_double): Likewise.
31280         * tests/test-isnanl.h (main): Likewise.
31281         * tests/test-ldexpl.h (main): Likewise.
31282         * tests/test-roundl.h (main): Likewise.
31283         * tests/test-truncl.h (main): Likewise.
31284         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31285
31286 2009-02-26  Eric Blake  <ebb9@byu.net>
31287             Bruno Haible  <bruno@clisp.org>
31288
31289         Work around a *printf bug with %ls on Solaris.
31290         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31291         precision is specified, sprintf stops converting the wide string
31292         argument when the number of bytes that have been produced by this
31293         conversion equals or exceeds the precision.
31294         * doc/posix-functions/fprintf.texi: Update.
31295         * doc/posix-functions/printf.texi: Update.
31296         * doc/posix-functions/snprintf.texi: Update.
31297         * doc/posix-functions/sprintf.texi: Update.
31298         * doc/posix-functions/vfprintf.texi: Update.
31299         * doc/posix-functions/vprintf.texi: Update.
31300         * doc/posix-functions/vsnprintf.texi: Update.
31301         * doc/posix-functions/vsprintf.texi: Update.
31302         * doc/glibc-functions/obstack_printf.texi: Update.
31303         * doc/glibc-functions/obstack_vprintf.texi: Update.
31304
31305 2009-02-26  Eric Blake  <ebb9@byu.net>
31306
31307         stdlib: favor compiler check of random.h
31308         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31309         to avoid an ObjC random.h installed by Swarm.
31310
31311 2009-02-26  Bruno Haible  <bruno@clisp.org>
31312
31313         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31314         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31315         Reported by Gary V. Vaughan <gary@gnu.org>.
31316
31317 2009-02-26  Bruno Haible  <bruno@clisp.org>
31318
31319         Fix *printf behaviour regarding the %ls directive.
31320         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31321         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31322         NEED_PRINTF_DIRECTIVE_LS.
31323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31324         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31326         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31327         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31328         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31329         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31330         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31331         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31332         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31333         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31334         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31335         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31337         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31338         * doc/posix-functions/fprintf.texi: Update.
31339         * doc/posix-functions/printf.texi: Update.
31340         * doc/posix-functions/snprintf.texi: Update.
31341         * doc/posix-functions/sprintf.texi: Update.
31342         * doc/posix-functions/vfprintf.texi: Update.
31343         * doc/posix-functions/vprintf.texi: Update.
31344         * doc/posix-functions/vsnprintf.texi: Update.
31345         * doc/posix-functions/vsprintf.texi: Update.
31346         * doc/glibc-functions/obstack_printf.texi: Update.
31347         * doc/glibc-functions/obstack_vprintf.texi: Update.
31348         Reported by Eric Blake.
31349
31350 2009-02-25  Bruno Haible  <bruno@clisp.org>
31351
31352         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31353         with known value.
31354         Reported by Gary V. Vaughan <gary@gnu.org>.
31355
31356 2009-02-25  Bruno Haible  <bruno@clisp.org>
31357
31358         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31359         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31360         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31361         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31362         Reported by Gary V. Vaughan <gary@gnu.org>.
31363
31364 2009-02-25  Bruno Haible  <bruno@clisp.org>
31365
31366         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31367         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31368         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31369         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31370         Reported by Gary V. Vaughan <gary@gnu.org>.
31371
31372 2009-02-25  Eric Blake  <ebb9@byu.net>
31373
31374         tests: skip fseek/ftell tests if ungetc is broken
31375         * m4/ungetc.m4: New file.
31376         * modules/fseek-tests: Split test, so ungetc dependency is
31377         separate from rest of test.
31378         * modules/fseeko-tests: Likewise.
31379         * modules/ftell-tests: Likewise.
31380         * modules/ftello-tests: Likewise.
31381         * tests/test-fseek.c (main): Isolate ungetc dependency.
31382         * tests/test-fseeko.c (main): Likewise.
31383         * tests/test-ftell.c (main): Likewise.
31384         * tests/test-ftello.c (main): Likewise.
31385         * tests/test-fseek2.sh: New file.
31386         * tests/test-fseeko2.sh: Likewise.
31387         * tests/test-ftell2.sh: Likewise.
31388         * tests/test-ftello2.sh: Likewise.
31389
31390 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31391
31392         test-getaddrinfo: fix usage of skip return code 77
31393         * tests/test-gettaddrinfo.c: Return skip code 77 only
31394         for first occurance of skip (4x77 is not 77)
31395
31396 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31397
31398         strtod: avoid C99 decl-after-statement
31399         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31400
31401 2009-02-24  Eric Blake  <ebb9@byu.net>
31402
31403         strtod: detect HP-UX 11.31 bug
31404         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31405         Reported by Gary V. Vaughan.
31406
31407 2009-02-23  Bruno Haible  <bruno@clisp.org>
31408
31409         Fix invalid read past end of memory block.
31410         * lib/vasnprintf.c (DCHAR_SET): Define.
31411         (local_wcslen): Define only when needed.
31412         (local_strnlen, local_wcsnlen): New functions.
31413         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31414         directives that involve a conversion ourselves.
31415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31416         wcsnlen, mbrtowc, wcrtomb.
31417         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31418         * tests/test-vasprintf-posix.c (test_function): Likewise.
31419         * tests/test-snprintf-posix.h (test_function): Likewise.
31420         * tests/test-sprintf-posix.h (test_function): Likewise.
31421         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31422
31423 2009-02-22  Bruno Haible  <bruno@clisp.org>
31424
31425         Implement new clarified decomposition of Hangul syllables.
31426         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31427         of type LTV, return only a pairwise decomposition.
31428         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31429         Likewise.
31430         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31431         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31432         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31433
31434 2009-02-22  Bruno Haible  <bruno@clisp.org>
31435
31436         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31437         zero-length results and shrink excess allocated memory.
31438         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31439         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31440         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31441         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31442         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31443         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31444         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31445         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31446         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31447         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31448         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31449         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31450
31451 2009-02-21  Bruno Haible  <bruno@clisp.org>
31452
31453         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31454         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31455         spaces after a period. Put a space between a macro name and its
31456         argument list. Trivial rewordings.
31457         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31458         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31459         (main): Return 0 explicitly.
31460
31461 2009-02-21  Bruno Haible  <bruno@clisp.org>
31462
31463         Tests for module 'uninorm/filter'.
31464         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31465         * modules/uninorm/filter-tests: New file.
31466
31467         New module 'uninorm/filter'.
31468         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31469         uninorm_filter_flush, uninorm_filter_free): New declarations.
31470         * lib/uninorm/uninorm-filter.c: New file.
31471         * modules/uninorm/filter: New file.
31472
31473 2009-02-21  Bruno Haible  <bruno@clisp.org>
31474
31475         Tests for module 'uninorm/nfkc'.
31476         * tests/uninorm/test-nfkc.c: New file.
31477         * tests/uninorm/test-u8-nfkc.c: New file.
31478         * tests/uninorm/test-u16-nfkc.c: New file.
31479         * tests/uninorm/test-u32-nfkc.c: New file.
31480         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31481         * tests/uninorm/test-u32-nfkc-big.c: New file.
31482         * modules/uninorm/nfkc-tests: New file.
31483
31484         New module 'uninorm/nfkc'.
31485         * lib/uninorm/nfkc.c: New file.
31486         * modules/uninorm/nfkc: New file.
31487
31488         Tests for module 'uninorm/nfkd'.
31489         * tests/uninorm/test-nfkd.c: New file.
31490         * tests/uninorm/test-u8-nfkd.c: New file.
31491         * tests/uninorm/test-u16-nfkd.c: New file.
31492         * tests/uninorm/test-u32-nfkd.c: New file.
31493         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31494         * tests/uninorm/test-u32-nfkd-big.c: New file.
31495         * modules/uninorm/nfkd-tests: New file.
31496
31497         New module 'uninorm/nfkd'.
31498         * lib/uninorm/nfkd.c: New file.
31499         * modules/uninorm/nfkd: New file.
31500
31501         Tests for module 'uninorm/nfc'.
31502         * tests/uninorm/test-nfc.c: New file.
31503         * tests/uninorm/test-u8-nfc.c: New file.
31504         * tests/uninorm/test-u16-nfc.c: New file.
31505         * tests/uninorm/test-u32-nfc.c: New file.
31506         * tests/uninorm/test-u32-nfc-big.sh: New file.
31507         * tests/uninorm/test-u32-nfc-big.c: New file.
31508         * modules/uninorm/nfc-tests: New file.
31509
31510         New module 'uninorm/nfc'.
31511         * lib/uninorm/nfc.c: New file.
31512         * modules/uninorm/nfc: New file.
31513
31514         Tests for module 'uninorm/nfd'.
31515         * tests/uninorm/test-nfd.c: New file.
31516         * tests/uninorm/test-u8-nfd.c: New file.
31517         * tests/uninorm/test-u16-nfd.c: New file.
31518         * tests/uninorm/test-u32-nfd.c: New file.
31519         * tests/uninorm/test-u32-nfd-big.sh: New file.
31520         * tests/uninorm/test-u32-nfd-big.c: New file.
31521         * tests/uninorm/test-u32-normalize-big.h: New file.
31522         * tests/uninorm/test-u32-normalize-big.c: New file.
31523         * tests/uninorm/NormalizationTest.txt: New file, created from
31524         Unicode 5.1.0 NormalizationTest.txt.
31525         * modules/uninorm/nfd-tests: New file.
31526
31527         New module 'uninorm/nfd'.
31528         * lib/uninorm/nfd.c: New file.
31529         * modules/uninorm/nfd: New file.
31530
31531         New module 'uninorm/u32-normalize'.
31532         * lib/uninorm/u32-normalize.c: New file.
31533         * modules/uninorm/u32-normalize: New file.
31534
31535         New module 'uninorm/u16-normalize'.
31536         * lib/uninorm/u16-normalize.c: New file.
31537         * modules/uninorm/u16-normalize: New file.
31538
31539         New module 'uninorm/u8-normalize'.
31540         * lib/uninorm/u8-normalize.c: New file.
31541         * lib/uninorm/normalize-internal.h: New file.
31542         * lib/uninorm/u-normalize-internal.h: New file.
31543         * modules/uninorm/u8-normalize: New file.
31544
31545         New module 'uninorm/decompose-internal'.
31546         * lib/uninorm/decompose-internal.c: New file.
31547         * modules/uninorm/decompose-internal: New file.
31548
31549         Tests for module 'uninorm/composition'.
31550         * tests/uninorm/test-composition.c: New file.
31551         * modules/uninorm/composition-tests: New file.
31552
31553         New module 'uninorm/composition'.
31554         * lib/uninorm/composition.c: New file.
31555         * lib/uninorm/composition-table.gperf: New file, generated by
31556         gen-uni-tables.
31557         * modules/uninorm/composition: New file.
31558
31559         Tests for module 'uninorm/compat-decomposition'.
31560         * tests/uninorm/test-compat-decomposition.c: New file.
31561         * modules/uninorm/compat-decomposition-tests: New file.
31562
31563         New module 'uninorm/compat-decomposition'.
31564         * lib/uninorm/decompose-internal.h: New file.
31565         * lib/uninorm/compat-decomposition.c: New file.
31566         * modules/uninorm/compat-decomposition: New file.
31567
31568         Tests for module 'uninorm/canonical-decomposition'.
31569         * tests/uninorm/test-canonical-decomposition.c: New file.
31570         * modules/uninorm/canonical-decomposition-tests: New file.
31571
31572         New module 'uninorm/canonical-decomposition'.
31573         * lib/uninorm/canonical-decomposition.c: New file.
31574         * modules/uninorm/canonical-decomposition: New file.
31575
31576         Tests for module 'uninorm/decomposition'.
31577         * tests/uninorm/test-decomposition.c: New file.
31578         * modules/uninorm/decomposition-tests: New file.
31579
31580         New module 'uninorm/decomposition'.
31581         * lib/uninorm/decomposition.c: New file.
31582         * modules/uninorm/decomposition: New file.
31583
31584         New module 'uninorm/decomposition-table'.
31585         * lib/uninorm/decomposition-table.h: New file.
31586         * lib/uninorm/decomposition-table.c: New file.
31587         * lib/uninorm/decomposition-table1.h: New file, generated by
31588         gen-uni-tables.
31589         * lib/uninorm/decomposition-table2.h: New file, generated by
31590         gen-uni-tables.
31591         * modules/uninorm/decomposition-table: New file.
31592
31593         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31594         (UC_DECOMP_*): New enumeration items.
31595         (get_decomposition): New function.
31596         (struct decomp_table): New type.
31597         (output_decomposition, output_decomposition_tables): New functions.
31598         (unicode_composition_exclusions): New variable.
31599         (fill_composition_exclusions, debug_output_composition_tables): New
31600         functions.
31601         (main): Accept one more argument. Invoke fill_composition_exclusions.
31602         Output decomposition and composition tables.
31603
31604         New module 'uninorm/base'.
31605         * lib/uninorm.h: New file.
31606         * lib/unictype.h: Update comment.
31607         * modules/uninorm/base: New file.
31608
31609 2009-02-21  David Lutterkort  <lutter@redhat.com>
31610
31611         Tests for module 'safe-alloc'.
31612         * tests/test-safe-alloc.c: New file.
31613         * modules/safe-alloc-tests: New file.
31614
31615         New module 'safe-alloc'.
31616         * lib/safe-alloc.h: New file.
31617         * lib/safe-alloc.c: New file.
31618         * m4/safe-alloc.m4: New file.
31619         * modules/safe-alloc: New file.
31620         * doc/safe-alloc.texi: New file.
31621         * doc/gnulib.texi: Include it.
31622         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31623         safe-alloc.
31624
31625 2009-02-18  Bruno Haible  <bruno@clisp.org>
31626
31627         Fix link error on non-glibc systems.
31628         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31629         variable.
31630         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31631
31632 2009-02-18  Jim Meyering  <meyering@redhat.com>
31633
31634         fts: avoid used-uninitialized error due to recent change
31635         * lib/fts.c (fts_read): Guard uses of the new member,
31636         parent->fts_n_dirs_remaining, since it's not relevant for
31637         the parent of a directory specified on the command-line.
31638
31639 2009-02-17  James Youngman  <jay@gnu.org>
31640             Bruno Haible  <bruno@clisp.org>
31641
31642         * m4/include_next.m4: Reformulate comment.
31643
31644 2009-02-16  Jim Meyering  <meyering@redhat.com>
31645
31646         fts: add #if guards so that the fts_lgpl module still builds
31647         * lib/fts.c: Guard just-added hash-table-using parts with
31648         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31649         Reported by Simon Josefsson.
31650
31651 2009-02-15  Bruno Haible  <bruno@clisp.org>
31652
31653         * modules/array-mergesort-tests: New file.
31654         * tests/test-array-mergesort.c: New file.
31655
31656         New module 'array-mergesort'.
31657         * modules/array-mergesort: New file.
31658         * lib/array-mergesort.h: New file.
31659
31660 2009-02-15  Bruno Haible  <bruno@clisp.org>
31661
31662         Fix 2009-02-07 commit.
31663         * lib/gen-uni-tables.c (output_predicate, output_category,
31664         output_combclass, output_bidi_category, output_decimal_digit,
31665         output_digit, output_numeric, output_mirror, output_scripts,
31666         output_ident_category, output_simple_mapping): Fix format directives.
31667         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31668
31669 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31670
31671         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31672         fixes are available from IBM.
31673
31674 2009-02-13  Jim Meyering  <meyering@redhat.com>
31675
31676         fts: arrange not to stat non-directories in more cases
31677         This makes GNU find (when it doesn't need to stat each file)
31678         *much* more efficient at traversing reiserfs file systems.
31679         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31680         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31681         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31682         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31683         (leaf_optimization_applies): New function.
31684         (LCO_hash, LCO_compare): New helper functions.
31685         (link_count_optimize_ok): New function.
31686         (fts_stat): Initialize new member (if dir).
31687         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31688         we've just stat'ed a directory.  Skip the stat call when possible.
31689         ---
31690         Note this AFS-related exchange:
31691         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31692         and note find's pioctl call in find/fstype.c.
31693         But that is necessary only if you want to enable the
31694         optimization for AFS, and for now, I don't.
31695
31696         fts: move a function definition "up" (no semantic change)
31697         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31698         "up" to precede upcoming use of a related function.
31699
31700 2009-02-11  Jim Meyering  <meyering@redhat.com>
31701
31702         fts: correct internal computation of nlinks (optimization-related)
31703         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31704         whether the current entry is a directory, so don't test it.
31705
31706 2009-02-10  Bruno Haible  <bruno@clisp.org>
31707
31708         Tests for module 'uniwbrk/ulc-wordbreaks'.
31709         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31710         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31711         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31712
31713         Tests for module 'uniwbrk/u32-wordbreaks'.
31714         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31715         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31716
31717         Tests for module 'uniwbrk/u16-wordbreaks'.
31718         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31719         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31720
31721         Tests for module 'uniwbrk/u8-wordbreaks'.
31722         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31723         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31724
31725 2009-02-10  Bruno Haible  <bruno@clisp.org>
31726
31727         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31728         property.
31729         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31730         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31731         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31732
31733 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31734
31735         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31736         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31737
31738 2009-02-10  Bruno Haible  <bruno@clisp.org>
31739
31740         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31741         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31742         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31743         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31744         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31745         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31746
31747 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31748
31749         * lib/sockets.h (gl_fd_to_handle): New function.
31750
31751         * tests/test-sockets.c: Call gl_fd_to_handle.
31752
31753 2009-02-09  Bruno Haible  <bruno@clisp.org>
31754
31755         * doc/havelib.texi: Document the conventions on bi-arch systems.
31756
31757 2009-02-08  Bruno Haible  <bruno@clisp.org>
31758
31759         Document the AC_LIB_LINKFLAGS macro.
31760         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31761         * doc/gnulib.texi: Include it.
31762
31763 2009-02-08  Bruno Haible  <bruno@clisp.org>
31764
31765         Fix wrong order of sections, compared to TOC.
31766         * doc/gnulib.texi: Include relocatable-maint.texi after the
31767         "Regular expressions" node, not before.
31768
31769 2009-02-08  Bruno Haible  <bruno@clisp.org>
31770
31771         Tests for module 'unicase/totitle'.
31772         * modules/unicase/totitle-tests: New file.
31773
31774         Tests for module 'unicase/tolower'.
31775         * modules/unicase/tolower-tests: New file.
31776
31777         Tests for module 'unicase/toupper'.
31778         * modules/unicase/toupper-tests: New file.
31779         * tests/unicase/test-mapping-part1.h: New file.
31780         * tests/unicase/test-mapping-part2.h: New file.
31781
31782         New module 'unicase/totitle'.
31783         * modules/unicase/totitle: New file.
31784         * lib/unicase/totitle.c: New file.
31785
31786         New module 'unicase/tolower'.
31787         * modules/unicase/tolower: New file.
31788         * lib/unicase/tolower.c: New file.
31789
31790         New module 'unicase/toupper'.
31791         * modules/unicase/toupper: New file.
31792         * lib/unicase/toupper.c: New file.
31793         * lib/unicase/simple-mapping.h: New file.
31794
31795         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31796         (mapping_table): New structure.
31797         (output_simple_mapping): New function.
31798         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31799         * modules/gen-uni-tables (Description): Update.
31800         * lib/unicase/toupper.h: New file, automatically generated by
31801         gen-uni-tables.
31802         * lib/unicase/tolower.h: New file, automatically generated by
31803         gen-uni-tables.
31804         * lib/unicase/totitle.h: New file, automatically generated by
31805         gen-uni-tables.
31806         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31807         gen-uni-tables.
31808         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31809         gen-uni-tables.
31810         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31811         gen-uni-tables.
31812
31813         New module 'unicase/base'.
31814         * modules/unicase/base: New file.
31815         * lib/unicase.h: New file.
31816
31817 2009-02-08  Bruno Haible  <bruno@clisp.org>
31818
31819         New module 'uniwbrk/ulc-wordbreaks'.
31820         * modules/uniwbrk/ulc-wordbreaks: New file.
31821         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31822
31823         New module 'uniwbrk/u32-wordbreaks'.
31824         * modules/uniwbrk/u32-wordbreaks: New file.
31825         * lib/uniwbrk/u32-wordbreaks.c: New file.
31826
31827         New module 'uniwbrk/u16-wordbreaks'.
31828         * modules/uniwbrk/u16-wordbreaks: New file.
31829         * lib/uniwbrk/u16-wordbreaks.c: New file.
31830
31831         New module 'uniwbrk/u8-wordbreaks'.
31832         * modules/uniwbrk/u8-wordbreaks: New file.
31833         * lib/uniwbrk/u8-wordbreaks.c: New file.
31834         * lib/uniwbrk/u-wordbreaks.h: New file.
31835
31836         New module 'uniwbrk/table'.
31837         * modules/uniwbrk/table: New file.
31838         * lib/uniwbrk/wbrktable.h: New file.
31839         * lib/uniwbrk/wbrktable.c: New file.
31840
31841         New module 'uniwbrk/wordbreak-property'.
31842         * modules/uniwbrk/wordbreak-property: New file.
31843         * lib/uniwbrk/wordbreak-property.c: New file.
31844
31845         * lib/gen-uni-tables.c (WBP_*): New enum items.
31846         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31847         (unicode_org_wbp): New variable.
31848         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31849         New functions.
31850         (wbp_table): New structure.
31851         (output_wbp, output_wbrk_tables): New functions.
31852         (main): Accept additional argument. Invoke fill_org_wbp,
31853         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31854         output_wbrk_tables.
31855         * modules/gen-uni-tables (Description): Update.
31856         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31857         gen-uni-tables.
31858
31859         New module 'uniwbrk/base'.
31860         * modules/uniwbrk/base: New file.
31861         * lib/uniwbrk.h: New file.
31862
31863 2009-02-08  Bruno Haible  <bruno@clisp.org>
31864
31865         Update to Unicode 5.1.0.
31866         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31867         U+2185..U+2188.
31868         (is_property_default_ignorable_code_point): Don't include characters
31869         of category Cc or Cs and not-a-characters.
31870         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31871         U+0D79, U+109E, U+109F, U+A60C.
31872         * lib/unictype/bidi_of.h: Regenerated.
31873         * lib/unictype/blocks.h: Regenerated.
31874         * lib/unictype/categ_C.h: Regenerated.
31875         * lib/unictype/categ_Cf.h: Regenerated.
31876         * lib/unictype/categ_Cn.h: Regenerated.
31877         * lib/unictype/categ_L.h: Regenerated.
31878         * lib/unictype/categ_Ll.h: Regenerated.
31879         * lib/unictype/categ_Lm.h: Regenerated.
31880         * lib/unictype/categ_Lo.h: Regenerated.
31881         * lib/unictype/categ_Lu.h: Regenerated.
31882         * lib/unictype/categ_M.h: Regenerated.
31883         * lib/unictype/categ_Mc.h: Regenerated.
31884         * lib/unictype/categ_Me.h: Regenerated.
31885         * lib/unictype/categ_Mn.h: Regenerated.
31886         * lib/unictype/categ_N.h: Regenerated.
31887         * lib/unictype/categ_Nd.h: Regenerated.
31888         * lib/unictype/categ_Nl.h: Regenerated.
31889         * lib/unictype/categ_No.h: Regenerated.
31890         * lib/unictype/categ_P.h: Regenerated.
31891         * lib/unictype/categ_Pd.h: Regenerated.
31892         * lib/unictype/categ_Pe.h: Regenerated.
31893         * lib/unictype/categ_Pf.h: Regenerated.
31894         * lib/unictype/categ_Pi.h: Regenerated.
31895         * lib/unictype/categ_Po.h: Regenerated.
31896         * lib/unictype/categ_Ps.h: Regenerated.
31897         * lib/unictype/categ_S.h: Regenerated.
31898         * lib/unictype/categ_Sk.h: Regenerated.
31899         * lib/unictype/categ_Sm.h: Regenerated.
31900         * lib/unictype/categ_So.h: Regenerated.
31901         * lib/unictype/categ_of.h: Regenerated.
31902         * lib/unictype/combining.h: Regenerated.
31903         * lib/unictype/ctype_alnum.h: Regenerated.
31904         * lib/unictype/ctype_alpha.h: Regenerated.
31905         * lib/unictype/ctype_graph.h: Regenerated.
31906         * lib/unictype/ctype_lower.h: Regenerated.
31907         * lib/unictype/ctype_print.h: Regenerated.
31908         * lib/unictype/ctype_punct.h: Regenerated.
31909         * lib/unictype/ctype_upper.h: Regenerated.
31910         * lib/unictype/decdigit.h: Regenerated.
31911         * lib/unictype/digit.h: Regenerated.
31912         * lib/unictype/mirror.h: Regenerated.
31913         * lib/unictype/numeric.h: Regenerated.
31914         * lib/unictype/pr_alphabetic.h: Regenerated.
31915         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31916         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31917         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31918         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31919         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31920         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31921         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31922         * lib/unictype/pr_combining.h: Regenerated.
31923         * lib/unictype/pr_dash.h: Regenerated.
31924         * lib/unictype/pr_decimal_digit.h: Regenerated.
31925         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31926         * lib/unictype/pr_deprecated.h: Regenerated.
31927         * lib/unictype/pr_diacritic.h: Regenerated.
31928         * lib/unictype/pr_extender.h: Regenerated.
31929         * lib/unictype/pr_format_control.h: Regenerated.
31930         * lib/unictype/pr_grapheme_base.h: Regenerated.
31931         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31932         * lib/unictype/pr_grapheme_link.h: Regenerated.
31933         * lib/unictype/pr_id_continue.h: Regenerated.
31934         * lib/unictype/pr_id_start.h: Regenerated.
31935         * lib/unictype/pr_ideographic.h: Regenerated.
31936         * lib/unictype/pr_ignorable_control.h: Regenerated.
31937         * lib/unictype/pr_lowercase.h: Regenerated.
31938         * lib/unictype/pr_math.h: Regenerated.
31939         * lib/unictype/pr_numeric.h: Regenerated.
31940         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31941         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31942         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31943         * lib/unictype/pr_other_id_continue.h: Regenerated.
31944         * lib/unictype/pr_other_lowercase.h: Regenerated.
31945         * lib/unictype/pr_other_math.h: Regenerated.
31946         * lib/unictype/pr_punctuation.h: Regenerated.
31947         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31948         * lib/unictype/pr_soft_dotted.h: Regenerated.
31949         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31950         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31951         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31952         * lib/unictype/pr_uppercase.h: Regenerated.
31953         * lib/unictype/pr_xid_continue.h: Regenerated.
31954         * lib/unictype/pr_xid_start.h: Regenerated.
31955         * lib/unictype/pr_zero_width.h: Regenerated.
31956         * lib/unictype/scripts.h: Regenerated.
31957         * lib/unictype/scripts_byname.gperf: Regenerated.
31958         * lib/unictype/sy_java_ident.h: Regenerated.
31959         * lib/unilbrk/lbrkprop1.h: Regenerated.
31960         * lib/unilbrk/lbrkprop2.h: Regenerated.
31961         * tests/unictype/test-categ_C.c: Regenerated.
31962         * tests/unictype/test-categ_Cf.c: Regenerated.
31963         * tests/unictype/test-categ_Cn.c: Regenerated.
31964         * tests/unictype/test-categ_L.c: Regenerated.
31965         * tests/unictype/test-categ_Ll.c: Regenerated.
31966         * tests/unictype/test-categ_Lm.c: Regenerated.
31967         * tests/unictype/test-categ_Lo.c: Regenerated.
31968         * tests/unictype/test-categ_Lu.c: Regenerated.
31969         * tests/unictype/test-categ_M.c: Regenerated.
31970         * tests/unictype/test-categ_Mc.c: Regenerated.
31971         * tests/unictype/test-categ_Me.c: Regenerated.
31972         * tests/unictype/test-categ_Mn.c: Regenerated.
31973         * tests/unictype/test-categ_N.c: Regenerated.
31974         * tests/unictype/test-categ_Nd.c: Regenerated.
31975         * tests/unictype/test-categ_Nl.c: Regenerated.
31976         * tests/unictype/test-categ_No.c: Regenerated.
31977         * tests/unictype/test-categ_P.c: Regenerated.
31978         * tests/unictype/test-categ_Pd.c: Regenerated.
31979         * tests/unictype/test-categ_Pe.c: Regenerated.
31980         * tests/unictype/test-categ_Pf.c: Regenerated.
31981         * tests/unictype/test-categ_Pi.c: Regenerated.
31982         * tests/unictype/test-categ_Po.c: Regenerated.
31983         * tests/unictype/test-categ_Ps.c: Regenerated.
31984         * tests/unictype/test-categ_S.c: Regenerated.
31985         * tests/unictype/test-categ_Sk.c: Regenerated.
31986         * tests/unictype/test-categ_Sm.c: Regenerated.
31987         * tests/unictype/test-categ_So.c: Regenerated.
31988         * tests/unictype/test-ctype_alnum.c: Regenerated.
31989         * tests/unictype/test-ctype_alpha.c: Regenerated.
31990         * tests/unictype/test-ctype_graph.c: Regenerated.
31991         * tests/unictype/test-ctype_lower.c: Regenerated.
31992         * tests/unictype/test-ctype_print.c: Regenerated.
31993         * tests/unictype/test-ctype_punct.c: Regenerated.
31994         * tests/unictype/test-ctype_upper.c: Regenerated.
31995         * tests/unictype/test-decdigit.h: Regenerated.
31996         * tests/unictype/test-digit.h: Regenerated.
31997         * tests/unictype/test-numeric.h: Regenerated.
31998         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31999         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32000         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32001         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32002         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32003         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32004         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32005         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32006         * tests/unictype/test-pr_combining.c: Regenerated.
32007         * tests/unictype/test-pr_dash.c: Regenerated.
32008         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32009         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32010         * tests/unictype/test-pr_deprecated.c: Regenerated.
32011         * tests/unictype/test-pr_diacritic.c: Regenerated.
32012         * tests/unictype/test-pr_extender.c: Regenerated.
32013         * tests/unictype/test-pr_format_control.c: Regenerated.
32014         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32015         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32016         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32017         * tests/unictype/test-pr_id_continue.c: Regenerated.
32018         * tests/unictype/test-pr_id_start.c: Regenerated.
32019         * tests/unictype/test-pr_ideographic.c: Regenerated.
32020         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32021         * tests/unictype/test-pr_lowercase.c: Regenerated.
32022         * tests/unictype/test-pr_math.c: Regenerated.
32023         * tests/unictype/test-pr_numeric.c: Regenerated.
32024         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32025         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32026         Regenerated.
32027         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32028         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32029         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32030         * tests/unictype/test-pr_other_math.c: Regenerated.
32031         * tests/unictype/test-pr_punctuation.c: Regenerated.
32032         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32033         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32034         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32035         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32036         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32037         * tests/unictype/test-pr_uppercase.c: Regenerated.
32038         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32039         * tests/unictype/test-pr_xid_start.c: Regenerated.
32040         * tests/unictype/test-pr_zero_width.c: Regenerated.
32041
32042         Update to Unicode 5.1.0.
32043         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32044         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32045         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32046         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32047         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32048         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32049         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32050         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32051         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32052         (nonspacing_table_ind): Update.
32053         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32054
32055         Update to Unicode 5.1.0.
32056         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32057         code transform.
32058         * lib/uniname/uniname.c (unicode_character_name,
32059         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32060         * lib/uniname/uninames.h: Regenerated.
32061         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32062
32063 2009-02-07  Bruno Haible  <bruno@clisp.org>
32064
32065         Merge gen-ctype and gen-lbrk into a single program.
32066         * lib/gen-uni-tables.c: New file, incorporating
32067         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32068         Add directory prefixes to the names of the generated files.
32069         * lib/unictype/gen-ctype.c: Remove file.
32070         * lib/unilbrk/gen-lbrk.c: Remove file.
32071         * modules/gen-uni-tables: New file.
32072         * modules/unictype/gen-ctype: Remove file.
32073         * modules/unilbrk/gen-lbrk: Remove file.
32074
32075 2009-02-07  Bruno Haible  <bruno@clisp.org>
32076
32077         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32078
32079         New module 'unistr/u32-strcoll'.
32080         * modules/unistr/u32-strcoll: New file.
32081         * lib/unistr/u32-strcoll.c: New file.
32082
32083         New module 'unistr/u16-strcoll'.
32084         * modules/unistr/u16-strcoll: New file.
32085         * lib/unistr/u16-strcoll.c: New file.
32086
32087         New module 'unistr/u8-strcoll'.
32088         * modules/unistr/u8-strcoll: New file.
32089         * lib/unistr/u8-strcoll.c: New file.
32090         * lib/unistr/u-strcoll.h: New file.
32091
32092 2009-02-07  Bruno Haible  <bruno@clisp.org>
32093
32094         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32095         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32096         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32097         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32098         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32099         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32100
32101 2009-02-07  Bruno Haible  <bruno@clisp.org>
32102
32103         Make 64-bit clean.
32104         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32105         output_combclass, output_bidi_category, output_decimal_digit,
32106         output_digit, output_numeric, output_mirror, output_scripts,
32107         output_ident_category): Use proper width specifier in format strings.
32108
32109 2009-02-07  Bruno Haible  <bruno@clisp.org>
32110
32111         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32112         failure behaviour.
32113
32114 2009-02-07  Jim Meyering  <meyering@redhat.com>
32115
32116         regex: avoid compilation failure with upcoming gcc-4.4
32117         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32118         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32119         "... error: integer overflow in preprocessor expression".
32120
32121 2009-02-05  Ben Pfaff  <blp@gnu.org>
32122
32123         Fix link errors on Windows when close module is used.
32124         * modules/close: Add $(LIB_CLOSE) to Link section.
32125         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32126         $(LIB_CLOSE) on Windows.
32127
32128 2009-02-05  Jim Meyering  <meyering@redhat.com>
32129
32130         still avoid unused-parameter warnings, but do it cleanly
32131         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32132         (get_fs_usage): Cast to void instead.
32133         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32134         (dev_from_mount_options, read_file_system_list): Cast to void.
32135         Prompted by Bruno Haible.
32136
32137 2009-02-04  Jim Meyering  <meyering@redhat.com>
32138
32139         fsusage.c: correct copyright year
32140         * lib/fsusage.c: Reflect year in which the change is pushed into
32141
32142         avoid misc. warnings
32143         * lib/fsusage.c (UNUSED_PARAM): Define.
32144         (get_fs_usage): Mark parameter "disk" as unused.
32145         * lib/getugroups.c (getgrent): Use "void" in prototype.
32146         * lib/mountlist.c: Mark unused parameters.
32147         (read_file_system_list): Declare a local with "const".
32148         * lib/nanosleep.c (getnow): Declare static.
32149         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32150
32151         dirfd: set errno upon failure
32152         * lib/dirfd.c: Include <errno.h>.
32153         Set errno to ENOTSUP when returning -1.
32154         * modules/dirfd (Depends-on): Add errno.
32155         Suggested by John Kodis <kodis@comcast.net>.
32156
32157 2009-02-01  Bruno Haible  <bruno@clisp.org>
32158
32159         Don't assume sizeof (long) >= sizeof (void *).
32160         * lib/memcmp.c: Include stdint.h.
32161         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32162         srcp2 to 'const byte *'.
32163         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32164         types to uintptr_t.
32165         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32166         * modules/memcmp (Depends-on): Add stdint.
32167         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32168
32169 2009-01-30  Eric Blake  <ebb9@byu.net>
32170
32171         fix more require-before-expand issues
32172         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32173         expand, AC_PROG_AWK.
32174         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32175
32176 2009-01-28  Eric Blake  <ebb9@byu.net>
32177
32178         version-etc: use consistent URL formatting
32179         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32180         Improve formatting.  Use fputs for string without %.
32181
32182 2009-01-28  Jim Meyering  <meyering@redhat.com>
32183
32184         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32185         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32186         "underquoted definition of NAME" from autoconf-2.59.
32187
32188 2009-01-28  Bruno Haible  <bruno@clisp.org>
32189
32190         * doc/gnulib.texi: Add "Obsolete modules" to index.
32191
32192 2009-01-28  Jim Meyering  <meyering@redhat.com>
32193
32194         useless-if-before-free: recognize more variants
32195         * build-aux/useless-if-before-free: Also recognize e.g.,
32196         if (NULL != p) free (p);
32197
32198 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32199
32200         test-getaddrinfo: skip (don't fail) this test when there's no network
32201         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32202         on the presumption that it means you lack network access.
32203
32204 2009-01-26  Jim Meyering  <meyering@redhat.com>
32205
32206         fflush: avoid warnings on modern systems
32207         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32208         pos and result, into scopes where they're used.
32209
32210 2009-01-26  Eric Blake  <ebb9@byu.net>
32211
32212         Silence warning reintroduced by recent extensions patch.
32213         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32214         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32215         autoconf.
32216
32217         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32218         * m4/00gnulib.m4: New file.
32219         * gnulib-tool (func_get_filelist): Always use it.
32220         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32221         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32222
32223 2009-01-25  Bruno Haible  <bruno@clisp.org>
32224
32225         Make test-quotearg work on MacOS X and AIX.
32226         * tests/test-quotearg.sh: New file.
32227         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32228         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32229         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32230         include <libintl.h>.
32231         (fake_locale): Remove variable.
32232         (gettext, dgettext, dcgettext): Remove functions.
32233         (main): Instead of setting a fake locale, set a real locale. Call
32234         textdomain and bindtextdomain.
32235         * modules/quotearg-tests (Files): Add the new files.
32236         (Depends-on): Add gettext, setenv, unsetenv.
32237         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32238         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32239         Augment TESTS_ENVIRONMENT.
32240
32241 2009-01-25  Bruno Haible  <bruno@clisp.org>
32242
32243         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32244         fr_FR.ISO8859-1 locale on MacOS X.
32245         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32246         ja_JP.eucJP locale on MacOS X.
32247         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32248         zh_CN.GB18030 locale on MacOS X.
32249
32250 2009-01-25  Bruno Haible  <bruno@clisp.org>
32251
32252         Avoid link errors on MacOS X 10.3.
32253         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32254         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32255
32256 2009-01-25  Bruno Haible  <bruno@clisp.org>
32257
32258         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32259         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32260         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32261         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32262         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32263         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32264         posix_spawnattr_init, posix_spawnattr_setsigmask,
32265         posix_spawnattr_setflags, posix_spawnattr_destroy.
32266
32267         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32268         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32269         * modules/execute (Files): Remove m4/posix_spawn.m4.
32270         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32271         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32272         posix_spawnattr_init, posix_spawnattr_setsigmask,
32273         posix_spawnattr_setflags, posix_spawnattr_destroy.
32274
32275 2009-01-25  Bruno Haible  <bruno@clisp.org>
32276
32277         * lib/glthread/threadlib.c: Include <stdlib.h>.
32278
32279 2009-01-25  Bruno Haible  <bruno@clisp.org>
32280
32281         * lib/glthread/threadlib.c (dummy): New declaration.
32282
32283 2009-01-25  Bruno Haible  <bruno@clisp.org>
32284
32285         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32286         multibyte characters also for the GB18030 encoding. Don't crash when
32287         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32288
32289 2009-01-25  Bruno Haible  <bruno@clisp.org>
32290
32291         Avoid redefining 'struct random_data' on OSF/1 5.1.
32292         * lib/stdlib.in.h: Include <random.h> if it exists.
32293         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32294         HAVE_RANDOM_H. Include <random.h> when testing whether
32295         'struct random_data' exists.
32296         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32297
32298 2009-01-25  Bruno Haible  <bruno@clisp.org>
32299
32300         Don't install charset.alias on MacOS X >= 10.3.
32301         * lib/localcharset.c (DARWIN7): New macro.
32302         (get_charset_aliases): Hardcode the result for Darwin7.
32303         * modules/localcharset (install-exec-local): Don't install
32304         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32305
32306 2009-01-25  Bruno Haible  <bruno@clisp.org>
32307
32308         Don't install charset.alias on mingw and Cygwin.
32309         * modules/localcharset (install-exec-local): Don't install
32310         charset.alias on mingw and Cygwin, if the file does not yet exist.
32311         The result for these platforms is hardcoded in localcharset.c.
32312
32313 2009-01-25  Bruno Haible  <bruno@clisp.org>
32314
32315         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32317         before requiring AC_USE_SYSTEM_EXTENSIONS.
32318
32319 2009-01-25  Jim Meyering  <meyering@redhat.com>
32320
32321         c-strtod: avoid warnings
32322         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32323         "assignment discards qualifiers from pointer target type" warnings.
32324
32325 2009-01-24  Bruno Haible  <bruno@clisp.org>
32326
32327         Add support for non-UTF-8 locales on MacOS X.
32328         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32329         canonical encodings. For Darwin 7 and newer, don't map traditional
32330         encodings to UTF-8.
32331         Reported by Vincent Lefevre <vincent@vinc17.org>
32332         at <http://savannah.gnu.org/bugs/?25235>.
32333
32334 2009-01-24  Bruno Haible  <bruno@clisp.org>
32335
32336         * doc/gnulib.texi (Obsolete modules): New section.
32337         Reported by Mike Frysinger <vapier@gentoo.org>.
32338
32339 2009-01-24  Bruno Haible  <bruno@clisp.org>
32340
32341         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32342         (%.dvi): New rule.
32343
32344 2009-01-24  Bruno Haible  <bruno@clisp.org>
32345
32346         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32347         Reported by Eric Blake.
32348
32349 2009-01-24  Bruno Haible  <bruno@clisp.org>
32350
32351         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32352         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32353         Reported by Gary V. Vaughan <gary@gnu.org>.
32354
32355 2009-01-24  Bruno Haible  <bruno@clisp.org>
32356
32357         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32358
32359 2009-01-23  Bruno Haible  <bruno@clisp.org>
32360
32361         Make c-strtod, c-strtold usable in libraries.
32362         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32363         (C_STRTOD): Call strdup instead of xstrdup.
32364         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32365         * modules/c-strtold (Depends-on): Likewise.
32366         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32367         * NEWS: Mention the change.
32368         Reported by Michael Gold <mgold@ncf.ca>.
32369
32370 2009-01-23  Jim Meyering  <meyering@redhat.com>
32371
32372         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32373         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32374         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32375
32376 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32377
32378         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32379         GNU CoreUtils.
32380         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32381         * modules/version-etc (Description): Update.
32382
32383 2009-01-22  Bruno Haible  <bruno@clisp.org>
32384
32385         Cache the C locale object.
32386         * lib/c-strtod.c (c_locale_cache): New variable.
32387         (c_locale): New function.
32388         (C_STRTOD): Use it, and don't call freelocale.
32389         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32390         Suggested by Paolo Bonzini.
32391
32392 2009-01-21  Bruno Haible  <bruno@clisp.org>
32393
32394         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32395         conditions other than overflow.
32396
32397 2009-01-21  Bruno Haible  <bruno@clisp.org>
32398
32399         * lib/c-strtod.c: Include errno.h.
32400         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32401         value from STRTOD_L and STRTOD.
32402
32403 2009-01-21  Bruno Haible  <bruno@clisp.org>
32404         and Jim Meyering  <meyering@redhat.com>
32405
32406         nanosleep: skip configure test (fail it) for apple universal builds
32407         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32408         universal builds, assume that nanosleep does not work.
32409         * modules/nanosleep (Depends-on): Add multiarch.
32410
32411         mktime: skip configure test (fail it) for apple universal builds
32412         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32413         universal builds, assume that mktime does not work.
32414         * modules/mktime (Depends-on): Add multiarch.
32415
32416 2009-01-21  Eric Blake  <ebb9@byu.net>
32417
32418         multiarch: avoid expand-before-require warning
32419         * modules/multiarch (configure.ac): Require, rather than expand,
32420         gl_MULTIARCH.
32421         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32422         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32423         enforce that all clients require it.  Partial reversion of
32424         2008-12-29 patch.
32425
32426         error: avoid expand-before-require warning
32427         * modules/errno (configure.ac): Require, rather than expand,
32428         gl_HEADER_ERRNO_H.
32429         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32430         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32431         enforce that all clients require it.
32432
32433         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32434         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32435         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32436         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32437
32438 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32439
32440         Revert:
32441         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32442
32443         regex: do not depend on obsolete modules.
32444         * modules/regex: Remove memcmp and memmove.
32445
32446 2009-01-20  Bruno Haible  <bruno@clisp.org>
32447
32448         Make the 'link' module link on Windows NT 4.
32449         * lib/link.c (_WIN32_WINNT): Don't define.
32450         (CreateHardLinkFuncType): New type.
32451         (CreateHardLinkFunc, initialized): New variables.
32452         (initialize): New function.
32453         (link): Invoke CreateHardLink indirectly through the function pointer.
32454
32455 2009-01-20  Bruno Haible  <bruno@clisp.org>
32456
32457         Fix compilation failure on mingw.
32458         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32459
32460 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32461
32462         * doc/c-strtod.texi: Mention a couple of restrictions.
32463
32464 2009-01-20  Jim Meyering  <meyering@redhat.com>
32465
32466         gettimeofday: move more declarations out of functions
32467         * lib/gettimeofday.c: Move extern declarations of tzset and
32468         gmtime out of containing functions.  Prompted by Bruno Haible.
32469
32470 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32471
32472         regex: do not depend on obsolete modules.
32473         * modules/regex: Remove memcmp and memmove.
32474
32475 2009-01-19  Bruno Haible  <bruno@clisp.org>
32476
32477         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32478         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32479         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32480         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32481         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32482
32483 2009-01-19  Bruno Haible  <bruno@clisp.org>
32484
32485         * tests/test-link.c: Include <errno.h>.
32486         (main): Exit with code 77 when a hard link cannot be created due to
32487         the file system.
32488         * tests/test-link.sh: Skip test when a hard link cannot be created due
32489         to the file system.
32490         Suggested by Eric Blake.
32491
32492 2009-01-19  Martin Lambers  <marlam@marlam.de>
32493
32494         * modules/link-tests: New file.
32495         * tests/test-link.sh: New file.
32496         * tests/test-link.c: New file.
32497
32498 2009-01-19  Eric Blake  <ebb9@byu.net>
32499
32500         doc: mention another function added in cygwin 1.7.0
32501         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32502         Another new function in cygwin 1.7.
32503
32504 2009-01-19  Bruno Haible  <bruno@clisp.org>
32505
32506         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32507         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32508         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32509         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32510         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32511         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32512         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32513         * m4/md4.m4 (gl_MD4): Likewise.
32514         * m4/md5.m4 (gl_MD5): Likewise.
32515         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32516         * m4/sha1.m4 (gl_SHA1): Likewise.
32517         * m4/sha256.m4 (gl_SHA256): Likewise.
32518         * m4/sha512.m4 (gl_SHA512): Likewise.
32519
32520 2009-01-19  Bruno Haible  <bruno@clisp.org>
32521
32522         * modules/uniname/uniname-tests (Depends-on): Add progname.
32523         * tests/uniname/test-uninames.c: Include progname.h.
32524         (main): Call set_program_name.
32525
32526         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32527         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32528         (main): Call set_program_name.
32529
32530         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32531         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32532         (main): Call set_program_name.
32533
32534         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32535         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32536         (main): Call set_program_name.
32537
32538         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32539         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32540         (main): Call set_program_name.
32541
32542         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32543         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32544         (main): Call set_program_name.
32545
32546         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32547         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32548         (main): Call set_program_name.
32549
32550         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32551         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32552         (main): Call set_program_name.
32553
32554         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32555         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32556         (main): Call set_program_name.
32557
32558 2009-01-19  Eric Blake  <ebb9@byu.net>
32559
32560         test-unistd: test previous patch
32561         * tests/test-unistd.c: Test *_FILENO macros.
32562
32563         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32564         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32565         Guarantee a definition.
32566         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32567         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32568         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32569         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32570         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32571         Likewise.
32572         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32573         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32574         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32575         Likewise.
32576         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32577         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32578         (STDERR_FILENO): Likewise.
32579         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32580         (STDERR_FILENO): Likewise.
32581         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32582         (STDERR_FILENO): Likewise.
32583         Reported by Elbert Pol.
32584
32585 2009-01-19  Eric Blake  <ebb9@byu.net>
32586
32587         doc: mention more functions added in cygwin 1.7.0
32588         * doc/posix-functions/abort.texi (abort): Update wording related
32589         to cygwin.
32590         * doc/posix-functions/daylight.texi (daylight): Likewise.
32591         * doc/posix-functions/optarg.texi (optarg): Likewise.
32592         * doc/posix-functions/optarg.texi (opterr): Likewise.
32593         * doc/posix-functions/optarg.texi (optind): Likewise.
32594         * doc/posix-functions/optarg.texi (optopt): Likewise.
32595         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32596         worked in 1.5.x, and was withdrawn in 1.7.
32597         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32598         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32599         cygwin versions.
32600         * doc/posix-functions/perror.texi (perror): Likewise.
32601         * doc/posix-functions/printf.texi (printf): Likewise.
32602         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32603         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32604         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32605         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32606         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32607         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32608         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32609         Likewise.
32610         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32611         Likewise.
32612         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32613         this function.
32614         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32615         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32616         Likewise.
32617         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32618         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32619         * doc/posix-functions/confstr.texi (confstr): Likewise.
32620         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32621         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32622         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32623         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32624         * doc/posix-functions/fputws.texi (fputws): Likewise.
32625         * doc/posix-functions/fwide.texi (fwide): Likewise.
32626         * doc/posix-functions/getwc.texi (getwc): Likewise.
32627         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32628         * doc/posix-functions/putwc.texi (putwc): Likewise.
32629         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32630         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32631         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32632         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32633         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32634         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32635         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32636         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32637         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32638         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32639         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32640
32641 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32642
32643         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32644         * lib/ioctl.c: Include <sys/ioctl.h>.
32645
32646 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32647
32648         * modules/getdate-tests (Depends-on): Add progname.
32649         * tests/test-getdate.c: Use progname module, to avoid link errors
32650         on non-glibc systems.
32651
32652 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32653
32654         * modules/filenamecat-tests (Depends-on): Add progname.
32655         * modules/fstrcmp-tests (Depends-on): Likewise.
32656
32657         * tests/test-filenamecat.c: Use progname module, to avoid link
32658         errors on non-glibc systems.
32659         * tests/test-fstrcmp.c: Likewise.
32660
32661 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32662
32663         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32664         * lib/gettimeofday.c: Move extern declaration out of function.
32665
32666 2009-01-18  Bruno Haible  <bruno@clisp.org>
32667
32668         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32669         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32670         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32671
32672 2009-01-18  Bruno Haible  <bruno@clisp.org>
32673
32674         * lib/strftime.c (MEMPCPY): Remove unused macro.
32675         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32676
32677 2009-01-18  Martin Lambers  <marlam@marlam.de>
32678
32679         New module 'link'.
32680         * lib/unistd.in.h (link): New declaration.
32681         * lib/link.c: New file.
32682         * m4/link.m4: New file.
32683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32684         HAVE_LINK.
32685         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32686         * modules/link: New file.
32687         * doc/posix-functions/link.texi: Mention the new module.
32688
32689 2009-01-18  Bruno Haible  <bruno@clisp.org>
32690
32691         * tests/test-avltree_list.c (main): Call set_program_name.
32692         * tests/test-avltree_oset.c (main): Likewise.
32693         * tests/test-obstack-printf.c: Include progname.h.
32694         (main): Call set_program_name.
32695         * tests/test-quotearg.c: Include progname.h.
32696         (main): Call set_program_name.
32697         * tests/test-xmemdup0.c: Include progname.h.
32698         (main): Call set_program_name.
32699
32700 2009-01-18  Bruno Haible  <bruno@clisp.org>
32701
32702         New module 'alphasort'.
32703         * lib/dirent.in.h (alphasort): New declaration.
32704         * lib/alphasort.c: New file, from glibc with modifications.
32705         * m4/alphasort.m4: New file.
32706         * modules/alphasort: New file.
32707         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32708         HAVE_ALPHASORT.
32709         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32710         HAVE_ALPHASORT.
32711         * doc/posix-functions/alphasort.texi: Mention the new module and the
32712         portability problems.
32713
32714 2009-01-18  Bruno Haible  <bruno@clisp.org>
32715
32716         New module 'scandir'.
32717         * lib/dirent.in.h (scandir): New declaration.
32718         * lib/scandir.c: New file, from glibc with modifications.
32719         * m4/scandir.m4: New file.
32720         * modules/scandir: New file.
32721         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32722         HAVE_SCANDIR.
32723         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32724         HAVE_SCANDIR.
32725         * doc/posix-functions/scandir.texi: Mention the new module and the
32726         portability problems.
32727
32728 2009-01-17  Bruno Haible  <bruno@clisp.org>
32729
32730         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32731         Update documentation.
32732         (func_remove_suffix): Escape all dots in the suffix. Update
32733         documentation.
32734         (func_filter_filelist): Update documentation.
32735         Reported by Ralf Wildenhues.
32736
32737 2009-01-17  Bruno Haible  <bruno@clisp.org>
32738
32739         * modules/dprintf-posix-tests: New file.
32740         * tests/test-dprintf-posix.sh: New file.
32741         * tests/test-dprintf-posix.c: New file.
32742
32743         New modules 'dprintf', 'dprintf-posix'.
32744         * lib/stdio.in.h (dprintf): New declaration.
32745         * lib/dprintf.c: New file.
32746         * m4/dprintf.m4: New file.
32747         * m4/dprintf-posix.m4: New file.
32748         * modules/dprintf: New file.
32749         * modules/dprintf-posix: New file.
32750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32751         HAVE_DPRINTF, REPLACE_DPRINTF.
32752         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32753         HAVE_DPRINTF, REPLACE_DPRINTF.
32754         * doc/posix-functions/dprintf.texi: Mention the new modules.
32755
32756 2009-01-17  Bruno Haible  <bruno@clisp.org>
32757
32758         * modules/vdprintf-posix-tests: New file.
32759         * tests/test-vdprintf-posix.sh: New file.
32760         * tests/test-vdprintf-posix.c: New file.
32761
32762         New modules 'vdprintf', 'vdprintf-posix'.
32763         * lib/stdio.in.h (vdprintf): New declaration.
32764         * lib/vdprintf.c: New file.
32765         * m4/vdprintf.m4: New file.
32766         * m4/vdprintf-posix.m4: New file.
32767         * modules/vdprintf: New file.
32768         * modules/vdprintf-posix: New file.
32769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32770         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32771         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32772         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32773         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32774
32775 2009-01-17  Bruno Haible  <bruno@clisp.org>
32776
32777         Fix replacement of fopen on mingw.
32778         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32779         mingw.
32780
32781 2009-01-17  Bruno Haible  <bruno@clisp.org>
32782
32783         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32784         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32785
32786 2009-01-17  Bruno Haible  <bruno@clisp.org>
32787
32788         Avoid test-fflush2.sh failure on mingw.
32789         * tests/test-fflush2.c: Include binary-io.h.
32790         (main): Put standard input into binary mode.
32791         * modules/fflush-tests (Depends-on): Add binary-io.
32792
32793 2009-01-17  Bruno Haible  <bruno@clisp.org>
32794
32795         * lib/wchar.in.h: In another particular situation, include only the
32796         system's <wchar.h> file.
32797         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32798         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32799         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32800
32801 2009-01-17  Bruno Haible  <bruno@clisp.org>
32802
32803         Support for stripping executables in --enable-relocatable.
32804         * build-aux/install-reloc: Expect one more argument, or an environment
32805         variable RELOC_STRIP_PROG. If set, strip the destination program and
32806         its wrapper.
32807         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32808         RELOC_STRIP_PROG.
32809         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32810         to set RELOCATABLE_STRIP.
32811         * NEWS: Mention the new Makefile requirement.
32812
32813 2009-01-17  Bruno Haible  <bruno@clisp.org>
32814
32815         * build-aux/install-reloc: Remove debugging information left over by
32816         C compiler on MacOS X.
32817
32818 2009-01-17  Bruno Haible  <bruno@clisp.org>
32819
32820         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32821         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32822         _NSGetExecutablePath.
32823
32824 2009-01-16  Jim Meyering  <meyering@redhat.com>
32825
32826         strerror: avoid warnings about discarding "const"
32827         * lib/strerror.c (rpl_strerror): Instead of returning a const
32828         string from each and every "case", use a variable, and add a single
32829         cast after the switch.
32830
32831 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32832
32833         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32834
32835 2009-01-16  Bruno Haible  <bruno@clisp.org>
32836
32837         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32838         array initializer syntax that also works in C++ mode.
32839         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32840
32841 2009-01-16  Jim Meyering  <meyering@redhat.com>
32842
32843         poll: suppress a warning
32844         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32845         to ignore "...unsigned expression < 0 is always false" warnings.
32846
32847 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32848
32849         poll: remove declarations of unused variables
32850         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32851         sockbuf and optlen.
32852
32853 2009-01-15  Bruno Haible  <bruno@clisp.org>
32854
32855         Make fflush-after-ungetc POSIX compliant on BSD systems.
32856         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32857         (clear_ungetc_buffer): Implement also for other systems.
32858         (rpl_fflush): On glibc systems, invoke
32859         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32860         clear_ungetc_buffer after fetching the stream's position, not before.
32861
32862 2009-01-15  Bruno Haible  <bruno@clisp.org>
32863
32864         Make fflush-after-ungetc POSIX compliant on glibc systems.
32865         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32866         after ungetc.
32867         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32868         (rpl_fflush): On glibc systems, simply call the system's fflush
32869         function after clearing the ungetc buffer.
32870         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32871         Instead, lseek only to the end of file, then use the system's fseeko
32872         for the rest. On glibc systems, reset the EOF indicator bit.
32873
32874 2009-01-15  Jim Meyering  <meyering@redhat.com>
32875
32876         openmp.m4: revert quote-adding change, for portability to older autoconf
32877         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32878         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32879         Simon Josefsson noticed the problem when using autoconf-2.61.
32880
32881 2009-01-15  Bruno Haible  <bruno@clisp.org>
32882
32883         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32884         * tests/test-fflush2.c (ASSERT): Always fail.
32885         (main): Add two tests for fflush() after ungetc(), taking into account
32886         the Austin Group's clarification.
32887         Suggested by Eric Blake.
32888
32889 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32890
32891         mktime.m4: remove K&R-style function prototypes
32892         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32893         for the Sun C++ compiler.
32894
32895 2009-01-14  Bruno Haible  <bruno@clisp.org>
32896
32897         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32898         while including <wchar.h>.
32899         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32900         the system's <wchar.h> file.
32901         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32902
32903 2009-01-14  Bruno Haible  <bruno@clisp.org>
32904
32905         * m4/csharp.m4: Don't mention gettext on the serial number line.
32906         * m4/csharpexec.m4: Likewise.
32907         * m4/eaccess.m4: Likewise.
32908         * m4/javaexec.m4: Likewise.
32909         * m4/sig_atomic_t.m4: Likewise.
32910         * m4/tmpdir.m4: Likewise.
32911         * m4/intldir.m4: Bump gettext version.
32912         * m4/lib-ld.m4: Likewise.
32913
32914 2009-01-14  Bruno Haible  <bruno@clisp.org>
32915
32916         * lib/progname.c (set_program_name): Add more comments.
32917         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32918
32919 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32920
32921         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32922         were sys/stat.h does not define it.
32923
32924 2009-01-14  Jim Meyering  <meyering@redhat.com>
32925
32926         many *.m4 files: improve m4 quoting
32927         99% of this change was performed by running the following commands:
32928         git ls-files | grep '\.m4$' | xargs perl -pi \
32929           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32930           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32931           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32932           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32933         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32934         The remainder were to add Copyright dates, increment serial numbers,
32935         undo some changes in comments, exclude m4/intl.m4, and add quotes
32936         around the "1" in ",1" where the unusual spacing prohibited the
32937         above regexps from doing the job.  For more details, see
32938         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32939         * m4/acl.m4: Modified.
32940         * m4/afs.m4: Likewise.
32941         * m4/alloca.m4: Likewise.
32942         * m4/argp.m4: Likewise.
32943         * m4/argz.m4: Likewise.
32944         * m4/atexit.m4: Likewise.
32945         * m4/bison-i18n.m4: Likewise.
32946         * m4/bison.m4: Likewise.
32947         * m4/byteswap.m4: Likewise.
32948         * m4/c-stack.m4: Likewise.
32949         * m4/c-strtod.m4: Likewise.
32950         * m4/calloc.m4: Likewise.
32951         * m4/canonicalize-lgpl.m4: Likewise.
32952         * m4/chown.m4: Likewise.
32953         * m4/clock_time.m4: Likewise.
32954         * m4/codeset.m4: Likewise.
32955         * m4/copy-file.m4: Likewise.
32956         * m4/csharp.m4: Likewise.
32957         * m4/csharpcomp.m4: Likewise.
32958         * m4/csharpexec.m4: Likewise.
32959         * m4/d-ino.m4: Likewise.
32960         * m4/d-type.m4: Likewise.
32961         * m4/dirfd.m4: Likewise.
32962         * m4/double-slash-root.m4: Likewise.
32963         * m4/eaccess.m4: Likewise.
32964         * m4/eealloc.m4: Likewise.
32965         * m4/environ.m4: Likewise.
32966         * m4/errno_h.m4: Likewise.
32967         * m4/euidaccess.m4: Likewise.
32968         * m4/execute.m4: Likewise.
32969         * m4/fatal-signal.m4: Likewise.
32970         * m4/fchdir.m4: Likewise.
32971         * m4/fcntl_h.m4: Likewise.
32972         * m4/fileblocks.m4: Likewise.
32973         * m4/filenamecat.m4: Likewise.
32974         * m4/findprog.m4: Likewise.
32975         * m4/flexmember.m4: Likewise.
32976         * m4/fnmatch.m4: Likewise.
32977         * m4/fopen.m4: Likewise.
32978         * m4/fpending.m4: Likewise.
32979         * m4/fprintf-posix.m4: Likewise.
32980         * m4/free.m4: Likewise.
32981         * m4/frexp.m4: Likewise.
32982         * m4/frexpl.m4: Likewise.
32983         * m4/fsusage.m4: Likewise.
32984         * m4/ftruncate.m4: Likewise.
32985         * m4/gc-camellia.m4: Likewise.
32986         * m4/gc-random.m4: Likewise.
32987         * m4/gc.m4: Likewise.
32988         * m4/getaddrinfo.m4: Likewise.
32989         * m4/getcwd-abort-bug.m4: Likewise.
32990         * m4/getcwd-path-max.m4: Likewise.
32991         * m4/getdate.m4: Likewise.
32992         * m4/getdomainname.m4: Likewise.
32993         * m4/getgroups.m4: Likewise.
32994         * m4/gethostname.m4: Likewise.
32995         * m4/gethrxtime.m4: Likewise.
32996         * m4/getline.m4: Likewise.
32997         * m4/getloadavg.m4: Likewise.
32998         * m4/getndelim2.m4: Likewise.
32999         * m4/getpass.m4: Likewise.
33000         * m4/gettext.m4: Likewise.
33001         * m4/gettime.m4: Likewise.
33002         * m4/gettimeofday.m4: Likewise.
33003         * m4/gnulib-common.m4: Likewise.
33004         * m4/group-member.m4: Likewise.
33005         * m4/host-os.m4: Likewise.
33006         * m4/iconv.m4: Likewise.
33007         * m4/iconv_open.m4: Likewise.
33008         * m4/inet_ntop.m4: Likewise.
33009         * m4/inet_pton.m4: Likewise.
33010         * m4/inline.m4: Likewise.
33011         * m4/intldir.m4: Likewise.
33012         * m4/intlmacosx.m4: Likewise.
33013         * m4/intmax.m4: Likewise.
33014         * m4/intmax_t.m4: Likewise.
33015         * m4/inttypes.m4: Likewise.
33016         * m4/inttypes_h.m4: Likewise.
33017         * m4/inttypes-pri.m4: Likewise.
33018         * m4/isapipe.m4: Likewise.
33019         * m4/isnand.m4: Likewise.
33020         * m4/isnanf.m4: Likewise.
33021         * m4/isnanl.m4: Likewise.
33022         * m4/javacomp.m4: Likewise.
33023         * m4/javaexec.m4: Likewise.
33024         * m4/jm-winsz1.m4: Likewise.
33025         * m4/jm-winsz2.m4: Likewise.
33026         * m4/lchown.m4: Likewise.
33027         * m4/lcmessage.m4: Likewise.
33028         * m4/ldexpl.m4: Likewise.
33029         * m4/lib-ld.m4: Likewise.
33030         * m4/lib-link.m4: Likewise.
33031         * m4/libsigsegv.m4: Likewise.
33032         * m4/link-follow.m4: Likewise.
33033         * m4/localcharset.m4: Likewise.
33034         * m4/locale-fr.m4: Likewise.
33035         * m4/locale-ja.m4: Likewise.
33036         * m4/locale-tr.m4: Likewise.
33037         * m4/locale-zh.m4: Likewise.
33038         * m4/lock.m4: Likewise.
33039         * m4/longlong.m4: Likewise.
33040         * m4/ls-mntd-fs.m4: Likewise.
33041         * m4/lstat.m4: Likewise.
33042         * m4/malloc.m4: Likewise.
33043         * m4/mathl.m4: Likewise.
33044         * m4/mbrtowc.m4: Likewise.
33045         * m4/mbstate_t.m4: Likewise.
33046         * m4/mbswidth.m4: Likewise.
33047         * m4/memchr.m4: Likewise.
33048         * m4/memcmp.m4: Likewise.
33049         * m4/memcpy.m4: Likewise.
33050         * m4/memmem.m4: Likewise.
33051         * m4/memmove.m4: Likewise.
33052         * m4/mempcpy.m4: Likewise.
33053         * m4/memrchr.m4: Likewise.
33054         * m4/memset.m4: Likewise.
33055         * m4/minmax.m4: Likewise.
33056         * m4/mkdir-slash.m4: Likewise.
33057         * m4/mkdtemp.m4: Likewise.
33058         * m4/mktime.m4: Likewise.
33059         * m4/mmap-anon.m4: Likewise.
33060         * m4/mountlist.m4: Likewise.
33061         * m4/nanosleep.m4: Likewise.
33062         * m4/nls.m4: Likewise.
33063         * m4/nocrash.m4: Likewise.
33064         * m4/open.m4: Likewise.
33065         * m4/openat.m4: Likewise.
33066         * m4/openmp.m4: Likewise.
33067         * m4/pathmax.m4: Likewise.
33068         * m4/perl.m4: Likewise.
33069         * m4/physmem.m4: Likewise.
33070         * m4/pipe.m4: Likewise.
33071         * m4/po.m4: Likewise.
33072         * m4/poll.m4: Likewise.
33073         * m4/posixtm.m4: Likewise.
33074         * m4/posixver.m4: Likewise.
33075         * m4/printf-frexp.m4: Likewise.
33076         * m4/printf-frexpl.m4: Likewise.
33077         * m4/printf-posix.m4: Likewise.
33078         * m4/printf-posix-rpl.m4: Likewise.
33079         * m4/printf.m4: Likewise.
33080         * m4/progtest.m4: Likewise.
33081         * m4/putenv.m4: Likewise.
33082         * m4/readline.m4: Likewise.
33083         * m4/readlink.m4: Likewise.
33084         * m4/readutmp.m4: Likewise.
33085         * m4/realloc.m4: Likewise.
33086         * m4/regex.m4: Likewise.
33087         * m4/relocatable.m4: Likewise.
33088         * m4/relocatable-lib.m4: Likewise.
33089         * m4/rename-dest-slash.m4: Likewise.
33090         * m4/rename.m4: Likewise.
33091         * m4/rmdir-errno.m4: Likewise.
33092         * m4/rmdir.m4: Likewise.
33093         * m4/roundf.m4: Likewise.
33094         * m4/roundl.m4: Likewise.
33095         * m4/rpmatch.m4: Likewise.
33096         * m4/save-cwd.m4: Likewise.
33097         * m4/selinux-selinux-h.m4: Likewise.
33098         * m4/setenv.m4: Likewise.
33099         * m4/settime.m4: Likewise.
33100         * m4/sig2str.m4: Likewise.
33101         * m4/sig_atomic_t.m4: Likewise.
33102         * m4/signalblocking.m4: Likewise.
33103         * m4/signbit.m4: Likewise.
33104         * m4/sigpipe.m4: Likewise.
33105         * m4/sockets.m4: Likewise.
33106         * m4/sockpfaf.m4: Likewise.
33107         * m4/st_dm_mode.m4: Likewise.
33108         * m4/stat-time.m4: Likewise.
33109         * m4/stdbool.m4: Likewise.
33110         * m4/stdint.m4: Likewise.
33111         * m4/stdint_h.m4: Likewise.
33112         * m4/stpcpy.m4: Likewise.
33113         * m4/stpncpy.m4: Likewise.
33114         * m4/strcase.m4: Likewise.
33115         * m4/strchrnul.m4: Likewise.
33116         * m4/strcspn.m4: Likewise.
33117         * m4/strdup.m4: Likewise.
33118         * m4/strftime.m4: Likewise.
33119         * m4/strndup.m4: Likewise.
33120         * m4/strnlen.m4: Likewise.
33121         * m4/strpbrk.m4: Likewise.
33122         * m4/strptime.m4: Likewise.
33123         * m4/strsep.m4: Likewise.
33124         * m4/strtod.m4: Likewise.
33125         * m4/strtoimax.m4: Likewise.
33126         * m4/strtok_r.m4: Likewise.
33127         * m4/strtol.m4: Likewise.
33128         * m4/strtoll.m4: Likewise.
33129         * m4/strtoul.m4: Likewise.
33130         * m4/strtoull.m4: Likewise.
33131         * m4/strtoumax.m4: Likewise.
33132         * m4/strverscmp.m4: Likewise.
33133         * m4/threadlib.m4: Likewise.
33134         * m4/timegm.m4: Likewise.
33135         * m4/tm_gmtoff.m4: Likewise.
33136         * m4/tmpdir.m4: Likewise.
33137         * m4/tmpfile.m4: Likewise.
33138         * m4/tzset.m4: Likewise.
33139         * m4/uintmax_t.m4: Likewise.
33140         * m4/unlinkdir.m4: Likewise.
33141         * m4/unlocked-io.m4: Likewise.
33142         * m4/uptime.m4: Likewise.
33143         * m4/userspec.m4: Likewise.
33144         * m4/utimbuf.m4: Likewise.
33145         * m4/utime.m4: Likewise.
33146         * m4/utimes-null.m4: Likewise.
33147         * m4/utimes.m4: Likewise.
33148         * m4/vararrays.m4: Likewise.
33149         * m4/vasnprintf.m4: Likewise.
33150         * m4/vfprintf-posix.m4: Likewise.
33151         * m4/vprintf-posix.m4: Likewise.
33152         * m4/wait-process.m4: Likewise.
33153         * m4/wchar_t.m4: Likewise.
33154         * m4/wint_t.m4: Likewise.
33155         * m4/write-any-file.m4: Likewise.
33156         * m4/yield.m4: Likewise.
33157
33158 2009-01-13  Bruno Haible  <bruno@clisp.org>
33159
33160         Avoid test-copy-file.sh failures when ACL support insufficient.
33161         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33162         TESTS_ENVIRONMENT.
33163         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33164         Reported by Jim Meyering.
33165
33166 2009-01-13  Bruno Haible  <bruno@clisp.org>
33167
33168         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33169         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33170         * modules/unistdio/u8-printf-parse (Files): Likewise.
33171         * modules/unistdio/u32-printf-parse (Files): Likewise.
33172         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33173
33174 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33175
33176         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33177         and m4/inttypes_h.m4 too.
33178
33179 2009-01-12  Eric Blake  <ebb9@byu.net>
33180
33181         tests: IRIX 6.2 cc can't compile -0.0 into .data
33182         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33183         rather than at compile-time.
33184         * tests/test-floorl.c (minus_zero): Likewise.
33185         * tests/test-frexpl.c (minus_zero): Likewise.
33186         * tests/test-isnan.c (minus_zerol): Likewise.
33187         * tests/test-isnanl.h (minus_zero): Likewise.
33188         * tests/test-ldexpl.c (minus_zero): Likewise.
33189         * tests/test-roundl.c (minus_zero): Likewise.
33190         * tests/test-signbit.c (minus_zerol): Likewise.
33191         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33192         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33193         * tests/test-truncl.c (minus_zero): Likewise.
33194         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33195         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33196         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33197
33198 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33199
33200         regex: fix glibc bug 9697
33201         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33202         handling.
33203
33204 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33205
33206         regex: fix glibc bug 697
33207         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33208         being NULL also if there are no backreferences.
33209
33210 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33211
33212         regex: merge glibc changes
33213         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33214         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33215         re_string_skip_chars, re_string_reconstruct): Likewise.
33216         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33217
33218 2009-01-07  Jim Meyering  <meyering@redhat.com>
33219
33220         poll: filter through cppi
33221         * lib/poll.c: Indent cpp directives to reflect nesting.
33222
33223 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33224
33225         poll: don't return uninitialized
33226         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33227
33228 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33229
33230         avoid compile failure on AIX 6.1
33231         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33232         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33233
33234 2009-01-04  Jim Meyering  <meyering@redhat.com>
33235
33236         remove duplicate inclusion of <stdio.h>
33237         * tests/test-fprintf-posix.c: Likewise.
33238         * tests/test-printf-posix.c: Likewise.
33239         * tests/test-snprintf-posix.c: Likewise.
33240         * tests/test-sprintf-posix.c: Likewise.
33241         * tests/test-vasprintf-posix.c: Likewise.
33242         * tests/test-vfprintf-posix.c: Likewise.
33243         * tests/test-vprintf-posix.c: Likewise.
33244         * tests/test-vsnprintf-posix.c: Likewise.
33245         * tests/test-vsprintf-posix.c: Likewise.
33246
33247 2009-01-03  Jim Meyering  <meyering@redhat.com>
33248
33249         gnulib-tool: fix sed-based filtering
33250         * gnulib-tool (func_filter_filelist): Remove extra backslash
33251         in sed_fff_filter definition.
33252
33253 2009-01-02  Jim Meyering  <meyering@redhat.com>
33254
33255         strftime: avoid compilation failure on Solaris 2.6
33256         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33257         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33258         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33259         be available.  Reported by Tom G. Christensen.  Details in
33260         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33261
33262 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33263             Bruno Haible  <bruno@clisp.org>
33264
33265         Speed up gnulib-tool by doing more string processing through shell
33266         built-ins.
33267         * gnulib-tool (fast_func_append): New variable.
33268         (func_remove_prefix, func_remove_suffix): New functions.
33269         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33270         (func_filter_filelist): New function.
33271         (func_get_dependencies): Use func_remove_suffix instead of sed.
33272         (func_get_automake_snippet): Use func_filter_filelist instead of a
33273         subshell and sed invocation.
33274
33275 2009-01-01  Bruno Haible  <bruno@clisp.org>
33276
33277         Fix a security bug.
33278         * gnulib-tool (func_import, import, update): Don't allow the characters
33279         '"', '$', '`', '\' in macro arguments that become part of commands that
33280         are evaluated.
33281
33282 2009-01-01  Bruno Haible  <bruno@clisp.org>
33283
33284         * gnulib-tool (func_reset_sigpipe): Add more comments.
33285
33286 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33287
33288         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33289         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33290         already know the answer.
33291
33292 2009-01-01  Jim Meyering  <meyering@redhat.com>
33293
33294         * lib/version-etc.c (version_etc_va): Update copyright year.
33295
33296 2008-12-30  Bruno Haible  <bruno@clisp.org>
33297
33298         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33299         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33300         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33301
33302 2008-12-29  Eric Blake  <ebb9@byu.net>
33303
33304         multiarch: avoid autoconf AC_REQUIRE bug
33305         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33306         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33307         2.63 and older.
33308         Reported by Bruno Haible, and analyzed in
33309         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33310
33311 2008-12-29  Bruno Haible  <bruno@clisp.org>
33312
33313         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33314         files in subdirectories correctly.
33315         Reported by Ralf Wildenhues.
33316
33317 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33318
33319         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33320         rather than 'join FILE -', for Solaris join.
33321
33322 2008-12-29  Bruno Haible  <bruno@clisp.org>
33323
33324         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33325         quoting.
33326         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33327         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33328         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33329         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33330         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33331         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33332         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33333         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33334         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33335         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33336         * m4/nls.m4 (AM_NLS): Likewise.
33337         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33338         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33339         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33340         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33341         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33342         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33343         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33344         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33345         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33346         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33347         * m4/xsize.m4 (gl_XSIZE): Likewise.
33348         Suggested by Jim Meyering.
33349
33350 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33351
33352         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33353         * lib/parse-duration.c: use a switch instead of cascading if's.
33354
33355 2008-12-29  Eric Blake  <ebb9@byu.net>
33356
33357         wchar.h: supply WEOF on Irix 5.3
33358         * lib/wchar.in.h (wint_t): Also supply WEOF.
33359         * lib/wctype.in.h (wint_t): Likewise.
33360         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33361         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33362         Reported by Tom G. Christensen.
33363
33364 2008-12-26  Bruno Haible  <bruno@clisp.org>
33365
33366         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33367         i486, i586, i686.
33368
33369 2008-12-26  Bruno Haible  <bruno@clisp.org>
33370
33371         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33372
33373 2008-12-26  Bruno Haible  <bruno@clisp.org>
33374
33375         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33376         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33377         not __STDC_CONSTANT_MACROS.
33378         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33379
33380 2008-12-25  Bruno Haible  <bruno@clisp.org>
33381
33382         Add support for universal builds to vasnprintf.
33383         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33384         universal builds, guess no.
33385         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33386         * modules/vasprintf-posix (Depends-on): Likewise.
33387         * modules/fprintf-posix (Depends-on): Likewise.
33388         * modules/vfprintf-posix (Depends-on): Likewise.
33389         * modules/snprintf-posix (Depends-on): Likewise.
33390         * modules/vsnprintf-posix (Depends-on): Likewise.
33391         * modules/sprintf-posix (Depends-on): Likewise.
33392         * modules/vsprintf-posix (Depends-on): Likewise.
33393         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33394         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33395         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33396         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33397         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33398         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33399         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33400
33401         Add support for universal builds to <inttypes.h>.
33402         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33403         _SCNu64_PREFIX): In Apple
33404         universal builds, define directly, using _LP64.
33405         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33406         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33407         * modules/inttypes (Depends-on): Add multiarch.
33408         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33409
33410         Add support for universal builds to <stdint.h>.
33411         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33412         universal builds, define directly, using _LP64.
33413         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33414         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33415         and size_t.
33416         * modules/stdint (Depends-on): Add multiarch.
33417         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33418
33419         New module 'multiarch'.
33420         * modules/multiarch: New file.
33421         * m4/multiarch.m4: New file.
33422
33423 2008-12-25  Bruno Haible  <bruno@clisp.org>
33424
33425         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33426
33427 2008-12-25  Bruno Haible  <bruno@clisp.org>
33428
33429         * modules/btowc (License): Relicense under LGPLv2+.
33430         * modules/mbsinit (License): Likewise.
33431         * modules/mbrtowc (License): Likewise.
33432         * modules/wcrtomb (License): Likewise.
33433         * modules/streq (License): Likewise.
33434         Reported by David Lutterkort <lutter@redhat.com>.
33435
33436 2008-12-23  Bruno Haible  <bruno@clisp.org>
33437
33438         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33439
33440 2008-12-23  Bruno Haible  <bruno@clisp.org>
33441
33442         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33443         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33444         GETADDRINFO_LIB, not in LIBS.
33445         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33446         * modules/canon-host (Link): Likewise.
33447         * NEWS: Mention the change.
33448         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33449         GETADDRINFO_LIB.
33450
33451 2008-12-22  Bruno Haible  <bruno@clisp.org>
33452
33453         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33454         * doc/posix-functions/iswalpha_l.texi: Likewise.
33455         * doc/posix-functions/iswblank_l.texi: Likewise.
33456         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33457         * doc/posix-functions/iswctype_l.texi: Likewise.
33458         * doc/posix-functions/iswdigit_l.texi: Likewise.
33459         * doc/posix-functions/iswgraph_l.texi: Likewise.
33460         * doc/posix-functions/iswlower_l.texi: Likewise.
33461         * doc/posix-functions/iswprint_l.texi: Likewise.
33462         * doc/posix-functions/iswpunct_l.texi: Likewise.
33463         * doc/posix-functions/iswspace_l.texi: Likewise.
33464         * doc/posix-functions/iswupper_l.texi: Likewise.
33465         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33466         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33467         * doc/posix-functions/open_wmemstream.texi: Likewise.
33468         * doc/posix-functions/swscanf.texi: Likewise.
33469         * doc/posix-functions/towctrans_l.texi: Likewise.
33470         * doc/posix-functions/towlower.texi: Likewise.
33471         * doc/posix-functions/towlower_l.texi: Likewise.
33472         * doc/posix-functions/towupper.texi: Likewise.
33473         * doc/posix-functions/towupper_l.texi: Likewise.
33474         * doc/posix-functions/vfwprintf.texi: Likewise.
33475         * doc/posix-functions/vfwscanf.texi: Likewise.
33476         * doc/posix-functions/vswscanf.texi: Likewise.
33477         * doc/posix-functions/vwprintf.texi: Likewise.
33478         * doc/posix-functions/vwscanf.texi: Likewise.
33479         * doc/posix-functions/wcpcpy.texi: Likewise.
33480         * doc/posix-functions/wcpncpy.texi: Likewise.
33481         * doc/posix-functions/wcscasecmp.texi: Likewise.
33482         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33483         * doc/posix-functions/wcscoll_l.texi: Likewise.
33484         * doc/posix-functions/wcsdup.texi: Likewise.
33485         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33486         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33487         * doc/posix-functions/wcsnlen.texi: Likewise.
33488         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33489         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33490         * doc/posix-functions/wctrans_l.texi: Likewise.
33491         * doc/posix-functions/wctype_l.texi: Likewise.
33492         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33493         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33494         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33495         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33496         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33497         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33498         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33499         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33500         * doc/glibc-functions/wcschrnul.texi: Likewise.
33501         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33502         * doc/glibc-functions/wcstod_l.texi: Likewise.
33503         * doc/glibc-functions/wcstof_l.texi: Likewise.
33504         * doc/glibc-functions/wcstol_l.texi: Likewise.
33505         * doc/glibc-functions/wcstold_l.texi: Likewise.
33506         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33507         * doc/glibc-functions/wcstoq.texi: Likewise.
33508         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33509         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33510         * doc/glibc-functions/wcstouq.texi: Likewise.
33511         * doc/glibc-functions/wmempcpy.texi: Likewise.
33512
33513 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33514             Eric Blake  <ebb9@byu.net>
33515             Paolo Bonzini  <bonzini@gnu.org>
33516             Bruno Haible  <bruno@clisp.org>
33517
33518         Make c-stack work on Haiku.
33519         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33520         (c_stack_action): Use SA_ONSTACK flag.
33521
33522 2008-12-22  Bruno Haible  <bruno@clisp.org>
33523
33524         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33525
33526 2008-12-22  Bruno Haible  <bruno@clisp.org>
33527
33528         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33529         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33530         being overridden.
33531         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33532         New macros.
33533         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33535         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33536         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33537
33538 2008-12-22  Bruno Haible  <bruno@clisp.org>
33539
33540         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33541         from test code.
33542
33543 2008-12-22  Eric Blake  <ebb9@byu.net>
33544
33545         Avoid gcc warnings on cygwin.
33546         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33547         Avoid unused variable.
33548         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33549         Likewise.
33550
33551 2008-12-22  Bruno Haible  <bruno@clisp.org>
33552
33553         Remove HAVE_MBRTOWC conditionals.
33554         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33555         (mbscasecmp): Assume mbrtowc function.
33556         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33557         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33558         * lib/mbschr.c: Include mbuiter.h unconditionally.
33559         (mbschr): Assume mbrtowc function.
33560         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33561         (mbscspn): Assume mbrtowc function.
33562         * lib/mbslen.c: Include mbuiter.h unconditionally.
33563         (mbslen): Assume mbrtowc function.
33564         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33565         (mbsncasecmp): Assume mbrtowc function.
33566         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33567         (mbsnlen): Assume mbrtowc function.
33568         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33569         (mbspbrk): Assume mbrtowc function.
33570         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33571         (mbspcasecmp): Assume mbrtowc function.
33572         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33573         (mbsrchr): Assume mbrtowc function.
33574         * lib/mbssep.c: Include mbuiter.h unconditionally.
33575         (mbssep): Assume mbrtowc function.
33576         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33577         (mbsspn): Assume mbrtowc function.
33578         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33579         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33580         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33581         (mbstok_r): Assume mbrtowc function.
33582         * lib/propername.c: Include mbuiter.h unconditionally.
33583         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33584         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33585         (trim2): Assume mbrtowc function.
33586         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33587         (mbsnwidth): Assume mbrtowc function.
33588         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33589         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33590         fallback definitions.
33591         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33592
33593 2008-12-22  Bruno Haible  <bruno@clisp.org>
33594
33595         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33596
33597 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33598
33599         * modules/regex: Request emulations for the mb*/wc* functions we need.
33600         * m4/regex.m4: Don't look for those functions here.
33601         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33602
33603 2008-12-22  Bruno Haible  <bruno@clisp.org>
33604
33605         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33606
33607 2008-12-21  Bruno Haible  <bruno@clisp.org>
33608
33609         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33610         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33611         (Include): Remove conditionalization.
33612         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33613         (Include): Remove conditionalization.
33614         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33615         (Include): Remove conditionalization.
33616         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33617         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33618         * NEWS: Mention the change.
33619         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33620         via Sergey Poznyakoff <gray@gnu.org.ua>.
33621
33622 2008-12-21  Bruno Haible  <bruno@clisp.org>
33623
33624         * MODULES.html.sh (Extended multibyte and wide character utilities
33625         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33626         wcrtomb, wcsrtombs.
33627         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33628         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33629         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33630         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33631
33632 2008-12-21  Bruno Haible  <bruno@clisp.org>
33633
33634         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33635
33636 2008-12-21  Bruno Haible  <bruno@clisp.org>
33637
33638         * modules/wcsnrtombs-tests: New file.
33639         * tests/test-wcsnrtombs1.sh: New file.
33640         * tests/test-wcsnrtombs2.sh: New file.
33641         * tests/test-wcsnrtombs3.sh: New file.
33642         * tests/test-wcsnrtombs4.sh: New file.
33643         * tests/test-wcsnrtombs.c: New file.
33644
33645         New module 'wcsnrtombs'.
33646         * lib/wchar.in.h (wcsnrtombs): New declaration.
33647         * lib/wcsnrtombs.c: New file.
33648         * lib/wcsrtombs-state.c: New file.
33649         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33650         (internal_state): Remove variable.
33651         * m4/wcsnrtombs.m4: New file.
33652         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33653         compilation units.
33654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33655         HAVE_WCSNRTOMBS.
33656         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33657         HAVE_WCSNRTOMBS.
33658         * modules/wcsnrtombs: New file.
33659         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33660         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33661
33662 2008-12-21  Bruno Haible  <bruno@clisp.org>
33663
33664         * modules/wcsrtombs-tests: New file.
33665         * tests/test-wcsrtombs1.sh: New file.
33666         * tests/test-wcsrtombs2.sh: New file.
33667         * tests/test-wcsrtombs3.sh: New file.
33668         * tests/test-wcsrtombs4.sh: New file.
33669         * tests/test-wcsrtombs.c: New file.
33670
33671         New module 'wcsrtombs'.
33672         * lib/wchar.in.h (wcsrtombs): New declaration.
33673         * lib/wcsrtombs.c: New file.
33674         * m4/wcsrtombs.m4: New file.
33675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33676         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33678         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33679         * modules/wcsrtombs: New file.
33680         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33681         bugs.
33682
33683 2008-12-21  Bruno Haible  <bruno@clisp.org>
33684
33685         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33686         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33687         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33688         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33689         if not correct.
33690         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33691         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33692         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33693         m4/locale-zh.m4, m4/codeset.m4.
33694         * doc/posix-functions/wcrtomb.texi: Document the bug.
33695
33696 2008-12-21  Bruno Haible  <bruno@clisp.org>
33697
33698         Work around a btowc() bug on IRIX 6.5.
33699         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33700         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33701         REPLACE_WTOBC if not.
33702         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33703         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33704         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33705
33706 2008-12-21  Bruno Haible  <bruno@clisp.org>
33707
33708         * modules/wcrtomb-tests: New file.
33709         * tests/test-wcrtomb.sh: New file.
33710         * tests/test-wcrtomb.c: New file.
33711
33712         New module 'wcrtomb'.
33713         * lib/wchar.in.h (wcrtomb): New declaration.
33714         * lib/wcrtomb.c: New file.
33715         * m4/wcrtomb.m4: New file.
33716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33717         HAVE_WCRTOMB.
33718         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33719         HAVE_WCRTOMB.
33720         * modules/wcrtomb: New file.
33721         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33722
33723 2008-12-21  Bruno Haible  <bruno@clisp.org>
33724
33725         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33726         * modules/mbsrtowcs (Files): Likewise.
33727         * modules/wctob (Files): Likewise.
33728         * modules/c-strcase-tests (Files): Likewise.
33729         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33730         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33731         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33732         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33733         * modules/vasnprintf-posix-tests (Files): Likewise.
33734
33735 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33736
33737         gitlog-to-changelog: pass all command-line arguments to git-log
33738         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33739         it is sometimes convenient to filter the commits in various ways.
33740         gitlog-to-changelog only allows --since to specify a start date,
33741         but git-log itself supports many other filtering mechanisms.
33742         At the moment, I want to filter by branch name.  Rather than
33743         adding a --branch option to gitlog-to-changelog, it seems more
33744         flexible to simply pass all options directly to git-log and let
33745         git do the work.  Notice that this effectively makes --since a
33746         redundant option for gitlog-to-changelog, but removing it would
33747         require current usage to change since calls would then require
33748         an additional '--'.
33749
33750 2008-12-21  Bruno Haible  <bruno@clisp.org>
33751
33752         * modules/mbsnrtowcs-tests: New file.
33753         * tests/test-mbsnrtowcs1.sh: New file.
33754         * tests/test-mbsnrtowcs2.sh: New file.
33755         * tests/test-mbsnrtowcs3.sh: New file.
33756         * tests/test-mbsnrtowcs4.sh: New file.
33757         * tests/test-mbsnrtowcs.c: New file.
33758
33759         New module 'mbsnrtowcs'.
33760         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33761         * lib/mbsnrtowcs.c: New file.
33762         * lib/mbsrtowcs-state.c: New file.
33763         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33764         (internal_state): Remove variable.
33765         * m4/mbsnrtowcs.m4: New file.
33766         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33767         compilation units.
33768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33769         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33770         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33771         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33772         * modules/mbsnrtowcs: New file.
33773         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33774         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33775         portability problem.
33776
33777 2008-12-21  Bruno Haible  <bruno@clisp.org>
33778
33779         Work around mbsrtowcs bug.
33780         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33781         (gl_FUNC_MBSRTOWCS): Invoke it.
33782         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33783         m4/locale-zh.m4.
33784         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33785
33786 2008-12-21  Bruno Haible  <bruno@clisp.org>
33787
33788         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33789
33790 2008-12-21  Bruno Haible  <bruno@clisp.org>
33791
33792         Update doc for AIX.
33793         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33794         16-bit wchar_t type.
33795         * doc/posix-functions/btowc.texi: Likewise.
33796         * doc/posix-functions/fgetwc.texi: Likewise.
33797         * doc/posix-functions/fgetws.texi: Likewise.
33798         * doc/posix-functions/fputwc.texi: Likewise.
33799         * doc/posix-functions/fputws.texi: Likewise.
33800         * doc/posix-functions/fwide.texi: Likewise.
33801         * doc/posix-functions/fwprintf.texi: Likewise.
33802         * doc/posix-functions/fwscanf.texi: Likewise.
33803         * doc/posix-functions/getwchar.texi: Likewise.
33804         * doc/posix-functions/getwc.texi: Likewise.
33805         * doc/posix-functions/iswalnum.texi: Likewise.
33806         * doc/posix-functions/iswalpha.texi: Likewise.
33807         * doc/posix-functions/iswblank.texi: Likewise.
33808         * doc/posix-functions/iswcntrl.texi: Likewise.
33809         * doc/posix-functions/iswctype.texi: Likewise.
33810         * doc/posix-functions/iswdigit.texi: Likewise.
33811         * doc/posix-functions/iswgraph.texi: Likewise.
33812         * doc/posix-functions/iswlower.texi: Likewise.
33813         * doc/posix-functions/iswprint.texi: Likewise.
33814         * doc/posix-functions/iswpunct.texi: Likewise.
33815         * doc/posix-functions/iswspace.texi: Likewise.
33816         * doc/posix-functions/iswupper.texi: Likewise.
33817         * doc/posix-functions/iswxdigit.texi: Likewise.
33818         * doc/posix-functions/mbrtowc.texi: Likewise.
33819         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33820         * doc/posix-functions/mbstowcs.texi: Likewise.
33821         * doc/posix-functions/mbtowc.texi: Likewise.
33822         * doc/posix-functions/putwchar.texi: Likewise.
33823         * doc/posix-functions/putwc.texi: Likewise.
33824         * doc/posix-functions/swprintf.texi: Likewise.
33825         * doc/posix-functions/tolower.texi: Likewise.
33826         * doc/posix-functions/toupper.texi: Likewise.
33827         * doc/posix-functions/towctrans.texi: Likewise.
33828         * doc/posix-functions/ungetwc.texi: Likewise.
33829         * doc/posix-functions/vswprintf.texi: Likewise.
33830         * doc/posix-functions/wcrtomb.texi: Likewise.
33831         * doc/posix-functions/wcscat.texi: Likewise.
33832         * doc/posix-functions/wcschr.texi: Likewise.
33833         * doc/posix-functions/wcscmp.texi: Likewise.
33834         * doc/posix-functions/wcscoll.texi: Likewise.
33835         * doc/posix-functions/wcscpy.texi: Likewise.
33836         * doc/posix-functions/wcscspn.texi: Likewise.
33837         * doc/posix-functions/wcsftime.texi: Likewise.
33838         * doc/posix-functions/wcslen.texi: Likewise.
33839         * doc/posix-functions/wcsncat.texi: Likewise.
33840         * doc/posix-functions/wcsncmp.texi: Likewise.
33841         * doc/posix-functions/wcsncpy.texi: Likewise.
33842         * doc/posix-functions/wcspbrk.texi: Likewise.
33843         * doc/posix-functions/wcsrchr.texi: Likewise.
33844         * doc/posix-functions/wcsrtombs.texi: Likewise.
33845         * doc/posix-functions/wcsspn.texi: Likewise.
33846         * doc/posix-functions/wcsstr.texi: Likewise.
33847         * doc/posix-functions/wcstod.texi: Likewise.
33848         * doc/posix-functions/wcstof.texi: Likewise.
33849         * doc/posix-functions/wcstoimax.texi: Likewise.
33850         * doc/posix-functions/wcstok.texi: Likewise.
33851         * doc/posix-functions/wcstold.texi: Likewise.
33852         * doc/posix-functions/wcstoll.texi: Likewise.
33853         * doc/posix-functions/wcstol.texi: Likewise.
33854         * doc/posix-functions/wcstombs.texi: Likewise.
33855         * doc/posix-functions/wcstoull.texi: Likewise.
33856         * doc/posix-functions/wcstoul.texi: Likewise.
33857         * doc/posix-functions/wcstoumax.texi: Likewise.
33858         * doc/posix-functions/wcswidth.texi: Likewise.
33859         * doc/posix-functions/wcsxfrm.texi: Likewise.
33860         * doc/posix-functions/wctob.texi: Likewise.
33861         * doc/posix-functions/wctomb.texi: Likewise.
33862         * doc/posix-functions/wctrans.texi: Likewise.
33863         * doc/posix-functions/wctype.texi: Likewise.
33864         * doc/posix-functions/wcwidth.texi: Likewise.
33865         * doc/posix-functions/wmemchr.texi: Likewise.
33866         * doc/posix-functions/wmemcmp.texi: Likewise.
33867         * doc/posix-functions/wmemcpy.texi: Likewise.
33868         * doc/posix-functions/wmemmove.texi: Likewise.
33869         * doc/posix-functions/wmemset.texi: Likewise.
33870         * doc/posix-functions/wprintf.texi: Likewise.
33871         * doc/posix-functions/wscanf.texi: Likewise.
33872
33873 2008-12-21  Bruno Haible  <bruno@clisp.org>
33874
33875         Update doc for HP-UX 11.11.
33876         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33877         in HP-UX version 11.00, not in all versions of HP-UX 11.
33878         * doc/posix-functions/fwide.texi: Likewise.
33879         * doc/posix-functions/fwprintf.texi: Likewise.
33880         * doc/posix-functions/fwscanf.texi: Likewise.
33881         * doc/posix-functions/inet_ntop.texi: Likewise.
33882         * doc/posix-functions/inet_pton.texi: Likewise.
33883         * doc/posix-functions/mbrlen.texi: Likewise.
33884         * doc/posix-functions/mbrtowc.texi: Likewise.
33885         * doc/posix-functions/mbsinit.texi: Likewise.
33886         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33887         * doc/posix-functions/swprintf.texi: Likewise.
33888         * doc/posix-functions/swscanf.texi: Likewise.
33889         * doc/posix-functions/towctrans.texi: Likewise.
33890         * doc/posix-functions/vfwprintf.texi: Likewise.
33891         * doc/posix-functions/vswprintf.texi: Likewise.
33892         * doc/posix-functions/vwprintf.texi: Likewise.
33893         * doc/posix-functions/wcrtomb.texi: Likewise.
33894         * doc/posix-functions/wcsrtombs.texi: Likewise.
33895         * doc/posix-functions/wcsstr.texi: Likewise.
33896         * doc/posix-functions/wctob.texi: Likewise.
33897         * doc/posix-functions/wctrans.texi: Likewise.
33898         * doc/posix-functions/wmemchr.texi: Likewise.
33899         * doc/posix-functions/wmemcmp.texi: Likewise.
33900         * doc/posix-functions/wmemcpy.texi: Likewise.
33901         * doc/posix-functions/wmemmove.texi: Likewise.
33902         * doc/posix-functions/wmemset.texi: Likewise.
33903         * doc/posix-functions/wprintf.texi: Likewise.
33904         * doc/posix-functions/wscanf.texi: Likewise.
33905
33906 2008-12-21  Bruno Haible  <bruno@clisp.org>
33907
33908         Work around a portability problem.
33909         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33910         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33911
33912 2008-12-20  Bruno Haible  <bruno@clisp.org>
33913
33914         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33915         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33916         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33918         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33919
33920         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33921         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33922         set.
33923         (GNULIB_defined_mbstate_t): New macro.
33924         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33925         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33926         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33927         reuses the system's mbrtowc function but works around the bugs.
33928         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33929         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33930         macros.
33931         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33932         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33933         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33934         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33935         REPLACE_MBSINIT if mbsinit needs to be overridden.
33936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33937         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33938         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33939         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33940         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33941         m4/locale-zh.m4.
33942         (Depends): Add mbsinit.
33943         * modules/mbsinit (Depends): Add mbrtowc.
33944         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33945
33946 2008-12-20  Bruno Haible  <bruno@clisp.org>
33947
33948         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33949         so that there are no conversion errors on AIX.
33950         * tests/test-mbsrtowcs.c (main): LIkewise.
33951
33952 2008-12-20  Bruno Haible  <bruno@clisp.org>
33953
33954         Work around wctob bug on Solaris <= 9.
33955         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33956         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33958         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33959         * modules/wctob (Files): Add m4/locale-fr.m4.
33960         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33961
33962 2008-12-20  Bruno Haible  <bruno@clisp.org>
33963
33964         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33965         /dev/null.
33966         * tests/test-select-in.sh: Likewise.
33967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33968
33969 2008-12-20  Bruno Haible  <bruno@clisp.org>
33970
33971         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33972         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33973         Cygwin 1.5.x.
33974
33975 2008-12-20  Bruno Haible  <bruno@clisp.org>
33976
33977         Ensure mbstate_t is defined on HP-UX 11.11.
33978         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33979         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33980         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33981         AC_USE_SYSTEM_EXTENSIONS.
33982         * modules/fnmatch (Depends-on): Add extensions.
33983         * modules/mbrlen (Depends-on): Likewise.
33984         * modules/mbrtowc (Depends-on): Likewise.
33985         * modules/mbsinit (Depends-on): Likewise.
33986         * modules/mbsrtowcs (Depends-on): Likewise.
33987         * modules/mbswidth (Depends-on): Likewise.
33988         * modules/quotearg (Depends-on): Likewise.
33989         * modules/strftime (Depends-on): Likewise.
33990
33991 2008-12-20  Bruno Haible  <bruno@clisp.org>
33992
33993         Ensure wctob is declared on IRIX 6.5.
33994         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33995         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33996         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33997         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33998         of HAVE_WCTOB.
33999         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34000         HAVE_WCTOB.
34001         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34002
34003 2008-12-19  Bruno Haible  <bruno@clisp.org>
34004
34005         * modules/mbsrtowcs-tests: New file.
34006         * tests/test-mbsrtowcs1.sh: New file.
34007         * tests/test-mbsrtowcs2.sh: New file.
34008         * tests/test-mbsrtowcs3.sh: New file.
34009         * tests/test-mbsrtowcs4.sh: New file.
34010         * tests/test-mbsrtowcs.c: New file.
34011
34012         New module 'mbsrtowcs'.
34013         * lib/wchar.in.h (mbsrtowcs): New declaration.
34014         * lib/mbsrtowcs.c: New file.
34015         * m4/mbsrtowcs.m4: New file.
34016         * modules/mbsrtowcs: New file.
34017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34018         HAVE_MBSRTOWCS.
34019         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34020         HAVE_MBSRTOWCS.
34021         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34022
34023 2008-12-19  Bruno Haible  <bruno@clisp.org>
34024
34025         New module 'mbrlen'.
34026         * lib/wchar.in.h (mbrlen): New declaration.
34027         * lib/mbrlen.c: New file.
34028         * m4/mbrlen.m4: New file.
34029         * modules/mbrlen: New file.
34030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34031         HAVE_MBRLEN.
34032         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34033         HAVE_MBRLEN.
34034         * doc/posix-functions/mbrlen.texi: Document the new module.
34035
34036 2008-12-19  Bruno Haible  <bruno@clisp.org>
34037
34038         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34039         * modules/mbrtowc (Depends-on): Add verify.
34040         Suggested by Paul Eggert.
34041
34042 2008-12-18  Bruno Haible  <bruno@clisp.org>
34043
34044         * modules/mbsinit-tests: New file.
34045         * tests/test-mbsinit.sh: New file.
34046         * tests/test-mbsinit.c: New file.
34047
34048 2008-12-18  Bruno Haible  <bruno@clisp.org>
34049
34050         * modules/mbrtowc-tests: New file.
34051         * tests/test-mbrtowc1.sh: New file.
34052         * tests/test-mbrtowc2.sh: New file.
34053         * tests/test-mbrtowc3.sh: New file.
34054         * tests/test-mbrtowc4.sh: New file.
34055         * tests/test-mbrtowc.c: New file.
34056
34057         New module 'mbrtowc'.
34058         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34059         mbsinit and mbrtowc.
34060         (mbrtowc): New declaration.
34061         * lib/mbrtowc.c: New file.
34062         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34063         * modules/mbrtowc: New file.
34064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34065         HAVE_MBRTOWC.
34066         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34067         HAVE_MBRTOWC.
34068         * doc/posix-functions/mbrtowc.texi: Document the new module.
34069
34070 2008-12-18  Bruno Haible  <bruno@clisp.org>
34071
34072         New module 'wctob'.
34073         * lib/wchar.in.h (wctob): New declaration.
34074         * lib/wctob.c: New file.
34075         * m4/wctob.m4: New file.
34076         * modules/wctob: New file.
34077         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34078         HAVE_WCTOB.
34079         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34080         * doc/posix-functions/wctob.texi: Document the new module.
34081
34082 2008-12-18  Bruno Haible  <bruno@clisp.org>
34083
34084         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34085         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34086
34087 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34088
34089         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34090         G. Christensen" <tgc@jupiterrise.com>.
34091
34092         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34093         G. Christensen" <tgc@jupiterrise.com>.
34094
34095         * lib/flock.c: Need to include string.h.  Reported by "Tom
34096         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34097         <ebb9@byu.net>.
34098
34099 2008-12-18  Bruno Haible  <bruno@clisp.org>
34100
34101         * m4/locale-ja.m4: New file, from GNU gettext.
34102
34103 2008-12-17  Bruno Haible  <bruno@clisp.org>
34104
34105         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34106         Suggested by Eric Blake.
34107
34108 2008-12-17  Bruno Haible  <bruno@clisp.org>
34109
34110         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34111
34112 2008-12-17  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34115         * modules/mbsinit (Depends-on): Add verify.
34116         Suggested by Paul Eggert.
34117
34118 2008-12-17  Bruno Haible  <bruno@clisp.org>
34119
34120         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34121         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34122         gl_FUNC_MBRTOWC.
34123         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34124         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34125         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34126         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34127         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34128         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34129         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34130         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34131         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34132         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34133         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34134         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34135         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34136         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34137         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34138         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34139         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34140         * modules/trim (configure.ac): Likewise.
34141
34142 2008-12-17  Bruno Haible  <bruno@clisp.org>
34143
34144         * modules/btowc-tests: New file.
34145         * tests/test-btowc1.sh: New file.
34146         * tests/test-btowc2.sh: New file.
34147         * tests/test-btowc.c: New file.
34148
34149         New module 'btowc'.
34150         * lib/wchar.in.h (btowc): New declaration.
34151         * lib/btowc.c: New file.
34152         * m4/btowc.m4: New file.
34153         * modules/btowc: New file.
34154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34155         HAVE_BTOWC.
34156         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34157         * doc/posix-functions/btowc.texi: Document the new module.
34158
34159 2008-12-17  Bruno Haible  <bruno@clisp.org>
34160
34161         New module 'mbsinit'.
34162         * lib/wchar.in.h (mbsinit): New declaration.
34163         * lib/mbsinit.c: New file.
34164         * m4/mbsinit.m4: New file.
34165         * modules/mbsinit: New file.
34166         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34167         HAVE_MBSINIT.
34168         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34169         HAVE_MBSINIT.
34170         * doc/posix-functions/mbsinit.texi: Document the new module.
34171
34172 2008-12-16  Bruno Haible  <bruno@clisp.org>
34173
34174         * lib/unistd.in.h: Add comment.
34175         * tests/test-environ.c: Don't include <stdlib.h>.
34176
34177 2008-12-16  Bruno Haible  <bruno@clisp.org>
34178
34179         * lib/parse-duration.h (parse_duration): Document return value
34180         convention.
34181         * lib/parse-duration.c: Include specification header first. Add
34182         comments.
34183         (_): Remove macro.
34184         (parse_year_month_day, parse_hour_minute_second): Move side effects
34185         outside of strchr call.
34186         (parse_non_iso8601): Move side effects outside of isspace call.
34187         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34188         call.
34189
34190 2008-12-16  Bruno Haible  <bruno@clisp.org>
34191
34192         * tests/test-parse-duration.sh: Produce no output when the test
34193         succeeds.
34194
34195 2008-12-16  Bruno Haible  <bruno@clisp.org>
34196
34197         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34198         expressions.
34199
34200 2008-12-15  Bruno Haible  <bruno@clisp.org>
34201
34202         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34203         * doc/glibc-functions/flistxattr.texi: Likewise.
34204         * doc/glibc-functions/fopencookie.texi: Likewise.
34205         * doc/glibc-functions/fremovexattr.texi: Likewise.
34206         * doc/glibc-functions/fsetxattr.texi: Likewise.
34207         * doc/glibc-functions/getxattr.texi: Likewise.
34208         * doc/glibc-functions/lgetxattr.texi: Likewise.
34209         * doc/glibc-functions/listxattr.texi: Likewise.
34210         * doc/glibc-functions/llistxattr.texi: Likewise.
34211         * doc/glibc-functions/lremovexattr.texi: Likewise.
34212         * doc/glibc-functions/lsetxattr.texi: Likewise.
34213         * doc/glibc-functions/removexattr.texi: Likewise.
34214         * doc/glibc-functions/setxattr.texi: Likewise.
34215         * doc/posix-functions/open_memstream.texi: Likewise.
34216
34217 2008-12-15  Eric Blake  <ebb9@byu.net>
34218
34219         Update doc for cygwin 1.7.
34220         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34221         functions.
34222         * doc/posix-functions/fchmodat.texi: Likewise.
34223         * doc/posix-functions/fchownat.texi: Likewise.
34224         * doc/posix-functions/fdopendir.texi: Likewise.
34225         * doc/posix-functions/fmemopen.texi: Likewise.
34226         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34227         * doc/posix-functions/fstatat.texi: Likewise.
34228         * doc/posix-functions/futimens.texi: Likewise.
34229         * doc/posix-functions/gai_strerror.texi: Likewise.
34230         * doc/posix-functions/getaddrinfo.texi: Likewise.
34231         * doc/posix-functions/getnameinfo.texi: Likewise.
34232         * doc/posix-functions/if_freenameindex.texi: Likewise.
34233         * doc/posix-functions/if_indextoname.texi: Likewise.
34234         * doc/posix-functions/if_nameindex.texi: Likewise.
34235         * doc/posix-functions/if_nametoindex.texi: Likewise.
34236         * doc/posix-functions/insque.texi: Likewise.
34237         * doc/posix-functions/linkat.texi: Likewise.
34238         * doc/posix-functions/llrint.texi: Likewise.
34239         * doc/posix-functions/llrintf.texi: Likewise.
34240         * doc/posix-functions/llrintl.texi: Likewise.
34241         * doc/posix-functions/lockf.texi: Likewise.
34242         * doc/posix-functions/lrintl.texi: Likewise.
34243         * doc/posix-functions/mkdirat.texi: Likewise.
34244         * doc/posix-functions/mkfifoat.texi: Likewise.
34245         * doc/posix-functions/mknodat.texi: Likewise.
34246         * doc/posix-functions/mq_close.texi: Likewise.
34247         * doc/posix-functions/mq_getattr.texi: Likewise.
34248         * doc/posix-functions/mq_notify.texi: Likewise.
34249         * doc/posix-functions/mq_open.texi: Likewise.
34250         * doc/posix-functions/mq_receive.texi: Likewise.
34251         * doc/posix-functions/mq_send.texi: Likewise.
34252         * doc/posix-functions/mq_setattr.texi: Likewise.
34253         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34254         * doc/posix-functions/mq_timedsend.texi: Likewise.
34255         * doc/posix-functions/mq_unlink.texi: Likewise.
34256         * doc/posix-functions/open_memstream.texi: Likewise.
34257         * doc/posix-functions/openat.texi: Likewise.
34258         * doc/posix-functions/posix_fadvise.texi: Likewise.
34259         * doc/posix-functions/posix_fallocate.texi: Likewise.
34260         * doc/posix-functions/posix_madvise.texi: Likewise.
34261         * doc/posix-functions/posix_memalign.texi: Likewise.
34262         * doc/posix-functions/posix_openpt.texi: Likewise.
34263         * doc/posix-functions/readlinkat.texi: Likewise.
34264         * doc/posix-functions/remque.texi: Likewise.
34265         * doc/posix-functions/renameat.texi: Likewise.
34266         * doc/posix-functions/rintl.texi: Likewise.
34267         * doc/posix-functions/sem_unlink.texi: Likewise.
34268         * doc/posix-functions/shm_open.texi: Likewise.
34269         * doc/posix-functions/shm_unlink.texi: Likewise.
34270         * doc/posix-functions/signgam.texi: Likewise.
34271         * doc/posix-functions/sigset.texi: Likewise.
34272         * doc/posix-functions/stpcpy.texi: Likewise.
34273         * doc/posix-functions/stpncpy.texi: Likewise.
34274         * doc/posix-functions/strerror.texi: Likewise.
34275         * doc/posix-functions/strtod.texi: Likewise.
34276         * doc/posix-functions/symlinkat.texi: Likewise.
34277         * doc/posix-functions/unlinkat.texi: Likewise.
34278         * doc/posix-functions/utimensat.texi: Likewise.
34279         * doc/glibc-functions/bindresvport.texi: Likewise.
34280         * doc/glibc-functions/dn_expand.texi: Likewise.
34281         * doc/glibc-functions/exp10.texi: Likewise.
34282         * doc/glibc-functions/exp10f.texi: Likewise.
34283         * doc/glibc-functions/fgetxattr.texi: Likewise.
34284         * doc/glibc-functions/flistxattr.texi: Likewise.
34285         * doc/glibc-functions/fopencookie.texi: Likewise.
34286         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34287         * doc/glibc-functions/fremovexattr.texi: Likewise.
34288         * doc/glibc-functions/fsetxattr.texi: Likewise.
34289         * doc/glibc-functions/getifaddrs.texi: Likewise.
34290         * doc/glibc-functions/getxattr.texi: Likewise.
34291         * doc/glibc-functions/lgetxattr.texi: Likewise.
34292         * doc/glibc-functions/listxattr.texi: Likewise.
34293         * doc/glibc-functions/llistxattr.texi: Likewise.
34294         * doc/glibc-functions/lremovexattr.texi: Likewise.
34295         * doc/glibc-functions/lsetxattr.texi: Likewise.
34296         * doc/glibc-functions/pow10.texi: Likewise.
34297         * doc/glibc-functions/pow10f.texi: Likewise.
34298         * doc/glibc-functions/rcmd_af.texi: Likewise.
34299         * doc/glibc-functions/removexattr.texi: Likewise.
34300         * doc/glibc-functions/res_init.texi: Likewise.
34301         * doc/glibc-functions/res_mkquery.texi: Likewise.
34302         * doc/glibc-functions/res_query.texi: Likewise.
34303         * doc/glibc-functions/res_querydomain.texi: Likewise.
34304         * doc/glibc-functions/res_send.texi: Likewise.
34305         * doc/glibc-functions/rresvport_af.texi: Likewise.
34306         * doc/glibc-functions/setxattr.texi: Likewise.
34307         * doc/glibc-functions/strcasestr.texi: Likewise.
34308
34309 2008-12-15  Bruno Haible  <bruno@clisp.org>
34310
34311         Fix compilation error on OSF/1 4.0.
34312         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34313         <sys/time.h>, simply delegate to the system header.
34314         Reported by Daniel Richard G. <oss@teragram.com>.
34315
34316 2008-12-15  Bruno Haible  <bruno@clisp.org>
34317
34318         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34319         * doc/posix-functions/fchmodat.texi: Likewise.
34320         * doc/posix-functions/fchownat.texi: Likewise.
34321         * doc/posix-functions/fdopendir.texi: Likewise.
34322         * doc/posix-functions/fstatat.texi: Likewise.
34323         * doc/posix-functions/mkdirat.texi: Likewise.
34324         * doc/posix-functions/unlinkat.texi: Likewise.
34325
34326 2008-12-14  Bruno Haible  <bruno@clisp.org>
34327
34328         Update doc for POSIX:2008.
34329         * doc/posix-functions/faccessat.texi: New file.
34330         * doc/posix-functions/fchmodat.texi: New file.
34331         * doc/posix-functions/fchownat.texi: New file.
34332         * doc/posix-functions/fdopendir.texi: New file.
34333         * doc/posix-functions/fstatat.texi: New file.
34334         * doc/posix-functions/futimens.texi: New file.
34335         * doc/posix-functions/linkat.texi: New file.
34336         * doc/posix-functions/mkdirat.texi: New file.
34337         * doc/posix-functions/mkfifoat.texi: New file.
34338         * doc/posix-functions/mknodat.texi: New file.
34339         * doc/posix-functions/open_wmemstream.texi: New file.
34340         * doc/posix-functions/openat.texi: New file.
34341         * doc/posix-functions/psiginfo.texi: New file.
34342         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34343         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34344         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34345         * doc/posix-functions/readlinkat.texi: New file.
34346         * doc/posix-functions/renameat.texi: New file.
34347         * doc/posix-functions/strerror_l.texi: New file.
34348         * doc/posix-functions/symlinkat.texi: New file.
34349         * doc/posix-functions/unlinkat.texi: New file.
34350         * doc/posix-functions/utimensat.texi: New file.
34351         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34352
34353 2008-12-14  Bruno Haible  <bruno@clisp.org>
34354
34355         Update doc for POSIX:2008.
34356         * doc/posix-functions/alphasort.texi: Renamed from
34357         doc/glibc-functions/alphasort.texi.
34358         * doc/posix-functions/dirfd.texi: Renamed from
34359         doc/glibc-functions/dirfd.texi.
34360         * doc/posix-functions/dprintf.texi: Renamed from
34361         doc/glibc-functions/dprintf.texi.
34362         * doc/posix-functions/duplocale.texi: Renamed from
34363         doc/glibc-functions/duplocale.texi.
34364         * doc/posix-functions/fexecve.texi: Renamed from
34365         doc/glibc-functions/fexecve.texi.
34366         * doc/posix-functions/fmemopen.texi: Renamed from
34367         doc/glibc-functions/fmemopen.texi.
34368         * doc/posix-functions/freelocale.texi: Renamed from
34369         doc/glibc-functions/freelocale.texi.
34370         * doc/posix-functions/getdate_err.texi: Renamed from
34371         doc/glibc-functions/getdate_err.texi.
34372         * doc/posix-functions/isalnum_l.texi: Renamed from
34373         doc/glibc-functions/isalnum_l.texi.
34374         * doc/posix-functions/isalpha_l.texi: Renamed from
34375         doc/glibc-functions/isalpha_l.texi.
34376         * doc/posix-functions/isblank_l.texi: Renamed from
34377         doc/glibc-functions/isblank_l.texi.
34378         * doc/posix-functions/iscntrl_l.texi: Renamed from
34379         doc/glibc-functions/iscntrl_l.texi.
34380         * doc/posix-functions/isdigit_l.texi: Renamed from
34381         doc/glibc-functions/isdigit_l.texi.
34382         * doc/posix-functions/isgraph_l.texi: Renamed from
34383         doc/glibc-functions/isgraph_l.texi.
34384         * doc/posix-functions/islower_l.texi: Renamed from
34385         doc/glibc-functions/islower_l.texi.
34386         * doc/posix-functions/isprint_l.texi: Renamed from
34387         doc/glibc-functions/isprint_l.texi.
34388         * doc/posix-functions/ispunct_l.texi: Renamed from
34389         doc/glibc-functions/ispunct_l.texi.
34390         * doc/posix-functions/isspace_l.texi: Renamed from
34391         doc/glibc-functions/isspace_l.texi.
34392         * doc/posix-functions/isupper_l.texi: Renamed from
34393         doc/glibc-functions/isupper_l.texi.
34394         * doc/posix-functions/iswalnum_l.texi: Renamed from
34395         doc/glibc-functions/iswalnum_l.texi.
34396         * doc/posix-functions/iswalpha_l.texi: Renamed from
34397         doc/glibc-functions/iswalpha_l.texi.
34398         * doc/posix-functions/iswblank_l.texi: Renamed from
34399         doc/glibc-functions/iswblank_l.texi.
34400         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34401         doc/glibc-functions/iswcntrl_l.texi.
34402         * doc/posix-functions/iswctype_l.texi: Renamed from
34403         doc/glibc-functions/iswctype_l.texi.
34404         * doc/posix-functions/iswdigit_l.texi: Renamed from
34405         doc/glibc-functions/iswdigit_l.texi.
34406         * doc/posix-functions/iswgraph_l.texi: Renamed from
34407         doc/glibc-functions/iswgraph_l.texi.
34408         * doc/posix-functions/iswlower_l.texi: Renamed from
34409         doc/glibc-functions/iswlower_l.texi.
34410         * doc/posix-functions/iswprint_l.texi: Renamed from
34411         doc/glibc-functions/iswprint_l.texi.
34412         * doc/posix-functions/iswpunct_l.texi: Renamed from
34413         doc/glibc-functions/iswpunct_l.texi.
34414         * doc/posix-functions/iswspace_l.texi: Renamed from
34415         doc/glibc-functions/iswspace_l.texi.
34416         * doc/posix-functions/iswupper_l.texi: Renamed from
34417         doc/glibc-functions/iswupper_l.texi.
34418         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34419         doc/glibc-functions/iswxdigit_l.texi.
34420         * doc/posix-functions/isxdigit_l.texi: Renamed from
34421         doc/glibc-functions/isxdigit_l.texi.
34422         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34423         doc/glibc-functions/mbsnrtowcs.texi.
34424         * doc/posix-functions/mkdtemp.texi: Renamed from
34425         doc/glibc-functions/mkdtemp.texi.
34426         * doc/posix-functions/newlocale.texi: Renamed from
34427         doc/glibc-functions/newlocale.texi.
34428         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34429         doc/glibc-functions/nl_langinfo_l.texi.
34430         * doc/posix-functions/open_memstream.texi: Renamed from
34431         doc/glibc-functions/open_memstream.texi.
34432         * doc/posix-functions/opterr.texi: Renamed from
34433         doc/glibc-functions/opterr.texi.
34434         * doc/posix-functions/optind.texi: Renamed from
34435         doc/glibc-functions/optind.texi.
34436         * doc/posix-functions/optopt.texi: Renamed from
34437         doc/glibc-functions/optopt.texi.
34438         * doc/posix-functions/psignal.texi: Renamed from
34439         doc/glibc-functions/psignal.texi.
34440         * doc/posix-functions/scandir.texi: Renamed from
34441         doc/glibc-functions/scandir.texi.
34442         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34443         doc/glibc-functions/sched_get_priority_min.texi.
34444         * doc/posix-functions/signgam.texi: Renamed from
34445         doc/glibc-functions/signgam.texi.
34446         * doc/posix-functions/stpcpy.texi: Renamed from
34447         doc/glibc-functions/stpcpy.texi.
34448         * doc/posix-functions/stpncpy.texi: Renamed from
34449         doc/glibc-functions/stpncpy.texi.
34450         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34451         doc/glibc-functions/strcasecmp_l.texi.
34452         * doc/posix-functions/strcoll_l.texi: Renamed from
34453         doc/glibc-functions/strcoll_l.texi.
34454         * doc/posix-functions/strfmon_l.texi: Renamed from
34455         doc/glibc-functions/strfmon_l.texi.
34456         * doc/posix-functions/strftime_l.texi: Renamed from
34457         doc/glibc-functions/strftime_l.texi.
34458         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34459         doc/glibc-functions/strncasecmp_l.texi.
34460         * doc/posix-functions/strndup.texi: Renamed from
34461         doc/glibc-functions/strndup.texi.
34462         * doc/posix-functions/strnlen.texi: Renamed from
34463         doc/glibc-functions/strnlen.texi.
34464         * doc/posix-functions/strsignal.texi: Renamed from
34465         doc/glibc-functions/strsignal.texi.
34466         * doc/posix-functions/strxfrm_l.texi: Renamed from
34467         doc/glibc-functions/strxfrm_l.texi.
34468         * doc/posix-functions/timer_gettime.texi: Renamed from
34469         doc/glibc-functions/timer_gettime.texi.
34470         * doc/posix-functions/tolower_l.texi: Renamed from
34471         doc/glibc-functions/tolower_l.texi.
34472         * doc/posix-functions/toupper_l.texi: Renamed from
34473         doc/glibc-functions/toupper_l.texi.
34474         * doc/posix-functions/towctrans_l.texi: Renamed from
34475         doc/glibc-functions/towctrans_l.texi.
34476         * doc/posix-functions/towlower_l.texi: Renamed from
34477         doc/glibc-functions/towlower_l.texi.
34478         * doc/posix-functions/towupper_l.texi: Renamed from
34479         doc/glibc-functions/towupper_l.texi.
34480         * doc/posix-functions/uselocale.texi: Renamed from
34481         doc/glibc-functions/uselocale.texi.
34482         * doc/posix-functions/vdprintf.texi: Renamed from
34483         doc/glibc-functions/vdprintf.texi.
34484         * doc/posix-functions/wcpcpy.texi:
34485         Renamed from doc/glibc-functions/wcpcpy.texi.
34486         * doc/posix-functions/wcpncpy.texi: Renamed from
34487         doc/glibc-functions/wcpncpy.texi.
34488         * doc/posix-functions/wcscasecmp.texi: Renamed from
34489         doc/glibc-functions/wcscasecmp.texi.
34490         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34491         doc/glibc-functions/wcscasecmp_l.texi.
34492         * doc/posix-functions/wcscoll_l.texi: Renamed from
34493         doc/glibc-functions/wcscoll_l.texi.
34494         * doc/posix-functions/wcsdup.texi: Renamed from
34495         doc/glibc-functions/wcsdup.texi.
34496         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34497         doc/glibc-functions/wcsncasecmp.texi.
34498         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34499         doc/glibc-functions/wcsncasecmp_l.texi.
34500         * doc/posix-functions/wcsnlen.texi: Renamed from
34501         doc/glibc-functions/wcsnlen.texi.
34502         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34503         doc/glibc-functions/wcsnrtombs.texi.
34504         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34505         doc/glibc-functions/wcsxfrm_l.texi.
34506         * doc/posix-functions/wctrans_l.texi: Renamed from
34507         doc/glibc-functions/wctrans_l.texi.
34508         * doc/posix-functions/wctype_l.texi: Renamed from
34509         doc/glibc-functions/wctype_l.texi.
34510         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34511         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34512         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34513         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34514         these subsections.
34515         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34516         Remove sections.
34517
34518 2008-12-14  Bruno Haible  <bruno@clisp.org>
34519
34520         Update doc for POSIX:2008.
34521         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34522
34523 2008-12-14  Bruno Haible  <bruno@clisp.org>
34524
34525         Update doc for POSIX:2008.
34526         * doc/pastposix-functions/bcmp.texi: Renamed from
34527         doc/posix-functions/bcmp.texi.
34528         * doc/pastposix-functions/bcopy.texi: Renamed from
34529         doc/posix-functions/bcopy.texi.
34530         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34531         doc/posix-functions/bsd_signal.texi.
34532         * doc/pastposix-functions/bzero.texi: Renamed from
34533         doc/posix-functions/bzero.texi.
34534         * doc/pastposix-functions/ecvt.texi: Renamed from
34535         doc/posix-functions/ecvt.texi.
34536         * doc/pastposix-functions/fcvt.texi: Renamed from
34537         doc/posix-functions/fcvt.texi.
34538         * doc/pastposix-functions/ftime.texi: Renamed from
34539         doc/posix-functions/ftime.texi.
34540         * doc/pastposix-functions/gcvt.texi: Renamed from
34541         doc/posix-functions/gcvt.texi.
34542         * doc/pastposix-functions/getcontext.texi: Renamed from
34543         doc/posix-functions/getcontext.texi.
34544         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34545         doc/posix-functions/gethostbyaddr.texi.
34546         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34547         doc/posix-functions/gethostbyname.texi.
34548         * doc/pastposix-functions/getwd.texi: Renamed from
34549         doc/posix-functions/getwd.texi.
34550         * doc/pastposix-functions/h_errno.texi: Renamed from
34551         doc/posix-functions/h_errno.texi.
34552         * doc/pastposix-functions/index.texi: Renamed from
34553         doc/posix-functions/index.texi.
34554         * doc/pastposix-functions/makecontext.texi: Renamed from
34555         doc/posix-functions/makecontext.texi.
34556         * doc/pastposix-functions/mktemp.texi: Renamed from
34557         doc/posix-functions/mktemp.texi.
34558         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34559         doc/posix-functions/pthread_attr_getstackaddr.texi.
34560         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34561         doc/posix-functions/pthread_attr_setstackaddr.texi.
34562         * doc/pastposix-functions/rindex.texi: Renamed from
34563         doc/posix-functions/rindex.texi.
34564         * doc/pastposix-functions/scalb.texi: Renamed from
34565         doc/posix-functions/scalb.texi.
34566         * doc/pastposix-functions/setcontext.texi: Renamed from
34567         doc/posix-functions/setcontext.texi.
34568         * doc/pastposix-functions/swapcontext.texi: Renamed from
34569         doc/posix-functions/swapcontext.texi.
34570         * doc/pastposix-functions/ualarm.texi: Renamed from
34571         doc/posix-functions/ualarm.texi.
34572         * doc/pastposix-functions/usleep.texi: Renamed from
34573         doc/posix-functions/usleep.texi.
34574         * doc/pastposix-functions/vfork.texi: Renamed from
34575         doc/posix-functions/vfork.texi.
34576         * doc/pastposix-functions/wcswcs.texi: Renamed from
34577         doc/posix-functions/wcswcs.texi.
34578         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34579         (Function Substitutes): Update.
34580
34581 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34582
34583         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34584         m4/strerror.m4.
34585
34586 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34587             Bruno Haible  <bruno@clisp.org>
34588
34589         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34590
34591 2008-12-13  Bruno Haible  <bruno@clisp.org>
34592
34593         * modules/strtoull (Depends-on): Remove unistd.
34594
34595 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34596
34597         * modules/strtoull (Depends-on): Add stdlib.
34598
34599 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34600
34601         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34602
34603 2008-12-10  Jim Meyering  <meyering@redhat.com>
34604
34605         gl_ASSERT: don't say assertions are disabled when they're not
34606         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34607         "checking whether to enable assertions... no", when they are in
34608         fact enabled.  This is solely a bug in the output of configure.
34609         In spite of saying "no", NDEBUG was not defined in that case.
34610         Also, as noted by Eric Blake, leave assertions enabled upon
34611         --enable-assert=INVALID.
34612
34613 2008-12-10  Bruno Haible  <bruno@clisp.org>
34614
34615         Change MODULES.html to refer to POSIX:2008 where possible.
34616         * MODULES.html.sh (POSIX2008_URL): New variable.
34617         (posix_headers): Remove sys/timeb, ucontext.
34618         (posix2001_headers): New variable.
34619         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34620         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34621         index, makecontext, mktemp, pthread_attr_getstackaddr,
34622         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34623         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34624         (posix2001_functions): New variable.
34625         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34626         otherwise.
34627
34628 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34629
34630         add missing include to parse-duration.c
34631         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34632         * modules/parse-duration (Depends-on): Add xalloc.
34633
34634         fix sed script reading maint.mk
34635         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34636         (syntax-check-rules): Use it.
34637
34638 2008-12-09  Bruno Haible  <bruno@clisp.org>
34639
34640         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34641         MacOS X 10.4/PowerPC.
34642         Reported by Simon Josefsson.
34643
34644 2008-12-08  Jim Meyering  <meyering@redhat.com>
34645
34646         work around mingw's lack of some S_IF definitions
34647         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34648         Reported by Simon Josefsson.
34649
34650 2008-12-08  Bruno Haible  <bruno@clisp.org>
34651
34652         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34653         applied to variables. Needed on MacOS X 10.4/PowerPC.
34654         Reported by Simon Josefsson.
34655
34656 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34657         and Eric Blake  <ebb9@byu.net>
34658
34659         assert: honor --enable-assert
34660         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34661         order to honor --enable-assert, rather than treating it as a
34662         synonym for --disable-assert.
34663
34664 2008-12-08  Jim Meyering  <meyering@redhat.com>
34665
34666         * lib/posixtm.c: Remove now-useless declaration of mktime.
34667
34668         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34669
34670 2008-12-07  Bruno Haible  <bruno@clisp.org>
34671
34672         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34673         test_once): Mark functions as static.
34674         * tests/test-tls.c (test_tls): Likewise.
34675
34676 2008-12-07  Bruno Haible  <bruno@clisp.org>
34677
34678         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34679         iconv_register_autodetect.
34680
34681 2008-12-07  Jim Meyering  <meyering@redhat.com>
34682
34683         posixtm.c: avoid a warning
34684         * lib/posixtm.c (posixtime): Don't initialize tm0.
34685         It's no longer needed to placate gcc4's -Wuninitialized,
34686         and the attempt to placate would elicit a new warning.
34687
34688         unicodeio.c: mark unused parameters
34689         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34690         (fallback_failure_callback): Likewise.
34691
34692 2008-12-07  Bruno Haible  <bruno@clisp.org>
34693
34694         * gnulib-tool (func_create_testdir): When building the tests
34695         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34696         Reported by Simon Josefsson.
34697
34698 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34699
34700         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34701
34702 2008-12-06  Bruno Haible  <bruno@clisp.org>
34703
34704         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34705         Suggested by Eric Blake.
34706
34707 2008-12-06  Bruno Haible  <bruno@clisp.org>
34708
34709         Fix a c-stack test failure on MacOS X.
34710         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34711         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34712         handler for SIGBUS as well.
34713         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34714         install a signal handler for SIGBUS as well.
34715         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34716
34717 2008-12-06  Bruno Haible  <bruno@clisp.org>
34718
34719         Advocacy documentation.
34720         * doc/gnulib-intro.texi (Benefits): New section.
34721         * doc/gnulib.texi: Update.
34722
34723 2008-12-06  Bruno Haible  <bruno@clisp.org>
34724
34725         Document the 'manywarnings' module.
34726         * doc/manywarnings.texi: New file.
34727         * doc/gnulib.texi: Include it.
34728
34729 2008-12-05  Eric Blake  <ebb9@byu.net>
34730
34731         tests: silence some gcc warnings
34732         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34733         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34734         type mismatches.
34735
34736 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34737             Bruno Haible  <bruno@clisp.org>
34738
34739         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34740
34741 2008-11-29  Jim Meyering  <meyering@redhat.com>
34742
34743         unicodeio.c: mark unused parameters
34744         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34745         (fallback_failure_callback): Likewise.
34746
34747         fts: fix a thinko
34748         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34749         (set_stat_type): Return S_IF*-valued "type" directly.
34750         Prompted by James Youngman's spotting a related bug.
34751         Confirmed by further testing through find.
34752
34753         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34754         * lib/fts.c (D_TYPE): Define.
34755         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34756         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34757         (s_ifmt_shift_bits): New function.
34758         (set_stat_type): New function.
34759         (fts_build): When not calling fts_stat, call set_stat_type
34760         to propagate dirent.d_type info to fts_read caller.
34761         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34762         fts_statp->st_mode type information may be valid.
34763
34764 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34765
34766         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34767         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34768         <sds@gnu.org>.
34769
34770 2008-11-20  Bruno Haible  <bruno@clisp.org>
34771
34772         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34773         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34774         INCLUDE_NEXT.
34775         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34776         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34777         * modules/math (Makefile.am): Substitute
34778         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34779         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34780
34781 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34782             Bruno Haible  <bruno@clisp.org>
34783
34784         * lib/stdint.in.h: Define all type macros so that their expansion is
34785         a single typedef'ed token. Fixes a compilation failure in Boost which
34786         does "using ::int8_t;".
34787
34788 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34789
34790         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34791         gl_MANYWARN_ALL_GCC.
34792         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34793         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34794         * modules/manywarnings: New file.
34795         * MODULES.html.sh: Mention manywarnings module.
34796
34797 2008-11-18  Bruno Haible  <bruno@clisp.org>
34798
34799         * doc/gnulib-tool.texi (Unit tests): New section.
34800
34801 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34802
34803         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34804         paths like 'lib/po/foo.po'.
34805
34806 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34807
34808         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34809         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34810
34811 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34812
34813         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34814         parameter works.
34815
34816 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34817
34818         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34819
34820 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34821
34822         * modules/parse-duration-tests: New file.
34823         * tests/test-parse-duration.sh: New file.
34824         * tests/test-parse-duration.c: New file.
34825
34826         New module 'parse-duration'.
34827         * lib/parse-duration.h: New file.
34828         * lib/parse-duration.c: New file.
34829         * modules/parse-duration: New file.
34830
34831 2008-11-17  Bruno Haible  <bruno@clisp.org>
34832
34833         * tests/test-select-out.sh: Comment out the first pipe test.
34834         Reported by Simon Josefsson.
34835
34836 2008-11-17  Bruno Haible  <bruno@clisp.org>
34837
34838         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34839         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34840         gl_HOSTENT.
34841
34842 2008-11-17  Bruno Haible  <bruno@clisp.org>
34843
34844         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34845         -lnetwork and -lnet. Needed for Haiku and BeOS.
34846
34847 2008-11-16  Bruno Haible  <bruno@clisp.org>
34848
34849         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34850
34851 2008-11-16  Bruno Haible  <bruno@clisp.org>
34852
34853         Avoid test failure on Haiku.
34854         * tests/test-fsync.c: Include <errno.h>.
34855         (main): Don't require that fsync (0) fails.
34856
34857 2008-11-15  Bruno Haible  <bruno@clisp.org>
34858
34859         New module 'hostent'.
34860         * modules/hostent: New file.
34861         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34862
34863 2008-11-15  Bruno Haible  <bruno@clisp.org>
34864
34865         New module 'servent'.
34866         * modules/servent: New file.
34867         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34868
34869 2008-11-15  Bruno Haible  <bruno@clisp.org>
34870
34871         Avoid generating same test program with two different rules.
34872         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34873         test-frexp to test-frexp-nolibm.
34874         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34875         test-frexpl to test-frexpl-nolibm.
34876
34877 2008-11-15  Bruno Haible  <bruno@clisp.org>
34878
34879         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34880         $(FREXPL_LIBM).
34881
34882 2008-11-15  Bruno Haible  <bruno@clisp.org>
34883
34884         * lib/netdb.in.h: Activate the definitions also when the system's
34885         <netdb.h> has 'struct addrinfo'.
34886         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34887         EAI_OVERFLOW or AI_NUMERICSERV.
34888         * doc/posix-headers/netdb.texi: Document the problem.
34889
34890 2008-11-15  Bruno Haible  <bruno@clisp.org>
34891
34892         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34893
34894         Make the 'sched' module work on platforms where <sched.h> exists but
34895         is incomplete (such as Haiku).
34896         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34897         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34898         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34899         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34900         HAVE_STRUCT_SCHED_PARAM.
34901         * modules/sched (Depends-on): Add include_next.
34902         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34903         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34904         * doc/posix-headers/sched.texi: Document the issue.
34905
34906 2008-11-13  Jim Meyering  <meyering@redhat.com>
34907
34908         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34909         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34910         test would fail due to the difference in the Report bugs to ...
34911         line.  The expected address is empty, "<>", while the actual
34912         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34913
34914 2008-11-12  Bruno Haible  <bruno@clisp.org>
34915
34916         lstat: don't compile lstat.c on systems lacking lstat
34917         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34918         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34919         Reported by Daniel P. Berrange via Jim Meyering.
34920
34921 2008-11-12  Jim Meyering  <meyering@redhat.com>
34922
34923         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34924
34925 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34926
34927         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34928         instead.
34929
34930 2008-11-12  Bruno Haible  <bruno@clisp.org>
34931
34932         * lib/unicodeio.c: Include unistr.h.
34933         (utf8_wctomb): Remove function.
34934         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34935
34936 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34937
34938         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34939         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34940         <bruno@clisp.org>.
34941         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34942
34943 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34944
34945         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34946         * doc/gnulib.texi: Add section for warnings.
34947
34948 2008-11-11  Bruno Haible  <bruno@clisp.org>
34949
34950         * lib/sockets.h: Add a comment.
34951
34952 2008-11-11  Karl Berry  <karl@gnu.org>
34953
34954         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34955
34956 2008-11-11  Eric Blake  <ebb9@byu.net>
34957
34958         fdl.texi: avoid git symlinks
34959         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34960
34961 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34962
34963         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34964
34965 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34966
34967         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34968         (gl_WARN_ADD): Substitute $2 if literal.
34969
34970 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34971
34972         * m4/warning.m4: Remove.
34973
34974 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34975
34976         * m4/warnings.m4: Almost complete rewrite. :-)
34977
34978 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34979
34980         * modules/warnings: New module.
34981         * m4/warnings.m4: New file.
34982         * MODULES.html.sh: Mention warnings module.
34983         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34984         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34985
34986 2008-11-10  Eric Blake  <ebb9@byu.net>
34987
34988         fdl.texi: make a symlink to the latest version
34989         * doc/standards.texi: Revert today's earlier change.
34990         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34991         * doc/fdl.texi: ...and replace this with a symlink to the newer
34992         fdl-1.3.texi.
34993
34994 2008-11-10  Bruno Haible  <bruno@clisp.org>
34995
34996         * tests/test-select-fd.c (main): Accept the result file name as fourth
34997         argument.
34998         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34999         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35000
35001 2008-11-10  Bruno Haible  <bruno@clisp.org>
35002
35003         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35004         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35005         as autoconf-substituted macros.
35006         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35007         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35008         gl_NETDB_H_DEFAULTS. Set these variables.
35009         * modules/netdb (Makefile.am): Substitute these variables.
35010
35011 2008-11-10  Eric Blake  <ebb9@byu.net>
35012
35013         standards.texi: include correct file for FDL 1.3
35014         * doc/standards.texi (GNU Free Documentation License): Change
35015         include file to pull in FDL 1.3, not 1.2.
35016
35017         fdl.texi: revert accidental change to license
35018         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35019
35020 2008-11-10  Bruno Haible  <bruno@clisp.org>
35021
35022         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35023         cross-compiling guesses also when the native compile gives no result.
35024
35025 2008-11-10  Bruno Haible  <bruno@clisp.org>
35026
35027         * lib/spawni.c (__spawni): Force variable into the stack.
35028
35029 2008-11-10  Bruno Haible  <bruno@clisp.org>
35030
35031         Add support for Haiku.
35032         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35033         glibc and BeOS, but also on Haiku.
35034         * lib/fpurge.c (fpurge): Likewise.
35035         * lib/freadable.c (freadable): Likewise.
35036         * lib/freadahead.c (freadahead): Likewise.
35037         * lib/freading.c (freading): Likewise.
35038         * lib/freadptr.c (freadptr): Likewise.
35039         * lib/freadseek.c (freadptrinc): Likewise.
35040         * lib/fseeko.c (rpl_fseeko): Likewise.
35041         * lib/fseterr.c (fseterr): Likewise.
35042         * lib/fwritable.c (fwritable): Likewise.
35043         * lib/fwriting.c (fwriting): Likewise.
35044         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35045
35046 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35047
35048         * lib/config.charset: Treat Haiku like BeOS.
35049
35050 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35051
35052         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35053         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35054
35055 2008-11-08  Bruno Haible  <bruno@clisp.org>
35056
35057         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35058         AC_CACHE_CHECK.
35059
35060 2008-11-08  Bruno Haible  <bruno@clisp.org>
35061
35062         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35063
35064 2008-11-08  Bruno Haible  <bruno@clisp.org>
35065
35066         * tests/test-select-fd.c: New file.
35067         * tests/test-select-in.sh: New file.
35068         * tests/test-select-out.sh: New file.
35069         * tests/test-select-stdin.c: New file.
35070         * modules/select-tests (Files): Add the new files.
35071         (Depends-on): Add gettimeofday.
35072         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35073         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35074         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35075
35076 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35077             Bruno Haible  <bruno@clisp.org>
35078
35079         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35080
35081 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35082
35083         * build-aux/pmccabe2html: Added support for C++ source files.
35084
35085 2008-11-05  Ben Pfaff  <blp@gnu.org>
35086
35087         Fix lib/close.c build on Windows.
35088         * modules/close (Files): Add lib/w32sock.h.
35089
35090 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35091
35092         Accept Bison's NEWS format.
35093         * build-aux/announce-gen (print_news_deltas): Tweak
35094         $re_prefix.
35095
35096 2008-11-04  Bruno Haible  <bruno@clisp.org>
35097
35098         * modules/random_r (Maintainer): Add glibc.
35099
35100 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35101
35102         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35103         by karl@freefriends.org (Karl Berry).
35104         * doc/alloca.texi: Likewise.
35105         * doc/c-ctype.texi: Likewise.
35106         * doc/c-strcase.texi: Likewise.
35107         * doc/c-strcaseeq.texi: Likewise.
35108         * doc/c-strcasestr.texi: Likewise.
35109         * doc/c-strstr.texi: Likewise.
35110         * doc/c-strtod.texi: Likewise.
35111         * doc/c-strtold.texi: Likewise.
35112         * doc/ctime.texi: Likewise.
35113         * doc/error.texi: Likewise.
35114         * doc/fdl.texi: Likewise.
35115         * doc/gcd.texi: Likewise.
35116         * doc/getdate.texi: Likewise.
35117         * doc/gnulib-intro.texi: Likewise.
35118         * doc/gnulib-tool.texi: Likewise.
35119         * doc/gnulib.texi: Likewise.
35120         * doc/inet_ntoa.texi: Likewise.
35121         * doc/maintain.texi: Likewise.
35122         * doc/make-stds.texi: Likewise.
35123         * doc/quote.texi: Likewise.
35124         * doc/regexprops-generic.texi: Likewise.
35125         * doc/standards.texi: Likewise.
35126         * doc/verify.texi: Likewise.
35127         * doc/visibility.texi: Likewise.
35128         * doc/gnulib.texi (GNU Free Documentation License): Include
35129         fdl-1.3.texi instead of fdl.texi.
35130
35131 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35132
35133         * doc/fdl-1.3.texi: New file, from
35134         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35135         * modules/fdl-1.3: Add.
35136         * MODULES.html.sh: Add fdl-1.3.
35137
35138 2008-11-03  Bruno Haible  <bruno@clisp.org>
35139
35140         Make determination of absolute name of header file work with AIX xlc.
35141         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35142         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35143         preprocessing.
35144         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35145         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35146
35147 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35148
35149         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35150         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35151         <ludo@gnu.org>.
35152
35153 2008-11-02  Bruno Haible  <bruno@clisp.org>
35154
35155         Mark 'strpbrk' obsolete.
35156         * modules/strpbrk (Status, Notice): New sections.
35157         * modules/strtok_r (Depends-on): Add strpbrk.
35158
35159 2008-11-02  Bruno Haible  <bruno@clisp.org>
35160
35161         Mark 'strdup' obsolete.
35162         * modules/strdup (Status, Notice): New sections.
35163         * modules/findprog (Depends-on): Add strdup.
35164         * modules/getaddrinfo (Depends-on): Likewise.
35165         * modules/localename (Depends-on): Likewise.
35166         * modules/relocatable-lib (Depends-on): Likewise.
35167         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35168         * modules/relocatable-prog (Depends-on): Likewise.
35169         * modules/trim (Depends-on): Likewise.
35170         * modules/unictype/gen-ctype (Depends-on): Likewise.
35171         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35172
35173 2008-11-02  Bruno Haible  <bruno@clisp.org>
35174
35175         Mark 'strcspn' obsolete.
35176         * modules/strcspn (Status, Notice): New sections.
35177
35178 2008-11-02  Bruno Haible  <bruno@clisp.org>
35179
35180         Mark 'rmdir' obsolete.
35181         * modules/rmdir (Status, Notice): New sections.
35182         * modules/clean-temp (Depends-on): Add rmdir.
35183         * modules/openat (Depends-on): Likewise.
35184
35185 2008-11-02  Bruno Haible  <bruno@clisp.org>
35186
35187         Mark 'raise' obsolete.
35188         * modules/raise (Status, Notice): New sections.
35189         (Include): Specify <signal.h>.
35190         * modules/stdio (Depends-on): Add raise.
35191         * modules/write (Depends-on): Likewise.
35192
35193 2008-11-02  Bruno Haible  <bruno@clisp.org>
35194
35195         Mark 'memset' obsolete.
35196         * modules/memset (Status, Notice): New sections.
35197
35198 2008-11-02  Bruno Haible  <bruno@clisp.org>
35199
35200         Mark 'memmove' obsolete.
35201         * modules/memmove (Status, Notice): New sections.
35202         * modules/argp (Depends-on): Add memmove.
35203         * modules/argz (Depends-on): Likewise.
35204         * modules/canonicalize (Depends-on): Likewise.
35205         * modules/canonicalize-lgpl (Depends-on): Likewise.
35206         * modules/fts (Depends-on): Likewise.
35207         * modules/getcwd (Depends-on): Likewise.
35208         * modules/human (Depends-on): Likewise.
35209         * modules/regex (Depends-on): Likewise.
35210         * modules/striconveh (Depends-on): Likewise.
35211         * modules/trim (Depends-on): Likewise.
35212         * modules/unistr/u8-move (Depends-on): Likewise.
35213         * modules/unistr/u16-move (Depends-on): Likewise.
35214         * modules/unistr/u32-move (Depends-on): Likewise.
35215
35216 2008-11-02  Bruno Haible  <bruno@clisp.org>
35217
35218         Mark 'memcpy' obsolete.
35219         * modules/memcpy (Status, Notice): New sections.
35220
35221 2008-11-02  Bruno Haible  <bruno@clisp.org>
35222
35223         Mark 'memcmp' obsolete.
35224         * modules/memcmp (Status, Notice): New sections.
35225         * modules/argmatch (Depends-on): Add memchr.
35226         * modules/backupfile (Depends-on): Likewise.
35227         * modules/c-strcasestr (Depends-on): Likewise.
35228         * modules/crypto/des (Depends-on): Likewise.
35229         * modules/csharpcomp (Depends-on): Likewise.
35230         * modules/fnmatch (Depends-on): Likewise.
35231         * modules/git-merge-changelog (Depends-on): Likewise.
35232         * modules/isnand (Depends-on): Likewise.
35233         * modules/isnand-nolibm (Depends-on): Likewise.
35234         * modules/isnanf (Depends-on): Likewise.
35235         * modules/isnanf-nolibm (Depends-on): Likewise.
35236         * modules/isnanl (Depends-on): Likewise.
35237         * modules/isnanl-nolibm (Depends-on): Likewise.
35238         * modules/mbchar (Depends-on): Likewise.
35239         * modules/memcoll (Depends-on): Likewise.
35240         * modules/quotearg (Depends-on): Likewise.
35241         * modules/regex (Depends-on): Likewise.
35242         * modules/relocatable-prog (Depends-on): Likewise.
35243         * modules/same (Depends-on): Likewise.
35244         * modules/signbit (Depends-on): Likewise.
35245         * modules/strcasestr-simple (Depends-on): Likewise.
35246         * modules/unictype/gen-ctype (Depends-on): Likewise.
35247         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35248         * modules/uniname/uniname (Depends-on): Likewise.
35249         * modules/unistr/u8-cmp (Depends-on): Likewise.
35250
35251 2008-11-02  Bruno Haible  <bruno@clisp.org>
35252
35253         Mark 'memchr' obsolete.
35254         * modules/memchr (Status, Notice): New sections.
35255         * modules/argp (Depends-on): Add memchr.
35256         * modules/base64 (Depends-on): Likewise.
35257         * modules/c-strcasestr (Depends-on): Likewise.
35258         * modules/chdir-long (Depends-on): Likewise.
35259         * modules/fnmatch (Depends-on): Likewise.
35260         * modules/getsubopt (Depends-on): Likewise.
35261         * modules/git-merge-changelog (Depends-on): Likewise.
35262         * modules/glob (Depends-on): Likewise.
35263         * modules/strcasestr-simple (Depends-on): Likewise.
35264         * modules/strnlen (Depends-on): Likewise.
35265
35266 2008-11-02  Bruno Haible  <bruno@clisp.org>
35267
35268         Mark 'atexit' obsolete.
35269         * modules/atexit (Status, Notice): New sections.
35270         * modules/chdir-long (Depends-on): Add atexit.
35271         * modules/wait-process (Depends-on): Likewise.
35272
35273 2008-11-02  Bruno Haible  <bruno@clisp.org>
35274
35275         * gnulib-tool: New option --with-obsolete.
35276         (func_usage): Document it.
35277         (func_modules_transitive_closure): Drop obsolete dependencies if
35278         incobsolete is not true.
35279         (func_import): Read and save the incobsolete variable to the cache.
35280
35281 2008-11-02  Bruno Haible  <bruno@clisp.org>
35282
35283         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35284         * gnulib-tool: New option --extract-status.
35285         (func_usage): Document it.
35286         (sed_extract_prog): Recognize it.
35287         (func_get_status): New function.
35288
35289 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35290
35291         * modules/sockets (License): Change from LGPL to LGPLv2+.
35292
35293 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35294
35295         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35296
35297 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35298
35299         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35300         Mention times and sys_times.
35301         * modules/sys_times, modules/sys_times-tests: New modules.
35302         * modules/times, modules/times-tests: Likewise
35303         * m4/sys_times_h.m4: New file.
35304         * lib/sys_times.in.h: Likewise
35305         * lib/times.c: Likewise.
35306         * tests/test-sys_times.c: Likewise.
35307         * tests/test-times.c: Likewise.
35308         * doc/posix-headers/sys_times.texi: Update.
35309         * doc/posix-functions/times.texi: Update.
35310
35311 2008-10-28  Jim Meyering  <meyering@redhat.com>
35312
35313         * modules/tempname (Depends-on): Add lstat.
35314
35315         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35316
35317 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35318
35319         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35320         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35321         using idiom used elsewhere in gnulib.
35322
35323 2008-10-27  Jim Meyering  <meyering@redhat.com>
35324
35325         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35326
35327 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35328
35329         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35330         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35331         programs.
35332         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35333
35334 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35335
35336         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35337
35338 2008-10-27  Bruno Haible  <bruno@clisp.org>
35339
35340         * tests/test-lstat.c: Include <stdio.h>.
35341
35342 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35343
35344         * modules/lstat-tests: New module.
35345         * tests/test-lstat.c: New file.
35346
35347 2008-10-26  Jim Meyering  <meyering@redhat.com>
35348
35349         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35350
35351 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35352             Bruno Haible  <bruno@clisp.org>
35353
35354         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35355         * modules/configmake (Include): Add a note that the include must come
35356         after all system headers.
35357         * lib/javaversion.c: Include configmake.h after all other includes.
35358
35359 2008-10-26  Bruno Haible  <bruno@clisp.org>
35360
35361         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35362         HAVE_STRUCT_RANDOM_DATA to 1.
35363         (gl_STDLIB_H): Simplify.
35364
35365 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35366
35367         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35368         substitute HAVE_STRUCT_RANDOM_DATA.
35369         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35370         random_data.
35371         * modules/stdlib (Makefile.am): Substitute
35372         HAVE_STRUCT_RANDOM_DATA.
35373
35374 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35375
35376         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35377         * doc/gnulib-intro.texi (Copyright): Likewise.
35378
35379 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35380
35381         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35382         findings.
35383
35384 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35385             Bruno Haible  <bruno@clisp.org>
35386
35387         * lib/unistd.in.h: Include <winsock2.h>.
35388         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35389         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35390         Provide dummy declarations.
35391         (gethostname): Override.
35392         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35393         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35394         gl_PREREQ_SYS_H_WINSOCK2.
35395         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35396         * doc/posix-functions/gethostname.texi: More details.
35397
35398 2008-10-25  Bruno Haible  <bruno@clisp.org>
35399
35400         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35401         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35402         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35403
35404         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35405         here ...
35406         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35407         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35408         gl_UNISTD_H_DEFAULTS.
35409
35410 2008-10-25  Eric Blake  <ebb9@byu.net>
35411
35412         signbit: avoid spurious compiler failure
35413         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35414         declarations inside function.
35415
35416 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35417             Bruno Haible  <bruno@clisp.org>
35418
35419         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35420         * modules/random_r (Depends-on): Add stdint.
35421
35422 2008-10-24  Bruno Haible  <bruno@clisp.org>
35423
35424         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35425         Eggert.
35426         * modules/strerror (License): Likewise.
35427
35428 2008-10-24  Jim Meyering  <meyering@redhat.com>
35429
35430         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35431         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35432
35433 2008-10-24  Eric Blake  <ebb9@byu.net>
35434
35435         getgroups: fix compilation when getgroups is available
35436         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35437         but with <config.h> override of getgroups disabled.
35438
35439 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35440
35441         * doc/gnulib.texi (Header files): Add note about C++ problems.
35442         Explained by Bruno Haible <bruno@clisp.org>.
35443
35444 2008-10-23  Bruno Haible  <bruno@clisp.org>
35445
35446         Define a dummy SA_NODEFER macro on Interix.
35447         * lib/signal.in.h (SA_NODEFER): Define fallback.
35448         Reported by Aleksey Cheusov <cheusov@tut.by> via
35449         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35450
35451 2008-10-23  Bruno Haible  <bruno@clisp.org>
35452
35453         * modules/freadahead (License): Change to LGPLv2+.
35454         Suggested by Simon Josefsson.
35455
35456 2008-10-23  Jim Meyering  <meyering@redhat.com>
35457
35458         random_r: new module
35459         * modules/random_r: New file.
35460         * m4/random_r.m4: New file.
35461         * lib/random_r.c: New file, from glibc.
35462         * modules/random_r-tests: New file.
35463         * tests/test-random_r.c: New file.
35464         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35465          Declare.
35466         (RAND_MAX): Define.
35467         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35468         * modules/stdlib: Substitute them, too.
35469         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35470         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35471         * doc/glibc-functions/random_r.texi: Likewise.
35472         * doc/glibc-functions/setstate_r.texi: Likewise.
35473         * doc/glibc-functions/srandom_r.texi: Likewise.
35474         * config/srclist.txt: Mention it.
35475
35476 2008-10-23  David Lutterkort  <lutter@redhat.com>
35477
35478         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35479         link requirement
35480
35481 2008-10-23  Jim Meyering  <meyering@redhat.com>
35482
35483         selinux-h: mark parameters of stub functions as intentionally unused
35484         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35485         * lib/se-context.in.h: Likewise.
35486
35487 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35488
35489         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35490
35491 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35492
35493         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35494
35495 2008-10-22  Eric Blake  <ebb9@byu.net>
35496
35497         glthread/thread: avoid compiler warning
35498         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35499         Add unreachable abort to silence compiler.
35500
35501 2008-10-22  Eric Blake  <ebb9@byu.net>
35502
35503         netdb: also supply struct addrinfo for cygwin 1.5.x
35504         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35505         older cygwin.
35506         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35507         cygwin.
35508         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35509
35510 2008-10-22  Bruno Haible  <bruno@clisp.org>
35511
35512         * users.txt: Update entry about pspp.
35513
35514 2008-10-21  Bruno Haible  <bruno@clisp.org>
35515
35516         Simplification.
35517         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35518         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35519
35520         Simplification.
35521         * lib/ioctl.c (ioctl): Don't undefine.
35522         * lib/socket.c (socket): Don't undefine.
35523
35524         Remove unused module indicator macros.
35525         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35526         GNULIB_$1 as a C macro.
35527
35528         * doc/posix-functions/close.texi: Undo last change.
35529         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35530         Windows platforms.
35531
35532 2008-10-21  Bruno Haible  <bruno@clisp.org>
35533
35534         Add gethostname() declaration to <unistd.h>.
35535         * lib/unistd.in.h (gethostname): New declaration.
35536         * lib/gethostname.c: Include <unistd.h>.
35537         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35538         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35540         and HAVE_GETHOSTNAME.
35541         * modules/gethostname (Depends-on): Add unistd.
35542         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35543         (Include): Specify <unistd.h>.
35544         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35545         HAVE_GETHOSTNAME.
35546         * tests/test-gethostname.c: Include <unistd.h> first.
35547
35548 2008-10-21  Bruno Haible  <bruno@clisp.org>
35549
35550         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35551         * modules/select-tests (Depends-on): Likewise.
35552         Reported by Simon Josefsson.
35553
35554 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35555
35556         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35557         * lib/accept.c: New file, based on winsock.c.
35558         * lib/bind.c: New file, based on winsock.c.
35559         * lib/connect.c: New file, based on winsock.c.
35560         * lib/getpeername.c: New file, based on winsock.c.
35561         * lib/getsockname.c: New file, based on winsock.c.
35562         * lib/getsockopt.c: New file, based on winsock.c.
35563         * lib/ioctl.c: New file, based on winsock.c.
35564         * lib/listen.c: New file, based on winsock.c.
35565         * lib/recv.c: New file, based on winsock.c.
35566         * lib/recvfrom.c: New file, based on winsock.c.
35567         * lib/send.c: New file, based on winsock.c.
35568         * lib/sendto.c: New file, based on winsock.c.
35569         * lib/setsockopt.c: New file, based on winsock.c.
35570         * lib/shutdown.c: New file, based on winsock.c.
35571         * lib/socket.c: New file, based on winsock.c.
35572         * lib/w32sock.h: New file, based on winsock.c.
35573         * lib/winsock.c: Remove file.
35574         * modules/accept: Likewise.
35575         * modules/bind: Likewise.
35576         * modules/connect: Likewise.
35577         * modules/getpeername: Likewise.
35578         * modules/getsockname: Likewise.
35579         * modules/getsockopt: Likewise.
35580         * modules/ioctl: Likewise.
35581         * modules/listen: Likewise.
35582         * modules/recv: Likewise.
35583         * modules/recvfrom: Likewise.
35584         * modules/send: Likewise.
35585         * modules/sendto: Likewise.
35586         * modules/setsockopt: Likewise.
35587         * modules/shutdown: Likewise.
35588         * modules/socket: Use socket.c instead of winsock.c.
35589         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35590         * doc/posix-functions/accept.texi: Doc fix.
35591         * doc/posix-functions/bind.texi: Doc fix.
35592         * doc/posix-functions/close.texi: Doc fix.
35593         * doc/posix-functions/connect.texi: Doc fix.
35594         * doc/posix-functions/getpeername.texi: Doc fix.
35595         * doc/posix-functions/getsockname.texi: Doc fix.
35596         * doc/posix-functions/getsockopt.texi: Doc fix.
35597         * doc/posix-functions/ioctl.texi: Doc fix.
35598         * doc/posix-functions/listen.texi: Doc fix.
35599         * doc/posix-functions/recv.texi: Doc fix.
35600         * doc/posix-functions/recvfrom.texi: Doc fix.
35601         * doc/posix-functions/send.texi: Doc fix.
35602         * doc/posix-functions/sendto.texi: Doc fix.
35603         * doc/posix-functions/setsockopt.texi: Doc fix.
35604         * doc/posix-functions/shutdown.texi: Doc fix.
35605         * doc/posix-functions/socket.texi: Doc fix.
35606
35607 2008-10-20  Bruno Haible  <bruno@clisp.org>
35608
35609         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35610         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35611         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35612         as an alias for SIGABRT.
35613         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35614         (sigaction): Map it to SIGABRT.
35615         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35616
35617 2008-10-20  Bruno Haible  <bruno@clisp.org>
35618
35619         * lib/fts.c: Don't include lstat.h.
35620         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35621
35622         Move the lstat() declaration to <sys/stat.h>.
35623         * lib/lstat.h: Remove file.
35624         * lib/sys_stat.in.h: Add special invocation convention.
35625         (lstat): New declaration.
35626         * lib/lstat.c (orig_lstat): New function.
35627         (rpl_lstat): Use orig_lstat instead of lstat.
35628         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35629         AC_C_INLINE. Set REPLACE_LSTAT.
35630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35631         and REPLACE_LSTAT.
35632         * modules/lstat (Files): Remove lib/lstat.h.
35633         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35634         (Include): Specify <sys/stat.h> instead of lstat.h.
35635         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35636         REPLACE_LSTAT.
35637         * NEWS: Mention the change.
35638
35639 2008-10-20  Bruno Haible  <bruno@clisp.org>
35640
35641         * modules/posix_spawn-tests: New file.
35642         * tests/test-posix_spawn3.c: New file.
35643
35644 2008-10-20  Bruno Haible  <bruno@clisp.org>
35645
35646         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35647         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35648         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35649         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35650         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35651
35652 2008-10-20  Bruno Haible  <bruno@clisp.org>
35653
35654         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35655         of posix_spawn on AIX 5.3.
35656
35657 2008-10-20  Bruno Haible  <bruno@clisp.org>
35658
35659         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35660
35661 2008-10-20  Bruno Haible  <bruno@clisp.org>
35662
35663         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35664         of AC_LANG_PROGRAM.
35665
35666 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35667
35668         * lib/netdb.in.h: Don't define GNU specific constants until they
35669         are supported or needed.  Reported by Bruno Haible
35670         <bruno@clisp.org>.
35671
35672 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35673
35674         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35675
35676 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35677
35678         * lib/getaddrinfo.h: Remove file.
35679         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35680         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35681         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35682         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35683         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35684         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35685         * tests/test-getaddrinfo.c: Likewise.
35686         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35687         * NEWS: Mention change.
35688
35689 2008-10-19  Bruno Haible  <bruno@clisp.org>
35690
35691         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35692
35693 2008-10-19  Bruno Haible  <bruno@clisp.org>
35694
35695         * lib/wait-process.c: Include simply <sys/wait.h>.
35696         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35697         WIFSTOPPED): Remove fallback definitions.
35698         * modules/wait-process (Depends-on): Add sys_wait.
35699
35700         New module 'sys_wait'.
35701         * modules/sys_wait: New file.
35702         * lib/sys_wait.in.h: New file, partially copied from
35703         lib/wait-process.c.
35704         * m4/sys_wait_h.m4: New file.
35705         * doc/posix-headers/sys_wait.texi: Mention the new module.
35706
35707 2008-10-19  Bruno Haible  <bruno@clisp.org>
35708
35709         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35710
35711 2008-10-19  Bruno Haible  <bruno@clisp.org>
35712
35713         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35714         * lib/wait-process.c (WAIT_T): Remove type.
35715         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35716         (wait_subprocess): Update.
35717
35718 2008-10-19  Bruno Haible  <bruno@clisp.org>
35719
35720         New module 'atoll'.
35721         * modules/atoll: New file.
35722         * lib/stdlib.in.h (atoll): New declaration.
35723         * lib/atoll.c: New file, from glibc with modifications.
35724         * m4/atoll.m4: New file.
35725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35726         HAVE_ATOLL.
35727         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35728         * doc/posix-functions/atoll.texi: Mention the new module.
35729
35730 2008-10-19  Bruno Haible  <bruno@clisp.org>
35731
35732         Add strtoull() declaration to <stdlib.h>.
35733         * lib/stdlib.in.h (strtoull): New declaration.
35734         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35735         Set HAVE_STRTOULL.
35736         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35737         HAVE_STRTOULL.
35738         * modules/strtoull (Depends-on): Add stdlib.
35739         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35740         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35741         HAVE_STRTOULL.
35742
35743 2008-10-19  Bruno Haible  <bruno@clisp.org>
35744
35745         Add strtoll() declaration to <stdlib.h>.
35746         * lib/stdlib.in.h (strtoll): New declaration.
35747         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35748         Set HAVE_STRTOLL.
35749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35750         HAVE_STRTOLL.
35751         * modules/strtoll (Depends-on): Add stdlib.
35752         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35753         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35754
35755 2008-10-19  Bruno Haible  <bruno@clisp.org>
35756
35757         * modules/bcopy (Depends-on): Add strings.
35758         (Include): Specify <strings.h>.
35759
35760 2008-10-19  Bruno Haible  <bruno@clisp.org>
35761
35762         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35763
35764 2008-10-19  Bruno Haible  <bruno@clisp.org>
35765
35766         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35767         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35768         mingw.
35769
35770 2008-10-19  Bruno Haible  <bruno@clisp.org>
35771
35772         * lib/atanl.c: Don't include isnanl.h.
35773         * lib/cosl.c: Likewise.
35774         * lib/ldexpl.c: Likewise.
35775         * lib/logl.c: Likewise.
35776         * lib/sinl.c: Likewise.
35777         * lib/sqrtl.c: Likewise.
35778         * lib/tanl.c: Likewise.
35779
35780         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35781         * lib/isnanf.h: Remove file.
35782         * lib/isnand.h: Remove file.
35783         * lib/isnanl.h: Remove file.
35784         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35785         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35786         macros.
35787         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35788         HAVE_ISNANF, don't define it as a C macro.
35789         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35790         HAVE_ISNAND, don't define it as a C macro.
35791         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35792         HAVE_ISNANL, don't define it as a C macro.
35793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35794         HAVE_ISNAN[FDL].
35795         * modules/isnanf (Files): Remove lib/isnanf.h.
35796         (Depends-on): Add math.
35797         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35798         (Include): Specify <math.h> instead of isnanf.h.
35799         * modules/isnand (Files): Remove lib/isnand.h.
35800         (Depends-on): Add math.
35801         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35802         (Include): Specify <math.h> instead of isnand.h.
35803         * modules/isnanl (Files): Remove lib/isnanl.h.
35804         (Depends-on): Add math.
35805         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35806         (Include): Specify <math.h> instead of isnanl.h.
35807         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35808         HAVE_ISNAN[FDL].
35809         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35810         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35811         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35812         * NEWS: Mention the change.
35813
35814 2008-10-18  Bruno Haible  <bruno@clisp.org>
35815
35816         Add getusershell(), setusershell(), endusershell() declarations to
35817         <unistd.h>.
35818         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35819         declarations.
35820         * lib/getusershell.c: Include unistd.h.
35821         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35822         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35823         HAVE_GETUSERSHELL.
35824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35825         and HAVE_GETUSERSHELL.
35826         * modules/getusershell (Depends-on): Add unistd, extensions.
35827         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35828         (Include): Specify <unistd.h>.
35829         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35830         HAVE_GETUSERSHELL.
35831
35832 2008-10-18  Bruno Haible  <bruno@clisp.org>
35833
35834         Add a getloadavg() declaration to <stdlib.h>.
35835         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35836         getloadavg declaration.
35837         (getloadavg): New declaration.
35838         * lib/getloadavg.c: Include <stdlib.h> first.
35839         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35840         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35841         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35843         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35844         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35845         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35846         (Include): Specify <stdlib.h>.
35847         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35848         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35849
35850 2008-10-18  Bruno Haible  <bruno@clisp.org>
35851
35852         * lib/dirchownmod.c: Don't include lchmod.h.
35853
35854         Move the lchmod() declaration to <sys/stat.h>.
35855         * lib/lchmod.h: Remove file.
35856         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35857         (lchmod): New declaration, moved here from lib/lchown.h.
35858         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35859         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35861         and HAVE_LCHMOD.
35862         * modules/lchmod (Files): Remove lib/lchmod.h.
35863         (Depends-on): Add sys_stat, extensions.
35864         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35865         (Include): Specify <sys/stat.h> instead of lchmod.h.
35866         * modules/sys_stat (Depends-on): Add link-warning.
35867         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35868         definition of GL_LINK_WARNING.
35869         * NEWS: Mention the change.
35870
35871 2008-10-18  Bruno Haible  <bruno@clisp.org>
35872
35873         * lib/fchdir.c: Don't include dirfd.h.
35874         * lib/fts.c: Likewise.
35875         * lib/getcwd.c: Likewise.
35876         * lib/glob.c: Likewise.
35877
35878         Move the dirfd() declaration to <dirent.h>.
35879         * lib/dirfd.h: Remove file.
35880         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35881         (dirfd): New declaration.
35882         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35883         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35884         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35885         HAVE_DECL_DIRFD.
35886         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35887         HAVE_DECL_DIRFD.
35888         * modules/dirfd (Files): Remove lib/dirfd.h.
35889         (Depends-on): Add dirent, extensions.
35890         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35891         (Include): Specify <dirent.h> instead of dirfd.h.
35892         * modules/dirent (Depends-on): Add link-warning.
35893         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35894         definition of GL_LINK_WARNING.
35895         * NEWS: Mention the change.
35896
35897 2008-10-18  Bruno Haible  <bruno@clisp.org>
35898
35899         Move the euidaccess() declaration to <unistd.h>.
35900         * lib/euidaccess.h: Remove file.
35901         * lib/unistd.in.h (euidaccess): New declaration.
35902         * lib/euidaccess.c: Don't include euidaccess.h.
35903         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35904         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35906         and HAVE_EUIDACCESS.
35907         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35908         (Depends-on): Add unistd.
35909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35910         (Include): Specify <unistd.h> instead of euidaccess.h.
35911         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35912         HAVE_EUIDACCESS.
35913         * NEWS: Mention the change.
35914
35915 2008-10-18  Bruno Haible  <bruno@clisp.org>
35916
35917         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35918
35919         Move the getdomainname() declaration to <unistd.h>.
35920         * lib/getdomainname.h: Remove file.
35921         * lib/unistd.in.h (getdomainname): New declaration.
35922         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35923         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35924         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35925         HAVE_GETDOMAINNAME.
35926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35927         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35928         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35929         (Depends-on): Add unistd, extensions.
35930         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35931         (Includes): Specify <unistd.h> instead of getdomainname.h.
35932         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35933         HAVE_GETDOMAINNAME.
35934         * NEWS: Mention the change.
35935
35936 2008-10-18  Bruno Haible  <bruno@clisp.org>
35937
35938         * modules/dirent: New file.
35939         * m4/dirent_h.m4: New file.
35940         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35941         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35942         * modules/fchdir (Files): Remove lib/dirent.in.h.
35943         (Depends-on): Add dirent.
35944         (Makefile.am): Move rules to modules/dirent.
35945         * doc/posix-headers/dirent.texi: Mention the new module.
35946
35947 2008-10-18  Bruno Haible  <bruno@clisp.org>
35948
35949         Avoid -Wunused-parameter warnings in public gnulib header files.
35950         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35951         macro.
35952         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35953
35954 2008-10-18  Bruno Haible  <bruno@clisp.org>
35955
35956         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35957         * doc/glibc-functions/error.texi: Mention the module 'error'.
35958         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35959         * doc/glibc-functions/getdomainname.texi: Mention the module
35960         'getdomainname'.
35961         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35962         * doc/glibc-functions/getpagesize.texi: Mention the module
35963         'getpagesize'.
35964         * doc/glibc-functions/getusershell.texi: Mention the module
35965         'getusershell'.
35966         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35967         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35968         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35969         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35970         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35971         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35972         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35973         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35974         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35975         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35976         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35977         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35978         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35979         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35980
35981 2008-10-17  Bruno Haible  <bruno@clisp.org>
35982
35983         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35984         HP-UX and IRIX, use -0.0L.
35985         * tests/test-ceill.c (minus_zero): Likewise.
35986         * tests/test-floorl.c (minus_zero): Likewise.
35987         * tests/test-frexpl.c (minus_zero): Likewise.
35988         * tests/test-isnan.c (minus_zerol): Likewise.
35989         * tests/test-isnanl.h (minus_zero): Likewise.
35990         * tests/test-ldexpl.c (minus_zero): Likewise.
35991         * tests/test-roundl.c (minus_zero): Likewise.
35992         * tests/test-signbit.c (minus_zerol): Likewise.
35993         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35994         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35995         * tests/test-truncl.c (minus_zero): Likewise.
35996         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35997         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35998         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35999         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36000
36001 2008-10-17  Bruno Haible  <bruno@clisp.org>
36002
36003         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36004         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36005         that it gets activated only for gcc >= 3.0.
36006         * lib/dirent.in.h: Likewise.
36007         * lib/errno.in.h: Likewise.
36008         * lib/fcntl.in.h: Likewise.
36009         * lib/float.in.h: Likewise.
36010         * lib/iconv.in.h: Likewise.
36011         * lib/inttypes.in.h: Likewise.
36012         * lib/locale.in.h: Likewise.
36013         * lib/math.in.h: Likewise.
36014         * lib/netdb.in.h: Likewise.
36015         * lib/netinet_in.in.h: Likewise.
36016         * lib/search.in.h: Likewise.
36017         * lib/signal.in.h: Likewise.
36018         * lib/spawn.in.h: Likewise.
36019         * lib/stdarg.in.h: Likewise.
36020         * lib/stdint.in.h: Likewise.
36021         * lib/stdio.in.h: Likewise.
36022         * lib/stdlib.in.h: Likewise.
36023         * lib/string.in.h: Likewise.
36024         * lib/strings.in.h: Likewise.
36025         * lib/sys_file.in.h: Likewise.
36026         * lib/sys_ioctl.in.h: Likewise.
36027         * lib/sys_select.in.h: Likewise.
36028         * lib/sys_socket.in.h: Likewise.
36029         * lib/sys_stat.in.h: Likewise.
36030         * lib/sys_time.in.h: Likewise.
36031         * lib/sysexits.in.h: Likewise.
36032         * lib/time.in.h: Likewise.
36033         * lib/unistd.in.h: Likewise.
36034         * lib/wchar.in.h: Likewise.
36035         * lib/wctype.in.h: Likewise.
36036         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36037
36038 2008-10-17  Jim Meyering  <meyering@redhat.com>
36039
36040         ignore-value: don't depend on inline module
36041         * modules/ignore-value (Depends-on): Remove 'inline'.
36042         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36043         Suggestion from Bruno Haible.
36044
36045 2008-10-17  Bruno Haible  <bruno@clisp.org>
36046
36047         New implementation of condition variables for Win32.
36048         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36049         (gl_linked_waitqueue_t): New type.
36050         (gl_cond_t): Use it.
36051         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36052         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36053         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36054         (glthread_cond_init_func, glthread_cond_wait_func,
36055         glthread_cond_timedwait_func, glthread_cond_signal_func,
36056         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36057         Reimplemented on the basis of gl_linked_waitqueue_t.
36058         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36059         gl_waitqueue_t.
36060         (gl_rwlock_t): Update.
36061         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36062
36063 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36064
36065         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36066         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36067
36068 2008-10-17  Jim Meyering  <meyering@redhat.com>
36069
36070         ignore-value: new module
36071         * modules/ignore-value: New file.
36072         * lib/ignore-value.h: New file.
36073         * MODULES.html.sh (Compiler warning management): New section,
36074         just for this module.  More to come.
36075
36076 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36077
36078         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36079         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36080         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36081
36082 2008-10-16  Jim Meyering  <meyering@redhat.com>
36083
36084         openat-die.c: avoid 'no previous prototype' warning
36085         * lib/openat-die.c: Include "openat.h".
36086         Reported by Reuben Thomas <rrt@sc3d.org>.
36087
36088 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36089
36090         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36091         * lib/netdb.in.h: Fix typo.
36092         Reported by Bruno Haible  <bruno@clisp.org>
36093
36094         * lib/netdb.in.h: Include sys/socket.h for platforms without
36095         netdb.h, to get structures like hostent on MinGW.
36096         * modules/netdb (Depends-on): Add sys_socket.
36097
36098 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36099
36100         * modules/netdb, modules/netdb-tests: New file.
36101         * m4/netdb_h.m4: New file.
36102         * lib/netdb.in.h: Add, currently just an empty file pending
36103         definitions.
36104         * tests/test-netdb.c: New file.
36105         * doc/posix-headers/netdb.texi: Mention that we replace it if
36106         needed.
36107         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36108         netdb.
36109
36110 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36111
36112         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36113         with code.
36114
36115 2008-10-13  Bruno Haible  <bruno@clisp.org>
36116
36117         * lib/glthread/cond.c (glthread_cond_wait_func,
36118         glthread_cond_timedwait_func): Add a comment.
36119
36120 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36121
36122         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36123         * tests/test-select.c: Likewise,
36124
36125 2008-10-13  Bruno Haible  <bruno@clisp.org>
36126
36127         * lib/glthread/cond.c (glthread_cond_wait_func,
36128         glthread_cond_timedwait_func): Fix variable name.
36129         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36130
36131 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36132
36133         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36134         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36135         struct sockaddr.sa_len.
36136         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36137
36138 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36139
36140         * build-aux/pmccabe2html: Add css and css_url parameters.
36141
36142 2008-10-12  Bruno Haible  <bruno@clisp.org>
36143
36144         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36145         calling aclx_get.
36146         Reported by Rainer Tammer <tammer@tammer.net>.
36147
36148 2008-10-12  Bruno Haible  <bruno@clisp.org>
36149
36150         Use msvcrt aware primitives for creation/termination of Win32 threads.
36151         * lib/glthread/thread.c: Include <process.h>.
36152         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36153         (wrapper_func): Update signature.
36154         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36155
36156 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36157             Bruno Haible  <bruno@clisp.org>
36158
36159         Provide a Win32 implementation of the 'cond' module.
36160         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36161         * lib/glthread/cond.c (glthread_cond_init_func,
36162         glthread_cond_wait_func, glthread_cond_timedwait_func,
36163         glthread_cond_signal_func, glthread_cond_broadcast_func,
36164         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36165         * modules/cond (Dependencies): Add gettimeofday.
36166
36167 2008-10-11  Bruno Haible  <bruno@clisp.org>
36168
36169         Make sleep work on older versions of mingw.
36170         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36171         only whether it exists.
36172         * doc/posix-functions/sleep.texi: Mention the problem with older
36173         versions of mingw.
36174
36175 2008-10-11  Bruno Haible  <bruno@clisp.org>
36176
36177         New module 'shutdown'.
36178         * modules/shutdown: New file.
36179         * lib/sys_socket.in.h (shutdown): New declaration.
36180         * lib/winsock.c (shutdown): New function.
36181         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36182         GNULIB_SHUTDOWN.
36183         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36184         * doc/posix-functions/shutdown.texi: Document the new module.
36185
36186 2008-10-11  Jim Meyering  <meyering@redhat.com>
36187
36188         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36189
36190 2008-10-11  Bruno Haible  <bruno@clisp.org>
36191
36192         New module 'fclose'.
36193         * modules/fclose: New file.
36194         * lib/stdio.in.h (fclose): New declaration.
36195         * lib/fclose.c: New file.
36196         * m4/fclose.m4: New file.
36197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36198         REPLACE_FCLOSE.
36199         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36200         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36201         REPLACE_FCLOSE.
36202         * modules/close (Depends-on): fclose.
36203         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36204
36205 2008-10-11  Bruno Haible  <bruno@clisp.org>
36206
36207         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36208         set errno and don't call _close.
36209
36210 2008-10-10  Bruno Haible  <bruno@clisp.org>
36211
36212         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36213         ACL, not afterwards. Fixes test failure on Cygwin.
36214
36215 2008-10-09  Ben Pfaff  <blp@gnu.org>
36216
36217         * build-aux/announce-gen: Fix gnulib version related part of usage
36218         message.  Die with a useful error message if no tarballs are
36219         found.
36220
36221 2008-10-10  Jim Meyering  <meyering@redhat.com>
36222
36223         bootstrap: use git's --depth=N option only if it's supported
36224         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36225         recognize the --depth option.  Reported by Pádraig Brady.
36226
36227 2008-10-09  Bruno Haible  <bruno@clisp.org>
36228
36229         New module 'ioctl'.
36230         * modules/ioctl: New file.
36231         * lib/sys_socket.in.h (ioctl): Remove declaration.
36232         * lib/winsock.c: Include <sys/ioctl.h>.
36233         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36234         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36235         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36236         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36237         * doc/posix-functions/ioctl.texi: Mention the new module.
36238
36239 2008-10-09  Bruno Haible  <bruno@clisp.org>
36240
36241         New module 'sys_ioctl'.
36242         * lib/sys_ioctl.in.h: New file.
36243         * m4/sys_ioctl_h.m4: New file.
36244         * modules/sys_ioctl: New file.
36245         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36246
36247 2008-10-09  Bruno Haible  <bruno@clisp.org>
36248
36249         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36250         * lib/winsock.c: Include <stdarg.h>.
36251         (rpl_ioctl): Change to second argument 'int' and then varargs.
36252
36253 2008-10-09  Bruno Haible  <bruno@clisp.org>
36254
36255         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36256         when the sys_socket module is present and the system has <winsock2.h>.
36257
36258 2008-10-09  Bruno Haible  <bruno@clisp.org>
36259
36260         * doc/posix-functions/close.texi: Mention module 'close' instead of
36261         module 'sys_socket'.
36262
36263 2008-10-09  Bruno Haible  <bruno@clisp.org>
36264
36265         * doc/glibc-headers/sys_ioctl.texi: New file.
36266         * doc/gnulib.texi: Include it.
36267
36268 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36269             Bruno Haible  <bruno@clisp.org>
36270
36271         Combine the two replacements of 'close'.
36272         * lib/sys_socket.in.h (close): Define to a reminder to include
36273         <unistd.h>.
36274         (_gl_close_fd_maybe_socket): New declaration.
36275         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36276         * lib/winsock.c (close): Remove undefinition.
36277         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36278         needed for the gnulib module 'close'.
36279         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36280         define to an error symbol or to a warning, if suitable.
36281         * lib/close.c: Include <sys/socket.h>.
36282         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36283         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36284         UNISTD_H_HAVE_WINSOCK2_H.
36285         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36287         UNISTD_H_HAVE_WINSOCK2_H.
36288         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36289         (configure.ac): Set a module indicator.
36290         (Makefile.am): Substitute GNULIB_CLOSE.
36291         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36292         * modules/poll-tests (Depends-on): Add close.
36293         * modules/select-tests (Depends-on): Likewise.
36294
36295 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36296             Bruno Haible  <bruno@clisp.org>
36297
36298         New module 'close'.
36299         * modules/close: New file.
36300         * lib/unistd.in.h (close): Move declaration out of the
36301         FCHDIR_REPLACEMENT scope.
36302         (_gl_unregister_fd): New declaration.
36303         * lib/close.c: New file.
36304         * lib/fchdir.c (rpl_close): Remove function.
36305         * m4/close.m4: New file.
36306         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36307         close.
36308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36309         REPLACE_CLOSE.
36310         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36311         REPLACE_CLOSE.
36312         * modules/fchdir (Depends-on): Add close.
36313
36314 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36315             Bruno Haible  <bruno@clisp.org>
36316
36317         * lib/fcntl.in.h (open): Simplify conditionals.
36318         (_gl_register_fd): New declaration.
36319         * lib/fchdir.c (rpl_open): Remove function.
36320         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36321         also.
36322         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36324         open.
36325
36326 2008-10-09  Jim Meyering  <meyering@redhat.com>
36327
36328         GNUmakefile: use the more name-space-friendly "_version"
36329         * top/GNUmakefile (_dummy): Update.
36330         (_version): Rename from "version".
36331
36332 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36333             Bruno Haible  <bruno@clisp.org>
36334
36335         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36336         rpl_close.
36337         (_gl_register_fd): New function, extracted from rpl_open.
36338         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36339         (rpl_open, rpl_opendir): Use _gl_register_fd.
36340
36341 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36342
36343         Fix organization of 'open' replacement.
36344         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36345         (gl_FUNC_OPEN): Use it.
36346         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36347
36348 2008-10-08  Bruno Haible  <bruno@clisp.org>
36349
36350         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36351
36352 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36353
36354         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36355         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36356         listen).
36357
36358 2008-10-08  Eric Blake  <ebb9@byu.net>
36359
36360         GNUmakefile: add 'make version' target
36361         * top/GNUmakefile (_curr-ver): Split version update rules...
36362         (version): ...into a target.
36363
36364 2008-10-07  Bruno Haible  <bruno@clisp.org>
36365
36366         Use a more portable replacement expression for -0.0L.
36367         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36368         instead of -0.0L. Fix m4 quotation.
36369
36370         * tests/test-signbit.c: Include <float.h>.
36371         (minus_zero): New variable.
36372         (test_signbitl): Use minus_zero instead of -zero.
36373         * modules/signbit-tests (Depends-on): Add float.
36374
36375         * tests/test-ceill.c: Include <float.h>.
36376         (zero): Remove variable.
36377         (minus_zero): New variable.
36378         (main): Use minus_zero instead of -zero.
36379         * modules/ceill-tests (Depends-on): Add float.
36380
36381         * tests/test-floorl.c: Include <float.h>.
36382         (zero): Remove variable.
36383         (minus_zero): New variable.
36384         (main): Use minus_zero instead of -zero.
36385         * modules/floorl-tests (Depends-on): Add float.
36386
36387         * tests/test-roundl.c: Include <float.h>.
36388         (zero): Remove variable.
36389         (minus_zero): New variable.
36390         (main): Use minus_zero instead of -zero.
36391         * modules/roundl-tests (Depends-on): Add float.
36392
36393         * tests/test-truncl.c: Include <float.h>.
36394         (zero): Remove variable.
36395         (minus_zero): New variable.
36396         (main): Use minus_zero instead of -zero.
36397         * modules/truncl-tests (Depends-on): Add float.
36398
36399         * tests/test-frexpl.c (zero): Remove variable.
36400         (minus_zero): New variable.
36401         (main): Use minus_zero instead of -zero.
36402         * modules/frexpl-tests (Depends-on): Add float.
36403
36404         * tests/test-isnan.c (zerol): Remove variable.
36405         (minus_zerol): New variable.
36406         (test_long_double): Use minus_zerol instead of -zerol.
36407         * modules/isnan-tests (Depends-on): Add float.
36408
36409         * tests/test-isnanl.h (zero): Remove variable.
36410         (minus_zero): New variable.
36411         (main): Use minus_zero instead of -zero.
36412         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36413         * modules/isnanl-tests (Depends-on): Add float.
36414
36415         * tests/test-ldexpl.c (zero): Remove variable.
36416         (minus_zero): New variable.
36417         (main): Use minus_zero instead of -zero.
36418         * modules/ldexpl-tests (Depends-on): Add float.
36419
36420         * tests/test-snprintf-posix.h (zerol): Remove variable.
36421         (minus_zerol): New variable.
36422         (test_function): Use minus_zerol instead of -zerol.
36423         * modules/snprintf-posix-tests (Depends-on): Add float.
36424         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36425
36426         * tests/test-sprintf-posix.h (zerol): Remove variable.
36427         (minus_zerol): New variable.
36428         (test_function): Use minus_zerol instead of -zerol.
36429         * modules/sprintf-posix-tests (Depends-on): Add float.
36430         * modules/vsprintf-posix-tests (Depends-on): Add float.
36431
36432         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36433         (minus_zerol): New variable.
36434         (test_function): Use minus_zerol instead of -zerol.
36435         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36436
36437         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36438         (minus_zerol): New variable.
36439         (test_function): Use minus_zerol instead of -zerol.
36440         * modules/vasprintf-posix-tests (Depends-on): Add float.
36441
36442 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36443
36444         * MODULES.html.sh (Support for building documentation): Mention
36445         pmccabe2html.  Sort entries.
36446
36447         Add pmccabe2html module, from gnupdf.
36448         * build-aux/pmccabe.css: New file.
36449         * build-aux/pmccabe2html: New file.
36450         * m4/pmccabe2html.m4: New file.
36451         * modules/pmccabe2html: New file.
36452
36453 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36454
36455         flock: new module
36456         * MODULES.html.sh: Add to list of modules.
36457         * lib/flock.c: flock implementation for Windows and Unix systems
36458         which have fcntl.
36459         * doc/glibc-functions/flock.texi: Update documentation.
36460         * lib/sys_file.in.h: <sys/file.h> header file.
36461         * m4/flock.m4: M4 macros.
36462         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36463         * modules/flock: flock module.
36464         * modules/flock-tests: flock tests module.
36465         * modules/sys_file: sys/file.h module.
36466         * tests/test-flock.c: test suite for flock.
36467
36468 2008-10-06  Jim Meyering  <meyering@redhat.com>
36469
36470         bootstrap: check for LT_INIT more portably still ;-)
36471         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36472         Spotted by Bruno Haible.
36473
36474 2008-10-06  Eric Blake  <ebb9@byu.net>
36475
36476         test-signbit: avoid tripping Irix cc bug on -0.0L
36477         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36478         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36479         entire testsuite consistent and avoids an Irix 6.2 bug.
36480
36481 2008-10-05  Bruno Haible  <bruno@clisp.org>
36482             Jim Meyering  <jim@meyering.net>
36483
36484         Add an option for ignoring EPIPE during close_stdout.
36485         * lib/closeout.h: Include <stdbool.h>.
36486         (close_stdout_set_ignore_EPIPE): New declaration.
36487         * lib/closeout.c: Include <stdbool.h>.
36488         (ignore_EPIPE): New variable.
36489         (close_stdout_set_ignore_EPIPE): New function.
36490         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36491         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36492         failure.
36493         * modules/closeout (Depends-on): Add stdbool.
36494
36495 2008-10-05  Bruno Haible  <bruno@clisp.org>
36496
36497         * modules/accept: New file.
36498         * modules/bind: New file.
36499         * modules/connect: New file.
36500         * modules/getpeername: New file.
36501         * modules/getsockname: New file.
36502         * modules/getsockopt: New file.
36503         * modules/listen: New file.
36504         * modules/recv: New file.
36505         * modules/recvfrom: New file.
36506         * modules/send: New file.
36507         * modules/sendto: New file.
36508         * modules/setsockopt: New file.
36509         * modules/socket: New file.
36510         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36511         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36512         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36513         the particular module is requested. Add a link warning when the
36514         particular module is not requested.
36515         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36516         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36517         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36518         the particular module is requested.
36519         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36520         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36521         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36522         * modules/sys_socket (Depends-on): Add link-warning.
36523         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36524         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36525         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36526         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36527         GL_LINK_WARNING.
36528         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36529         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36530         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36531         * doc/posix-functions/getpeername.texi: Mention the new module
36532         'getpeername'.
36533         * doc/posix-functions/getsockname.texi: Mention the new module
36534         'getsockname'.
36535         * doc/posix-functions/getsockopt.texi: Mention the new module
36536         'getsockopt'.
36537         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36538         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36539         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36540         * doc/posix-functions/send.texi: Mention the new module 'send'.
36541         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36542         * doc/posix-functions/setsockopt.texi: Mention the new module
36543         'setsockopt'.
36544         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36545         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36546         listen, connect, accept.
36547         * modules/select-tests (Depends-on): Likewise.
36548
36549 2008-10-05  Bruno Haible  <bruno@clisp.org>
36550
36551         * lib/winsock.c (strerror): Remove unused #undef.
36552         (rpl_close): Remove unused local variable.
36553
36554         * modules/sys_socket (Depends-on); Add errno.
36555
36556 2008-10-05  Bruno Haible  <bruno@clisp.org>
36557
36558         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36559         (select): Add a link warning when the 'select' module is not used.
36560         * modules/sys_select (Depends-on): Add link-warning.
36561         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36562         Suggested by Paolo Bonzini.
36563
36564 2008-10-05  Jim Meyering  <meyering@redhat.com>
36565
36566         bootstrap: check for LT_INIT more portably
36567         * build-aux/bootstrap: Avoid using grep -E, since it's not
36568         portable enough.  Suggestion from Bruno Haible.
36569
36570 2008-10-05  Bruno Haible  <bruno@clisp.org>
36571
36572         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36573         as being fixed by gnulib.
36574
36575 2008-10-05  Bruno Haible  <bruno@clisp.org>
36576
36577         * modules/select-tests: New file, mostly copied from
36578         modules/sys_select-tests.
36579         * tests/test-select.c: New file, mostly copied from
36580         tests/test-sys_select.c.
36581         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36582         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36583         (Makefile.am): Remove test_sys_select_LDADD.
36584
36585         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36586         to an undefined symbol, for an error message.
36587         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36588         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36589         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36590         winsock-select.c here.
36591         * modules/sys_select (Files): Remove lib/winsock-select.c.
36592         (Depends-on): Remove alloca.
36593         (Makefile.am): Substitute GNULIB_SELECT.
36594         * modules/select: New file.
36595         * doc/posix-functions/select.texi: Update.
36596
36597 2008-10-05  Bruno Haible  <bruno@clisp.org>
36598
36599         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36600         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36601         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36602         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36603         getdtablesize.
36604         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36605         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36606
36607 2008-10-05  Bruno Haible  <bruno@clisp.org>
36608
36609         * modules/getdtablesize-tests: New file.
36610         * tests/test-getdtablesize.c: New file.
36611
36612         New module 'getdtablesize'.
36613         * lib/unistd.in.h (getdtablesize): New declaration.
36614         * lib/getdtablesize.c: New file.
36615         * m4/getdtablesize.m4: New file.
36616         * modules/getdtablesize: New file.
36617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36618         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36619         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36620         HAVE_GETDTABLESIZE.
36621         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36622
36623 2008-10-05  Bruno Haible  <bruno@clisp.org>
36624
36625         * modules/sched (Makefile.am): Fix typo.
36626         Reported by Simon Josefsson.
36627
36628 2008-10-05  Jim Meyering  <meyering@redhat.com>
36629
36630         bootstrap: check for LT_INIT, too
36631         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36632         are deprecated.  Suggestion from Ralf Wildenhues.
36633
36634 2008-10-05  Bruno Haible  <bruno@clisp.org>
36635
36636         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36637         overriding them by ours.
36638         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36639
36640 2008-10-05  Jim Meyering  <meyering@redhat.com>
36641
36642         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36643         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36644         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36645
36646 2008-10-04  Bruno Haible  <bruno@clisp.org>
36647
36648         * modules/dup2 (License): Change to LGPLv2+.
36649         * modules/sleep (License): Likewise.
36650         * modules/perror (License): Likewise.
36651         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36652         Blake.
36653         * modules/signal (License): Likewise.
36654         * modules/sigprocmask (License): Likewise.
36655         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36656         Meyering.
36657
36658 2008-10-04  Bruno Haible  <bruno@clisp.org>
36659
36660         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36661         Reported by Rainer Tammer <tammer@tammer.net>.
36662
36663 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36664             Bruno Haible  <bruno@clisp.org>
36665
36666         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36667         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36668         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36669
36670 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36671
36672         filevercmp: new module
36673         * lib/filevercmp.h: New function filevercmp comparing version strings.
36674         * lib/filevercmp.c: Implementation of filevercmp function.
36675         * modules/filevercmp: Module metadata.
36676         * tests/test-filevercmp.c: Unit test for new module.
36677         * modules/filevercmp-tests: Unit test metadata.
36678         * MODULES.html.sh: Add filevercmp module.
36679
36680 2008-10-03  Bruno Haible  <bruno@clisp.org>
36681
36682         * lib/c-ctype.h: Add comment.
36683         Reported by Jim Meyering.
36684
36685 2008-10-02  Bruno Haible  <bruno@clisp.org>
36686
36687         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36688
36689 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36690
36691         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36692         name of bootstrap.conf accordingly.
36693
36694 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36695
36696         * build-aux/bootstrap: Install git-merge-changelog configuration
36697         items into .gitconfig if needed.
36698
36699 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36700
36701         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36702         git repository, and initialize/update it accordingly.
36703
36704 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36705
36706         * modules/fsync-tests: New file.
36707         * tests/test-fsync.c: New file.
36708
36709         New module 'fsync'.
36710         * lib/fsync.c: New file.
36711         * m4/fsync.m4: New file.
36712         * modules/fsync: New file.
36713         * lib/unistd.in.h (fsync): New declaration.
36714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36715         GNULIB_FSYNC and HAVE_FSYNC.
36716         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36717         * MODULES.html.sh (posix_functions): Add fsync.
36718         * doc/posix-functions/fsync.texi: Mention the new module.
36719
36720 2008-10-02  Jim Meyering  <meyering@redhat.com>
36721
36722         fts.c: sync with similar code from coreutils' remove.c
36723         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36724         Guard also with "#if defined __linux__", since for now at least,
36725         this code is Linux-kernel-specific.
36726
36727 2008-10-02  Jim Meyering  <meyering@redhat.com>
36728
36729         fts: bug fixes
36730         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36731         Include <sys/vfs.h>, not <sys/statfs.h>.
36732
36733         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36734         Include <sys/vfs.h>, not <sys/statfs.h>.
36735
36736 2008-10-01  Bruno Haible  <bruno@clisp.org>
36737
36738         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36739         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36740         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36741         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36742         * doc/posix-functions/posix_spawnp.texi: Likewise.
36743         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36744         whether posix_spawn actually works.
36745         * m4/pipe.m4 (gl_PIPE): Likewise.
36746         * modules/execute (Files): Add m4/posix_spawn.m4.
36747         * modules/pipe (Files): Add m4/posix_spawn.m4.
36748         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36749
36750 2008-10-01  Jim Meyering  <meyering@redhat.com>
36751
36752         remove trailing spaces
36753         * NEWS: Likewise.
36754         * lib/poll.c (poll): Likewise.
36755         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36756         * lib/winsock.c (rpl_close): Likewise.
36757         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36758         * modules/yield: Likewise.
36759         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36760         * tests/test-sys_select.c (connect_to_socket): Likewise.
36761
36762         fts.c: adjust a new interface to be more generally useful
36763         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36764         (fts_build): Adjust caller.
36765
36766 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36767
36768         * modules/cond-tests: New file.
36769         * tests/test-cond.c: New file.
36770
36771 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36772             Bruno Haible  <bruno@clisp.org>
36773
36774         * modules/cond (Dependencies): Add errno, time.
36775         * lib/glthread/cond.h: Include <time.h>.
36776         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36777         across platforms.
36778
36779 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36780             Bruno Haible  <bruno@clisp.org>
36781
36782         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36783
36784 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36785             Bruno Haible  <bruno@clisp.org>
36786
36787         * modules/tls-tests (Depends-on): Add thread, yield.
36788         (configure.ac): Remove all checks.
36789         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36790         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36791         gl_thread_self): Remove definitions. Include glthread/thread.h and
36792         glthread/yield.h instead.
36793         (test_tls): Pass an additional NULL argument to gl_thread_join.
36794
36795 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36796             Bruno Haible  <bruno@clisp.org>
36797
36798         * modules/lock-tests (Depends-on): Add thread, yield.
36799         (configure.ac): Remove all checks.
36800         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36801         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36802         gl_thread_self): Remove definitions. Include glthread/thread.h and
36803         glthread/yield.h instead.
36804         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36805         additional NULL argument to gl_thread_join.
36806
36807 2008-09-30  Bruno Haible  <bruno@clisp.org>
36808
36809         Fix the Win32 implementation of the 'thread' module.
36810         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36811         pointer type.
36812         (gl_thread_self): Invoke gl_thread_self_func.
36813         (gl_thread_self_func): New declaration.
36814         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36815         (do_init_self_key, init_self_key): New functions.
36816         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36817         Remove some fields.
36818         (running_threads, running_lock): Remove variables.
36819         (get_current_thread_handle): New function.
36820         (gl_thread_self_func, wrapper_func, glthread_create_func,
36821         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36822         simplified.
36823
36824 2008-09-30  Bruno Haible  <bruno@clisp.org>
36825
36826         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36827         files.
36828
36829 2008-09-30  Jim Meyering  <meyering@redhat.com>
36830
36831         fts.m4: correct the test for statfs.f_type
36832         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36833         when checking for statfs.f_type.
36834
36835 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36836
36837         tests: avoid some compiler warnings
36838         * tests/test-memchr.c (main): Pass NULL indirectly.
36839         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36840
36841 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36842
36843         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36844         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36845         exactly specified dayshifts.
36846         (dayshift): New rule.
36847         (rel): Add dayshift.
36848         (relative_time_table) [tomorrow, yesterday, today, now]:
36849         Use tDAY_SHIFT in place of tDAY_UNIT.
36850         * tests/test-getdate.c: Add tests for now-disallowed countable
36851         dayshifts, e.g., "4 yesterday ago".
36852
36853 2008-09-29  Bruno Haible  <bruno@clisp.org>
36854
36855         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36856         * tests/test-posix_spawn1.in.sh: Renamed from
36857         tests/test-posix_spawn.in.sh.
36858         * tests/test-posix_spawn2.c: New file.
36859         * tests/test-posix_spawn2.in.sh: New file.
36860         * modules/posix_spawnp-tests (Files): Update.
36861         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36862
36863 2008-09-29  Bruno Haible  <bruno@clisp.org>
36864
36865         Propagate effects of putenv/setenv/unsetenv to child processes.
36866         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36867         * lib/pipe.c (create_pipe): Likewise.
36868
36869 2008-09-29  Bruno Haible  <bruno@clisp.org>
36870
36871         Enable use of shell scripts as executables in mingw.
36872         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36873         run the program as a shell script.
36874         * lib/pipe.c (create_pipe): Likewise.
36875         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36876         resulting array.
36877
36878 2008-09-29  Eric Blake  <ebb9@byu.net>
36879
36880         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36881
36882 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36883
36884         * doc/posix-functions/accept.texi: Update mingw problems.
36885         * doc/posix-functions/bind.texi: Update mingw problems.
36886         * doc/posix-functions/close.texi: Update mingw problems.
36887         * doc/posix-functions/connect.texi: Update mingw problems.
36888         * doc/posix-functions/getpeername.texi: Update mingw problems.
36889         * doc/posix-functions/getsockname.texi: Update mingw problems.
36890         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36891         * doc/posix-functions/ioctl.texi: Update mingw problems.
36892         * doc/posix-functions/listen.texi: Update mingw problems.
36893         * doc/posix-functions/recv.texi: Update mingw problems.
36894         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36895         * doc/posix-functions/select.texi: Update mingw problems.
36896         * doc/posix-functions/send.texi: Update mingw problems.
36897         * doc/posix-functions/sendto.texi: Update mingw problems.
36898         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36899         * doc/posix-functions/socket.texi: Update mingw problems.
36900
36901 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36902             Bruno Haible  <bruno@clisp.org>
36903
36904         * lib/sys_select.in.h: Include sys/time.h.
36905         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36906         * modules/sys_select: Depend on sys_time.
36907         * tests/test-sys_select.c: Test that sys/select.h defines struct
36908         timeval fully.
36909
36910 2008-09-29  Bruno Haible  <bruno@clisp.org>
36911
36912         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36913         * lib/sys_select.in.h: Likewise.
36914
36915 2008-09-29  Bruno Haible  <bruno@clisp.org>
36916
36917         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36918
36919 2008-09-29  Bruno Haible  <bruno@clisp.org>
36920
36921         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36922         Set LIBSOCKET instead of augmenting LIBS.
36923         * modules/sockets (Link): New section.
36924         * modules/sockets-tests (test_sockets_LDADD): New variable.
36925         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36926         * modules/poll-tests (test_poll_LDADD): New variable.
36927         * NEWS: Document the change.
36928
36929 2008-09-29  Bruno Haible  <bruno@clisp.org>
36930
36931         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36932         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36933         ARPA_INET_H directly.
36934         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36935
36936 2008-09-28  Bruno Haible  <bruno@clisp.org>
36937
36938         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36939         from gl_HEADER_SYS_SOCKET.
36940         (gl_HEADER_SYS_SOCKET): Invoke it.
36941         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36942
36943 2008-09-28  Bruno Haible  <bruno@clisp.org>
36944
36945         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36946         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36947         Needed on OSF/1 4.0.
36948
36949 2008-09-28  Bruno Haible  <bruno@clisp.org>
36950
36951         Override open more carefully.
36952         * lib/open.c (orig_open): New function.
36953         (rpl_open): Use orig_open instead of open.
36954         * lib/fcntl.in.h: Add special invocation convention.
36955         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36956         (gl_FUNC_OPEN): Invoke it.
36957
36958         Override freopen more carefully.
36959         * lib/freopen.c (orig_freopen): New function.
36960         (rpl_freopen): Use orig_freopen instead of freopen.
36961         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36962         (gl_FUNC_FREOPEN): Invoke it.
36963
36964         Override fopen more carefully.
36965         * lib/fopen.c (orig_fopen): New function.
36966         (rpl_fopen): Use orig_fopen instead of fopen.
36967         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36968         (gl_FUNC_FOPEN): Invoke it.
36969         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36970
36971 2008-09-28  Bruno Haible  <bruno@clisp.org>
36972
36973         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36974         SIGPIPE.
36975
36976 2008-09-28  Bruno Haible  <bruno@clisp.org>
36977
36978         * tests/test-sigaction.c (handler, main): Disable the check whether
36979         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36980         glibc systems with LinuxThreads.
36981
36982 2008-09-28  Bruno Haible  <bruno@clisp.org>
36983
36984         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36985
36986         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36987         with AIX xlc.
36988         * lib/fcntl.in.h (open): Likewise.
36989         Reported by Rainer Tammer <tammer@tammer.net>.
36990
36991 2008-09-28  Bruno Haible  <bruno@clisp.org>
36992
36993         * modules/posix_spawnp-tests: New file.
36994         * tests/test-posix_spawn.c: New file.
36995         * tests/test-posix_spawn.in.sh: New file.
36996
36997         New module 'posix_spawnp'.
36998         * modules/posix_spawnp: New file.
36999         * lib/spawnp.c: New file, from GNU libc with modifications.
37000         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37001
37002         New module 'posix_spawn'.
37003         * modules/posix_spawn: New file.
37004         * lib/spawn.c: New file, from GNU libc with modifications.
37005         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37006
37007         New module 'posix_spawnattr_destroy'.
37008         * modules/posix_spawnattr_destroy: New file.
37009         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37010         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37011         module.
37012
37013         New module 'posix_spawnattr_setsigmask'.
37014         * modules/posix_spawnattr_setsigmask: New file.
37015         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37016         modifications.
37017         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37018         new module.
37019
37020         New module 'posix_spawnattr_getsigmask'.
37021         * modules/posix_spawnattr_getsigmask: New file.
37022         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37023         modifications.
37024         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37025         new module.
37026
37027         New module 'posix_spawnattr_setsigdefault'.
37028         * modules/posix_spawnattr_setsigdefault: New file.
37029         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37030         modifications.
37031         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37032         new module.
37033
37034         New module 'posix_spawnattr_getsigdefault'.
37035         * modules/posix_spawnattr_getsigdefault: New file.
37036         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37037         modifications.
37038         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37039         new module.
37040
37041         New module 'posix_spawnattr_setschedpolicy'.
37042         * modules/posix_spawnattr_setschedpolicy: New file.
37043         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37044         modifications.
37045         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37046         new module.
37047
37048         New module 'posix_spawnattr_getschedpolicy'.
37049         * modules/posix_spawnattr_getschedpolicy: New file.
37050         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37051         modifications.
37052         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37053         new module.
37054
37055         New module 'posix_spawnattr_setschedparam'.
37056         * modules/posix_spawnattr_setschedparam: New file.
37057         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37058         modifications.
37059         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37060         new module.
37061
37062         New module 'posix_spawnattr_getschedparam'.
37063         * modules/posix_spawnattr_getschedparam: New file.
37064         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37065         modifications.
37066         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37067         new module.
37068
37069         New module 'posix_spawnattr_setpgroup'.
37070         * modules/posix_spawnattr_setpgroup: New file.
37071         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37072         modifications.
37073         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37074         module.
37075
37076         New module 'posix_spawnattr_getpgroup'.
37077         * modules/posix_spawnattr_getpgroup: New file.
37078         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37079         modifications.
37080         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37081         module.
37082
37083         New module 'posix_spawnattr_setflags'.
37084         * modules/posix_spawnattr_setflags: New file.
37085         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37086         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37087         module.
37088
37089         New module 'posix_spawnattr_getflags'.
37090         * modules/posix_spawnattr_getflags: New file.
37091         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37092         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37093         module.
37094
37095         New module 'posix_spawnattr_init'.
37096         * modules/posix_spawnattr_init: New file.
37097         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37098         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37099         module.
37100
37101         New module 'posix_spawn_file_actions_destroy'.
37102         * modules/posix_spawn_file_actions_destroy: New file.
37103         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37104         modifications.
37105         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37106         the new module.
37107
37108         New module 'posix_spawn_file_actions_addopen'.
37109         * modules/posix_spawn_file_actions_addopen: New file.
37110         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37111         modifications.
37112         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37113         the new module.
37114
37115         New module 'posix_spawn_file_actions_adddup2'.
37116         * modules/posix_spawn_file_actions_adddup2: New file.
37117         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37118         modifications.
37119         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37120         the new module.
37121
37122         New module 'posix_spawn_file_actions_addclose'.
37123         * modules/posix_spawn_file_actions_addclose: New file.
37124         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37125         modifications.
37126         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37127         the new module.
37128
37129         New module 'posix_spawn_file_actions_init'.
37130         * modules/posix_spawn_file_actions_init: New file.
37131         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37132         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37133         new module.
37134
37135         New module 'posix_spawn-internal'.
37136         * modules/posix_spawn-internal: New file.
37137         * lib/spawn_int.h: New file, from GNU libc with modifications.
37138         * lib/spawni.c: New file, from GNU libc with modifications.
37139         * m4/posix_spawn.m4: New file.
37140
37141         New module 'spawn'.
37142         * modules/spawn: New file.
37143         * lib/spawn.in.h: New file, from GNU libc with modifications.
37144         * m4/spawn_h.m4: New file.
37145         * doc/posix-headers/spawn.texi: Mention the new module.
37146
37147 2008-09-28  Bruno Haible  <bruno@clisp.org>
37148
37149         * modules/sched-tests: New file.
37150         * tests/test-sched.c: New file.
37151
37152         New module 'sched'.
37153         * modules/sched: New file.
37154         * lib/sched.in.h: New file.
37155         * m4/sched_h.m4: New file.
37156         * doc/posix-headers/sched.texi: Mention the new module.
37157
37158 2008-09-27  Eric Blake  <ebb9@byu.net>
37159
37160         Fix previous patch, and tweak references to $0.
37161         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37162         (func_version, func_gnulib_dir): Don't call this program
37163         gnulib-tool.
37164         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37165         with using $0 in function.
37166         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37167         (func_fatal_error): Reuse the name the user invoked us with.
37168
37169 2008-09-27  Bruno Haible  <bruno@clisp.org>
37170
37171         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37172         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37173         (gl_ICONV_H): Not here.
37174         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37175         instead of assigning ICONV_H directly.
37176
37177         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37179         WCHAR_H directly.
37180
37181 2008-09-27  Bruno Haible  <bruno@clisp.org>
37182
37183         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37184         * modules/arpa_inet (Depends-on): Add link-warning.
37185         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37186         * modules/unistd (Makefile.am): Likewise.
37187
37188 2008-09-26  Bruno Haible  <bruno@clisp.org>
37189
37190         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37191         variables.
37192         (func_version): Essentially copied from gnulib-tool.
37193         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37194         func_readlink): Copied from gnulib-tool.
37195
37196 2008-09-26  Bruno Haible  <bruno@clisp.org>
37197
37198         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37199         invoking git-version-gen.
37200
37201 2008-09-26  Bruno Haible  <bruno@clisp.org>
37202
37203         * posix-modules: Update to directory names changed on 2008-01-19.
37204         Remove commas in output before splitting into words. No more need to
37205         avoid 'ftruncate' since 2007-02-19.
37206
37207 2008-09-26  Bruno Haible  <bruno@clisp.org>
37208
37209         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37210
37211 2008-09-26  Bruno Haible  <bruno@clisp.org>
37212
37213         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37214         * modules/fwriteerror (Depends-on): Add errno.
37215
37216 2008-09-26  Bruno Haible  <bruno@clisp.org>
37217
37218         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37219         * tests/test-vc-list-files-cvs.sh: Likewise.
37220
37221 2008-09-26  Bruno Haible  <bruno@clisp.org>
37222
37223         * doc/posix-headers/sys_resource.texi: Reorder items.
37224
37225 2008-09-26  Jim Meyering  <meyering@redhat.com>
37226
37227         fts: tweak inode comparison function
37228         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37229         inode numbers, as documented.
37230
37231         fts: sort dirent entries on inode number before traversing
37232         This avoids a quadratic, seek-related performance penalty when
37233         operating on a directory containing many entries (measurable at 10k;
37234         3.5 hours at 2 million entries with a cold cache) on certain types
37235         of file systems, including ext3 and ext4, but not tmpfs.
37236         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37237         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37238         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37239         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37240         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37241         (fts_build): Set the stat.st_ino member from D_INO.
37242         If it is likely to be useful, sort dirent entries on inode number.
37243
37244         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37245         and the struct statfs.f_type member.
37246         * modules/fts (Depends-on): Add d-ino.
37247
37248 2008-09-26  Bruno Haible  <bruno@clisp.org>
37249
37250         * modules/sigpipe-die (Depends-on): Add sigpipe.
37251
37252         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37253         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37254         and GNULIB_STDIO_H_SIGPIPE are set.
37255         * lib/stdio-write.c: New file.
37256         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37257         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37258         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37259         REPLACE_STDIO_WRITE_FUNCS.
37260         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37261         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37262         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37263         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37264         * modules/stdio (Files): Add lib/stdio-write.c.
37265         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37266         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37267         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37268         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37269         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37270         REPLACE_FPRINTF_POSIX.
37271         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37272         REPLACE_PRINTF_POSIX.
37273         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37274         REPLACE_VFPRINTF_POSIX.
37275         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37276         REPLACE_VPRINTF_POSIX.
37277         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37278         SIGPIPE issue.
37279         * doc/posix-functions/fputc.texi: Likewise.
37280         * doc/posix-functions/fputs.texi: Likewise.
37281         * doc/posix-functions/fwrite.texi: Likewise.
37282         * doc/posix-functions/printf.texi: Likewise.
37283         * doc/posix-functions/putc.texi: Likewise.
37284         * doc/posix-functions/putchar.texi: Likewise.
37285         * doc/posix-functions/puts.texi: Likewise.
37286         * doc/posix-functions/vfprintf.texi: Likewise.
37287         * doc/posix-functions/vprintf.texi: Likewise.
37288
37289         * modules/safe-write (Depends-on): Add write.
37290
37291         * modules/sigpipe-tests: New file.
37292         * tests/test-sigpipe.c: New file.
37293         * tests/test-sigpipe.sh: New file.
37294
37295         * modules/write: New file.
37296         * lib/unistd.in.h: Include <sys/types.h>.
37297         (write): New declaration.
37298         * lib/write.c: New file.
37299         * m4/write.m4: New file.
37300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37301         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37302         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37303         GNULIB_WRITE, REPLACE_WRITE.
37304         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37305         and the SIGPIPE issue.
37306
37307         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37308         (raise): New declaration.
37309         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37310         (ext_signal): New function.
37311         (rpl_raise): New function.
37312         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37313         GNULIB_SIGNAL_H_SIGPIPE.
37314         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37315         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37316
37317         * modules/sigpipe: New file.
37318         * m4/sigpipe.m4: New file.
37319
37320 2008-09-25  Derek Price  <derek@ximbiot.com>
37321             Bruno Haible  <bruno@clisp.org>
37322
37323         * gnulib-tool (func_import): Report all license incompatibilities, not
37324         just the first one.
37325
37326 2008-09-25  Bruno Haible  <bruno@clisp.org>
37327
37328         * gnulib-tool (func_import): When computing the edits, consider not
37329         only the Makefile.ams that exist but also those that will be generated.
37330
37331 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37332
37333         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37334         fixes gnulib-tool --test warning about duplicate dependency.
37335
37336 2008-09-25  Bruno Haible  <bruno@clisp.org>
37337
37338         * gnulib-tool: Don't ask the user to perform edits in the generated
37339         Makefile.ams.
37340         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37341         apply to the Makefile.am being generated.
37342         (func_emit_tests_Makefile_am): Execute edits that apply to the
37343         Makefile.am being generated.
37344         (func_import): Setup list of Makefile.am edits before emitting the
37345         Makefile.ams, not at the end.
37346         (func_create_testdir): Update.
37347         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37348
37349 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37350
37351         * gnulib-tool (func_import): Store the --tests-base option in the
37352         comment in gnulib-cache.m4.
37353
37354 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37355
37356         * NEWS: Document increased portability that sys_select now provides.
37357
37358         * lib/sys_select.in.h: Install select wrapper.
37359         * lib/sys_socket.in.h: Use more descriptive name when there is no
37360         select wrapper.
37361         * lib/winsock-select.c: New.
37362         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37363         Require gl_HEADER_SYS_SOCKET.
37364         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37365         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37366         * tests/test-sys_select.c: Add functional tests.
37367
37368 2008-09-24  Eric Blake  <ebb9@byu.net>
37369
37370         open, fopen: close fd leak in last patch
37371         * lib/open.c (rpl_open): Close fd before returning error.
37372         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37373         * doc/posix-functions/open.texi (open): Document that Irix also
37374         has the bug.
37375         * doc/posix-functions/fopen.texi (fopen): Likewise.
37376         Reported by Paolo Bonzini.
37377
37378 2008-09-24  Bruno Haible  <bruno@clisp.org>
37379
37380         Ensure that a filename ending in a slash cannot be used to access a
37381         non-directory.
37382         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37383         to check whether it's really a directory.
37384         * lib/fopen.c: Include fcntl.h, unistd.h.
37385         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37386         and fdopen().
37387         * modules/fopen (Depends-on): Add unistd.
37388         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37389         * tests/test-fopen.c (main): Likewise.
37390         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37391         * doc/posix-functions/fopen.texi: Likewise.
37392         Reported by Eric Blake.
37393
37394 2008-09-23  Eric Blake  <ebb9@byu.net>
37395
37396         c-stack: avoid compiler optimizations when provoking overflow
37397         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37398         recursion harder to optimize, to ensure a stack overflow occurs.
37399         * tests/test-c-stack.c (recurse): Likewise.
37400         Borrowed from libsigsegv.
37401
37402         c-stack: work around Irix sigaltstack bug
37403         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37404         whether sigaltstack uses wrong end of stack_t (copied in part from
37405         libsigsegv).
37406         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37407         Irix bug, without requiring an over-allocation.
37408         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37409         bug.
37410
37411         fopen: document mingw bug on directories
37412         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37413         not allowing a stream visiting a directory, even though reading
37414         from such a stream is not portable.
37415
37416 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37417
37418         * lib/poll.c: Rewrite.
37419         * modules/poll: Depend on alloca.
37420
37421 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37422
37423         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37424         instead define prototypes for a full set of wrappers.  Ensure
37425         that Cygwin does not use the compatibility code, which is only
37426         for MinGW.
37427         * lib/winsock.c: New.
37428         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37429         * modules/sys_socket: Add lib/winsock.c.
37430
37431         * modules/poll-tests: Add errno and perror.
37432         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37433
37434 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37435
37436         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37437
37438 2008-09-23  Bruno Haible  <bruno@clisp.org>
37439
37440         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37441         * doc/glibc-functions/*: Likewise.
37442
37443 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37444
37445         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37446         success.
37447
37448 2008-09-22  Eric Blake  <ebb9@byu.net>
37449             Bruno Haible  <bruno@clisp.org>
37450
37451         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37452         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37453         supply %A but mishandle pseudo-NaN.
37454         Reported by Simon Josefsson.
37455
37456 2008-09-21  Bruno Haible  <bruno@clisp.org>
37457
37458         * tests/test-lock.c (main): Tweak skip message.
37459         * tests/test-tls.c (main): Likewise.
37460
37461 2008-09-21  Bruno Haible  <bruno@clisp.org>
37462
37463         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37464         whether 'struct sigaction' has sa_sigaction here...
37465         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37466         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37467
37468 2008-09-21  Bruno Haible  <bruno@clisp.org>
37469
37470         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37471         section.
37472         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37473         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37474         the new section.
37475         (Support for obsolete systems lacking POSIX:2001): New section.
37476         (String handling <string.h>): Move strdup to the new section.
37477         Suggested by Simon Josefsson and Paolo Bonzini.
37478
37479 2008-09-21  Bruno Haible  <bruno@clisp.org>
37480
37481         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37482         exponents in %e and %g results on 'long double'. Needed for mingw's
37483         improved *printf functions.
37484         * tests/test-vasprintf-posix.c (test_function): Likewise.
37485         * tests/test-snprintf-posix.h (test_function): Likewise.
37486         * tests/test-sprintf-posix.h (test_function): Likewise.
37487         Reported by Eric Blake.
37488
37489 2008-09-21  Bruno Haible  <bruno@clisp.org>
37490
37491         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37492         * tests/test-sprintf-posix.h (test_function): Likewise.
37493
37494 2008-09-21  Bruno Haible  <bruno@clisp.org>
37495
37496         * modules/getpass (Depends-on): Add strdup-posix.
37497
37498         New module 'strdup-posix'.
37499         * modules/strdup-posix: New file.
37500         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37501         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37503         REPLACE_STRDUP.
37504         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37505         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37506         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37507         strdup-posix.
37508
37509         * modules/strdup (Depends-on): Remove malloc-posix.
37510
37511 2008-09-20  Bruno Haible  <bruno@clisp.org>
37512
37513         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37514         Wildenhues.
37515
37516 2008-09-20  Bruno Haible  <bruno@clisp.org>
37517
37518         Ensure that wint_t gets defined on IRIX 5.3.
37519         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37520         * lib/wctype.in.h (wint_t): Likewise.
37521         (__wctype_wint_t): Remove type.
37522         (isw*): Use wint_t instead of __wctype_wint_t.
37523         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37524         * modules/wchar (Files): Add m4/wint_t.m4.
37525         (Makefile.am): Substitute HAVE_WINT_T.
37526         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37527         * tests/test-wctype.c: Check that wint_t is defined.
37528         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37529         * doc/posix-headers/wctype.texi: Likewise.
37530         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37531
37532 2008-09-18  Bruno Haible  <bruno@clisp.org>
37533
37534         * gnulib-tool (func_exit): Update comment.
37535
37536 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37537
37538         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37539         assumes strdup exists and does not depend on strdup to return
37540         ENOMEM on out of memory conditions.
37541
37542 2008-09-18  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37545         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37546         digits for the exponent.
37547
37548 2008-09-18  Jim Meyering  <meyering@redhat.com>
37549             Bruno Haible  <bruno@clisp.org>
37550
37551         * lib/vasnprintf.c (decimal_point_char): Define also if
37552         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37553
37554 2008-09-16  Bruno Haible  <bruno@clisp.org>
37555         and Eric Blake  <ebb9@byu.net>
37556
37557         vasnprintf: support Irix 5.3
37558         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37559         that mishandle long double infinity.
37560         Reported by Tom G. Christensen.
37561
37562 2008-09-16  Bruno Haible  <bruno@clisp.org>
37563
37564         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37565         Solaris 9.
37566         * doc/glibc-functions/alphasort.texi: Likewise.
37567         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37568
37569 2008-09-16  Jim Meyering  <meyering@redhat.com>
37570
37571         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37572         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37573         a umask modification leak out of a subshell.  Otherwise, the
37574         opensolaris /bin/sh would be accepted and thus cause unwarranted
37575         failures in the coreutils test suite.
37576
37577 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37578
37579         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37580         to succeed.
37581
37582 2008-09-16  Jim Meyering  <meyering@redhat.com>
37583
37584         avoid spurious test failure when library is built without ACL support
37585         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37586         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37587         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37588         * tests/test-copy-acl.sh: Likewise.
37589
37590 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37591
37592         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37593         based on character occurrence counts.
37594
37595 2008-09-15  Eric Blake  <ebb9@byu.net>
37596
37597         tests: avoid some compiler warnings
37598         * tests/test-memchr.c (main): Pass NULL indirectly.
37599         * tests/test-closein.c (main): Avoid unused variable.
37600
37601 2008-09-15  Bruno Haible  <bruno@clisp.org>
37602
37603         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37604         are missing on OpenBSD 4.0 individually.
37605         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37606
37607 2008-09-15  Bruno Haible  <bruno@clisp.org>
37608
37609         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37610         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37611         * doc/posix-functions/perror.texi: Likewise.
37612         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37613         is missing.
37614         Reported by Eric Blake.
37615
37616         * lib/errno.in.h: Use replacement values >= 2000.
37617         Reported by Eric Blake.
37618
37619 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37620
37621         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37622         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37623         limit.
37624         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37625         compareseq was aborted.
37626
37627 2008-09-14  Bruno Haible  <bruno@clisp.org>
37628
37629         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37630         yvec_edit_count.
37631         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37632         (fstrcmp_bounded): Simplify result computation accordingly.
37633
37634 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37635
37636         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37637         (fstrcmp): Define in terms of fstrcmp_bounded.
37638         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37639         lower_bound argument.
37640         Return quickly if the result is certainly < lower_bound.
37641         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37642
37643 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37644
37645         * lib/diffseq.h (EARLY_ABORT): New macro.
37646         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37647         evaluates to true.
37648
37649 2008-09-14  Bruno Haible  <bruno@clisp.org>
37650
37651         * modules/perror-tests: New file.
37652         * tests/test-perror.sh: New file.
37653         * tests/test-perror.c: New file.
37654
37655         New module 'perror'.
37656         * lib/stdio.in.h (perror): New declaration.
37657         * lib/perror.c: New file.
37658         * m4/perror.m4: New file.
37659         * modules/perror: New file.
37660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37661         * doc/posix-functions/perror.texi: Mention the perror module.
37662         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37663         REPLACE_PERROR.
37664         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37665         REPLACE_PERROR.
37666
37667 2008-09-14  Bruno Haible  <bruno@clisp.org>
37668
37669         * modules/stdio (Makefile.am): Reorder to match the order in
37670         lib/stdio.in.h.
37671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37672
37673 2008-09-13  Bruno Haible  <bruno@clisp.org>
37674
37675         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37676
37677 2008-09-13  Bruno Haible  <bruno@clisp.org>
37678
37679         Extend strerror to cover the added errno values.
37680         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37681         (rpl_strerror): Provide error messages for the added errno values and
37682         for the WSA* values.
37683         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37684         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37685         strerror.
37686         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37687         * modules/strerror (Depends-on): Add errno.
37688         * doc/posix-functions/strerror.texi: Document the change.
37689         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37690         and EOVERFLOW.
37691
37692 2008-09-13  Bruno Haible  <bruno@clisp.org>
37693
37694         * modules/EOVERFLOW: Remove file.
37695         * m4/eoverflow.m4: Remove file.
37696         * modules/EOVERFLOW-tests: Remove file.
37697         * tests/test-EOVERFLOW.c: Remove file.
37698         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37699         * modules/ftell (Depends-on): Likewise.
37700         * modules/getdelim (Depends-on): Likewise.
37701         * modules/getugroups (Depends-on): Likewise.
37702         * modules/poll (Depends-on): Likewise.
37703         * modules/snprintf (Depends-on): Likewise.
37704         * modules/sprintf-posix (Depends-on): Likewise.
37705         * modules/vasnprintf (Depends-on): Likewise.
37706         * modules/vasprintf (Depends-on): Likewise.
37707         * modules/vfprintf-posix (Depends-on): Likewise.
37708         * modules/vsnprintf (Depends-on): Likewise.
37709         * modules/vsprintf-posix (Depends-on): Likewise.
37710         * modules/xvasprintf (Depends-on): Likewise.
37711         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37712         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37713         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37714         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37715         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37716         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37717         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37718         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37719         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37720         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37721         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37722         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37723         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37724         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37725         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37726         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37727         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37728         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37729         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37730         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37731         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37732         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37733         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37734         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37735         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37736         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37737         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37738         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37739         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37740         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37741         * MODULES.html.sh: Remove EOVERFLOW.
37742         * NEWS: Mention the change.
37743
37744 2008-09-13  Bruno Haible  <bruno@clisp.org>
37745
37746         * modules/errno-tests: New file.
37747         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37748
37749         * lib/errno.in.h: New file.
37750         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37751         * modules/errno: New file.
37752         * doc/posix-headers/errno.texi: Update documentation.
37753         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37754
37755 2008-09-13  Bruno Haible  <bruno@clisp.org>
37756
37757         * tests/test-poll.c: Use #if for native Windows, rather than testing
37758         __MSVCRT__.
37759
37760 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37761             Bruno Haible  <bruno@clisp.org>
37762
37763         * lib/glob.c: Don't include <pwd.h> on native Windows.
37764         (WINDOWS32): New macro.
37765         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37766
37767 2008-09-13  Bruno Haible  <bruno@clisp.org>
37768
37769         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37770         (ETIMEDOUT): Remove macro.
37771         (glthread_cond_timedwait_multithreaded): New declaration.
37772         (glthread_cond_timedwait): Use it.
37773         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37774         (glthread_cond_timedwait_multithreaded): New function.
37775
37776 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37777
37778         * modules/poll-tests: Do not check for io.h.
37779         * tests/test-poll.c: Check for __MSVCRT__ instead.
37780
37781 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37782
37783         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37784         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37785         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37786
37787 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37788
37789         * modules/poll-tests: New.
37790         * tests/test-poll.c: New.
37791
37792 2008-09-12  Eric Blake  <ebb9@byu.net>
37793
37794         frexp: test for NetBSD failure on -0.0
37795         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37796         not all, bugs from NetBSD 3.0 have been fixed.
37797         * doc/posix-functions/frexp.texi (frexp): Document bug.
37798         Reported by Thomas Klausner.
37799
37800         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37801         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37802         literal -0.0.
37803         Reported by Jonathan C. Patschke <jp@centtech.com>.
37804
37805 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37806
37807         * lib/glthread/cond.h: Use dummy implementation also if
37808         USE_WIN32_THREADS.
37809
37810 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37811
37812         * modules/fnmatch-posix (License): Change to LGPLv2+.
37813         * modules/fnmatch-gnu (License): Likewise.
37814
37815 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37816
37817         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37818
37819 2008-09-11  Jim Meyering  <meyering@redhat.com>
37820
37821         * users.txt: Add gtk-vnc.
37822
37823 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37824
37825         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37826         rotate amounts.
37827
37828         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37829         required for 16-bit and 8-bit rotates.
37830         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37831         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37832         UINT8_MAX instead of hard-coded constants.
37833         Suggested by Paul Eggert.
37834
37835 2008-09-07  Bruno Haible  <bruno@clisp.org>
37836
37837         * tests/test-striconveh.c (main): Check behaviour when converting from
37838         UTF-7.
37839
37840         Make striconveh work better with stateful encodings.
37841         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37842         that iconv does not increment the inptr when returning -1/EINVAL.
37843
37844 2008-09-07  Bruno Haible  <bruno@clisp.org>
37845
37846         * build-aux/config.rpath: Update according to libtool-2.2.6.
37847         * build-aux/config.libpath: Likewise.
37848
37849 2008-09-06  Bruno Haible  <bruno@clisp.org>
37850
37851         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37852         * lib/freadptr.c (freadptr): Likewise.
37853         * lib/freadseek.c (freadptrinc): Likewise.
37854         Reported by Simon Josefsson.
37855
37856 2008-09-06  Bruno Haible  <bruno@clisp.org>
37857
37858         * modules/freadptr (License): Change to LGPLv2+.
37859         * modules/freadseek (License): Likewise.
37860         Suggested by Eric Blake.
37861
37862         * modules/memchr2 (License): Change to LGPLv2+.
37863         Approved by Eric Blake.
37864
37865 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37866             Bruno Haible  <bruno@clisp.org>
37867
37868         Make gnulib-tool work with native 'sed' on AIX.
37869         * gnulib-tool (sed_noop): New variable.
37870         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37871         func_add_or_update, func_create_testdir): Use it to initialize sed
37872         script variables.
37873         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37874
37875 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37876             Bruno Haible  <bruno@clisp.org>
37877
37878         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37879         also works after #include directives.
37880
37881 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37882
37883         getdate.y: reject an out-of-range timezone value
37884         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37885         the range [-24...+24].  When specified with only one or two digits,
37886         * tests/test-getdate.c: Tests for the fix.
37887         * doc/getdate.texi: Document this change.
37888
37889 2008-09-03  Bruno Haible  <bruno@clisp.org>
37890
37891         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37892
37893 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37894
37895         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37896         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37897         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37898         Blake <ebb9@byu.net>.
37899
37900         * tests/test-bitrotate.c: Add more test vectors.
37901
37902 2008-09-02  Eric Blake  <ebb9@byu.net>
37903
37904         vasnprintf-posix: handle large precision via %.*d
37905         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37906         when handling it ourselves.
37907         * tests/test-vasnprintf-posix.c (test_function): Add test.
37908         * tests/test-snprintf-posix.h (test_function): Likewise.
37909         * tests/test-sprintf-posix.h (test_function): Likewise.
37910         * tests/test-vasprintf-posix.c (test_function): Likewise.
37911         Reported by Alain Guibert.
37912
37913 2008-09-01  Eric Blake  <ebb9@byu.net>
37914
37915         c-stack: make configure-time check more robust
37916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37917         successful sigaction call.
37918         Reported by Tom G. Christensen.
37919
37920 2008-09-01  Bruno Haible  <bruno@clisp.org>
37921
37922         New module 'findprog-lgpl'.
37923         * modules/findprog-lgpl: New file.
37924         * lib/findprog-lgpl.c: New file.
37925         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37926         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37927         to decide whether to use strdup or xstrdup, concatenated_filename or
37928         xconcatenated_filename.
37929
37930 2008-09-01  Bruno Haible  <bruno@clisp.org>
37931
37932         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37933         'xconcat-filename' (GPL).
37934         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37935         (License): Change to LGPLv2+.
37936         * modules/xconcat-filename: New file.
37937         * lib/concat-filename.h (concatenated_filename): Change specification.
37938         (xconcatenated_filename): New declaration.
37939         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37940         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37941         memory situations.
37942         * lib/xconcat-filename.c: New file.
37943         * NEWS: Mention the change.
37944         * lib/findprog.c: Include concat-filename.h, not filename.h.
37945         (find_in_path): Use xconcatenated_filename instead of
37946         concatenated_filename.
37947         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37948         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37949         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37950         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37951         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37952         instead of concatenated_filename.
37953         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37954         (execute_java_class): Use xconcatenated_filename instead of
37955         concatenated_filename.
37956         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37957         * modules/javacomp (Depends-on): Likewise.
37958         * modules/javaexec (Depends-on): Likewise.
37959
37960 2008-09-01  Bruno Haible  <bruno@clisp.org>
37961
37962         Split module 'filename' into 'filename' and 'concat-filename'.
37963         * modules/filename: Keep only lib/filename.h.
37964         (License): Change to LGPLv2+.
37965         * modules/concat-filename: New file, extracted from modules/filename.
37966         * lib/filename.h (concatenated_filename): Remove declaration.
37967         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37968         * lib/concat-filename.c: Include concat-filename.h.
37969         * NEWS: Mention the change.
37970
37971 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37972
37973         * lib/bitrotate.h (rotl8, rotr8): Add.
37974
37975         * modules/bitrotate (configure.ac): Need
37976         AC_REQUIRE([AC_C_INLINE]).
37977         (Description): Mention stdint.h.  Reported by Bruno Haible
37978         <bruno@clisp.org>.
37979
37980         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37981         Paolo Bonzini <bonzini@gnu.org>.
37982
37983 2008-08-31  Bruno Haible  <bruno@clisp.org>
37984
37985         Assume Solaris specific bi-arch conventions on Solaris systems.
37986         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37987         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37989         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37990         like acl_libdirstem.
37991         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37992         acl_libdirstem.
37993         * NEWS: Mention the change.
37994         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37995
37996 2008-08-31  Jim Meyering  <meyering@redhat.com>
37997
37998         * lib/strftime.h: Add comments describing the two added arguments.
37999
38000         remove duplicate #include directives
38001         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38002         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38003
38004 2008-08-31  Bruno Haible  <bruno@clisp.org>
38005
38006         New module 'sigpipe-die'.
38007         * modules/sigpipe-die: New file.
38008         * lib/sigpipe-die.h: New file.
38009         * lib/sigpipe-die.c: New file.
38010         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38011
38012 2008-08-31  Bruno Haible  <bruno@clisp.org>
38013
38014         Don't override previously installed signal handlers.
38015         * lib/fatal-signal.c (saved_sigactions): New variable.
38016         (uninstall_handlers): Reset the signal to the saved handler, not
38017         to SIG_DFL (except when ignored).
38018         (install_handlers): Save the previous handlers.
38019
38020 2008-08-30  Bruno Haible  <bruno@clisp.org>
38021
38022         * gnulib-tool (func_reset_sigpipe): New function.
38023         (func_get_automake_snippet, func_modules_transitive_closure,
38024         func_import): Invoke it before a join command that reads from stdin,
38025         to avoid "echo: write error: Broken pipe" error messages on stderr.
38026         Reported by Sam Steingold <sds@gnu.org>.
38027
38028 2008-08-30  Bruno Haible  <bruno@clisp.org>
38029
38030         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38031         Code copied from m4/open.m4.
38032         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38033         access and the filename ends in a slash. Code copied from lib/open.c.
38034         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38035         * tests/test-fopen.c (main): Check against bug with trailing slash.
38036
38037 2008-08-29  Bruno Haible  <bruno@clisp.org>
38038
38039         Avoid some "gcc -pedantic" warnings.
38040         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38041         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38042         * lib/dirent.in.h: Likewise.
38043         * lib/fcntl.in.h: Likewise.
38044         * lib/float.in.h: Likewise.
38045         * lib/iconv.in.h: Likewise.
38046         * lib/inttypes.in.h: Likewise.
38047         * lib/locale.in.h: Likewise.
38048         * lib/math.in.h: Likewise.
38049         * lib/netinet_in.in.h: Likewise.
38050         * lib/search.in.h: Likewise.
38051         * lib/signal.in.h: Likewise.
38052         * lib/stdarg.in.h: Likewise.
38053         * lib/stdint.in.h: Likewise.
38054         * lib/stdio.in.h: Likewise.
38055         * lib/stdlib.in.h: Likewise.
38056         * lib/string.in.h: Likewise.
38057         * lib/strings.in.h: Likewise.
38058         * lib/sys_select.in.h: Likewise.
38059         * lib/sys_socket.in.h: Likewise.
38060         * lib/sys_stat.in.h: Likewise.
38061         * lib/sys_time.in.h: Likewise.
38062         * lib/sysexits.in.h: Likewise.
38063         * lib/time.in.h: Likewise.
38064         * lib/unistd.in.h: Likewise.
38065         * lib/wchar.in.h: Likewise.
38066         * lib/wctype.in.h: Likewise.
38067         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38068         * modules/fchdir (Makefile.am): Likewise.
38069         * modules/fcntl (Makefile.am): Likewise.
38070         * modules/float (Makefile.am): Likewise.
38071         * modules/iconv_open (Makefile.am): Likewise.
38072         * modules/inttypes (Makefile.am): Likewise.
38073         * modules/locale (Makefile.am): Likewise.
38074         * modules/math (Makefile.am): Likewise.
38075         * modules/netinet_in (Makefile.am): Likewise.
38076         * modules/search (Makefile.am): Likewise.
38077         * modules/signal (Makefile.am): Likewise.
38078         * modules/stdarg (Makefile.am): Likewise.
38079         * modules/stdint (Makefile.am): Likewise.
38080         * modules/stdio (Makefile.am): Likewise.
38081         * modules/stdlib (Makefile.am): Likewise.
38082         * modules/string (Makefile.am): Likewise.
38083         * modules/strings (Makefile.am): Likewise.
38084         * modules/sys_select (Makefile.am): Likewise.
38085         * modules/sys_socket (Makefile.am): Likewise.
38086         * modules/sys_stat (Makefile.am): Likewise.
38087         * modules/sys_time (Makefile.am): Likewise.
38088         * modules/sysexits (Makefile.am): Likewise.
38089         * modules/time (Makefile.am): Likewise.
38090         * modules/unistd (Makefile.am): Likewise.
38091         * modules/wchar (Makefile.am): Likewise.
38092         * modules/wctype (Makefile.am): Likewise.
38093         Reported by Reuben Thomas <rrt@sc3d.org>.
38094
38095 2008-08-29  Bruno Haible  <bruno@clisp.org>
38096
38097         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38098         any more.
38099
38100 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38101
38102         * MODULES.html.sh (Misc): Add bitrotate.
38103
38104         * modules/bitrotate: New file.
38105
38106         * lib/bitrotate.h: New file.
38107
38108         * modules/bitrotate-tests: New file.
38109
38110         * tests/test-bitrotate.c: New file.
38111
38112         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38113         on the bitrotate module.
38114
38115         * lib/arctwo.c: Use new bitrotate module.
38116
38117 2008-08-29  Jim Meyering  <meyering@redhat.com>
38118
38119         bootstrap: merge changes from coreutils
38120         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38121         of copied files.  Remove a kludge, now that this is fixed.
38122         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38123         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38124         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38125
38126 2008-08-29  Bruno Haible  <bruno@clisp.org>
38127
38128         * MODULES.html.sh: Remove --cvs-urls option.
38129
38130 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38131
38132         maint.mk: adjust to file name change
38133         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38134
38135 2008-08-28  Jim Meyering  <meyering@redhat.com>
38136
38137         * modules/getndelim2 (License): Relicense to LGPLv2+.
38138         Approved by Richard Stallman for the version of 1995, and by
38139         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38140
38141 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38142
38143         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38144         dummy if one is not available.  Do not touch them if
38145         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38146         (getc_maybe_unlocked): New.
38147         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38148
38149 2008-08-26  Eric Blake  <ebb9@byu.net>
38150
38151         doc/INSTALL: resync from autoconf
38152         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38153         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38154         moving...
38155         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38156         * INSTALL: Regenerate.
38157         * INSTALL.ISO: New file.
38158         * INSTALL.UTF-8: Likewise.
38159
38160 2008-08-26  Jim Meyering  <meyering@redhat.com>
38161
38162         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38163         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38164         these definitions conditional, so that they may be overridden, too.
38165
38166 2008-08-26  Bruno Haible  <bruno@clisp.org>
38167
38168         Generate INSTALL file variants with prettier quotes.
38169         * doc/Makefile (INSTALL_PRELUDE): New macro.
38170         (INSTALL): Use it.
38171         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38172
38173 2008-08-26  Bruno Haible  <bruno@clisp.org>
38174
38175         Run makeinfo in an English locale.
38176         * doc/Makefile (MAKEINFO): New variable.
38177
38178 2008-08-26  Bruno Haible  <bruno@clisp.org>
38179
38180         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38181         Suggested by Eric Blake.
38182
38183 2008-08-25  Bruno Haible  <bruno@clisp.org>
38184
38185         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38186
38187 2008-08-25  Eric Blake  <ebb9@byu.net>
38188
38189         c-stack: test that stack overflow can be caught
38190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38191         that platform allows handling stack overflow; at least OS/2 EMX
38192         has sigaltstack, but crashes before transferring control to
38193         handler on stack overflow.
38194         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38195         check for HAVE_STACK_OVERFLOW_HANDLING.
38196         Reported by Elbert Pol.
38197
38198 2008-08-25  Bruno Haible  <bruno@clisp.org>
38199
38200         * doc/posix-functions/strftime.texi: Fix description of strftime
38201         module.
38202
38203 2008-08-24  Bruno Haible  <bruno@clisp.org>
38204
38205         * tests/uniwidth/test-uc_width2.c: New file.
38206         * tests/uniwidth/test-uc_width2.sh: New file.
38207         * modules/uniwidth/width-tests (Files): Add the new files.
38208         (TESTS): Add uniwidth/test-uc_width2.sh.
38209         (TESTS_ENVIRONMENT): New variable.
38210         (check_PROGRAMS): Add test-uc_width2.
38211         (test_uc_width2_SOURCES): New variable.
38212
38213         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38214         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38215         not 0x00AB.
38216         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38217
38218 2008-08-22  Eric Blake  <ebb9@byu.net>
38219
38220         test-lock, test-tls: mention why a test is skipped
38221         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38222         skipped.
38223         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38224
38225         count-one-bits: relax license
38226         * modules/count-one-bits (License): Relicense to LGPLv2+.
38227         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38228
38229 2008-08-22  Andreas Schwab  <schwab@suse.de>
38230
38231         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38232         Remove spurious space in assignment.
38233
38234 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38235
38236         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38237         Paul Eggert <eggert@CS.UCLA.EDU>.
38238
38239 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38240
38241         * modules/gettext: Add m4/threadlib.m4.
38242
38243 2008-08-19  Eric Blake  <ebb9@byu.net>
38244
38245         test-c-stack: fix compilation failure on FreeBSD 5.0
38246         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38247         headers before <sys/resource.h>.
38248         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38249         the bug.
38250         Reported by Nelson H. F. Beebe.
38251
38252         strverscmp: migrate from "strverscmp.h" to <string.h>
38253         * modules/string (Makefile.am): Add new hooks.
38254         * modules/strverscmp (Files): Remove strverscmp.h.
38255         (Depends-on): Add string.
38256         (configure.ac): Add indicator.
38257         (Include): Mention new header.
38258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38259         defaults.
38260         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38261         results.
38262         * lib/strverscmp.h: Delete.
38263         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38264         * tests/test-strverscmp.c (includes): Adjust client.
38265         * lib/check-version.c (includes): Likewise.
38266         * NEWS: Document the change.
38267
38268         strverscmp: add unit test
38269         * modules/strverscmp-tests: New file.
38270         * tests/test-strverscmp.c: Likewise.
38271
38272 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38273
38274         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38275         regarding Windows crypto stuff, from Mono.
38276
38277 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38278
38279         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38280         if present, for intel RND.  Return error on failures.
38281
38282 2008-08-18  Ben Pfaff  <blp@gnu.org>
38283
38284         gitlog-to-changelog: give better diagnostic for failed pipe-open
38285         * build-aux/gitlog-to-changelog: Improve error message: suggest
38286         that the version of Git may be too old.
38287
38288 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38289
38290         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38291         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38292
38293 2008-08-18  Bruno Haible  <bruno@clisp.org>
38294
38295         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38296         pthread_in_use().
38297
38298 2008-08-18  Bruno Haible  <bruno@clisp.org>
38299
38300         * lib/glthread/threadlib.c: Include <pthread.h>.
38301
38302 2008-08-18  Bruno Haible  <bruno@clisp.org>
38303
38304         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38305         glthread_recursive_lock_* macros.
38306         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38307         Fix syntax error.
38308
38309 2008-08-18  Bruno Haible  <bruno@clisp.org>
38310
38311         * lib/glthread/thread.c: Avoid forcing a context switch right after
38312         thread creation.
38313
38314 2008-08-17  Bruno Haible  <bruno@clisp.org>
38315
38316         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38317         * lib/glthread/thread.h: Provide Win32 specific implementation.
38318         * modules/thread (Files): Add lib/glthread/thread.c.
38319         (Depends-on): Add lock.
38320         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38321
38322 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38323
38324         New module 'yield'.
38325         * modules/yield: New file.
38326         * lib/glthread/yield.h: New file.
38327         * m4/yield.m4: New file.
38328         * MODULES.html.sh (Multithreading): Add yield.
38329
38330 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38331
38332         New module 'thread'.
38333         * modules/thread: New file.
38334         * lib/glthread/thread.h: New file.
38335         * m4/thread.m4: New file.
38336         * MODULES.html.sh (Multithreading): Add thread.
38337
38338 2008-08-17  Bruno Haible  <bruno@clisp.org>
38339
38340         * lib/glthread/lock.h: Include <stdlib.h> always.
38341         * lib/glthread/tls.h: Likewise.
38342         * lib/glthread/cond.h: Likewise.
38343
38344 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38345
38346         New module 'cond'.
38347         * modules/cond: New file.
38348         * lib/glthread/cond.h: New file.
38349         * lib/glthread/cond.c: New file.
38350         * m4/cond.m4: New file.
38351         * MODULES.html.sh (Multithreading): Add cond.
38352
38353 2008-08-16  Eric Blake  <ebb9@byu.net>
38354
38355         c-stack: fix regression on Irix 5.3 from 2008-06-21
38356         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38357         sa_sigaction...
38358         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38359         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38360         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38361         * modules/signal (Makefile.am): Use the value.
38362         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38363         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38364         * doc/posix-headers/signal.texi (signal.h): Document this
38365         portability issue.
38366         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38367         Reported by Tom G. Christensen.
38368
38369 2008-08-17  Bruno Haible  <bruno@clisp.org>
38370
38371         New module 'threadlib'.
38372         * modules/threadlib: New file.
38373         * lib/glthread/threadlib.c: New file, extracted from
38374         lib/glthread/lock.c.
38375         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38376         functions.
38377         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38378         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38379         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38380         macros.
38381         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38382         (gl_DISABLE_THREADS): Remove macro.
38383         * modules/lock (Files): Remove build-aux/config.rpath.
38384         (Depends-on): Remove havelib. Add threadlib.
38385         (configure.ac-early): Remove section.
38386         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38387         * modules/tls (Depends-on): Remove lock. Add threadlib.
38388         (Link): New section, copied from threadlib.
38389         * MODULES.html.sh (Multithreading): Add threadlib.
38390
38391 2008-08-14  Bruno Haible  <bruno@clisp.org>
38392
38393         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38394         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38395         glthread_rwlock_unlock, glthread_rwlock_destroy,
38396         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38397         glthread_recursive_lock_destroy): Define as macros always.
38398         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38399         glthread_lock_lock.
38400         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38401         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38402         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38403         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38404         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38405         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38406         (glthread_recursive_lock_lock_func): Renamed from
38407         glthread_recursive_lock_lock.
38408         (glthread_recursive_lock_unlock_func): Renamed from
38409         glthread_recursive_lock_unlock.
38410         (glthread_recursive_lock_destroy_func): Renamed from
38411         glthread_recursive_lock_destroy.
38412
38413 2008-08-14  Bruno Haible  <bruno@clisp.org>
38414
38415         * lib/glthread/lock.h: Renamed from lib/lock.h.
38416         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38417         * lib/glthread/tls.h: Renamed from lib/tls.h.
38418         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38419         * lib/fstrcmp.c: Update includes.
38420         * lib/strsignal.c: Update includes.
38421         * modules/lock (Files, Makefile.am): Update.
38422         (Include): Change to "glthread/lock.h".
38423         * modules/tls (Files, Makefile.am): Update.
38424         (Include): Change to "glthread/tls.h".
38425         * tests/test-lock.c: Update includes.
38426         * tests/test-tls.c: Update includes.
38427         * NEWS: Mention the renamed header files.
38428
38429 2008-08-11  Jim Meyering  <meyering@redhat.com>
38430
38431         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38432
38433 2008-08-11  Eric Blake  <ebb9@byu.net>
38434
38435         test-c-stack: avoid C99-ism
38436         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38437         before statement.
38438         Reported by Alain Guibert.
38439
38440 2008-08-10  Jim Meyering  <meyering@redhat.com>
38441
38442         ensure that return value of uinttostr et al are not ignored
38443         * lib/inttostr.h (__GNUC_PREREQ): Define.
38444         (__attribute_warn_unused_result__): Define.
38445         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38446
38447 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38448
38449         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38450         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38451
38452 2008-08-07  Jim Meyering  <meyering@redhat.com>
38453
38454         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38455
38456         * modules/mkstemp (License): Relicense under LGPLv2+.
38457         * modules/tempname (License): Likewise.
38458
38459 2008-08-06  Bruno Haible  <bruno@clisp.org>
38460
38461         * lib/poll.c (poll): Further micro-optimization.
38462
38463 2008-08-06  Jim Meyering  <meyering@redhat.com>
38464
38465         inet_pton.c: use locale-independent tolower
38466         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38467         (inet_pton6): Use c_tolower rather than tolower.
38468         * modules/inet_pton (Depends-on): Add c-ctype.
38469
38470 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38471
38472         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38473         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38474
38475 2008-08-06  Jim Meyering  <meyering@redhat.com>
38476
38477         * modules/inet_pton (License): Relicense under LGPLv2+.
38478
38479 2008-08-03  Bruno Haible  <bruno@clisp.org>
38480
38481         Additional non-aborting API for lock and tls.
38482         * lib/lock.h: Include <errno.h>.
38483         (glthread_lock_init): New macro/function.
38484         (gl_lock_init): Define as wrapper around glthread_lock_init.
38485         (glthread_lock_lock): New macro/function.
38486         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38487         (glthread_lock_unlock): New macro/function.
38488         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38489         (glthread_lock_destroy): New macro/function.
38490         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38491         (glthread_rwlock_init): New macro/function.
38492         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38493         (glthread_rwlock_rdlock): New macro/function.
38494         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38495         (glthread_rwlock_wrlock): New macro/function.
38496         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38497         (glthread_rwlock_unlock): New macro/function.
38498         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38499         (glthread_rwlock_destroy): New macro/function.
38500         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38501         (glthread_recursive_lock_init): New macro/function.
38502         (gl_recursive_lock_init): Define as wrapper around
38503         glthread_recursive_lock_init.
38504         (glthread_recursive_lock_lock): New macro/function.
38505         (gl_recursive_lock_lock): Define as wrapper around
38506         glthread_recursive_lock_lock.
38507         (glthread_recursive_lock_unlock): New macro/function.
38508         (gl_recursive_lock_unlock): Define as wrapper around
38509         glthread_recursive_lock_unlock.
38510         (glthread_recursive_lock_destroy): New macro/function.
38511         (gl_recursive_lock_destroy): Define as wrapper around
38512         glthread_recursive_lock_destroy.
38513         (glthread_once): New macro/function.
38514         (gl_once): Define as wrapper around glthread_once.
38515         Update function declarations.
38516         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38517         glthread_rwlock_init. Return error code.
38518         (glthread_rwlock_rdlock_multithreaded): Renamed from
38519         glthread_rwlock_rdlock. Return error code.
38520         (glthread_rwlock_wrlock_multithreaded): Renamed from
38521         glthread_rwlock_wrlock. Return error code.
38522         (glthread_rwlock_unlock_multithreaded): Renamed from
38523         glthread_rwlock_unlock. Return error code.
38524         (glthread_rwlock_destroy_multithreaded): Renamed from
38525         glthread_rwlock_destroy. Return error code.
38526         (glthread_recursive_lock_init_multithreaded): Renamed from
38527         glthread_recursive_lock_init. Return error code.
38528         (glthread_recursive_lock_lock_multithreaded): Renamed from
38529         glthread_recursive_lock_lock. Return error code.
38530         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38531         glthread_recursive_lock_unlock. Return error code.
38532         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38533         glthread_recursive_lock_destroy. Return error code.
38534         (glthread_once_call): Make static.
38535         (glthread_once_multithreaded): Renamed from glthread_once.
38536         * lib/tls.h: Include <errno.h>.
38537         (glthread_tls_key_init): New macro/function.
38538         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38539         (glthread_tls_set): New macro/function.
38540         (gl_tls_set): Define as wrapper around glthread_tls_set.
38541         (glthread_tls_key_destroy): New macro/function.
38542         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38543         Update function declarations.
38544         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38545         glthread_tls_get.
38546         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38547
38548 2008-08-04  Eric Blake  <ebb9@byu.net>
38549
38550         gnumakefile: use space, not TAB, outside of targets
38551         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38552
38553 2008-08-02  Jim Meyering  <meyering@redhat.com>
38554
38555         getdate.y: avoid locale-dependent date parsing failure
38556         In Turkish locales, getdate would fail to recognize keywords
38557         containing a lowercase "i".  The solution is not to rely on
38558         locale-sensitive case-conversion.
38559         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38560         (lookup_word): Use c_toupper in place of toupper.
38561         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38562         Reported by Vefa Bicakci <bicave@superonline.com> in
38563         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38564         * modules/getdate (Depends-on): Add c-ctype.
38565
38566 2008-08-02  Bruno Haible  <bruno@clisp.org>
38567
38568         * gnulib-tool (func_import): When updating or creating a .gitignore
38569         file, prepend each added line with a slash, and ignore leading slashes
38570         from the existing lines.
38571         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38572
38573 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38574
38575         Portability fix for GNU make 3.79.1.
38576         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38577         versions do not understand.
38578
38579 2008-08-01  Bruno Haible  <bruno@clisp.org>
38580
38581         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38582         * tests/test-isnanf.h (zero): New variable.
38583         (main): Avoid literal -0.0f.
38584         * tests/test-isnand.h (zero): New variable.
38585         (main): Avoid literal -0.0.
38586         * tests/test-isnanl.h (zero): New variable.
38587         (main): Avoid literal -0.0L.
38588         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38589         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38590         -0.0, -0.0L.
38591         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38592         (test_signbitd): Avoid literal -0.0.
38593         (test_signbitl): Avoid literal -0.0L.
38594         * tests/test-ceilf1.c (zero): New variable.
38595         (main): Avoid literal -0.0f.
38596         * tests/test-ceill.c (zero): New variable.
38597         (main): Avoid literal -0.0L.
38598         * tests/test-floorf1.c (zero): New variable.
38599         (main): Avoid literal -0.0f.
38600         * tests/test-floorl.c (zero): New variable.
38601         (main): Avoid literal -0.0L.
38602         * tests/test-roundf1.c (zero): New variable.
38603         (main): Avoid literal -0.0f.
38604         * tests/test-round1.c (zero): New variable.
38605         (main): Avoid literal -0.0.
38606         * tests/test-roundl.c (zero): New variable.
38607         (main): Avoid literal -0.0L.
38608         * tests/test-truncf1.c (zero): New variable.
38609         (main): Avoid literal -0.0f.
38610         * tests/test-trunc1.c (zero): New variable.
38611         (main): Avoid literal -0.0.
38612         * tests/test-truncl.c (zero): New variable.
38613         (main): Avoid literal -0.0L.
38614         * tests/test-frexp.c (zero): New variable.
38615         (main): Avoid literal -0.0.
38616         * tests/test-frexpl.c (zero): New variable.
38617         (main): Avoid literal -0.0L.
38618         * tests/test-ldexpl.c (zero): New variable.
38619         (main): Avoid literal -0.0L.
38620         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38621         (zerod, zerol): New variables.
38622         (test_function): Avoid literals -0.0, -0.0L.
38623         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38624         (zerod, zerol): New variables.
38625         (test_function): Avoid literals -0.0, -0.0L.
38626         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38627         (zerod, zerol): New variables.
38628         (test_function): Avoid literals -0.0, -0.0L.
38629         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38630         (zerod, zerol): New variables.
38631         (test_function): Avoid literals -0.0, -0.0L.
38632         * tests/test-strtod.c (zero): New variable.
38633         (main): Avoid literal -0.0.
38634         Reported by Jonathan C. Patschke <jp@centtech.com>.
38635
38636 2008-07-31  Jim Meyering  <meyering@redhat.com>
38637
38638         sha256.h: correct definition of SHA224_DIGEST_SIZE
38639         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38640         Reported by Paulie Pena IV <paulie4@gmail.com>.
38641         Define as 224 / 8, rather than as a literal.
38642         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38643         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38644         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38645
38646 2008-07-31  Bruno Haible  <bruno@clisp.org>
38647
38648         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38649         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38650         Reported by Jonathan Patschke <jp@centtech.com>.
38651
38652 2008-07-31  Bruno Haible  <bruno@clisp.org>
38653
38654         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38655         Reported by Paolo Bonzini <bonzini@gnu.org>.
38656
38657 2008-07-30  Eric Blake  <ebb9@byu.net>
38658
38659         test-strtod: allow compilation without -lm
38660         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38661         Reported by Dennis Clarke <blastwave@gmail.com>.
38662
38663 2008-07-28  Jim Meyering  <meyering@redhat.com>
38664
38665         bootstrap: work also when there are no .po files in po/
38666         * build-aux/bootstrap (update_po_files): Complete the change
38667         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38668
38669 2008-07-27  Jim Meyering  <meyering@redhat.com>
38670
38671         * users.txt: Add zile.
38672
38673 2008-07-26  Ben Pfaff  <blp@gnu.org>
38674
38675         Add missing dependencies on new m4/exponent[fdl].m4 files.
38676         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38677         * modules/isnand-nolibm: Add m4/exponentd.m4.
38678         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38679         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38680         m4/isnan[fdl].m4, because the macros actually used moved.
38681         Reported by Jim Meyering.
38682
38683 2008-07-14  Ben Pfaff  <blp@gnu.org>
38684
38685         Add isinf module.
38686         * lib/isinf.c: New file.
38687         * lib/math.in.h: Define isinf macro if we have decided to replace
38688         it.
38689         * m4/isinf.m4: New file.
38690         * m4/math_h.m4: Initialize and substitute variables for isinf
38691         module.
38692         * modules/isinf: New file.
38693         * modules/isinf-tests: New file.
38694         * modules/math: Add substitutions for new module.
38695         * tests/test-isinf.c: New file.
38696         * doc/posix-functions/isinf.texi: Mention new module.
38697         * MODULES.html.sh: Mention new module.
38698
38699 2008-07-14  Ben Pfaff  <blp@gnu.org>
38700
38701         Factor out some macros for use by additional modules.
38702         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38703         exponentf.m4.
38704         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38705         exponentd.m4.
38706         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38707         file exponentl.m4.
38708         * m4/exponentf.m4: New file.
38709         * m4/exponentd.m4: New file.
38710         * m4/exponentl.m4: New file.
38711         * modules/isnanf: Use new file m4/exponentf.m4.
38712         * modules/isnand: Use new file m4/exponentd.m4.
38713         * modules/isnanl: Use new file m4/exponentl.m4.
38714
38715 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38716
38717         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38718         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38719         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38720         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38721
38722         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38723         readlink on platforms without PATH_MAX.
38724
38725 2008-07-21  Eric Blake  <ebb9@byu.net>
38726
38727         Warn, not fail, on stale version.
38728         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38729
38730         Don't allow installation with stale devel version number.
38731         * top/GNUmakefile (_is-install-target): New macro.
38732         (_curr-ver): Forbid installation with stale version number.
38733
38734 2008-07-20  Bruno Haible  <bruno@clisp.org>
38735
38736         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38737         TESTS_ENVIRONMENT.
38738         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38739
38740 2008-07-20  Bruno Haible  <bruno@clisp.org>
38741
38742         * lib/c-stack.h (c_stack_action): Add documentation.
38743         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38744
38745 2008-07-20  Bruno Haible  <bruno@clisp.org>
38746
38747         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38748         * modules/readlink (License): Likewise.
38749
38750 2008-07-17  Eric Blake  <ebb9@byu.net>
38751
38752         * modules/c-stack (Link): Fix typo.
38753
38754         Make c-stack use libsigsegv, when available.
38755         * modules/c-stack (Depends-on): Add libsigsegv.
38756         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38757         needed.
38758         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38759         (segv_handler, overflow_handler, c_stack_action)
38760         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38761         implementation when libsigsegv is available, but only when using
38762         the library is necessary.
38763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38764         comment, explaining why XSI check fails on Linux.
38765         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38766         * tests/test-c-stack2.sh: Tweak skip message.
38767         * NEWS: Document new link-time requirements.
38768
38769 2008-07-16  Eric Blake  <ebb9@byu.net>
38770
38771         c-stack: Expose false positives when not using libsigsegv.
38772         * modules/c-stack-tests (Files): Expand test.
38773         * tests/test-c-stack.c (main): Add means to conditionally trigger
38774         non-overflow SIGSEGV.
38775         * tests/test-c-stack2.sh: New file.
38776
38777 2008-07-14  Bruno Haible  <bruno@clisp.org>
38778
38779         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38780         Reported by Eric Blake.
38781
38782 2008-07-14  Sam Steingold  <sds@gnu.org>
38783             Bruno Haible  <bruno@clisp.org>
38784
38785         New module libsigsegv.
38786         * modules/libsigsegv: New file.
38787         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38788         modifications.
38789         * MODULES.html.sh (Signal handling): New section.
38790
38791 2008-07-14  Bruno Haible  <bruno@clisp.org>
38792
38793         * modules/unictype/ctype-* (Description): Add the word "function".
38794         Improves the resulting doc in MODULES.html.
38795
38796 2008-07-12  Ben Pfaff  <blp@gnu.org>
38797
38798         Add longlong module.
38799         * modules/longlong: New file.
38800
38801 2008-07-12  Bruno Haible  <bruno@clisp.org>
38802
38803         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38804         to empty.
38805
38806 2008-07-10  Ben Pfaff  <blp@gnu.org>
38807
38808         Add isnan module.
38809         * doc/posix-functions/isnan.texi: Mention new module.
38810         * lib/math.in.h: Define isnan macro if we have decided to replace
38811         it.
38812         * m4/isnan.m4: New file.
38813         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38814         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38815         also.
38816         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38817         redundancy.
38818         * m4/math_h.m4: Initialize and substitute variables for isnan
38819         module.
38820         * modules/isnan: New file.
38821         * modules/isnan-tests: New file.
38822         * modules/math: Add substitutions for new module.
38823         * tests/test-isnan.c: New file.
38824         * MODULES.html.sh: Mention new module.
38825
38826 2008-07-10  Ben Pfaff  <blp@gnu.org>
38827
38828         Add isnanf module.
38829         * lib/isnanf.m4: New file.
38830         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38831         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38832         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38833         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38834         * modules/isnanf: New file.
38835         * modules/isnanf-tests: New file.
38836         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38837         files.
38838         * tests/test-isnanf-nolibm.c: factored most of its contents into
38839         new file tests/test-isnanf.h.
38840         * tests/test-isnanf.h: New file.
38841         * tests/test-isnanf.c: New file.
38842         * MODULES.html.sh: Mention new module.
38843         * doc/glibc-functions/isnanf.texi: Mention new module.
38844
38845 2008-07-10  Ben Pfaff  <blp@gnu.org>
38846
38847         Add isnand module.
38848         * lib/isnand.h: New file.
38849         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38850         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38851         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38852         functionality also.
38853         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38854         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38855         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38856         * modules/isnand: New file.
38857         * modules/isnand-tests: New file.
38858         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38859         files.
38860         * tests/test-isnand-nolibm.c: factored most of its contents into
38861         new file tests/test-isnand.h.
38862         * tests/test-isnand.h: New file.
38863         * tests/test-isnand.c: New file.
38864         * MODULES.html.sh: Mention new module.
38865
38866 2008-07-10  Ben Pfaff  <blp@gnu.org>
38867
38868         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38869         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38870         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38871         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38872         * modules/isnanf-nolibm: Update references to renamed files.
38873         * modules/isnand-nolibm: Likewise.
38874         * modules/isnanf-nolibm-tests: Likewise.
38875         * modules/isnand-nolibm-tests: Likewise.
38876         * lib/frexp.c: Likewise.
38877         * lib/isfinite.c: Likewise.
38878         * lib/signbitd.c: Likewise.
38879         * lib/signbitf.c: Likewise.
38880         * lib/vasnprintf.c: Likewise.
38881         * tests/test-ceilf1.c: Likewise.
38882         * tests/test-ceilf2.c: Likewise.
38883         * tests/test-floorf1.c: Likewise.
38884         * tests/test-floorf2.c: Likewise.
38885         * tests/test-frexp.c: Likewise.
38886         * tests/test-round1.c: Likewise.
38887         * tests/test-round2.c: Likewise.
38888         * tests/test-roundf1.c: Likewise.
38889         * tests/test-strtod.c: Likewise.
38890         * tests/test-trunc1.c: Likewise.
38891         * tests/test-trunc2.c: Likewise.
38892         * tests/test-truncf1.c: Likewise.
38893         * tests/test-truncf2.c: Likewise.
38894         * NEWS: Mention the renamed header files.
38895
38896 2008-07-11  Jim Meyering  <meyering@redhat.com>
38897
38898         vc-list-files: make the last-resort awk code more portable
38899         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38900         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38901         does not support it.
38902
38903 2008-07-10  Eric Blake  <ebb9@byu.net>
38904
38905         Work with tar's bootstrap.
38906         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38907         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38908         an m4 comment.
38909
38910 2008-07-09  Jim Meyering  <meyering@redhat.com>
38911
38912         posix-shell.m4: fix typo that made this test malfunction
38913         * m4/posix-shell.m4: Remove capitalization in variable name.
38914
38915 2008-07-08  Bruno Haible  <bruno@clisp.org>
38916
38917         * m4/onceonly.m4: Update comments.
38918         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38919
38920 2008-07-04  Jim Meyering  <meyering@redhat.com>
38921
38922         * users.txt: Add vc-dwim.
38923         (bison, coreutils): Use the gitweb URL.
38924
38925 2008-07-03  Jim Meyering  <meyering@redhat.com>
38926
38927         * users.txt: Add libffcall.  From Sam Steingold.
38928
38929 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38930
38931         getdate.y: do not ignore TZ with relative day, month or year offset
38932         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38933         relative-date-handling, since otherwise, the latter would clobber the
38934         sole output (an updated Start value) of the tz-handling block.
38935         * tests/test-getdate.c: Tests for the fix
38936
38937 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38938
38939         Recognize 'foo_LIBRARIES += libgnu.a'.
38940         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38941         makefile snippet has already specified an installation location,
38942         also using '+='.
38943
38944 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38945
38946         getdate.y: factor out common actions
38947         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38948         Use them in place of open-coded actions.
38949
38950 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38951
38952         Add self-test for getdate module.
38953         * modules/getdate-tests: New file.
38954         * tests/test-getdate.c: New file.
38955
38956 2008-06-29  Bruno Haible  <bruno@clisp.org>
38957
38958         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38959         .gitignore.
38960         Reported by Sylvain Beucler <beuc@beuc.net>.
38961
38962 2008-06-29  Bruno Haible  <bruno@clisp.org>
38963
38964         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38965         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38966
38967 2008-06-29  Bruno Haible  <bruno@clisp.org>
38968
38969         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38970         EXTRA_DIST.
38971         Reported by Sylvain Beucler <beuc@beuc.net>.
38972
38973 2008-06-26  Jim Meyering  <meyering@redhat.com>
38974
38975         make several modules depend on the "open" module
38976         This provides slightly increased consistency when opening-for-write
38977         the name of a non-directory spelled with a trailing slash.
38978         * modules/chdir-safer: Likewise.
38979         * modules/chown: Likewise.
38980         * modules/clean-temp: Likewise.
38981         * modules/copy-file: Likewise.
38982         * modules/fchdir: Likewise.
38983         * modules/fcntl-safer: Likewise.
38984         * modules/pipe: Likewise.
38985         * modules/utime: Likewise.
38986         Prompted by Eric Blake and Bruno Haible.
38987
38988 2008-06-24  Andreas Schwab  <schwab@suse.de>
38989
38990         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38991         literals can be used as initializers for global variables.
38992
38993 2008-06-23  Eric Blake  <ebb9@byu.net>
38994
38995         Make gnulib-cache.m4 easier to diff.
38996         * gnulib-tool (func_import): Allow newlines when reading cached
38997         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38998
38999 2008-06-23  Bruno Haible  <bruno@clisp.org>
39000
39001         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39002         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39003         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39004         m4/signalblocking.m4.
39005         (gl_PREREQ_SIGACTION): Don't invoke it.
39006         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39007         gl_PREREQ_SIG_HANDLER_H.
39008         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39009         Don't check for sigaction here.
39010
39011 2008-06-23  Bruno Haible  <bruno@clisp.org>
39012
39013         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39014         (install_handlers): Don't set the SA_RESETHAND flag.
39015
39016 2008-06-23  Bruno Haible  <bruno@clisp.org>
39017
39018         * m4/sigaction.m4: Comment fixes.
39019         * lib/signal.in.h: Likewise.
39020
39021 2008-06-23  Eric Blake  <ebb9@byu.net>
39022
39023         Fix typo.
39024         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39025
39026         Avoid SA_ namespace.
39027         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39028         Reported by Ralf Wildenhues.
39029
39030         Avoid test failure due to SA_RESTORER.
39031         * tests/test-sigaction.c (SA_MASK): New macro.
39032         (main): Avoid failing due to extension flags being set.
39033         Reported by Jim Meyering.
39034
39035         Revert use of sig-handler.h in sigprocmask.c.
39036         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39037         it requires the existence of struct sigaction.
39038         * lib/sigprocmask.c (handler_t): Restore typedef.
39039         (rpl_signal, old_handlers): Use local type.
39040
39041 2008-06-22  Bruno Haible  <bruno@clisp.org>
39042
39043         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39044         conditionally.
39045         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39046
39047 2008-06-22  Bruno Haible  <bruno@clisp.org>
39048
39049         * doc/posix-functions/siginterrupt.texi: Move note.
39050
39051         * lib/signal.in.h (SA_RESTART): New macro.
39052         * lib/sigaction.c: Update comment.
39053
39054         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39055
39056         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39057         (gl_PREREQ_SIGPROCMASK): Invoke it.
39058         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39059
39060         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39061
39062         * lib/sigprocmask.c: Update a comment.
39063
39064 2008-06-21  Eric Blake  <ebb9@byu.net>
39065
39066         Use sigaction module rather than signal().
39067         * modules/c-stack (Depends-on): Add sigaction.
39068         * modules/fatal-signal (Depends-on): Likewise.
39069         * modules/nanosleep (Depends-on): Likewise.
39070         * modules/sigprocmask (Files): Add sig-handler.h.
39071         * modules/sigaction (Files): Likewise.
39072         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39073         Eggert.
39074         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39075         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39076         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39077         (init_fatal_signals): Likewise.
39078         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39079         (siginterrupt): Delete fallback.
39080         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39081         instead.
39082         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39083         siginterrupt.
39084
39085         New module sigaction, for mingw.
39086         * modules/sigaction: New module...
39087         * modules/sigaction-tests: ...and its test.
39088         * m4/sigaction.m4: New file.
39089         * lib/sigaction.c: Likewise.
39090         * tests/test-sigaction.c: Likewise.
39091         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39092         * modules/signal (Makefile.am): Likewise.
39093         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39094         needed.
39095         * doc/posix-headers/signal.texi (signal.h): Mention provided
39096         types.
39097         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39098         that sigaction is preferable.
39099         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39100         module.
39101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39102         sigaction.
39103
39104         Improve robustness of sigprocmask by overriding signal.
39105         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39106         is in use.
39107         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39108         (SIGKILL, SIGSTOP): Provide fallbacks.
39109         (rpl_signal): Implement.
39110         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39111         signal can be called inside handlers.
39112
39113         Fix nanosleep module on mingw.
39114         * modules/nanosleep (Depends-on): Add sys_select.
39115         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39116
39117         Fix licensing of sigprocmask.
39118         * modules/raise (License): Relicense as LGPL.
39119
39120 2008-06-21  Bruno Haible  <bruno@clisp.org>
39121
39122         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39123         result if it contains question marks.
39124         Reported by Michael Geng <linux@michaelgeng.de>.
39125
39126 2008-06-19  Bruno Haible  <bruno@clisp.org>
39127
39128         Fix CVS-ism.
39129         * doc/gnulib.texi: Include updated-stamp.texi.
39130         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39131         (updated-stamp.texi): New rule.
39132         (gnulib.info): Depend on it.
39133         * doc/.gitignore: Add updated-stamp.texi.
39134         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39135
39136 2008-06-19  Bruno Haible  <bruno@clisp.org>
39137
39138         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39139         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39140
39141 2008-06-19  Eric Blake  <ebb9@byu.net>
39142
39143         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39144         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39145         Reported by Stepan Kasal.
39146
39147 2008-06-18  Bruno Haible  <bruno@clisp.org>
39148
39149         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39150         Reported by Eric Blake.
39151
39152 2008-06-18  Eric Blake  <ebb9@byu.net>
39153
39154         Work around cygwin 1.5.25 strsignal bug.
39155         * tests/test-strsignal.c: Allow for const char *.
39156         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39157
39158 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39159
39160         * users.txt: Update URL to article and add author/date
39161         information.
39162
39163 2008-06-17  Bruno Haible  <bruno@clisp.org>
39164
39165         New macro gl_DISABLE_THREADS.
39166         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39167         if the user did not pass --enable-threads or --disable-threads option.
39168         (gl_DISABLE_THREADS): New macro.
39169         Reported by Eric Blake <ebb9@byu.net>.
39170
39171 2008-06-17  Bruno Haible  <bruno@clisp.org>
39172
39173         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39174         when the macro ignores it.
39175         Based on a patch by Eric Blake <ebb9@byu.net>.
39176
39177 2008-06-17  Bruno Haible  <bruno@clisp.org>
39178
39179         * modules/tls (License): Change to LGPLv2+.
39180         Reported by Eric Blake.
39181
39182 2008-06-17  Eric Blake  <ebb9@byu.net>
39183
39184         Simplify c-stack prerequisites.
39185         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39186         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39187         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39188         check.
39189         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39190         <sys/resource.h>.
39191
39192         Move c-stack test into testsuite.
39193         * modules/c-stack-tests: New file.
39194         * lib/c-stack.c [DEBUG]: Move test program...
39195         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39196         fail test if sigaltstack is lacking.
39197         * tests/test-c-stack.sh: New driver file.
39198
39199 2008-06-16  Eric Blake  <ebb9@byu.net>
39200
39201         Use raise module consistently.
39202         * modules/fatal-signal (Depends-on): Add raise.
39203         * modules/sigprocmask (Depends-on): Likewise.
39204         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39205         * lib/sigprocmask.c (sigprocmask): Likewise.
39206         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39207         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39208
39209         Fix compliance bug in sigpending.
39210         * lib/sigprocmask.c (sigpending): Return pending array via
39211         parameter, not return value.
39212
39213 2008-06-14  Eric Blake  <ebb9@byu.net>
39214
39215         Improve obstack-printf test code.
39216         * tests/test-obstack-printf.c (test_function): Fix comment, and
39217         simplify usage of obstack_* in macros.  Add a test for coverage.
39218         Reported by Bruno Haible.
39219
39220 2008-06-14  Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39223         array size as a constant, not as a const variable.
39224         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39225         AC_USE_SYSTEM_EXTENSIONS.
39226         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39227         Test whether the obstack_printf function actually exists.
39228         * modules/obstack-printf (Depends-on): Add extensions.
39229         (Include): Remove obstack.h.
39230         * modules/obstack-printf-posix (Depends-on): Add extensions.
39231         (Include): Remove obstack.h.
39232
39233 2008-06-13  Eric Blake  <ebb9@byu.net>
39234
39235         Add obstack-printf and obstack-printf-posix modules.
39236         * modules/obstack-printf: New file.
39237         * modules/obstack-printf-posix: Likewise.
39238         * MODULES.html.sh (Misc): Mention them.
39239         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39240         Likewise.
39241         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39242         Likewise.
39243         * modules/stdio (Makefile.am): Accomodate new modules.
39244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39245         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39246         Declare.
39247         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39248         functions.
39249         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39250         (gl_REPLACE_OBSTACK_PRINTF): New macros
39251         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39252         * tests/test-obstack-printf.c: New file.
39253         * modules/obstack-printf-tests: Likewise.
39254         * modules/obstack-printf-posix-tests: Likewise.
39255
39256 2008-06-11  Bruno Haible  <bruno@clisp.org>
39257
39258         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39259         * lib/open.c: Include errno.h.
39260         (open): Fail when attempting to write to a file that has a trailing
39261         slash.
39262         * tests/test-open.c (main): Test against trailing slash bug.
39263         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39264
39265 2008-06-10  Bruno Haible  <bruno@clisp.org>
39266
39267         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39268         for $? to work inside the trap command, with various /bin/sh-s.
39269         * tests/test-vc-list-files-cvs.sh: Likewise.
39270
39271 2008-06-10  Bruno Haible  <bruno@clisp.org>
39272
39273         * lib/acl-internal.h: Don't include gettext.h here.
39274         * lib/set-mode-acl.c: Include gettext.h here.
39275         * lib/copy-acl.c: Likewise.
39276
39277 2008-06-10  Bruno Haible  <bruno@clisp.org>
39278
39279         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39280         * lib/wait-process.c (wait_subprocess): Likewise.
39281         * lib/execute.h (execute): Add termsigp argument.
39282         * lib/execute.c (execute): Likewise.
39283         * lib/csharpcomp.c (compile_csharp_using_pnet,
39284         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39285         * lib/csharpexec.c (execute_csharp_using_pnet,
39286         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39287         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39288         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39289         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39290         is_jikes_present): Update.
39291         * lib/javaexec.c (execute_java_class): Update.
39292         * lib/javaversion.c (execute_and_read_line): Update.
39293         * NEWS: Document the changes.
39294         Reported by Eric Blake.
39295
39296 2008-06-10  Eric Blake  <ebb9@byu.net>
39297
39298         Add missing include.
39299         * tests/test-strstr.c (includes): Add <signal.h>.
39300         * tests/test-strcasestr.c (includes): Likewise.
39301         * tests/test-memmem.c (includes): Likewise.
39302
39303 2008-06-10  Bruno Haible  <bruno@clisp.org>
39304
39305         * lib/wait-process.c (wait_subprocess): Add an assertion.
39306
39307 2008-06-10  Bruno Haible  <bruno@clisp.org>
39308
39309         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39310
39311 2008-06-10  Bruno Haible  <bruno@clisp.org>
39312
39313         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39314         using alarm().
39315         * tests/test-strcasestr.c (main): Likewise.
39316         * tests/test-strstr.c (main): Likewise.
39317
39318 2008-06-09  Bruno Haible  <bruno@clisp.org>
39319
39320         Work around the Solaris 10 ACE ACLs ABI change.
39321         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39322         declare if ACL_NO_TRIVIAL is present.
39323         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39324         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39325         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39326         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39327         define if ACL_NO_TRIVIAL is present.
39328         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39329         and use the current ABI.
39330         (file_has_acl): Use same #if condition as elsewhere.
39331         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39332         in use, and use the current ABI.
39333         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39334         Reported by Jim Meyering.
39335
39336 2008-06-09  Eric Blake  <ebb9@byu.net>
39337
39338         Work around environments that (stupidly) ignore SIGALRM.
39339         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39340         before using alarm().
39341         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39342         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39343         Reported by Ian Beckwith <ianb@erislabs.net>.
39344
39345         Produce autobuild blurb earlier in log.
39346         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39347
39348 2008-06-09  Jim Meyering  <meyering@redhat.com>
39349         and OndÅ™ej Vašík  <ovasik@redhat.com>
39350
39351         utimens.c: correct kernel bug work-around
39352         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39353         failure, not success, and the kernel bug we're trying to work
39354         around affects not just the utimensat call, but also the fallback
39355         futimens call.
39356         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39357         not success.
39358         [HAVE_FUTIMENS]: Use the same work-around, here.
39359
39360 2008-06-09  Jim Meyering  <meyering@redhat.com>
39361
39362         add more guards around definition of ACE_-related code
39363         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39364         ALLOW and ACE_OWNER are also defined.
39365
39366 2008-06-08  Bruno Haible  <bruno@clisp.org>
39367
39368         * lib/acl-internal.h: Add me as co-author.
39369         * lib/file-has-acl.c: Likewise.
39370         * lib/set-mode-acl.c: Likewise.
39371         * lib/copy-acl.c: Likewise.
39372
39373 2008-06-08  Bruno Haible  <bruno@clisp.org>
39374
39375         Add support for AIX ACLs.
39376         * lib/acl-internal.h (acl_nontrivial): New declaration.
39377         * lib/file-has-acl.c (acl_nontrivial): New function.
39378         (file_has_acl): Add implementation using AIX 4 ACL API.
39379         * lib/set-mode-acl.c (qset_acl): Likewise.
39380         * lib/copy-acl.c (qcopy_acl): Likewise.
39381
39382 2008-06-08  Bruno Haible  <bruno@clisp.org>
39383
39384         Add support for HP-UX ACLs.
39385         * lib/acl-internal.h (acl_nontrivial): New declaration.
39386         * lib/file-has-acl.c (acl_nontrivial): New function.
39387         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39388         * lib/set-mode-acl.c (qset_acl): Likewise.
39389         * lib/copy-acl.c (qcopy_acl): Likewise.
39390
39391 2008-06-08  Bruno Haible  <bruno@clisp.org>
39392
39393         Add support for Cygwin ACLs.
39394         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39395         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39396         the chmod_or_fchmod call.
39397         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39398
39399 2008-06-08  Bruno Haible  <bruno@clisp.org>
39400
39401         Fix bug with setuid modes in Solaris 10+ code.
39402         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39403         succeeded, when the mode contains some special bits.
39404
39405 2008-06-08  Bruno Haible  <bruno@clisp.org>
39406
39407         Add support for Solaris 7..10 ACLs.
39408         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39409         declarations.
39410         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39411         functions.
39412         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39413         * lib/set-mode-acl.c (qset_acl): Likewise.
39414         * lib/copy-acl.c (qcopy_acl): Likewise.
39415
39416 2008-06-08  Bruno Haible  <bruno@clisp.org>
39417
39418         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39419         declaration.
39420         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39421         (acl_access_nontrivial): Remove MacOS X case.
39422         (file_has_acl): Use acl_extended_nontrivial.
39423         * lib/copy-acl.c (qcopy_acl): Likewise.
39424
39425 2008-06-08  Bruno Haible  <bruno@clisp.org>
39426
39427         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39428
39429 2008-06-08  Jim Meyering  <meyering@redhat.com>
39430
39431         * modules/acl (Maintainer): Add Bruno Haible.
39432
39433 2008-06-07  Bruno Haible  <bruno@clisp.org>
39434
39435         Improve support for Tru64 ACLs.
39436         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39437         ACL on OSF/1.
39438
39439 2008-06-07  Bruno Haible  <bruno@clisp.org>
39440
39441         Add support for MacOS X ACLs.
39442         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39443         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39444         * lib/set-mode-acl.c (qset_acl): Likewise.
39445         * lib/copy-acl.c (qcopy_acl): Likewise.
39446
39447 2008-06-07  Bruno Haible  <bruno@clisp.org>
39448
39449         Fix memory leak introduced on 2008-05-22.
39450         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39451         use.
39452
39453 2008-06-07  Bruno Haible  <bruno@clisp.org>
39454
39455         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39456         to construct an empty ACL.
39457
39458 2008-06-07  Bruno Haible  <bruno@clisp.org>
39459
39460         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39461         precisely.
39462         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39463
39464 2008-06-07  Bruno Haible  <bruno@clisp.org>
39465
39466         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39467         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39468
39469 2008-06-07  Bruno Haible  <bruno@clisp.org>
39470
39471         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39472         regardless of POSIX.
39473         * doc/posix-functions/_longjmp.texi: Likewise.
39474         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39475         SystemV platform in this case.
39476
39477 2008-06-06  Eric Blake  <ebb9@byu.net>
39478
39479         Document abort() bugs.
39480         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39481
39482         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39483         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39484         sigsetjmp.
39485         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39486         siglongjmp, but only as a macro.
39487         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39488         is obsolete.
39489         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39490
39491         Tweak documentation to cover cygwin argz bugs.
39492         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39493         argz bug fix; no code change needed since no cygwin releases
39494         occurred between the last fix and the bug being tested.
39495         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39496         module and recently fixed cygwin bugs.
39497         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39498         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39499         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39500         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39501         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39502         Likewise.
39503         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39504         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39505         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39506         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39507         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39508         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39509         Likewise.
39510
39511         Avoid gcc warning on cygwin.
39512         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39513         !ACL_NO_TRIVIAL]: Avoid unused variable.
39514
39515 2008-06-05  Eric Blake  <ebb9@byu.net>
39516
39517         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39518         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39519         git-version-gen fails to come up with a version.
39520         Reported by Simon Josefsson.
39521
39522 2008-06-05  Jim Meyering  <meyering@redhat.com>
39523             Paul Eggert  <eggert@cs.ucla.edu>
39524
39525         utimens.c: work around a probable Linux kernel bug
39526         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39527         appears to be a kernel bug that causes utimensat to return 280
39528         instead of 0, indicating success.
39529
39530 2008-06-04  Bruno Haible  <bruno@clisp.org>
39531
39532         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39533         2008-06-01 commit.
39534
39535 2008-06-04  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39538         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39539         (file_has_acl): Use it. Save errno afterwards.
39540         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39541
39542 2008-06-03  Bruno Haible  <bruno@clisp.org>
39543
39544         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39545         draft code. Simplify #ifs.
39546         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39547         Put Solaris code after POSIX-draft code. Fix comments regarding
39548         Solaris 10, HP-UX. Mention Cygwin.
39549         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39550
39551 2008-06-03  Eric Blake  <ebb9@byu.net>
39552
39553         Provide fallback for older kernels.
39554         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39555         Provide runtime fallback if kernel lacks support.
39556         Reported by Mike Frysinger.
39557
39558 2008-06-02  Bruno Haible  <bruno@clisp.org>
39559
39560         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39561         it exists.
39562
39563 2008-06-02  Bruno Haible  <bruno@clisp.org>
39564
39565         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39566         * lib/copy-acl.c (qcopy_acl): Update comment.
39567
39568 2008-06-02  Bruno Haible  <bruno@clisp.org>
39569
39570         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39571         like ACL APIs.
39572
39573 2008-06-02  Bruno Haible  <bruno@clisp.org>
39574
39575         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39576         * tests/test-set-mode-acl.sh: Likewise.
39577         * tests/test-copy-acl.sh: Likewise.
39578         * tests/test-copy-file.sh: Likewise.
39579
39580 2008-06-02  Bruno Haible  <bruno@clisp.org>
39581
39582         * tests/test-file-has-acl.sh: Remove unused code.
39583
39584 2008-06-01  Bruno Haible  <bruno@clisp.org>
39585
39586         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39587         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39588         messages.
39589         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39590
39591 2008-06-01  Bruno Haible  <bruno@clisp.org>
39592
39593         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39594         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39595         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39596         APIs.
39597         * modules/acl-tests (configure.ac): Remove tests now contained in
39598         m4/acl.m4.
39599
39600 2008-06-02  Jim Meyering  <meyering@redhat.com>
39601
39602         announce-gen: use a better key-server host name
39603         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39604         it may be more consistently reliable.  Suggested by Werner Koch
39605         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39606
39607 2008-06-01  Bruno Haible  <bruno@clisp.org>
39608
39609         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39610         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39611
39612 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39613
39614         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39615
39616 2008-06-01  Bruno Haible  <bruno@clisp.org>
39617
39618         New ACL tests.
39619         * tests/test-file-has-acl.sh: New file.
39620         * tests/test-file-has-acl.c: New file.
39621         * tests/test-set-mode-acl.sh: New file.
39622         * tests/test-set-mode-acl.c: New file.
39623         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39624         * tests/test-copy-acl.c: New file.
39625         * modules/acl-tests: New file, based on modules/copy-file-tests.
39626         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39627         (Depends-on): Add acl-tests.
39628         (configure.ac): Remove checks.
39629         (Makefile.am): Don't create test-sameacls program here any more.
39630
39631 2008-06-01  Bruno Haible  <bruno@clisp.org>
39632
39633         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39634         * tests/test-sameacls.c: Include progname.h.
39635         (main): Invoke set_program_name. Portability fixes for MacOS X,
39636         Solaris, HP-UX.
39637
39638 2008-06-01  Bruno Haible  <bruno@clisp.org>
39639
39640         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39641         function.
39642         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39643
39644 2008-06-01  Bruno Haible  <bruno@clisp.org>
39645
39646         * modules/rpmatch (Depends-on): Add strdup.
39647
39648 2008-06-01  Bruno Haible  <bruno@clisp.org>
39649
39650         * lib/pipe.c: Include unistd-safer.h.
39651         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39652         * modules/pipe (Depends-on): Add unistd-safer.
39653
39654 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39655
39656         * modules/autobuild (configure.ac): Call AB_INIT.
39657
39658 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39659
39660         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39661         Suggested by Bruno Haible <bruno@clisp.org>.
39662
39663 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39664
39665         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39666         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39667         <bruno@clisp.org>.
39668
39669 2008-05-29  Eric Blake  <ebb9@byu.net>
39670
39671         Prefer new POSIX 200x interfaces over futimesat.
39672         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39673         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39674         when available.
39675         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39676
39677 2008-05-28  Bruno Haible  <bruno@clisp.org>
39678
39679         * modules/stpcpy (License): Change to LGPLv2+.
39680         Requested by David Lutterkort <dlutter@redhat.com>.
39681
39682 2008-05-27  Bruno Haible  <bruno@clisp.org>
39683
39684         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39685         current mingw.
39686         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39687
39688 2008-05-27  Bruno Haible  <bruno@clisp.org>
39689
39690         * modules/iconv_open (Link): New section, from module 'iconv'.
39691         * modules/striconv (Link): Likewise.
39692         * modules/striconveh (Link): Likewise.
39693         * modules/xstriconv (Link): Likewise.
39694         * modules/unicodeio (Link): Likewise.
39695         * modules/propername (Link): Likewise.
39696         Reported by Jim Meyering.
39697
39698 2008-05-26  Jim Meyering  <meyering@redhat.com>
39699
39700         sha256: do not artificially restrict buffer length to be < 2^32
39701         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39702         uint32_t to size_t.
39703         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39704         to match.
39705
39706         avoid unaligned access errors, e.g., on sparc
39707         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39708         direct access through a possibly-unaligned uint64* pointer.
39709         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39710         direct access through a possibly-unaligned uint32* pointer.
39711         Prompted by this patch from Tom "spot" Callaway:
39712         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39713
39714         sha512.c: fix typo in comment
39715         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39716
39717 2008-05-25  Bruno Haible  <bruno@clisp.org>
39718
39719         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39720         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39721         (Makefile.am): Update lib_SOURCES.
39722
39723 2008-05-25  Bruno Haible  <bruno@clisp.org>
39724
39725         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39726
39727 2008-05-25  Jim Meyering  <meyering@redhat.com>
39728
39729         useless-if-before-free: freed expr may have white-space differences
39730         * build-aux/useless-if-before-free: Recognize cases in which the
39731         freed expression differs from the tested one in embedded white
39732         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39733         $1 was used, so we can't make any regexp shy.  Improved tests now
39734         detect this.
39735
39736         useless-if-before-free: accept white space in the expression.
39737         * build-aux/useless-if-before-free: For now, any white space
39738         in the expression must be identical in the free argument.
39739
39740         useless-if-before-free: efficiency tweak
39741         * build-aux/useless-if-before-free: Make the expression-matching
39742         regexp "shy".
39743         Make the *outer* regexp shy, not the expr-matching one.
39744
39745         update code-in-comment to accept cast of free arg
39746         * build-aux/useless-if-before-free: Update regexp.
39747
39748 2008-05-25  Bruno Haible  <bruno@clisp.org>
39749
39750         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39751         * modules/copy-file-tests (Files, Makefile.am): Update.
39752         * tests/test-copy-file.c (func_test_copy): Update.
39753
39754 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39755
39756         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39757
39758 2008-05-23  Bruno Haible  <bruno@clisp.org>
39759
39760         Improve support for ACLs on OSF/1.
39761         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39762         Remove fallback for unknown flavors of ACLs.
39763
39764 2008-05-22  Bruno Haible  <bruno@clisp.org>
39765
39766         Add support for ACLs on OSF/1.
39767         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39768         replacements.
39769         (acl_free_text): New macro fallback.
39770         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39771         acl_free.
39772         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39773         acl_free_text function. Require AC_C_INLINE.
39774
39775 2008-05-22  Bruno Haible  <bruno@clisp.org>
39776
39777         Make copy_acl work on MacOS X 10.5.
39778         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39779         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39780         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39781         If MODE_INSIDE_ACL, don't assume that every system has the same text
39782         representation for ACLs as FreeBSD.
39783         * lib/copy-acl.c (copy_acl): Add support for platforms with
39784         !MODE_INSIDE_ACL.
39785         * lib/file-has-acl.c (file_has_acl): Likewise.
39786         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39787         FreeBSD, MacOS X, or IRIX, respectively.
39788
39789 2008-05-22  Bruno Haible  <bruno@clisp.org>
39790
39791         * lib/acl.h: Don't include <sys/acl.h>.
39792         (GETACLCNT): Move fallback to lib/acl-internal.h.
39793         * lib/acl-internal.h: Include <sys/acl.h> here.
39794         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39795
39796 2008-05-22  Bruno Haible  <bruno@clisp.org>
39797
39798         Split off copy_acl function to separate file.
39799         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39800         * lib/acl.c (copy_acl): Moved function to separate file.
39801         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39802         * modules/acl (Files): Add lib/copy-acl.c.
39803         (Makefiles.am): Augment lib_SOURCES.
39804
39805 2008-05-22  Bruno Haible  <bruno@clisp.org>
39806
39807         * modules/copy-file-tests: New file.
39808         * tests/test-copy-file.sh: New file.
39809         * tests/test-copy-file.c: New file.
39810         * tests/test-copy-file-sameacls.c: New file.
39811
39812 2008-05-22  Eric Blake  <ebb9@byu.net>
39813
39814         Avoid gcc warning.
39815         * tests/test-memcmp.c (main): Pass NULL indirectly.
39816
39817 2008-05-21  Bruno Haible  <bruno@clisp.org>
39818
39819         Add reference doc about ACLs.
39820         * doc/acl-resources.txt: New file.
39821         * doc/acl-cygwin.txt: New file.
39822
39823 2008-05-21  Bruno Haible  <bruno@clisp.org>
39824
39825         Avoid one more warning from gcc.
39826         * lib/vasnprintf.c (IF_LINT): Update comments.
39827         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39828
39829 2008-05-21  Jim Meyering  <meyering@redhat.com>
39830
39831         avoid a warning from gcc
39832         * lib/vasnprintf.c (IF_LINT): Define.
39833         (scale10_round_decimal_long_double):
39834         Use it to avoid a "may be used uninitialized" warning.
39835         (scale10_round_decimal_double): Likewise.
39836
39837 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39838
39839         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39840         declared.
39841
39842 2008-05-20  Bruno Haible  <bruno@clisp.org>
39843
39844         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39845         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39846
39847 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39848
39849         * modules/memcmp-tests: New file.
39850         * tests/test-memcmp.c: New file.
39851
39852 2008-05-19  Bruno Haible  <bruno@clisp.org>
39853
39854         * modules/propername (Notice, configure.ac): Put quoted "..." into
39855         --keyword option.
39856         * lib/propername.h: Update comments accordingly.
39857         Reported by Eric Blake.
39858
39859 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39860
39861         * modules/getpass-gnu (Depends-on): Add fseeko.
39862
39863 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39864
39865         * modules/base64-tests: New file.
39866
39867 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39868
39869         * lib/base64.c (base64_decode_ctx): If a decode context structure
39870         was passed in use it to ignore newlines.  If a context structure
39871         was _not_ passed in, continue to treat newlines as garbage (this
39872         is the historical behavior).  Formerly base64_decode.
39873         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39874         takes a decode context structure.
39875         * lib/base64.h (base64_decode): Macro for four-argument calls.
39876         (base64_decode_alloc): Likewise.
39877         * lib/base64.c (base64_decode_ctx): If a decode context structure
39878         was passed in use it to ignore newlines.  If a context structure
39879         was _not_ passed in, continue to treat newlines as garbage (this
39880         is the historical behavior).  Formerly base64_decode.
39881         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39882         takes a decode context structure.
39883         * lib/base64.h (base64_decode): Macro for four-argument calls.
39884         (base64_decode_alloc): Likewise.
39885
39886 2008-05-19  Jim Meyering  <meyering@redhat.com>
39887
39888         avoid a warning from gcc
39889         * lib/trim.c (IF_LINT): Define.
39890         (trim2): Use it to avoid a "may be used uninitialized" warning.
39891
39892         Fix doc typo.
39893         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39894
39895 2008-05-19  Bruno Haible  <bruno@clisp.org>
39896
39897         * doc/glibc-functions/getpass.texi: Document limits of other
39898         implementations.
39899
39900 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39901             Bruno Haible <bruno@clisp.org>
39902
39903         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39904
39905 2008-05-18  Bruno Haible  <bruno@clisp.org>
39906
39907         * modules/propername: New file, from GNU gettext.
39908         * lib/propername.h: New file, from GNU gettext.
39909         * lib/propername.c: New file, from GNU gettext.
39910         * MODULES.html.sh (Internationalization functions): Add propername.
39911
39912 2008-05-16  Jim Meyering  <meyering@redhat.com>
39913             Bruno Haible  <bruno@clisp.org>
39914
39915         Avoid some warnings from "gcc -Wshadow".
39916         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39917
39918 2008-05-15  Eric Blake  <ebb9@byu.net>
39919
39920         Extend previous patch to cygwin 1.7.0.
39921         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39922         fast implementation in cygwin >= 1.7.0.
39923         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39925
39926 2008-05-15  Bruno Haible  <bruno@clisp.org>
39927
39928         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39929         implementation in glibc >= 2.9.
39930         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39931         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39932
39933 2008-05-15  Bruno Haible  <bruno@clisp.org>
39934
39935         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39936         (Unicode string functions): Add unilbrk/*.
39937         Reported by Karl Berry.
39938
39939 2008-05-15  Eric Blake  <ebb9@byu.net>
39940
39941         Fix violation of <stdbool.h> replacement in regex.
39942         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39943         * lib/regexec.c (re_search_internal): Likewise.
39944         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39945
39946 2008-05-15  Jim Meyering  <meyering@redhat.com>
39947
39948         avoid distracting test output when git or cvs is not found
39949         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39950         * tests/test-vc-list-files-git.sh: Likewise.
39951
39952 2008-05-15  Eric Blake  <ebb9@byu.net>
39953
39954         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39955         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39956         glibc version.
39957         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39958         * doc/posix-functions/strstr.texi (strstr): Likewise.
39959         * lib/str-two-way.h (MAX): Sychronize with glibc.
39960
39961 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39962
39963         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39964         opr.ctx_type.
39965         (calc_first): Initialize constraint field.
39966         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39967         Fix grammar.
39968         (duplicate_node): Merge constraint field for all node types.
39969         (calc_eclosure_iter): Look at constraint field for all node types.
39970         * lib/regex_internal.c (create_cd_newstate): Don't look at
39971         opr.ctx_type.
39972
39973 2008-05-14  Bruno Haible  <bruno@clisp.org>
39974
39975         Help GCC to do better code generation.
39976         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39977         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39978         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39979         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39980         Declare with attribute 'malloc' if supported.
39981
39982 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39983
39984         use "echo STR|wc -c" rather than unportable "expr length STR"
39985         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39986         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39987
39988 2008-05-14  Jim Meyering  <meyering@redhat.com>
39989
39990         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39991         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39992         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39993         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39994         via Collin Lasse.
39995
39996 2008-05-14  Eric Blake  <ebb9@byu.net>
39997
39998         Avoid quadratic growth in gl_LIBSOURCES.
39999         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40000         Suggested by Bruno Haible.
40001
40002         Test xmemdup0.
40003         * modules/xmemdup0-tests: New file.
40004         * tests/test-xmemdup0.c: Likewise.
40005
40006 2008-05-13  Eric Blake  <ebb9@byu.net>
40007
40008         Split xmemdup0 into its own module.
40009         * modules/xmemdup0: New file.
40010         * lib/xmemdup0.h: Likewise.
40011         * lib/xmemdup0.c: Likewise.
40012         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40013         * lib/xalloc.h (xmemdup0): Remove.
40014         * lib/xmalloc.c (xmemdup0): Likewise.
40015
40016 2008-05-13  Eric Blake  <ebb9@byu.net>
40017             Bruno Haible  <bruno@clisp.org>
40018
40019         Reduce number of forks required during autoconf.
40020         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40021         and gl_LIBSOURCES_DIR.
40022         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40023         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40024         m4_syscmd per file.
40025         <m4_foreach_w>: Move...
40026         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40027
40028 2008-05-13  Eric Blake  <ebb9@byu.net>
40029
40030         * gnulib-tool: Fix various comment typos.
40031
40032 2008-05-12  Bruno Haible  <bruno@clisp.org>
40033
40034         Tailor the linebreaking algorithm.
40035         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40036
40037 2008-05-12  Bruno Haible  <bruno@clisp.org>
40038
40039         Update to Unicode 5.0.0.
40040         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40041         LBP_JV, LBP_JT. Redistribute values.
40042         (unilbrk_table): Change size.
40043         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40044         Unicode TR#14 rev. 22.
40045         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40046         LBP_JV, LBP_JT. Redistribute values.
40047         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40048         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40049         Update.
40050         * lib/unilbrk/lbrkprop1.h: Regenerated.
40051         * lib/unilbrk/lbrkprop2.h: Regenerated.
40052         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40053         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40054         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40055         Likewise.
40056         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40057         Likewise.
40058         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40059         result.
40060         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40061         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40062         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40063         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40064         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40065         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40066
40067 2008-05-11  Bruno Haible  <bruno@clisp.org>
40068
40069         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40070
40071 2008-05-11  Bruno Haible  <bruno@clisp.org>
40072
40073         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40074         * modules/unilbrk/gen-lbrk: New file.
40075
40076 2008-05-11  Bruno Haible  <bruno@clisp.org>
40077
40078         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40079         * m4/sha512.m4 (gl_SHA512): Likewise.
40080
40081 2008-05-11  Jim Meyering  <meyering@redhat.com>
40082
40083         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40084         * modules/crypto/sha256: New file.
40085         * modules/crypto/sha512: Likewise.
40086         * lib/sha256.c: Likewise.
40087         * lib/sha256.h: Likewise.
40088         * lib/sha512.c: Likewise.
40089         * lib/sha512.h: Likewise.
40090         * lib/u64.h: Likewise.
40091         * m4/sha256.m4: Likewise.
40092         * m4/sha512.m4: Likewise.
40093         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40094
40095 2008-05-10  Bruno Haible  <bruno@clisp.org>
40096
40097         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40098         (Input/Output <stdio.h>): Add xprintf.
40099         (Signal handling <signal.h>): Add strsignal.
40100         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40101         (Core language properties): Add func.
40102         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40103         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40104         strings.
40105         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40106         (Input/output): New section.
40107         (File system functions): Add openat-die, stat-macros.
40108         (Networking functions): Add sockets.
40109         (Unicode string functions): Add unictype/*.
40110         (Support for building libraries and executables): Add gperf.
40111         (Support for building documentation): Add agpl-3.0.
40112         (Misc): Add nocrash.
40113
40114 2008-05-10  Bruno Haible  <bruno@clisp.org>
40115
40116         * modules/unictype/gen-ctype: New file.
40117
40118 2008-05-10  Jim Meyering  <meyering@redhat.com>
40119
40120         Make chdir-safer.c more efficient on a system with no symlinks.
40121         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40122         also if ELOOP is zero.  Suggested by Bruno Haible.
40123
40124         Make chdir-safer.c slightly safer.
40125         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40126         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40127
40128         Avoid compile failure on systems without ELOOP (like mingw).
40129         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40130         Reported by Bruno Haible.
40131
40132 2008-05-10  Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40135         (is_utf8_encoding): Use a case-insensitive comparison.
40136         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40137         streq.
40138
40139 2008-05-10  Bruno Haible  <bruno@clisp.org>
40140
40141         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40142         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40143         * lib/unilbrk/ulc-common.h (iconv_string_length,
40144         iconv_string_keeping_offsets): Remove declarations.
40145         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40146         Don't include <iconv.h>, streq.h, xsize.h.
40147         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40148         conversion.
40149         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40150         <iconv.h>, streq.h, xsize.h.
40151         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40152         conversion.
40153         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40154         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40155         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40156         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40157
40158 2008-05-10  Bruno Haible  <bruno@clisp.org>
40159
40160         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40161         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40162
40163         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40164         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40165
40166         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40167         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40168
40169         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40170         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40171
40172         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40173         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40174
40175         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40176         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40177
40178         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40179         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40180
40181         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40182         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40183
40184 2008-05-10  Bruno Haible  <bruno@clisp.org>
40185
40186         Split up 'linebreak' module.
40187         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40188         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40189         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40190         modifications.
40191         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40192         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40193         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40194         lib/linebreak.c.
40195         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40196         lib/linebreak.c.
40197         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40198         lib/linebreak.c.
40199         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40200         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40201         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40202         lib/linebreak.c.
40203         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40204         lib/linebreak.c.
40205         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40206         lib/linebreak.c.
40207         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40208         lib/linebreak.c.
40209         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40210         lib/linebreak.c.
40211         * modules/unilbrk/base: New file.
40212         * modules/unilbrk/tables: New file.
40213         * modules/unilbrk/u8-possible-linebreaks: New file.
40214         * modules/unilbrk/u16-possible-linebreaks: New file.
40215         * modules/unilbrk/u32-possible-linebreaks: New file.
40216         * modules/unilbrk/ulc-common: New file.
40217         * modules/unilbrk/ulc-possible-linebreaks: New file.
40218         * modules/unilbrk/u8-width-linebreaks: New file.
40219         * modules/unilbrk/u16-width-linebreaks: New file.
40220         * modules/unilbrk/u32-width-linebreaks: New file.
40221         * modules/unilbrk/ulc-width-linebreaks: New file.
40222         * lib/linebreak.h: Remove file.
40223         * lib/linebreak.c: Remove file.
40224         * m4/linebreak.m4: Remove file.
40225         * modules/linebreak: Remove file.
40226         * NEWS: Mention the changes.
40227
40228 2008-05-09  Eric Blake  <ebb9@byu.net>
40229
40230         Add xmemdup0.
40231         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40232         implementation.
40233         * lib/xmalloc.c (xmemdup0): New C implementation.
40234
40235 2008-05-08  Bruno Haible  <bruno@clisp.org>
40236
40237         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40238
40239 2008-05-07  Eric Blake  <ebb9@byu.net>
40240
40241         Support cross-compilation of <wctype.h>.
40242         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40243         AC_CACHE_CHECK.
40244
40245 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40246
40247         * build-aux/vc-list-files: Add support for bzr.
40248
40249 2008-05-03  Jim Meyering  <meyering@redhat.com>
40250
40251         avoid failed assertion with tight malloc
40252         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40253
40254 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40255
40256         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40257         are needed from arpa/inet.h.
40258         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40259         Reported by Bruno Haible.
40260
40261 2008-05-02  Jim Meyering  <meyering@redhat.com>
40262
40263         avoid compilation error on FreeBSD 6
40264         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40265
40266 2008-05-01  Jim Meyering  <meyering@redhat.com>
40267
40268         useless-if-before-free: correct --help's exit status description
40269         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40270         for one or more matches, etc.  Reported by Bruno Haible.
40271
40272         vc-list-files: make the stand-alone gnulib test work
40273         * modules/vc-list-files-tests (configure.ac):
40274         Define and AC_SUBST abs_aux_dir.
40275         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40276         $(abs_top_srcdir) to each script and having each of them
40277         duplicate the work of setting PATH, set PATH here, using
40278         the new variable, abs_aux_dir instead.
40279         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40280         * tests/test-vc-list-files-git.sh: Likewise.
40281         Reported by Bruno Haible.
40282
40283 2008-05-01  Bruno Haible  <bruno@clisp.org>
40284
40285         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40286         reallocation. Rename 'done' to 'found_delimiter'.
40287
40288 2008-05-01  Jim Meyering  <meyering@redhat.com>
40289
40290         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40291         * build-aux/vc-list-files: Use `...`, not $(...).
40292
40293 2008-04-30  Jim Meyering  <meyering@redhat.com>
40294
40295         add tests for vc-list-files
40296         * modules/vc-list-files-tests: New module.
40297         * tests/test-vc-list-files-cvs.sh: New file.
40298         * tests/test-vc-list-files-git.sh: New file.
40299
40300         avoid a warning from gcc
40301         * lib/getndelim2.c (IF_LINT): Define.
40302         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40303
40304         vc-list-files: work properly with build-aux/cvsu, too
40305         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40306         to all cvs-based clauses.
40307
40308         vc-list-files: work properly in the CVS+awk case, too
40309         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40310
40311         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40312         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40313         take more than one file argument, so .  Add quotes, just in case $dir
40314         ever contains a shell meta-character.  Prompted by Soren Hansen in
40315         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40316
40317 2008-04-29  Eric Blake  <ebb9@byu.net>
40318
40319         Optimize getndelim2 to use block operations when possible.
40320         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40321         freadseek, and memchr2.
40322         * lib/getndelim2.c (getndelim2): Use them for block reads.
40323
40324 2008-04-29  Bruno Haible  <bruno@clisp.org>
40325
40326         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40327         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40328         * modules/inet_ntop (Depends-on): Add extensions.
40329         * modules/inet_pton (Depends-on): Likewise.
40330         Reported by Simon Josefsson.
40331
40332 2008-04-29  Jim Meyering  <meyering@redhat.com>
40333
40334         When the is more than one match in a block, match all of them.
40335         * build-aux/useless-if-before-free: Iterate through each block
40336         until there are no more matches.
40337
40338         Fix broken useless-if-before-free script.
40339         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40340         the expression to match cast of argument to free-like function.
40341
40342 2008-04-29  Eric Blake  <ebb9@byu.net>
40343
40344         Use new header.
40345         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40346
40347 2008-04-29  Jim Meyering  <meyering@redhat.com>
40348
40349         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40350         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40351         by gnulib to exist and to declare e.g., inet_ntop.
40352         Don't include "inet_ntop.h", now removed.
40353
40354         * m4/arpa_inet_h.m4: Remove trailing blanks.
40355
40356 2008-04-29  Eric Blake  <ebb9@byu.net>
40357
40358         Silence valgrind on safe reads beyond potential array bounds.
40359         * lib/rawmemchr.valgrind: New file.
40360         * lib/strchrnul.valgrind: Likewise.
40361         * modules/rawmemchr (Files): Distribute new file.
40362         * modules/strchrnul (Files): Likewise.
40363         Suggested by Bruno Haible.
40364
40365 2008-04-29  Bruno Haible  <bruno@clisp.org>
40366
40367         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40368         (inet_ntop, inet_pton): Change portability warning's wording.
40369         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40370         Invoke gl_CHECK_NEXT_HEADERS.
40371         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40372         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40373         set ARPA_INET_H.
40374         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40375         * modules/arpa_inet (Description): No longer only for systems that
40376         lack it.
40377         (Depends-on): Add include_next.
40378         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40379         HAVE_ARPA_INET_H.
40380
40381 2008-04-29  Jim Meyering  <meyering@redhat.com>
40382
40383         * modules/mkdir (License): Re-license as LGPLv2+.
40384
40385 2008-04-29  Bruno Haible  <bruno@clisp.org>
40386
40387         * modules/rawmemchr (Maintainer): Set to Eric.
40388         * modules/strchrnul (Maintainer): Likewise.
40389
40390 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40391
40392         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40393         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40394
40395         * modules/arpa_inet (arpa/inet.h): Use them.
40396
40397 2008-04-28  Eric Blake  <ebb9@byu.net>
40398
40399         Test getndelim2.
40400         * modules/getndelim2-tests: New file.
40401         * tests/test-getndelim2.c: Likewise.
40402         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40403         stream.
40404         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40405
40406         * MODULES.html.sh: Document new module.
40407
40408 2008-04-20  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/c-stack.c (die): Use raise.
40411         * modules/c-stack (Depends-on): Add raise.
40412
40413 2008-04-28  Bruno Haible  <bruno@clisp.org>
40414
40415         Expect rpmatch to be declared.
40416         * lib/yesno.c (rpmatch): Remove declaration.
40417
40418         Declare rpmatch.
40419         * lib/stdlib.in.h (rpmatch): New declaration.
40420         * lib/rpmatch.c: Include <stdlib.h> first.
40421         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40422         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40423         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40424         HAVE_RPMATCH.
40425         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40426         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40427         (Include): Set to <stdlib.h>.
40428         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40429         HAVE_RPMATCH.
40430         * NEWS: Document the change.
40431
40432 2008-04-28  Bruno Haible  <bruno@clisp.org>
40433
40434         Change rpmatch to use nl_langinfo when appropriate.
40435         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40436         (N_): New macro.
40437         (localized_pattern): New function/macro.
40438         (try): Remove match, nomatch arguments. Copy the pattern into safe
40439         memory before caching it.
40440         (rpmatch): Use localized_pattern. Add translator comments.
40441         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40442         Suggested by Eric Blake.
40443         * modules/rpmatch (Depends-on): Add stdbool.
40444
40445 2008-04-28  Eric Blake  <ebb9@byu.net>
40446
40447         Add rawmemchr module, matching glibc.
40448         * modules/string (Makefile.am): New indicator.
40449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40450         * lib/string.in.h (rawmemchr): Declare when appropriate.
40451         * modules/rawmemchr: New file.
40452         * m4/rawmemchr.m4: Likewise.
40453         * lib/rawmemchr.c: Likewise.
40454         * modules/rawmemchr-tests: Likewise.
40455         * tests/test-rawmemchr.c: Likewise.
40456         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40457         module.
40458         * modules/strchrnul (Depends-on): Add rawmemchr.
40459         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40460
40461         Whitespace cleanup.
40462         * tests/test-strchrnul.c: Reindent.
40463         * lib/strchrnul.c: Likewise.
40464
40465         Optimize and test strchrnul.
40466         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40467         * modules/strchrnul-tests: New file.
40468         * tests/test-strchrnul.c: Likewise.
40469
40470         Remove intprops dependency.
40471         * modules/memchr (Depends-on): Remove intprops.
40472         * modules/memrchr (Depends-on): Likewise.
40473         * modules/memchr2 (Depends-on): Likewise.
40474         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40475         * lib/memrchr.c (__memrchr): Likewise.
40476         * lib/memrchr2.c (memchr2): Likewise.
40477         Reported by Simon Josefsson.
40478
40479 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40480
40481         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40482         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40483
40484 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40485
40486         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40487
40488         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40489
40490         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40491
40492         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40493         declarations.
40494         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40495
40496         * m4/inet_pton.m4: Don't check for header files.
40497
40498         * m4/inet_ntop.m4: Don't check for header files.
40499
40500 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40501
40502         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40503         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40504         trigger for cygwin).
40505         Reported by Bruno Haible  <bruno@clisp.org>.
40506
40507 2008-04-28  Bruno Haible  <bruno@clisp.org>
40508
40509         * doc/posix-functions/strdup.texi: Mention mingw problem.
40510
40511 2008-04-27  Bruno Haible  <bruno@clisp.org>
40512
40513         * modules/stat-time-tests (Depends-on): Add sleep.
40514         * tests/test-stat-time.c (force_unlink): New function.
40515         (cleanup): Use it.
40516         (test_mtime): Remove the ctime related tests.
40517         (test_ctime): New function, containing the ctime related tests.
40518         (main): Call test_ctime, except on native Windows platforms.
40519
40520 2008-04-27  Bruno Haible  <bruno@clisp.org>
40521
40522         * lib/rpmatch.c (rpmatch): Add some comments.
40523         Reported by James Youngman <jay@gnu.org>.
40524
40525 2008-04-27  Bruno Haible  <bruno@clisp.org>
40526
40527         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40528         quiet NaNs.
40529
40530 2008-04-27  Bruno Haible  <bruno@clisp.org>
40531
40532         Make test-yesno.sh work on mingw.
40533         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40534         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40535         (main): Set stdin to binary mode.
40536         * modules/yesno-tests (Depends-on): Add binary-io.
40537
40538 2008-04-27  Bruno Haible  <bruno@clisp.org>
40539
40540         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40541         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40542         argument that lie outside the IEEE 854 domain.
40543         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40544         (gl_ISFINITE): Use it.
40545         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40546
40547 2008-04-27  Bruno Haible  <bruno@clisp.org>
40548
40549         Allow local renaming in config.h.
40550         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40551
40552 2008-04-27  Bruno Haible  <bruno@clisp.org>
40553
40554         * lib/memchr.c (__memchr): Change type of 'i'.
40555         * lib/memchr2.c (memchr2): Likewise.
40556
40557 2008-04-26  Eric Blake  <ebb9@byu.net>
40558         and Bruno Haible  <bruno@clisp.org>
40559
40560         Optimize and test memrchr.
40561         * modules/memrchr (Depends-on): Add intprops.
40562         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40563         * modules/memrchr-tests: New file.
40564         * tests/test-memrchr.c: New file.
40565
40566 2008-04-26  Bruno Haible  <bruno@clisp.org>
40567
40568         Add tentative support for DragonFly BSD.
40569         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40570         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40571         fp.
40572         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40573         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40574         * lib/fpurge.c (fpurge): Likewise.
40575         * lib/freadable.c (freaadable): Likewise.
40576         * lib/freadahead.c (freadahead): Likewise.
40577         * lib/freading.c (freading): Likewise.
40578         * lib/freadptr.c (freadptr): Likewise.
40579         * lib/freadseek.c (freadptrinc): Likewise.
40580         * lib/fseeko.c (fseeko): Likewise.
40581         * lib/fseterr.c (fseterr): Likewise.
40582         * lib/fwritable.c (fwritable): Likewise.
40583         * lib/fwriting.c (fwriting): Likewise.
40584
40585 2008-04-26  Bruno Haible  <bruno@clisp.org>
40586
40587         * lib/stdio-impl.h: New file.
40588         * lib/fbufmode.c: Include stdio-impl.h.
40589         (fbufmode): Use fp_, remove redundant #defines.
40590         * lib/fflush.c: Include stdio-impl.h.
40591         (clear_ungetc_buffer): Remove redundant #defines.
40592         * lib/fpurge.c: Include stdio-impl.h.
40593         (fpurge): Remove redundant #defines.
40594         * lib/freadable.c: Include stdio-impl.h.
40595         (freadable): Remove redundant #defines.
40596         * lib/freadahead.c: Include stdio-impl.h.
40597         (freadahead): Remove redundant #defines.
40598         * lib/freading.c: Include stdio-impl.h.
40599         (freading): Remove redundant #defines.
40600         * lib/freadptr.c: Include stdio-impl.h.
40601         (freadptr): Remove redundant #defines.
40602         * lib/freadseek.c: Include stdio-impl.h.
40603         (freadptrinc): Remove redundant #defines.
40604         * lib/fseeko.c: Include stdio-impl.h.
40605         (rpl_fseeko): Remove redundant #defines.
40606         * lib/fseterr.c: Include stdio-impl.h.
40607         (fseterr): Remove redundant #defines.
40608         * lib/fwritable.c: Include stdio-impl.h.
40609         (fwritable: Remove redundant #defines.
40610         * lib/fwriting.c: Include stdio-impl.h.
40611         (fwriting): Remove redundant #defines.
40612         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40613         * modules/fflush (Files): Likewise.
40614         * modules/fpurge (Files): Likewise.
40615         * modules/freadable (Files): Likewise.
40616         * modules/freadahead (Files): Likewise.
40617         * modules/freading (Files): Likewise.
40618         * modules/freadptr (Files): Likewise.
40619         * modules/freadseek (Files): Likewise.
40620         * modules/fseeko (Files): Likewise.
40621         * modules/fseterr (Files): Likewise.
40622         * modules/fwritable (Files): Likewise.
40623         * modules/fwriting (Files): Likewise.
40624
40625 2008-04-26  Bruno Haible  <bruno@clisp.org>
40626
40627         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40628         restore_seek_optimization, update_fpos_cache): New functions, extracted
40629         from rpl_fflush.
40630         (rpl_fflush): Use them.
40631         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40632         (gl_REPLACE_FFLUSH): Use it.
40633
40634 2008-04-26  Bruno Haible  <bruno@clisp.org>
40635
40636         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40637         on Solaris.
40638         * tests/test-xstrtoimax.sh: Likewise.
40639         * tests/test-xstrtoumax.sh: Likewise.
40640         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40641
40642 2008-04-26  Bruno Haible  <bruno@clisp.org>
40643
40644         * modules/memchr-tests: New file.
40645         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40646
40647 2008-04-26  Eric Blake  <ebb9@byu.net>
40648             Bruno Haible  <bruno@clisp.org>
40649
40650         * lib/memchr.c: Include intprops.h.
40651         (__memchr): Optimize parallel detection of matching bytes. Rename local
40652         variables. Add explanatory comments.
40653
40654 2008-04-26  Bruno Haible  <bruno@clisp.org>
40655
40656         Fix module 'memchr', broken since 2000-10-28.
40657         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40658
40659 2008-04-26  Bruno Haible  <bruno@clisp.org>
40660
40661         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40662         comments.
40663
40664 2008-04-25  Eric Blake  <ebb9@byu.net>
40665
40666         Use native fstatat on cygwin 1.7.0.
40667         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40668         first.
40669
40670 2008-04-23  Eric Blake  <ebb9@byu.net>
40671
40672         Improve memchr2 performance.
40673         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40674         NUL bytes.
40675         * modules/memchr2 (Depends-on): Use intprops.h.
40676
40677 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40678
40679         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40680         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40681         <blp@cs.stanford.edu>.
40682
40683 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40684
40685         * lib/arpa_inet.in.h: New file.
40686
40687         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40688         (Makefile.am): Sed in substitute header file.
40689
40690         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40691         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40692
40693         * modules/inet_ntop (configure.ac): Use
40694         gl_ARPA_INET_MODULE_INDICATOR.
40695
40696         * modules/inet_pton (configure.ac): Use
40697         gl_ARPA_INET_MODULE_INDICATOR.
40698
40699 2008-04-22  Jim Meyering  <meyering@redhat.com>
40700
40701         * modules/verify (License): Re-license as LGPLv2+.
40702
40703 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40704
40705         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40706         parameter to void* as per POSIX standard (MinGW uses char*).
40707
40708 2008-04-21  Bruno Haible  <bruno@clisp.org>
40709
40710         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40711         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40712         Define to replacements if REPLACE_ISWCNTRL is 1.
40713         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40714         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40715         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40716         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40717         what it fixes.
40718         * doc/posix-functions/iswalpha.texi: Likewise.
40719         * doc/posix-functions/iswblank.texi: Likewise.
40720         * doc/posix-functions/iswcntrl.texi: Likewise.
40721         * doc/posix-functions/iswdigit.texi: Likewise.
40722         * doc/posix-functions/iswgraph.texi: Likewise.
40723         * doc/posix-functions/iswlower.texi: Likewise.
40724         * doc/posix-functions/iswprint.texi: Likewise.
40725         * doc/posix-functions/iswpunct.texi: Likewise.
40726         * doc/posix-functions/iswspace.texi: Likewise.
40727         * doc/posix-functions/iswupper.texi: Likewise.
40728         * doc/posix-functions/iswxdigit.texi: Likewise.
40729         Reported by Alain Guibert.
40730
40731 2008-04-21  Bruno Haible  <bruno@clisp.org>
40732
40733         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40734         Patch by Alain Guibert.
40735
40736 2008-04-21  Bruno Haible  <bruno@clisp.org>
40737
40738         Fix test failures on mingw.
40739         * tests/test-xstrtol.c (print_no_progname): New function.
40740         (main): Install it in error_print_progname hook.
40741         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40742         * tests/test-xstrtoimax.sh: Likewise.
40743         * tests/test-xstrtoumax.sh: Likewise.
40744
40745 2008-04-21  Bruno Haible  <bruno@clisp.org>
40746
40747         Fix test failure on mingw.
40748         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40749
40750 2008-04-21  Bruno Haible  <bruno@clisp.org>
40751
40752         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40753         Actually assign a value.
40754
40755 2008-04-20  Bruno Haible  <bruno@clisp.org>
40756
40757         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40758         take 2.
40759         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40760         'canonicalize-lgpl' module is also used.
40761         * lib/canonicalize-lgpl.c: Undo last change.
40762         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40763
40764 2008-04-20  Bruno Haible  <bruno@clisp.org>
40765
40766         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40767         config.h. Provide _mkdir based fallback for mingw.
40768         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40769         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40770         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40771         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40772         rather than defining mkdir in config.h.
40773         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40774         (gl_SYS_STAT_H_DEFAULTS): New macro.
40775         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40776         HAVE_IO_H any more.
40777         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40778         HAVE_DECL_MKDIR and HAVE_IO_H.
40779
40780 2008-04-20  Bruno Haible  <bruno@clisp.org>
40781
40782         * lib/isapipe.c: Port to native Windows platforms.
40783
40784 2008-04-20  Bruno Haible  <bruno@clisp.org>
40785
40786         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40787
40788 2008-04-21  Eric Blake  <ebb9@byu.net>
40789
40790         Work around preprocessors that don't handle UINTMAX_MAX.
40791         * lib/memchr2.c (memchr2): Avoid embedded #if.
40792         Reported by Alain Guibert, fix suggested by Bruno Haible.
40793
40794 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40795
40796         * doc/posix-functions/strftime.texi (strftime): Explain better
40797         Windows incompatibility.  Suggested by Micah Cowan
40798         <micah@cowan.name>.
40799
40800 2008-04-20  Bruno Haible  <bruno@clisp.org>
40801
40802         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40803         unistr/u8-mblen.
40804
40805 2008-04-20  Bruno Haible  <bruno@clisp.org>
40806
40807         Fix test failure on platforms with non-GNU iconv.
40808         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40809         (U_TO_U8): Use it, rather than u16_to_u8.
40810         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40811         units at the end of the input string.
40812         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40813
40814 2008-04-20  Bruno Haible  <bruno@clisp.org>
40815
40816         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40817         when the resulting length is 0.
40818         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40819
40820 2008-04-20  Bruno Haible  <bruno@clisp.org>
40821
40822         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40823         works.
40824         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40825
40826 2008-04-20  Bruno Haible  <bruno@clisp.org>
40827
40828         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40829         * modules/tsearch-tests (configure.ac): Test for initstate function.
40830
40831 2008-04-20  Bruno Haible  <bruno@clisp.org>
40832
40833         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40834         for nlink_t if missing.
40835         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40836
40837 2008-04-19  Bruno Haible  <bruno@clisp.org>
40838
40839         Work around snprintf bug on Linux libc5.
40840         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40842         gl_SNPRINTF_SIZE1.
40843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40844         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40845         that test failed.
40846         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40847         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40848         * modules/snprintf (Files): Add m4/printf.m4.
40849         * modules/vsnprintf (Files): Likewise.
40850         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40851         * doc/posix-functions/vsnprintf.texi: Likewise.
40852
40853 2008-04-19  Bruno Haible  <bruno@clisp.org>
40854
40855         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40856         from 0.0058 to less than 10^-7.
40857
40858 2008-04-19  Bruno Haible  <bruno@clisp.org>
40859
40860         Fix rounding when a precision is given.
40861         * lib/vasnprintf.c (is_borderline): New function.
40862         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40863         9...9x.
40864         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40865         %e, %g.
40866         * tests/test-vasprintf-posix.c (test_function): Likewise.
40867         * tests/test-snprintf-posix.h (test_function): Likewise.
40868         * tests/test-sprintf-posix.h (test_function): Likewise.
40869         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40870         * tests/test-printf-posix.h (test_function): Likewise.
40871         * tests/test-printf-posix.output: Update.
40872         Reported by John Darrington <john@darrington.wattle.id.au> via
40873         Ben Pfaff <blp@cs.stanford.edu>.
40874
40875 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40876
40877         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40878         Suggested by Bruno Haible <bruno@clisp.org>.
40879
40880 2008-04-17  Bruno Haible  <bruno@clisp.org>
40881
40882         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40883         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40884         implementation.
40885         Patch by Bruce Merry <bmerry@gmail.com>.
40886
40887 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40888
40889         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40890         doesn't work under Windows.
40891
40892 2008-04-16  Bruno Haible  <bruno@clisp.org>
40893
40894         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40895         New macros.
40896         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40897         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40898         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40899         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40900         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40901         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40902         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40903         macros.
40904         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40905         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40906         Northern Sotho, Uighur.
40907
40908 2008-04-16  Bruno Haible  <bruno@clisp.org>
40909
40910         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40911         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40912         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40913         Reported by Daniel Bergström <daniel@octocode.com>.
40914
40915 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40916             Bruno Haible  <bruno@clisp.org>
40917
40918         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40919         function.
40920         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40921         New functions, mostly extracted from gl_locale_name_default.
40922         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40923
40924 2008-04-16  Eric Blake  <ebb9@byu.net>
40925
40926         Adjust strtod detection to catch glibc 2.7 bug.
40927         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40928         Reported by John Gatewood Ham.
40929
40930 2008-04-16  Bruno Haible  <bruno@clisp.org>
40931
40932         Add tentative support for Linux libc5.
40933         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40934         * lib/fpurge.c (fpurge): Likewise.
40935         * lib/freadable.c (freadable): Likewise.
40936         * lib/freadahead.c (freadahead): Likewise.
40937         * lib/freading.c (freading): Likewise.
40938         * lib/freadptr.c (freadptr): Likewise.
40939         * lib/freadseek.c (freadptrinc): Likewise.
40940         * lib/fseeko.c (rpl_fseeko): Likewise.
40941         * lib/fseterr.c (fseterr): Likewise.
40942         * lib/fwritable.c (fwritable): Likewise.
40943         * lib/fwriting.c (fwriting): Likewise.
40944         Reported by Alain Guibert <alguibert+bts@free.fr>.
40945
40946 2008-04-15  Bruno Haible  <bruno@clisp.org>
40947
40948         * modules/mathl (configure.ac): Define module indicator.
40949
40950 2008-04-15  Bruno Haible  <bruno@clisp.org>
40951
40952         * lib/logl.c (logl): Remove unused variables.
40953
40954 2008-04-15  Bruno Haible  <bruno@clisp.org>
40955
40956         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40957         fails.
40958
40959 2008-04-15  Bruno Haible  <bruno@clisp.org>
40960
40961         * lib/trim.c (trim2): Fix argument of isspace() macro.
40962
40963 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40964
40965         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40966         to 0.
40967         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40968
40969 2008-04-14  Bruno Haible  <bruno@clisp.org>
40970
40971         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40972         AC_LANG_PROGRAM argument.
40973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40974         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40976         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40977         * m4/math_h.m4 (gl_MATH_H): Likewise.
40978         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40979         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40980         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40981         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40982         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40983         * m4/regex.m4 (gl_REGEX): Likewise.
40984         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40985         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40986         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40987         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40989         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40990         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40991         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40992
40993 2008-04-14  Jim Meyering  <meyering@redhat.com>
40994
40995         test-strtod: fix typos: s/abs/fabs/
40996         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40997
40998 2008-04-13  Bruno Haible  <bruno@clisp.org>
40999
41000         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41001         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41002         module is also used and while not building the reloc-wrapper.
41003
41004 2008-04-13  Bruno Haible  <bruno@clisp.org>
41005
41006         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41007
41008 2008-04-13  Bruno Haible  <bruno@clisp.org>
41009
41010         Fix AIX compilation failure introduced on 2008-04-02.
41011         * tests/test-frexp.c (exp): Undefine before redefining.
41012         * tests/test-frexpl.c (exp): Likewise.
41013
41014 2008-04-13  Bruno Haible  <bruno@clisp.org>
41015
41016         Work around a HP-UX stdio bug.
41017         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41018         * tests/test-ftello.c (main): Likewise.
41019         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41020         * doc/posix-functions/ftello.texi: Likewise.
41021
41022 2008-04-13  Bruno Haible  <bruno@clisp.org>
41023
41024         Make test-signbit pass on HP-UX/hppa.
41025         * tests/test-signbit.c (minus_zerol): New variable.
41026         (test_signbitl): Use it.
41027
41028 2008-04-13  Bruno Haible  <bruno@clisp.org>
41029
41030         Make truncl work on OSF/1 4.0.
41031         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41032         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41033         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41035         HAVE_DECL_TRUNCL.
41036         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41037         HAVE_DECL_TRUNCL.
41038         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41039
41040 2008-04-13  Bruno Haible  <bruno@clisp.org>
41041
41042         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41043
41044 2008-04-13  Bruno Haible  <bruno@clisp.org>
41045
41046         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41047         expression, so as to avoid HP-UX 11 cc compiler bug.
41048
41049 2008-04-13  Bruno Haible  <bruno@clisp.org>
41050
41051         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41052
41053 2008-04-13  Bruno Haible  <bruno@clisp.org>
41054
41055         * lib/git-merge-changelog.c: Remove empty declaration outside of
41056         functions.
41057
41058 2008-04-13  Bruno Haible  <bruno@clisp.org>
41059
41060         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41061
41062 2008-04-13  Bruno Haible  <bruno@clisp.org>
41063
41064         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41065         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41066         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41067         also if it exists but lacks definitions of the SHUT_* macros.
41068         * modules/sys_socket (Description): Update.
41069         Reported by Elbert Pol <e.pol@chello.nl>.
41070
41071 2008-04-13  Bruno Haible  <bruno@clisp.org>
41072
41073         * lib/localcharset.c (OS2): Don't redefine if already defined.
41074         Reported by Elbert Pol <e.pol@chello.nl>.
41075
41076 2008-04-13  Bruno Haible  <bruno@clisp.org>
41077
41078         * lib/binary-io.h [__EMX__]: Include <io.h>.
41079         Reported by Elbert Pol <e.pol@chello.nl>.
41080
41081 2008-04-12  Bruno Haible  <bruno@clisp.org>
41082
41083         * lib/fpucw.h: Enable the definitions also for x86_64.
41084         Needed for NetBSD/x86_64.
41085         Reported by Thomas Klausner <tk@giga.or.at>.
41086
41087 2008-04-12  Bruno Haible  <bruno@clisp.org>
41088
41089         * tests/test-strtod.c: Include isnand.h.
41090         (main): Use isnand instead of isnan.
41091         Reported by Jim Meyering.
41092
41093 2008-04-12  Bruno Haible  <bruno@clisp.org>
41094
41095         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41096         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41097
41098 2008-04-12  Jim Meyering  <meyering@redhat.com>
41099
41100         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41101
41102 2008-04-12  Bruno Haible  <bruno@clisp.org>
41103
41104         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41105         Reported by Elbert Pol <e.pol@chello.nl>.
41106
41107 2008-04-12  Eric Blake  <ebb9@byu.net>
41108
41109         Work around Solaris 10 math.h bug.
41110         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41111         (gl_MATH_H_DEFAULTS): Set up default.
41112         * modules/math (Makefile.am): Replace new indicators.
41113         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41114         * tests/test-math.c (main): Test this.
41115         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41116         * doc/posix-headers/math.texi (math.h): Mention bug.
41117         Reported by Nelson H. F. Beebe and Jim Meyering.
41118
41119 2008-04-11  Bruno Haible  <bruno@clisp.org>
41120
41121         Adapt to future versions of Apple GCC.
41122         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41123         Reported by Peter O'Gorman <peter@pogma.com>.
41124
41125 2008-04-11  Bruno Haible  <bruno@clisp.org>
41126
41127         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41128
41129 2008-04-11  Bruno Haible  <bruno@clisp.org>
41130
41131         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41132
41133         * modules/getaddrinfo-tests (Makefile.am): Define
41134         test_getaddrinfo_LDADD.
41135
41136 2008-04-11  Bruno Haible  <bruno@clisp.org>
41137
41138         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41139         (init): Fix syntax error.
41140         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41141         is declared.
41142
41143 2008-04-11  Bruno Haible  <bruno@clisp.org>
41144
41145         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41146         * modules/glob (Depends-on): Add stdbool.
41147
41148 2008-04-11  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/trim.c: Include <string.h>.
41151
41152 2008-04-11  Eric Blake  <ebb9@byu.net>
41153
41154         Avoid compile failure on OS/2.
41155         * lib/regex_internal.h (internal_function): Disable optimization
41156         on OS/2 (__EMX__), where it caused compiler error.
41157         Reported by Elbert Pol.
41158
41159 2008-04-11  Bruno Haible  <bruno@clisp.org>
41160
41161         Flush the standard error stream before aborting. Needed on mingw.
41162         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41163         * tests/test-array_list.c (ASSERT): Likewise.
41164         * tests/test-array_oset.c (ASSERT): Likewise.
41165         * tests/test-avltree_list.c (ASSERT): Likewise.
41166         * tests/test-avltree_oset.c (ASSERT): Likewise.
41167         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41168         * tests/test-binary-io.c (ASSERT): Likewise.
41169         * tests/test-byteswap.c (ASSERT): Likewise.
41170         * tests/test-c-ctype.c (ASSERT): Likewise.
41171         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41172         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41173         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41174         * tests/test-c-strstr.c (ASSERT): Likewise.
41175         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41176         * tests/test-canonicalize.c (ASSERT): Likewise.
41177         * tests/test-carray_list.c (ASSERT): Likewise.
41178         * tests/test-ceilf1.c (ASSERT): Likewise.
41179         * tests/test-ceilf2.c (ASSERT): Likewise.
41180         * tests/test-ceill.c (ASSERT): Likewise.
41181         * tests/test-count-one-bits.c (ASSERT): Likewise.
41182         * tests/test-fbufmode.c (ASSERT): Likewise.
41183         * tests/test-fflush2.c (ASSERT): Likewise.
41184         * tests/test-floorf1.c (ASSERT): Likewise.
41185         * tests/test-floorf2.c (ASSERT): Likewise.
41186         * tests/test-floorl.c (ASSERT): Likewise.
41187         * tests/test-fopen.c (ASSERT): Likewise.
41188         * tests/test-fpending.c (ASSERT): Likewise.
41189         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41190         * tests/test-fpurge.c (ASSERT): Likewise.
41191         * tests/test-freadable.c (ASSERT): Likewise.
41192         * tests/test-freadahead.c (ASSERT): Likewise.
41193         * tests/test-freading.c (ASSERT): Likewise.
41194         * tests/test-freadptr.c (ASSERT): Likewise.
41195         * tests/test-freadptr2.c (ASSERT): Likewise.
41196         * tests/test-freadseek.c (ASSERT): Likewise.
41197         * tests/test-freopen.c (ASSERT): Likewise.
41198         * tests/test-frexp.c (ASSERT): Likewise.
41199         * tests/test-frexpl.c (ASSERT): Likewise.
41200         * tests/test-fseek.c (ASSERT): Likewise.
41201         * tests/test-fseeko.c (ASSERT): Likewise.
41202         * tests/test-fstrcmp.c (ASSERT): Likewise.
41203         * tests/test-ftell.c (ASSERT): Likewise.
41204         * tests/test-ftello.c (ASSERT): Likewise.
41205         * tests/test-func.c (ASSERT): Likewise.
41206         * tests/test-fwritable.c (ASSERT): Likewise.
41207         * tests/test-fwriting.c (ASSERT): Likewise.
41208         * tests/test-getdelim.c (ASSERT): Likewise.
41209         * tests/test-getline.c (ASSERT): Likewise.
41210         * tests/test-i-ring.c (ASSERT): Likewise.
41211         * tests/test-iconv-utf.c (ASSERT): Likewise.
41212         * tests/test-iconv.c (ASSERT): Likewise.
41213         * tests/test-isfinite.c (ASSERT): Likewise.
41214         * tests/test-isnand.c (ASSERT): Likewise.
41215         * tests/test-isnanf.c (ASSERT): Likewise.
41216         * tests/test-isnanl.h (ASSERT): Likewise.
41217         * tests/test-ldexpl.c (ASSERT): Likewise.
41218         * tests/test-linked_list.c (ASSERT): Likewise.
41219         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41220         * tests/test-localename.c (ASSERT): Likewise.
41221         * tests/test-lseek.c (ASSERT): Likewise.
41222         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41223         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41224         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41225         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41226         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41227         * tests/test-mbschr.c (ASSERT): Likewise.
41228         * tests/test-mbscspn.c (ASSERT): Likewise.
41229         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41230         * tests/test-mbspbrk.c (ASSERT): Likewise.
41231         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41232         * tests/test-mbsrchr.c (ASSERT): Likewise.
41233         * tests/test-mbsspn.c (ASSERT): Likewise.
41234         * tests/test-mbsstr1.c (ASSERT): Likewise.
41235         * tests/test-mbsstr2.c (ASSERT): Likewise.
41236         * tests/test-mbsstr3.c (ASSERT): Likewise.
41237         * tests/test-memchr2.c (ASSERT): Likewise.
41238         * tests/test-memmem.c (ASSERT): Likewise.
41239         * tests/test-open.c (ASSERT): Likewise.
41240         * tests/test-printf-frexp.c (ASSERT): Likewise.
41241         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41242         * tests/test-printf-posix.c (ASSERT): Likewise.
41243         * tests/test-quotearg.c (ASSERT): Likewise.
41244         * tests/test-rbtree_list.c (ASSERT): Likewise.
41245         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41246         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41247         * tests/test-round1.c (ASSERT): Likewise.
41248         * tests/test-roundf1.c (ASSERT): Likewise.
41249         * tests/test-roundl.c (ASSERT): Likewise.
41250         * tests/test-signbit.c (ASSERT): Likewise.
41251         * tests/test-sleep.c (ASSERT): Likewise.
41252         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41253         * tests/test-snprintf.c (ASSERT): Likewise.
41254         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41255         * tests/test-stat-time.c (ASSERT): Likewise.
41256         * tests/test-strcasestr.c (ASSERT): Likewise.
41257         * tests/test-strerror.c (ASSERT): Likewise.
41258         * tests/test-striconv.c (ASSERT): Likewise.
41259         * tests/test-striconveh.c (ASSERT): Likewise.
41260         * tests/test-striconveha.c (ASSERT): Likewise.
41261         * tests/test-strsignal.c (ASSERT): Likewise.
41262         * tests/test-strstr.c (ASSERT): Likewise.
41263         * tests/test-strtod.c (ASSERT): Likewise.
41264         * tests/test-trunc1.c (ASSERT): Likewise.
41265         * tests/test-trunc2.c (ASSERT): Likewise.
41266         * tests/test-truncf1.c (ASSERT): Likewise.
41267         * tests/test-truncf2.c (ASSERT): Likewise.
41268         * tests/test-truncl.c (ASSERT): Likewise.
41269         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41270         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41271         * tests/test-vasnprintf.c (ASSERT): Likewise.
41272         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41273         * tests/test-vasprintf.c (ASSERT): Likewise.
41274         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41275         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41276         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41277         * tests/test-vsnprintf.c (ASSERT): Likewise.
41278         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41279         * tests/test-wcwidth.c (ASSERT): Likewise.
41280         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41281         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41282         * tests/test-xvasprintf.c (ASSERT): Likewise.
41283         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41284         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41285         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41286         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41287         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41288         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41289         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41290         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41291         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41292         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41293         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41294         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41295         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41296         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41297         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41298         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41299         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41300         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41301         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41302         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41303         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41304         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41305         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41306         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41307         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41308         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41309         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41310         * tests/unictype/test-combining.c (ASSERT): Likewise.
41311         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41312         * tests/unictype/test-digit.c (ASSERT): Likewise.
41313         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41314         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41315         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41316         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41317         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41318         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41319         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41320         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41321         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41322         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41323         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41324         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41325         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41326         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41327         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41328         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41329         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41330         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41331         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41332         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41333         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41334         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41335         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41336         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41337         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41338         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41339         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41340         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41341         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41342         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41343         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41344         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41345         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41346         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41347         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41348         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41349         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41350         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41351         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41352         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41353         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41354         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41355         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41356         Reported by Eric Blake.
41357
41358 2008-04-11  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/wchar.in.h: Tweak comment.
41361
41362 2008-04-11  Bruno Haible  <bruno@clisp.org>
41363
41364         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41365         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41366         gl_COMMON.
41367         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41368
41369 2008-04-11  Bruno Haible  <bruno@clisp.org>
41370
41371         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41372
41373 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41374
41375         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41376         of attempting to use non-existing /dev/*random.  Based on patch
41377         from Adam Strzelecki <ono@java.pl> in
41378         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41379
41380 2008-04-08  Bruno Haible  <bruno@clisp.org>
41381
41382         Add tentative support for emx+gcc.
41383         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41384         * lib/fpurge.c (fpurge): Likewise.
41385         * lib/freadable.c (freadable): Likewise.
41386         * lib/freadahead.c (freadahead): Likewise.
41387         * lib/freading.c (freading): Likewise.
41388         * lib/freadptr.c (freadptr): Likewise.
41389         * lib/freadseek.c (freadptrinc): Likewise.
41390         * lib/fseeko.c (rpl_fseeko): Likewise.
41391         * lib/fseterr.c (fseterr): Likewise.
41392         * lib/fwritable.c (fwritable): Likewise.
41393         * lib/fwriting.c (fwriting): Likewise.
41394         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41395
41396 2008-04-09  Eric Blake  <ebb9@byu.net>
41397
41398         Avoid some autoconf warnings.
41399         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41400         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41401         * m4/afs.m4 (gl_AFS): Likewise.
41402         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41403         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41404         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41405         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41406         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41407         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41408         (AC_CHECK_DECLS_ONCE): Likewise.
41409         Rename file...
41410         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41411         gnulib-tool requires autoconf 2.59 or better.
41412         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41413
41414 2008-04-08  Eric Blake  <ebb9@byu.net>
41415
41416         Use 'git describe --match' if present (added in git 1.5.5).
41417         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41418         if possible.
41419
41420 2008-04-08  Bruno Haible  <bruno@clisp.org>
41421
41422         Add tentative support for OpenServer.
41423         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41424         _ptr, _cnt.
41425         * lib/fpurge.c (fpurge): Likewise.
41426         * lib/freadable.c (freadable): Likewise.
41427         * lib/freadahead.c (freadahead): Likewise.
41428         * lib/freading.c (freading): Likewise.
41429         * lib/freadptr.c (freadptr): Likewise.
41430         * lib/freadseek.c (freadptrinc): Likewise.
41431         * lib/fseeko.c (rpl_fseeko): Likewise.
41432         * lib/fseterr.c (fseterr): Likewise.
41433         * lib/fwritable.c (fwritable): Likewise.
41434         * lib/fwriting.c (fwriting): Likewise.
41435         Reported by Roger Cornelius <rac@tenzing.org> and
41436         Brian K. White <brian@aljex.com>.
41437
41438 2008-04-06  Jim Meyering  <meyering@redhat.com>
41439
41440         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41441
41442 2008-04-06  Bruno Haible  <bruno@clisp.org>
41443
41444         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41445         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41446         * tests/test-printf-posix.sh: Likewise.
41447         * tests/test-vfprintf-posix.sh: Likewise.
41448         * tests/test-vprintf-posix.sh: Likewise.
41449         * tests/test-xprintf-posix.sh: Likewise.
41450
41451 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41452
41453         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41454         hide error from 'ls', needed on OS/2.
41455         Report by Elbert Pol <elbert.pol@gmail.com>.
41456
41457 2008-04-04  Eric Blake  <ebb9@byu.net>
41458
41459         Make test-fseeko.c failures meaningful.
41460         * tests/test-fseeko.c: Print line number on failure.
41461         * tests/test-fseek.c: Likewise.
41462         Reported by Nelson H. F. Beebe.
41463
41464         Improve strtod bug detection check.
41465         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41466         required for Solaris 10.
41467         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41468
41469 2008-04-04  Bruno Haible  <bruno@clisp.org>
41470
41471         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41472         by m4/setenv.m4.
41473
41474 2008-04-03  Eric Blake  <ebb9@byu.net>
41475
41476         Ensure sane .version contents.
41477         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41478         version string.
41479         * build-aux/git-version-gen: Improve documentation.
41480
41481         Make GNU make output nicer.
41482         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41483         MAKECMDGOALS to enforce message for all command line targets.  Set
41484         srcdir for use in maint.mk.
41485
41486         Another maintainer tweak.
41487         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41488         a target that regenerates version.
41489
41490 2008-04-03  Jim Meyering  <meyering@redhat.com>
41491
41492         vc-list-files: don't cause coreutils "make po-check" failure
41493         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41494
41495 2008-04-03  Eric Blake  <ebb9@byu.net>
41496
41497         Allow VPATH usage of vc-list-files.
41498         * build-aux/vc-list-files (scriptversion): Add timestamp.
41499         (options): Add --help, --version, -C.
41500         (CVS): Support installed cvsu.
41501
41502 2008-04-02  Bruno Haible  <bruno@clisp.org>
41503
41504         Avoid some "statement with no effect" warnings from gcc.
41505         * tests/test-wctype.c (main): Explicitly ignore unused values.
41506         Reported by Jim Meyering.
41507
41508 2008-04-02  Jim Meyering  <meyering@redhat.com>
41509
41510         Avoid some warnings from "gcc -Wshadow".
41511         * tests/test-frexp.c (exp): Define to a different identifier.
41512         * tests/test-frexpl.c (exp): Likewise.
41513
41514 2008-04-03  Jim Meyering  <meyering@redhat.com>
41515
41516         bootstrap: remove dangling *.[ch] symlinks from lib
41517         * build-aux/bootstrap [dangling symlink removal]: Move find's
41518         -depth option to precede all others, to avoid a warning.
41519         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41520
41521 2008-04-02  Bruno Haible  <bruno@clisp.org>
41522
41523         Avoid some warnings from "gcc -Wshadow".
41524         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41525         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41526         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41527         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41528         Reported by Jim Meyering.
41529
41530 2008-04-01  Bruno Haible  <bruno@clisp.org>
41531
41532         Fix test to work on IRIX 6.5 with cc.
41533         * tests/test-math.c (numeric_equal): New function.
41534         (main): Use it.
41535
41536 2008-04-01  Bruno Haible  <bruno@clisp.org>
41537
41538         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41539
41540 2008-04-01  Bruno Haible  <bruno@clisp.org>
41541
41542         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41543         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41544         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41545         (Depends-on): Remove math.
41546
41547         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41548         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41549         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41550         (Depends-on): Remove math.
41551
41552         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41553         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41554         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41555         (Depends-on): Remove math.
41556         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41557         (Depends-on): Remove math.
41558
41559         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41560         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41561         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41562         (Depends-on): Remove math.
41563         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41564         (Depends-on): Remove math.
41565
41566         * tests/test-round1.c: Include nan.h.
41567         (main): Use NaNd instead of NAN.
41568         * modules/round-tests (Files): Add tests/nan.h.
41569
41570         * tests/test-trunc1.c: Include nan.h.
41571         (main): Use NaNd instead of NAN.
41572         * modules/trunc-tests (Files): Add tests/nan.h.
41573
41574         * tests/test-roundf1.c: Include nan.h.
41575         (main): Use NaNf instead of NAN.
41576         * modules/roundf-tests (Files): Add tests/nan.h.
41577
41578         * tests/test-truncf1.c: Include nan.h.
41579         (main): Use NaNf instead of NAN.
41580         * modules/truncf-tests (Files): Add tests/nan.h.
41581
41582         * tests/test-ceilf1.c: Include nan.h.
41583         (main): Use NaNf instead of NAN.
41584         * modules/ceilf-tests (Files): Add tests/nan.h.
41585
41586         * tests/test-floorf1.c: Include nan.h.
41587         (main): Use NaNf instead of NAN.
41588         * modules/floorf-tests (Files): Add tests/nan.h.
41589
41590         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41591         (main): Use NaNf instead of NAN.
41592         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41593
41594         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41595         (main): Use NaNd instead of NAN.
41596         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41597
41598         * tests/test-frexp.c: Include nan.h.
41599         (main): Use NaNd instead of NAN.
41600         * modules/frexp-tests (Files): Add tests/nan.h.
41601
41602         * lib/isnan.c: Don't include <math.h>.
41603         (FUNC): Don't use NAN macro.
41604         * modules/isnand-nolibm (Depends-on): Remove math.
41605         * modules/isnanf-nolibm (Depends-on): Remove math.
41606         * modules/isnanl (Depends-on): Remove math.
41607         * modules/isnanl-nolibm (Depends-on): Remove math.
41608
41609         * tests/nan.h: New file.
41610
41611 2008-04-01  Eric Blake  <ebb9@byu.net>
41612
41613         Fix typos.
41614         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41615         values to be the right type.
41616
41617         For now, cater to gnulib strtod inaccuracies.
41618         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41619         fractional results.  While not as nice from a QoI perspective, it
41620         is a quicker patch than correctly implementing decimal to binary
41621         rounding.
41622
41623 2008-03-31  Eric Blake  <ebb9@byu.net>
41624
41625         Guarantee a definition of NAN.
41626         * lib/math.in.h (NAN): Define if missing.
41627         * tests/test-math.c (main): Test it.
41628         * doc/posix-headers/math.texi (math.h): Document this.
41629         * lib/isnan.c (rpl_isnand): Use it.
41630         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41631         * tests/test-floorf1.c (NaN): Likewise.
41632         * tests/test-frexp.c (NaN): Likewise.
41633         * tests/test-isnand.c (NaN): Likewise.
41634         * tests/test-isnanf.c (NaN): Likewise.
41635         * tests/test-round1.c (NaN): Likewise.
41636         * tests/test-roundf1.c (NaN): Likewise.
41637         * tests/test-snprintf-posix.h (NaN): Likewise.
41638         * tests/test-sprintf-posix.h (NaN): Likewise.
41639         * tests/test-trunc1.c (NaN): Likewise.
41640         * tests/test-truncf1.c (NaN): Likewise.
41641         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41642         * tests/test-vasprintf-posix.c (NaN): Likewise.
41643         * modules/isnand-nolibm (Depends-on): Add math.
41644         * modules/isnanf-nolibm (Depends-on): Likewise.
41645         * modules/isnanl (Depends-on): Likewise.
41646         * modules/isnanl-nolibm (Depends-on): Likewise.
41647         * modules/snprintf-posix-tests (Depends-on): Likewise.
41648         * modules/sprintf-posix-tests (Depends-on): Likewise.
41649         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41650         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41651         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41652         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41653
41654 2008-03-31  Bruno Haible  <bruno@clisp.org>
41655
41656         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41657         * doc/posix-functions/strtod.texi: Likewise.
41658
41659 2008-03-31  Bruno Haible  <bruno@clisp.org>
41660
41661         * tests/test-strtod.c (main): Don't use C99 syntax.
41662
41663 2008-03-31  Bruno Haible  <bruno@clisp.org>
41664
41665         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41666         Reported by Eric Blake.
41667
41668 2008-03-31  Jim Meyering  <meyering@redhat.com>
41669
41670         Don't compare actual signbit return values.
41671         * tests/test-strtod.c (main): Rather, compare only their
41672         zero/non-zero nature.
41673
41674 2008-03-31  Eric Blake  <ebb9@byu.net>
41675
41676         More strtod documentation.
41677         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41678         failures as distinct bugs.
41679
41680 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41681
41682         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41683         Problem reported by Erik Benada in
41684         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41685
41686 2008-03-30  Bruno Haible  <bruno@clisp.org>
41687
41688         * tests/test-strtod.c: Add comments about which assertion fails on which
41689         platform.
41690         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41691
41692 2008-03-30  Eric Blake  <ebb9@byu.net>
41693
41694         Test signbit behavior on zeros.
41695         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41696         (test_signbitd, test_signbitl): Likewise.
41697
41698         More strtod touchups.
41699         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41700         sign of negative underflow, for now.  Use .5, not .1.
41701         * doc/posix-functions/strtod.texi (strtod): Mention these
41702         limitations.
41703         Reported by Jim Meyering.
41704
41705 2008-03-30  Bruno Haible  <bruno@clisp.org>
41706
41707         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41708         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41709
41710 2008-03-30  Bruno Haible  <bruno@clisp.org>
41711
41712         Avoid failure when attempting to return empty iconv results on some
41713         platforms.
41714         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41715         allocation, don't report ENOMEM when the resulting string is empty.
41716
41717 2008-03-30  Bruno Haible  <bruno@clisp.org>
41718
41719         Fix buffer overrun.
41720         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41721         Don't consider the width for tmp_length. Check count against tmp_length
41722         before doing the padding. Ensure enough allocation during padding.
41723
41724 2008-03-30  Eric Blake  <ebb9@byu.net>
41725
41726         strtod touchups.
41727         * lib/strtod.c (strtod): Avoid compiler warnings.
41728         Reported by Jim Meyering.
41729
41730 2008-03-30  Bruno Haible  <bruno@clisp.org>
41731
41732         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41733         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41734         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41735         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41736         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41737         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41738         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41739         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41740
41741         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41742         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41743         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41744         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41745         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41746         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41747         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41748         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41749
41750         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41751         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41752         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41753         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41754         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41755         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41756         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41757         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41758
41759         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41760         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41761
41762         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41763         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41764
41765         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41766         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41767
41768         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41770         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41771
41772         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41774         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41775
41776         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41777         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41778         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41779
41780         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41781         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41782         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41783
41784         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41785         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41786         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41787         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41788         (Depends-on): Add EOVERFLOW.
41789         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41790         (Depends-on): Add EOVERFLOW.
41791         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41792         (Depends-on): Add EOVERFLOW.
41793         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41794         (Depends-on): Add EOVERFLOW.
41795         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41796         (Depends-on): Add EOVERFLOW.
41797         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41798         (Depends-on): Add EOVERFLOW.
41799         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41800         (Depends-on): Add EOVERFLOW.
41801         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41802         (Depends-on): Add EOVERFLOW.
41803
41804         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41805         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41806         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41807
41808         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41809         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41810         * modules/snprintf (Depends-on): Add EOVERFLOW.
41811
41812         * lib/poll.c (EOVERFLOW): Remove fallback.
41813         * modules/poll (Depends-on): Add EOVERFLOW.
41814
41815         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41816         * modules/getugroups (Depends-on): Add EOVERFLOW.
41817
41818         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41819         * modules/getdelim (Depends-on): Add EOVERFLOW.
41820
41821         * lib/ftell.c (EOVERFLOW): Remove fallback.
41822         * modules/ftell (Depends-on): Add EOVERFLOW.
41823
41824         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41825         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41826         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41827
41828         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41829
41830         * modules/EOVERFLOW-tests: New file.
41831         * tests/test-EOVERFLOW.c: New file.
41832
41833         * modules/EOVERFLOW: New file.
41834         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41835
41836 2008-03-30  Bruno Haible  <bruno@clisp.org>
41837
41838         Fix bug introduced on 2007-06-10.
41839         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41840         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41841
41842 2008-03-30  Bruno Haible  <bruno@clisp.org>
41843
41844         Improve freadseek's efficiency after ungetc.
41845         * lib/freadseek.c: Include freadahead.h.
41846         (freadptrinc): New function, extracted from freadseek.
41847         (freadseek): Use it in a loop. Use freadahead to determine the number
41848         of loop iterations.
41849         * modules/freadseek (Depends-on): Add freadahead.
41850         (configure.ac): Require AC_C_INLINE.
41851
41852 2008-03-30  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/freadseek.c (freadseek): Don't ignore the return value of
41855         freadptr.
41856
41857 2008-03-29  Eric Blake  <ebb9@byu.net>
41858
41859         Add hex float support.
41860         * modules/strtod (Depends-on): Add c-ctype.
41861         (Link): Mention POW_LIB.
41862         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41863         whitespace between 'e' and exponent.
41864         * tests/test-strtod.c (main): Enable hex float tests.
41865         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41866         now provides.
41867
41868         Document various strtod bugs, with some fixes.
41869         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41870         "-0x", "inf", "nan", and hex constants.
41871         * doc/posix-functions/atof.texi (atof): Likewise.
41872         * modules/stdlib (Makefile.am): Support strtod.
41873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41874         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41875         detect additional strtod bugs.
41876         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41877         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41878         bool where appropriate.  Parse 'inf' and 'nan'.
41879         * tests/test-strtod.c: New file.
41880         * modules/strtod (Depends-on): Add stdbool, stdlib.
41881         (configure.ac): Turn on module indicator.
41882         * modules/strtod-tests: New module.
41883
41884 2008-03-29  Eric Blake  <ebb9@byu.net>
41885
41886         Fix ftell on mingw.
41887         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41888         * modules/ftell-tests (Depends-on): Add binary-io.
41889         * modules/ftello-tests (Depends-on): Likewise.
41890         * tests/test-ftell.c (main): Enhance test to cover behavior after
41891         ungetc.  Enforce binary mode.
41892         * tests/test-ftello.c (main): Likewise.
41893
41894         Pass test-freadseek on cygwin.
41895         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41896         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41897         ungetc buffer.
41898
41899         * tests/test-fflush2.c (main): Fix typo.
41900
41901 2008-03-29  Bruno Haible  <bruno@clisp.org>
41902
41903         * tests/test-fflush2.c (main): Temporarily disable the contents of
41904         this test.
41905         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41906         Reported by Eric Blake.
41907
41908 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41909
41910         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41911         (GC_SHA224_DIGEST_SIZE): Add.
41912
41913         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41914         (gc_hash_digest_length): Likewise.
41915         (gc_hash_buffer): Likewise.
41916
41917 2008-03-25  Bruno Haible  <bruno@clisp.org>
41918
41919         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41920         detail which gettext release to use.
41921         Reported by Simon Josefsson.
41922
41923 2008-03-26  Jim Meyering  <meyering@redhat.com>
41924
41925         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41926         * modules/gnumakefile (clean-GNUmakefile): Also, use
41927         test ... && ... || : syntax rather than if-then ... fi.
41928
41929         gnumakefile: Don't double-quote-expand $(VPATH) value.
41930         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41931
41932 2008-03-24  Eric Blake  <ebb9@byu.net>
41933
41934         Alter GNUmakefile to install into top directory.
41935         * modules/maintainer-makefile: Split, and add dependency...
41936         * modules/gnumakefile: to this new module.
41937         * build-aux/GNUmakefile: Move...
41938         * top/GNUmakefile: ...here.
41939         * build-aux/maint.mk: Move...
41940         * top/maint.mk: ...here.
41941         * MODULES.html.sh (Support for maintaining...): Document new
41942         module.
41943
41944 2008-03-23  Bruno Haible  <bruno@clisp.org>
41945
41946         * gnulib-tool: New options --vc-files, --no-vc-files.
41947         (func_usage): Document them.
41948         (vc_files): New variable.
41949         (func_import): Consider vc_files.
41950         (func_create_testdir): Set vc_files to empty.
41951         Suggested by Jim Meyering and Karl Berry.
41952
41953 2008-03-23  Bruno Haible  <bruno@clisp.org>
41954
41955         Fix regex compilation error on HP-UX 11.
41956         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41957         * modules/regex (Files): Add m4/mbstate_t.m4.
41958         Reported by Ton Voon <ton.voon@altinity.com>.
41959
41960 2008-03-23  Bruno Haible  <bruno@clisp.org>
41961
41962         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41963
41964 2008-03-23  Eric Blake  <ebb9@byu.net>
41965             Bruno Haible  <bruno@clisp.org>
41966
41967         Install files from top/ in the destination directory.
41968         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41969         augmentation also for the files from top/.
41970         (func_import, func_create_testdir): Rewrite file names:
41971         top/filename -> filename.
41972
41973 2008-03-23  Bruno Haible  <bruno@clisp.org>
41974
41975         Tweak "gnulib --version" output.
41976         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41977
41978 2008-03-23  Bruno Haible  <bruno@clisp.org>
41979
41980         Tweak "gnulib --version" output.
41981         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41982         rather than contents of ChangeLog, when possible.
41983
41984 2008-03-21  Eric Blake  <ebb9@byu.net>
41985
41986         More --version tweaks.
41987         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41988         date of last ChangeLog entry.
41989
41990 2008-03-21  Jim Meyering  <meyering@redhat.com>
41991
41992         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41993
41994 2008-03-20  Eric Blake  <ebb9@byu.net>
41995
41996         VPATH fix.
41997         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41998
41999 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42000
42001         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42002         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42003
42004 2008-03-20  Eric Blake  <ebb9@byu.net>
42005
42006         Sync GNUmakefile with coreutils.
42007         * build-aux/GNUmakefile (have-Makefile): Rename...
42008         (_have-Makefile): ...to this, for namespace consideration.
42009         (GNUmakefile.cfg): Include, if present.
42010         (_autoreconf): Define a default.
42011         (_is-dist-target): New rule for rebuilds to pick up intra-release
42012         version.
42013         (maint-cfg.mk): Rename...
42014         (cfg.mk): ...to this.
42015
42016 2008-03-18  Jim Meyering  <meyering@redhat.com>
42017
42018         New script and module: mktempd
42019         * MODULES.html.sh (maint+release support): Add mktempd.
42020         * build-aux/mktempd: New file.
42021         * modules/mktempd: New file.
42022
42023 2008-03-15  Jim Meyering  <meyering@redhat.com>
42024
42025         Undo last change.
42026         * lib/sha1.c, lib/md5.c: 63 != ~63.
42027         Reported by Andreas Schwab.
42028
42029         sha1.c, md5.c: Hoist a redundant expression.
42030         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42031         "ctx->buflen" only once, before calling *_process_block.
42032         * lib/md5.c (md5_process_bytes): Likewise.
42033
42034 2008-03-14  Eric Blake  <ebb9@byu.net>
42035
42036         Bump copyright year in files generated by gnulib-tool.
42037         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42038         gnulib-tool, rather than hard-coding it.
42039
42040         Fix 'gnulib-tool --version' output to work with git.
42041         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42042         (startup): ...here.
42043         (func_version): Use it to invoke git-version-gen, rather than
42044         relying on CVS keyword expansion.  Modernize wording.
42045         (cvsdatestamp, last_checkin_date, version): Kill unused
42046         variables.
42047
42048 2008-03-12  Jim Meyering  <meyering@redhat.com>
42049
42050         Recognize optional cast of the argument to free.
42051         * build-aux/useless-if-before-free: Update regexps.
42052
42053         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42054
42055 2008-03-11  Bruno Haible  <bruno@clisp.org>
42056
42057         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42058         by a single package.
42059         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42060         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42061         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42062         Reported by Sam Steingold <sds@gnu.org>.
42063
42064 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42065
42066         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42067         repositories.
42068
42069 2008-03-11  Bruno Haible  <bruno@clisp.org>
42070
42071         Avoid conflicts between local macro definitions.
42072         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42073         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42074
42075 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42076             Bruno Haible  <bruno@clisp.org>
42077
42078         Make va_copy work with some version of xlc on AIX 5.1.
42079         * lib/stdarg.in.h: New file.
42080         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42081         On AIX, use a <stdarg.h> file substitute.
42082         * modules/stdarg (Files): Add lib/stdarg.in.h.
42083         (Depends-on): Add include_next.
42084         (Makefile.am): Build a stdarg.h substitute if requested.
42085         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42086
42087 2008-03-10  Bruno Haible  <bruno@clisp.org>
42088
42089         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42091         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42092
42093 2008-03-10  Bruno Haible  <bruno@clisp.org>
42094
42095         * modules/stdlib (Depends-on): Add include_next, remove
42096         absolute-header.
42097
42098 2008-03-09  Bruno Haible  <bruno@clisp.org>
42099
42100         * lib/freadahead.h (freadahead): Document more precisely.
42101         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42102         the sum of both buffer sizes.
42103         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42104         * NEWS: Document the change.
42105
42106 2008-03-09  Bruno Haible  <bruno@clisp.org>
42107
42108         Extend freadptr to return also the buffer size.
42109         * lib/freadptr.h (freadptr): Add sizep argument.
42110         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42111         (freadptr): Add sizep argument. Determine buffer size like freadahead
42112         does.
42113         * tests/test-freadptr.c: Don't include freadahead.h.
42114         (main): Adapt for new calling convention of freadptr.
42115         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42116         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42117         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42118         tests/test-freadptr2.sh.
42119         (Depends): Remove freadahead.
42120         (TESTS): Add test-freadptr2.sh.
42121         (check_PROGRAMS): Add test-freadptr2.
42122
42123 2008-03-09  Bruno Haible  <bruno@clisp.org>
42124
42125         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42126         Report and solution by Simon Josefsson.
42127
42128 2008-03-06  Bruno Haible  <bruno@clisp.org>
42129
42130         Make fflush after ungetc work on BSD platforms.
42131         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42132         * tests/test-fflush2.c: New file.
42133         * tests/test-fflush2.sh: New file.
42134         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42135         tests/test-fflush2.c.
42136         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42137         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42138
42139 2008-03-06  Eric Blake  <ebb9@byu.net>
42140
42141         Likewise for ftello.
42142         * modules/ftello (Dependencies): Add extensions.
42143         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42144
42145 2008-03-06  Bruno Haible  <bruno@clisp.org>
42146
42147         * modules/fseeko (Dependencies): Add extensions.
42148         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42149         Needed on glibc systems.
42150
42151 2008-03-06  Bruno Haible  <bruno@clisp.org>
42152
42153         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42154         email address.
42155         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42156
42157 2008-03-06  Bruno Haible  <bruno@clisp.org>
42158
42159         * users.txt: Add libgnupdf.
42160
42161 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42162
42163         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42164         (Header File Substitutes, Function Substitutes,
42165         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42166         (Build robot for gnulib): Fix typo.
42167
42168 2008-03-06  Bruno Haible  <bruno@clisp.org>
42169
42170         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42171         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42172
42173 2008-03-06  Bruno Haible  <bruno@clisp.org>
42174
42175         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42176         * doc/gnulib.texi: Include it.
42177
42178 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42179
42180         * modules/func (License): Change license to unlimited; there was
42181         no LGPL parts in the module anyway.
42182
42183 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42184
42185         * modules/__func__: Renamed to modules/func.
42186         * modules/__func__-tests: Renamed to modules/func-tests.
42187         * tests/test-__func__.c: Renamed to tests/test-func.c.
42188         * m4/__func__.m4: Renamed to m4/func.m4.
42189         * doc/gnulib.texi (__func__): Section renamed to func.
42190         Suggested by Eric Blake <ebb9@byu.net>.
42191
42192 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42193
42194         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42195         about __func__.  Make example self-contained.  Suggested by Eric
42196         Blake <ebb9@byu.net>.
42197
42198         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42199         Suggested by Eric Blake <ebb9@byu.net>.
42200
42201 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42202
42203         * modules/__func__: New file.
42204         * modules/__func__-tests: New file.
42205         * tests/test-__func__.c: New file.
42206         * m4/__func__.m4: New file.
42207         * doc/gnulib.texi (__func__): Document __func__ module.
42208
42209 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42210
42211         * modules/byteswap (License): Re-license as LGPLv2+.
42212
42213 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42214
42215         * doc/Makefile: Add pdf target.
42216
42217 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42218
42219         * modules/inline (License): Use 'unlimited', since there are only
42220         *.m4 files in this module.
42221
42222 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42223             Bruno Haible  <bruno@clisp.org>
42224
42225         Add support for HP C 7.1 on OpenVMS 8.3.
42226         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42227
42228 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42229
42230         Update VMS specifics.
42231         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42232
42233 2008-03-02  Jim Meyering  <meyering@redhat.com>
42234
42235         Remove the last dependency on the "free" module.
42236         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42237         Reported by Bob Proulx.
42238
42239         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42240
42241         Remove useless "if" tests before free.  Deprecate "free" module.
42242         * doc/posix-functions/free.texi: Mention that this
42243         module is no longer useful.
42244         * modules/free (Notice): Say this module is obsolete.
42245         * modules/readutmp (Depends-on): Remove free.
42246         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42247         * lib/putenv.c (putenv): Likewise.
42248         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42249         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42250         * tests/test-c-strcasestr.c (main): Likewise.
42251         * tests/test-c-strstr.c (main): Likewise.
42252         * tests/test-mbscasestr1.c (main): Likewise.
42253         * tests/test-mbscasestr2.c (main): Likewise.
42254         * tests/test-mbsstr1.c (main): Likewise.
42255         * tests/test-mbsstr2.c (main): Likewise.
42256         * tests/test-memmem.c (main): Likewise.
42257         * tests/test-strcasestr.c (main): Likewise.
42258         * tests/test-striconv.c (main): Likewise.
42259         * tests/test-striconveh.c (main): Likewise.
42260         * tests/test-striconveha.c (main): Likewise.
42261         * tests/test-strstr.c (main): Likewise.
42262
42263         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42264
42265         bootstrap: sync from coreutils again
42266         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42267
42268 2008-03-01  Jim Meyering  <meyering@redhat.com>
42269
42270         bootstrap: sync from coreutils
42271         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42272         also when the target doesn't exist.
42273
42274 2008-03-01  Eric Blake  <ebb9@byu.net>
42275
42276         Fix bugs in last patch.
42277         * lib/memchr2.c (memchr2): Fix typo.
42278         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42279         extension.
42280         Reported by Bruce Korb.
42281
42282         New module 'memchr2'.
42283         * modules/memchr2: New file.
42284         * modules/memchr2-tests: Likewise.
42285         * lib/memchr2.h: Likewise.
42286         * lib/memchr2.c: Likewise, based on memchr.c.
42287         * tests/test-memchr2.c: New test.
42288         * MODULES.html.sh (String handling): Add memchr2.
42289
42290 2008-02-29  Bruno Haible  <bruno@clisp.org>
42291
42292         * modules/freadseek-tests: New file.
42293         * tests/test-freadseek.sh: New file.
42294         * tests/test-freadseek.c: New file.
42295
42296         New module 'freadseek'.
42297         * modules/freadseek: New file.
42298         * lib/freadseek.h: New file.
42299         * lib/freadseek.c: New file.
42300         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42301
42302 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42303
42304         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42305         wydawca.
42306
42307         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42308         program_invocation_name and program_invocation_short_name are
42309         present.
42310
42311 2008-02-28  Bruno Haible  <bruno@clisp.org>
42312
42313         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42314         * tests/test-freadptr.sh: Also test non-seekable stdin.
42315
42316 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42317
42318         * build-aux/bootstrap (source_base, m4_base)
42319         (doc_base, tests_base): New variables.
42320         (gnulib_tool_options): Do not hardcode base directories, use
42321         the above variables instead.
42322
42323 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42324
42325         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42326
42327 2008-02-28  Bruno Haible  <bruno@clisp.org>
42328
42329         * modules/freadptr-tests: New file.
42330         * tests/test-freadptr.sh: New file.
42331         * tests/test-freadptr.c: New file.
42332
42333         New module 'freadptr'.
42334         * modules/freadptr: New file.
42335         * lib/freadptr.h: New file.
42336         * lib/freadptr.c: New file.
42337         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42338
42339 2008-02-26  Karl Berry  <karl@freefriends.org>
42340
42341         Sync from Libtool:
42342         * libltdl/argz.c (argz_add, argz_count): New functions.
42343         * libltdl/argz.in.h: Declare them.
42344         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42345
42346 2008-02-22  Bruno Haible  <bruno@clisp.org>
42347
42348         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42349         is a pointer type.  Needed for HP-UX 10.
42350         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42351         * doc/posix-functions/gmtime_r.texi: Likewise.
42352         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42353
42354 2008-02-24  Bruno Haible  <bruno@clisp.org>
42355
42356         * modules/environ-tests: New file.
42357         * tests/test-environ.c: New file.
42358
42359         New module 'environ'.
42360         * modules/environ: New file.
42361         * lib/unistd.in.h (environ): New declaration.
42362         * m4/environ.m4: New file.
42363         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42364         after use.
42365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42366         HAVE_DECL_ENVIRON.
42367         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42368         HAVE_DECL_ENVIRON.
42369         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42370         wrong claim that 'environ' is missing on some systems.
42371         * modules/execute (Depends-on): Add environ.
42372         * lib/execute.c (environ): Remove fallback declaration.
42373         * modules/pipe (Depends-on): Add environ.
42374         * lib/pipe.c (environ): Remove fallback declaration.
42375         * modules/setenv (Depends-on): Add environ.
42376         * lib/setenv.c (environ): Remove fallback declaration.
42377         * modules/unsetenv (Depends-on): Add environ.
42378         * lib/unsetenv.c (environ): Remove fallback declaration.
42379         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42380         m4/environ.m4.
42381         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42382         (gl_PREREQ_UNSETENV): Likewise.
42383
42384 2008-02-24  Bruno Haible  <bruno@clisp.org>
42385
42386         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42387
42388 2008-02-20  Bob Proulx  <bob@proulx.com>
42389
42390         Enable use of older two part flavor 'git describe'.
42391         * build-aux/git-version-gen: If using the older two part flavor of
42392         git version then recreate the third part now present in the
42393         newer three part flavor of git describe.
42394
42395 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42396
42397         * lib/fts.c (fts_build): Typo correction to comment.
42398
42399 2008-02-17  Bruno Haible  <bruno@clisp.org>
42400
42401         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42402         generating no-op conflicts.
42403
42404 2008-02-17  Bruno Haible  <bruno@clisp.org>
42405
42406         Speed up by 10%.
42407         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42408         result_entries, rather than an index-based loop.
42409
42410 2008-02-17  Bruno Haible  <bruno@clisp.org>
42411
42412         Speed up by 25%.
42413         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42414         'hashcode_cached'.
42415         (entry_create): New function.
42416         (entry_hashcode): Use the cached hashcode if possible.
42417         (read_changelog_file, try_split_merged_entry): Use entry_create.
42418
42419 2008-02-17  Bruno Haible  <bruno@clisp.org>
42420
42421         Speed up from O(n^2) to O(n) for long ChangeLog files.
42422         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42423         (read_changelog_file): Change implementation of entries_reversed list
42424         to rbtreehash.
42425         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42426
42427 2008-02-17  Bruno Haible  <bruno@clisp.org>
42428
42429         New option --split-merged-entry.
42430         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42431         (find_paragraph_end, try_split_merged_entry): New functions.
42432         (long_options): Add option --split-merged-entry.
42433         (usage): Document option --split-merged-entry.
42434         (main): Implement option --split-merged-entry.
42435         Reported by Eric Blake.
42436
42437 2008-02-17  Bruno Haible  <bruno@clisp.org>
42438
42439         * lib/git-merge-changelog.c: Include c-strstr.h.
42440         (main): Support the "git pull --rebase" situation.
42441         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42442         Reported by Eric Blake.
42443
42444 2008-02-16  Eric Blake  <ebb9@byu.net>
42445
42446         Avoid doubling \ in common case of "c-maybe" quoting style.
42447         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42448         eliding outer quotes.
42449         * lib/quotearg.h: Document this.
42450         * tests/test-quotearg.c (result_strings, inputs, results_g)
42451         (flag_results, locale_results): Test it by adding a new string to
42452         each test group.
42453         (compare_strings): Test new string.
42454
42455 2008-02-13  Eric Blake  <ebb9@byu.net>
42456
42457         Avoid trigraph quoting in default output.
42458         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42459         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42460         unless explicitly requested.
42461         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42462
42463 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42464
42465         Don't rely on signed integer overflowing to negative value.
42466         * lib/getugroups.c (getugroups): Include <limits.h>.
42467         Instead, compare against INT_MAX, and increment only if the test passes.
42468
42469 2008-02-13  Jim Meyering  <meyering@redhat.com>
42470         and Eric Blake  <ebb9@byu.net>
42471
42472         Avoid shadowing warning and compile errors on Linux.
42473         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42474         forwarding macros on Linux.
42475         (dcgettext): Define a stub, for Linux.
42476         (results_g, main): Avoid warnings.
42477
42478 2008-02-12  Eric Blake  <ebb9@byu.net>
42479
42480         Silence warning in last patch.
42481         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42482
42483         Quotearg part 4: add tests, fix c-maybe colon quoting.
42484         * lib/quotearg.h: Improve documentation.
42485         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42486         escapes when adding outer quotes.  When quoting trigraphs, use
42487         valid C notation.  When quoting NUL, omit extra characters if next
42488         character is not digit.  Alter prototype.
42489         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42490         callers.
42491         * modules/quotearg-tests: New module.
42492         * tests/test-quotearg.c: New test.
42493
42494 2008-02-07  Eric Blake  <ebb9@byu.net>
42495
42496         Quotearg part 3: add flag to control outer quote elision.
42497         * lib/quotearg.h (c_maybe_quoting_style): New style.
42498         (enum quoting_flags): Better documentation of flags.
42499         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42500         c-maybe style.
42501         (quotearg_buffer_restyled): Handle new flag to elide outer
42502         quotes.
42503
42504         Quotearg part 2: add flag that can control NUL elision.
42505         * lib/quotearg.h (set_quoting_flags): New prototype.
42506         * lib/quotearg.c (struct quoting_options): Add flag field.
42507         (set_quoting_flags): New function.
42508         (quotearg_buffer_restyled): Add flags parameter.
42509         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42510         (quotearg_n_options): Set the flag, since length cannot be
42511         returned.
42512         (quoting_options_from_style): Default flags correctly.
42513
42514         Quotearg part 1: more wrappers, restore quotearg_char state.
42515         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42516         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42517         (quotearg_colon_mem): New wrappers.
42518         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42519         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42520         functions.
42521         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42522         (quotearg_colon_mem): New functions.
42523
42524 2008-02-11  Bruno Haible  <bruno@clisp.org>
42525
42526         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42527         library in the current directory: it does not work with parallel make.
42528         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42529
42530 2008-02-11  Bruno Haible  <bruno@clisp.org>
42531
42532         * .gitattributes: New file.
42533
42534 2008-02-11  Jim Meyering  <meyering@redhat.com>
42535
42536         useless-if-before-free: Fix reversed exit values.
42537         * build-aux/useless-if-before-free: Use correct values
42538         for EXIT_MATCH and EXIT_NO_MATCH.
42539
42540         * build-aux/useless-if-before-free: Close stdout carefully.
42541
42542 2008-02-10  Bruno Haible  <bruno@clisp.org>
42543
42544         New module 'git-merge-changelog'.
42545         * modules/git-merge-changelog: New file.
42546         * lib/git-merge-changelog.c: New file.
42547
42548 2008-02-10  Jim Meyering  <meyering@redhat.com>
42549
42550         useless-if-before-free: New option: --list (-l).
42551
42552         useless-if-before-free: Don't exit immediately upon open failure.
42553         * build-aux/useless-if-before-free: Exit 2 for errors.
42554         Upon failure to open a file, don't exit immediately.
42555         Rather, just warn and continue with any remaining files.
42556
42557 2008-02-10  Bruno Haible  <bruno@clisp.org>
42558
42559         New abstract list operation 'node_set_value'.
42560         * lib/gl_list.h (gl_list_node_set_value): New function.
42561         (struct gl_list_implementation): New field node_set_value.
42562         * lib/gl_list.c (gl_list_node_set_value): New function.
42563         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42564         (gl_array_list_implementation): Update.
42565         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42566         (gl_carray_list_implementation): Update.
42567         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42568         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42569         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42570         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42571         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42572         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42573         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42574         Update.
42575         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42576         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42577         (gl_sublist_list_implementation): Update.
42578
42579 2008-02-10  Bruno Haible  <bruno@clisp.org>
42580
42581         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42582         Needed when ELEMENT is #defined to 'some_type *'.
42583
42584 2008-02-10  Jim Meyering  <meyering@redhat.com>
42585
42586         New script and module: useless-if-before-free
42587         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42588         * build-aux/useless-if-before-free: New file.
42589         * modules/useless-if-before-free: New file.
42590
42591         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42592
42593         xstrtol_error: Fix typo.
42594         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42595         s/exit_failure/exit_status/.
42596
42597 2008-02-09  Jim Meyering  <meyering@redhat.com>
42598
42599         New script and module: gitlog-to-changelog
42600         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42601         * modules/gitlog-to-changelog: New file.
42602         * build-aux/gitlog-to-changelog: New file.
42603
42604 2008-02-08  Jim Meyering  <meyering@redhat.com>
42605
42606         Avoid two "parameter unused" warnings.
42607         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42608         Mark "st" as used.
42609
42610         Use "git COMMAND", not "git-COMMAND".
42611         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42612         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42613         * build-aux/git-version-gen: Use "git status", not "git-status".
42614
42615 2008-02-07  Bruno Haible  <bruno@clisp.org>
42616
42617         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42618         Avoids a crash on Windows Vista.
42619         Reported by Adam Strzelecki <ono@java.pl> via
42620         Simon Josefsson <simon@josefsson.org>.
42621
42622 2008-02-06  Bruno Haible  <bruno@clisp.org>
42623
42624         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42625         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42626         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42628         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42629         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42630         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42631         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42632         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42633         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42634         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42635         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42636         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42637         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42638         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42639         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42640         left-adjust flag.
42641         * tests/test-snprintf-posix.h (test_function): Likewise.
42642         * tests/test-sprintf-posix.h (test_function): Likewise.
42643         * tests/test-vasprintf-posix.c (test_function): Likewise.
42644         * doc/posix-functions/fprintf.texi: Update.
42645         * doc/posix-functions/printf.texi: Update.
42646         * doc/posix-functions/snprintf.texi: Update.
42647         * doc/posix-functions/sprintf.texi: Update.
42648         * doc/posix-functions/vfprintf.texi: Update.
42649         * doc/posix-functions/vprintf.texi: Update.
42650         * doc/posix-functions/vsnprintf.texi: Update.
42651         * doc/posix-functions/vsprintf.texi: Update.
42652         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42653
42654 2008-02-06  Bruno Haible  <bruno@clisp.org>
42655
42656         Fix bug introduced on 2008-01-26.
42657         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42658
42659 2008-02-06  Bruno Haible  <bruno@clisp.org>
42660
42661         Fix bug introduced on 2007-06-10.
42662         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42663         !NEED_PRINTF_FLAG_ZERO.
42664
42665 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42666
42667         getloadavg: use libperfstat on AIX5
42668         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42669
42670 2008-02-03  Bruno Haible  <bruno@clisp.org>
42671
42672         * lib/diffseq.h: Add comments about required #includes.
42673         Reported by Michael Biggs <gnulib@doubleplum.net>.
42674
42675 2008-02-01  Bruno Haible  <bruno@clisp.org>
42676
42677         * users.txt: Add gnuit.
42678
42679 2008-01-31  Bruno Haible  <bruno@clisp.org>
42680
42681         * lib/md4.c (set_uint32): Mark as inline.
42682         * lib/md5.c (set_uint32): Likewise.
42683         * lib/sha1.c (set_uint32): Likewise.
42684         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42685         * m4/md5.m4 (gl_MD5): Likewise.
42686         * m4/sha1.m4 (gl_SHA1): Likewise.
42687
42688 2008-01-31  Jim Meyering  <meyering@redhat.com>
42689
42690         Use "sizeof VAR", rather than a literal "4".
42691         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42692         * lib/md4.c (md4_read_ctx): Likewise.
42693         * lib/sha1.c (sha1_read_ctx): Likewise.
42694
42695 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42696
42697         * tests/test-sha1.c: New file, based on test-md5.c.
42698
42699         * modules/crypto/sha1-tests: New file.
42700
42701 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42702
42703         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42704
42705 2008-01-31  Jim Meyering  <meyering@redhat.com>
42706
42707         Prefer "sizeof v" over the equivalent "4".
42708         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42709         * lib/md5.c (set_uint32): Likewise.
42710         * lib/sha1.c (set_uint32): Likewise.
42711
42712 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42713
42714         * lib/sha1.c (set_uint32): Mark function as static.
42715
42716 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42717
42718         md2: clarify comments to say that alignment is not required.
42719         * lib/md2.h: Remove warning about alignment in comment.
42720         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42721         never been required.
42722
42723 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42724
42725         md4: adapt alignment constraint fix from sha1.
42726         * lib/md4.c (set_uint32): New function, from sha1.c
42727         (md4_read_ctx): Use it.
42728         (md4_finish_ctx): Doc fix.
42729         * lib/md4.h: Doc fix.
42730
42731 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42732
42733         md5: adapt alignment constraint fix from sha1.
42734         * lib/md5.c (set_uint32): New function, from sha1.c
42735         (md5_read_ctx): Use it.
42736         (md5_finish_ctx): Doc fix.
42737         * lib/md5.h: Doc fix.
42738
42739 2008-01-30  Peter Palfrader  <weasel@debian.org>
42740
42741         sha1: remove the result buffer alignment constraint
42742         * lib/sha1.c (set_uint32): New function.
42743         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42744         constraint.
42745         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42746         * lib/sha1.h: Likewise.
42747
42748 2008-01-30  Andreas Schwab  <schwab@suse.de>
42749             Bruno Haible  <bruno@clisp.org>
42750
42751         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42752         correct definition of LDBL_MIN_EXP.
42753
42754 2008-01-30  Karl Berry  <karl@gnu.org>
42755
42756         * config/srclist-update: try to preserve x bit on updates.
42757         * config/srclistvars.sh: update for karl.
42758
42759 2008-01-29  Jim Meyering  <meyering@redhat.com>
42760
42761         vasnprintf.c: Avoid warning about unused label
42762         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42763         "overflow" label definition and associated code with the
42764         same cpp condition that guards the sole use of that label.
42765
42766 2008-01-26  Bruno Haible  <bruno@clisp.org>
42767
42768         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42769         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42770         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42771         * lib/isnanl-nolibm.h (isnanl): Likewise.
42772         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42773
42774 2008-01-26  Bruno Haible  <bruno@clisp.org>
42775
42776         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42777         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42778
42779 2008-01-26  Bruno Haible  <bruno@clisp.org>
42780
42781         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42782         GCC >= 4.0 built-in.
42783         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42784
42785 2008-01-26  Bruno Haible  <bruno@clisp.org>
42786
42787         Rename isnan, applicable to 'double' only, to isnand.
42788         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42789         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42790         (configure.ac): Update.
42791         (Include): Replace "isnan.h" with "isnand.h".
42792         * m4/isnand.m4: Renamed from m4/isnan.m4.
42793         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42794         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42795         instead of isnan.c.
42796         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42797         instead of HAVE_ISNAN_IN_LIBC.
42798         (isnand): Renamed from isnan.
42799         * lib/isnand.c: New file.
42800         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42801         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42802         (Makefile.am): Update.
42803         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42804         Include isnand.h instead of isnan.h.
42805         (main): Test isnand instead of isnan.
42806         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42807         isnan-nolibm.
42808         * modules/frexp (Depends-on): Likewise.
42809         * modules/frexp-tests (Depends-on): Likewise.
42810         * modules/frexp-nolibm (Depends-on): Likewise.
42811         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42812         * modules/isfinite (Depends-on): Likewise.
42813         * modules/round-tests (Depends-on): Likewise.
42814         * modules/signbit (Depends-on): Likewise.
42815         * modules/signbit-tests (Depends-on): Likewise.
42816         * modules/snprintf-posix (Depends-on): Likewise.
42817         * modules/sprintf-posix (Depends-on): Likewise.
42818         * modules/trunc-tests (Depends-on): Likewise.
42819         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42820         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42821         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42822         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42823         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42824         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42825         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42826         * modules/vasnprintf-posix (Depends-on): Likewise.
42827         * modules/vasprintf-posix (Depends-on): Likewise.
42828         * modules/vfprintf-posix (Depends-on): Likewise.
42829         * modules/vsnprintf-posix (Depends-on): Likewise.
42830         * modules/vsprintf-posix (Depends-on): Likewise.
42831         * lib/frexp.c: Include isnand.h instead of isnan.h.
42832         (ISNAN): Set to isnand instead of isnan.
42833         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42834         (gl_isfinited): Use isnand instead of isnan.
42835         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42836         (gl_signbitd): Use isnand instead of isnan.
42837         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42838         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42839         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42840         (main): Use isnand instead of isnan.
42841         * tests/test-round1.c: Include isnand.h.
42842         (main): Use isnand instead of isnan.
42843         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42844         (ISNAN): Set to isnand instead of isnan.
42845         * tests/test-trunc1.c: Include isnand.h.
42846         (main): Use isnand instead of isnan.
42847         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42848         (equal): Use isnand instead of isnan.
42849         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42850         isnand-nolibm.
42851         * NEWS: Mention the change.
42852
42853 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42854             Bruno Haible  <bruno@clisp.org>
42855
42856         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42857         the GCC builtins for signbits are present and set
42858         REPLACE_SIGNBIT_USING_GCC if so.
42859         * lib/math.in.h (signbit): Define using GCC builtins if
42860         REPLACE_SIGNBIT_USING_GCC is set.
42861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42862         REPLACE_SIGNBIT_USING_GCC.
42863         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42864
42865 2008-01-25  Jim Meyering  <meyering@redhat.com>
42866
42867         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42868         * lib/poll.c: Include <config.h>, not "config.h".
42869         * tests/test-getaddrinfo.c: Likewise.
42870
42871 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42872
42873         * modules/sockets-tests: New file.
42874
42875 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42876
42877         * modules/sockets: New module, can be used to call WSA_Startup and
42878         WSA_Cleanup when needed.
42879
42880         * lib/sockets.h, lib/sockets.c: New files.
42881
42882         * m4/sockets.m4: New file.
42883
42884         * tests/test-sockets.c: New file.
42885
42886 2008-01-19  Bruno Haible  <bruno@clisp.org>
42887
42888         * doc/posix-headers: Renamed from doc/headers.
42889         * doc/posix-functions: Renamed from doc/functions.
42890         * doc/gnulib.texi: Update.
42891
42892 2008-01-19  Bruno Haible  <bruno@clisp.org>
42893
42894         * doc/glibc-functions/strcasestr.texi: Include contents of
42895         doc/functions/strcasestr.texi, fixing the list of platforms.
42896         * doc/functions/strcasestr.texi: Remove file.
42897
42898 2008-01-19  Bruno Haible  <bruno@clisp.org>
42899
42900         * doc/glibc-functions/memmem.texi: Include contents of
42901         doc/functions/memmem.texi.
42902         * doc/functions/memmem.texi: Remove file.
42903
42904 2008-01-18  Bruno Haible  <bruno@clisp.org>
42905
42906         * doc/glibc-functions/*.texi: New files.
42907         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42908         to use the new files.
42909
42910 2008-01-17  Bruno Haible  <bruno@clisp.org>
42911
42912         * tests/test-gethostname.c (main): Fix printf statement.
42913
42914 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42915
42916         * modules/gethostname-tests: New file.
42917
42918         * tests/test-gethostname.c: New file.
42919
42920 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42921
42922         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42923         used by the UNAME case.  Reported by Bruno Haible
42924         <bruno@clisp.org>.
42925
42926 2008-01-17  Eric Blake  <ebb9@byu.net>
42927
42928         Convert c-strcasestr to be more efficient.
42929         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42930         (Depends-on): Add c-strcase, remove malloca, strnlen.
42931         * tests/test-c-strcasestr.c (main): Enhance test.
42932         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42933
42934 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42935
42936         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42937         Use it in creating po/Makevars.
42938
42939 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42940
42941         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42942         Applications that requires it should initialize libgcrypt
42943         manually.
42944
42945 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42946
42947         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42948
42949 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42950
42951         Fix problem with getdate on mingw32 reported by Simon Josefsson
42952         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42953         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42954         tzname", when deciding whether to declare tzname.
42955         * lib/strftime.c (tzname): Likewise.
42956
42957 2008-01-15  Bruno Haible  <bruno@clisp.org>
42958
42959         Work around a MacOS X 10.5 bug in frexpl().
42960         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42961         * doc/functions/frexpl.texi: Document the bug.
42962         Reported by Elias Pipping <pipping@gentoo.org>.
42963
42964 2008-01-14  Eric Blake  <ebb9@byu.net>
42965
42966         Touch up previous patch.
42967         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42968         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42969
42970         Convert strcasestr module to use Two-Way algorithm.
42971         * modules/strcasestr-simple: New module, based on the old
42972         strcasestr, but with Two-Way rather than KMP.
42973         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42974         * lib/string.in.h (rpl_strcasestr): Declare.
42975         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42976         performance.
42977         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42978         * modules/string (Makefile.am): Support strcasestr.
42979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42980         * modules/strcasestr-tests (Depends-on): Check for alarm.
42981         * tests/test-strcasestr.c: Augment test.
42982         * lib/str-two-way.h: Clean up stray macro.
42983         * NEWS: Document new module.
42984         * MODULES.html.sh (string handling): Likewise.
42985         * doc/functions/strcasestr.texi: New file.
42986         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42987         here, since it is not a POSIX function.
42988
42989 2008-01-14  Colin Watson  <cjwatson@debian.org>
42990             Bruno Haible  <bruno@clisp.org>
42991
42992         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42993         works fine; if not, set REPLACE_STRSIGNAL.
42994         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42996         REPLACE_STRSIGNAL.
42997         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42998         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42999         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43000
43001 2008-01-14  Bruno Haible  <bruno@clisp.org>
43002
43003         * modules/strsignal (Include): Change to <string.h>.
43004
43005 2008-01-14  Colin Watson  <cjwatson@debian.org>
43006
43007         * modules/argp (Notice): Add a notice recommending to change
43008         XGETTEXT_OPTIONS.
43009         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43010
43011 2008-01-13  Colin Watson  <cjwatson@debian.org>
43012
43013         * modules/strsignal-tests: New file.
43014         * tests/test-strsignal.c: New file.
43015
43016         * lib/strsignal.c: New file, from glibc with modifications.
43017         * lib/siglist.h: New file, from glibc with modifications.
43018         * lib/string.in.h (strsignal): New declaration.
43019         * m4/strsignal.m4: New file.
43020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43021         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43022         * modules/strsignal: New file.
43023         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43024         HAVE_DECL_STRSIGNAL.
43025
43026 2008-01-13  Bruno Haible  <bruno@clisp.org>
43027
43028         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43029         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43030         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43031         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43032
43033 2008-01-13  Bruno Haible  <bruno@clisp.org>
43034
43035         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43036         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43037         * lib/argp.h (__attribute__): Likewise.
43038         * lib/c-stack.c (__attribute__): Likewise.
43039         * lib/error.h (__attribute__): Likewise.
43040         * lib/fts.c (__attribute__): Likewise.
43041         * lib/openat.h (__attribute__): Likewise.
43042         * lib/stdio.in.h (__attribute__): Likewise.
43043         * lib/string.in.h (__attribute__): Likewise.
43044         * lib/utimens.c (__attribute__): Likewise.
43045         * lib/vasnprintf.h (__attribute__): Likewise.
43046         * lib/xalloc.h (__attribute__): Likewise.
43047         * lib/xprintf.h (__attribute__): Likewise.
43048         * lib/xstrtol.h (__attribute__): Likewise.
43049         * lib/xvasprintf.h (__attribute__): Likewise.
43050
43051 2008-01-12  Bruno Haible  <bruno@clisp.org>
43052
43053         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43054         * doc/glibc-headers/a.out.texi: New file.
43055         * doc/glibc-headers/aliases.texi: New file.
43056         * doc/glibc-headers/alloca.texi: New file.
43057         * doc/glibc-headers/ar.texi: New file.
43058         * doc/glibc-headers/argp.texi: New file.
43059         * doc/glibc-headers/argz.texi: New file.
43060         * doc/glibc-headers/byteswap.texi: New file.
43061         * doc/glibc-headers/crypt.texi: New file.
43062         * doc/glibc-headers/endian.texi: New file.
43063         * doc/glibc-headers/envz.texi: New file.
43064         * doc/glibc-headers/err.texi: New file.
43065         * doc/glibc-headers/error.texi: New file.
43066         * doc/glibc-headers/execinfo.texi: New file.
43067         * doc/glibc-headers/fpu_control.texi: New file.
43068         * doc/glibc-headers/fstab.texi: New file.
43069         * doc/glibc-headers/fts.texi: New file.
43070         * doc/glibc-headers/getopt.texi: New file.
43071         * doc/glibc-headers/ieee754.texi: New file.
43072         * doc/glibc-headers/ifaddrs.texi: New file.
43073         * doc/glibc-headers/libintl.texi: New file.
43074         * doc/glibc-headers/mcheck.texi: New file.
43075         * doc/glibc-headers/mntent.texi: New file.
43076         * doc/glibc-headers/obstack.texi: New file.
43077         * doc/glibc-headers/paths.texi: New file.
43078         * doc/glibc-headers/printf.texi: New file.
43079         * doc/glibc-headers/pty.texi: New file.
43080         * doc/glibc-headers/resolv.texi: New file.
43081         * doc/glibc-headers/shadow.texi: New file.
43082         * doc/glibc-headers/sysexits.texi: New file.
43083         * doc/glibc-headers/ttyent.texi: New file.
43084
43085 2008-01-12  Jim Meyering  <meyering@redhat.com>
43086
43087         announce-gen: emit Gnulib's git-based version string.
43088         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43089         New option --gnulib-version=V, where V is expected to be
43090         the output of running git describe in the gnulib directory.
43091         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43092         not useful, and plan to stop publishing an xdelta file with each
43093         coreutils release.
43094
43095         * build-aux/announce-gen: Also check for lzma-compressed files.
43096
43097 2008-01-11  Bruno Haible  <bruno@clisp.org>
43098
43099         * tests/test-memmem.c (main): Increase maximum allowed time.
43100         * tests/test-strstr.c (main): Likewise.
43101
43102 2008-01-11  Bruno Haible  <bruno@clisp.org>
43103
43104         * doc/functions/memmem.texi: Add more precisions about platforms.
43105         * doc/functions/strstr.texi: Likewise.
43106
43107 2008-01-10  Eric Blake  <ebb9@byu.net>
43108
43109         * m4/strstr.m4: Delete cruft from copy-n-paste.
43110         Reported by Bruno Haible.
43111
43112 2008-01-10  Bruno Haible  <bruno@clisp.org>
43113
43114         Make c-strstr rely on strstr.
43115         * lib/c-strstr.c: Don't include str-kmp.h.
43116         (c_strstr): Define in terms of strstr.
43117         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43118         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43119
43120 2008-01-10  Bruno Haible  <bruno@clisp.org>
43121
43122         * doc/gnulib.texi (String Functions in C Locale): New section.
43123         * doc/c-ctype.texi: New file.
43124         * doc/c-strcase.texi: New file.
43125         * doc/c-strcaseeq.texi: New file.
43126         * doc/c-strcasestr.texi: New file.
43127         * doc/c-strstr.texi: New file.
43128         * doc/c-strtod.texi: New file.
43129         * doc/c-strtold.texi: New file.
43130
43131 2008-01-10  Eric Blake  <ebb9@byu.net>
43132
43133         * lib/relocatable.h: Fix a comment.
43134
43135 2008-01-10  Eric Blake  <ebb9@byu.net>
43136
43137         Share two-way algorithm.
43138         * lib/str-two-way.h: New file, merged from...
43139         * lib/memmem.c: ...here...
43140         * lib/strstr.c: ...and here.
43141         * modules/memmem (Files): Use it.
43142         * modules/strstr (Files): Likewise.
43143
43144         Avoid quadratic strstr implementations.
43145         * lib/strstr.c: New file.
43146         * m4/strstr.m4: Likewise.
43147         * modules/strstr: Likewise.
43148         * modules/strstr-tests: Likewise.
43149         * tests/test-strstr.c: Likewise.
43150         * lib/string.in.h (rpl_strstr): Declare.
43151         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43153         * modules/string (Makefile.am): Likewise.
43154         * MODULES.html.sh (string handling): Mention new module.
43155         * doc/functions/strstr.texi (strstr): Document the bug.
43156
43157 2008-01-10  Bruno Haible  <bruno@clisp.org>
43158
43159         * lib/relocatable.h (relocate): State whether result is freshly
43160         allocated or not.
43161         * lib/relocatable.c (relocate): Return a freshly allocated string
43162         instead of a pointer to a privately held string.
43163         Reported by Sylvain Beucler <beuc@gnu.org>.
43164
43165 2008-01-10  Colin Watson  <cjwatson@debian.org>
43166
43167         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43168         s/S_ISNLK/S_ISLNK/.
43169
43170 2008-01-09  Bruno Haible  <bruno@clisp.org>
43171
43172         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43173         and other files.
43174         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43175         if it's only a guess.
43176         * modules/memmem: Simplify by depending on memmem-simple.
43177
43178 2008-01-09  Bruno Haible  <bruno@clisp.org>
43179
43180         Work around OpenBSD 4.0 tdelete() bug.
43181         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43182         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43183         macros and don't redefine the enum values.
43184         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43185         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43186         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43187
43188 2008-01-09  Bruno Haible  <bruno@clisp.org>
43189
43190         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43191         (main): Don't perform the tests if setlocale did not install a UTF-8
43192         locale. Needed on OpenBSD 4.0.
43193         * modules/wcwidth-tests (Depends-on): Add localcharset.
43194
43195 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43196
43197         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43198         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43199         * NEWS: announce this.
43200         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43201
43202 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43203         and Eric Blake  <ebb9@byu.net>
43204
43205         Add memmem-simple module.
43206         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43207         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43208         * modules/memmem-simple: New file.
43209         * modules/memmem (Description): Tweak.
43210         * MODULES.html.sh (string handling): Mention new module.
43211         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43212         addressed by memmem-simple.
43213         * NEWS: Document the difference.
43214
43215 2008-01-09  Eric Blake  <ebb9@byu.net>
43216
43217         Give gcc some memmem optimization hints.
43218         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43219         (strcasestr): Declare as pure.
43220         * modules/memmem (Maintainer): Claim my implementation.
43221
43222 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43223
43224         Support AIX 6.1 and higher.
43225         * build-aux/config.libpath: Likewise.
43226         * build-aux/config.rpath: Likewise.
43227
43228 2008-01-08  Jim Meyering  <meyering@redhat.com>
43229             Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43232         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43233         Reported by Peter Fales in
43234         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43235
43236 2008-01-08  Bruno Haible  <bruno@clisp.org>
43237
43238         * modules/unictype/category-of (Depends-on): Add
43239         unictype/category-none.
43240         * modules/unictype/category-and-tests (Depends-on): Add
43241         unictype/category-{L,N,Lu,Nd}.
43242         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43243         * modules/unictype/category-or-tests (Depends-on): Add
43244         unictype/category-{L,N}.
43245         * modules/unictype/category-name-tests (Depends-on): Add
43246         unictype/category-{Z,Nl}.
43247         Reported by Simon Josefsson.
43248
43249 2008-01-08  Bruno Haible  <bruno@clisp.org>
43250
43251         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43252         convention better.
43253         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43254         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43255         Reported by Peter Miller <millerp@canb.auug.org.au>.
43256
43257 2008-01-08  Eric Blake  <ebb9@byu.net>
43258
43259         Rewrite memmem to guarantee linear complexity without malloc.
43260         * lib/memmem.c (memmem): Use Two-Way rather than
43261         Knuth-Morris-Pratt, to allow O(1) space usage.
43262         (critical_factorization, two_way_short_needle)
43263         (two_way_long_needle): New functions.
43264         (knuth_morris_pratt): Delete.
43265         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43266         Add stdint.
43267         * tests/test-memmem.c (main): Add tests for periodic needle and
43268         sublinear performance.
43269         * doc/functions/memmem.texi (memmem): Document other deficiencies
43270         in cygwin and older glibc.
43271
43272 2008-01-08  Bruno Haible  <bruno@clisp.org>
43273
43274         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43275         augmentation.
43276
43277 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43278
43279         Add a configure time option: --disable-acl.
43280         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43281         AC_ARG_ENABLE(acl).
43282
43283 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43284
43285         * tests/test-localename.c: Don't include obsolete "setenv.h".
43286
43287         * modules/localename-tests (Depends-on): Need unsetenv.
43288
43289 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43290
43291         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43292
43293 2008-01-06  Colin Watson  <cjwatson@debian.org>
43294
43295         * users.txt: Add man-db.
43296
43297 2008-01-07  Bruno Haible  <bruno@clisp.org>
43298
43299         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43300         previous section name.
43301
43302 2008-01-07  Bruno Haible  <bruno@clisp.org>
43303
43304         * lib/progname.c (set_program_name): Don't strip off a leading
43305         "lt-" prefix outside a .libs directory.
43306         Suggested by Paul Eggert.
43307
43308 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43309             Bruno Haible  <bruno@clisp.org>
43310
43311         Improve memory cleanup in 'relocatable' module.
43312         * lib/relocatable.h (compute_curr_prefix): Change return type to
43313         'char *'.
43314         * lib/relocatable.c (compute_curr_prefix): Change return type to
43315         'char *'. Free curr_installdir after use.
43316         (relocate): Free curr_prefix_better after use.
43317         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43318
43319 2008-01-01  Bruno Haible  <bruno@clisp.org>
43320
43321         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43322         failure on older glibc systems.
43323         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43324
43325 2008-01-05  Eric Blake  <ebb9@byu.net>
43326
43327         Avoid quadratic system memmem.
43328         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43329         Reported by Ralf Wildenhues.
43330
43331         Fix memmem test for mingw.
43332         * modules/memmem-tests (configure.ac): Check for alarm.
43333         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43334         it.
43335         * doc/functions/memmem.texi: New file.
43336         * doc/gnulib.texi (Function Substitutes): Add memmem.
43337         Reported by Bruno Haible.
43338
43339 2008-01-04  Bruno Haible  <bruno@clisp.org>
43340
43341         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43342         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43343         gl_HEADER_STRING_H_DEFAULTS.
43344
43345 2008-01-04  Eric Blake  <ebb9@byu.net>
43346
43347         Shorten duration of memmem test.
43348         * tests/test-memmem.c (main): Use alarm to declare failure if test
43349         is taking too long.
43350         Reported by Ralf Wildenhues.
43351
43352 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43353
43354         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43355         string, needed by strerror.
43356
43357 2008-01-03  Colin Watson  <cjwatson@debian.org>
43358             Bruno Haible  <bruno@clisp.org>
43359
43360         * doc/gnulib-tool.texi (Localization): New section.
43361
43362 2008-01-02  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43365         variables to 'unsigned char *' type.
43366         Reported by Paul Eggert.
43367
43368 2008-01-02  Jim Meyering  <jim@meyering.net>
43369
43370         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43371
43372 2007-12-31  Jim Meyering  <jim@meyering.net>
43373
43374         Avoid use of private FTS type name.
43375         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43376
43377 2007-12-30  Karl Berry  <karl@gnu.org>
43378
43379         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43380         work around defect in Texinfo and/or the standalone Info browser.
43381
43382 2007-12-30  Bruno Haible  <bruno@clisp.org>
43383
43384         Unify 5 copies of the KMP code.
43385         * lib/str-kmp.h: New file.
43386         * lib/c-strcasestr.c: Include str-kmp.h.
43387         (knuth_morris_pratt): Remove function.
43388         (c_strcasestr): Update.
43389         * lib/c-strstr.c: Include str-kmp.h.
43390         (knuth_morris_pratt): Remove function.
43391         (c_strcasestr): Update.
43392         * lib/mbscasestr.c: Include str-kmp.h.
43393         (knuth_morris_pratt_unibyte): Remove function.
43394         * lib/mbsstr.c: Include str-kmp.h.
43395         (knuth_morris_pratt_unibyte): Remove function.
43396         * lib/strcasestr.c: Include str-kmp.h.
43397         (knuth_morris_pratt): Remove function.
43398         (strcasestr): Update.
43399         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43400         * modules/c-strstr (Files): Likewise.
43401         * modules/mbscasestr (Files): Likewise.
43402         * modules/mbsstr (Files): Likewise.
43403         * modules/strcasestr (Files): Likewise.
43404         Suggested by Paul Eggert.
43405
43406 2007-12-30  Bruno Haible  <bruno@clisp.org>
43407
43408         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43409         defined.
43410
43411 2007-12-30  Bruno Haible  <bruno@clisp.org>
43412
43413         * lib/xmalloca.h: Include xalloc.h.
43414         (xnmalloca): New macro.
43415
43416 2007-12-30  Bruno Haible  <bruno@clisp.org>
43417
43418         * lib/malloca.h (nmalloca): New macro.
43419         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43420         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43421         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43422         knuth_morris_pratt_multibyte): Likewise.
43423         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43424         knuth_morris_pratt_multibyte): Likewise.
43425         * lib/memmem.c (knuth_morris_pratt): Likewise.
43426         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43427
43428 2007-12-25  Bruno Haible  <bruno@clisp.org>
43429
43430         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43431         * lib/glob.c: Don't include openat.h.
43432         (link_exists2_p): Add back the code that deals with the
43433         !GLOB_ALTDIRFUNC case.
43434         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43435         let it do the filename concatenation.
43436         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43437         * modules/glob (Depends-on): Remove openat.
43438
43439 2007-12-31  Bruno Haible  <bruno@clisp.org>
43440
43441         * modules/dirfd (License): Change to LGPLv2+.
43442         Approved by Jim Meyering.
43443
43444 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43445
43446         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43447         when multiplying M by sizeof (size_t).
43448
43449 2007-12-10  Martin Lambers  <marlam@marlam.de>
43450
43451         Override getpagesize on mingw.
43452         * lib/getpagesize.c: New file.
43453         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43454         * modules/getpagesize (Files): Add lib/getpagesize.c.
43455         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43457         REPLACE_GETPAGESIZE.
43458         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43459
43460 2007-12-25  Bruno Haible  <bruno@clisp.org>
43461
43462         * modules/localcharset (Notice): New field.
43463         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43464         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43465
43466 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43467             Bruno Haible  <bruno@clisp.org>
43468
43469         Avoid using the syntax symbol() in formatted documentation.
43470         * MODULES.html.sh (func_module): When replacing symbol() with a
43471         hyperlink, remove the parentheses. Show an error if some remain.
43472         Recognize and render the '...' syntax.
43473         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43474         Rework. Add paragraph about GCC's inlining.
43475         * doc/alloca.texi: Likewise.
43476         * doc/error.texi: Remove parentheses from symbol reference.
43477         * doc/gnulib-intro.texi: Likewise.
43478         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43479         * modules/fnmatch (Description): Reword to say "the ... function".
43480         * modules/full-read (Description): Likewise.
43481         * modules/full-write (Description): Likewise.
43482         * modules/safe-read (Description): Likewise.
43483         * modules/safe-write (Description): Likewise.
43484         * modules/strchrnul (Description): Likewise.
43485         * modules/trim (Description): Likewise.
43486         * modules/error (Description): Remove parentheses from symbol
43487         references.
43488         * modules/verror (Description): Likewise.
43489         Reported by Karl Berry.
43490
43491 2007-12-25  Bruno Haible  <bruno@clisp.org>
43492
43493         Fixup after 2007-10-16 commit.
43494         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43495
43496 2007-12-24  Bruno Haible  <bruno@clisp.org>
43497
43498         Make --enable-relocatable work with DESTDIR.
43499         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43500         to compute installdir from destprog.
43501         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43502         also set the RELOC_DESTDIR variable.
43503         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43504
43505 2007-12-24  Bruno Haible  <bruno@clisp.org>
43506
43507         Fix link error due to xalloc_die().
43508         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43509         of xreadlink.
43510         * lib/relocwrapper.c: Update comments.
43511         * build-aux/install-reloc: Remove xreadlink.c from file list.
43512         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43513         xreadlink.c.
43514         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43515
43516 2007-12-24  Bruno Haible  <bruno@clisp.org>
43517
43518         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43519         * lib/setenv.h: Remove file.
43520         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43521         lib/setenv.h.
43522         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43523         (Depends-on): Add stdlib.
43524         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43525         gl_FUNC_UNSETENV.
43526         (Include): Replace setenv.h with <stdlib.h>.
43527         * modules/unsetenv: New file.
43528         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43529         * lib/unsetenv.c: Include <stdlib.h> first.
43530         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43531         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43532         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43533         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43534         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43535         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43537         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43538         * doc/functions/unsetenv.texi: Update.
43539         * modules/xsetenv (Depends-on): Add unsetenv.
43540         * modules/getdate (Depends-on): Likewise.
43541         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43542         * lib/xsetenv.c: Don't include setenv.h.
43543         * lib/getdate.y: Likewise.
43544         * lib/relocwrapper.c: Likewise.
43545         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43546         (Depends-on): Add stdlib.
43547         * NEWS: Mention the changes.
43548         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43549
43550 2007-12-23  Bruno Haible  <bruno@clisp.org>
43551
43552         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43553         indentation.
43554
43555 2007-12-23  Bruno Haible  <bruno@clisp.org>
43556
43557         * lib/c-strcasestr.c: Add more comments.
43558         * lib/c-strstr.c: Likewise.
43559         * lib/mbscasestr.c: Likewise.
43560         * lib/mbsstr.c: Likewise.
43561         * lib/strcasestr.c: Likewise.
43562         * lib/memmem.c: Likewise.
43563
43564 2007-12-23  Bruno Haible  <bruno@clisp.org>
43565
43566         * tests/test-memmem.c: Include <string.h> first.
43567
43568 2007-12-22  Bruno Haible  <bruno@clisp.org>
43569
43570         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43571         the contents of $testsbase.
43572         Reported by Ralf Wildenhues.
43573
43574 2007-12-22  Bruno Haible  <bruno@clisp.org>
43575
43576         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43577         two variables local_ldadd_before, local_ldadd_last.
43578
43579 2007-12-20  Eric Blake  <ebb9@byu.net>
43580
43581         Work around circular library issue when cross-compiling.
43582         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43583         that progname.o does not need to pull in rpl_memcmp.
43584
43585 2007-12-19  Eric Blake  <ebb9@byu.net>
43586
43587         Fix memmem to avoid O(n^2) worst-case complexity.
43588         * lib/memmem.c (knuth_morris_pratt): New function.
43589         (memmem): Use it if first few naive iterations fail.
43590         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43591         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43592         * modules/memchr (License): Likewise.
43593         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43594         malloca.
43595         * tests/test-memmem.c: Rewrite, borrowing ideas from
43596         test-mbsstr1.c; the old version wouldn't even compile!
43597         * modules/memmem-tests: New file.
43598         * lib/string.in.h (rpl_memmem): Add declaration.
43599         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43601         REPLACE_MEMMEM.
43602
43603 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43604
43605         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43606         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43607         before any system include files, and undef after them all.  This
43608         should fix a problem on VMS reported by John E. Malmberg in
43609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43610
43611 2007-12-17  Eric Blake  <ebb9@byu.net>
43612
43613         Revert addition of verify, for BSD/OS.
43614         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43615         can't handle large files, for the sake of obsolete platforms.
43616         * modules/fseeko (Depends-on): Remove verify.
43617         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43618         * doc/functions/ftello.texi (ftello): Likewise.
43619         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43620         Reported by Larry Jones.
43621
43622 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43623
43624         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43625         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43626
43627 2007-12-17  Jim Meyering  <meyering@redhat.com>
43628
43629         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43630         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43631         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43632         * modules/getcwd (Depends-on): Add openat.
43633         Reported by Petr Salinger.
43634
43635 2007-12-17  Bruno Haible  <bruno@clisp.org>
43636
43637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43638         avoid a segmentation fault of the configure test on x86_64 systems.
43639
43640 2007-12-15  Jim Meyering  <meyering@redhat.com>
43641
43642         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43643
43644 2007-12-13  Eric Blake  <ebb9@byu.net>
43645
43646         Another fseek test.
43647         * tests/test-fseek.c (main): Also test ungetc handling.
43648         * tests/test-fseeko.c (main): Likewise.
43649         * modules/fseeko (Depends-on): Add verify.
43650         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43651         large.
43652         Reported by Larry Jones.
43653
43654         Fix fseeko on mingw.
43655         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43656         seek.
43657
43658         Beef up fseek tests.
43659         * tests/test-fseek.c (main): Also test eof handling.
43660         * tests/test-fseeko.c (main): Likewise.
43661         Reported by Larry Jones.
43662
43663 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43664
43665         Fix fseeko on BSD-based platforms.
43666         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43667         successful seek.
43668
43669 2007-12-12  Eric Blake  <ebb9@byu.net>
43670
43671         Allow circular dependency of separate libtests.a
43672         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43673         when use_libtests.
43674
43675 2007-12-11  Eric Blake  <ebb9@byu.net>
43676
43677         Fix bug with -0.0L in previous patch.
43678         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43679         * tests/test-isnan.c (main): Also test on zeroes.
43680         * tests/test-isnanf.c (main): Likewise.
43681         * tests/test-isnanl.h (main): Likewise.
43682
43683         Detect pseudo-denormals on x86 even when cross-compiling.
43684         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43685         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43686         invalid bit patterns that happen to satisfy ==.
43687
43688         Avoid link failures with separate libtests.a.
43689         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43690         last, to satisfy circular dependencies.
43691
43692 2007-12-11  Eric Blake  <ebb9@byu.net>
43693         and Bruno Haible  <bruno@clisp.org>
43694
43695         Fix OpenBSD 4.0 <float.h> handling of long double.
43696         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43697         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43698         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43699
43700 2007-12-11  Jim Meyering  <meyering@redhat.com>
43701
43702         * users.txt: Add libvirt.
43703
43704         Support versions of autoconf prior to 2.59c.
43705         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43706         if it is not already defined.
43707
43708 2007-12-09  Bruno Haible  <bruno@clisp.org>
43709
43710         Let 'gnulib-tool --import' collect sources needed for the tests in
43711         tests/ rather than in lib/.
43712         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43713         argument. If true, add rules to generate libtests.a, and put libtests.a
43714         into $(LDADD). Consider source files in subdirectories and set
43715         uses_subdirs.
43716         (func_emit_initmacro_start, func_emit_initmacro_end,
43717         func_emit_initmacro_done): Pass all arguments explicitly.
43718         (func_import): Determine two module lists main_modules,
43719         testsrelated_modules. Determine use_libtests. Determine two variables
43720         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43721         instead of just sed_transform_lib_file. Determine two variables
43722         main_files and testsrelated_files. Compute 'files' as the union of
43723         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43724         func_add_or_update. In the generated gnulib-comp.m4, collect the
43725         object files for tests/ in different variables than those for lib/.
43726         Substitute LIBTESTS_LIBDEPS.
43727         (func_create_testdir): Combine the uses_subdirs results from
43728         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43729
43730 2007-12-09  Bruno Haible  <bruno@clisp.org>
43731
43732         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43733         the build-aux directory.
43734
43735 2007-12-09  Bruno Haible  <bruno@clisp.org>
43736
43737         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43738         introduced on 2006-09-09.
43739
43740 2007-12-07  Jim Meyering  <meyering@redhat.com>
43741
43742         Let these macros work also with autoconf-2.59.
43743         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43744         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43745         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43746
43747 2007-12-06  Jim Meyering  <meyering@redhat.com>
43748
43749         Avoid a configure-time syntax error in gl_FUNC_ACL.
43750         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43751         function in each branch, before testing the cache variable.
43752
43753 2007-12-04  Eric Blake  <ebb9@byu.net>
43754
43755         Make scripts executable.
43756         * build-aux/config.guess: Add execute permissions.
43757         * build-aux/config.sub: Likewise.
43758         * build-aux/gendocs.sh: Likewise.
43759
43760         Fix frexp on mingw.
43761         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43762         cross-compiling.
43763         * doc/functions/frexp.texi (frexp): Document the bug.
43764
43765         Make cygwin fseeko check more reliable.
43766         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43767         version numbers, rather than unrelated feature check.
43768         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43769         * doc/functions/ftello.texi (ftello): Likewise.
43770         Reported by Bruno Haible.
43771
43772         * m4/strerror.m4: Bump version number.
43773
43774 2007-12-03  Bruno Haible  <bruno@clisp.org>
43775
43776         * doc/functions/mprotect.texi: Mention the mingw problem.
43777
43778 2007-12-03  Eric Blake  <ebb9@byu.net>
43779
43780         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43781         REPLACE_STRERROR is initialized before this macro.
43782
43783 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43784
43785         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43786         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43787         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43788         put -lsec in even for programs other than 'ls'.  This fixes a problem
43789         for gettext reported by Bruno Haible in
43790         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43791         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43792         Add support for Solaris 10.  This isn't efficient, but should get the
43793         job done for now.
43794
43795 2007-12-03  James Youngman  <jay@gnu.org>
43796
43797         * doc/regexprops-generic.texi: change "an close-group" to "a
43798         close-group" and "illegal" to "not allowed".
43799
43800 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43801
43802         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43803         pr_byname.h. Needed for the rare case when the maintainer has done
43804         "make maintainer-clean" in the source directory and then attempts a
43805         build outside the source directory.
43806         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43807         scripts_byname.h.
43808
43809 2007-12-02  Martin Lambers <marlam@marlam.de>
43810             Bruno Haible  <bruno@clisp.org>
43811
43812         * lib/getpagesize.h: Remove file.
43813         * lib/unistd.in.h: Include declaration of getpagesize here.
43814         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43815         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43816         HAVE_SYS_PARAM_H.
43817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43818         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43819         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43820         (Depends-on): Add unistd.
43821         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43822         (Include): Use <unistd.h> instead of getpagesize.h.
43823         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43824         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43825         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43826         gl_GETPAGESIZE invocation, already handled by module dependency.
43827         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43828
43829 2007-12-02  Bruno Haible  <bruno@clisp.org>
43830
43831         * modules/strings-tests: New file.
43832         * tests/test-strings.c: New file.
43833
43834         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43835         * lib/strings.in.h: New file.
43836         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43837         * m4/strings_h.m4: New file.
43838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43839         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43840         * modules/strings: New file.
43841         * modules/string (Makefile.am): Update.
43842         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43843         Reported by Karl Berry.
43844
43845 2007-12-01  Eric Blake  <ebb9@byu.net>
43846
43847         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43848         accomodate fix in cygwin 1.5.25.
43849
43850 2007-12-01  Jim Meyering  <meyering@redhat.com>
43851
43852         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43853         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43854         that would inhibit utf8-optimization of a regexp containing line-
43855         or buffer-anchors, e.g., `^', `$'.
43856
43857 2007-11-30  Bruno Haible  <bruno@clisp.org>
43858
43859         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43860         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43861         glthread_recursive_lock_init.
43862         * lib/lock.c (glthread_recursive_lock_init)
43863         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43864         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43865
43866 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43867
43868         New function qset_acl, like set_acl but with syscall semantics.
43869         * lib/acl.h (qset_acl): New decl.
43870         * lib/acl.c (qset_acl): New function.
43871         (set_acl): Use new function.  Use more-consistent diagnostics.
43872
43873 2007-11-28  Jim Meyering  <meyering@redhat.com>
43874
43875         * modules/physmem (License): Change from GPL to LGPLv2+.
43876
43877 2007-11-26  Bruno Haible  <bruno@clisp.org>
43878
43879         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43880         'long double' type has excess precision.
43881         Reported by Jim Meyering in
43882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43883
43884 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43885
43886         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43887         Sync from <http://gnu.org/licenses>.
43888         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43889         with license text from same location.
43890         * doc/maintain.texi, doc/standards.texi:  Sync from
43891         <http://savannah.gnu.org/projects/gnustandards>.
43892
43893 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43894         and Jim Meyering  <meyering@redhat.com>
43895
43896         Adjust getdate' grammar to accept a slightly more regular language.
43897         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43898         Before, the former was rejected.
43899         * lib/getdate.y (digits_to_date_time): New function, factored
43900         out of ...
43901         (number): ...here.  Just call digits_to_date_time.
43902         (hybrid): New non-terminal to handle an <unsigned number,
43903         signed relative offset> sequence consistently.
43904
43905 2007-11-18  Jim Meyering  <meyering@redhat.com>
43906
43907         Pull my changes from coreutils:
43908         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43909         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43910         use of $gnulib_tool_option_extras, so that it's separated from the
43911         preceding argument.
43912
43913         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43914         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43915         parent destination directories before copying a file into place.
43916
43917 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43918
43919         bootstrap: work also with 4-argument variant of AC_INIT
43920         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43921
43922 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43923
43924         Port test-getaddrinfo to Solaris.
43925         Problem reported by Bruno Haible in
43926         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43927         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43928         explanation of setting 'hints'.
43929         Don't reject an implementation merely because it returns EAI_SERVICE.
43930         (EAI_SERVICE): Define to 0 if not defined.
43931
43932 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43933
43934         The license of gnu-make and posix-shell is now "GPLed build tool".
43935         * modules/gnu-make (License): Likewise.
43936         * modules/posix-shell (License): Likewise.
43937
43938         New module posix-shell, for determining a POSIX shell
43939         or perhaps something that is close enough to a POSIX shell.
43940         * m4/posix-shell.m4: New file.
43941         * modules/posix-shell: New file.
43942
43943         * MODULES.html.sh: Mention new module.
43944
43945         New module gnu-make, for determining whether we're using GNU Make.
43946         * m4/gnu-make.m4: New file.
43947         * modules/gnu-make: New file.
43948         * MODULES.html.sh: Mention new module.
43949
43950 2007-11-14  Jim Meyering  <meyering@redhat.com>
43951
43952         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43953         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43954         use this macro to create a function _definition_.
43955         Remove useless "#undef ARGMATCH_DIE".
43956
43957 2007-11-14  Bruno Haible  <bruno@clisp.org>
43958
43959         * lib/config.charset: Update for OpenBSD 4.1.
43960         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43961
43962 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43963
43964         Document 64-bit #if problems in stdint.texi.
43965         * doc/headers/stdint.texi (stdint.h): Mention problems with
43966         64-bit-#if, and how to work around them.
43967
43968         Don't insist on 'long long int' support in the preprocessor.  It
43969         breaks too many things.  For example, PRIdMAX still uses a 'long
43970         long int' format with the latest Sun compiler, even though
43971         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43972         preprocessor problem.  This causes the latest coreutils to dump
43973         core on Solaris 10 sparc with the Sun C compiler.
43974         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43975         the troublesome expressions at configure-time, not at #if-time.
43976         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43977         preprocessor.
43978         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43979         compile-time C checks, done at 'configure'-time.
43980         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43981         * modules/inttypes (Makefile): Substitute the new symbols that
43982         gl_INTTYPES_H now generates.
43983         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43984
43985 2007-11-12  Bruno Haible  <bruno@clisp.org>
43986
43987         Tests for Unicode character classification functions.
43988
43989         * modules/unictype/bidicategory-byname-tests: New file.
43990         * modules/unictype/bidicategory-name-tests: New file.
43991         * modules/unictype/bidicategory-of-tests: New file.
43992         * modules/unictype/bidicategory-test-tests: New file.
43993         * modules/unictype/block-list-tests: New file.
43994         * modules/unictype/block-of-tests: New file.
43995         * modules/unictype/block-test-tests: New file.
43996         * modules/unictype/category-C-tests: New file.
43997         * modules/unictype/category-Cc-tests: New file.
43998         * modules/unictype/category-Cf-tests: New file.
43999         * modules/unictype/category-Cn-tests: New file.
44000         * modules/unictype/category-Co-tests: New file.
44001         * modules/unictype/category-Cs-tests: New file.
44002         * modules/unictype/category-L-tests: New file.
44003         * modules/unictype/category-Ll-tests: New file.
44004         * modules/unictype/category-Lm-tests: New file.
44005         * modules/unictype/category-Lo-tests: New file.
44006         * modules/unictype/category-Lt-tests: New file.
44007         * modules/unictype/category-Lu-tests: New file.
44008         * modules/unictype/category-M-tests: New file.
44009         * modules/unictype/category-Mc-tests: New file.
44010         * modules/unictype/category-Me-tests: New file.
44011         * modules/unictype/category-Mn-tests: New file.
44012         * modules/unictype/category-N-tests: New file.
44013         * modules/unictype/category-Nd-tests: New file.
44014         * modules/unictype/category-Nl-tests: New file.
44015         * modules/unictype/category-No-tests: New file.
44016         * modules/unictype/category-P-tests: New file.
44017         * modules/unictype/category-Pc-tests: New file.
44018         * modules/unictype/category-Pd-tests: New file.
44019         * modules/unictype/category-Pe-tests: New file.
44020         * modules/unictype/category-Pf-tests: New file.
44021         * modules/unictype/category-Pi-tests: New file.
44022         * modules/unictype/category-Po-tests: New file.
44023         * modules/unictype/category-Ps-tests: New file.
44024         * modules/unictype/category-S-tests: New file.
44025         * modules/unictype/category-Sc-tests: New file.
44026         * modules/unictype/category-Sk-tests: New file.
44027         * modules/unictype/category-Sm-tests: New file.
44028         * modules/unictype/category-So-tests: New file.
44029         * modules/unictype/category-Z-tests: New file.
44030         * modules/unictype/category-Zl-tests: New file.
44031         * modules/unictype/category-Zp-tests: New file.
44032         * modules/unictype/category-Zs-tests: New file.
44033         * modules/unictype/category-and-not-tests: New file.
44034         * modules/unictype/category-and-tests: New file.
44035         * modules/unictype/category-byname-tests: New file.
44036         * modules/unictype/category-name-tests: New file.
44037         * modules/unictype/category-none-tests: New file.
44038         * modules/unictype/category-of-tests: New file.
44039         * modules/unictype/category-or-tests: New file.
44040         * modules/unictype/category-test-withtable-tests: New file.
44041         * modules/unictype/combining-class-tests: New file.
44042         * modules/unictype/ctype-alnum-tests: New file.
44043         * modules/unictype/ctype-alpha-tests: New file.
44044         * modules/unictype/ctype-blank-tests: New file.
44045         * modules/unictype/ctype-cntrl-tests: New file.
44046         * modules/unictype/ctype-digit-tests: New file.
44047         * modules/unictype/ctype-graph-tests: New file.
44048         * modules/unictype/ctype-lower-tests: New file.
44049         * modules/unictype/ctype-print-tests: New file.
44050         * modules/unictype/ctype-punct-tests: New file.
44051         * modules/unictype/ctype-space-tests: New file.
44052         * modules/unictype/ctype-upper-tests: New file.
44053         * modules/unictype/ctype-xdigit-tests: New file.
44054         * modules/unictype/decimal-digit-tests: New file.
44055         * modules/unictype/digit-tests: New file.
44056         * modules/unictype/mirror-tests: New file.
44057         * modules/unictype/numeric-tests: New file.
44058         * modules/unictype/property-alphabetic-tests: New file.
44059         * modules/unictype/property-ascii-hex-digit-tests: New file.
44060         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44061         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44062         * modules/unictype/property-bidi-block-separator-tests: New file.
44063         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44064         * modules/unictype/property-bidi-common-separator-tests: New file.
44065         * modules/unictype/property-bidi-control-tests: New file.
44066         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44067         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44068         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44069         * modules/unictype/property-bidi-european-digit-tests: New file.
44070         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44071         * modules/unictype/property-bidi-left-to-right-tests: New file.
44072         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44073         * modules/unictype/property-bidi-other-neutral-tests: New file.
44074         * modules/unictype/property-bidi-pdf-tests: New file.
44075         * modules/unictype/property-bidi-segment-separator-tests: New file.
44076         * modules/unictype/property-bidi-whitespace-tests: New file.
44077         * modules/unictype/property-byname-tests: New file.
44078         * modules/unictype/property-combining-tests: New file.
44079         * modules/unictype/property-composite-tests: New file.
44080         * modules/unictype/property-currency-symbol-tests: New file.
44081         * modules/unictype/property-dash-tests: New file.
44082         * modules/unictype/property-decimal-digit-tests: New file.
44083         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44084         * modules/unictype/property-deprecated-tests: New file.
44085         * modules/unictype/property-diacritic-tests: New file.
44086         * modules/unictype/property-extender-tests: New file.
44087         * modules/unictype/property-format-control-tests: New file.
44088         * modules/unictype/property-grapheme-base-tests: New file.
44089         * modules/unictype/property-grapheme-extend-tests: New file.
44090         * modules/unictype/property-grapheme-link-tests: New file.
44091         * modules/unictype/property-hex-digit-tests: New file.
44092         * modules/unictype/property-hyphen-tests: New file.
44093         * modules/unictype/property-id-continue-tests: New file.
44094         * modules/unictype/property-id-start-tests: New file.
44095         * modules/unictype/property-ideographic-tests: New file.
44096         * modules/unictype/property-ids-binary-operator-tests: New file.
44097         * modules/unictype/property-ids-trinary-operator-tests: New file.
44098         * modules/unictype/property-ignorable-control-tests: New file.
44099         * modules/unictype/property-iso-control-tests: New file.
44100         * modules/unictype/property-join-control-tests: New file.
44101         * modules/unictype/property-left-of-pair-tests: New file.
44102         * modules/unictype/property-line-separator-tests: New file.
44103         * modules/unictype/property-logical-order-exception-tests: New file.
44104         * modules/unictype/property-lowercase-tests: New file.
44105         * modules/unictype/property-math-tests: New file.
44106         * modules/unictype/property-non-break-tests: New file.
44107         * modules/unictype/property-not-a-character-tests: New file.
44108         * modules/unictype/property-numeric-tests: New file.
44109         * modules/unictype/property-other-alphabetic-tests: New file.
44110         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44111         * modules/unictype/property-other-grapheme-extend-tests: New file.
44112         * modules/unictype/property-other-id-continue-tests: New file.
44113         * modules/unictype/property-other-id-start-tests: New file.
44114         * modules/unictype/property-other-lowercase-tests: New file.
44115         * modules/unictype/property-other-math-tests: New file.
44116         * modules/unictype/property-other-uppercase-tests: New file.
44117         * modules/unictype/property-paired-punctuation-tests: New file.
44118         * modules/unictype/property-paragraph-separator-tests: New file.
44119         * modules/unictype/property-pattern-syntax-tests: New file.
44120         * modules/unictype/property-pattern-white-space-tests: New file.
44121         * modules/unictype/property-private-use-tests: New file.
44122         * modules/unictype/property-punctuation-tests: New file.
44123         * modules/unictype/property-quotation-mark-tests: New file.
44124         * modules/unictype/property-radical-tests: New file.
44125         * modules/unictype/property-sentence-terminal-tests: New file.
44126         * modules/unictype/property-soft-dotted-tests: New file.
44127         * modules/unictype/property-space-tests: New file.
44128         * modules/unictype/property-terminal-punctuation-tests: New file.
44129         * modules/unictype/property-test-tests: New file.
44130         * modules/unictype/property-titlecase-tests: New file.
44131         * modules/unictype/property-unassigned-code-value-tests: New file.
44132         * modules/unictype/property-unified-ideograph-tests: New file.
44133         * modules/unictype/property-uppercase-tests: New file.
44134         * modules/unictype/property-variation-selector-tests: New file.
44135         * modules/unictype/property-white-space-tests: New file.
44136         * modules/unictype/property-xid-continue-tests: New file.
44137         * modules/unictype/property-xid-start-tests: New file.
44138         * modules/unictype/property-zero-width-tests: New file.
44139         * modules/unictype/scripts-tests: New file.
44140         * modules/unictype/syntax-c-ident-tests: New file.
44141         * modules/unictype/syntax-c-whitespace-tests: New file.
44142         * modules/unictype/syntax-java-ident-tests: New file.
44143         * modules/unictype/syntax-java-whitespace-tests: New file.
44144         * tests/unictype/test-bidi_byname.c: New file.
44145         * tests/unictype/test-bidi_name.c: New file.
44146         * tests/unictype/test-bidi_of.c: New file.
44147         * tests/unictype/test-bidi_test.c: New file.
44148         * tests/unictype/test-block_list.c: New file.
44149         * tests/unictype/test-block_of.c: New file.
44150         * tests/unictype/test-block_test.c: New file.
44151         * tests/unictype/test-categ_and.c: New file.
44152         * tests/unictype/test-categ_and_not.c: New file.
44153         * tests/unictype/test-categ_byname.c: New file.
44154         * tests/unictype/test-categ_name.c: New file.
44155         * tests/unictype/test-categ_none.c: New file.
44156         * tests/unictype/test-categ_of.c: New file.
44157         * tests/unictype/test-categ_or.c: New file.
44158         * tests/unictype/test-categ_test_withtable.c: New file.
44159         * tests/unictype/test-combining.c: New file.
44160         * tests/unictype/test-decdigit.c: New file.
44161         * tests/unictype/test-digit.c: New file.
44162         * tests/unictype/test-mirror.c: New file.
44163         * tests/unictype/test-numeric.c: New file.
44164         * tests/unictype/test-pr_byname.c: New file.
44165         * tests/unictype/test-pr_test.c: New file.
44166         * tests/unictype/test-predicate-part1.h: New file.
44167         * tests/unictype/test-predicate-part2.h: New file.
44168         * tests/unictype/test-scripts.c: New file.
44169         * tests/unictype/test-sy_c_ident.c: New file.
44170         * tests/unictype/test-sy_java_ident.c: New file.
44171
44172         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44173         for Unicode 5.0.0.
44174         * tests/unictype/test-categ_Cc.c: Likewise.
44175         * tests/unictype/test-categ_Cf.c: Likewise.
44176         * tests/unictype/test-categ_Cn.c: Likewise.
44177         * tests/unictype/test-categ_Co.c: Likewise.
44178         * tests/unictype/test-categ_Cs.c: Likewise.
44179         * tests/unictype/test-categ_L.c: Likewise.
44180         * tests/unictype/test-categ_Ll.c: Likewise.
44181         * tests/unictype/test-categ_Lm.c: Likewise.
44182         * tests/unictype/test-categ_Lo.c: Likewise.
44183         * tests/unictype/test-categ_Lt.c: Likewise.
44184         * tests/unictype/test-categ_Lu.c: Likewise.
44185         * tests/unictype/test-categ_M.c: Likewise.
44186         * tests/unictype/test-categ_Mc.c: Likewise.
44187         * tests/unictype/test-categ_Me.c: Likewise.
44188         * tests/unictype/test-categ_Mn.c: Likewise.
44189         * tests/unictype/test-categ_N.c: Likewise.
44190         * tests/unictype/test-categ_Nd.c: Likewise.
44191         * tests/unictype/test-categ_Nl.c: Likewise.
44192         * tests/unictype/test-categ_No.c: Likewise.
44193         * tests/unictype/test-categ_P.c: Likewise.
44194         * tests/unictype/test-categ_Pc.c: Likewise.
44195         * tests/unictype/test-categ_Pd.c: Likewise.
44196         * tests/unictype/test-categ_Pe.c: Likewise.
44197         * tests/unictype/test-categ_Pf.c: Likewise.
44198         * tests/unictype/test-categ_Pi.c: Likewise.
44199         * tests/unictype/test-categ_Po.c: Likewise.
44200         * tests/unictype/test-categ_Ps.c: Likewise.
44201         * tests/unictype/test-categ_S.c: Likewise.
44202         * tests/unictype/test-categ_Sc.c: Likewise.
44203         * tests/unictype/test-categ_Sk.c: Likewise.
44204         * tests/unictype/test-categ_Sm.c: Likewise.
44205         * tests/unictype/test-categ_So.c: Likewise.
44206         * tests/unictype/test-categ_Z.c: Likewise.
44207         * tests/unictype/test-categ_Zl.c: Likewise.
44208         * tests/unictype/test-categ_Zp.c: Likewise.
44209         * tests/unictype/test-categ_Zs.c: Likewise.
44210         * tests/unictype/test-ctype_alnum.c: Likewise.
44211         * tests/unictype/test-ctype_alpha.c: Likewise.
44212         * tests/unictype/test-ctype_blank.c: Likewise.
44213         * tests/unictype/test-ctype_cntrl.c: Likewise.
44214         * tests/unictype/test-ctype_digit.c: Likewise.
44215         * tests/unictype/test-ctype_graph.c: Likewise.
44216         * tests/unictype/test-ctype_lower.c: Likewise.
44217         * tests/unictype/test-ctype_print.c: Likewise.
44218         * tests/unictype/test-ctype_punct.c: Likewise.
44219         * tests/unictype/test-ctype_space.c: Likewise.
44220         * tests/unictype/test-ctype_upper.c: Likewise.
44221         * tests/unictype/test-ctype_xdigit.c: Likewise.
44222         * tests/unictype/test-decdigit.h: Likewise.
44223         * tests/unictype/test-digit.h: Likewise.
44224         * tests/unictype/test-numeric.h: Likewise.
44225         * tests/unictype/test-pr_alphabetic.c: Likewise.
44226         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44227         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44228         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44229         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44230         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44231         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44232         * tests/unictype/test-pr_bidi_control.c: Likewise.
44233         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44234         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44235         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44236         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44237         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44238         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44239         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44240         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44241         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44242         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44243         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44244         * tests/unictype/test-pr_combining.c: Likewise.
44245         * tests/unictype/test-pr_composite.c: Likewise.
44246         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44247         * tests/unictype/test-pr_dash.c: Likewise.
44248         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44249         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44250         * tests/unictype/test-pr_deprecated.c: Likewise.
44251         * tests/unictype/test-pr_diacritic.c: Likewise.
44252         * tests/unictype/test-pr_extender.c: Likewise.
44253         * tests/unictype/test-pr_format_control.c: Likewise.
44254         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44255         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44256         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44257         * tests/unictype/test-pr_hex_digit.c: Likewise.
44258         * tests/unictype/test-pr_hyphen.c: Likewise.
44259         * tests/unictype/test-pr_id_continue.c: Likewise.
44260         * tests/unictype/test-pr_id_start.c: Likewise.
44261         * tests/unictype/test-pr_ideographic.c: Likewise.
44262         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44263         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44264         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44265         * tests/unictype/test-pr_iso_control.c: Likewise.
44266         * tests/unictype/test-pr_join_control.c: Likewise.
44267         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44268         * tests/unictype/test-pr_line_separator.c: Likewise.
44269         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44270         * tests/unictype/test-pr_lowercase.c: Likewise.
44271         * tests/unictype/test-pr_math.c: Likewise.
44272         * tests/unictype/test-pr_non_break.c: Likewise.
44273         * tests/unictype/test-pr_not_a_character.c: Likewise.
44274         * tests/unictype/test-pr_numeric.c: Likewise.
44275         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44276         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44277         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44278         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44279         * tests/unictype/test-pr_other_id_start.c: Likewise.
44280         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44281         * tests/unictype/test-pr_other_math.c: Likewise.
44282         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44283         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44284         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44285         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44286         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44287         * tests/unictype/test-pr_private_use.c: Likewise.
44288         * tests/unictype/test-pr_punctuation.c: Likewise.
44289         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44290         * tests/unictype/test-pr_radical.c: Likewise.
44291         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44292         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44293         * tests/unictype/test-pr_space.c: Likewise.
44294         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44295         * tests/unictype/test-pr_titlecase.c: Likewise.
44296         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44297         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44298         * tests/unictype/test-pr_uppercase.c: Likewise.
44299         * tests/unictype/test-pr_variation_selector.c: Likewise.
44300         * tests/unictype/test-pr_white_space.c: Likewise.
44301         * tests/unictype/test-pr_xid_continue.c: Likewise.
44302         * tests/unictype/test-pr_xid_start.c: Likewise.
44303         * tests/unictype/test-pr_zero_width.c: Likewise.
44304         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44305         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44306
44307 2007-11-12  Bruno Haible  <bruno@clisp.org>
44308
44309         Unicode character classification functions.
44310         * lib/unictype.h: New file.
44311         * modules/unictype/base: New file.
44312         * modules/unictype/category-L: New file.
44313         * modules/unictype/category-Lu: New file.
44314         * modules/unictype/category-Ll: New file.
44315         * modules/unictype/category-Lt: New file.
44316         * modules/unictype/category-Lm: New file.
44317         * modules/unictype/category-Lo: New file.
44318         * modules/unictype/category-M: New file.
44319         * modules/unictype/category-Mn: New file.
44320         * modules/unictype/category-Mc: New file.
44321         * modules/unictype/category-Me: New file.
44322         * modules/unictype/category-N: New file.
44323         * modules/unictype/category-Nd: New file.
44324         * modules/unictype/category-Nl: New file.
44325         * modules/unictype/category-No: New file.
44326         * modules/unictype/category-P: New file.
44327         * modules/unictype/category-Pc: New file.
44328         * modules/unictype/category-Pd: New file.
44329         * modules/unictype/category-Ps: New file.
44330         * modules/unictype/category-Pe: New file.
44331         * modules/unictype/category-Pi: New file.
44332         * modules/unictype/category-Pf: New file.
44333         * modules/unictype/category-Po: New file.
44334         * modules/unictype/category-S: New file.
44335         * modules/unictype/category-Sm: New file.
44336         * modules/unictype/category-Sc: New file.
44337         * modules/unictype/category-Sk: New file.
44338         * modules/unictype/category-So: New file.
44339         * modules/unictype/category-Z: New file.
44340         * modules/unictype/category-Zs: New file.
44341         * modules/unictype/category-Zl: New file.
44342         * modules/unictype/category-Zp: New file.
44343         * modules/unictype/category-C: New file.
44344         * modules/unictype/category-Cc: New file.
44345         * modules/unictype/category-Cf: New file.
44346         * modules/unictype/category-Cs: New file.
44347         * modules/unictype/category-Co: New file.
44348         * modules/unictype/category-Cn: New file.
44349         * modules/unictype/category-or: New file.
44350         * modules/unictype/category-of: New file.
44351         * modules/unictype/category-test: New file.
44352         * modules/unictype/category-test-withtable: New file.
44353         * modules/unictype/category-byname: New file.
44354         * modules/unictype/category-none: New file.
44355         * modules/unictype/category-and: New file.
44356         * modules/unictype/category-and-not: New file.
44357         * modules/unictype/category-name: New file.
44358         * modules/unictype/combining-class: New file.
44359         * modules/unictype/category-all: New file.
44360         * modules/unictype/bidicategory-all: New file.
44361         * modules/unictype/bidicategory-byname: New file.
44362         * modules/unictype/bidicategory-name: New file.
44363         * modules/unictype/bidicategory-of: New file.
44364         * modules/unictype/bidicategory-test: New file.
44365         * modules/unictype/decimal-digit: New file.
44366         * modules/unictype/digit: New file.
44367         * modules/unictype/numeric: New file.
44368         * modules/unictype/mirror: New file.
44369         * modules/unictype/property-white-space: New file.
44370         * modules/unictype/property-alphabetic: New file.
44371         * modules/unictype/property-other-alphabetic: New file.
44372         * modules/unictype/property-not-a-character: New file.
44373         * modules/unictype/property-default-ignorable-code-point: New file.
44374         * modules/unictype/property-other-default-ignorable-code-point: New
44375         file.
44376         * modules/unictype/property-deprecated: New file.
44377         * modules/unictype/property-logical-order-exception: New file.
44378         * modules/unictype/property-variation-selector: New file.
44379         * modules/unictype/property-private-use: New file.
44380         * modules/unictype/property-unassigned-code-value: New file.
44381         * modules/unictype/property-uppercase: New file.
44382         * modules/unictype/property-other-uppercase: New file.
44383         * modules/unictype/property-lowercase: New file.
44384         * modules/unictype/property-other-lowercase: New file.
44385         * modules/unictype/property-titlecase: New file.
44386         * modules/unictype/property-soft-dotted: New file.
44387         * modules/unictype/property-id-start: New file.
44388         * modules/unictype/property-other-id-start: New file.
44389         * modules/unictype/property-id-continue: New file.
44390         * modules/unictype/property-other-id-continue: New file.
44391         * modules/unictype/property-xid-start: New file.
44392         * modules/unictype/property-xid-continue: New file.
44393         * modules/unictype/property-pattern-white-space: New file.
44394         * modules/unictype/property-pattern-syntax: New file.
44395         * modules/unictype/property-join-control: New file.
44396         * modules/unictype/property-grapheme-base: New file.
44397         * modules/unictype/property-grapheme-extend: New file.
44398         * modules/unictype/property-other-grapheme-extend: New file.
44399         * modules/unictype/property-grapheme-link: New file.
44400         * modules/unictype/property-bidi-control: New file.
44401         * modules/unictype/property-bidi-left-to-right: New file.
44402         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44403         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44404         * modules/unictype/property-bidi-european-digit: New file.
44405         * modules/unictype/property-bidi-eur-num-separator: New file.
44406         * modules/unictype/property-bidi-eur-num-terminator: New file.
44407         * modules/unictype/property-bidi-arabic-digit: New file.
44408         * modules/unictype/property-bidi-common-separator: New file.
44409         * modules/unictype/property-bidi-block-separator: New file.
44410         * modules/unictype/property-bidi-segment-separator: New file.
44411         * modules/unictype/property-bidi-whitespace: New file.
44412         * modules/unictype/property-bidi-non-spacing-mark: New file.
44413         * modules/unictype/property-bidi-boundary-neutral: New file.
44414         * modules/unictype/property-bidi-pdf: New file.
44415         * modules/unictype/property-bidi-embedding-or-override: New file.
44416         * modules/unictype/property-bidi-other-neutral: New file.
44417         * modules/unictype/property-hex-digit: New file.
44418         * modules/unictype/property-ascii-hex-digit: New file.
44419         * modules/unictype/property-ideographic: New file.
44420         * modules/unictype/property-unified-ideograph: New file.
44421         * modules/unictype/property-radical: New file.
44422         * modules/unictype/property-ids-binary-operator: New file.
44423         * modules/unictype/property-ids-trinary-operator: New file.
44424         * modules/unictype/property-zero-width: New file.
44425         * modules/unictype/property-space: New file.
44426         * modules/unictype/property-non-break: New file.
44427         * modules/unictype/property-iso-control: New file.
44428         * modules/unictype/property-format-control: New file.
44429         * modules/unictype/property-dash: New file.
44430         * modules/unictype/property-hyphen: New file.
44431         * modules/unictype/property-punctuation: New file.
44432         * modules/unictype/property-line-separator: New file.
44433         * modules/unictype/property-paragraph-separator: New file.
44434         * modules/unictype/property-quotation-mark: New file.
44435         * modules/unictype/property-sentence-terminal: New file.
44436         * modules/unictype/property-terminal-punctuation: New file.
44437         * modules/unictype/property-currency-symbol: New file.
44438         * modules/unictype/property-math: New file.
44439         * modules/unictype/property-other-math: New file.
44440         * modules/unictype/property-paired-punctuation: New file.
44441         * modules/unictype/property-left-of-pair: New file.
44442         * modules/unictype/property-combining: New file.
44443         * modules/unictype/property-composite: New file.
44444         * modules/unictype/property-decimal-digit: New file.
44445         * modules/unictype/property-numeric: New file.
44446         * modules/unictype/property-diacritic: New file.
44447         * modules/unictype/property-extender: New file.
44448         * modules/unictype/property-ignorable-control: New file.
44449         * modules/unictype/property-test: New file.
44450         * modules/unictype/property-byname: New file.
44451         * modules/unictype/property-all: New file.
44452         * modules/unictype/scripts: New file.
44453         * modules/unictype/scripts-all: New file.
44454         * modules/unictype/block-of: New file.
44455         * modules/unictype/block-test: New file.
44456         * modules/unictype/block-list: New file.
44457         * modules/unictype/block-all: New file.
44458         * modules/unictype/syntax-c-whitespace: New file.
44459         * modules/unictype/syntax-java-whitespace: New file.
44460         * modules/unictype/syntax-c-ident: New file.
44461         * modules/unictype/syntax-java-ident: New file.
44462         * modules/unictype/ctype-alnum: New file.
44463         * modules/unictype/ctype-alpha: New file.
44464         * modules/unictype/ctype-cntrl: New file.
44465         * modules/unictype/ctype-digit: New file.
44466         * modules/unictype/ctype-graph: New file.
44467         * modules/unictype/ctype-lower: New file.
44468         * modules/unictype/ctype-print: New file.
44469         * modules/unictype/ctype-punct: New file.
44470         * modules/unictype/ctype-space: New file.
44471         * modules/unictype/ctype-upper: New file.
44472         * modules/unictype/ctype-xdigit: New file.
44473         * modules/unictype/ctype-blank: New file.
44474         * lib/unictype/bidi_byname.c: New file.
44475         * lib/unictype/bidi_name.c: New file.
44476         * lib/unictype/bidi_of.c: New file.
44477         * lib/unictype/bidi_test.c: New file.
44478         * lib/unictype/bitmap.h: New file.
44479         * lib/unictype/block_test.c: New file.
44480         * lib/unictype/blocks.c: New file.
44481         * lib/unictype/categ_C.c: New file.
44482         * lib/unictype/categ_Cc.c: New file.
44483         * lib/unictype/categ_Cf.c: New file.
44484         * lib/unictype/categ_Cn.c: New file.
44485         * lib/unictype/categ_Co.c: New file.
44486         * lib/unictype/categ_Cs.c: New file.
44487         * lib/unictype/categ_L.c: New file.
44488         * lib/unictype/categ_Ll.c: New file.
44489         * lib/unictype/categ_Lm.c: New file.
44490         * lib/unictype/categ_Lo.c: New file.
44491         * lib/unictype/categ_Lt.c: New file.
44492         * lib/unictype/categ_Lu.c: New file.
44493         * lib/unictype/categ_M.c: New file.
44494         * lib/unictype/categ_Mc.c: New file.
44495         * lib/unictype/categ_Me.c: New file.
44496         * lib/unictype/categ_Mn.c: New file.
44497         * lib/unictype/categ_N.c: New file.
44498         * lib/unictype/categ_Nd.c: New file.
44499         * lib/unictype/categ_Nl.c: New file.
44500         * lib/unictype/categ_No.c: New file.
44501         * lib/unictype/categ_P.c: New file.
44502         * lib/unictype/categ_Pc.c: New file.
44503         * lib/unictype/categ_Pd.c: New file.
44504         * lib/unictype/categ_Pe.c: New file.
44505         * lib/unictype/categ_Pf.c: New file.
44506         * lib/unictype/categ_Pi.c: New file.
44507         * lib/unictype/categ_Po.c: New file.
44508         * lib/unictype/categ_Ps.c: New file.
44509         * lib/unictype/categ_S.c: New file.
44510         * lib/unictype/categ_Sc.c: New file.
44511         * lib/unictype/categ_Sk.c: New file.
44512         * lib/unictype/categ_Sm.c: New file.
44513         * lib/unictype/categ_So.c: New file.
44514         * lib/unictype/categ_Z.c: New file.
44515         * lib/unictype/categ_Zl.c: New file.
44516         * lib/unictype/categ_Zp.c: New file.
44517         * lib/unictype/categ_Zs.c: New file.
44518         * lib/unictype/categ_and.c: New file.
44519         * lib/unictype/categ_and_not.c: New file.
44520         * lib/unictype/categ_byname.c: New file.
44521         * lib/unictype/categ_name.c: New file.
44522         * lib/unictype/categ_none.c: New file.
44523         * lib/unictype/categ_of.c: New file.
44524         * lib/unictype/categ_or.c: New file.
44525         * lib/unictype/categ_test.c: New file.
44526         * lib/unictype/combining.c: New file.
44527         * lib/unictype/ctype_alnum.c: New file.
44528         * lib/unictype/ctype_alpha.c: New file.
44529         * lib/unictype/ctype_blank.c: New file.
44530         * lib/unictype/ctype_cntrl.c: New file.
44531         * lib/unictype/ctype_digit.c: New file.
44532         * lib/unictype/ctype_graph.c: New file.
44533         * lib/unictype/ctype_lower.c: New file.
44534         * lib/unictype/ctype_print.c: New file.
44535         * lib/unictype/ctype_punct.c: New file.
44536         * lib/unictype/ctype_space.c: New file.
44537         * lib/unictype/ctype_upper.c: New file.
44538         * lib/unictype/ctype_xdigit.c: New file.
44539         * lib/unictype/decdigit.c: New file.
44540         * lib/unictype/digit.c: New file.
44541         * lib/unictype/identsyntaxmap.h: New file.
44542         * lib/unictype/mirror.c: New file.
44543         * lib/unictype/numeric.c: New file.
44544         * lib/unictype/pr_alphabetic.c: New file.
44545         * lib/unictype/pr_ascii_hex_digit.c: New file.
44546         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44547         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44548         * lib/unictype/pr_bidi_block_separator.c: New file.
44549         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44550         * lib/unictype/pr_bidi_common_separator.c: New file.
44551         * lib/unictype/pr_bidi_control.c: New file.
44552         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44553         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44554         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44555         * lib/unictype/pr_bidi_european_digit.c: New file.
44556         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44557         * lib/unictype/pr_bidi_left_to_right.c: New file.
44558         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44559         * lib/unictype/pr_bidi_other_neutral.c: New file.
44560         * lib/unictype/pr_bidi_pdf.c: New file.
44561         * lib/unictype/pr_bidi_segment_separator.c: New file.
44562         * lib/unictype/pr_bidi_whitespace.c: New file.
44563         * lib/unictype/pr_byname.c: New file.
44564         * lib/unictype/pr_byname.gperf: New file.
44565         * lib/unictype/pr_combining.c: New file.
44566         * lib/unictype/pr_composite.c: New file.
44567         * lib/unictype/pr_currency_symbol.c: New file.
44568         * lib/unictype/pr_dash.c: New file.
44569         * lib/unictype/pr_decimal_digit.c: New file.
44570         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44571         * lib/unictype/pr_deprecated.c: New file.
44572         * lib/unictype/pr_diacritic.c: New file.
44573         * lib/unictype/pr_extender.c: New file.
44574         * lib/unictype/pr_format_control.c: New file.
44575         * lib/unictype/pr_grapheme_base.c: New file.
44576         * lib/unictype/pr_grapheme_extend.c: New file.
44577         * lib/unictype/pr_grapheme_link.c: New file.
44578         * lib/unictype/pr_hex_digit.c: New file.
44579         * lib/unictype/pr_hyphen.c: New file.
44580         * lib/unictype/pr_id_continue.c: New file.
44581         * lib/unictype/pr_id_start.c: New file.
44582         * lib/unictype/pr_ideographic.c: New file.
44583         * lib/unictype/pr_ids_binary_operator.c: New file.
44584         * lib/unictype/pr_ids_trinary_operator.c: New file.
44585         * lib/unictype/pr_ignorable_control.c: New file.
44586         * lib/unictype/pr_iso_control.c: New file.
44587         * lib/unictype/pr_join_control.c: New file.
44588         * lib/unictype/pr_left_of_pair.c: New file.
44589         * lib/unictype/pr_line_separator.c: New file.
44590         * lib/unictype/pr_logical_order_exception.c: New file.
44591         * lib/unictype/pr_lowercase.c: New file.
44592         * lib/unictype/pr_math.c: New file.
44593         * lib/unictype/pr_non_break.c: New file.
44594         * lib/unictype/pr_not_a_character.c: New file.
44595         * lib/unictype/pr_numeric.c: New file.
44596         * lib/unictype/pr_other_alphabetic.c: New file.
44597         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44598         * lib/unictype/pr_other_grapheme_extend.c: New file.
44599         * lib/unictype/pr_other_id_continue.c: New file.
44600         * lib/unictype/pr_other_id_start.c: New file.
44601         * lib/unictype/pr_other_lowercase.c: New file.
44602         * lib/unictype/pr_other_math.c: New file.
44603         * lib/unictype/pr_other_uppercase.c: New file.
44604         * lib/unictype/pr_paired_punctuation.c: New file.
44605         * lib/unictype/pr_paragraph_separator.c: New file.
44606         * lib/unictype/pr_pattern_syntax.c: New file.
44607         * lib/unictype/pr_pattern_white_space.c: New file.
44608         * lib/unictype/pr_private_use.c: New file.
44609         * lib/unictype/pr_punctuation.c: New file.
44610         * lib/unictype/pr_quotation_mark.c: New file.
44611         * lib/unictype/pr_radical.c: New file.
44612         * lib/unictype/pr_sentence_terminal.c: New file.
44613         * lib/unictype/pr_soft_dotted.c: New file.
44614         * lib/unictype/pr_space.c: New file.
44615         * lib/unictype/pr_terminal_punctuation.c: New file.
44616         * lib/unictype/pr_test.c: New file.
44617         * lib/unictype/pr_titlecase.c: New file.
44618         * lib/unictype/pr_unassigned_code_value.c: New file.
44619         * lib/unictype/pr_unified_ideograph.c: New file.
44620         * lib/unictype/pr_uppercase.c: New file.
44621         * lib/unictype/pr_variation_selector.c: New file.
44622         * lib/unictype/pr_white_space.c: New file.
44623         * lib/unictype/pr_xid_continue.c: New file.
44624         * lib/unictype/pr_xid_start.c: New file.
44625         * lib/unictype/pr_zero_width.c: New file.
44626         * lib/unictype/scripts.c: New file.
44627         * lib/unictype/sy_c_ident.c: New file.
44628         * lib/unictype/sy_c_whitespace.c: New file.
44629         * lib/unictype/sy_java_ident.c: New file.
44630         * lib/unictype/sy_java_whitespace.c: New file.
44631
44632         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44633         Unicode 5.0.0.
44634         * lib/unictype/blocks.h: Likewise.
44635         * lib/unictype/categ_C.h: Likewise.
44636         * lib/unictype/categ_Cc.h: Likewise.
44637         * lib/unictype/categ_Cf.h: Likewise.
44638         * lib/unictype/categ_Cn.h: Likewise.
44639         * lib/unictype/categ_Co.h: Likewise.
44640         * lib/unictype/categ_Cs.h: Likewise.
44641         * lib/unictype/categ_L.h: Likewise.
44642         * lib/unictype/categ_Ll.h: Likewise.
44643         * lib/unictype/categ_Lm.h: Likewise.
44644         * lib/unictype/categ_Lo.h: Likewise.
44645         * lib/unictype/categ_Lt.h: Likewise.
44646         * lib/unictype/categ_Lu.h: Likewise.
44647         * lib/unictype/categ_M.h: Likewise.
44648         * lib/unictype/categ_Mc.h: Likewise.
44649         * lib/unictype/categ_Me.h: Likewise.
44650         * lib/unictype/categ_Mn.h: Likewise.
44651         * lib/unictype/categ_N.h: Likewise.
44652         * lib/unictype/categ_Nd.h: Likewise.
44653         * lib/unictype/categ_Nl.h: Likewise.
44654         * lib/unictype/categ_No.h: Likewise.
44655         * lib/unictype/categ_P.h: Likewise.
44656         * lib/unictype/categ_Pc.h: Likewise.
44657         * lib/unictype/categ_Pd.h: Likewise.
44658         * lib/unictype/categ_Pe.h: Likewise.
44659         * lib/unictype/categ_Pf.h: Likewise.
44660         * lib/unictype/categ_Pi.h: Likewise.
44661         * lib/unictype/categ_Po.h: Likewise.
44662         * lib/unictype/categ_Ps.h: Likewise.
44663         * lib/unictype/categ_S.h: Likewise.
44664         * lib/unictype/categ_Sc.h: Likewise.
44665         * lib/unictype/categ_Sk.h: Likewise.
44666         * lib/unictype/categ_Sm.h: Likewise.
44667         * lib/unictype/categ_So.h: Likewise.
44668         * lib/unictype/categ_Z.h: Likewise.
44669         * lib/unictype/categ_Zl.h: Likewise.
44670         * lib/unictype/categ_Zp.h: Likewise.
44671         * lib/unictype/categ_Zs.h: Likewise.
44672         * lib/unictype/categ_of.h: Likewise.
44673         * lib/unictype/combining.h: Likewise.
44674         * lib/unictype/ctype_alnum.h: Likewise.
44675         * lib/unictype/ctype_alpha.h: Likewise.
44676         * lib/unictype/ctype_blank.h: Likewise.
44677         * lib/unictype/ctype_cntrl.h: Likewise.
44678         * lib/unictype/ctype_digit.h: Likewise.
44679         * lib/unictype/ctype_graph.h: Likewise.
44680         * lib/unictype/ctype_lower.h: Likewise.
44681         * lib/unictype/ctype_print.h: Likewise.
44682         * lib/unictype/ctype_punct.h: Likewise.
44683         * lib/unictype/ctype_space.h: Likewise.
44684         * lib/unictype/ctype_upper.h: Likewise.
44685         * lib/unictype/ctype_xdigit.h: Likewise.
44686         * lib/unictype/decdigit.h: Likewise.
44687         * lib/unictype/digit.h: Likewise.
44688         * lib/unictype/mirror.h: Likewise.
44689         * lib/unictype/numeric.h: Likewise.
44690         * lib/unictype/pr_alphabetic.h: Likewise.
44691         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44692         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44693         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44694         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44695         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44696         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44697         * lib/unictype/pr_bidi_control.h: Likewise.
44698         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44699         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44700         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44701         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44702         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44703         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44704         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44705         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44706         * lib/unictype/pr_bidi_pdf.h: Likewise.
44707         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44708         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44709         * lib/unictype/pr_combining.h: Likewise.
44710         * lib/unictype/pr_composite.h: Likewise.
44711         * lib/unictype/pr_currency_symbol.h: Likewise.
44712         * lib/unictype/pr_dash.h: Likewise.
44713         * lib/unictype/pr_decimal_digit.h: Likewise.
44714         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44715         * lib/unictype/pr_deprecated.h: Likewise.
44716         * lib/unictype/pr_diacritic.h: Likewise.
44717         * lib/unictype/pr_extender.h: Likewise.
44718         * lib/unictype/pr_format_control.h: Likewise.
44719         * lib/unictype/pr_grapheme_base.h: Likewise.
44720         * lib/unictype/pr_grapheme_extend.h: Likewise.
44721         * lib/unictype/pr_grapheme_link.h: Likewise.
44722         * lib/unictype/pr_hex_digit.h: Likewise.
44723         * lib/unictype/pr_hyphen.h: Likewise.
44724         * lib/unictype/pr_id_continue.h: Likewise.
44725         * lib/unictype/pr_id_start.h: Likewise.
44726         * lib/unictype/pr_ideographic.h: Likewise.
44727         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44728         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44729         * lib/unictype/pr_ignorable_control.h: Likewise.
44730         * lib/unictype/pr_iso_control.h: Likewise.
44731         * lib/unictype/pr_join_control.h: Likewise.
44732         * lib/unictype/pr_left_of_pair.h: Likewise.
44733         * lib/unictype/pr_line_separator.h: Likewise.
44734         * lib/unictype/pr_logical_order_exception.h: Likewise.
44735         * lib/unictype/pr_lowercase.h: Likewise.
44736         * lib/unictype/pr_math.h: Likewise.
44737         * lib/unictype/pr_non_break.h: Likewise.
44738         * lib/unictype/pr_not_a_character.h: Likewise.
44739         * lib/unictype/pr_numeric.h: Likewise.
44740         * lib/unictype/pr_other_alphabetic.h: Likewise.
44741         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44742         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44743         * lib/unictype/pr_other_id_continue.h: Likewise.
44744         * lib/unictype/pr_other_id_start.h: Likewise.
44745         * lib/unictype/pr_other_lowercase.h: Likewise.
44746         * lib/unictype/pr_other_math.h: Likewise.
44747         * lib/unictype/pr_other_uppercase.h: Likewise.
44748         * lib/unictype/pr_paired_punctuation.h: Likewise.
44749         * lib/unictype/pr_paragraph_separator.h: Likewise.
44750         * lib/unictype/pr_pattern_syntax.h: Likewise.
44751         * lib/unictype/pr_pattern_white_space.h: Likewise.
44752         * lib/unictype/pr_private_use.h: Likewise.
44753         * lib/unictype/pr_punctuation.h: Likewise.
44754         * lib/unictype/pr_quotation_mark.h: Likewise.
44755         * lib/unictype/pr_radical.h: Likewise.
44756         * lib/unictype/pr_sentence_terminal.h: Likewise.
44757         * lib/unictype/pr_soft_dotted.h: Likewise.
44758         * lib/unictype/pr_space.h: Likewise.
44759         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44760         * lib/unictype/pr_titlecase.h: Likewise.
44761         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44762         * lib/unictype/pr_unified_ideograph.h: Likewise.
44763         * lib/unictype/pr_uppercase.h: Likewise.
44764         * lib/unictype/pr_variation_selector.h: Likewise.
44765         * lib/unictype/pr_white_space.h: Likewise.
44766         * lib/unictype/pr_xid_continue.h: Likewise.
44767         * lib/unictype/pr_xid_start.h: Likewise.
44768         * lib/unictype/pr_zero_width.h: Likewise.
44769         * lib/unictype/scripts.h: Likewise.
44770         * lib/unictype/scripts_byname.gperf: Likewise.
44771         * lib/unictype/sy_c_ident.h: Likewise.
44772         * lib/unictype/sy_c_whitespace.h: Likewise.
44773         * lib/unictype/sy_java_ident.h: Likewise.
44774         * lib/unictype/sy_java_whitespace.h: Likewise.
44775
44776         * lib/unictype/Makefile: New file.
44777         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44778         glibc.
44779         * lib/unictype/3level.h: New file, copied from glibc.
44780         * lib/unictype/3levelbit.h: New file.
44781
44782 2007-11-11  Bruno Haible  <bruno@clisp.org>
44783
44784         * modules/gperf: New file.
44785         * modules/iconv_open (Depends-on): Add it.
44786         (Makefile.am): Remove the GPERF definition.
44787
44788 2007-11-11  Bruno Haible  <bruno@clisp.org>
44789
44790         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44791         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44792
44793 2007-11-11  Bruno Haible  <bruno@clisp.org>
44794
44795         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44796         (usage): Remove function.
44797
44798 2007-11-11  Bruno Haible  <bruno@clisp.org>
44799
44800         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44801         gl_FUNC_CEILF_LIBS.
44802         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44803         gl_FUNC_CEIL_LIBS.
44804         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44805         gl_FUNC_CEILL_LIBS.
44806         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44807         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44808         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44809
44810 2007-11-11  Bruno Haible  <bruno@clisp.org>
44811
44812         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44813         roundf were declared but do not exist on functions.
44814         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44815         roundl were declared but do not exist on functions.
44816         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44817         HAVE_FLOORL_AND_CEILL, respectively.
44818         Needed for Sun C on Solaris 10.
44819
44820 2007-11-11  Bruno Haible  <bruno@clisp.org>
44821
44822         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44823         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44824         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44825         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44826         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44827         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44828         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44829         HAVE_DECL_ROUNDF.
44830         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44831         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44833         of HAVE_DECL_ROUND*.
44834         * modules/math (Makefile.am): Update.
44835
44836 2007-11-10  Bruno Haible  <bruno@clisp.org>
44837
44838         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44839         ptrdiff_t as m4/intl.m4.
44840
44841 2007-11-10  Jim Meyering  <meyering@redhat.com>
44842
44843         Avoid link failure for the argmatch test.
44844         * tests/test-argmatch.c (usage): Define function to avoid a link
44845         failure: argmatch_die requires a usage function.
44846
44847 2007-11-09  Bruno Haible  <bruno@clisp.org>
44848
44849         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44850         * doc/functions/vsnprintf.texi: Likewise.
44851         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44852         with a size argument < 2.
44853
44854 2007-11-09  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44857         buffer. Fixes an inefficiency introduced on 2007-11-03.
44858
44859 2007-11-09  Bruno Haible  <bruno@clisp.org>
44860
44861         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44862         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44863
44864 2007-11-08  Jim Meyering  <meyering@redhat.com>
44865
44866         Change cache variable name prefix "jm_" to "gl_" everywhere.
44867         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44868         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44869         * m4/uptime.m4: s/gl_/jm_/
44870
44871 2007-11-07  Bruno Haible  <bruno@clisp.org>
44872
44873         Update to GNU gettext 0.17.
44874         * m4/intl.m4: Update to GNU gettext 0.17.
44875         * m4/po.m4: Likewise.
44876         * modules/gettext (Files): Remove m4/ulonglong.m4.
44877         (configure.ac): Require gettext infrastructure from version 0.17.
44878
44879 2007-11-06  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44882         symbolic values are not defined in a public header.
44883         * lib/freadable.c (freadable) [QNX]: Likewise.
44884         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44885         * lib/freading.c (freading) [QNX]: Likewise.
44886         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44887         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44888         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44889         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44890         Reported by Alain Magloire.
44891
44892         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44893
44894 2007-11-05  Bruno Haible  <bruno@clisp.org>
44895
44896         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44897         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44898         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44899         Reported by Eric Blake.
44900
44901 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44902             Bruno Haible  <bruno@clisp.org>
44903
44904         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44905         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44906         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44907         (malloc): Undefine also before including <stdlib.h>.
44908         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44909         Needed on OSF/1 4.0.
44910
44911 2007-11-05  Jim Meyering  <meyering@redhat.com>
44912
44913         git-version-gen: sync from coreutils.
44914         * build-aux/git-version-gen: Add comments.
44915         Change the first '-' to '.' in the snapshot version string,
44916         e.g., 6.9-377-08144 -> 6.9.377-08144
44917         Remove first parameter.
44918         Don't declare a version "-dirty" merely because a time
44919         stamp has changed.
44920
44921 2007-11-04  Bruno Haible  <bruno@clisp.org>
44922
44923         * lib/lock.h: Protect all macro definitions containing an 'if'
44924         statement through a "do { ... } while (0)".
44925         * lib/tls.h: Likewise.
44926
44927 2007-11-04  Bruno Haible  <bruno@clisp.org>
44928
44929         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44930
44931 2007-11-04  Bruno Haible  <bruno@clisp.org>
44932
44933         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44934         * modules/fprintf-posix (Depends-on): Add nocrash.
44935         * modules/snprintf-posix (Depends-on): Likewise.
44936         * modules/sprintf-posix (Depends-on): Likewise.
44937         * modules/vasnprintf-posix (Depends-on): Likewise.
44938         * modules/vasprintf-posix (Depends-on): Likewise.
44939         * modules/vfprintf-posix (Depends-on): Likewise.
44940         * modules/vsnprintf-posix (Depends-on): Likewise.
44941         * modules/vsprintf-posix (Depends-on): Likewise.
44942         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44943         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44944         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44945         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44946         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44947         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44948         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44949
44950 2007-11-04  Bruno Haible  <bruno@clisp.org>
44951
44952         * modules/nocrash: New file.
44953         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44954         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44955
44956 2007-11-04  Bruno Haible  <bruno@clisp.org>
44957
44958         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44959         precision handling.
44960         * tests/test-vasprintf-posix.c (test_function): Likewise.
44961         * tests/test-snprintf-posix.h (test_function): Likewise.
44962         * tests/test-sprintf-posix.h (test_function): Likewise.
44963
44964         Fix *printf behaviour for large precisions on mingw and BeOS.
44965         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44966         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44968         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44970         gl_PRINTF_PRECISION and test its result. Invoke
44971         gl_PREREQ_VASNPRINTF_PRECISION.
44972         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44973         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44979         * doc/functions/fprintf.texi: Update.
44980         * doc/functions/printf.texi: Update.
44981         * doc/functions/snprintf.texi: Update.
44982         * doc/functions/sprintf.texi: Update.
44983         * doc/functions/vfprintf.texi: Update.
44984         * doc/functions/vprintf.texi: Update.
44985         * doc/functions/vsnprintf.texi: Update.
44986         * doc/functions/vsprintf.texi: Update.
44987
44988 2007-11-04  Bruno Haible  <bruno@clisp.org>
44989
44990         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44991
44992 2007-11-04  Bruno Haible  <bruno@clisp.org>
44993
44994         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44995         Reported by Sylvain Beucler <beuc@gnu.org>.
44996
44997 2007-11-03  Bruno Haible  <bruno@clisp.org>
44998
44999         * tests/test-fprintf-posix2.sh: New file.
45000         * tests/test-fprintf-posix2.c: New file.
45001         * modules/fprintf-posix-tests (Files): Add them.
45002         (TESTS): Add test-fprintf-posix2.sh.
45003         (configure.ac): Check for getrlimit and setrlimit.
45004         (check_PROGRAMS): Add test-fprintf-posix2.
45005
45006         * tests/test-printf-posix2.sh: New file.
45007         * tests/test-printf-posix2.c: New file.
45008         * modules/printf-posix-tests (Files): Add them.
45009         (TESTS): Add test-printf-posix2.sh.
45010         (configure.ac): Check for getrlimit and setrlimit.
45011         (check_PROGRAMS): Add test-printf-posix2.
45012
45013         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45014         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45015         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45016         (decode_double): New function, copied from decode_long_double.
45017         (scale10_round_decimal_decoded): New function, extracted from
45018         scale10_round_decimal_long_double.
45019         (scale10_round_decimal_long_double): Use it.
45020         (scale10_round_decimal_double): New function.
45021         (floorlog10): New function.
45022         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45023         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45024         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45026         gl_PRINTF_ENOMEM and test its result. Invoke
45027         gl_PREREQ_VASNPRINTF_ENOMEM.
45028         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45029         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45031         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45032         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45033         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45034         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45035         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45036         * modules/snprintf-posix (Depends-on): Likewise.
45037         * modules/sprintf-posix (Depends-on): Likewise.
45038         * modules/vasnprintf-posix (Depends-on): Likewise.
45039         * modules/vasprintf-posix (Depends-on): Likewise.
45040         * modules/vfprintf-posix (Depends-on): Likewise.
45041         * modules/vsnprintf-posix (Depends-on): Likewise.
45042         * modules/vsprintf-posix (Depends-on): Likewise.
45043         * doc/functions/fprintf.texi: Update.
45044         * doc/functions/printf.texi: Update.
45045         * doc/functions/snprintf.texi: Update.
45046         * doc/functions/sprintf.texi: Update.
45047         * doc/functions/vfprintf.texi: Update.
45048         * doc/functions/vprintf.texi: Update.
45049         * doc/functions/vsnprintf.texi: Update.
45050         * doc/functions/vsprintf.texi: Update.
45051
45052 2007-11-03  Bruno Haible  <bruno@clisp.org>
45053
45054         * modules/frexp-nolibm-tests: New file.
45055
45056         * modules/frexp-nolibm: New file.
45057         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45058
45059 2007-11-03  Bruno Haible  <bruno@clisp.org>
45060
45061         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45062         value is C99 compliant.
45063         Needed for OSF/1 5.1.
45064
45065 2007-11-03  Bruno Haible  <bruno@clisp.org>
45066
45067         Fix out-of-memory handling of vasnprintf.
45068         * lib/printf-parse.c: Include <errno.h>.
45069         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45070         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45071         is already set.
45072
45073 2007-11-02  Eric Blake  <ebb9@byu.net>
45074
45075         Fix tests on cygwin.
45076         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45077
45078 2007-11-01  Bruno Haible  <bruno@clisp.org>
45079
45080         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45081         warning.
45082         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45083         needed for POSIX compatibility.
45084
45085 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45086
45087         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45088         for compatibility with GNU.
45089
45090 2007-11-01  Bruno Haible  <bruno@clisp.org>
45091
45092         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45093         (putenv): Renamed from rpl_putenv. Change argument type from
45094         'const char *' to 'char *'.
45095         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45096         of defining putenv in config.h, just set REPLACE_PUTENV.
45097         * modules/putenv (Depends-on): Add stdlib.
45098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45099         (Include): Use <stdlib.h>.
45100         * lib/stdlib.in.h (putenv): New declaration.
45101         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45102         REPLACE_PUTENV.
45103         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45104         REPLACE_PUTENV.
45105         Needed for MacOS X 10.5.0.
45106         Reported by Peter O'Gorman <peter@pogma.com>.
45107
45108 2007-11-01  Jim Meyering  <meyering@redhat.com>
45109
45110         Treat an empty date string exactly like "0".
45111         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45112         if the remaining date string (to be parsed) is empty, use "0".
45113         Reported by Mischa Molhoek and discussed in this thread:
45114         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45115
45116 2007-10-31  Bruno Haible  <bruno@clisp.org>
45117
45118         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45119         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45120         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45121         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45122         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45123         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45124
45125 2007-10-31  Bruno Haible  <bruno@clisp.org>
45126
45127         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45128         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45129         (AC_TYPE_LONG_LONG_INT): Use it.
45130         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45131         it as well.
45132         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45133         to m4/longlong.m4.
45134         * modules/stdint (Files): Remove m4/ulonglong.m4.
45135         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45136         m4/ulonglong.m4.
45137         * modules/strtoumax (Files): Likewise.
45138
45139 2007-10-30  Bruno Haible  <bruno@clisp.org>
45140
45141         * modules/xvasprintf-posix: New file.
45142         Suggested by Eric Blake.
45143
45144 2007-10-30  Bruno Haible  <bruno@clisp.org>
45145
45146         * modules/xprintf-posix-tests: New file.
45147         * tests/test-xprintf-posix.sh: New file.
45148         * tests/test-xprintf-posix.c: New file.
45149         * tests/test-xfprintf-posix.c: New file.
45150
45151         * modules/xprintf-posix: New file.
45152
45153 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45154
45155         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45156         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45157         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45158
45159 2007-10-29  Bruno Haible  <bruno@clisp.org>
45160
45161         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45162         contain the special marker '_cv_'.
45163         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45164         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45165         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45166         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45167         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45168         Reported by Ralf Wildenhues.
45169
45170 2007-10-29  Bruno Haible  <bruno@clisp.org>
45171
45172         * gnulib-tool (func_import): When --lgpl is not specified, set
45173         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45174         GPLv3.
45175         Reported by Simon Josefsson.
45176
45177 2007-10-28  Bruno Haible  <bruno@clisp.org>
45178
45179         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45180         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45181         HAVE_DECL_ISFINITE.
45182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45183         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45184         HAVE_DECL_ISFINITE.
45185
45186 2007-10-28  Bruno Haible  <bruno@clisp.org>
45187
45188         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45189         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45190
45191 2007-10-28  Bruno Haible  <bruno@clisp.org>
45192
45193         Fix link errors with Sun C 5.0 on Solaris 10.
45194         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45195         function is declared but not present in the compiler's libm.
45196         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45197         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45198         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45199         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45200         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45201         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45202         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45204         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45205         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45206         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45207         HAVE_DECL_FLOORL.
45208
45209 2007-10-28  Bruno Haible  <bruno@clisp.org>
45210
45211         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45212         gl_FUNC_FLOORL. Cache the result.
45213         (gl_FUNC_FLOORL): Use it.
45214         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45215         gl_FUNC_CEILL. Cache the result.
45216         (gl_FUNC_CEILL): Use it.
45217
45218         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45219         gl_FUNC_FLOOR. Cache the result.
45220         (gl_FUNC_FLOOR): Use it.
45221         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45222         gl_FUNC_CEIL. Cache the result.
45223         (gl_FUNC_CEIL): Use it.
45224
45225         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45226         gl_FUNC_FLOORF. Cache the result.
45227         (gl_FUNC_FLOORF): Use it.
45228         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45229         gl_FUNC_CEILF. Cache the result.
45230         (gl_FUNC_CEILF): Use it.
45231
45232 2007-10-28  Bruno Haible  <bruno@clisp.org>
45233
45234         * gnulib-tool: Allow specifying the LGPL version number through
45235         --lgpl=2 or --lgpl=3.
45236         (func_usage): Document --lgpl with argument.
45237         Handle --lgpl=... arguments.
45238         (func_import): Recognize also gl_LGPL calls with an argument. When
45239         --lgpl=2 is used and the module's license is just LGPL, report an
45240         error. Set sed_transform_lib_file according to the lgpl variable. In
45241         the generated files, use --lgpl or gl_LGPL invocations with argument,
45242         if necessary.
45243         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45244         an LGPv2+ license.
45245         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45246         gl_LGPL macro.
45247
45248 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45249             Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45252         (u16_uctomb_aux): Likewise.
45253         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45254         !HAVE_INLINE.
45255         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45256
45257 2007-10-28  Bruno Haible  <bruno@clisp.org>
45258
45259         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45260         Invoke AM_GETTEXT_OPTION if it exists.
45261         * modules/vasprintf: Likewise.
45262         * modules/verror: Likewise.
45263         * modules/xprintf: Likewise.
45264         * modules/xvasprintf: Likewise.
45265
45266 2007-10-27  Ben Pfaff  <blp@gnu.org>
45267
45268         * lib/math.in.h: Define isfinite macro and prototypes for
45269         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45270         implementations.
45271         * m4/math_h.m4: New substitutions for isfinite module.
45272         * lib/isfinite.c: New file.
45273         * m4/isfinite.m4: New file.
45274         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45275         * modules/isfinite: New file.
45276         * modules/isfinite-tests: New file.
45277         * tests/tests-isfinite.c: New file.
45278         * doc/functions/isfinite.texi: Mention isfinite module.
45279         * MODULES.html.sh: Mention new module.
45280
45281 2007-10-27  Ben Pfaff  <blp@gnu.org>
45282
45283         Ralf Wildenhues reported that Tru64 4.0D declares the round
45284         functions but does not have definitions.
45285         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45286         cannot be found in any library, set the output variable to
45287         "missing" instead of "".
45288         * m4/round.m4: Also use our substitute if we cannot find round in
45289         any library, even if it is declared.
45290         * m4/roundf.m4: Likewise for roundf.
45291         * m4/roundl.m4: Likewise for roundl.
45292         * lib/math.in.h: Undefine roundf, round, roundl before defining
45293         their replacements, to allow for hypothetical systems where these
45294         may be defined as macros but not available in libraries.
45295
45296 2007-10-27  Bruno Haible  <bruno@clisp.org>
45297
45298         * doc/gnulib.texi: Invoke @firstparagraphindent.
45299         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45300         changes in gnulib.
45301         (Source changes): New section.
45302
45303 2007-10-26  Bruno Haible  <bruno@clisp.org>
45304
45305         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45306         borrowed from autoconf.
45307
45308 2007-10-26  Bruno Haible  <bruno@clisp.org>
45309
45310         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45311         strerror returned the empty string. Needed on HP-UX 11.00.
45312
45313 2007-10-24  Micah Cowan  <micah@cowan.name>
45314
45315         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45316         * build-aux/bootstrap: Remove support for now-unnecessary option,
45317         --cvs-user, and envvars CVS_USER, CVS_RSH.
45318
45319 2007-10-24  Jim Meyering  <meyering@redhat.com>
45320
45321         Avoid diagnostics from sha1sum when there is no cached checksum.
45322         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45323         if the po.s1 file hasn't been created yet.
45324
45325         * build-aux/bootstrap: Sync from coreutils:
45326         2007-10-24  Jim Meyering  <meyering@redhat.com>
45327         Get gnulib from the git repository, not from an obsolete cvs one.
45328         * build-aux/bootstrap: Suggestion from Micah Cowan.
45329         2007-10-04  Jim Meyering  <jim@meyering.net>
45330         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45331         (update_po_files): Work also when there are no .po files in po/.
45332
45333 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45334
45335         * README: Append ".git" to git and cg examples.
45336         Problem reported by Benoit Sigoure.
45337
45338 2007-10-23  Micah Cowan  <micah@cowan.name>
45339
45340         * users.txt: Add wget.
45341
45342 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45343
45344         Fix linking of some unistdio tests on FreeBSD.
45345         * modules/unistdio/u16-vsnprintf-tests
45346         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45347         * modules/unistdio/u16-vsprintf-tests
45348         (test_u16_vsnprintf1_LDADD): Likewise.
45349         * modules/unistdio/u32-vsnprintf-tests
45350         (test_u32_vsnprintf1_LDADD): Likewise.
45351         * modules/unistdio/u32-vsprintf-tests
45352         (test_u32_vsprintf1_LDADD): Likewise.
45353         * modules/unistdio/u8-vsnprintf-tests
45354         (test_u8_vsnprintf1_LDADD): Likewise.
45355         * modules/unistdio/u8-vsprintf-tests
45356         (test_u8_vsprintf1_LDADD): Likewise.
45357         * modules/unistdio/ulc-vsnprintf-tests
45358         (test_ulc_vsnprintf1_LDADD): Likewise.
45359         * modules/unistdio/ulc-vsprintf-tests
45360         (test_ulc_vsprintf1_LDADD): Likewise.
45361
45362         Fix linking of some uniconv tests on FreeBSD.
45363         * modules/uniconv/u16-conv-from-enc-tests
45364         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45365         * modules/uniconv/u16-conv-to-enc-tests
45366         (test_u16_conv_to_enc_LDADD): Likewise.
45367         * modules/uniconv/u16-strconv-from-enc-tests
45368         (test_u16_strconv_from_enc_LDADD): Likewise.
45369         * modules/uniconv/u16-strconv-to-enc-tests
45370         (test_u16_strconv_to_enc_LDADD): Likewise.
45371         * modules/uniconv/u32-conv-from-enc-tests
45372         (test_u32_conv_from_enc_LDADD): Likewise.
45373         * modules/uniconv/u32-conv-to-enc-tests
45374         (test_u32_conv_to_enc_LDADD): Likewise.
45375         * modules/uniconv/u32-strconv-from-enc-tests
45376         (test_u32_strconv_from_enc_LDADD): Likewise.
45377         * modules/uniconv/u32-strconv-to-enc-tests
45378         (test_u32_strconv_to_enc_LDADD): Likewise.
45379         * modules/uniconv/u8-conv-from-enc-tests
45380         (test_u8_conv_from_enc_LDADD): Likewise.
45381         * modules/uniconv/u8-conv-to-enc-tests
45382         (test_u8_conv_to_enc_LDADD): Likewise.
45383         * modules/uniconv/u8-strconv-from-enc-tests
45384         (test_u8_strconv_from_enc_LDADD): Likewise.
45385         * modules/uniconv/u8-strconv-to-enc-tests
45386         (test_u8_strconv_to_enc_LDADD): Likewise.
45387
45388 2007-10-22  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45391         size.
45392
45393 2007-10-22  Eric Blake  <ebb9@byu.net>
45394
45395         Tweak x*printf documentation.
45396         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45397         variable name and comments.
45398         Suggested by Bruno Haible.
45399
45400 2007-10-22  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/acl.c (copy_acl): Fix file name in comment.
45403
45404 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45405
45406         Fix Tru64 problem with stdbool.h.
45407         * lib/stdbool.in.h (false, true):
45408         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45409         Don't declare as an enum in this situation; it runs afoul of Tru64.
45410         Problem reported by Steven M. Schweda in
45411         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45412
45413 2007-10-22  Eric Blake  <ebb9@byu.net>
45414
45415         Also wrap vf?printf.
45416         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45417         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45418         (xvprintf, xvfprintf): New functions.
45419
45420 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45421
45422         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45423         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45424
45425         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45426         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45427
45428 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45429
45430         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45431         by Bruno Haible.
45432
45433 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45434
45435         * lib/getloadavg.c
45436         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45437         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45438
45439         * tests/test-i-ring.c: Work for C89.
45440
45441 2007-10-22  Bruno Haible  <bruno@clisp.org>
45442
45443         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45444         -1u, in preprocessor expression, so that we don't test for the bug
45445         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45447
45448 2007-10-22  Eric Blake  <ebb9@byu.net>
45449
45450         * tests/test-yesno.sh: Silence stderr during test.
45451
45452 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45453
45454         * modules/crypto/gc-camellia: New file.
45455
45456         * m4/gc-camellia.m4: New file.
45457
45458         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45459
45460         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45461
45462 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45463
45464         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45465         --help to stdout.  Reported by sms@antinode.org (Steven
45466         M. Schweda).
45467
45468 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45469
45470         * users.txt: Fix link to libksba.
45471
45472 2007-10-21  Ben Pfaff  <blp@gnu.org>
45473
45474         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45475         round.c roundf implementation that depends on floorf and ceilf to
45476         be tested unconditionally.
45477
45478 2007-10-21  Ben Pfaff  <blp@gnu.org>
45479
45480         * m4/check-libm-func.m4: Removed.
45481         * m4/check-math-lib.m4: New file.
45482         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45483         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45484         definition and lack of AC_LIBOBJ([roundf]).
45485         * m4/roundl.m4: Ditto, and similarly for roundl.
45486         * modules/round: Reference new m4 file.
45487         * modules/roundf: Ditto.
45488         * modules/roundl: Ditto.
45489         * tests/test-round2.c (main): Use ROUND instead of round.
45490         Bug report from Bruno Haible.
45491
45492 2007-10-21  Bruno Haible  <bruno@clisp.org>
45493
45494         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45495         context.
45496
45497 2007-10-21  Bruno Haible  <bruno@clisp.org>
45498
45499         * tests/test-wcwidth.c (main): Allow negative result for some control
45500         characters.
45501
45502         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45503         Needed on OSF/1 5.1.
45504
45505 2007-10-21  Bruno Haible  <bruno@clisp.org>
45506
45507         * tests/test-floorf1.c: Include isnanf.h.
45508         (main): Use isnanf() instead of isnan().
45509         * tests/test-ceilf1.c: Include isnanf.h.
45510         (main): Use isnanf() instead of isnan().
45511         * tests/test-truncf1.c: Include isnanf.h.
45512         (main): Use isnanf() instead of isnan().
45513         * tests/test-roundf1.c: Include isnanf.h.
45514         (main): Use isnanf() instead of isnan().
45515
45516 2007-10-21  Eric Blake  <ebb9@byu.net>
45517
45518         * users.txt: Update URL for m4.
45519
45520 2007-10-21  Bruno Haible  <bruno@clisp.org>
45521
45522         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45523
45524 2007-10-21  Bruno Haible  <bruno@clisp.org>
45525
45526         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45527         Git's management files if the CVS files are not present.
45528
45529 2007-10-20  Bruno Haible  <bruno@clisp.org>
45530
45531         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45532         gcc-3.4.x.
45533
45534 2007-10-20  Ben Pfaff  <blp@gnu.org>
45535
45536         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45537         implementations.
45538         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45539         * lib/round.c: New file.
45540         * lib/roundf.c: New file.
45541         * lib/roundl.c: New file.
45542         * m4/round.m4: New file.
45543         * m4/roundf.m4: New file.
45544         * m4/roundl.m4: New file.
45545         * m4/check-libm-func-m4: New file.
45546         * modules/math: Replace round, roundf, roundl related @VARS@ in
45547         math.in.h.
45548         * modules/round: New file.
45549         * modules/round-tests: New file.
45550         * modules/roundf: New file.
45551         * modules/roundf-tests: New file.
45552         * modules/roundl: New file.
45553         * modules/roundl-tests: New file.
45554         * tests/test-round1.c: New file.
45555         * tests/test-round2.c: New file.
45556         * tests/test-roundf1.c: New file.
45557         * tests/test-roundf2.c: New file.
45558         * tests/test-roundl.c: New file.
45559         * doc/functions/round.texi: Mention round module.
45560         * doc/functions/roundf.texi: Mention roundf module.
45561         * doc/functions/roundl.texi: Mention roundl module.
45562         * MODULES.html.sh: Mention new modules.
45563         Thanks to Bruno Haible for suggestions.
45564
45565 2007-10-20  Jim Meyering  <meyering@redhat.com>
45566
45567         * lib/xprintf.c: Include <config.h> unconditionally.
45568
45569         Change xprintf's license to GPL.
45570         * modules/xprintf (License): s/LGPL/GPL/, since this module
45571         depends on modules (exit and exitfail) which are GPL.
45572         Suggestion from Bruno Haible.
45573
45574         xprintf fixes.
45575         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45576         Use a clearer diagnostic.
45577         Patch from Bruno Haible.
45578
45579 2007-10-20  Bruno Haible  <bruno@clisp.org>
45580
45581         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45582         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45583         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45584
45585 2007-10-20  Bruno Haible  <bruno@clisp.org>
45586
45587         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45588         precision in the comparison result > x - 1 or similar.
45589         * tests/test-ceilf2.c (correct_result_p): Likewise.
45590         * tests/test-truncf2.c (correct_result_p): Likewise.
45591         * tests/test-trunc2.c (correct_result_p): Likewise.
45592         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45593
45594 2007-10-20  Bruno Haible  <bruno@clisp.org>
45595
45596         * modules/ceil: New file.
45597         * m4/ceil.m4: New file.
45598         * doc/functions/ceil.texi: Mention the 'ceil' module.
45599
45600 2007-10-20  Bruno Haible  <bruno@clisp.org>
45601
45602         * modules/floor: New file.
45603         * m4/floor.m4: New file.
45604         * doc/functions/floor.texi: Mention the 'floor' module.
45605
45606 2007-10-20  Bruno Haible  <bruno@clisp.org>
45607
45608         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45609         of %a.
45610         * modules/floorf-tests (Depends-on): Likewise.
45611         * modules/truncf-tests (Depends-on): Likewise.
45612         * modules/trunc-tests (Depends-on): Likewise.
45613         Reported by Ben Pfaff.
45614
45615 2007-10-19  Jim Meyering  <meyering@redhat.com>
45616
45617         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45618         Don't bother testing specific errno values.  Just test ferror.
45619
45620         New module: xprintf
45621         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45622
45623 2007-10-19  Bruno Haible  <bruno@clisp.org>
45624
45625         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45626         syntax.
45627         * modules/javaexec (Makefile.am): Likewise.
45628         * modules/relocatable-prog (Makefile.am): Likewise.
45629         Suggested by Jim Meyering.
45630
45631 2007-10-18  Bruno Haible  <bruno@clisp.org>
45632
45633         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45634         Reported by Jim Meyering.
45635
45636 2007-10-18  Eric Blake  <ebb9@byu.net>
45637
45638         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45639
45640 2007-10-18  Bruno Haible  <bruno@clisp.org>
45641
45642         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45643         the format string into writable memory. Needed in Fortify conditions.
45644
45645 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45646             Bruno Haible  <bruno@clisp.org>
45647
45648         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45649         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45650         * modules/trim (Depends-on): Add mbchar.
45651         (configure.ac): Add gl_FUNC_MBRTOWC.
45652         (Makefile.am): Augment lib_SOURCES.
45653
45654 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45655
45656         Modify glob.c to use fstatat and dirfd, to simplify it.
45657         Suggested by Eric Blake.
45658         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45659         Don't include <stdbool.h>; not used.
45660         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45661         (link_exists_p): Simplify implementation, since we can now assume
45662         dirfd and fstatat.
45663         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45664
45665 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45666
45667         * gnulib-tool (func_get_dependencies): Fix sed script to
45668         match only tests.
45669
45670 2007-10-17  Bruno Haible  <bruno@clisp.org>
45671
45672         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45673         allow locale names without encoding suffix.
45674         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45675         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45676
45677 2007-10-16  Bruno Haible  <bruno@clisp.org>
45678
45679         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45680         * lib/getgroups.c (getgroups): Likewise.
45681         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45682
45683 2007-10-16  Bruno Haible  <bruno@clisp.org>
45684
45685         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45686         * modules/malloc-posix (License): Likewise.
45687         * modules/realloc-posix (License): Likewise.
45688         * modules/calloc-posix (License): Likewise.
45689         * modules/intprops (License): Change from GPL to LGPL, with
45690         Paul Eggert's approval.
45691
45692 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45693
45694         Merge glibc changes into lib/glob.c.
45695
45696         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45697         2007-10-15 04:59:03 UTC.  Here are the changes:
45698
45699         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45700
45701         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45702
45703         * lib/glob.c: Add some branch prediction throughout.
45704
45705         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45706
45707         [BZ #5103]
45708         * lib/glob.c (glob): Recognize patterns starting \/.
45709
45710         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45711
45712         [BZ #3996]
45713         * lib/glob.c (attribute_hidden): Define if not defined.
45714         (glob): Unescape dirname, filename or username when needed and not
45715         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45716         is NULL.  Handle unescaped [ in pattern without closing ].
45717         Don't pass GLOB_CHECK down to recursive glob for directories.
45718         (__glob_pattern_type): New function.
45719         (__glob_pattern_p): Implement using __glob_pattern_type.
45720         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45721         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45722         Remove unreachable code.
45723
45724         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45725
45726         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45727         explain why there are no leaks.
45728
45729         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45730
45731         [BZ #3253]
45732         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45733         time, rather allocate increasingly bigger arrays of pointers, if
45734         possible with alloca, if too large with malloc.
45735
45736 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45737
45738         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45739         Problem reported by H.Merijn Brand in
45740         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45741         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45742         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45743
45744 2007-10-15  Bruno Haible  <bruno@clisp.org>
45745
45746         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45747         with explicit rpl_ prefix.
45748         * lib/fopen.c (fopen): Likewise.
45749         * lib/freopen.c (freopen): Likewise.
45750         * lib/iconv.c (iconv): Likewise.
45751         * lib/iconv_close.c (iconv_close): Likewise.
45752
45753 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45754
45755         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45756
45757 2007-10-15  Bruno Haible  <bruno@clisp.org>
45758
45759         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45760         <stddef.h> instead of <stdlib.h> since we only need NULL.
45761         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45762
45763 2007-10-15  Bruno Haible  <bruno@clisp.org>
45764
45765         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45766         Replace paragraph talking about LIBOBJS.
45767         Reported by Colin Watson <cjwatson@debian.org>.
45768
45769 2007-10-15  Bruno Haible  <bruno@clisp.org>
45770
45771         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45772         <stdlib.h> before using NULL.
45773
45774 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45775
45776         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45777         Reported by Albert Chin <china@thewrittenword.com>.
45778
45779 2007-10-14  Bruno Haible  <bruno@clisp.org>
45780
45781         * modules/iconv_open-utf-tests: New file.
45782         * tests/test-iconv-utf.c: New file.
45783
45784         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45785         * modules/iconv_open-utf: New file.
45786         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45787         (iconv, iconv_close): New declarations.
45788         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45789         be defined.
45790         (iconv_open): Add special handling of conversion between UTF-8 and
45791         UTF-{16,32}{BE,LE}.
45792         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45793         * lib/iconv_close.c: New file.
45794         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45795         gl_FUNC_ICONV_OPEN.
45796         (gl_FUNC_ICONV_OPEN): Use it.
45797         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45798         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45799         and REPLACE_ICONV_UTF.
45800         * modules/iconv_open (Depends-on): Add c-strcase.
45801         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45802         ICONV_CONST.
45803         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45804
45805 2007-10-13  Albert Chin  <china@thewrittenword.com>
45806             Bruno Haible  <bruno@clisp.org>
45807
45808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45809         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45810
45811 2007-10-13  Bruno Haible  <bruno@clisp.org>
45812
45813         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45814         defined, use the ISO C99 inline semantics.
45815         * lib/argp.h (ARGP_EI): Likewise.
45816
45817 2007-10-13  Bruno Haible  <bruno@clisp.org>
45818
45819         Handle 'inline' change in gcc 4.3.0.
45820         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45821         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45822         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45823         argp_fmtstream_point): Disable 'extern' declaration if the function
45824         definition is going to be provided inline.
45825         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45826         semantics, not the ISO C99 inline semantics.
45827         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45828         'extern' declaration if the function definition is going to be provided
45829         inline.
45830         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45831         the GNU C inline semantics, not the ISO C99 inline semantics. With
45832         GCC 4.2, avoid a warning.
45833
45834 2007-10-13  Bruno Haible  <bruno@clisp.org>
45835
45836         * lib/freading.h (freading): Enable the use of __freading for
45837         glibc >= 2.7.
45838         * lib/freading.c (freading): Likewise.
45839
45840 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45841
45842         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45843         "warning: C99 inline functions are not supported; using GNU89".
45844
45845 2007-10-12  Bruno Haible  <bruno@clisp.org>
45846
45847         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45848         of 2.
45849         * tests/test-ceilf2.c: New file.
45850         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45851
45852         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45853         * modules/ceilf-tests: Update.
45854
45855 2007-10-12  Bruno Haible  <bruno@clisp.org>
45856
45857         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45858         of 2.
45859         * tests/test-floorf2.c: New file.
45860         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45861
45862         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45863         * modules/floorf-tests: Update.
45864
45865 2007-10-12  Bruno Haible  <bruno@clisp.org>
45866
45867         * tests/test-trunc2.c: New file.
45868         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45869
45870         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45871         * modules/trunc-tests: Update.
45872
45873 2007-10-12  Bruno Haible  <bruno@clisp.org>
45874
45875         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45876         of 2.
45877         * tests/test-truncf2.c: New file.
45878         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45879
45880         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45881         * modules/truncf-tests: Update.
45882
45883 2007-10-11  Eric Blake  <ebb9@byu.net>
45884
45885         Don't claim strerror is broken on Interix.
45886         * doc/functions/strerror.texi (strerror): Known broken systems are
45887         now Solaris 8, and not Interix.
45888         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45889         Interix on cross-compile.
45890         Reported by Martin Koeppe in
45891         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45892
45893 2007-10-11  Bruno Haible  <bruno@clisp.org>
45894
45895         * modules/i-ring-tests: New file.
45896         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45897         instead of assert.
45898
45899 2007-10-11  Bruno Haible  <bruno@clisp.org>
45900
45901         * modules/filenamecat-tests: New file.
45902         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45903         * lib/filenamecat.c: Remove test code.
45904
45905 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45906
45907         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45908
45909         * lib/strerror.c: Include <string.h> always, to test interface,
45910         and to remove the need for the dummy.
45911         Include intprops.h to compute width instead of doing it ourselves
45912         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45913         (strerror): Define it to return NULL if there's no system strerror.
45914         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45915         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45916         ancient pre-strerror Unix systems well any more.  Saying "unknown
45917         system error" is enough.
45918         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45919         simpler strerror.c implementation.
45920         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45921         Simplify the tests to reflect the simpler strerror implementation.
45922         * modules/strerror (Depends-on): Add intprops.
45923
45924 2007-10-09  Eric Blake  <ebb9@byu.net>
45925
45926         Silence test-fpending.
45927         * modules/fpending-tests (Files): Add wrapper script.
45928         * tests/test-fpending.sh: New file.
45929
45930 2007-10-09  Bruno Haible  <bruno@clisp.org>
45931
45932         * MODULES.html.sh (func_module): Don't create a hyperlink for
45933         function names like 'printf_frexp'.
45934         (Misc): Add crc, memxor.
45935         (Characteristics of floating types): New section.
45936         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45937         isnanf-nolibm, signbit, trunc, truncf, truncl.
45938         (Enhancements for ISO C 99 functions): New subsection Input/output.
45939         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45940         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45941         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45942         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45943         (Enhancements for POSIX:2001 functions): Add chdir-long.
45944         (File system functions): Add areadlink, chdir-safer, read-file.
45945         Remove cycle-check.
45946         (File system as inode set): New section.
45947         (Date and time): Add gethrxtime.
45948         (Multithreading): Add openmp.
45949         (Internationalization functions): Add localename.
45950         (Unicode string functions): Add unistr/u*-mbsnlen.
45951         (Support for maintaining and releasing projects): Add git-version-gen.
45952         (Lone files): Remove directories.
45953
45954 2007-10-08  Ben Pfaff  <blp@gnu.org>
45955
45956         * lib/xmalloca.h: Fix typo in comment.
45957
45958 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45959
45960         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45961         when avoiding problems with integer overflow.  Use a portable test
45962         instead.
45963
45964 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45965
45966         * modules/dummy (License): Change to LGPLv2+.
45967         * modules/float (License): Likewise
45968         * modules/realloc (License): Likewise
45969         * modules/stdlib (License): Likewise
45970
45971 2007-10-07  Bruno Haible  <bruno@clisp.org>
45972
45973         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45974         * floor.c (TWO_MANT_DIG): Likewise.
45975         * ceil.c (TWO_MANT_DIG): Likewise.
45976         Reported by Ben Pfaff.
45977
45978 2007-10-07  Bruno Haible  <bruno@clisp.org>
45979
45980         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45981         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45982         * lib/frexp.c (FUNC): Likewise.
45983         * lib/printf-frexp.h (printf_frexp): Likewise.
45984         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45985         * lib/printf-frexp.c (FUNC): Likewise.
45986         Suggested by Jim Meyering.
45987
45988 2007-10-07  Jim Meyering  <meyering@redhat.com>
45989
45990         Make xnanosleep's integer overflow test more robust.
45991         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45992         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45993
45994 2007-10-07  Bruno Haible  <bruno@clisp.org>
45995
45996         * NEWS: Mention the license change.
45997
45998         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45999         abbreviations in the modules files.
46000
46001         Change copyright notice from GPLv2+ to GPLv3+.
46002         * README: Change copyright notice.
46003         * MODULES.html.sh: Likewise.
46004         * build-aux/bootstrap.conf: Likewise.
46005         * build-aux/config.libpath: Likewise.
46006         * build-aux/csharpcomp.sh.in: Likewise.
46007         * build-aux/csharpexec.sh.in: Likewise.
46008         * build-aux/install-reloc: Likewise.
46009         * build-aux/javacomp.sh.in: Likewise.
46010         * build-aux/javaexec.sh.in: Likewise.
46011         * build-aux/ldd.sh.in: Likewise.
46012         * build-aux/reloc-ldflags: Likewise.
46013         * build-aux/relocatable.sh.in: Likewise.
46014         * build-aux/x-to-1.in: Likewise.
46015         * check-module: Likewise.
46016         * config/srclistvars.sh: Likewise.
46017         * gnulib-tool: Likewise.
46018         * lib/acl-internal.h: Likewise.
46019         * lib/acl.c: Likewise.
46020         * lib/acl.h: Likewise.
46021         * lib/acl_entries.c: Likewise.
46022         * lib/areadlink-with-size.c: Likewise.
46023         * lib/areadlink.c: Likewise.
46024         * lib/areadlink.h: Likewise.
46025         * lib/argmatch.c: Likewise.
46026         * lib/argmatch.h: Likewise.
46027         * lib/argp-ba.c: Likewise.
46028         * lib/argp-eexst.c: Likewise.
46029         * lib/argp-fmtstream.c: Likewise.
46030         * lib/argp-fmtstream.h: Likewise.
46031         * lib/argp-fs-xinl.c: Likewise.
46032         * lib/argp-help.c: Likewise.
46033         * lib/argp-namefrob.h: Likewise.
46034         * lib/argp-parse.c: Likewise.
46035         * lib/argp-pin.c: Likewise.
46036         * lib/argp-pv.c: Likewise.
46037         * lib/argp-pvh.c: Likewise.
46038         * lib/argp-xinl.c: Likewise.
46039         * lib/argp.h: Likewise.
46040         * lib/at-func.c: Likewise.
46041         * lib/atanl.c: Likewise.
46042         * lib/backupfile.c: Likewise.
46043         * lib/backupfile.h: Likewise.
46044         * lib/basename.c: Likewise.
46045         * lib/binary-io.h: Likewise.
46046         * lib/byteswap.in.h: Likewise.
46047         * lib/c-stack.c: Likewise.
46048         * lib/c-stack.h: Likewise.
46049         * lib/c-strcasestr.c: Likewise.
46050         * lib/c-strcasestr.h: Likewise.
46051         * lib/c-strstr.c: Likewise.
46052         * lib/c-strstr.h: Likewise.
46053         * lib/c-strtod.c: Likewise.
46054         * lib/calloc.c: Likewise.
46055         * lib/canon-host.c: Likewise.
46056         * lib/canon-host.h: Likewise.
46057         * lib/canonicalize-lgpl.c: Likewise.
46058         * lib/canonicalize.c: Likewise.
46059         * lib/canonicalize.h: Likewise.
46060         * lib/ceil.c: Likewise.
46061         * lib/ceilf.c: Likewise.
46062         * lib/ceill.c: Likewise.
46063         * lib/chdir-long.c: Likewise.
46064         * lib/chdir-long.h: Likewise.
46065         * lib/chdir-safer.c: Likewise.
46066         * lib/chdir-safer.h: Likewise.
46067         * lib/chown.c: Likewise.
46068         * lib/classpath.c: Likewise.
46069         * lib/classpath.h: Likewise.
46070         * lib/clean-temp.c: Likewise.
46071         * lib/clean-temp.h: Likewise.
46072         * lib/cloexec.c: Likewise.
46073         * lib/close-stream.c: Likewise.
46074         * lib/closein.c: Likewise.
46075         * lib/closein.h: Likewise.
46076         * lib/closeout.c: Likewise.
46077         * lib/closeout.h: Likewise.
46078         * lib/concat-filename.c: Likewise.
46079         * lib/copy-file.c: Likewise.
46080         * lib/copy-file.h: Likewise.
46081         * lib/count-one-bits.h: Likewise.
46082         * lib/crc.c: Likewise.
46083         * lib/crc.h: Likewise.
46084         * lib/creat-safer.c: Likewise.
46085         * lib/csharpcomp.c: Likewise.
46086         * lib/csharpcomp.h: Likewise.
46087         * lib/csharpexec.c: Likewise.
46088         * lib/csharpexec.h: Likewise.
46089         * lib/cycle-check.c: Likewise.
46090         * lib/cycle-check.h: Likewise.
46091         * lib/diacrit.c: Likewise.
46092         * lib/diacrit.h: Likewise.
46093         * lib/diffseq.h: Likewise.
46094         * lib/dirchownmod.c: Likewise.
46095         * lib/dirent.in.h: Likewise.
46096         * lib/dirfd.c: Likewise.
46097         * lib/dirfd.h: Likewise.
46098         * lib/dirname.c: Likewise.
46099         * lib/dirname.h: Likewise.
46100         * lib/dummy.c: Likewise.
46101         * lib/dup-safer.c: Likewise.
46102         * lib/dup2.c: Likewise.
46103         * lib/eealloc.h: Likewise.
46104         * lib/error.c: Likewise.
46105         * lib/error.h: Likewise.
46106         * lib/euidaccess.c: Likewise.
46107         * lib/exclude.c: Likewise.
46108         * lib/exclude.h: Likewise.
46109         * lib/execute.c: Likewise.
46110         * lib/execute.h: Likewise.
46111         * lib/exitfail.c: Likewise.
46112         * lib/exitfail.h: Likewise.
46113         * lib/expl.c: Likewise.
46114         * lib/fatal-signal.c: Likewise.
46115         * lib/fatal-signal.h: Likewise.
46116         * lib/fbufmode.c: Likewise.
46117         * lib/fbufmode.h: Likewise.
46118         * lib/fchdir.c: Likewise.
46119         * lib/fchmodat.c: Likewise.
46120         * lib/fchownat.c: Likewise.
46121         * lib/fcntl--.h: Likewise.
46122         * lib/fcntl-safer.h: Likewise.
46123         * lib/fcntl.in.h: Likewise.
46124         * lib/fd-safer.c: Likewise.
46125         * lib/fflush.c: Likewise.
46126         * lib/file-has-acl.c: Likewise.
46127         * lib/file-set.c: Likewise.
46128         * lib/file-type.c: Likewise.
46129         * lib/file-type.h: Likewise.
46130         * lib/fileblocks.c: Likewise.
46131         * lib/filemode.c: Likewise.
46132         * lib/filemode.h: Likewise.
46133         * lib/filename.h: Likewise.
46134         * lib/filenamecat.c: Likewise.
46135         * lib/filenamecat.h: Likewise.
46136         * lib/findprog.c: Likewise.
46137         * lib/findprog.h: Likewise.
46138         * lib/float.in.h: Likewise.
46139         * lib/floor.c: Likewise.
46140         * lib/floorf.c: Likewise.
46141         * lib/floorl.c: Likewise.
46142         * lib/fopen-safer.c: Likewise.
46143         * lib/fopen.c: Likewise.
46144         * lib/fpending.c: Likewise.
46145         * lib/fpending.h: Likewise.
46146         * lib/fprintf.c: Likewise.
46147         * lib/fprintftime.h: Likewise.
46148         * lib/fpucw.h: Likewise.
46149         * lib/fpurge.c: Likewise.
46150         * lib/fpurge.h: Likewise.
46151         * lib/freadable.c: Likewise.
46152         * lib/freadable.h: Likewise.
46153         * lib/freadahead.c: Likewise.
46154         * lib/freadahead.h: Likewise.
46155         * lib/freading.c: Likewise.
46156         * lib/freading.h: Likewise.
46157         * lib/free.c: Likewise.
46158         * lib/freopen.c: Likewise.
46159         * lib/frexp.c: Likewise.
46160         * lib/frexpl.c: Likewise.
46161         * lib/fseek.c: Likewise.
46162         * lib/fseterr.c: Likewise.
46163         * lib/fseterr.h: Likewise.
46164         * lib/fstatat.c: Likewise.
46165         * lib/fstrcmp.c: Likewise.
46166         * lib/fstrcmp.h: Likewise.
46167         * lib/fsusage.c: Likewise.
46168         * lib/fsusage.h: Likewise.
46169         * lib/ftell.c: Likewise.
46170         * lib/ftello.c: Likewise.
46171         * lib/fts-cycle.c: Likewise.
46172         * lib/fts.c: Likewise.
46173         * lib/fts_.h: Likewise.
46174         * lib/full-read.c: Likewise.
46175         * lib/full-read.h: Likewise.
46176         * lib/full-write.c: Likewise.
46177         * lib/full-write.h: Likewise.
46178         * lib/fwritable.c: Likewise.
46179         * lib/fwritable.h: Likewise.
46180         * lib/fwriteerror.c: Likewise.
46181         * lib/fwriteerror.h: Likewise.
46182         * lib/fwriting.c: Likewise.
46183         * lib/fwriting.h: Likewise.
46184         * lib/gcd.c: Likewise.
46185         * lib/gcd.h: Likewise.
46186         * lib/getcwd.c: Likewise.
46187         * lib/getdate.h: Likewise.
46188         * lib/getdate.y: Likewise.
46189         * lib/getdomainname.c: Likewise.
46190         * lib/getdomainname.h: Likewise.
46191         * lib/getgroups.c: Likewise.
46192         * lib/gethostname.c: Likewise.
46193         * lib/gethrxtime.c: Likewise.
46194         * lib/gethrxtime.h: Likewise.
46195         * lib/getloadavg.c: Likewise.
46196         * lib/getndelim2.c: Likewise.
46197         * lib/getndelim2.h: Likewise.
46198         * lib/getnline.c: Likewise.
46199         * lib/getnline.h: Likewise.
46200         * lib/getopt.c: Likewise.
46201         * lib/getopt.in.h: Likewise.
46202         * lib/getopt1.c: Likewise.
46203         * lib/getopt_int.h: Likewise.
46204         * lib/getpagesize.h: Likewise.
46205         * lib/getsubopt.c: Likewise.
46206         * lib/gettime.c: Likewise.
46207         * lib/getugroups.c: Likewise.
46208         * lib/getugroups.h: Likewise.
46209         * lib/getusershell.c: Likewise.
46210         * lib/gl_anyavltree_list1.h: Likewise.
46211         * lib/gl_anyavltree_list2.h: Likewise.
46212         * lib/gl_anyhash_list1.h: Likewise.
46213         * lib/gl_anyhash_list2.h: Likewise.
46214         * lib/gl_anylinked_list1.h: Likewise.
46215         * lib/gl_anylinked_list2.h: Likewise.
46216         * lib/gl_anyrbtree_list1.h: Likewise.
46217         * lib/gl_anyrbtree_list2.h: Likewise.
46218         * lib/gl_anytree_list1.h: Likewise.
46219         * lib/gl_anytree_list2.h: Likewise.
46220         * lib/gl_anytree_oset.h: Likewise.
46221         * lib/gl_anytreehash_list1.h: Likewise.
46222         * lib/gl_anytreehash_list2.h: Likewise.
46223         * lib/gl_array_list.c: Likewise.
46224         * lib/gl_array_list.h: Likewise.
46225         * lib/gl_array_oset.c: Likewise.
46226         * lib/gl_array_oset.h: Likewise.
46227         * lib/gl_avltree_list.c: Likewise.
46228         * lib/gl_avltree_list.h: Likewise.
46229         * lib/gl_avltree_oset.c: Likewise.
46230         * lib/gl_avltree_oset.h: Likewise.
46231         * lib/gl_avltreehash_list.c: Likewise.
46232         * lib/gl_avltreehash_list.h: Likewise.
46233         * lib/gl_carray_list.c: Likewise.
46234         * lib/gl_carray_list.h: Likewise.
46235         * lib/gl_linked_list.c: Likewise.
46236         * lib/gl_linked_list.h: Likewise.
46237         * lib/gl_linkedhash_list.c: Likewise.
46238         * lib/gl_linkedhash_list.h: Likewise.
46239         * lib/gl_list.c: Likewise.
46240         * lib/gl_list.h: Likewise.
46241         * lib/gl_oset.c: Likewise.
46242         * lib/gl_oset.h: Likewise.
46243         * lib/gl_rbtree_list.c: Likewise.
46244         * lib/gl_rbtree_list.h: Likewise.
46245         * lib/gl_rbtree_oset.c: Likewise.
46246         * lib/gl_rbtree_oset.h: Likewise.
46247         * lib/gl_rbtreehash_list.c: Likewise.
46248         * lib/gl_rbtreehash_list.h: Likewise.
46249         * lib/gl_sublist.c: Likewise.
46250         * lib/gl_sublist.h: Likewise.
46251         * lib/group-member.c: Likewise.
46252         * lib/group-member.h: Likewise.
46253         * lib/hard-locale.c: Likewise.
46254         * lib/hard-locale.h: Likewise.
46255         * lib/hash-pjw.c: Likewise.
46256         * lib/hash-pjw.h: Likewise.
46257         * lib/hash-triple.c: Likewise.
46258         * lib/hash.c: Likewise.
46259         * lib/hash.h: Likewise.
46260         * lib/human.c: Likewise.
46261         * lib/human.h: Likewise.
46262         * lib/i-ring.c: Likewise.
46263         * lib/i-ring.h: Likewise.
46264         * lib/idcache.c: Likewise.
46265         * lib/imaxabs.c: Likewise.
46266         * lib/imaxdiv.c: Likewise.
46267         * lib/inet_pton.c: Likewise.
46268         * lib/inet_pton.h: Likewise.
46269         * lib/intprops.h: Likewise.
46270         * lib/inttostr.c: Likewise.
46271         * lib/inttostr.h: Likewise.
46272         * lib/inttypes.in.h: Likewise.
46273         * lib/isapipe.c: Likewise.
46274         * lib/isdir.c: Likewise.
46275         * lib/isnan.c: Likewise.
46276         * lib/isnan.h: Likewise.
46277         * lib/isnanf.c: Likewise.
46278         * lib/isnanf.h: Likewise.
46279         * lib/isnanl-nolibm.h: Likewise.
46280         * lib/isnanl.c: Likewise.
46281         * lib/isnanl.h: Likewise.
46282         * lib/javacomp.c: Likewise.
46283         * lib/javacomp.h: Likewise.
46284         * lib/javaexec.c: Likewise.
46285         * lib/javaexec.h: Likewise.
46286         * lib/javaversion.c: Likewise.
46287         * lib/javaversion.h: Likewise.
46288         * lib/javaversion.java: Likewise.
46289         * lib/lbrkprop.h: Likewise.
46290         * lib/lchmod.h: Likewise.
46291         * lib/lchown.c: Likewise.
46292         * lib/ldexpl.c: Likewise.
46293         * lib/linebreak.c: Likewise.
46294         * lib/linebreak.h: Likewise.
46295         * lib/linebuffer.c: Likewise.
46296         * lib/linebuffer.h: Likewise.
46297         * lib/locale.in.h: Likewise.
46298         * lib/logl.c: Likewise.
46299         * lib/long-options.c: Likewise.
46300         * lib/long-options.h: Likewise.
46301         * lib/lstat.c: Likewise.
46302         * lib/lstat.h: Likewise.
46303         * lib/math.in.h: Likewise.
46304         * lib/mbchar.c: Likewise.
46305         * lib/mbchar.h: Likewise.
46306         * lib/mbfile.h: Likewise.
46307         * lib/mbiter.h: Likewise.
46308         * lib/mbscasecmp.c: Likewise.
46309         * lib/mbscasestr.c: Likewise.
46310         * lib/mbschr.c: Likewise.
46311         * lib/mbscspn.c: Likewise.
46312         * lib/mbslen.c: Likewise.
46313         * lib/mbsncasecmp.c: Likewise.
46314         * lib/mbsnlen.c: Likewise.
46315         * lib/mbspbrk.c: Likewise.
46316         * lib/mbspcasecmp.c: Likewise.
46317         * lib/mbsrchr.c: Likewise.
46318         * lib/mbssep.c: Likewise.
46319         * lib/mbsspn.c: Likewise.
46320         * lib/mbsstr.c: Likewise.
46321         * lib/mbstok_r.c: Likewise.
46322         * lib/mbswidth.c: Likewise.
46323         * lib/mbswidth.h: Likewise.
46324         * lib/mbuiter.h: Likewise.
46325         * lib/memcasecmp.c: Likewise.
46326         * lib/memcasecmp.h: Likewise.
46327         * lib/memchr.c: Likewise.
46328         * lib/memcmp.c: Likewise.
46329         * lib/memcoll.c: Likewise.
46330         * lib/memcoll.h: Likewise.
46331         * lib/memcpy.c: Likewise.
46332         * lib/memrchr.c: Likewise.
46333         * lib/mkancesdirs.c: Likewise.
46334         * lib/mkdir-p.c: Likewise.
46335         * lib/mkdir-p.h: Likewise.
46336         * lib/mkdir.c: Likewise.
46337         * lib/mkdirat.c: Likewise.
46338         * lib/mkdtemp.c: Likewise.
46339         * lib/mkstemp-safer.c: Likewise.
46340         * lib/mkstemp.c: Likewise.
46341         * lib/modechange.c: Likewise.
46342         * lib/modechange.h: Likewise.
46343         * lib/mountlist.c: Likewise.
46344         * lib/mountlist.h: Likewise.
46345         * lib/mpsort.c: Likewise.
46346         * lib/nanosleep.c: Likewise.
46347         * lib/obstack.c: Likewise.
46348         * lib/obstack.h: Likewise.
46349         * lib/open-safer.c: Likewise.
46350         * lib/open.c: Likewise.
46351         * lib/openat-die.c: Likewise.
46352         * lib/openat-priv.h: Likewise.
46353         * lib/openat-proc.c: Likewise.
46354         * lib/openat.c: Likewise.
46355         * lib/openat.h: Likewise.
46356         * lib/pagealign_alloc.c: Likewise.
46357         * lib/pagealign_alloc.h: Likewise.
46358         * lib/physmem.c: Likewise.
46359         * lib/physmem.h: Likewise.
46360         * lib/pipe-safer.c: Likewise.
46361         * lib/pipe.c: Likewise.
46362         * lib/pipe.h: Likewise.
46363         * lib/posixtm.c: Likewise.
46364         * lib/posixtm.h: Likewise.
46365         * lib/posixver.c: Likewise.
46366         * lib/printf-frexp.c: Likewise.
46367         * lib/printf-frexp.h: Likewise.
46368         * lib/printf-frexpl.c: Likewise.
46369         * lib/printf-frexpl.h: Likewise.
46370         * lib/printf.c: Likewise.
46371         * lib/progname.c: Likewise.
46372         * lib/progname.h: Likewise.
46373         * lib/progreloc.c: Likewise.
46374         * lib/putenv.c: Likewise.
46375         * lib/quote.c: Likewise.
46376         * lib/quote.h: Likewise.
46377         * lib/quotearg.c: Likewise.
46378         * lib/quotearg.h: Likewise.
46379         * lib/raise.c: Likewise.
46380         * lib/readline.c: Likewise.
46381         * lib/readline.h: Likewise.
46382         * lib/readlink.c: Likewise.
46383         * lib/readtokens.c: Likewise.
46384         * lib/readtokens.h: Likewise.
46385         * lib/readtokens0.c: Likewise.
46386         * lib/readtokens0.h: Likewise.
46387         * lib/readutmp.c: Likewise.
46388         * lib/readutmp.h: Likewise.
46389         * lib/realloc.c: Likewise.
46390         * lib/relocwrapper.c: Likewise.
46391         * lib/rename-dest-slash.c: Likewise.
46392         * lib/rename.c: Likewise.
46393         * lib/rmdir.c: Likewise.
46394         * lib/rpmatch.c: Likewise.
46395         * lib/safe-read.c: Likewise.
46396         * lib/safe-read.h: Likewise.
46397         * lib/safe-write.c: Likewise.
46398         * lib/safe-write.h: Likewise.
46399         * lib/same-inode.h: Likewise.
46400         * lib/same.c: Likewise.
46401         * lib/same.h: Likewise.
46402         * lib/save-cwd.c: Likewise.
46403         * lib/save-cwd.h: Likewise.
46404         * lib/savedir.c: Likewise.
46405         * lib/savedir.h: Likewise.
46406         * lib/savewd.c: Likewise.
46407         * lib/savewd.h: Likewise.
46408         * lib/search.in.h: Likewise.
46409         * lib/setenv.c: Likewise.
46410         * lib/setenv.h: Likewise.
46411         * lib/settime.c: Likewise.
46412         * lib/sh-quote.c: Likewise.
46413         * lib/sh-quote.h: Likewise.
46414         * lib/sig2str.c: Likewise.
46415         * lib/sig2str.h: Likewise.
46416         * lib/signal.in.h: Likewise.
46417         * lib/signbitd.c: Likewise.
46418         * lib/signbitf.c: Likewise.
46419         * lib/signbitl.c: Likewise.
46420         * lib/sigprocmask.c: Likewise.
46421         * lib/sincosl.c: Likewise.
46422         * lib/sleep.c: Likewise.
46423         * lib/sprintf.c: Likewise.
46424         * lib/sqrtl.c: Likewise.
46425         * lib/stat-time.h: Likewise.
46426         * lib/stdio--.h: Likewise.
46427         * lib/stdio-safer.h: Likewise.
46428         * lib/stdlib--.h: Likewise.
46429         * lib/stdlib-safer.h: Likewise.
46430         * lib/stdlib.in.h: Likewise.
46431         * lib/stpcpy.c: Likewise.
46432         * lib/stpncpy.c: Likewise.
46433         * lib/strchrnul.c: Likewise.
46434         * lib/strcspn.c: Likewise.
46435         * lib/strerror.c: Likewise.
46436         * lib/strftime.c: Likewise.
46437         * lib/strftime.h: Likewise.
46438         * lib/striconveh.c: Likewise.
46439         * lib/striconveh.h: Likewise.
46440         * lib/striconveha.c: Likewise.
46441         * lib/striconveha.h: Likewise.
46442         * lib/stripslash.c: Likewise.
46443         * lib/strnlen1.c: Likewise.
46444         * lib/strnlen1.h: Likewise.
46445         * lib/strtod.c: Likewise.
46446         * lib/strtoimax.c: Likewise.
46447         * lib/strtok_r.c: Likewise.
46448         * lib/strtol.c: Likewise.
46449         * lib/strtoll.c: Likewise.
46450         * lib/strtoul.c: Likewise.
46451         * lib/strtoull.c: Likewise.
46452         * lib/sysexits.in.h: Likewise.
46453         * lib/tempname.c: Likewise.
46454         * lib/tempname.h: Likewise.
46455         * lib/timespec.h: Likewise.
46456         * lib/tls.c: Likewise.
46457         * lib/tls.h: Likewise.
46458         * lib/tmpdir.c: Likewise.
46459         * lib/tmpdir.h: Likewise.
46460         * lib/tmpfile-safer.c: Likewise.
46461         * lib/tmpfile.c: Likewise.
46462         * lib/trigl.c: Likewise.
46463         * lib/trigl.h: Likewise.
46464         * lib/trim.c: Likewise.
46465         * lib/trim.h: Likewise.
46466         * lib/trunc.c: Likewise.
46467         * lib/truncf.c: Likewise.
46468         * lib/truncl.c: Likewise.
46469         * lib/tsearch.c: Likewise.
46470         * lib/unicodeio.c: Likewise.
46471         * lib/unicodeio.h: Likewise.
46472         * lib/unistd--.h: Likewise.
46473         * lib/unistd-safer.h: Likewise.
46474         * lib/unistdio/ulc-fprintf.c: Likewise.
46475         * lib/unistdio/ulc-vfprintf.c: Likewise.
46476         * lib/unlinkdir.c: Likewise.
46477         * lib/unlinkdir.h: Likewise.
46478         * lib/unlocked-io.h: Likewise.
46479         * lib/unsetenv.c: Likewise.
46480         * lib/userspec.c: Likewise.
46481         * lib/utime.c: Likewise.
46482         * lib/utimecmp.c: Likewise.
46483         * lib/utimecmp.h: Likewise.
46484         * lib/utimens.c: Likewise.
46485         * lib/verify.h: Likewise.
46486         * lib/verror.c: Likewise.
46487         * lib/verror.h: Likewise.
46488         * lib/version-etc-fsf.c: Likewise.
46489         * lib/version-etc.c: Likewise.
46490         * lib/version-etc.h: Likewise.
46491         * lib/vfprintf.c: Likewise.
46492         * lib/vprintf.c: Likewise.
46493         * lib/vsprintf.c: Likewise.
46494         * lib/w32spawn.h: Likewise.
46495         * lib/wait-process.c: Likewise.
46496         * lib/wait-process.h: Likewise.
46497         * lib/wcwidth.c: Likewise.
46498         * lib/write-any-file.c: Likewise.
46499         * lib/xalloc-die.c: Likewise.
46500         * lib/xalloc.h: Likewise.
46501         * lib/xasprintf.c: Likewise.
46502         * lib/xgetcwd.c: Likewise.
46503         * lib/xgetcwd.h: Likewise.
46504         * lib/xgetdomainname.c: Likewise.
46505         * lib/xgetdomainname.h: Likewise.
46506         * lib/xgethostname.c: Likewise.
46507         * lib/xmalloc.c: Likewise.
46508         * lib/xmalloca.c: Likewise.
46509         * lib/xmalloca.h: Likewise.
46510         * lib/xmemcoll.c: Likewise.
46511         * lib/xnanosleep.c: Likewise.
46512         * lib/xreadlink.c: Likewise.
46513         * lib/xreadlink.h: Likewise.
46514         * lib/xsetenv.c: Likewise.
46515         * lib/xsetenv.h: Likewise.
46516         * lib/xstriconv.c: Likewise.
46517         * lib/xstriconv.h: Likewise.
46518         * lib/xstrndup.c: Likewise.
46519         * lib/xstrndup.h: Likewise.
46520         * lib/xstrtod.c: Likewise.
46521         * lib/xstrtod.h: Likewise.
46522         * lib/xstrtol-error.c: Likewise.
46523         * lib/xstrtol.c: Likewise.
46524         * lib/xstrtol.h: Likewise.
46525         * lib/xtime.h: Likewise.
46526         * lib/xvasprintf.c: Likewise.
46527         * lib/xvasprintf.h: Likewise.
46528         * lib/yesno.c: Likewise.
46529         * lib/yesno.h: Likewise.
46530         * posix-modules: Likewise.
46531         * tests/test-alloca-opt.c: Likewise.
46532         * tests/test-arcfour.c: Likewise.
46533         * tests/test-arctwo.c: Likewise.
46534         * tests/test-argmatch.c: Likewise.
46535         * tests/test-argp-2.sh: Likewise.
46536         * tests/test-argp.c: Likewise.
46537         * tests/test-arpa_inet.c: Likewise.
46538         * tests/test-array_list.c: Likewise.
46539         * tests/test-array_oset.c: Likewise.
46540         * tests/test-atexit.c: Likewise.
46541         * tests/test-avltree_list.c: Likewise.
46542         * tests/test-avltree_oset.c: Likewise.
46543         * tests/test-avltreehash_list.c: Likewise.
46544         * tests/test-base64.c: Likewise.
46545         * tests/test-binary-io.c: Likewise.
46546         * tests/test-byteswap.c: Likewise.
46547         * tests/test-c-ctype.c: Likewise.
46548         * tests/test-c-strcasecmp.c: Likewise.
46549         * tests/test-c-strcasestr.c: Likewise.
46550         * tests/test-c-strncasecmp.c: Likewise.
46551         * tests/test-c-strstr.c: Likewise.
46552         * tests/test-canonicalize-lgpl.c: Likewise.
46553         * tests/test-canonicalize.c: Likewise.
46554         * tests/test-carray_list.c: Likewise.
46555         * tests/test-ceilf.c: Likewise.
46556         * tests/test-ceill.c: Likewise.
46557         * tests/test-count-one-bits.c: Likewise.
46558         * tests/test-crc.c: Likewise.
46559         * tests/test-dirname.c: Likewise.
46560         * tests/test-fbufmode.c: Likewise.
46561         * tests/test-fcntl.c: Likewise.
46562         * tests/test-fflush.c: Likewise.
46563         * tests/test-floorf.c: Likewise.
46564         * tests/test-floorl.c: Likewise.
46565         * tests/test-fopen.c: Likewise.
46566         * tests/test-fprintf-posix.c: Likewise.
46567         * tests/test-fprintf-posix.h: Likewise.
46568         * tests/test-fpurge.c: Likewise.
46569         * tests/test-freadable.c: Likewise.
46570         * tests/test-freadahead.c: Likewise.
46571         * tests/test-freading.c: Likewise.
46572         * tests/test-freopen.c: Likewise.
46573         * tests/test-frexp.c: Likewise.
46574         * tests/test-frexpl.c: Likewise.
46575         * tests/test-fseek.c: Likewise.
46576         * tests/test-fseeko.c: Likewise.
46577         * tests/test-fseterr.c: Likewise.
46578         * tests/test-fstrcmp.c: Likewise.
46579         * tests/test-ftell.c: Likewise.
46580         * tests/test-ftello.c: Likewise.
46581         * tests/test-fwritable.c: Likewise.
46582         * tests/test-fwriting.c: Likewise.
46583         * tests/test-getaddrinfo.c: Likewise.
46584         * tests/test-getpass.c: Likewise.
46585         * tests/test-gettimeofday.c: Likewise.
46586         * tests/test-hmac-md5.c: Likewise.
46587         * tests/test-hmac-sha1.c: Likewise.
46588         * tests/test-iconv.c: Likewise.
46589         * tests/test-iconvme.c: Likewise.
46590         * tests/test-inttypes.c: Likewise.
46591         * tests/test-isnan.c: Likewise.
46592         * tests/test-isnanf.c: Likewise.
46593         * tests/test-isnanl-nolibm.c: Likewise.
46594         * tests/test-isnanl.c: Likewise.
46595         * tests/test-isnanl.h: Likewise.
46596         * tests/test-ldexpl.c: Likewise.
46597         * tests/test-linked_list.c: Likewise.
46598         * tests/test-linkedhash_list.c: Likewise.
46599         * tests/test-locale.c: Likewise.
46600         * tests/test-localename.c: Likewise.
46601         * tests/test-lock.c: Likewise.
46602         * tests/test-lseek.c: Likewise.
46603         * tests/test-malloca.c: Likewise.
46604         * tests/test-math.c: Likewise.
46605         * tests/test-mbscasecmp.c: Likewise.
46606         * tests/test-mbscasestr1.c: Likewise.
46607         * tests/test-mbscasestr2.c: Likewise.
46608         * tests/test-mbscasestr3.c: Likewise.
46609         * tests/test-mbscasestr4.c: Likewise.
46610         * tests/test-mbschr.c: Likewise.
46611         * tests/test-mbscspn.c: Likewise.
46612         * tests/test-mbsncasecmp.c: Likewise.
46613         * tests/test-mbspbrk.c: Likewise.
46614         * tests/test-mbspcasecmp.c: Likewise.
46615         * tests/test-mbsrchr.c: Likewise.
46616         * tests/test-mbsspn.c: Likewise.
46617         * tests/test-mbsstr1.c: Likewise.
46618         * tests/test-mbsstr2.c: Likewise.
46619         * tests/test-mbsstr3.c: Likewise.
46620         * tests/test-md5.c: Likewise.
46621         * tests/test-memmem.c: Likewise.
46622         * tests/test-netinet_in.c: Likewise.
46623         * tests/test-open.c: Likewise.
46624         * tests/test-printf-frexp.c: Likewise.
46625         * tests/test-printf-frexpl.c: Likewise.
46626         * tests/test-printf-posix.c: Likewise.
46627         * tests/test-printf-posix.h: Likewise.
46628         * tests/test-rbtree_list.c: Likewise.
46629         * tests/test-rbtree_oset.c: Likewise.
46630         * tests/test-rbtreehash_list.c: Likewise.
46631         * tests/test-read-file.c: Likewise.
46632         * tests/test-rijndael.c: Likewise.
46633         * tests/test-search.c: Likewise.
46634         * tests/test-signbit.c: Likewise.
46635         * tests/test-sleep.c: Likewise.
46636         * tests/test-snprintf-posix.c: Likewise.
46637         * tests/test-snprintf-posix.h: Likewise.
46638         * tests/test-snprintf.c: Likewise.
46639         * tests/test-sprintf-posix.c: Likewise.
46640         * tests/test-sprintf-posix.h: Likewise.
46641         * tests/test-stat-time.c: Likewise.
46642         * tests/test-stdbool.c: Likewise.
46643         * tests/test-stdint.c: Likewise.
46644         * tests/test-stdio.c: Likewise.
46645         * tests/test-stdlib.c: Likewise.
46646         * tests/test-stpncpy.c: Likewise.
46647         * tests/test-strcasestr.c: Likewise.
46648         * tests/test-striconv.c: Likewise.
46649         * tests/test-striconveh.c: Likewise.
46650         * tests/test-striconveha.c: Likewise.
46651         * tests/test-string.c: Likewise.
46652         * tests/test-sys_select.c: Likewise.
46653         * tests/test-sys_socket.c: Likewise.
46654         * tests/test-sys_stat.c: Likewise.
46655         * tests/test-sys_time.c: Likewise.
46656         * tests/test-sysexits.c: Likewise.
46657         * tests/test-time.c: Likewise.
46658         * tests/test-tls.c: Likewise.
46659         * tests/test-trunc.c: Likewise.
46660         * tests/test-truncf.c: Likewise.
46661         * tests/test-truncl.c: Likewise.
46662         * tests/test-unistd.c: Likewise.
46663         * tests/test-vasnprintf-posix.c: Likewise.
46664         * tests/test-vasnprintf-posix2.c: Likewise.
46665         * tests/test-vasnprintf.c: Likewise.
46666         * tests/test-vasprintf-posix.c: Likewise.
46667         * tests/test-vasprintf.c: Likewise.
46668         * tests/test-verify.c: Likewise.
46669         * tests/test-vfprintf-posix.c: Likewise.
46670         * tests/test-vprintf-posix.c: Likewise.
46671         * tests/test-vsnprintf-posix.c: Likewise.
46672         * tests/test-vsnprintf.c: Likewise.
46673         * tests/test-vsprintf-posix.c: Likewise.
46674         * tests/test-wchar.c: Likewise.
46675         * tests/test-wctype.c: Likewise.
46676         * tests/test-wcwidth.c: Likewise.
46677         * tests/test-xstrtol.c: Likewise.
46678         * tests/test-xvasprintf.c: Likewise.
46679         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46680         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46681         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46682         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46683         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46684         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46685         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46686         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46687         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46688         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46689         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46690         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46691         * tests/uniname/test-uninames.c: Likewise.
46692         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46693         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46694         * tests/unistdio/test-u16-printf1.h: Likewise.
46695         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46696         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46697         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46698         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46699         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46700         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46701         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46702         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46703         * tests/unistdio/test-u32-printf1.h: Likewise.
46704         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46705         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46706         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46707         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46708         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46709         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46710         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46711         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46712         * tests/unistdio/test-u8-printf1.h: Likewise.
46713         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46714         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46715         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46716         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46717         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46718         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46719         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46720         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46721         * tests/unistdio/test-ulc-printf1.h: Likewise.
46722         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46723         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46724         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46725         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46726         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46727         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46728         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46729         * tests/uniwidth/test-u16-width.c: Likewise.
46730         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46731         * tests/uniwidth/test-u32-width.c: Likewise.
46732         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46733         * tests/uniwidth/test-u8-width.c: Likewise.
46734         * tests/uniwidth/test-uc_width.c: Likewise.
46735         * config/srclist-update: Likewise.
46736         (fixlicense): Update to GPLv3+.
46737
46738         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46739         * tests/test-tsearch.c: Change copyright notice.
46740
46741         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46742         * lib/c-strcaseeq.h: Change copyright notice.
46743         * lib/streq.h: Likewise.
46744         * lib/uniconv.h: Likewise.
46745         * lib/uniconv/u-conv-from-enc.h: Likewise.
46746         * lib/uniconv/u-conv-to-enc.h: Likewise.
46747         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46748         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46749         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46750         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46751         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46752         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46753         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46754         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46755         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46756         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46757         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46758         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46759         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46760         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46761         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46762         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46763         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46764         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46765         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46766         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46767         * lib/uniname.h: Likewise.
46768         * lib/uniname/uniname.c: Likewise.
46769         * lib/unistdio.h: Likewise.
46770         * lib/unistdio/u-asnprintf.h: Likewise.
46771         * lib/unistdio/u-asprintf.h: Likewise.
46772         * lib/unistdio/u-printf-args.c: Likewise.
46773         * lib/unistdio/u-printf-args.h: Likewise.
46774         * lib/unistdio/u-printf-parse.h: Likewise.
46775         * lib/unistdio/u-snprintf.h: Likewise.
46776         * lib/unistdio/u-sprintf.h: Likewise.
46777         * lib/unistdio/u-vasprintf.h: Likewise.
46778         * lib/unistdio/u-vsnprintf.h: Likewise.
46779         * lib/unistdio/u-vsprintf.h: Likewise.
46780         * lib/unistdio/u16-asnprintf.c: Likewise.
46781         * lib/unistdio/u16-asprintf.c: Likewise.
46782         * lib/unistdio/u16-printf-parse.c: Likewise.
46783         * lib/unistdio/u16-snprintf.c: Likewise.
46784         * lib/unistdio/u16-sprintf.c: Likewise.
46785         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46786         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46787         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46788         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46789         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46790         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46791         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46792         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46793         * lib/unistdio/u16-vasnprintf.c: Likewise.
46794         * lib/unistdio/u16-vasprintf.c: Likewise.
46795         * lib/unistdio/u16-vsnprintf.c: Likewise.
46796         * lib/unistdio/u16-vsprintf.c: Likewise.
46797         * lib/unistdio/u32-asnprintf.c: Likewise.
46798         * lib/unistdio/u32-asprintf.c: Likewise.
46799         * lib/unistdio/u32-printf-parse.c: Likewise.
46800         * lib/unistdio/u32-snprintf.c: Likewise.
46801         * lib/unistdio/u32-sprintf.c: Likewise.
46802         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46803         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46804         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46805         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46806         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46807         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46808         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46809         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46810         * lib/unistdio/u32-vasnprintf.c: Likewise.
46811         * lib/unistdio/u32-vasprintf.c: Likewise.
46812         * lib/unistdio/u32-vsnprintf.c: Likewise.
46813         * lib/unistdio/u32-vsprintf.c: Likewise.
46814         * lib/unistdio/u8-asnprintf.c: Likewise.
46815         * lib/unistdio/u8-asprintf.c: Likewise.
46816         * lib/unistdio/u8-printf-parse.c: Likewise.
46817         * lib/unistdio/u8-snprintf.c: Likewise.
46818         * lib/unistdio/u8-sprintf.c: Likewise.
46819         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46820         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46821         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46822         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46823         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46824         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46825         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46826         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46827         * lib/unistdio/u8-vasnprintf.c: Likewise.
46828         * lib/unistdio/u8-vasprintf.c: Likewise.
46829         * lib/unistdio/u8-vsnprintf.c: Likewise.
46830         * lib/unistdio/u8-vsprintf.c: Likewise.
46831         * lib/unistdio/ulc-asnprintf.c: Likewise.
46832         * lib/unistdio/ulc-asprintf.c: Likewise.
46833         * lib/unistdio/ulc-printf-parse.c: Likewise.
46834         * lib/unistdio/ulc-snprintf.c: Likewise.
46835         * lib/unistdio/ulc-sprintf.c: Likewise.
46836         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46837         * lib/unistdio/ulc-vasprintf.c: Likewise.
46838         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46839         * lib/unistdio/ulc-vsprintf.c: Likewise.
46840         * lib/unistr.h: Likewise.
46841         * lib/unistr/u-cpy-alloc.h: Likewise.
46842         * lib/unistr/u-cpy.h: Likewise.
46843         * lib/unistr/u-endswith.h: Likewise.
46844         * lib/unistr/u-move.h: Likewise.
46845         * lib/unistr/u-set.h: Likewise.
46846         * lib/unistr/u-startswith.h: Likewise.
46847         * lib/unistr/u-stpcpy.h: Likewise.
46848         * lib/unistr/u-stpncpy.h: Likewise.
46849         * lib/unistr/u-strcat.h: Likewise.
46850         * lib/unistr/u-strcpy.h: Likewise.
46851         * lib/unistr/u-strcspn.h: Likewise.
46852         * lib/unistr/u-strdup.h: Likewise.
46853         * lib/unistr/u-strlen.h: Likewise.
46854         * lib/unistr/u-strncat.h: Likewise.
46855         * lib/unistr/u-strncpy.h: Likewise.
46856         * lib/unistr/u-strnlen.h: Likewise.
46857         * lib/unistr/u-strpbrk.h: Likewise.
46858         * lib/unistr/u-strspn.h: Likewise.
46859         * lib/unistr/u-strstr.h: Likewise.
46860         * lib/unistr/u-strtok.h: Likewise.
46861         * lib/unistr/u16-check.c: Likewise.
46862         * lib/unistr/u16-chr.c: Likewise.
46863         * lib/unistr/u16-cmp.c: Likewise.
46864         * lib/unistr/u16-cpy-alloc.c: Likewise.
46865         * lib/unistr/u16-cpy.c: Likewise.
46866         * lib/unistr/u16-endswith.c: Likewise.
46867         * lib/unistr/u16-mblen.c: Likewise.
46868         * lib/unistr/u16-mbsnlen.c: Likewise.
46869         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46870         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46871         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46872         * lib/unistr/u16-mbtouc.c: Likewise.
46873         * lib/unistr/u16-mbtoucr.c: Likewise.
46874         * lib/unistr/u16-move.c: Likewise.
46875         * lib/unistr/u16-next.c: Likewise.
46876         * lib/unistr/u16-prev.c: Likewise.
46877         * lib/unistr/u16-set.c: Likewise.
46878         * lib/unistr/u16-startswith.c: Likewise.
46879         * lib/unistr/u16-stpcpy.c: Likewise.
46880         * lib/unistr/u16-stpncpy.c: Likewise.
46881         * lib/unistr/u16-strcat.c: Likewise.
46882         * lib/unistr/u16-strchr.c: Likewise.
46883         * lib/unistr/u16-strcmp.c: Likewise.
46884         * lib/unistr/u16-strcpy.c: Likewise.
46885         * lib/unistr/u16-strcspn.c: Likewise.
46886         * lib/unistr/u16-strdup.c: Likewise.
46887         * lib/unistr/u16-strlen.c: Likewise.
46888         * lib/unistr/u16-strmblen.c: Likewise.
46889         * lib/unistr/u16-strmbtouc.c: Likewise.
46890         * lib/unistr/u16-strncat.c: Likewise.
46891         * lib/unistr/u16-strncmp.c: Likewise.
46892         * lib/unistr/u16-strncpy.c: Likewise.
46893         * lib/unistr/u16-strnlen.c: Likewise.
46894         * lib/unistr/u16-strpbrk.c: Likewise.
46895         * lib/unistr/u16-strrchr.c: Likewise.
46896         * lib/unistr/u16-strspn.c: Likewise.
46897         * lib/unistr/u16-strstr.c: Likewise.
46898         * lib/unistr/u16-strtok.c: Likewise.
46899         * lib/unistr/u16-to-u32.c: Likewise.
46900         * lib/unistr/u16-to-u8.c: Likewise.
46901         * lib/unistr/u16-uctomb-aux.c: Likewise.
46902         * lib/unistr/u16-uctomb.c: Likewise.
46903         * lib/unistr/u32-check.c: Likewise.
46904         * lib/unistr/u32-chr.c: Likewise.
46905         * lib/unistr/u32-cmp.c: Likewise.
46906         * lib/unistr/u32-cpy-alloc.c: Likewise.
46907         * lib/unistr/u32-cpy.c: Likewise.
46908         * lib/unistr/u32-endswith.c: Likewise.
46909         * lib/unistr/u32-mblen.c: Likewise.
46910         * lib/unistr/u32-mbsnlen.c: Likewise.
46911         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46912         * lib/unistr/u32-mbtouc.c: Likewise.
46913         * lib/unistr/u32-mbtoucr.c: Likewise.
46914         * lib/unistr/u32-move.c: Likewise.
46915         * lib/unistr/u32-next.c: Likewise.
46916         * lib/unistr/u32-prev.c: Likewise.
46917         * lib/unistr/u32-set.c: Likewise.
46918         * lib/unistr/u32-startswith.c: Likewise.
46919         * lib/unistr/u32-stpcpy.c: Likewise.
46920         * lib/unistr/u32-stpncpy.c: Likewise.
46921         * lib/unistr/u32-strcat.c: Likewise.
46922         * lib/unistr/u32-strchr.c: Likewise.
46923         * lib/unistr/u32-strcmp.c: Likewise.
46924         * lib/unistr/u32-strcpy.c: Likewise.
46925         * lib/unistr/u32-strcspn.c: Likewise.
46926         * lib/unistr/u32-strdup.c: Likewise.
46927         * lib/unistr/u32-strlen.c: Likewise.
46928         * lib/unistr/u32-strmblen.c: Likewise.
46929         * lib/unistr/u32-strmbtouc.c: Likewise.
46930         * lib/unistr/u32-strncat.c: Likewise.
46931         * lib/unistr/u32-strncmp.c: Likewise.
46932         * lib/unistr/u32-strncpy.c: Likewise.
46933         * lib/unistr/u32-strnlen.c: Likewise.
46934         * lib/unistr/u32-strpbrk.c: Likewise.
46935         * lib/unistr/u32-strrchr.c: Likewise.
46936         * lib/unistr/u32-strspn.c: Likewise.
46937         * lib/unistr/u32-strstr.c: Likewise.
46938         * lib/unistr/u32-strtok.c: Likewise.
46939         * lib/unistr/u32-to-u16.c: Likewise.
46940         * lib/unistr/u32-to-u8.c: Likewise.
46941         * lib/unistr/u32-uctomb.c: Likewise.
46942         * lib/unistr/u8-check.c: Likewise.
46943         * lib/unistr/u8-chr.c: Likewise.
46944         * lib/unistr/u8-cmp.c: Likewise.
46945         * lib/unistr/u8-cpy-alloc.c: Likewise.
46946         * lib/unistr/u8-cpy.c: Likewise.
46947         * lib/unistr/u8-endswith.c: Likewise.
46948         * lib/unistr/u8-mblen.c: Likewise.
46949         * lib/unistr/u8-mbsnlen.c: Likewise.
46950         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46951         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46952         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46953         * lib/unistr/u8-mbtouc.c: Likewise.
46954         * lib/unistr/u8-mbtoucr.c: Likewise.
46955         * lib/unistr/u8-move.c: Likewise.
46956         * lib/unistr/u8-next.c: Likewise.
46957         * lib/unistr/u8-prev.c: Likewise.
46958         * lib/unistr/u8-set.c: Likewise.
46959         * lib/unistr/u8-startswith.c: Likewise.
46960         * lib/unistr/u8-stpcpy.c: Likewise.
46961         * lib/unistr/u8-stpncpy.c: Likewise.
46962         * lib/unistr/u8-strcat.c: Likewise.
46963         * lib/unistr/u8-strchr.c: Likewise.
46964         * lib/unistr/u8-strcmp.c: Likewise.
46965         * lib/unistr/u8-strcpy.c: Likewise.
46966         * lib/unistr/u8-strcspn.c: Likewise.
46967         * lib/unistr/u8-strdup.c: Likewise.
46968         * lib/unistr/u8-strlen.c: Likewise.
46969         * lib/unistr/u8-strmblen.c: Likewise.
46970         * lib/unistr/u8-strmbtouc.c: Likewise.
46971         * lib/unistr/u8-strncat.c: Likewise.
46972         * lib/unistr/u8-strncmp.c: Likewise.
46973         * lib/unistr/u8-strncpy.c: Likewise.
46974         * lib/unistr/u8-strnlen.c: Likewise.
46975         * lib/unistr/u8-strpbrk.c: Likewise.
46976         * lib/unistr/u8-strrchr.c: Likewise.
46977         * lib/unistr/u8-strspn.c: Likewise.
46978         * lib/unistr/u8-strstr.c: Likewise.
46979         * lib/unistr/u8-strtok.c: Likewise.
46980         * lib/unistr/u8-to-u16.c: Likewise.
46981         * lib/unistr/u8-to-u32.c: Likewise.
46982         * lib/unistr/u8-uctomb-aux.c: Likewise.
46983         * lib/unistr/u8-uctomb.c: Likewise.
46984         * lib/unitypes.h: Likewise.
46985         * lib/uniwidth.h: Likewise.
46986         * lib/uniwidth/cjk.h: Likewise.
46987         * lib/uniwidth/u16-strwidth.c: Likewise.
46988         * lib/uniwidth/u16-width.c: Likewise.
46989         * lib/uniwidth/u32-strwidth.c: Likewise.
46990         * lib/uniwidth/u32-width.c: Likewise.
46991         * lib/uniwidth/u8-strwidth.c: Likewise.
46992         * lib/uniwidth/u8-width.c: Likewise.
46993         * lib/uniwidth/width.c: Likewise.
46994
46995 2007-10-07  Bruno Haible  <bruno@clisp.org>
46996
46997         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46998         The file is still under LGPL (see modules/inttypes).
46999
47000 2007-10-06  Bruno Haible  <bruno@clisp.org>
47001
47002         * modules/trunc (Dependencies): Add 'extensions'.
47003         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47004         Reported by Ben Pfaff <blp@gnu.org>.
47005
47006 2007-10-06  Bruno Haible  <bruno@clisp.org>
47007
47008         * modules/freopen-tests: New file.
47009         * tests/test-freopen.c: New file.
47010
47011         * modules/fopen-tests: New file.
47012         * tests/test-fopen.c: New file.
47013
47014         * modules/fopen: New file.
47015         * lib/fopen.c: New file.
47016         * m4/fopen.m4: New file.
47017         * modules/freopen: New file.
47018         * lib/freopen.c: New file.
47019         * m4/freopen.m4: New file.
47020         * lib/stdio.in.h (fopen, freopen): New declarations.
47021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47022         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47023         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47024         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47025         * doc/functions/fopen.texi: Mention the 'fopen' module.
47026         * doc/functions/freopen.texi: Mention the 'freopen' module.
47027
47028 2007-10-06  Bruno Haible  <bruno@clisp.org>
47029
47030         * modules/open-tests: New file.
47031         * tests/test-open.c: New file.
47032
47033         * modules/open: New file.
47034         * lib/open.c: New file.
47035         * m4/open.m4: New file.
47036         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47037         lib/open.c does.
47038         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47039         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47040         macros.
47041         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47042         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47043         REPLACE_OPEN.
47044         * doc/functions/open.texi: Mention the 'open' module.
47045
47046 2007-10-04  Bruno Haible  <bruno@clisp.org>
47047
47048         * modules/ceill-tests: New file.
47049         * tests/test-ceill.c: New file.
47050
47051         * modules/ceill: New file.
47052         * lib/ceill.c: Replace entire file.
47053         * m4/ceill.m4: New file.
47054         * lib/math.in.h (ceill): Replace declaration.
47055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47056         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47057         * doc/functions/ceill.texi: Mention the 'ceill' module.
47058         * modules/mathl (Files): Remove lib/ceill.c.
47059         (Depends-on): Add ceill.
47060
47061 2007-10-04  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/ceilf-tests: New file.
47064         * tests/test-ceilf.c: New file.
47065
47066         * modules/ceilf: New file.
47067         * lib/ceil.c: New file.
47068         * lib/ceilf.c: New file.
47069         * m4/ceilf.m4: New file.
47070         * lib/math.in.h (ceilf): New declaration.
47071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47072         HAVE_DECL_CEILF.
47073         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47074         HAVE_DECL_CEILF.
47075         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47076
47077 2007-10-04  Bruno Haible  <bruno@clisp.org>
47078
47079         * modules/floorl-tests: New file.
47080         * tests/test-floorl.c: New file.
47081
47082         * modules/floorl: New file.
47083         * lib/floorl.c: Replace entire file.
47084         * m4/floorl.m4: New file.
47085         * lib/math.in.h (floorl): Replace declaration.
47086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47087         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47088         * doc/functions/floorl.texi: Mention the 'floorl' module.
47089         * modules/mathl (Files): Remove lib/floorl.c.
47090         (Depends-on): Add floorl.
47091
47092 2007-10-04  Bruno Haible  <bruno@clisp.org>
47093
47094         * modules/floorf-tests: New file.
47095         * tests/test-floorf.c: New file.
47096
47097         * modules/floorf: New file.
47098         * lib/floor.c: New file.
47099         * lib/floorf.c: New file.
47100         * m4/floorf.m4: New file.
47101         * lib/math.in.h (floorf): New declaration.
47102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47103         HAVE_DECL_FLOORF.
47104         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47105         HAVE_DECL_FLOORF.
47106         * doc/functions/floorf.texi: Mention the 'floorf' module.
47107
47108 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47109             Bruno Haible  <bruno@clisp.org>
47110
47111         Advertise for the Git server instead of the CVS server.
47112         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47113         repository instead of the CVS one.
47114         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47115         about all VCS systems generically.
47116         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47117
47118 2007-10-04  Bruno Haible  <bruno@clisp.org>
47119
47120         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47121         means.
47122         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47123
47124 2007-10-04  Bruno Haible  <bruno@clisp.org>
47125
47126         * modules/truncl-tests: New file.
47127         * tests/test-truncl.c: New file.
47128
47129         * modules/truncl: New file.
47130         * lib/truncl.c: New file.
47131         * m4/truncl.m4: New file.
47132         * lib/math.in.h (truncl): New declaration.
47133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47134         HAVE_DECL_TRUNCL.
47135         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47136         HAVE_DECL_TRUNCL.
47137         * doc/functions/truncl.texi: Mention the 'truncl' module.
47138
47139 2007-10-04  Bruno Haible  <bruno@clisp.org>
47140
47141         * modules/truncf-tests: New file.
47142         * tests/test-truncf.c: New file.
47143
47144         * modules/truncf: New file.
47145         * lib/trunc.c: Make paramerizable through USE_* macros.
47146         * lib/truncf.c: New file.
47147         * m4/truncf.m4: New file.
47148         * lib/math.in.h (truncf): New declaration.
47149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47150         HAVE_DECL_TRUNCF.
47151         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47152         HAVE_DECL_TRUNCF.
47153         * doc/functions/truncf.texi: Mention the 'truncf' module.
47154
47155 2007-10-03  Bruno Haible  <bruno@clisp.org>
47156
47157         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47158         augmentation also for tests modules.
47159         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47160         * modules/atexit-tests (Makefile.am): Likewise.
47161         * modules/binary-io-tests (Makefile.am): Likewise.
47162         * modules/c-strcase-tests (Makefile.am): Likewise.
47163         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47164         * modules/canonicalize-tests (Makefile.am): Likewise.
47165         * modules/closein-tests (Makefile.am): Likewise.
47166         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47167         * modules/freadahead-tests (Makefile.am): Likewise.
47168         * modules/fseek-tests (Makefile.am): Likewise.
47169         * modules/fseeko-tests (Makefile.am): Likewise.
47170         * modules/ftell-tests (Makefile.am): Likewise.
47171         * modules/ftello-tests (Makefile.am): Likewise.
47172         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47173         * modules/isnanl-tests (Makefile.am): Likewise.
47174         * modules/lseek-tests (Makefile.am): Likewise.
47175         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47176         * modules/mbscasestr-tests (Makefile.am): Likewise.
47177         * modules/mbschr-tests (Makefile.am): Likewise.
47178         * modules/mbscspn-tests (Makefile.am): Likewise.
47179         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47180         * modules/mbspbrk-tests (Makefile.am): Likewise.
47181         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47182         * modules/mbsrchr-tests (Makefile.am): Likewise.
47183         * modules/mbsspn-tests (Makefile.am): Likewise.
47184         * modules/mbsstr-tests (Makefile.am): Likewise.
47185         * modules/printf-posix-tests (Makefile.am): Likewise.
47186         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47187         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47188         * modules/tsearch-tests (Makefile.am): Likewise.
47189         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47190         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47191         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47192         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47193         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47194         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47195         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47196         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47197         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47198         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47199         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47200         * modules/xstrtol-tests (Makefile.am): Likewise.
47201         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47202         * modules/yesno-tests (Makefile.am): Likewise.
47203
47204 2007-10-03  Bruno Haible  <bruno@clisp.org>
47205
47206         * modules/trunc-tests: New file.
47207         * tests/test-trunc.c: New file.
47208
47209         * modules/trunc: New file.
47210         * lib/trunc.c: New file.
47211         * m4/trunc.m4: New file.
47212         * lib/math.in.h (trunc): New declaration.
47213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47214         HAVE_DECL_TRUNC.
47215         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47216         HAVE_DECL_TRUNC.
47217         * doc/functions/trunc.texi: Mention the 'trunc' module.
47218
47219 2007-10-03  Bruno Haible  <bruno@clisp.org>
47220
47221         * tests/test-fpending.c: New file, mostly copied
47222         from coreutils/lib/t-fpending.c.
47223         * modules/fpending-tests: New file.
47224
47225 2007-10-03  Bruno Haible  <bruno@clisp.org>
47226
47227         Port the stdio extensions to QNX (untested).
47228         * lib/fseterr.c (fseterr): Add support for QNX.
47229         * lib/fbufmode.c (fbufmode): Likewise.
47230         * lib/freadable.c (freadable): Likewise.
47231         * lib/fwritable.c (fwritable): Likewise.
47232         * lib/freading.c (freading): Likewise.
47233         * lib/fwriting.c (fwriting): Likewise.
47234         * lib/freadahead.c (freadahed): Likewise.
47235         * lib/fpurge.c (fpurge): Likewise.
47236         * lib/fseeko.c (rpl_fseeko): Likewise.
47237
47238 2007-10-03  Bruno Haible  <bruno@clisp.org>
47239             Jim Meyering  <jim@meyering.net>
47240             Eric Blake  <ebb9@byu.net>
47241
47242         * doc/relocatable.texi: Use @command instead of @program.
47243
47244 2007-10-02  Jim Meyering  <jim@meyering.net>
47245
47246         Perform one more "_.h" -> ".in.h" substitution.
47247         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47248         instead of unistd_.h here, too.
47249
47250 2007-10-01  Bruno Haible  <bruno@clisp.org>
47251
47252         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47253         Needed for the alloca-opt module.
47254
47255 2007-09-30  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47258         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47259         alloca_.h.
47260         * lib/argz.in.h: Renamed from lib/argz_.h.
47261         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47262         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47263         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47264         byteswap_.h.
47265         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47266         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47267         dirent_.h.
47268         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47269         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47270         fcntl_.h.
47271         * lib/float.in.h: Renamed from lib/float_.h.
47272         * modules/float (Files, Makefile.am): Use float.in.h instead of
47273         float_.h.
47274         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47275         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47276         fnmatch_.h.
47277         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47278         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47279         getopt_.h.
47280         * lib/glob.in.h: Renamed from lib/glob_.h.
47281         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47282         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47283         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47284         iconv_.h.
47285         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47286         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47287         inttypes_.h.
47288         * lib/locale.in.h: Renamed from lib/locale_.h.
47289         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47290         locale_.h.
47291         * lib/math.in.h: Renamed from lib/math_.h.
47292         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47293         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47294         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47295         of netinet_in_.h. Add dependency.
47296         * lib/poll.in.h: Renamed from lib/poll_.h.
47297         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47298         * lib/search.in.h: Renamed from lib/search_.h.
47299         * modules/search (Files, Makefile.am): Use search.in.h instead of
47300         search_.h.
47301         * lib/signal.in.h: Renamed from lib/signal_.h.
47302         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47303         _signal.h.
47304         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47305         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47306         stdbool_.h.
47307         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47308         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47309         stdint_.h.
47310         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47311         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47312         stdio_.h.
47313         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47314         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47315         stdlib_.h.
47316         * lib/string.in.h: Renamed from lib/string_.h.
47317         * modules/string (Files, Makefile.am): Use string.in.h instead of
47318         string_.h.
47319         * doc/gnulib-tool.texi (Initial import): Update.
47320         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47321         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47322         of sys_select_.h. Add dependency.
47323         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47324         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47325         of sys_socket_.h.
47326         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47327         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47328         sys_stat_.h.
47329         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47330         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47331         sys_time_.h.
47332         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47333         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47334         sysexits_.h.
47335         * lib/time.in.h: Renamed from lib/time_.h.
47336         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47337         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47338         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47339         unistd_.h.
47340         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47341         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47342         wchar_.h.
47343         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47344         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47345         wctype_.h.
47346         * build-aux/bootstrap (slurp): Update.
47347         * lib/.cppi-disable: Update.
47348
47349 2007-09-30  Bruno Haible  <bruno@clisp.org>
47350
47351         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47352         Needed on BeOS.
47353
47354 2007-09-30  Bruno Haible  <bruno@clisp.org>
47355
47356         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47357
47358 2007-09-29  Bruno Haible  <bruno@clisp.org>
47359
47360         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47361
47362 2007-09-29  Bruno Haible  <bruno@clisp.org>
47363
47364         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47365         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47366         * build-aux/install-reloc: Compile also areadlink.c.
47367         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47368
47369 2007-09-29  Bruno Haible  <bruno@clisp.org>
47370
47371         * gnulib-tool (func_emit_initmacro_done): Indentation.
47372
47373 2007-09-29  Bruno Haible  <bruno@clisp.org>
47374
47375         * README: Add CVS checkout update instructions.
47376         Info from Bob Proulx <bob@proulx.com>.
47377
47378 2007-09-28  Eric Blake  <ebb9@byu.net>
47379
47380         Provide move-if-change.
47381         * build-aux/move-if-change: New file, based on best practice
47382         rather than any canonical upstream location.
47383
47384 2007-09-28  Jim Meyering  <jim@meyering.net>
47385
47386         Fix canonicalize loop-detection corner case.
47387         Do not attempt to stat the symlink values stored via seen_triple.
47388         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47389         on linux-2.6.18, (but not 2.6.22).
47390         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47391         triple_compare.  The former compares dev,ino,filename, while the latter
47392         would actually stat dirname(filename) when dev and ino were equal.
47393         * lib/hash-triple.c: Install <string.h>.
47394         (STREQ): Define.
47395         (triple_compare_ino_str): New function.
47396         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47397
47398 2007-09-28  Eric Blake  <ebb9@byu.net>
47399
47400         Enforce that AC_REPLACE_FUNCS files exist.
47401         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47402         override check for typos.
47403
47404         Fix test-closein on Solaris 10.
47405         * tests/test-closein.c (main): Don't assume stdin can be inherited
47406         closed on all systems.
47407         * tests/test-closein.sh: Likewise.
47408         Reported by Piotr Tarnowski.
47409
47410 2007-09-28  Jim Meyering  <jim@meyering.net>
47411
47412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47413
47414 2007-09-27  Jim Meyering  <jim@meyering.net>
47415
47416         canonicalize: Avoid a false-positive cycle failure.
47417         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47418         Sort.  Remove cycle-check.
47419         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47420         not cycle-check.h.
47421         (seen_triple): New function.
47422         (canonicalize_filename_mode): Use it instead of cycle-check.
47423         * tests/test-canonicalize.c: Add a test for this bug.
47424         * tests/test-canonicalize.sh: Set up and run the test.
47425
47426         New module, file-set, from coreutils.
47427         * modules/file-set: Define it.
47428         * lib/file-set.c, lib/file-set.h: Implement.
47429
47430         New module, hash-triple, from coreutils.
47431         * modules/hash-triple: Define it.
47432         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47433
47434 2007-09-25  Eric Blake  <ebb9@byu.net>
47435
47436         Fix strerror on Interix.
47437         * lib/string_.h (strerror): Declare replacement.
47438         * doc/functions/strerror.texi (strerror): Document the Interix
47439         shortcoming.
47440         * modules/string (Makefile.am): Support new hooks.
47441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47442         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47443         gl_FUNC_STRERROR_SEPARATE.
47444         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47445         * lib/strerror.c (rpl_strerror): Provide replacement.
47446         * modules/strerror (Depends-on): Add string.
47447         (configure.ac): Detect use of module.
47448         * tests/test-strerror.c: New file.
47449         * modules/strerror-tests: New test module.
47450         * modules/argp (Depends-on): Add strerror.
47451         * modules/error (Depends-on): Likewise.
47452         Reported by Martin Koeppe.
47453
47454 2007-09-24  Bruno Haible  <bruno@clisp.org>
47455
47456         * README: Update git instructions.
47457
47458 2007-09-24  Eric Blake  <ebb9@byu.net>
47459
47460         Revert fpending breakage from 2007-09-08.
47461         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47462         __fpending.c.
47463
47464 2007-09-24  Jim Meyering  <jim@meyering.net>
47465
47466         filenamecat.c: Add a test.
47467         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47468         showing how the function works when DIR is the empty string.
47469
47470 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47471
47472         * tests/test-canonicalize.sh: Turn on executable bit.
47473
47474 2007-09-19  Eric Blake  <ebb9@byu.net>
47475
47476         * README: Update CVS instructions.
47477
47478 2007-09-18  Bruno Haible  <bruno@clisp.org>
47479
47480         * modules/areadlink: New file.
47481         * lib/areadlink.h (areadlink): New declaration.
47482         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47483
47484 2007-09-17  Jim Meyering  <jim@meyering.net>
47485
47486         * lib/savewd.c (ESTALE) [!defined]: Define.
47487         Reported to be required on Interix by Martin Koeppe.
47488
47489 2007-09-17  Bruno Haible  <bruno@clisp.org>
47490
47491         * gnulib-tool (func_version): Use $version.
47492
47493 2007-09-16  Bruno Haible  <bruno@clisp.org>
47494
47495         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47496         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47497         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47498         Reported by Greg Schafer <gschafer@zip.com.au>.
47499
47500 2007-09-15  Bruno Haible  <bruno@clisp.org>
47501
47502         * gnulib-tool (sed): Try a little harder to make bash understand the
47503         alias.
47504         Reported by Bruce Korb <bruce.korb@gmail.com>.
47505
47506 2007-09-13  Eric Blake  <ebb9@byu.net>
47507
47508         * ChangeLog: Remove conflict markers.
47509
47510 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47511
47512         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47513         Reported by Bruno Haible <bruno@clisp.org>.
47514
47515 2007-09-12  Bruno Haible  <bruno@clisp.org>
47516
47517         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47518         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47519         is not defined.
47520
47521 2007-09-12  Eric Blake  <ebb9@byu.net>
47522
47523         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47524         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47525         Autoconf definition.
47526         * modules/euidaccess (Depends-on): Add extensions, for
47527         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47528         * modules/fnmatch (Depends-on): Likewise.
47529         * modules/getaddrinfo (Depends-on): Likewise.
47530         * modules/getdelim (Depends-on): Likewise.
47531         * modules/getline (Depends-on): Likewise.
47532         * modules/getsubopt (Depends-on): Likewise.
47533         * modules/gettext (Depends-on): Likewise.
47534         * modules/group-member (Depends-on): Likewise.
47535         * modules/mbchar (Depends-on): Likewise.
47536         * modules/memmem (Depends-on): Likewise.
47537         * modules/mempcpy (Depends-on): Likewise.
47538         * modules/memrchr (Depends-on): Likewise.
47539         * modules/pagealign_alloc (Depends-on): Likewise.
47540         * modules/readutmp (Depends-on): Likewise.
47541         * modules/stpcpy (Depends-on): Likewise.
47542         * modules/stpncpy (Depends-on): Likewise.
47543         * modules/strchrnul (Depends-on): Likewise.
47544         * modules/strndup (Depends-on): Likewise.
47545         * modules/strsep (Depends-on): Likewise.
47546         * modules/strverscmp (Depends-on): Likewise.
47547         * modules/vasprintf (Depends-on): Likewise.
47548         * modules/wcwidth (Depends-on): Likewise.
47549         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47550         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47551         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47552         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47553         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47554         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47555         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47556         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47557         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47558         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47559         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47560         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47561         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47562         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47563         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47564         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47565         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47566         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47568         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47569         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47570         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47571         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47572         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47573         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47575         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47576         so that lock.m4 can be used in gettext without extensions module.
47577
47578 2007-09-11  Bruno Haible  <bruno@clisp.org>
47579
47580         * m4/isc-posix.m4: Remove file.
47581         Suggested by Eric Blake.
47582
47583 2007-09-11  Eric Blake  <ebb9@byu.net>
47584
47585         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47586
47587 2007-09-10  Bruno Haible  <bruno@clisp.org>
47588
47589         * posix-modules: Fix typo in error message.
47590         Reported by Matt <mkraai@beckman.com>.
47591
47592 2007-09-09  Bruno Haible  <bruno@clisp.org>
47593
47594         * doc/functions/getdelim.texi: Update list of platforms lacking the
47595         function.
47596         * doc/functions/getline.texi: Likewise.
47597
47598 2007-09-09  Jim Meyering  <jim@meyering.net>
47599
47600         * lib/hash.c (hash_initialize): Detect calloc failure.
47601         Reported by Bruno Haible.
47602
47603 2007-09-09  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47606         malloc or realloc fails.
47607
47608 2007-09-09  Bruno Haible  <bruno@clisp.org>
47609
47610         * modules/getcwd (Depends-on): Add malloc-posix.
47611         * modules/glob (Depends-on): Likewise.
47612         * modules/putenv (Depends-on): Likewise.
47613         * modules/strdup (Depends-on): Likewise.
47614         * modules/getdelim (Depends-on): Add realloc-posix.
47615         * modules/read-file (Depends-on): Likewise.
47616
47617 2007-09-09  Bruno Haible  <bruno@clisp.org>
47618
47619         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47620         (gl_FUNC_MALLOC_POSIX): Require it.
47621         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47622         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47623         * modules/realloc (Files): Add m4/malloc.m4.
47624         * modules/calloc (Files): Likewise.
47625
47626 2007-09-09  Bruno Haible  <bruno@clisp.org>
47627
47628         * modules/malloc-posix: New file.
47629         * modules/malloc (Depends-on): Add malloc-posix.
47630         * lib/malloc.c: Include errno.h.
47631         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47632         and a POSIX-compatible malloc into a single function. Set ENOMEM
47633         when returning NULL.
47634         * m4/malloc.m4: New file.
47635         * doc/functions/malloc.texi: Mention the malloc-posix module.
47636         * lib/stdlib_.h (malloc): New declaration.
47637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47638         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47639         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47640         and HAVE_MALLOC_POSIX.
47641
47642 2007-09-09  Bruno Haible  <bruno@clisp.org>
47643
47644         * modules/realloc-posix: New file.
47645         * modules/realloc (Depends-on): Add realloc-posix.
47646         * lib/realloc.c: Include errno.h.
47647         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47648         and a POSIX-compatible realloc into a single function. Set ENOMEM
47649         when returning NULL.
47650         * m4/realloc.m4: New file.
47651         * doc/functions/realloc.texi: Mention the realloc-posix module.
47652         * lib/stdlib_.h (realloc): New declaration.
47653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47654         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47655         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47656         and HAVE_REALLOC_POSIX.
47657
47658 2007-09-09  Bruno Haible  <bruno@clisp.org>
47659
47660         * modules/calloc-posix: New file.
47661         * modules/calloc (Depends-on): Add calloc-posix.
47662         * lib/calloc.c: Include errno.h.
47663         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47664         and a POSIX-compatible calloc into a single function. Set ENOMEM
47665         when returning NULL.
47666         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47667         * doc/functions/calloc.texi: Mention the calloc-posix module.
47668         * lib/stdlib_.h (calloc): New declaration.
47669         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47670         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47671         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47672         and HAVE_CALLOC_POSIX.
47673
47674 2007-09-09  Bruno Haible  <bruno@clisp.org>
47675
47676         Allow for modules to show an arbitrary notice.
47677         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47678         * gnulib-tool: New option --extract-notice.
47679         (func_usage): Document it.
47680         (sed_extract_prog): Update.
47681         (func_get_notice): New function.
47682         (func_modules_notice): New function.
47683         (func_import, func_create_testdir): Invoke it.
47684         Suggested by Jim Meyering.
47685
47686 2007-09-09  Bruno Haible  <bruno@clisp.org>
47687
47688         * gnulib-tool: New options --verbose, --quiet.
47689         (func_usage): Document them.
47690         (verbose): New variable.
47691         (func_execute_command): New function.
47692         (func_import): Don't show the module list and the file list if
47693         $verbose < 0.
47694         (func_create_testdir): Likewise. Use func_execute_command.
47695         (func_create_megatestdir): Use func_execute_command.
47696
47697 2007-09-08  Bruno Haible  <bruno@clisp.org>
47698
47699         * gnulib-tool (func_import): Prefer rsync over wget when available,
47700         for fetching the PO files.
47701
47702 2007-09-08  Bruno Haible  <bruno@clisp.org>
47703
47704         * posix-modules: New file. Portions copied from gnulib-tool.
47705         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47706
47707 2007-09-08  Jim Meyering  <jim@meyering.net>
47708
47709         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47710         * lib/fpending.h: Rename from __fpending.h.
47711         * lib/fpending.c: Rename from __fpending.c.
47712         Include "fpending.h", not "__fpending.h".
47713         * lib/__fpending.h, lib/__fpending.c: Remove files.
47714         * modules/fpending (Files): Reflect new file names.
47715         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47716
47717 2007-09-08  Bruno Haible  <bruno@clisp.org>
47718
47719         * m4/inttypes-h.m4: Remove stub file.
47720
47721 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47722
47723         * doc/headers/stdint.texi: Discuss #include_next issue.
47724
47725 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47726
47727         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47728
47729 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47730
47731         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47732         in variable name.
47733
47734 2007-09-03  Jim Meyering  <jim@meyering.net>
47735
47736         New module: git-version-gen.
47737         * modules/git-version-gen: New file.
47738
47739         Import changes from coreutils for bootstrap script.
47740
47741         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47742
47743         bootstrap: uses rsync to download the .po files
47744         * build-aux/bootstrap (po_download_command_format): New global.
47745         (download_po_files): Use rsync.
47746         (update_po_files): Don't remove .po files after download,
47747         so future rsync runs can take advantage of the copies.
47748
47749         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47750
47751         Solve the unnecessary-.po-file-regeneration problem once and for all.
47752         * build-aux/bootstrap (download_po_files): New function, renamed from
47753         get_translations.  Now, downloads, but doesn't update LINGUAS.
47754         (update_po_files): New function.
47755
47756         bootstrap: Ignore more.
47757         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47758         uniwidth to e.g., lib/.gitignore.
47759         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47760
47761         * build-aux/bootstrap: New setting: vc_ignore.
47762         (insert_sorted_if_absent): Create $file if absent.
47763         Adapt to new, possibly empty, list: $vc_ignore.
47764
47765         bootstrap: generate more ignorable names
47766         * build-aux/bootstrap (slurp): When generating ignorable names,
47767         also map .sin to .sed, .gperf to .c, and .y to .c.
47768
47769 2007-09-03  Jim Meyering  <jim@meyering.net>
47770
47771         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47772         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47773
47774 2007-09-02  Bruno Haible  <bruno@clisp.org>
47775
47776         Fix mis-recognition of 'mcs' on QNX 6.
47777         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47778         output contains the string "Mono".
47779         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47780         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47781
47782 2007-09-01  Bruno Haible  <bruno@clisp.org>
47783
47784         Fix collision between uniwidth/* and linebreak modules.
47785         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47786         u32_width): Remove declarations.
47787         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47788         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47789         streq3, streq2, streq1, streq0): Remove functions.
47790         (STREQ): Remove macro.
47791         (is_cjk_encoding): Remove function.
47792         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47793         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47794         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47795         * NEWS: Document the change.
47796
47797 2007-09-01  Bruno Haible  <bruno@clisp.org>
47798
47799         * lib/streq.h: Add double-inclusion guard.
47800
47801 2007-09-01  Karl Berry  <karl@gnu.org>
47802
47803         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47804
47805 2007-08-28  Jim Meyering  <jim@meyering.net>
47806
47807         Rename mreadlink_with_size to areadlink_with_size.
47808         * NEWS: Document the change.
47809         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47810         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47811         * lib/mreadlink.h: Rename this to...
47812         * lib/areadlink.h: ...this.
47813         * modules/mreadlink-with-size: Rename this to...
47814         * modules/areadlink-with-size: ...this.
47815         * lib/canonicalize.c: Reflect the renaming.
47816         * modules/canonicalize: Likewise.
47817
47818 2007-08-26  Bruno Haible  <bruno@clisp.org>
47819
47820         * gnulib-tool (func_import): When deciding which files to remove,
47821         consider also dangling symbolic links.
47822         Reported by Eric Blake.
47823
47824 2007-08-26  Bruno Haible  <bruno@clisp.org>
47825
47826         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47827
47828 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47829
47830         * lib/readline.c: Don't include getline.h, the prototype is now
47831         found in stdio.h.
47832
47833 2007-08-23  Jim Meyering  <jim@meyering.net>
47834
47835         Getdelim touchup.
47836         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47837         around the funlockfile call, since funlockfile never sets errno.
47838         Don't set errno upon failed realloc.
47839
47840 2007-08-22  Eric Blake  <ebb9@byu.net>
47841
47842         Getline touchups.
47843         * lib/getdelim.c (getdelim): Revert regression that required *n to
47844         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47845         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47846         getdelim, rather than whether implementation is missing.
47847         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47848         * lib/stdio_.h (getline): Also declare if replacement is
47849         required.
47850         * doc/functions/getdelim.texi: New file.
47851         * doc/functions/getline.texi: Likewise.
47852         * doc/gnulib.texi (Function Substitutes): Add new files.
47853         Reported by Bruno Haible.
47854
47855 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47856
47857         * users.txt: Add Guile.
47858
47859 2007-08-22  Eric Blake  <ebb9@byu.net>
47860
47861         * tests/test-getdelim.c (main): Use remove, not unlink.
47862         * tests/test-getline.c (main): Likewise.
47863
47864         Move getline and getdelim into stdio.h, per POSIX 200x.
47865         * modules/getline (Files): Remove getline.h.
47866         (Depends-on): Add stdio.
47867         (configure.ac): Add module indicator.
47868         * modules/getdelim (Files): Remove getdelim.h.
47869         (Depends-on): Add stdio.
47870         (configure.ac): Add module indicator.
47871         * modules/stdio (Makefile.am): Work with new indicators.
47872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47873         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47874         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47875         * lib/getdelim.h: Delete.
47876         * lib/getline.h: Delete.
47877         * lib/stdio_.h (getdelim, getline): Declare.
47878         * modules/getdelim-tests: New module.
47879         * modules/getline-tests: Likewise.
47880         * tests/test-getdelim.c: New file.
47881         * tests/test-getline.c: Likewise.
47882         * NEWS: Document the change.
47883         * lib/getline.c: Update choice of header.
47884         * lib/csharpcomp.c: Likewise.
47885         * lib/getpass.c: Likewise.
47886         * lib/javacomp.c: Likewise.
47887         * lib/javaversion.c: Likewise.
47888         * lib/yesno.c: Likewise.
47889         * lib/getdelim.c: Likewise.
47890         (getdelim): Set errno on failure, and avoid memory leak.
47891
47892 2007-08-19  Bruno Haible  <bruno@clisp.org>
47893
47894         * modules/closein (Depends-on): Add freadahead.
47895         * lib/closein.c: Include freadahead.h.
47896         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47897         is zero.
47898
47899 2007-08-19  Bruno Haible  <bruno@clisp.org>
47900
47901         * modules/freadahead-tests: New file.
47902         * tests/test-freadahead.sh: New file.
47903         * tests/test-freadahead.c: New file.
47904
47905         * modules/freadahead: New file.
47906         * lib/freadahead.h: New file.
47907         * lib/freadahead.c: New file.
47908         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47909         fbufmode, fpurge, freadable, fwritable.
47910
47911 2007-08-19  Eric Blake  <ebb9@byu.net>
47912
47913         Test yesno in combination with closein.
47914         * lib/yesno.c (yesno): Document use of stdin.
47915         * modules/yesno-tests (Files): New module.
47916         * tests/test-yesno.c (main): New file.
47917         * tests/test-yesno.sh: Likewise.
47918
47919 2007-08-19  Bruno Haible  <bruno@clisp.org>
47920
47921         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47922         * lib/fseeko.c (rpl_fseeko): Likewise.
47923         * lib/fseterr.c (fseterr): Likewise.
47924
47925 2007-08-19  Bruno Haible  <bruno@clisp.org>
47926
47927         * tests/test-lseek.c (main): Disable a test for BeOS.
47928         * doc/functions/lseek.texi: Document the BeOS bug.
47929
47930 2007-08-19  Bruno Haible  <bruno@clisp.org>
47931             Eric Blake  <ebb9@byu.net>
47932
47933         * lib/lseek.c: Include <sys/stat.h>.
47934         (rpl_lseek): Add workaround code also for Unix platforms.
47935         Needed for BeOS.
47936         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47937         * doc/functions/lseek.texi: Document BeOS definiency.
47938
47939 2007-08-18  Bruno Haible  <bruno@clisp.org>
47940
47941         * modules/fstrcmp-tests: New file.
47942         * tests/test-fstrcmp.c: New file.
47943
47944 2007-08-18  Bruno Haible  <bruno@clisp.org>
47945
47946         * modules/fstrcmp: New file, from GNU gettext with modifications.
47947         * lib/fstrcmp.h: New file, from GNU gettext.
47948         * lib/fstrcmp.c: New file, from GNU gettext.
47949         * MODULES.html.sh (String handling): Add fstrcmp.
47950
47951 2007-08-18  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47954         'bool'.
47955         (diag, compareseq): Remove const from the ctxt argument.
47956         (USE_HEURISTIC): Undefine at the end.
47957
47958 2007-08-18  Jim Meyering  <jim@meyering.net>
47959
47960         New file: lib/idcache.h
47961         * NEWS: Mention the addition.
47962         * modules/idcache (Files): Add lib/idcache.h
47963         * lib/idcache.c: Include "idcache.h".
47964         Don't include <sys/types.h>.
47965         Add a FIXME comment.
47966         Move file-scoped "static" declarations to the top.
47967         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47968
47969 2007-08-17  Bruno Haible  <bruno@clisp.org>
47970         and Paul Eggert  <eggert@cs.ucla.edu>
47971
47972         * MODULES.html.sh: Add diffseq.
47973         * modules/diffseq: New file.
47974         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47975         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47976
47977 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47978
47979         Import changes from coreutils for bootstrap script.
47980
47981         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47982
47983         * build-aux/bootstrap (slurp): Work even in environments where
47984         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47985         current code does not slurp files whose names start with ".", and
47986         this looks like it might be a troublesome area.
47987
47988         2007-07-11  Jim Meyering  <jim@meyering.net>
47989
47990         If there's a GPL vN copyright comment, require that N == 3.
47991
47992         2007-07-08  Jim Meyering  <jim@meyering.net>
47993
47994         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47995         * build-aux/bootstrap (mam_template): Move definition out of loop.
47996
47997         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47998
47999         * build-aux/bootstrap (symlink_to_dir): Rename function from
48000         symlink_to_gnulib.  Add a directory parameter.  Update all
48001         callers.
48002         (cp_mark_as_generated): Also check for -- and link to -- files in
48003         gl/.
48004
48005         2007-07-08  Jim Meyering  <jim@meyering.net>
48006
48007         Adapt to deeper hierarchy in gnulib.
48008         * build-aux/bootstrap (symlink_to_dir): If the destination
48009         directory doesn't exist, create it. This is required at least for
48010         "lib/uniwidth/cjk.h".
48011
48012         2007-05-15  Jim Meyering  <jim@meyering.net>
48013
48014         * build-aux/bootstrap: Now that generated Makefile.am files
48015         are no longer under version control, they must be created at
48016         bootstrap time.
48017
48018 2007-08-14  Ben Pfaff  <blp@gnu.org>
48019
48020         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48021
48022 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48023
48024         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48025         given the changes below.
48026         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48027         even on hosts that have padding bits beyond the supported 64.
48028
48029 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48030
48031         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48032         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48033         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48034         depends on it.
48035         (xstrtol_error): Remove.
48036         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48037         but with a different signature.
48038         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48039         * lib/xstrtol-error.c: Include exitfail.h.
48040         (xstrtol_fatal): New function, with a different signature from the
48041         old xstrtol_error, so that the caller need not worry about passing
48042         in an exit status, or about storage management of the option argument.
48043         (xstrtol_error): Now a static function.  Redo signature to
48044         implement xstrtol_fatal.  Output the correct number of hyphens in
48045         front of the option so that the caller need not worry about
48046         storage management.
48047         (N_): New macro.
48048         (_): Remove; not used now.
48049         * modules/xstrtol: Depend on getopt.
48050         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48051         of old STRTOL_FATAL_ERROR macro.
48052         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48053         of test program.
48054         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48055         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48056
48057 2007-08-08  Eric Blake  <ebb9@byu.net>
48058
48059         * lib/xstrtol-error.c: Add missing include.
48060
48061         Move xstrtol messages into gnulib domain, when --pobase is used.
48062         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48063         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48064         * modules/xstrtol (Files): Distribute new file.
48065         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48066         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48067         * tests/test-xstrtol.c: ...into new file.
48068         * tests/test-xstrtoul.c: Also test xstrtoul.
48069         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48070         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48071         * tests/test-xstrtol.sh: Drive the tests.
48072         * tests/test-xstrtoimax.sh: Likewise.
48073         * tests/test-xstrtoumax.sh: Likewise.
48074         * modules/xstrtol-tests: New module.
48075         * modules/xstrtoimax-tests: Likewise.
48076         * modules/xstrtoumax-tests: Likewise.
48077
48078 2007-08-08  Jim Meyering  <jim@meyering.net>
48079
48080         New function: mfile_name_concat.
48081         * lib/filenamecat.c (mfile_name_concat): New function, just like
48082         file_name_concat, but return NULL upon failure rather than exiting
48083         with a diagnostic.
48084         * lib/filenamecat.h: Declare it.
48085
48086 2007-08-07  Bruno Haible  <bruno@clisp.org>
48087
48088         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48089         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48090         warning from gcc.
48091         Reported by Eric Blake.
48092
48093 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48094
48095         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48096         * modules/crypto/arcfour (License): Likewise.
48097         * modules/crypto/des-tests (License): Likewise.
48098         * modules/crypto/gc-arctwo-tests (License): Likewise.
48099         * modules/crypto/gc-des-tests (License): Likewise.
48100         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48101         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48102         * modules/crypto/gc-md2-tests (License): Likewise.
48103         * modules/crypto/gc-md4-tests (License): Likewise.
48104         * modules/crypto/gc-md5-tests (License): Likewise.
48105         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48106         * modules/crypto/gc-rijndael-tests (License): Likewise.
48107         * modules/crypto/gc-sha1-tests (License): Likewise.
48108         * modules/crypto/gc-tests (License): Likewise.
48109         * modules/crypto/hmac-md5 (License): Likewise.
48110         * modules/crypto/hmac-sha1 (License): Likewise.
48111         * modules/crypto/md2-tests (License): Likewise.
48112         * modules/crypto/md4-tests (License): Likewise.
48113         * modules/crypto/md5 (License): Likewise.
48114         * modules/crypto/rijndael (License): Likewise.
48115         * modules/crypto/sha1 (License): Likewise.
48116         * modules/memxor (License): Likewise.
48117
48118 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48119         and Bruno Haible  <bruno@clisp.org>
48120
48121         * NEWS: Describe interface changes to human, xstrtol.
48122         * lib/human.h: Include <xstrtol.h>.
48123         (human_options): Return enum strtol_error, not int.  Remove
48124         bool arg; take int * instead.
48125         * lib/human.c: Don't include "gettext.h".
48126         (_): Remove; no longer used.
48127         Don't include <xstrtol.h>, since human.h does it.
48128         (human_options): Adjust to abovementioned interface changes.
48129         Do not report error to stderr; that's now the caller's
48130         responsibility.
48131         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48132         interface change.
48133         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48134         Str, Argument_type_string.  All uses changed.  Put " argument"
48135         in diagnostics to make them clearer.  Change wording of suffix
48136         message for clarity.
48137         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48138         Argument_type_string.
48139         (STRTOL_FATAL_WARN): Remove; no longer used.
48140         * modules/human (Depends-on): Remove gettext-h.
48141
48142 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48143
48144         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48145
48146 2007-07-31  Bruno Haible  <bruno@clisp.org>
48147
48148         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48149         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48150         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48151
48152 2007-07-31  Bruno Haible  <bruno@clisp.org>
48153
48154         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48155         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48156
48157 2007-07-30  Bruno Haible  <bruno@clisp.org>
48158
48159         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48160         * modules/c-ctype (License): Likewise.
48161         * modules/c-strcase (License): Likewise.
48162         * modules/check-version (License): Likewise.
48163         * modules/iconv (License): Likewise.
48164         * modules/iconv_open (License): Likewise.
48165         * modules/read-file (License): Likewise.
48166         * modules/striconv (License): Likewise.
48167         * modules/strverscmp (License): Likewise.
48168         * modules/vasprintf (License): Likewise.
48169         * modules/crypto/des (License): Likewise.
48170         * modules/crypto/gc (License): Likewise.
48171         * modules/crypto/gc-arcfour (License): Likewise.
48172         * modules/crypto/gc-arctwo (License): Likewise.
48173         * modules/crypto/gc-des (License): Likewise.
48174         * modules/crypto/gc-hmac-md5 (License): Likewise.
48175         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48176         * modules/crypto/gc-md2 (License): Likewise.
48177         * modules/crypto/gc-md4 (License): Likewise.
48178         * modules/crypto/gc-md5 (License): Likewise.
48179         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48180         * modules/crypto/gc-random (License): Likewise.
48181         * modules/crypto/gc-rijndael (License): Likewise.
48182         * modules/crypto/gc-sha1 (License): Likewise.
48183         * modules/crypto/md2 (License): Likewise.
48184         * modules/crypto/md4 (License): Likewise.
48185
48186 2007-07-30  Jim Meyering  <jim@meyering.net>
48187
48188         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48189         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48190         it has valid stat data.  This bug would cause du not to count the
48191         sizes of inaccessible directories.
48192         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48193         in <http://bugzilla.redhat.com/250077>.
48194
48195 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48196             Bruno Haible  <bruno@clisp.org>
48197
48198         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48199         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48200         #include_next, gives a diagnostic about it, but reports no error in
48201         the exit code.
48202         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48203
48204 2007-07-24  Ben Pfaff  <blp@gnu.org>
48205
48206         Improve name: "count-one-bits" is better than "popcount".
48207         * MODULES.html.sh: Update name.
48208         * lib/popcount.h: Renamed lib/count-one-bits.h.
48209         (popcount): Renamed count_one_bits.
48210         (popcountl): Renamed count_one_bits_l.
48211         (popcountll): Renamed count_one_bits_ll.
48212         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48213         * modules/popcount: Renamed module/count-one-bits.
48214         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48215         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48216
48217 2007-07-23  Ben Pfaff  <blp@gnu.org>
48218
48219         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48220         better code generation, and add U to large constants to avoid
48221         warnings, in non-GCC case.
48222         Suggested by Bruno Haible.
48223
48224 2007-07-23  Ben Pfaff  <blp@gnu.org>
48225
48226         * lib/popcount.h: Use verify_true instead of if...abort.
48227         * modules/popcount: Depend on verify module.
48228         Suggested by Jim Meyering.
48229
48230 2007-07-23  Bruno Haible  <bruno@clisp.org>
48231
48232         * gnulib-tool (func_import): Create a .cvsignore file also when the
48233         directory is not yet in CVS but the toplevel directory is. When
48234         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48235         Reported by Karl Berry.
48236
48237 2007-07-22  Ben Pfaff  <blp@gnu.org>
48238
48239         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48240         case.
48241         Suggested by Eric Blake.
48242
48243 2007-07-22  Ben Pfaff  <blp@gnu.org>
48244
48245         New module: popcount.
48246         * MODULES.html.sh: Add popcount.
48247         * modules/popcount: New file.
48248         * modules/popcount-tests: New file.
48249         * tests/test-popcount.c: New file.
48250         * lib/popcount.h: New file.
48251         * m4/popcount.m4: New file.
48252
48253 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48254
48255         * build-aux/announce-gen: Update to GPLv3.
48256
48257         * build-aux/config.guess: Update from config.
48258
48259 2007-07-21  Bruno Haible  <bruno@clisp.org>
48260
48261         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48262         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48263
48264 2007-07-20  Jim Meyering  <jim@meyering.net>
48265
48266         * check-module: Diagnose a self-dependency.
48267
48268 2007-07-19  Bruno Haible  <bruno@clisp.org>
48269
48270         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48271         empty.
48272         Reported by Eric Blake.
48273
48274 2007-07-18  Bruno Haible  <bruno@clisp.org>
48275
48276         * gnulib-tool: New options --po-base, --po-domain.
48277         (func_usage): Document them.
48278         (pobase, po_domain): New variables.
48279         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48280         DEFAULT_TEXT_DOMAIN.
48281         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48282         (func_import): Consider pobase and po_domain. Create a po/ directory.
48283         (func_create_testdir): Set pobase and po_domain to empty.
48284         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48285         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48286
48287 2007-07-18  Bruno Haible  <bruno@clisp.org>
48288
48289         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48290         EXTRA_DIST augmentation for files in build-aux/.
48291
48292 2007-07-16  Bruno Haible  <bruno@clisp.org>
48293
48294         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48295         * modules/getdelim (License): Likewise.
48296
48297 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48298
48299         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48300         * modules/d-type (License): Likewise.
48301         * modules/extensions (License): Likewise.
48302         * modules/fnmatch (License): Likewise.
48303         * modules/fseeko (License): Likewise.
48304         * modules/getaddrinfo (License): Likewise.
48305         * modules/getline (License): Likewise.
48306         * modules/getlogin_r (License): Likewise.
48307         * modules/getpass (License): Likewise.
48308         * modules/gettimeofday (License): Likewise.
48309         * modules/glob (License): Likewise.
48310         * modules/inet_ntop (License): Likewise.
48311         * modules/malloc (License): Likewise.
48312         * modules/malloca (License): Likewise.
48313         * modules/memmem (License): Likewise.
48314         * modules/mempcpy (License): Likewise.
48315         * modules/memset (License): Likewise.
48316         * modules/minmax (License): Likewise.
48317         * modules/mktime (License): Likewise.
48318         * modules/netinet_in (License): Likewise.
48319         * modules/pathmax (License): Likewise.
48320         * modules/poll (License): Likewise.
48321         * modules/regex (License): Likewise.
48322         * modules/snprintf (License): Likewise.
48323         * modules/stdbool (License): Likewise.
48324         * modules/stdint (License): Likewise.
48325         * modules/stdio (License): Likewise.
48326         * modules/strcase (License): Likewise.
48327         * modules/strcasestr (License): Likewise.
48328         * modules/strdup (License): Likewise.
48329         * modules/string (License): Likewise.
48330         * modules/strndup (License): Likewise.
48331         * modules/strnlen (License): Likewise.
48332         * modules/strpbrk (License): Likewise.
48333         * modules/strptime (License): Likewise.
48334         * modules/strsep (License): Likewise.
48335         * modules/sys_select (License): Likewise.
48336         * modules/sys_socket (License): Likewise.
48337         * modules/sys_stat (License): Likewise.
48338         * modules/sys_time (License): Likewise.
48339         * modules/time (License): Likewise.
48340         * modules/time_r (License): Likewise.
48341         * modules/timegm (License): Likewise.
48342         * modules/unistd (License): Likewise.
48343         * modules/vsnprintf (License): Likewise.
48344         * modules/wctype (License): Likewise.
48345
48346 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48347
48348         * modules/argz (License): LGPLv2+.
48349
48350 2007-07-15  Karl Berry  <karl@gnu.org>
48351
48352         * doc/gnulib.texi: revise node structure per new fdl.texi.
48353
48354 2007-07-14  Bruno Haible  <bruno@clisp.org>
48355
48356         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48357         the output file.
48358         * lib/uniname/uninames.h: Regenerated.
48359
48360 2007-07-14  Karl Berry  <karl@gnu.org>
48361
48362         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48363         omitting sectioning and index commands.
48364
48365 2007-07-13  Bruno Haible  <bruno@clisp.org>
48366
48367         New gnulib-tool option --more-symlinks.
48368         * gnulib-tool (func_usage): Document --more-symlinks.
48369         (do_copyrights): New variable.
48370         Recognize option --more-symlinks.
48371         (func_import): Don't add a copyright notice transform to
48372         sed_transform_lib_file if do_copyrights is empty.
48373
48374 2007-07-13  Bruno Haible  <bruno@clisp.org>
48375
48376         * lib/vasnprintf.c (decimal_point_char): Define also if
48377         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48378         && !NEED_PRINTF_DIRECTIVE_A.
48379         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48380         Gary V. Vaughan <gary@gnu.org>.
48381
48382 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48383
48384         * lib/inttypes_.h: Undo previous change, since it was fixed
48385         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48386
48387 2007-07-13  Bruno Haible  <bruno@clisp.org>
48388
48389         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48390         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48391
48392 2007-07-13  Jim Meyering  <jim@meyering.net>
48393
48394         df: Don't fail for Tru64's "file-on-file mount".
48395         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48396         so we fall through and use statfs instead.  Details here:
48397         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48398         Reported by Albert Chin.
48399
48400 2007-07-13  Bruno Haible  <bruno@clisp.org>
48401
48402         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48403         * modules/configmake (License): Likewise.
48404         * modules/gettext (License): Likewise.
48405         * modules/gettext-h (License): Likewise.
48406         * modules/include_next (License): Likewise.
48407         * modules/link-warning (License): Likewise.
48408         * modules/localcharset (License): Likewise.
48409         * modules/localename (License): Likewise.
48410         * modules/lock (License): Likewise.
48411         * modules/relocatable-lib-lgpl (License): Likewise.
48412         * modules/size_max (License): Likewise.
48413         * modules/vasnprintf (License): Likewise.
48414         * modules/wchar (License): Likewise.
48415         * modules/xsize (License): Likewise.
48416
48417 2007-07-13  Bruno Haible  <bruno@clisp.org>
48418
48419         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48420         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48421
48422 2007-07-12  Bruno Haible  <bruno@clisp.org>
48423
48424         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48425         in the modules files.
48426
48427 2007-07-11  Karl Berry  <karl@gnu.org>
48428
48429         * MODULES.html.sh (func_module): use
48430          sed -e '\|^'"${includefile}"'$|d'
48431          instead of /.../d, to avoid errors on $includefile's containing /.
48432
48433 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48434
48435         * gnulib-tool (func_import): Avoid duplication of --avoid
48436         statements
48437         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48438         names to `_' in variable names.
48439
48440 2007-07-10  Eric Blake  <ebb9@byu.net>
48441
48442         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48443         * NEWS: Document this change.
48444
48445 2007-07-08  Bruno Haible  <bruno@clisp.org>
48446
48447         Update to Unicode 5.0.
48448         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48449         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48450         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48451         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48452         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48453         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48454         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48455         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48456         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48457         U+10A3F, U+1D242..U+1D244.
48458         (nonspacing_table_ind): Update.
48459         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48460         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48461
48462 2007-07-08  Bruno Haible  <bruno@clisp.org>
48463
48464         Update to Unicode 5.0.
48465         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48466         code transform. Extend the name index field of unicode_name_to_code and
48467         unicode_code_to_name from 16 to 24 bits.
48468         * lib/uniname/uniname.c (unicode_character_name,
48469         unicode_name_character): Add the range 0x12xxx to the code transform.
48470         * lib/uniname/uninames.h: Regenerated.
48471         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48472
48473 2007-07-07  Bruno Haible  <bruno@clisp.org>
48474
48475         * modules/wcwidth-tests: New file.
48476         * tests/test-wcwidth.c: New file.
48477
48478         Work around MacOS X wcwidth() bug.
48479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48480         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48481         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48482         original wcwidth in non-UTF-8 locales.
48483         * modules/wcwidth (Depends-on): Add localcharset, streq,
48484         uniwidth/width.
48485         * doc/functions/wcwidth.texi: Update.
48486
48487 2007-07-07  Bruno Haible  <bruno@clisp.org>
48488
48489         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48490         (wcwidth): New declaration.
48491         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48492         macros.
48493         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48494         here. Prepare for creating <wchar.h> unconditionally.
48495         * modules/wchar (Depends-on): Add link-warning.
48496         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48497         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48498         * lib/wcwidth.h: Remove file.
48499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48500         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48501         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48502         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48503         (Include): Replace wcwidth.h with <wchar.h>.
48504         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48505         * lib/mbchar.h: Don't include wcwidth.h.
48506         * lib/mbswidth.c: Likewise.
48507         * NEWS: Mention the change.
48508
48509 2007-07-07  Bruno Haible  <bruno@clisp.org>
48510
48511         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48512         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48513         definition with an external declaration.
48514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48515         defined as a function. Remove AC_C_INLINE requirement.
48516         * modules/wcwidth (Files): Add lib/wcwidth.c.
48517         (Makefile.am): Remove redundant statement.
48518
48519 2007-07-07  Bruno Haible  <bruno@clisp.org>
48520
48521         * MODULES.html.sh (Unicode string functions): Add the new modules.
48522
48523         * tests/uniwidth/test-u32-strwidth.c: New file.
48524         * modules/uniwidth/u32-strwidth-tests: New file.
48525
48526         * lib/uniwidth/u32-strwidth.c: New file.
48527         * modules/uniwidth/u32-strwidth: New file.
48528
48529         * tests/uniwidth/test-u16-strwidth.c: New file.
48530         * modules/uniwidth/u16-strwidth-tests: New file.
48531
48532         * lib/uniwidth/u16-strwidth.c: New file.
48533         * modules/uniwidth/u16-strwidth: New file.
48534
48535         * tests/uniwidth/test-u8-strwidth.c: New file.
48536         * modules/uniwidth/u8-strwidth-tests: New file.
48537
48538         * lib/uniwidth/u8-strwidth.c: New file.
48539         * modules/uniwidth/u8-strwidth: New file.
48540
48541         * tests/uniwidth/test-u32-width.c: New file.
48542         * modules/uniwidth/u32-width-tests: New file.
48543
48544         * lib/uniwidth/u32-width.c: New file.
48545         * modules/uniwidth/u32-width: New file.
48546
48547         * tests/uniwidth/test-u16-width.c: New file.
48548         * modules/uniwidth/u16-width-tests: New file.
48549
48550         * lib/uniwidth/u16-width.c: New file.
48551         * modules/uniwidth/u16-width: New file.
48552
48553         * tests/uniwidth/test-u8-width.c: New file.
48554         * modules/uniwidth/u8-width-tests: New file.
48555
48556         * lib/uniwidth/u8-width.c: New file.
48557         * modules/uniwidth/u8-width: New file.
48558
48559         * tests/uniwidth/test-uc_width.c: New file.
48560         * modules/uniwidth/width-tests: New file.
48561
48562         * lib/uniwidth/width.c: New file, from GNU libiconv.
48563         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48564         * modules/uniwidth/width: New file.
48565
48566         * lib/uniwidth.h: New file, from GNU libiconv.
48567         * modules/uniwidth/base: New file.
48568
48569 2007-07-07  Bruno Haible  <bruno@clisp.org>
48570
48571         * lib/uniname.h: New file, from GNU gettext.
48572         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48573         * lib/uniname/uninames.h: New file, from GNU gettext.
48574         * lib/uniname/uniname.c: New file, from GNU gettext.
48575         * tests/uniname/test-uninames.sh: New file.
48576         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48577         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48578         * modules/uniname/base: New file.
48579         * modules/uniname/uniname: New file.
48580         * modules/uniname/uniname-tests: New file.
48581         * MODULES.html.sh (Unicode string functions): Add the new modules.
48582
48583 2007-07-06  Bruno Haible  <bruno@clisp.org>
48584
48585         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48586
48587 2007-07-06  Bruno Haible  <bruno@clisp.org>
48588
48589         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48590         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48591         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48592         include <sys/time.h>.
48593         Reported by Eric Blake.
48594
48595 2007-07-06  Eric Blake  <ebb9@byu.net>
48596
48597         Fix testing canonicalize on cygwin.
48598         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48599         Revert patch from 2007-06-19.
48600         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48601         canonicalize module is also in use.
48602         * tests/test-canonicalize.c: New file.
48603         * tests/test-canonicalize.sh: Likewise.
48604         * modules/canonicalize-tests: Likewise.
48605
48606 2007-07-06  Jim Meyering  <jim@meyering.net>
48607
48608         * lib/getugroups.c (getugroups): Detect getgrent failure.
48609         Adjust comment to reflect reality: this function may return -1.
48610
48611 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48612
48613         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48614         the new TP address.
48615         (usage): Fix typo
48616         (gnulib_mk): New variable.
48617
48618 2007-07-05  Jim Meyering  <jim@meyering.net>
48619
48620         Don't let endgrent clobber errno, no matter how improbable.
48621         * lib/getugroups.c (getugroups): Save and restore errno around
48622         endgrent call.
48623
48624         Close the group DB even when failing with 2^31 or more members.
48625         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48626
48627 2007-07-04  Jim Meyering  <jim@meyering.net>
48628
48629         * lib/getugroups.h: New file.
48630         * lib/getugroups.c: Include "getugroups.h".
48631         Remove uses of "register" keyword.
48632         Move local variable, "cp", down into scope where used.
48633         Give "username" parameter the "const" attribute.
48634         * modules/getugroups (Files): Add lib/getugroups.h
48635
48636 2007-07-04  Karl Berry  <karl@gnu.org>
48637
48638         * MODULES.html.sh (func_all_modules): Complete rename of
48639         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48640
48641 2007-07-02  Bruno Haible  <bruno@clisp.org>
48642
48643         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48644         mode, when inttypes.h comes from gnulib.
48645         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48646
48647 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48648
48649         * NEWS: Mention lgpl module name change.
48650
48651         * modules/lgpl-2.1: Renamed from lgpl.
48652
48653         * NEWS: Mention gpl module name change.
48654
48655         * modules/gpl-3.0: New file, based on gpl-2.0.
48656
48657         * modules/gpl-2.0: Renamed from gpl.
48658
48659         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48660         doc/gpl-2.0.texi.
48661
48662 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48663
48664         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48665         #define __STDC_LIMIT_MACROS temporarily while including
48666         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48667         Problem reported by Joel E. Denny in
48668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48669
48670 2007-07-01  Bruno Haible  <bruno@clisp.org>
48671
48672         * lib/unistdio.h: New file.
48673         * lib/unistdio/u-asnprintf.h: New file.
48674         * lib/unistdio/u-asprintf.h: New file.
48675         * lib/unistdio/u-printf-args.c: New file.
48676         * lib/unistdio/u-printf-args.h: New file.
48677         * lib/unistdio/u-printf-parse.h: New file.
48678         * lib/unistdio/u-snprintf.h: New file.
48679         * lib/unistdio/u-sprintf.h: New file.
48680         * lib/unistdio/u-vasprintf.h: New file.
48681         * lib/unistdio/u-vsnprintf.h: New file.
48682         * lib/unistdio/u-vsprintf.h: New file.
48683         * lib/unistdio/ulc-asnprintf.c: New file.
48684         * lib/unistdio/ulc-asprintf.c: New file.
48685         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48686         * lib/unistdio/ulc-printf-parse.c: New file.
48687         * lib/unistdio/ulc-snprintf.c: New file.
48688         * lib/unistdio/ulc-sprintf.c: New file.
48689         * lib/unistdio/ulc-vasnprintf.c: New file.
48690         * lib/unistdio/ulc-vasprintf.c: New file.
48691         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48692         * lib/unistdio/ulc-vsnprintf.c: New file.
48693         * lib/unistdio/ulc-vsprintf.c: New file.
48694         * lib/unistdio/u8-asnprintf.c: New file.
48695         * lib/unistdio/u8-asprintf.c: New file.
48696         * lib/unistdio/u8-printf-parse.c: New file.
48697         * lib/unistdio/u8-snprintf.c: New file.
48698         * lib/unistdio/u8-sprintf.c: New file.
48699         * lib/unistdio/u8-vasnprintf.c: New file.
48700         * lib/unistdio/u8-vasprintf.c: New file.
48701         * lib/unistdio/u8-vsnprintf.c: New file.
48702         * lib/unistdio/u8-vsprintf.c: New file.
48703         * lib/unistdio/u8-u8-asnprintf.c: New file.
48704         * lib/unistdio/u8-u8-asprintf.c: New file.
48705         * lib/unistdio/u8-u8-snprintf.c: New file.
48706         * lib/unistdio/u8-u8-sprintf.c: New file.
48707         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48708         * lib/unistdio/u8-u8-vasprintf.c: New file.
48709         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48710         * lib/unistdio/u8-u8-vsprintf.c: New file.
48711         * lib/unistdio/u16-asnprintf.c: New file.
48712         * lib/unistdio/u16-asprintf.c: New file.
48713         * lib/unistdio/u16-printf-parse.c: New file.
48714         * lib/unistdio/u16-snprintf.c: New file.
48715         * lib/unistdio/u16-sprintf.c: New file.
48716         * lib/unistdio/u16-vasnprintf.c: New file.
48717         * lib/unistdio/u16-vasprintf.c: New file.
48718         * lib/unistdio/u16-vsnprintf.c: New file.
48719         * lib/unistdio/u16-vsprintf.c: New file.
48720         * lib/unistdio/u16-u16-asnprintf.c: New file.
48721         * lib/unistdio/u16-u16-asprintf.c: New file.
48722         * lib/unistdio/u16-u16-snprintf.c: New file.
48723         * lib/unistdio/u16-u16-sprintf.c: New file.
48724         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48725         * lib/unistdio/u16-u16-vasprintf.c: New file.
48726         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48727         * lib/unistdio/u16-u16-vsprintf.c: New file.
48728         * lib/unistdio/u32-asnprintf.c: New file.
48729         * lib/unistdio/u32-asprintf.c: New file.
48730         * lib/unistdio/u32-printf-parse.c: New file.
48731         * lib/unistdio/u32-snprintf.c: New file.
48732         * lib/unistdio/u32-sprintf.c: New file.
48733         * lib/unistdio/u32-vasnprintf.c: New file.
48734         * lib/unistdio/u32-vasprintf.c: New file.
48735         * lib/unistdio/u32-vsnprintf.c: New file.
48736         * lib/unistdio/u32-vsprintf.c: New file.
48737         * lib/unistdio/u32-u32-asnprintf.c: New file.
48738         * lib/unistdio/u32-u32-asprintf.c: New file.
48739         * lib/unistdio/u32-u32-snprintf.c: New file.
48740         * lib/unistdio/u32-u32-sprintf.c: New file.
48741         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48742         * lib/unistdio/u32-u32-vasprintf.c: New file.
48743         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48744         * lib/unistdio/u32-u32-vsprintf.c: New file.
48745         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48746         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48747         * tests/unistdio/test-ulc-printf1.h: New file.
48748         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48749         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48750         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48751         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48752         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48753         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48754         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48755         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48756         * tests/unistdio/test-u8-asnprintf1.c: New file.
48757         * tests/unistdio/test-u8-asnprintf1.h: New file.
48758         * tests/unistdio/test-u8-printf1.h: New file.
48759         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48760         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48761         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48762         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48763         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48764         * tests/unistdio/test-u8-vasprintf1.c: New file.
48765         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48766         * tests/unistdio/test-u8-vsprintf1.c: New file.
48767         * tests/unistdio/test-u16-asnprintf1.c: New file.
48768         * tests/unistdio/test-u16-asnprintf1.h: New file.
48769         * tests/unistdio/test-u16-printf1.h: New file.
48770         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48771         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48772         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48773         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48774         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48775         * tests/unistdio/test-u16-vasprintf1.c: New file.
48776         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48777         * tests/unistdio/test-u16-vsprintf1.c: New file.
48778         * tests/unistdio/test-u32-asnprintf1.c: New file.
48779         * tests/unistdio/test-u32-asnprintf1.h: New file.
48780         * tests/unistdio/test-u32-printf1.h: New file.
48781         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48782         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48783         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48784         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48785         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48786         * tests/unistdio/test-u32-vasprintf1.c: New file.
48787         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48788         * tests/unistdio/test-u32-vsprintf1.c: New file.
48789         * modules/unistdio/base: New file.
48790         * modules/unistdio/u-printf-args: New file.
48791         * modules/unistdio/ulc-asnprintf: New file.
48792         * modules/unistdio/ulc-asprintf: New file.
48793         * modules/unistdio/ulc-fprintf: New file.
48794         * modules/unistdio/ulc-printf-parse: New file.
48795         * modules/unistdio/ulc-snprintf: New file.
48796         * modules/unistdio/ulc-sprintf: New file.
48797         * modules/unistdio/ulc-vasnprintf: New file.
48798         * modules/unistdio/ulc-vasprintf: New file.
48799         * modules/unistdio/ulc-vfprintf: New file.
48800         * modules/unistdio/ulc-vsnprintf: New file.
48801         * modules/unistdio/ulc-vsprintf: New file.
48802         * modules/unistdio/u8-asnprintf: New file.
48803         * modules/unistdio/u8-asprintf: New file.
48804         * modules/unistdio/u8-printf-parse: New file.
48805         * modules/unistdio/u8-snprintf: New file.
48806         * modules/unistdio/u8-sprintf: New file.
48807         * modules/unistdio/u8-vasnprintf: New file.
48808         * modules/unistdio/u8-vasprintf: New file.
48809         * modules/unistdio/u8-vsnprintf: New file.
48810         * modules/unistdio/u8-vsprintf: New file.
48811         * modules/unistdio/u8-u8-asnprintf: New file.
48812         * modules/unistdio/u8-u8-asprintf: New file.
48813         * modules/unistdio/u8-u8-snprintf: New file.
48814         * modules/unistdio/u8-u8-sprintf: New file.
48815         * modules/unistdio/u8-u8-vasnprintf: New file.
48816         * modules/unistdio/u8-u8-vasprintf: New file.
48817         * modules/unistdio/u8-u8-vsnprintf: New file.
48818         * modules/unistdio/u8-u8-vsprintf: New file.
48819         * modules/unistdio/u16-asnprintf: New file.
48820         * modules/unistdio/u16-asprintf: New file.
48821         * modules/unistdio/u16-printf-parse: New file.
48822         * modules/unistdio/u16-snprintf: New file.
48823         * modules/unistdio/u16-sprintf: New file.
48824         * modules/unistdio/u16-vasnprintf: New file.
48825         * modules/unistdio/u16-vasprintf: New file.
48826         * modules/unistdio/u16-vsnprintf: New file.
48827         * modules/unistdio/u16-vsprintf: New file.
48828         * modules/unistdio/u16-u16-asnprintf: New file.
48829         * modules/unistdio/u16-u16-asprintf: New file.
48830         * modules/unistdio/u16-u16-snprintf: New file.
48831         * modules/unistdio/u16-u16-sprintf: New file.
48832         * modules/unistdio/u16-u16-vasnprintf: New file.
48833         * modules/unistdio/u16-u16-vasprintf: New file.
48834         * modules/unistdio/u16-u16-vsnprintf: New file.
48835         * modules/unistdio/u16-u16-vsprintf: New file.
48836         * modules/unistdio/u32-asnprintf: New file.
48837         * modules/unistdio/u32-asprintf: New file.
48838         * modules/unistdio/u32-printf-parse: New file.
48839         * modules/unistdio/u32-snprintf: New file.
48840         * modules/unistdio/u32-sprintf: New file.
48841         * modules/unistdio/u32-vasnprintf: New file.
48842         * modules/unistdio/u32-vasprintf: New file.
48843         * modules/unistdio/u32-vsnprintf: New file.
48844         * modules/unistdio/u32-vsprintf: New file.
48845         * modules/unistdio/u32-u32-asnprintf: New file.
48846         * modules/unistdio/u32-u32-asprintf: New file.
48847         * modules/unistdio/u32-u32-snprintf: New file.
48848         * modules/unistdio/u32-u32-sprintf: New file.
48849         * modules/unistdio/u32-u32-vasnprintf: New file.
48850         * modules/unistdio/u32-u32-vasprintf: New file.
48851         * modules/unistdio/u32-u32-vsnprintf: New file.
48852         * modules/unistdio/u32-u32-vsprintf: New file.
48853         * modules/unistdio/ulc-asnprintf-tests: New file.
48854         * modules/unistdio/ulc-vasnprintf-tests: New file.
48855         * modules/unistdio/ulc-vasprintf-tests: New file.
48856         * modules/unistdio/ulc-vsnprintf-tests: New file.
48857         * modules/unistdio/ulc-vsprintf-tests: New file.
48858         * modules/unistdio/u8-asnprintf-tests: New file.
48859         * modules/unistdio/u8-vasnprintf-tests: New file.
48860         * modules/unistdio/u8-vasprintf-tests: New file.
48861         * modules/unistdio/u8-vsnprintf-tests: New file.
48862         * modules/unistdio/u8-vsprintf-tests: New file.
48863         * modules/unistdio/u16-asnprintf-tests: New file.
48864         * modules/unistdio/u16-vasnprintf-tests: New file.
48865         * modules/unistdio/u16-vasprintf-tests: New file.
48866         * modules/unistdio/u16-vsnprintf-tests: New file.
48867         * modules/unistdio/u16-vsprintf-tests: New file.
48868         * modules/unistdio/u32-asnprintf-tests: New file.
48869         * modules/unistdio/u32-vasnprintf-tests: New file.
48870         * modules/unistdio/u32-vasprintf-tests: New file.
48871         * modules/unistdio/u32-vsnprintf-tests: New file.
48872         * modules/unistdio/u32-vsprintf-tests: New file.
48873         * MODULES.html.sh (Unicode string functions): Add the new modules.
48874
48875 2007-07-01  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/sprintf.c (sprintf): Limit the available length estimation,
48878         to avoid address wraparound.
48879         * lib/vsprintf.c (vsprintf): Likewise.
48880         * modules/sprintf-posix (Dependencies): Add stdint.
48881         * modules/vsprintf-posix (Dependencies): Likewise.
48882
48883 2007-07-01  Bruno Haible  <bruno@clisp.org>
48884
48885         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48886         Windows PATH as well. Conservative double-quoting. Comments.
48887
48888 2007-07-01  Bruno Haible  <bruno@clisp.org>
48889             Eric Blake  <ebb9@byu.net>
48890             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48891
48892         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48893         empty components in $PATH, denoting '.'.
48894
48895 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48896
48897         * gnulib-tool: Fix indentation.
48898         (func_create_megatestdir): Likewise.
48899         Report by Bruno Haible.
48900
48901 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48902
48903         Sync from Automake.
48904         * build-aux/gnupload: Fix shell portability issues with for loops.
48905         Report by Karl Berry.
48906
48907 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48908
48909         * build-aux/maint.mk (POURL): Use translationproject.org.
48910
48911 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48912             Bruno Haible  <bruno@clisp.org>
48913
48914         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48915         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48916         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48917         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48918         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48919
48920 2007-06-27  Bruno Haible  <bruno@clisp.org>
48921
48922         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48923         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48924
48925 2007-06-26  Karl Berry  <karl@gnu.org>
48926
48927         * MODULES.html.sh: remove xreadlink-with-size.
48928
48929 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48930
48931         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48932         method that I hope also handles the double-include problem noted
48933         by Bruno Haible in
48934         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48935
48936 2007-06-23  Bruno Haible  <bruno@clisp.org>
48937
48938         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48939         Don't let the 'mostlyclean' target fail if the last subdirectory could
48940         not be removed.
48941         Reported by Karl Berry.
48942
48943 2007-06-23  Bruno Haible  <bruno@clisp.org>
48944
48945         * gnulib-tool (echo): Add a speedier workaround for ksh.
48946         * tests/test-echo.sh: Likewise.
48947
48948 2007-06-23  Bruno Haible  <bruno@clisp.org>
48949
48950         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48951         * tests/test-echo.sh: Likewise.
48952
48953 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48954
48955         * gnulib-tool (IFS): Initialize early, so we don't set it to
48956         empty later.
48957         (self_abspathname): Rewrite algorithm to set it, reindent.
48958         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48959         (func_create_megatestdir): Merge some sed scripts.
48960
48961 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48962
48963         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48964         exposed by Sun Studio 11 cc on Solaris 8.
48965
48966 2007-06-22  Bruno Haible  <bruno@clisp.org>
48967
48968         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48969         backslashes.
48970         * tests/test-echo.sh: New file.
48971
48972 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48973
48974         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48975         simplify `sed_replace_build_aux' scripts, they are portable but
48976         echoing them with `echo' is not.
48977         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48978
48979 2007-06-21  Karl Berry  <karl@gnu.org>
48980
48981         * config/srclist.txt: guess we can't handle the licenses via
48982         srclist at the moment.
48983
48984 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48985
48986         * MODULES.html.sh: Add include_next.
48987         * modules/include_next: New file.
48988
48989 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48990
48991         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48992         INCLUDE_NEXT.
48993         (gl_CHECK_NEXT_HEADERS): New macro.
48994         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48995         the obsolescent gl_ABSOLUTE_HEADER.
48996         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48997         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48998         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48999         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49000         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49001         * m4/math_h.m4 (gl_MATH_H): Likewise.
49002         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49003         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49004         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49005         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49006         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49007         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49008         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49009         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49010         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49011         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49012         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49013         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49014         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49015         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49016         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49017         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49018         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49019         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49020         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49021         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49022         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49023         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49024         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49025         * lib/float_.h: Likewise.
49026         * lib/inttypes_.h: Likewise.
49027         * lib/math_.h: Likewise.
49028         * lib/search_.h: Likewise.
49029         * lib/signal_.h: Likewise.
49030         * lib/stdint_.h: Likewise.
49031         * lib/stdio_.h: Likewise.
49032         * lib/stdlib_.h: Likewise.
49033         * lib/string_.h: Likewise.
49034         * lib/sys_stat_.h: Likewise.
49035         * lib/sys_time_.h: Likewise.
49036         * lib/time_.h: Likewise.
49037         * lib/unistd_.h: Likewise.
49038         * lib/wchar_.h: Likewise.
49039         * lib/wctype_.h: Likewise.
49040         * lib/dirent_.h: Likewise.
49041         * lib/iconv_.h: Likewise.
49042         * lib/locale_.h: Likewise.
49043         * lib/netinet_in_.h: Likewise.
49044         * lib/sys_select_.h: Likewise.
49045         * lib/sys_socket_.h: Likewise.
49046         * lib/sysexits_.h: Likewise.
49047         * modules/fcntl (Depends-on): Depend on include_next, not
49048         absolute_header.
49049         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49050         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49051         * modules/fchdir: Likewise.
49052         * modules/float: Likewise.
49053         * modules/iconv_open: Likewise.
49054         * modules/inttypes: Likewise.
49055         * modules/locale: Likewise.
49056         * modules/math: Likewise.
49057         * modules/netinet_in: Likewise.
49058         * modules/search: Likewise.
49059         * modules/signal: Likewise.
49060         * modules/stdint: Likewise.
49061         * modules/stdio: Likewise.
49062         * modules/stdlib: Likewise.
49063         * modules/string: Likewise.
49064         * modules/sys_select: Likewise.
49065         * modules/sys_socket: Likewise.
49066         * modules/sys_stat: Likewise.
49067         * modules/sys_time: Likewise.
49068         * modules/sysexits: Likewise.
49069         * modules/time: Likewise.
49070         * modules/unistd: Likewise.
49071         * modules/wchar: Likewise.
49072         * modules/wctype: Likewise.
49073         * modules/sys_stat: Change maintainer to "all".
49074         * modules/unistd: Likewise.
49075
49076 2007-06-20  Karl Berry  <karl@gnu.org>
49077
49078         * config/srclist.txt: track www changes in license files.
49079
49080 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49081
49082         * build-aux/bootstrap: Remove stray dot.
49083         Make sure build_aux settings are honored when linking
49084         gnulib_extra_files.
49085
49086 2007-06-19  Eric Blake  <ebb9@byu.net>
49087
49088         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49089         Allow compilation on cygwin.
49090
49091 2007-06-19  Jim Meyering  <jim@meyering.net>
49092
49093         xreadlink-with-size: Remove module.  No longer used.
49094         Ex-callers now use xreadlink or mreadlink-with-size.
49095         * modules/xreadlink-with-size: Remove module.
49096         * lib/xreadlink-with-size.c: Remove file.
49097         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49098         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49099         just before the function definition *is* accurate.
49100
49101         Eliminate one way canonicalize_filename_mode could exit.
49102         * lib/canonicalize.c (canonicalize_filename_mode):
49103         Use mreadlink_with_size, not xreadlink_with_size.
49104
49105 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49106
49107         Detect porting problems to FreeBSD/arm, which has time_t wider than
49108         long int.  Original problem reported for GNU diff by Xin Li in
49109         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49110         * modules/getdate (Depends-on): Add intprops, verify.
49111         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49112         is an integer type no wider than long int.
49113
49114 2007-06-18  Jim Meyering  <jim@meyering.net>
49115
49116         New module: mreadlink-with-size.
49117         * MODULES.html.sh: Add mreadlink-with-size.
49118         * modules/mreadlink-with-size: New module
49119         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49120         not xreadlink-with-size.
49121         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49122
49123 2007-06-16  Bruno Haible  <bruno@clisp.org>
49124
49125         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49126         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49127         Reported by Gary V. Vaughan <gary@gnu.org>.
49128
49129 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49130
49131         Revamp lchown so that it lives in unistd.h where it belongs.
49132         * lib/lchown.h: Remove.
49133         * lib/dirchownmod.c: Don't include lib/lchown.h.
49134         * lib/fchownat.c: Likewise.
49135         * lib/openat.c: Likewise.
49136         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49137         does not follow symlinks.
49138         (EOPNOTSUPP): Define if not defined.
49139         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49140         is defined to 0.
49141         (lchown): New decl.
49142         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49143         Do not check for lchown decl.
49144         Set REPLACE_LCHOWN.
49145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49146         REPLACE_LCHOWN.
49147         * modules/chown: Make it clear it follows symlinks.
49148         * modules/lchown: Make it clear it doesn't follow symlinks.
49149         (Files): Remove lib/lchown.h
49150         (Depends-on): Add unistd.
49151         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49152         (Include): Include <unistd.h>, not "lchown.h".
49153         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49154         REPLACE_LCHOWN.
49155
49156 2007-06-15  Jim Meyering  <jim@meyering.net>
49157
49158         Change license (GPL to LGPL) of fsusage and dependents.
49159         * modules/fsusage (License): Change to LGPL.
49160         * modules/full-read (License): Likewise.
49161         * modules/full-write (License): Likewise.
49162         * modules/safe-read (License): Likewise.
49163         * modules/safe-write (License): Likewise.
49164
49165 2007-06-14  Ben Pfaff  <blp@gnu.org>
49166
49167         Missing part of allocsa -> malloca transition.
49168         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49169         gl_MALLOCA.
49170
49171 2007-06-12  Bruno Haible  <bruno@clisp.org>
49172
49173         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49174         to ia64, x86_64, i386.
49175         Reported by Eric Blake.
49176
49177 2007-06-12  Bruno Haible  <bruno@clisp.org>
49178
49179         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49180         cross-compiling to x86_64.
49181
49182 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49183
49184         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49185         glitch reported by Ralf Wildenhues in
49186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49187
49188         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49189         Vin Shelton.
49190
49191 2007-06-11  Bruno Haible  <bruno@clisp.org>
49192
49193         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49194         replacement string.
49195         Reported by Eric Blake.
49196
49197 2007-06-10  Bruno Haible  <bruno@clisp.org>
49198
49199         Prepare vasnprintf code for use with Unicode strings.
49200         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49201         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49202         TYPE_U32_STRING.
49203         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49204         a_u32_string variants.
49205         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49206         * lib/printf-args.c: Don't include config.h and the specification
49207         header if PRINTF_FETCHARGS is already defined.
49208         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49209         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49210         TYPE_U16_STRING, TYPE_U32_STRING.
49211         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49212         u16_directive, u16_directives, u32_directive, u32_directives): New
49213         types.
49214         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49215         New declarations.
49216         * lib/printf-parse.c: Don't include config.h and the specification
49217         header if PRINTF_PARSE is already defined. Eliminate the set of
49218         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49219         them now. Include c-ctype.h.
49220         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49221         directive and CHAR_T_ONLY_ASCII.
49222         * lib/vasnprintf.c: Don't include config.h and the specification header
49223         if VASNPRINTF is already defined.
49224         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49225         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49226         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49227         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49228         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49229         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49230         code accordingly.
49231         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49232         pad_ourselves also in this case, with the 'c' and 's' directives, and
49233         with a different notion of "width".
49234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49235
49236 2007-06-10  Bruno Haible  <bruno@clisp.org>
49237
49238         * modules/unistr/u32-mbsnlen: New file.
49239         * lib/unistr/u32-mbsnlen.c: New file.
49240
49241         * modules/unistr/u16-mbsnlen: New file.
49242         * lib/unistr/u16-mbsnlen.c: New file.
49243
49244         * modules/unistr/u8-mbsnlen: New file.
49245         * lib/unistr/u8-mbsnlen.c: New file.
49246
49247         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49248         declarations.
49249
49250 2007-06-10  Bruno Haible  <bruno@clisp.org>
49251
49252         * lib/string_.h (mbsnlen): New declaration.
49253         * lib/mbsnlen.c: New file.
49254         * m4/mbsnlen.m4: New file.
49255         * modules/mbsnlen: New file.
49256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49257         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49258         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49259
49260 2007-06-10  Bruno Haible  <bruno@clisp.org>
49261
49262         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49263
49264 2007-06-10  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49267         * lib/mbuiter.h: Likewise.
49268
49269 2007-06-10  Bruno Haible  <bruno@clisp.org>
49270
49271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49272         declaration.
49273
49274 2007-06-10  Karl Berry  <karl@gnu.org>
49275
49276         * config/srclist.txt: remove gettext entries, Bruno prefers
49277         to update individually.
49278
49279 2007-06-10  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49282         'maxlen'. Ensure only length + width bytes are allocated, not
49283         length + 1 + width.
49284
49285 2007-06-09  Bruno Haible  <bruno@clisp.org>
49286
49287         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49288         (CHAR_T): Remove macro.
49289         (VASNPRINTF): Update.
49290
49291 2007-06-09  Bruno Haible  <bruno@clisp.org>
49292
49293         * MODULES.html.sh (Unicode string functions): Add the new modules.
49294
49295         * modules/uniconv/u32-conv-to-enc: New file.
49296         * lib/uniconv/u32-conv-to-enc.c: New file.
49297         * modules/uniconv/u32-conv-to-enc-tests: New file.
49298         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49299
49300         * modules/uniconv/u16-conv-to-enc: New file.
49301         * lib/uniconv/u16-conv-to-enc.c: New file.
49302         * lib/uniconv/u-conv-to-enc.h: New file.
49303         * modules/uniconv/u16-conv-to-enc-tests: New file.
49304         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49305
49306         * modules/uniconv/u8-conv-to-enc: New file.
49307         * lib/uniconv/u8-conv-to-enc.c: New file.
49308         * modules/uniconv/u8-conv-to-enc-tests: New file.
49309         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49310
49311         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49312         u32_conv_to_encoding): New declarations.
49313
49314 2007-06-09  Bruno Haible  <bruno@clisp.org>
49315
49316         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49317
49318 2007-06-09  Bruno Haible  <bruno@clisp.org>
49319
49320         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49321         * modules/malloca: Renamed from modules/allocsa, updated.
49322         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49323         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49324         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49325         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49326         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49327         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49328         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49329         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49330         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49331         * modules/c-strcasestr (Depends-on): Update.
49332         * lib/c-strcasestr.c: Update.
49333         * modules/c-strstr (Depends-on): Update.
49334         * lib/c-strstr.c: Update.
49335         * modules/canonicalize-lgpl (Depends-on): Update.
49336         * lib/canonicalize-lgpl.c: Update.
49337         * modules/clean-temp (Depends-on): Update.
49338         * lib/clean-temp.c: Update.
49339         * modules/csharpcomp (Depends-on): Update.
49340         * lib/csharpcomp.c: Update.
49341         * modules/csharpexec (Depends-on): Update.
49342         * lib/csharpexec.c: Update.
49343         * modules/javacomp (Depends-on): Update.
49344         * lib/javacomp.c: Update.
49345         * modules/javaexec (Depends-on): Update.
49346         * lib/javaexec.c: Update.
49347         * modules/mbscasestr (Depends-on): Update.
49348         * lib/mbscasestr.c: Update.
49349         * modules/mbsstr (Depends-on): Update.
49350         * lib/mbsstr.c: Update.
49351         * modules/setenv (Depends-on): Update.
49352         * lib/setenv.c: Update.
49353         * modules/strcasestr (Depends-on): Update.
49354         * lib/strcasestr.c: Update.
49355         * modules/striconveha (Depends-on): Update.
49356         * lib/striconveha.c: Update.
49357         * modules/relocatable-prog-wrapper (Files): Update.
49358         * lib/relocwrapper.c: Update.
49359         * build-aux/install-reloc: Update.
49360         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49361
49362 2007-06-08  Bruno Haible  <bruno@clisp.org>
49363
49364         Port to uClibc.
49365         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49366         * lib/fpurge.c (fpurge): Likewise.
49367         * lib/freading.c (freading): Likewise.
49368         * lib/fseeko.c (rpl_fseeko): Likewise.
49369         * lib/fseterr.c (fseterr): Likewise.
49370         * lib/fwriting.c (fwriting): Likewise.
49371         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49372
49373 2007-06-08  Bruno Haible  <bruno@clisp.org>
49374
49375         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49376         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49377         * modules/gettext (Files): Add m4/intlmacosx.m4.
49378
49379 2007-06-07  Bruno Haible  <bruno@clisp.org>
49380
49381         * modules/localename-tests: New file.
49382         * tests/test-localename.c: New file.
49383
49384         New module 'localename'.
49385         * lib/localename.h: New file.
49386         * lib/localename.c: New file, from GNU gettext.
49387         * m4/localename.m4: New file.
49388         * modules/localename: New file.
49389
49390 2007-06-07  Bruno Haible  <bruno@clisp.org>
49391
49392         Work around the lack of <wchar.h> on some builds of uClibc.
49393         * doc/headers/wchar.texi: Update.
49394         * lib/wchar_.h: Include <wchar.h> only if it exists.
49395         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49396         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49397         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49398         doesn't exist.
49399         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49400         * modules/mbfile (Depends-on): Add wchar.
49401         * modules/mbiter (Depends-on): Likewise.
49402         * modules/mbuiter (Depends-on): Likewise.
49403         Reported by Simon Josefsson.
49404
49405 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49406
49407         Work around problem reported by Steven M. Schweda in
49408         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49409         Tru64 5.1B with the Compaq compiler environment installed declares
49410         an 'isblank' function but does not define it in the C library.
49411         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49412         * lib/regex_internal.h (isblank): Likewise.
49413         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49414         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49415
49416 2007-06-05  Bruno Haible  <bruno@clisp.org>
49417
49418         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49419         ia64.
49420         * modules/printf-safe: New file.
49421         * modules/fprintf-posix (Depends-on): Add printf-safe.
49422         * modules/printf-posix (Depends-on): Likewise.
49423         * modules/snprintf-posix (Depends-on): Likewise.
49424         * modules/sprintf-posix (Depends-on): Likewise.
49425         * modules/vasnprintf-posix (Depends-on): Likewise.
49426         * modules/vasprintf-posix (Depends-on): Likewise.
49427         * modules/vfprintf-posix (Depends-on): Likewise.
49428         * modules/vprintf-posix (Depends-on): Likewise.
49429         * modules/vsnprintf-posix (Depends-on): Likewise.
49430         * modules/vsprintf-posix (Depends-on): Likewise.
49431         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49432         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49433         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49434         "no" on i386, x86_64, ia64.
49435         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49436         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49437         on i386, x86_64, ia64.
49438         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49439         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49440         on i386, x86_64, ia64.
49441         * tests/test-vasnprintf-posix.c: Include float.h.
49442         (LDBL80_WORDS): New macro.
49443         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49444         on i386, x86_64, ia64.
49445         * tests/test-vasprintf-posix.c: Include float.h.
49446         (LDBL80_WORDS): New macro.
49447         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49448         on i386, x86_64, ia64.
49449         * tests/test-snprintf-posix.c: Include float.h.
49450         * tests/test-sprintf-posix.c: Likewise.
49451         * tests/test-vsnprintf-posix.c: Likewise.
49452         * tests/test-vsprintf-posix.c: Likewise.
49453
49454 2007-06-05  Bruno Haible  <bruno@clisp.org>
49455
49456         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49457         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49458         non-IEEE numbers on i386, x86_64, ia64.
49459         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49460         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49461         * tests/test-isnanl.h: Include float.h.
49462         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49463
49464 2007-06-05  Bruno Haible  <bruno@clisp.org>
49465
49466         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49467         also the %a / %A. Handle the %a / %A code before this extra handling.
49468
49469 2007-06-05  Bruno Haible  <bruno@clisp.org>
49470
49471         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49472         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49473
49474 2007-06-05  Bruno Haible  <bruno@clisp.org>
49475
49476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49477         typo in variable name.
49478
49479 2007-06-05  Eric Blake  <ebb9@byu.net>
49480
49481         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49482         Reported by Simon Josefsson.
49483
49484 2007-06-04  Bruno Haible  <bruno@clisp.org>
49485
49486         Avoid test failures on some PowerPC platforms.
49487         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49488         Define differently for PowerPC.
49489         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49490         Reported by Gary V. Vaughan <gary@gnu.org>.
49491
49492 2007-06-02  Bruno Haible  <bruno@clisp.org>
49493
49494         Fix test-stdint failure on FreeBSD/ia64.
49495         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49496         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49497         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49498         * doc/headers/stdint.texi: Update.
49499
49500 2007-06-01  Bruno Haible  <bruno@clisp.org>
49501
49502         * tests/test-binary-io.c (main): Pass a third argument to open().
49503         Reported by Gary V. Vaughan <gary@gnu.org>.
49504
49505 2007-06-01  Bruno Haible  <bruno@clisp.org>
49506
49507         * doc/functions/frexpl.texi: Update for mingw.
49508
49509 2007-06-01  Bruno Haible  <bruno@clisp.org>
49510
49511         * tests/test-lseek.c (main): Disable test of errno for invalid third
49512         argument.
49513         * doc/functions/lseek.texi: Update.
49514         Reported by Gary V. Vaughan <gary@gnu.org>.
49515
49516 2007-05-28  Bruno Haible  <bruno@clisp.org>
49517
49518         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49519
49520 2007-05-31  Eric Blake  <ebb9@byu.net>
49521
49522         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49523         cross compiling.
49524
49525 2007-05-30  Eric Blake  <ebb9@byu.net>
49526         and Bruno Haible  <bruno@clisp.org>
49527
49528         Work around mingw test failures exposed by m4-1.4.9b.
49529         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49530         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49531         moment.
49532
49533 2007-05-30  Bruno Haible  <bruno@clisp.org>
49534
49535         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49536         assuming that they are closed. Needed on HP-UX 11.
49537
49538 2007-05-29  Bruno Haible  <bruno@clisp.org>
49539
49540         Fix a problem with #include_next.
49541         * lib/dirent_.h: Split the double-inclusion guard.
49542         * lib/fcntl_.h: Likewise.
49543         * lib/float_.h: Likewise.
49544         * lib/iconv_.h: Likewise.
49545         * lib/inttypes_.h: Likewise.
49546         * lib/locale_.h: Likewise.
49547         * lib/math_.h: Likewise.
49548         * lib/netinet_in_.h: Likewise.
49549         * lib/search_.h: Likewise.
49550         * lib/signal_.h: Likewise.
49551         * lib/stdint_.h: Likewise.
49552         * lib/stdio_.h: Likewise.
49553         * lib/stdlib_.h: Likewise.
49554         * lib/string_.h: Likewise.
49555         * lib/sys_select_.h: Likewise.
49556         * lib/sys_socket_.h: Likewise.
49557         * lib/sys_stat_.h: Likewise.
49558         * lib/sys_time_.h: Likewise.
49559         * lib/sysexits_.h: Likewise.
49560         * lib/time_.h: Likewise.
49561         * lib/unistd_.h: Likewise.
49562         * lib/wchar_.h: Likewise.
49563         * lib/wctype_.h: Likewise.
49564
49565 2007-05-29  Bruno Haible  <bruno@clisp.org>
49566
49567         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49568         for the moment.
49569
49570 2007-05-29  Bruno Haible  <bruno@clisp.org>
49571
49572         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49573         invocation.
49574         Reported by Eric Blake.
49575
49576 2007-05-29  Bruno Haible  <bruno@clisp.org>
49577
49578         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49579         compiling case.
49580
49581 2007-05-29  Eric Blake  <ebb9@byu.net>
49582             Bruno Haible  <bruno@clisp.org>
49583
49584         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49585         cross compiles.
49586
49587 2007-05-28  Eric Blake  <ebb9@byu.net>
49588
49589         * modules/closein-tests (test_closein_LDADD): Support test on
49590         cygwin with libtool.
49591
49592 2007-05-28  Bruno Haible  <bruno@clisp.org>
49593
49594         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49595         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49596         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49597         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49598         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49599         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49600         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49601         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49602         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49603
49604 2007-05-28  Eric Blake  <ebb9@byu.net>
49605
49606         Unconditionally include <config.h> in unit tests.
49607         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49608         * tests/test-allocsa.c, tests/test-arcfour.c,
49609         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49610         tests/test-array_list.c, tests/test-array_oset.c,
49611         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49612         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49613         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49614         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49615         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49616         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49617         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49618         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49619         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49620         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49621         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49622         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49623         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49624         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49625         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49626         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49627         test-md5.c, test-memmem.c, test-printf-posix.c,
49628         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49629         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49630         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49631         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49632         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49633         test-vasnprintf-posix2.c, test-vasnprintf.c,
49634         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49635         test-vfprintf-posix.c, test-vprintf-posix.c,
49636         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49637         test-xvasprintf.c: Likewise.
49638
49639 2007-05-28  Bruno Haible  <bruno@clisp.org>
49640
49641         * gnulib-tool (func_import): Remember the --with-tests command-line
49642         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49643         Reported by Eric Blake.
49644
49645 2007-05-28  Bruno Haible  <bruno@clisp.org>
49646
49647         * modules/ftell-tests: New file.
49648         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49649         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49650
49651         * lib/ftell.c: New file.
49652         * modules/ftell: New file.
49653         * m4/ftell.m4: New file.
49654         * doc/functions/ftell.texi: Update.
49655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49656         REPLACE_FTELL.
49657         * lib/stdio_.h (rpl_ftell): New declaration.
49658         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49659         REPLACE_FTELL.
49660
49661 2007-05-28  Eric Blake  <ebb9@byu.net>
49662
49663         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49664
49665 2007-05-28  Bruno Haible  <bruno@clisp.org>
49666
49667         * modules/fseek-tests: New file.
49668         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49669         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49670
49671         * lib/fseek.c: New file.
49672         * modules/fseek: New file.
49673         * m4/fseek.m4: New file.
49674         * doc/functions/fseek.texi: Update.
49675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49676         REPLACE_FSEEK.
49677         * lib/stdio_.h (rpl_fseek): New declaration.
49678         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49679         REPLACE_FSEEK.
49680
49681 2007-05-28  Bruno Haible  <bruno@clisp.org>
49682
49683         * lib/stdio_.h (fflush): More comments.
49684
49685 2007-05-28  Bruno Haible  <bruno@clisp.org>
49686
49687         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49688         runtime test.
49689
49690 2007-05-28  Eric Blake  <ebb9@byu.net>
49691
49692         Improve lseek module.
49693         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49694         * lib/unistd_.h (lseek): Scale back link warning message.
49695         * tests/test-lseek.c: Beef up test.
49696         * tests/test-lseek.sh: Exercise more facets of lseek.
49697         Reported by Bruno Haible.
49698
49699 2007-05-28  Bruno Haible  <bruno@clisp.org>
49700
49701         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49702         to define.
49703
49704 2007-05-27  Bruno Haible  <bruno@clisp.org>
49705
49706         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49707
49708 2007-05-27  Bruno Haible  <bruno@clisp.org>
49709
49710         * modules/openmp: New file.
49711         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49712         Noah Misch.
49713
49714 2007-05-26  Bruno Haible  <bruno@clisp.org>
49715
49716         * modules/chdir-long (Depends-on): Add fchdir.
49717         * modules/chdir-safer (Depends-on): Likewise.
49718         * modules/fts (Depends-on): Likewise.
49719         * modules/fts-lgpl (Depends-on): Likewise.
49720         * modules/openat (Depends-on): Likewise.
49721         * modules/savewd (Depends-on): Likewise.
49722
49723 2007-05-24  Eric Blake  <ebb9@byu.net>
49724
49725         Fix lseek on mingw.
49726         * modules/lseek: New module.
49727         * m4/lseek.m4: New file.
49728         * lib/lseek.c: New file.
49729         * modules/lseek-tests: New file.
49730         * tests/test-lseek.c: New file.
49731         * tests/test-lseek.sh: New file.
49732         * MODULES.html.sh: Document lseek module.
49733         * modules/fflush (Depends-on): Add lseek, fseeko.
49734         * modules/fseeko (Depends-on): Likewise.
49735         * modules/ftello (Depends-on): Likewise.
49736         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49737         broken.
49738         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49739         broken.
49740         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49741         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49742         * lib/ftello.c (rpl_ftello): Likewise.
49743         * tests/test-fseeko.c (main): Test this.
49744         * tests/test-fseeko.sh: Likewise.
49745         * tests/test-ftello.c (main): Likewise.
49746         * tests/test-ftello.sh: Likewise.
49747         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49748         implies replacing fseek.
49749         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49750         HAVE_FTELLO.
49751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49752         * modules/unistd (Makefile.am): Likewise.
49753         * lib/unistd_.h (lseek): Declare a replacement.
49754         * doc/functions/lseek.texi (lseek): Document this fix.
49755         * doc/functions/fseek.texi (fseek): Likewise.
49756         * doc/functions/ftell.texi (ftell): Likewise.
49757
49758 2007-05-24  Bruno Haible  <bruno@clisp.org>
49759
49760         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49761         in the printed representation of a NaN.
49762         * tests/test-vasprintf-posix.c (test_function): Likewise.
49763         * tests/test-snprintf-posix.h (test_function): Likewise.
49764         * tests/test-sprintf-posix.h (test_function): Likewise.
49765         Reported by Eric Blake.
49766
49767 2007-05-23  Eric Blake  <ebb9@byu.net>
49768
49769         Fix fseeko/ftello on cygwin 1.5.24.
49770         * doc/functions/fseeko.texi (fseeko): Document the fix.
49771         * doc/functions/ftello.texi (ftello): Document the fix.
49772         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49773         * doc/functions/stdout.text (stdout): New file.
49774         * doc/functions/stderr.text (stderr): New file.
49775         * doc/gnulib.texi (Function Substitutes): Use new files.
49776         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49777         prior to 1.7.0.
49778         * tests/test-ftello.c (main): Likewise for ftello.
49779         * tests/test-fseeko.sh: New file.
49780         * tests/test-ftello.sh: New file.
49781         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49782         with seekable stdin.
49783         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49784         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49785         (gl_REPLACE_FSEEKO): New macro.
49786         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49787         * modules/fseeko (Files): Distribute fseeko.c.
49788         * modules/ftello (Files): Distribute ftello.c.
49789         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49790         mode.
49791         * lib/ftello.c (rpl_ftello): New file.
49792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49793         fseeko, ftello.
49794         (gl_STDIN_LARGE_OFFSET): New macro.
49795         * modules/stdio (Makefile.am): Perform the replacement.
49796         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49797
49798 2007-05-23  Bruno Haible  <bruno@clisp.org>
49799
49800         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49801         GNULIB_POSIXCHECK is defined.
49802
49803 2007-05-21  Bruno Haible  <bruno@clisp.org>
49804
49805         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49806         Check also the output for NaN arguments. When cross-compiling, guess
49807         no on IRIX.
49808         * lib/vasnprintf.c: Update comments.
49809         * tests/test-vasnprintf-posix.c (strisnan): New function.
49810         (test_function): Use it.
49811         * tests/test-vasprintf-posix.c (strisnan): New function.
49812         (test_function): Use it.
49813         * tests/test-snprintf-posix.h (strisnan): New function.
49814         (test_function): Use it.
49815         * tests/test-sprintf-posix.h (strisnan): New function.
49816         (test_function): Use it.
49817         Reported by Eric Blake.
49818
49819 2007-05-20  Bruno Haible  <bruno@clisp.org>
49820
49821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49822         numbers that fails on BeOS.
49823         * doc/functions/frexpl.texi: Update.
49824
49825 2007-05-20  Jim Meyering  <jim@meyering.net>
49826
49827         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49828         forced upon us by glibc-2.6.
49829
49830 2007-05-20  Bruno Haible  <bruno@clisp.org>
49831
49832         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49833         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49834         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49835         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49836         NEED_PRINTF_INFINITE.
49837         (is_infinitel): New function.
49838         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49840         gl_PREREQ_VASNPRINTF_INFINITE.
49841         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49842         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49843         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49844         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49845         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49846         gl_PREREQ_VASNPRINTF_INFINITE.
49847         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49848         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49849         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49850         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49851         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49852         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49853         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49854         * doc/functions/fprintf.texi: Update.
49855         * doc/functions/printf.texi: Update.
49856         * doc/functions/snprintf.texi: Update.
49857         * doc/functions/sprintf.texi: Update.
49858         * doc/functions/vfprintf.texi: Update.
49859         * doc/functions/vprintf.texi: Update.
49860         * doc/functions/vsnprintf.texi: Update.
49861         * doc/functions/vsprintf.texi: Update.
49862
49863 2007-05-20  Bruno Haible  <bruno@clisp.org>
49864
49865         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49866         was not found in libc.
49867         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49868
49869 2007-05-20  Bruno Haible  <bruno@clisp.org>
49870
49871         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49872         printed as "-nan" instead of "nan".
49873         * tests/test-vasprintf-posix.c (test_function): Likewise.
49874         * tests/test-snprintf-posix.h (test_function): Likewise.
49875         * tests/test-sprintf-posix.h (test_function): Likewise.
49876         Needed for HP-UX 11.
49877
49878 2007-05-20  Jim Meyering  <jim@meyering.net>
49879
49880         Fix buggy test for the fchownat-deref bug.
49881         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49882         symlink required for the run-test.  Without it, this test would
49883         always declare that fchownat doesn't work, and client code would
49884         unnecessarily use the replacement function with fixed libc.
49885         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49886         Reported by Greg Schafer.
49887
49888 2007-05-19  Bruno Haible  <bruno@clisp.org>
49889
49890         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49891         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49892         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49893         Needed for IRIX 6.5 and Solaris 2.5.1.
49894
49895 2007-05-19  Bruno Haible  <bruno@clisp.org>
49896
49897         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49898         (test_function): Skip tests involving -0.0 on platforms where
49899         -0.0 = 0.0.
49900         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49901         (test_function): Skip tests involving -0.0 on platforms where
49902         -0.0 = 0.0.
49903         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49904         (test_function): Skip tests involving -0.0 on platforms where
49905         -0.0 = 0.0.
49906         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49907         (test_function): Skip tests involving -0.0 on platforms where
49908         -0.0 = 0.0.
49909         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49910         tests.
49911         * tests/test-printf-posix.h (test_function): Likewise.
49912         * tests/test-printf-posix.output: Remove all -0.0 related results.
49913         Needed for IRIX 6.5.
49914
49915 2007-05-19  Bruno Haible  <bruno@clisp.org>
49916
49917         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49918         printed as "nan0x7fffffff" instead of "nan".
49919         * tests/test-vasprintf-posix.c (test_function): Likewise.
49920         * tests/test-snprintf-posix.h (test_function): Likewise.
49921         * tests/test-sprintf-posix.h (test_function): Likewise.
49922         * tests/test-fprintf-posix.h (NaN): Remove macro.
49923         (test_function): Remove all NaN related tests.
49924         * tests/test-printf-posix.h (NaN): Remove macro.
49925         (test_function): Remove all NaN related tests.
49926         * tests/test-printf-posix.output: Remove all NaN related results.
49927         Needed for IRIX 6.5.
49928
49929 2007-05-19  Bruno Haible  <bruno@clisp.org>
49930
49931         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49932         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49933
49934 2007-05-19  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/float_.h: New file.
49937         * m4/float_h.m4: New file.
49938         * modules/float: New file.
49939         * modules/isnanl (Dependencies): Add float.
49940         * modules/isnanl-nolibm (Dependencies): Likewise.
49941         * modules/mathl (Dependencies): Likewise.
49942         * modules/printf-frexpl (Dependencies): Likewise.
49943         * modules/signbit (Dependencies): Likewise.
49944         * modules/vasnprintf (Dependencies): Likewise.
49945         * doc/headers/float.texi: Update.
49946
49947 2007-05-19  Jim Meyering  <jim@meyering.net>
49948
49949         * lib/utimens.c (gl_futimens): Rename from futimens,
49950         now that glibc-2.6 declares futimens.
49951         * lib/utimens.h: Likewise.
49952
49953 2007-05-19  Bruno Haible  <bruno@clisp.org>
49954
49955         Avoid test failures on mingw.
49956         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49957         * tests/test-printf-posix.sh: Likewise.
49958         * tests/test-vfprintf-posix.sh: Likewise.
49959         * tests/test-vprintf-posix.sh: Likewise.
49960
49961 2007-05-19  Bruno Haible  <bruno@clisp.org>
49962
49963         Fix *printf result for NaN, Inf, -0.0 on mingw.
49964         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49965         * lib/vasnprintf.c: Include math.h and isnan.h.
49966         (is_infinite_or_zero): New function.
49967         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49968         values in the %f, %F, %e, %E, %g, %G directives.
49969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49970         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49971         gl_PRINTF_INFINITE and test its result. Invoke
49972         gl_PREREQ_VASNPRINTF_INFINITE.
49973         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49977         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49978         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49979         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49980         * doc/functions/fprintf.texi: Update.
49981         * doc/functions/printf.texi: Update.
49982         * doc/functions/snprintf.texi: Update.
49983         * doc/functions/sprintf.texi: Update.
49984         * doc/functions/vfprintf.texi: Update.
49985         * doc/functions/vprintf.texi: Update.
49986         * doc/functions/vsnprintf.texi: Update.
49987         * doc/functions/vsprintf.texi: Update.
49988
49989 2007-05-19  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49992         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49993         Instead of multiplying with 10^k, set extra_zeroes to k.
49994         (scale10_round_long_double): Remove function.
49995
49996 2007-05-18  Bruno Haible  <bruno@clisp.org>
49997
49998         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49999         introduced on 2007-05-06.
50000
50001 2007-05-18  Bruno Haible  <bruno@clisp.org>
50002
50003         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50004         %g directives.
50005         * tests/test-vasprintf-posix.c (test_function): Likewise.
50006         * tests/test-snprintf-posix.h (test_function): Likewise.
50007         * tests/test-sprintf-posix.h (test_function): Likewise.
50008
50009 2007-05-18  Bruno Haible  <bruno@clisp.org>
50010
50011         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50012         (strmatch): New function.
50013         (test_function): Test the %f directive on numbers of various exponents.
50014         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50015         (strmatch): New function.
50016         (test_function): Test the %f directive on numbers of various exponents.
50017         * tests/test-snprintf-posix.h (strmatch): New function.
50018         (test_function): Test the %f directive on numbers of various exponents.
50019         * tests/test-sprintf-posix.h (strmatch): New function.
50020         (test_function): Test the %f directive on numbers of various exponents.
50021         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50022         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50023         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50024         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50025
50026 2007-05-18  Bruno Haible  <bruno@clisp.org>
50027
50028         Add support for 'long double' number output.
50029         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50030         * lib/vasnprintf.c: Include math.h and float+.h.
50031         (mp_limb_t): New type.
50032         (GMP_LIMB_BITS): New macro.
50033         (mp_twolimb_t): New type.
50034         (GMP_TWOLIMB_BITS): New macro.
50035         (mpn_t): New type.
50036         (multiply, divide, convert_to_decimal, decode_long_double,
50037         scale10_round_long_double, scale10_round_decimal_long_double,
50038         floorlog10l): New functions.
50039         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50040         for the %f, %F, %e, %E, %g, %G directives.
50041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50042         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50043         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50044         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50045         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50046         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50047         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50049         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50050         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50051         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50052         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50053         * modules/snprintf-posix (Depends-on): Likewise.
50054         * modules/sprintf-posix (Depends-on): Likewise.
50055         * modules/vasnprintf-posix (Depends-on): Likewise.
50056         * modules/vasprintf-posix (Depends-on): Likewise.
50057         * modules/vfprintf-posix (Depends-on): Likewise.
50058         * modules/vsnprintf-posix (Depends-on): Likewise.
50059         * modules/vsprintf-posix (Depends-on): Likewise.
50060         * modules/vasnprintf (Files): Add lib/float+.h.
50061         * doc/functions/fprintf.texi: Update.
50062         * doc/functions/printf.texi: Update.
50063         * doc/functions/snprintf.texi: Update.
50064         * doc/functions/sprintf.texi: Update.
50065         * doc/functions/vfprintf.texi: Update.
50066         * doc/functions/vprintf.texi: Update.
50067         * doc/functions/vsnprintf.texi: Update.
50068         * doc/functions/vsprintf.texi: Update.
50069
50070 2007-05-18  Bruno Haible  <bruno@clisp.org>
50071
50072         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50073
50074 2007-05-18  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50077         for printing 64-bit integers. Needed for mingw.
50078
50079 2007-05-18  Bruno Haible  <bruno@clisp.org>
50080
50081         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50082         gl_FUNC_FREXPL_WORKS.
50083         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50084
50085 2007-05-18  Bruno Haible  <bruno@clisp.org>
50086
50087         * modules/frexpl-nolibm-tests: New file.
50088
50089         * modules/frexpl-nolibm: New file.
50090         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50091
50092 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50093
50094         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50095         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50096         GCC 4.2, which otherwise issues a lot of warnings.
50097         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50098         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50099         Likewise.
50100         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50101         * modules/iconv_open (iconv.h): Likewise.
50102         * modules/locale (locale.h): Likewise.
50103         * modules/netinet_in (netinet/in.h): Likewise.
50104         * modules/sys_select (sys_select.h): Likewise.
50105         * modules/sys_socket (sys/socket.h): Likewise.
50106         * modules/sys_stat (sys/stat.h): Likewise.
50107         * modules/sysexits (sysexits.h): Likewise.
50108         * modules/unistd (unistd.h): Likewise.
50109
50110 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50111
50112         * modules/closein-tests (Makefile.am): Distribute
50113         `test-closein.sh'.
50114
50115 2007-05-17  Bruno Haible  <bruno@clisp.org>
50116
50117         * tests/test-printf-posix.output: Renamed from
50118         tests/test-fprintf-posix.out.
50119         * modules/fprintf-posix-tests: Update.
50120         * modules/printf-posix-tests: Update.
50121         * modules/vfprintf-posix-tests: Update.
50122         * modules/vprintf-posix-tests: Update.
50123         * tests/test-fprintf-posix.sh: Update.
50124         * tests/test-printf-posix.sh: Update.
50125         * tests/test-vfprintf-posix.sh: Update.
50126         * tests/test-vprintf-posix.sh: Update.
50127         Reported by Ralf Wildenhues.
50128
50129 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50132         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50133         GCC 4.2, which otherwise issues a lot of warnings.
50134         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50135         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50136         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50137         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50138         it should no longer be needed.
50139         * lib/string_.h: Likewise.
50140         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50141         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50142         * modules/inttypes (inttypes.h): Likewise.
50143         * modules/math (math.h): Likewise.
50144         * modules/search (search.h): Likewise.
50145         * modules/signal (signal.h): Likewise.
50146         * modules/stdint (stdint.h): Likewise.
50147         * modules/stdio (stdio.h): Likewise.
50148         * modules/stdlib (stdlib.h): Likewise.
50149         * modules/string (string.h): Likewise.
50150         * modules/sys_time (sys/time.h): Likewise.
50151         * modules/time (time.h): Likewise.
50152         * modules/wchar (wchar.h): Likewise.
50153         * modules/wctype (wtype.h): Likewise.
50154
50155 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50156
50157         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50158
50159 2007-05-13  Bruno Haible  <bruno@clisp.org>
50160
50161         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50162         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50163         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50164         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50165         (gl_PREREQ_STRTOK_R): Don't require it here.
50166
50167 2007-05-13  Bruno Haible  <bruno@clisp.org>
50168
50169         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50170         when used in C++ mode.
50171
50172 2007-05-12  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/linebuffer.h: Tweak doc.
50175         * lib/linebuffer.c: Likewise.
50176
50177 2007-05-12  James Youngman  <jay@gnu.org>
50178
50179         * lib/linebuffer.c (readlinebuffer_delim): New function,
50180         like readlinebuffer, but use a caller-specified delimiter.
50181         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50182         as the delimiter.
50183         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50184
50185 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50186
50187         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50188         * modules/openat (Files): Remove openat-die.c.
50189         (Depends-on): Add openat-die.
50190         * modules/openat-die: New module.
50191
50192 2007-05-06  Bruno Haible  <bruno@clisp.org>
50193
50194         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50195         Update with info about Cygwin.
50196         * doc/functions/fprintf.texi: Update.
50197         * doc/functions/printf.texi: Update.
50198         * doc/functions/snprintf.texi: Update.
50199         * doc/functions/sprintf.texi: Update.
50200         * doc/functions/vfprintf.texi: Update.
50201         * doc/functions/vprintf.texi: Update.
50202         * doc/functions/vsnprintf.texi: Update.
50203         * doc/functions/vsprintf.texi: Update.
50204         Reported by Eric Blake.
50205
50206 2007-05-06  Bruno Haible  <bruno@clisp.org>
50207
50208         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50209         padding ourselves for the floating-point directives.
50210         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50213         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50214         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50216         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50222         * tests/test-snprintf-posix.h (test_function): Also check the width
50223         and some flags in the %f directive.
50224         * tests/test-sprintf-posix.h (test_function): Likewise.
50225         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50226         * tests/test-vasprintf-posix.c (test_function): Likewise.
50227         * doc/functions/fprintf.texi: Update.
50228         * doc/functions/printf.texi: Update.
50229         * doc/functions/snprintf.texi: Update.
50230         * doc/functions/sprintf.texi: Update.
50231         * doc/functions/vfprintf.texi: Update.
50232         * doc/functions/vprintf.texi: Update.
50233         * doc/functions/vsnprintf.texi: Update.
50234         * doc/functions/vsprintf.texi: Update.
50235
50236 2007-05-06  Bruno Haible  <bruno@clisp.org>
50237
50238         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50239         pass the ' flag character to sprintf or snprintf.
50240         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50242         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50243         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50244         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50245         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50246         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50247         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50248         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50249         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50250         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50251         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50252         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50253         flag.
50254         * tests/test-sprintf-posix.h (test_function): Likewise.
50255         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50256         * tests/test-vasprintf-posix.c (test_function): Likewise.
50257         * doc/functions/fprintf.texi: Update.
50258         * doc/functions/printf.texi: Update.
50259         * doc/functions/snprintf.texi: Update.
50260         * doc/functions/sprintf.texi: Update.
50261         * doc/functions/vfprintf.texi: Update.
50262         * doc/functions/vprintf.texi: Update.
50263         * doc/functions/vsnprintf.texi: Update.
50264         * doc/functions/vsprintf.texi: Update.
50265
50266 2007-05-01  Bruno Haible  <bruno@clisp.org>
50267
50268         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50269
50270 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50271
50272         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50273         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50274
50275 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50276
50277         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50278         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50279         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50280
50281 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50282
50283         * lib/argp-help.c (struct hol_entry): New member `ord'.
50284         (HOL_ENTRY_PTRCMP): Use ord for comparison
50285         (hol_sort): Initialize ord.
50286
50287 2007-05-01  Bruno Haible  <bruno@clisp.org>
50288
50289         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50290         Reported by Eric Blake.
50291         * doc/gnulib.texi (Function Substitutes): Update.
50292
50293 2007-05-01  Bruno Haible  <bruno@clisp.org>
50294
50295         * doc/functions.texi: Remove file, now redundant through
50296         doc/functions/*.texi.
50297
50298 2007-05-01  Bruno Haible  <bruno@clisp.org>
50299
50300         * modules/argp (Depends-on): Add sleep.
50301
50302 2007-05-01  Bruno Haible  <bruno@clisp.org>
50303
50304         * modules/sleep-tests: New file.
50305         * tests/test-sleep.c: New file.
50306
50307         * modules/sleep: New file.
50308         * lib/sleep.c: New file.
50309         * m4/sleep.m4: New file.
50310         * lib/unistd_.h (sleep): New declaration.
50311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50312         HAVE_SLEEP.
50313         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50314         * doc/functions/sleep.texi: Document the sleep module.
50315
50316 2007-05-01  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/sigprocmask.h: Remove file.
50319         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50320         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50321         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50322         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50323         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50324         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50325         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50326         HAVE_SIGSET_T as a shell variable.
50327         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50328         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50329         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50330         (Depends-on): Add signal. Remove verify.
50331         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50332         (Include): Mention <signal.h> instead of sigprocmask.h.
50333         * NEWS: Mention the change.
50334         * lib/fatal-signal.c: Don't include sigprocmask.h.
50335
50336 2007-05-01  Bruno Haible  <bruno@clisp.org>
50337
50338         * modules/signal: New file.
50339         * lib/signal_.h: New file.
50340         * m4/signal_h.m4: New file.
50341
50342 2007-05-01  Bruno Haible  <bruno@clisp.org>
50343
50344         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50345         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50346         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50347         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50348
50349 2007-05-01  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50352         configure time.
50353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50354         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50355         * modules/sys_stat (Makefile.am): Substitute their values into
50356         sys/stat.h.
50357
50358 2007-05-01  Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50361         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50362         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50363
50364 2007-05-01  Bruno Haible  <bruno@clisp.org>
50365
50366         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50367         'assert' module here.
50368
50369 2007-05-01  Bruno Haible  <bruno@clisp.org>
50370
50371         * doc/functions/*.texi: New files.
50372         * doc/functions/google-ranking.txt: New file.
50373         * doc/gnulib.texi (Function Substitutes): New chapter.
50374         (ctime, inet_ntoa): Remove sections.
50375         * doc/ctime.texi: Remove file.
50376         * doc/inet_ntoa.texi: Remove file.
50377         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50378         dependencies.
50379         (%.info): New rule, specifying a --reference-limit.
50380
50381 2007-05-01  Bruno Haible  <bruno@clisp.org>
50382
50383         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50384
50385 2007-05-01  Bruno Haible  <bruno@clisp.org>
50386
50387         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50388         the portability of 'mkdir' to mingw systems.
50389
50390 2007-05-01  Bruno Haible  <bruno@clisp.org>
50391
50392         * doc/headers/google-ranking.txt: New file.
50393
50394 2007-04-30  Eric Blake  <ebb9@byu.net>
50395
50396         Prefer fseeko to fseek.
50397         * modules/getpass (Depends-on): Add fseeko.
50398         * lib/getpass.c (getpass): Use fseeko, not fseek.
50399
50400 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50401
50402         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50403         assumes the sorting is stable, while most qsort implementations
50404         are not.  Use argument addresses to ensure they never compare as
50405         equal.
50406
50407         * tests/test-argp-2.sh (usage-indent test): Fix output
50408         (func_compare): Restore diff options
50409         * tests/test-argp.c: Restore #include "progname.h"
50410
50411 2007-04-29  Bruno Haible  <bruno@clisp.org>
50412
50413         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50414         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50415         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50417         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50418         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50419         (TESTS, check_PROGRAMS): Add test-snprintf.
50420         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50421         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50422         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50423         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50424         assertions that fail on HP-UX, OSF/1, or IRIX.
50425         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50426
50427 2007-04-29  Bruno Haible  <bruno@clisp.org>
50428
50429         * MODULES.html.sh (posix_functions): Remove 'contents'.
50430
50431 2007-04-29  Karl Berry  <karl@gnu.org>
50432
50433         * config/srclist.txt (gendocs_template_min): new entry.
50434
50435 2007-04-29  Bruno Haible  <bruno@clisp.org>
50436
50437         Work around fpurge bug on BSD systems.
50438         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50439         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50440         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50441         fpurge to rpl_fpurge if the system already has this function.
50442         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50443         the case where the system already has this function. Correct invariants
50444         on BSD systems.
50445         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50446         BSD systems.
50447
50448 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50449
50450         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50451         proposed by Sven Verdoolaege.
50452
50453         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50454         options.
50455         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50456         (usage and help tests): Update
50457
50458 2007-04-29  Bruno Haible  <bruno@clisp.org>
50459
50460         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50461         Print more information in case of failure. Disable a test on BeOS.
50462
50463 2007-04-29  Bruno Haible  <bruno@clisp.org>
50464
50465         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50466         This helps debugging on systems on which no gdb is available.
50467
50468 2007-04-29  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/freading.h: Improve comments.
50471         * lib/fwriting.h: Likewise.
50472         * tests/test-freading.c (main): Don't check freading immediately after
50473         repositioning. Needed for glibc.
50474
50475 2007-04-29  Bruno Haible  <bruno@clisp.org>
50476
50477         * lib/freading.c (freading): Trivial simplification.
50478
50479 2007-04-28  Bruno Haible  <bruno@clisp.org>
50480
50481         * tests/test-fwriting.c (main): Also test the interaction between
50482         fflush and fwriting.
50483         * modules/fwriting-tests (Depends-on): Add fflush.
50484
50485         * tests/test-freading.c (main): Also test the interaction between
50486         fflush and freading.
50487         * modules/freading-tests (Depends-on): Add fflush.
50488
50489 2007-04-28  Bruno Haible  <bruno@clisp.org>
50490
50491         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50492         fseeko and ftello.
50493         Suggested by Eric Blake.
50494
50495 2007-04-28  Jim Meyering  <jim@meyering.net>
50496
50497         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50498         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50499         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50500
50501 2007-04-27  Eric Blake  <ebb9@byu.net>
50502
50503         * doc/headers/assert.texi (assert.h): Document assert module use.
50504
50505 2007-04-27  Bruno Haible  <bruno@clisp.org>
50506
50507         * doc/headers/*.texi: New files.
50508         * doc/gnulib.texi (Header File Substitutes): New chapter.
50509         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50510         dependencies.
50511         (standards.info ,standards.html, standards.dvi): Update dependencies.
50512         (mostlyclean, clean): New targets.
50513
50514 2007-04-27  Bruno Haible  <bruno@clisp.org>
50515
50516         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50517         * modules/sysexits (Files, Makefile.am): Update.
50518
50519         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50520         * modules/sys_socket (Files, Makefile.am): Update.
50521
50522         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50523         * modules/sys_stat (Files, Makefile.am): Update.
50524
50525 2007-04-27  Eric Blake  <ebb9@byu.net>
50526
50527         * lib/freading.h: Improve comments.
50528         * lib/fwriting.h: Likewise.
50529         * lib/fflush.c: Likewise.
50530
50531         Fix closein for mingw.
50532         * modules/closein-tests: Add tests for closein.
50533         * tests/test-closein.c: New file.
50534         * tests/test-closein.sh: Likewise.
50535         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50536         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50537
50538 2007-04-27  Bruno Haible  <bruno@clisp.org>
50539
50540         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50541         version is < 6.
50542         * lib/math_.h [__DECC]: Likewise.
50543         * lib/stdio_.h [__DECC]: Likewise.
50544         * lib/stdlib_.h [__DECC]: Likewise.
50545         * lib/string_.h [__DECC]: Likewise.
50546         * lib/time_.h [__DECC]: Likewise.
50547         * lib/wchar_.h [__DECC]: Likewise.
50548         * lib/wctype_.h [__DECC]: Likewise.
50549
50550 2007-04-27  Bruno Haible  <bruno@clisp.org>
50551
50552         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50553
50554 2007-04-27  Bruno Haible  <bruno@clisp.org>
50555
50556         * lib/fflush.c: Add comments.
50557         * modules/fpurge-tests (Depends-on): Add fflush.
50558         * modules/freadable-tests (Depends-on): Likewise.
50559         * modules/fwritable-tests (Depends-on): Likewise.
50560
50561 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50562
50563         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50564         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50565         Report by Bruno Haible <bruno@clisp.org>.
50566
50567 2007-04-26  Eric Blake  <ebb9@byu.net>
50568
50569         Fix fflush on mingw.
50570         * modules/fflush (Depends-on): Add freading.
50571         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50572         but unread data.
50573
50574 2007-04-26  Eric Blake  <ebb9@byu.net>
50575         and Bruno Haible  <bruno@clisp.org>
50576
50577         Implement freading and fwriting.
50578         * lib/freading.c: New file.
50579         * lib/freading.h: Likewise.
50580         * m4/freading.m4: Likewise.
50581         * modules/freading: Likewise.
50582         * modules/freading-tests: Likewise.
50583         * tests/test-freading.c: Likewise.
50584         * lib/fwriting.c: New file.
50585         * lib/fwriting.h: Likewise.
50586         * m4/fwriting.m4: Likewise.
50587         * modules/fwriting: Likewise.
50588         * modules/fwriting-tests: Likewise.
50589         * tests/test-fwriting.c: Likewise.
50590         * MODULES.html.sh (File stream based Input/Output): Mention them.
50591
50592 2007-04-26  Bruno Haible  <bruno@clisp.org>
50593
50594         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50595         'long' when we assume it.
50596         Suggested by Eric Blake.
50597
50598 2007-04-26  Bruno Haible  <bruno@clisp.org>
50599
50600         Ensure fseeko, ftello are declared on glibc systems.
50601         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50602         * modules/fseeko (configure.ac-early): Likewise.
50603         * modules/ftello (configure.ac-early): Likewise.
50604         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50605         AC_FUNC_FSEEKO for this.
50606         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50607         (gl_CHECK_FSEEKO): Remove macro.
50608
50609 2007-04-26  Bruno Haible  <bruno@clisp.org>
50610
50611         * tests/test-fflush.c (main): Also check the ftell result after
50612         fflush and fseek/fseeko.
50613         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50614         file descriptor position cache in the stream.
50615         * lib/fseeko.c (rpl_fseeko): Likewise.
50616
50617 2007-04-26  Bruno Haible  <bruno@clisp.org>
50618
50619         * modules/fflush-tests (Depends-on): Add fseeko.
50620
50621 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50622             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50623
50624         * lib/argz_.h: ensure error_t definition is obtained in same
50625         mechanism system argz.h would have.
50626         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50627         argz facilities are known bad.  Err on the side of caution if
50628         cross-compiling.
50629
50630 2007-04-25  Eric Blake  <ebb9@byu.net>
50631
50632         * lib/fpurge.c (includes): Use stdlib.h for free.
50633         * tests/test-fflush.c (main): Also test fflush-fseeko.
50634
50635 2007-04-25  Bruno Haible  <bruno@clisp.org>
50636
50637         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50638         * lib/fseeko.c: New file.
50639         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50640         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50641         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50642         gl_FUNC_FSEEKO.
50643         (gl_FUNC_FSEEKO): Invoke it.
50644         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50645         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50646         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50647
50648 2007-04-25  Bruno Haible  <bruno@clisp.org>
50649
50650         * modules/fflush (Depends-on): Add ftello.
50651
50652 2007-04-25  Bruno Haible  <bruno@clisp.org>
50653
50654         * modules/ftello-tests: New file.
50655         * tests/test-ftello.c: New file.
50656
50657         * modules/ftello: New file.
50658         * m4/ftello.m4: New file.
50659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50660         HAVE_FTELLO.
50661         * lib/stdio_.h (ftello): New declaration.
50662         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50663         HAVE_FTELLO.
50664
50665 2007-04-25  Bruno Haible  <bruno@clisp.org>
50666
50667         * modules/fseeko-tests: New file.
50668         * tests/test-fseeko.c: New file.
50669
50670         * modules/fseeko: New file.
50671         * m4/fseeko.m4: New file.
50672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50673         HAVE_FSEEKO.
50674         * lib/stdio_.h (fseeko): New declaration.
50675         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50676         HAVE_FSEEKO.
50677
50678 2007-04-25  Bruno Haible  <bruno@clisp.org>
50679
50680         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50681
50682 2007-04-25  Bruno Haible  <bruno@clisp.org>
50683
50684         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50685         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50686         * tests/test-unistd.c: Likewise.
50687         * tests/test-fcntl.c: Likewise.
50688
50689 2007-04-23  Eric Blake  <ebb9@byu.net>
50690
50691         * lib/fflush.c: Fix missing include.
50692         Reported by Bruno Haible.
50693
50694 2007-04-23  Bruno Haible  <bruno@clisp.org>
50695
50696         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50697         Reported by Eric Blake.
50698
50699 2007-04-23  Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50702
50703 2007-04-23  Bruno Haible  <bruno@clisp.org>
50704
50705         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50706
50707 2007-04-23  Bruno Haible  <bruno@clisp.org>
50708
50709         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50710         Needed on HP-UX 11.
50711
50712 2007-04-16  Eric Blake  <ebb9@byu.net>
50713
50714         Make fflush rely on fpurge.
50715         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50716         open coding all variants.
50717         * modules/fflush (Depends-on): Add fpurge and unistd.
50718         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50719         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50720
50721         Fix --with-tests compilation on cygwin.
50722         * modules/argmatch-tests (Makefile.am): List gnulib library first
50723         in LDADD.
50724         * modules/argp-tests (Makefile.am): Likewise.
50725         * modules/array-list-tests (Makefile.am): Likewise.
50726         * modules/array-oset-tests (Makefile.am): Likewise.
50727         * modules/avltree-list-tests (Makefile.am): Likewise.
50728         * modules/avltree-oset-tests (Makefile.am): Likewise.
50729         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50730         * modules/carray-list-tests (Makefile.am): Likewise.
50731         * modules/dirname-tests (Makefile.am): Likewise.
50732         * modules/frexp-tests (Makefile.am): Likewise.
50733         * modules/isnanl-tests (Makefile.am): Likewise.
50734         * modules/linked-list-tests (Makefile.am): Likewise.
50735         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50736         * modules/lock-tests (Makefile.am): Likewise.
50737         * modules/rbtree-list-tests (Makefile.am): Likewise.
50738         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50739         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50740         * modules/tls-tests (Makefile.am): Likewise.
50741         * modules/tsearch-tests (Makefile.am): Likewise.
50742         * modules/xvasprintf-tests (Makefile.am): Likewise.
50743
50744         Fix fpurge for cygwin.
50745         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50746         value.
50747         * modules/fpurge-tests (Depends-on): Clean up trash.
50748
50749 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50750
50751         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50752
50753         * m4/autobuild.m4: Re-indent.
50754
50755 2007-04-13  Bruno Haible  <bruno@clisp.org>
50756
50757         * modules/fpurge-tests: New file.
50758         * tests/test-fpurge.c: New file.
50759
50760         * modules/fpurge: New file.
50761         * lib/fpurge.h: New file.
50762         * lib/fpurge.c: New file.
50763         * m4/fpurge.m4: New file.
50764
50765 2007-04-13  Bruno Haible  <bruno@clisp.org>
50766
50767         * modules/fbufmode-tests: New file.
50768         * tests/test-fbufmode.c: New file.
50769
50770         * modules/fbufmode: New file.
50771         * lib/fbufmode.h: New file.
50772         * lib/fbufmode.c: New file.
50773         * m4/fbufmode.m4: New file.
50774
50775 2007-04-13  Bruno Haible  <bruno@clisp.org>
50776
50777         * modules/fwritable-tests: New file.
50778         * tests/test-fwritable.c: New file.
50779
50780         * modules/fwritable: New file.
50781         * lib/fwritable.h: New file.
50782         * lib/fwritable.c: New file.
50783         * m4/fwritable.m4: New file.
50784
50785 2007-04-13  Bruno Haible  <bruno@clisp.org>
50786
50787         * modules/freadable-tests: New file.
50788         * tests/test-freadable.c: New file.
50789
50790         * modules/freadable: New file.
50791         * lib/freadable.h: New file.
50792         * lib/freadable.c: New file.
50793         * m4/freadable.m4: New file.
50794
50795 2007-04-13  Bruno Haible  <bruno@clisp.org>
50796
50797         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50798         MOSTLYCLEANFILES.
50799
50800 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50801
50802         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50803         gzip bootstrap.conf to avoid dragging in i18n machinery.
50804         (gnulib_tool_option): Use it.
50805
50806 2007-04-13  Bruno Haible  <bruno@clisp.org>
50807
50808         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50809         %F directives.
50810         * tests/test-vasprintf-posix.c (test_function): Likewise.
50811         * tests/test-snprintf-posix.h (test_function): Likewise.
50812         * tests/test-sprintf-posix.h (test_function): Likewise.
50813         * tests/test-fprintf-posix.h (test_function): Likewise.
50814         * tests/test-printf-posix.h (test_function): Likewise.
50815         * tests/test-fprintf-posix.out: Likewise.
50816
50817 2007-04-13  Bruno Haible  <bruno@clisp.org>
50818
50819         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50820         * modules/tls-tests (configure.ac): Likewise.
50821         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50822
50823 2007-04-13  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/tls.c (glthread_tls_get): Fix return type.
50826         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50827
50828 2007-04-12  Eric Blake  <ebb9@byu.net>
50829
50830         * modules/gettime (Depends-on): Remove gettime.
50831         Reported by Dmitry V. Levin.
50832
50833 2007-04-12  Bruno Haible  <bruno@clisp.org>
50834
50835         * modules/fflush (Include): Mention <stdio.h>.
50836         * modules/strtoimax (Include): Mention <inttypes.h>.
50837         * modules/strtoumax (Include): Likewise.
50838
50839 2007-04-12  Eric Blake  <ebb9@byu.net>
50840
50841         * .cvsignore: New file.
50842         * .gitignore: Likewise.
50843
50844 2007-04-12  Bruno Haible  <bruno@clisp.org>
50845
50846         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50847         not before, since $(LDADD) often contains libgnu.a.
50848         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50849         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50850         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50851         Needed on Cygwin.
50852
50853 2007-04-12  Eric Blake  <ebb9@byu.net>
50854
50855         Work around glibc's failure to flush stdin on fclose.
50856         * lib/closein.c (close_stdin): Flush stdin before closing.
50857
50858         Work around glibc's failure to reset seekable stdin on exit.
50859         * modules/closein: New module.
50860         * lib/closein.c: New file.
50861         * lib/closein.h: Likewise.
50862         * m4/closein.m4: Likewise.
50863         * MODULES.html.sh (File stream based Input/Output): Document it.
50864
50865 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50866
50867         * gnulib-tool: Rename generated 'autobuild' script to
50868         'do-autobuild' in --create-megatestdir output.
50869
50870         * doc/gnulib.texi (Build robot for gnulib): Fix.
50871
50872 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50873
50874         * modules/sysexits (Depends-on): Add absolute-header.
50875
50876 2007-04-12  Eric Blake  <ebb9@byu.net>
50877
50878         No need to preserve errno on success.
50879         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50880         Reported by Bruno Haible.
50881
50882 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50883
50884         * MODULES.html.sh (Support for maintaining and releasing
50885         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50886
50887 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50888
50889         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50890
50891 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50892
50893         * modules/autobuild: New module.
50894
50895         * m4/autobuild.m4: New file.
50896
50897 2007-04-11  Bruno Haible  <bruno@clisp.org>
50898
50899         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50900         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50901         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50902         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50903         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50904         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50905         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50907         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50908         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50910         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50911         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50913         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50914         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50916         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50917         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50918         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50919         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50920         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50922         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50923         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50924         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50925         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50926         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50927         Reported by Eric Blake.
50928
50929 2007-04-11  Bruno Haible  <bruno@clisp.org>
50930
50931         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50932
50933 2007-04-10  Bruno Haible  <bruno@clisp.org>
50934
50935         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50936         for NaN and Infinity. Needed on FreeBSD 6.1.
50937         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50938         regarding results for "%010a" of Infinity and NaN.
50939         * tests/test-vasprintf-posix.c (test_function): Likewise.
50940         * tests/test-snprintf-posix.h (test_function): Likewise.
50941         * tests/test-sprintf-posix.h (test_function): Likewise.
50942         * tests/test-fprintf-posix.h (test_function): Likewise.
50943         * tests/test-printf-posix.h (test_function): Likewise.
50944         * tests/test-fprintf-posix.out: Likewise.
50945
50946 2007-04-10  Bruno Haible  <bruno@clisp.org>
50947
50948         * modules/locale-tests: New file.
50949         * tests/test-locale.c: New file.
50950
50951         * modules/locale: New file.
50952         * lib/locale_.h: New file.
50953         * m4/locale_h.m4: New file.
50954
50955 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50956             Bruno Haible  <bruno@clisp.org>
50957
50958         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50959         be determined, test for availability of the copysignf, copysign,
50960         copysignl functions.
50961         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50962         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50963         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50964
50965 2007-04-09  Eric Blake  <ebb9@byu.net>
50966
50967         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50968         * modules/stdio (Makefile.am): Support fflush.
50969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50970         * modules/fflush: New file.
50971         * lib/fflush.c: Likewise.
50972         * m4/fflush.m4: Likewise.
50973         * modules/fflush-tests: New test.
50974         * tests/test-fflush.c: Likewise.
50975         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50976
50977 2007-04-06  Bruno Haible  <bruno@clisp.org>
50978
50979         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50980         (VASNPRINTF): Use signbit for faster determination whether to print a
50981         minus sign.
50982         * modules/vasnprintf (Files): Remove lib/float+.h.
50983         * modules/fprintf-posix (Depends-on): Add signbit.
50984         * modules/snprintf-posix (Depends-on): Likewise.
50985         * modules/sprintf-posix (Depends-on): Likewise.
50986         * modules/vasnprintf-posix (Depends-on): Likewise.
50987         * modules/vasprintf-posix (Depends-on): Likewise.
50988         * modules/vfprintf-posix (Depends-on): Likewise.
50989         * modules/vsnprintf-posix (Depends-on): Likewise.
50990         * modules/vsprintf-posix (Depends-on): Likewise.
50991
50992 2007-04-06  Bruno Haible  <bruno@clisp.org>
50993
50994         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50995         * tests/test-frexpl.c (main): Likewise.
50996         * tests/test-ldexpl.c (main): Likewise.
50997         * modules/frexp-tests (Depends-on): Add signbit.
50998         * modules/frexpl-tests (Depdends-on): Likewise.
50999         * modules/ldexpl-tests (Depdends-on): Likewise.
51000
51001 2007-04-06  Bruno Haible  <bruno@clisp.org>
51002
51003         * modules/signbit-tests: New file.
51004         * tests/test-signbit.c: New file.
51005
51006         * modules/signbit: New file.
51007         * lib/signbitf.c: New file.
51008         * lib/signbitd.c: New file.
51009         * lib/signbitl.c: New file.
51010         * m4/signbit.m4: New file.
51011         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51012         (signbit): New macro.
51013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51014         REPLACE_SIGNBIT.
51015         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51016         REPLACE_FREXPL into math.h.
51017
51018 2007-04-06  Bruno Haible  <bruno@clisp.org>
51019
51020         * modules/isnanf-nolibm-tests: New file.
51021         * tests/test-isnanf.c: New file.
51022
51023         * modules/isnanf-nolibm: New file.
51024         * lib/isnanf.h: New file.
51025         * lib/isnanf.c: New file.
51026         * lib/isnan.c: Consider the USE_FLOAT macro.
51027         * m4/isnanf.m4: New file.
51028
51029 2007-04-06  Bruno Haible  <bruno@clisp.org>
51030
51031         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51032         (Link): New section.
51033
51034         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51035
51036 2007-04-06  Bruno Haible  <bruno@clisp.org>
51037
51038         Assume the 'long double' type.
51039         * m4/longdouble.m4: Remove file.
51040         * config/srclist.txt: Don't mention longdouble.m4.
51041         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51042         * lib/float+.h: Likewise.
51043         * lib/frexp.c: Likewise.
51044         * lib/printf-args.h: Likewise.
51045         * lib/printf-args.c: Likewise.
51046         * lib/printf-frexp.c: Likewise.
51047         * lib/printf-parse.c: Likewise.
51048         * lib/vasnprintf.c: Likewise.
51049         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51050         * m4/intl.m4: Likewise.
51051         * m4/isnanl.m4: Likewise.
51052         * m4/printf.m4: Likewise.
51053         * m4/printf-frexpl.m4: Likewise.
51054         * m4/vasnprintf.m4: Likewise.
51055         * modules/allocsa (Files): Remove m4/longdouble.m4.
51056         * modules/gettext (Files): Likewise.
51057         * modules/relocatable-prog-wrapper (Files): Likewise.
51058         * modules/vasnprintf (Files): Likewise.
51059         * modules/isnanl (Files): Likewise.
51060         (Include): Simplify.
51061         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51062         (Include): Simplify.
51063         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51064         (Include): Simplify.
51065         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51066         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51067         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51068         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51069         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51070         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51071         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51072         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51073         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51074         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51075         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51076         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51077         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51078         * tests/test-isnanl.c: Likewise.
51079         * tests/test-snprintf-posix.h: Likewise.
51080         * tests/test-sprintf-posix.h: Likewise.
51081         * tests/test-vasnprintf-posix.c: Likewise.
51082         * tests/test-vasnprintf-posix2.c: Likewise.
51083         * tests/test-vasprintf-posix.c: Likewise.
51084
51085 2007-04-06  Bruno Haible  <bruno@clisp.org>
51086
51087         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51088         * lib/math_.h [__DECC]: Include the overridden include file through
51089         #include_next, outside the double-inclusion guard.
51090         * lib/stdio_.h [__DECC]: Likewise.
51091         * lib/stdlib_.h [__DECC]: Likewise.
51092         * lib/string_.h [__DECC]: Likewise.
51093         * lib/time_.h [__DECC]: Likewise.
51094         * lib/wchar_.h [__DECC]: Likewise.
51095         * lib/wctype_.h [__DECC]: Likewise.
51096         * lib/inttypes_.h [__DECC]: Likewise.
51097         Reported by Albert Chin <china@thewrittenword.com> in
51098         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51099
51100 2007-04-04  Eric Blake  <ebb9@byu.net>
51101
51102         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51103         1.5.x.
51104
51105 2007-04-04  Bruno Haible  <bruno@clisp.org>
51106
51107         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51108         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51109
51110 2007-04-04  Bruno Haible  <bruno@clisp.org>
51111
51112         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51113         results for "%010a" of Infinity and NaN.
51114         * tests/test-vasprintf-posix.c (test_function): Likewise.
51115         * tests/test-snprintf-posix.h (test_function): Likewise.
51116         * tests/test-sprintf-posix.h (test_function): Likewise.
51117         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51118         * tests/test-printf-posix.h (test_function): Likewise.
51119         * tests/test-fprintf-posix.out: Update.
51120         Needed for FreeBSD 6.1.
51121
51122 2007-04-04  Bruno Haible  <bruno@clisp.org>
51123
51124         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51125         directly used by the gnulib modules nor by gnulib-tool.
51126
51127 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * DEPENDENCIES: Give overall description of version dependency
51130         desirability.  Use more-typical names for apps.
51131         Add shell, coreutils, diffutils, grep, tar, gzip.
51132
51133 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51134
51135         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51136
51137 2007-04-04  Karl Berry  <karl@gnu.org>
51138
51139         * MODULES.html.sh (func_module): missing '.
51140
51141 2007-04-03  Bruno Haible  <bruno@clisp.org>
51142
51143         * modules/argmatch-tests (Makefile.am): New variable
51144         test_argmatch_LDADD.
51145         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51146         * modules/array-list-tests (Makefile.am): New variable
51147         test_array_list_LDADD.
51148         * modules/array-oset-tests (Makefile.am): New variable
51149         test_array_oset_LDADD.
51150         * modules/avltree-list-tests (Makefile.am): New variable
51151         test_avltree_list_LDADD.
51152         * modules/avltree-oset-tests (Makefile.am): New variable
51153         test_avltree_oset_LDADD.
51154         * modules/avltreehash-list-tests (Makefile.am): New variable
51155         test_avltreehash_list_LDADD.
51156         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51157         test_canonicalize_lgpl_LDADD.
51158         * modules/carray-list-tests (Makefile.am): New variable
51159         test_carray_list_LDADD.
51160         * modules/dirname-tests (Makefile.am): New variable
51161         test_dirname_LDADD.
51162         * modules/linked-list-tests (Makefile.am): New variable
51163         test_linked_list_LDADD.
51164         * modules/linkedhash-list-tests (Makefile.am): New variable
51165         test_linkedhash_list_LDADD.
51166         * modules/rbtree-list-tests (Makefile.am): New variable
51167         test_rbtree_list_LDADD.
51168         * modules/rbtree-oset-tests (Makefile.am): New variable
51169         test_rbtree_oset_LDADD.
51170         * modules/rbtreehash-list-tests (Makefile.am): New variable
51171         test_rbtreehash_list_LDADD.
51172         * modules/xvasprintf-tests (Makefile.am): New variable
51173         test_xvasprintf_LDADD.
51174         Reported by Eric Blake.
51175
51176 2007-04-03  Eric Blake  <ebb9@byu.net>
51177
51178         * DEPENDENCIES: Weaken m4 requirements.
51179
51180 2007-04-03  Bruno Haible  <bruno@clisp.org>
51181
51182         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51183         * modules/isnanl-tests (configure.ac): Likewise.
51184
51185 2007-04-03  Ben Pfaff  <blp@gnu.org>
51186
51187         * modules/iconv_open: Add $(srcdir)/ to source directory
51188         references in Makefile fragments that call gperf, to fix VPATH
51189         builds.
51190
51191 2007-04-03  Bruno Haible  <bruno@clisp.org>
51192
51193         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51194         * lib/ldexpl.c: Undo last change.
51195
51196 2007-04-03  Bruno Haible  <bruno@clisp.org>
51197
51198         * modules/printf-frexpl (Depends-on): Undo last change.
51199         (Files): Add m4/ldexpl.m4.
51200
51201 2007-04-03  Bruno Haible  <bruno@clisp.org>
51202
51203         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51204         * modules/isnanl (Link): New section.
51205
51206         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51207         * modules/frexp (Link): New section.
51208
51209         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51210         * modules/frexpl (Link): New section.
51211
51212         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51213         * modules/ldexpl (Link): New section.
51214
51215 2007-04-03  Bruno Haible  <bruno@clisp.org>
51216
51217         * modules/TEMPLATE-EXTENDED: New file.
51218         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51219
51220 2007-04-03  Bruno Haible  <bruno@clisp.org>
51221
51222         * DEPENDENCIES: New file.
51223         Suggested by Simon Josefsson.
51224
51225 2007-04-03  Bruno Haible  <bruno@clisp.org>
51226
51227         * doc/gnulib.texi: Escape @.
51228
51229 2007-04-03  James Youngman  <jay@gnu.org>
51230         and Paul Eggert  <eggert@cs.ucla.edu>
51231
51232         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51233         birthtime on all systems that have birthtime, not just those which
51234         use st_birthtimensec rather than st_birthtim.  Putting zero in
51235         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51236         that the birth time is not available for files on an NFS mount.
51237
51238 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51239
51240         * modules/memxor: Move back from crypto/, suggested by Bruno.
51241         * modules/crypto/hmac-sha1: Fix memxor dependency.
51242
51243         * modules/crypto/gc: Moved from ../.
51244
51245 2007-04-02  Eric Blake  <ebb9@byu.net>
51246
51247         * lib/ldexpl.c (includes): Avoid libm.
51248
51249         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51250
51251 2007-04-02  Bruno Haible  <bruno@clisp.org>
51252
51253         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51254         on IRIX.
51255
51256 2007-04-02  Bruno Haible  <bruno@clisp.org>
51257
51258         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51259         x86 or x86_64 platforms running MacOS X.
51260         Reported by Ryan Schmidt <@ryandesign.com>.
51261
51262 2007-04-02  Bruno Haible  <bruno@clisp.org>
51263
51264         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51265         i386.
51266
51267 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51268
51269         * modules/crypto/arcfour: Moved from ../.
51270         * modules/crypto/arcfour-tests: Moved from ../.
51271         * modules/crypto/arctwo: Moved from ../.
51272         * modules/crypto/arctwo-tests: Moved from ../.
51273         * modules/crypto/des: Moved from ../.
51274         * modules/crypto/des-tests: Moved from ../.
51275         * modules/crypto/gc-arcfour: Moved from ../.
51276         * modules/crypto/gc-arcfour-tests: Moved from ../.
51277         * modules/crypto/gc-arctwo: Moved from ../.
51278         * modules/crypto/gc-arctwo-tests: Moved from ../.
51279         * modules/crypto/gc-des: Moved from ../.
51280         * modules/crypto/gc-des-tests: Moved from ../.
51281         * modules/crypto/gc-hmac-md5: Moved from ../.
51282         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51283         * modules/crypto/gc-hmac-sha1: Moved from ../.
51284         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51285         * modules/crypto/gc-md2: Moved from ../.
51286         * modules/crypto/gc-md2-tests: Moved from ../.
51287         * modules/crypto/gc-md4: Moved from ../.
51288         * modules/crypto/gc-md4-tests: Moved from ../.
51289         * modules/crypto/gc-md5: Moved from ../.
51290         * modules/crypto/gc-md5-tests: Moved from ../.
51291         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51292         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51293         * modules/crypto/gc-random: Moved from ../.
51294         * modules/crypto/gc-rijndael: Moved from ../.
51295         * modules/crypto/gc-rijndael-tests: Moved from ../.
51296         * modules/crypto/gc-sha1: Moved from ../.
51297         * modules/crypto/gc-sha1-tests: Moved from ../.
51298         * modules/crypto/gc-tests: Moved from ../.
51299         * modules/crypto/hmac-md5: Moved from ../.
51300         * modules/crypto/hmac-md5-tests: Moved from ../.
51301         * modules/crypto/hmac-sha1: Moved from ../.
51302         * modules/crypto/hmac-sha1-tests: Moved from ../.
51303         * modules/crypto/md2: Moved from ../.
51304         * modules/crypto/md2-tests: Moved from ../.
51305         * modules/crypto/md4: Moved from ../.
51306         * modules/crypto/md4-tests: Moved from ../.
51307         * modules/crypto/md5: Moved from ../.
51308         * modules/crypto/md5-tests: Moved from ../.
51309         * modules/crypto/memxor: Moved from ../.
51310         * modules/crypto/rijndael: Moved from ../.
51311         * modules/crypto/rijndael-tests: Moved from ../.
51312         * modules/crypto/sha1: Moved from ../.
51313
51314 2007-03-30  James Youngman  <jay@gnu.org>
51315
51316         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51317         rename() to change the ctime of a file (because ctime is unaffected
51318         by rename on jfs2 on AIX 5.1).
51319         (main): Start by doing cleanup, in case a previous run failed leaving
51320         test files behind.
51321
51322 2007-03-31  Bruno Haible  <bruno@clisp.org>
51323
51324         Support old proprietary implementations of iconv.
51325         * modules/iconv_open: New file.
51326         * lib/iconv_.h: New file.
51327         * m4/iconv_h.m4: New file.
51328         * lib/iconv_open.c: New file.
51329         * lib/iconv_open-aix.gperf: New file.
51330         * lib/iconv_open-hpux.gperf: New file.
51331         * lib/iconv_open-irix.gperf: New file.
51332         * lib/iconv_open-osf.gperf: New file.
51333         * m4/iconv_open.m4: New file.
51334         * modules/linebreak (Depends-on): Add iconv_open.
51335         * modules/striconv (Depends-on): Likewise.
51336         * modules/striconveh (Depends-on): Likewise.
51337         * modules/unicodeio (Depends-on): Likewise.
51338         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51339         (iconv_t)(-1).
51340         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51341         conversion if cd is (iconv_t)(-1).
51342         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51343         is not possible.
51344
51345 2007-03-31  Bruno Haible  <bruno@clisp.org>
51346
51347         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51348         work on Solaris either. Protect also second use of "autodetect_jp".
51349
51350 2007-03-31  Bruno Haible  <bruno@clisp.org>
51351
51352         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51353         the function is not present.
51354
51355 2007-03-31  Bruno Haible  <bruno@clisp.org>
51356
51357         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51358         the function is not present.
51359
51360 2007-03-31  Bruno Haible  <bruno@clisp.org>
51361
51362         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51363         a bug in HP-UX iconv_open().
51364
51365 2007-03-31  Bruno Haible  <bruno@clisp.org>
51366
51367         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51368         (Mathematics <math.h>): New section, add fpieee.
51369         (Input/output <stdio.h>): Add fseterr.
51370         (Mathematics <math.h>): New section, add printf-frexp.
51371         (Container data structures): Add sublist.
51372         (Core language properties): Add fpucw, inline.
51373         (Functions for greatest-width integer types <inttypes.h>): Add
51374         imaxabs, imaxdiv, inttypes.
51375         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51376         isnanl-nolibm, ldexp.
51377         (Mathematics <math.h>): New section, add printf-frexpl.
51378         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51379         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51380         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51381         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51382         (Unicode string functions): Add unistr/u*-mbtoucr.
51383         (Java): Add javacomp-script, javaexec-script.
51384         (C#): Add csharpcomp-script, csharpexec-script.
51385         (Support for building libraries and executables): Add havelib,
51386         relocatable-*.
51387         (Support for maintaining and releasing projects): Renamed from
51388         'Support for maintaining and release projects'. Add announce-gen.
51389
51390 2007-03-31  Bruno Haible  <bruno@clisp.org>
51391
51392         * README: Talk primarily about git.
51393         (git and CVS): Renamed from CVS.
51394         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51395         gnulib is available through git.
51396         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51397
51398 2007-03-30  Bruno Haible  <bruno@clisp.org>
51399
51400         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51401         * lib/poll_.h: Likewise.
51402         * lib/stat_.h: Likewise.
51403         * lib/sys_time_.h: Likewise.
51404         * lib/sysexit_.h: Likewise.
51405         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51406         * lib/stdbool_.h: Likewise.
51407         * lib/byteswap_.h: Add double-inclusion guard.
51408
51409 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51410
51411         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51412
51413 2007-03-30  Karl Berry  <karl@gnu.org>
51414
51415         * config/srclist-update: double space after USA in the license
51416         substitution, since that's how it's usually (?) written.
51417
51418 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51419
51420         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51421         reported by Bruno Haible.
51422
51423 2007-03-29  Bruno Haible  <bruno@clisp.org>
51424
51425         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51426         a bug in AIX iconv().
51427
51428 2007-03-29  Bruno Haible  <bruno@clisp.org>
51429
51430         * modules/ldexpl-tests: New file.
51431         * tests/test-ldexpl.c: New file.
51432
51433 2007-03-29  Bruno Haible  <bruno@clisp.org>
51434
51435         * lib/ldexpl.c: Include fpucw.h.
51436         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51437         multiplication.
51438         * modules/ldexpl (Depends-on): Add fpucw.
51439
51440 2007-03-29  Bruno Haible  <bruno@clisp.org>
51441
51442         * modules/ldexpl: New file.
51443         * m4/ldexpl.m4: New file.
51444         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51445         set.
51446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51447         REPLACE_LDEXPL.
51448         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51449         REPLACE_LDEXPL.
51450         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51451         gl_FUNC_LDEXPL_WORKS.
51452         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51453         * modules/mathl (Files): Remove lib/ldexpl.c.
51454         (Depends-on): Add ldexpl.
51455
51456 2007-03-29  Bruno Haible  <bruno@clisp.org>
51457
51458         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51459
51460 2007-03-29  Bruno Haible  <bruno@clisp.org>
51461
51462         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51463         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51464         and possibly also HP-UX.
51465         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51466         work on AIX, IRIX, HP-UX, OSF/1.
51467         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51468         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51469         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51470         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51471         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51472         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51473
51474 2007-03-29  Bruno Haible  <bruno@clisp.org>
51475
51476         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51477
51478 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51479
51480         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51481         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51482
51483 2007-03-29  Eric Blake  <ebb9@byu.net>
51484
51485         * lib/acl-internal.h: Remove redundant include.
51486         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51487         Cygwin when a file is locked.
51488
51489 2007-03-29  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51492         file.
51493         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51494
51495 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51496
51497         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51498         try to remove a parent directory if the child couldn't be removed
51499         (except for the first rmdir, which could fail because the child
51500         doesn't exist).  Problem reported by Jeff Blaine in
51501         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51502
51503 2007-03-28  Bruno Haible  <bruno@clisp.org>
51504
51505         * lib/striconveh.c (utf8conv_carefully): New function.
51506         (mem_cd_iconveh_internal): Invoke it.
51507
51508 2007-03-28  Bruno Haible  <bruno@clisp.org>
51509
51510         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51511         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51512         input.
51513         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51514         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51515         unistr/u8-uctomb.
51516
51517 2007-03-28  Bruno Haible  <bruno@clisp.org>
51518
51519         * modules/unistr/u8-mbtoucr: New file.
51520         * lib/unistr/u8-mbtoucr.c: New file.
51521         * modules/unistr/u16-mbtoucr: New file.
51522         * lib/unistr/u16-mbtoucr.c: New file.
51523         * modules/unistr/u16-mbtoucr: New file.
51524         * lib/unistr/u16-mbtoucr.c: New file.
51525         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51526
51527 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51528             Bruno Haible  <bruno@clisp.org>
51529
51530         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51531         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51532         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51533
51534         * m4/stdio_h.m4: Add stubs for vasprintf too.
51535
51536         * modules/stdio: Support vasprintf in sed command.
51537
51538         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51539         vasprintf.h.  Add stdio module indicator.
51540
51541         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51542         vasprintf.h.
51543
51544         * lib/vasprintf.h: File removed.
51545
51546         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51547         * lib/vasprintf.c: Ditto.
51548         * lib/xvasprintf.c: Ditto.
51549         * tests/test-vasprintf-posix.c: Ditto.
51550         * tests/test-vasprintf.c: Ditto.
51551
51552 2007-03-27  Bruno Haible  <bruno@clisp.org>
51553
51554         Make vasnprintf multithread-safe.
51555         * lib/vasnprintf.c (decimal_point_char): New function.
51556         (VASNPRINTF): Use it.
51557         Suggested by Simon Josefsson.
51558
51559 2007-03-27  Eric Blake  <ebb9@byu.net>
51560
51561         Support sub-second birthtime on cygwin.
51562         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51563         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51564         (get_stat_birthtime): Also work with st_birthtim.
51565
51566 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51567
51568         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51569         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51570         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51571         (get_stat_birthtime_ns): Simplify compile-time tests.
51572         (get_stat_birthtime): Change the API to look like
51573         get_stat_mtime etc., except return a negative tv_nsec on error.
51574         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51575         Don't check for "spare" fields.
51576         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51577         or for struct stat.st_birthtime, as these tests aren't used.
51578         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51579
51580 2007-03-27  Bruno Haible  <bruno@clisp.org>
51581
51582         * lib/stat-time.h: Include <sys/stat.h>.
51583
51584 2007-03-27  James Youngman  <jay@gnu.org>
51585
51586         * lib/stat-time.h (get_stat_birthtime): New function for
51587           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51588         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51589           and its variants.
51590         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51591         * modules/stat-time-test: New file.
51592         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51593
51594 2007-03-26  Bruno Haible  <bruno@clisp.org>
51595
51596         Better support of signalling NaNs.
51597         * lib/atanl.c: Include isnanl.h.
51598         (atanl): Perform test for NaN at the beginning of the function and
51599         through a call to isnanl.
51600         * lib/cosl.c: Include isnanl.h.
51601         (cosl): Perform test for NaN at the beginning of the function and
51602         through a call to isnanl.
51603         * lib/ldexpl.c: Include isnanl.h.
51604         (ldexpl): Perform test for NaN through a call to isnanl.
51605         * lib/logl.c: Include isnanl.h.
51606         (logl): Perform test for NaN at the beginning of the function and
51607         through a call to isnanl.
51608         * lib/sinl.c: Include isnanl.h.
51609         (sinl): Perform test for NaN at the beginning of the function and
51610         through a call to isnanl.
51611         * lib/sqrtl.c: Include isnanl.h.
51612         (sqrtl): Perform test for NaN at the beginning of the function and
51613         through a call to isnanl.
51614         * lib/tanl.c: Include isnanl.h.
51615         (tanl): Perform test for NaN at the beginning of the function and
51616         through a call to isnanl.
51617         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51618         * modules/mathl (Depends-on): Add isnanl.
51619
51620 2007-03-26  Eric Blake  <ebb9@byu.net>
51621
51622         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51623         regression in logic sense of previous patch.
51624
51625 2007-03-26  Bruno Haible  <bruno@clisp.org>
51626
51627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51628         unportable shell command "if ! ...".
51629         Reported by Ralf Wildenhues.
51630
51631 2007-03-25  Bruno Haible  <bruno@clisp.org>
51632
51633         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51634         <sysexits.h> file, and only add EX_CONFIG.
51635         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51636         absolute file name and whether it is sufficient. Substitute also
51637         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51638         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51639         ABSOLUTE_SYSEXITS_H into sysexits.h.
51640
51641 2007-03-25  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51644         hints is NULL.
51645
51646 2007-03-25  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51649         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51650
51651 2007-03-25  Bruno Haible  <bruno@clisp.org>
51652
51653         * lib/vasnprintf.c: Include langinfo.h.
51654         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51655         multithread-safe.
51656         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51657         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51658         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51659         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51660         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51661         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51662         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51664         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51665         Reported by Simon Josefsson.
51666
51667 2007-03-25  Bruno Haible  <bruno@clisp.org>
51668
51669         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51670         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51671         * modules/vasnprintf (Depends-on): Add stdint.
51672
51673 2007-03-25  Bruno Haible  <bruno@clisp.org>
51674
51675         * modules/fpieee: New file.
51676         * m4/fpieee.m4: New file.
51677         * modules/isnan-nolibm (Depends-on): Add fpieee.
51678         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51679         * modules/isnanl (Depends-on): Add fpieee.
51680
51681 2007-03-25  Bruno Haible  <bruno@clisp.org>
51682
51683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51684
51685 2007-03-25  Bruno Haible  <bruno@clisp.org>
51686
51687         Avoid test failures on IRIX 6.5.
51688         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51689         (main): Use it.
51690         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51691         macros.
51692         (main): Use them.
51693
51694 2007-03-25  Bruno Haible  <bruno@clisp.org>
51695
51696         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51697         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51698         exists but doesn't work.
51699         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51700         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51702         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51703         math.h.
51704
51705 2007-03-25  Bruno Haible  <bruno@clisp.org>
51706
51707         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51708         returns inf. Needed on IRIX 6.5.
51709
51710 2007-03-25  Bruno Haible  <bruno@clisp.org>
51711
51712         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51713         (main): Use isnanl instead of x != x idiom.
51714         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51715
51716         * tests/test-frexp.c: Include isnan.h.
51717         (main): Use isnan instead of x != x idiom.
51718         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51719
51720 2007-03-25  Bruno Haible  <bruno@clisp.org>
51721
51722         * tests/test-frexp.c (NaN): New function/macro.
51723         (main): Use it instead of 0.0 / 0.0.
51724         * tests/test-isnan.c (NaN): New function/macro.
51725         (main): Use it instead of 0.0 / 0.0.
51726         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51727         (test_function): Use it instead of 0.0 / 0.0.
51728         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51729         (test_function): Use it instead of 0.0 / 0.0.
51730         * tests/test-snprintf-posix.h (NaN): New function/macro.
51731         (test_function): Use it instead of 0.0 / 0.0.
51732         * tests/test-sprintf-posix.h (NaN): New function/macro.
51733         (test_function): Use it instead of 0.0 / 0.0.
51734         * tests/test-fprintf-posix.h (NaN): New function/macro.
51735         (test_function): Use it instead of 0.0 / 0.0.
51736         * tests/test-printf-posix.h (NaN): New function/macro.
51737         (test_function): Use it instead of 0.0 / 0.0.
51738
51739         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51740
51741 2007-03-25  Bruno Haible  <bruno@clisp.org>
51742
51743         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51744
51745 2007-03-25  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/regexec.c (merge_state_with_log): Make static.
51748
51749 2007-03-25  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/trigl.c (kernel_rem_pio2): Make static.
51752
51753 2007-03-25  Bruno Haible  <bruno@clisp.org>
51754
51755         * lib/sincosl.c (sincosl_table): Make static.
51756
51757 2007-03-25  Bruno Haible  <bruno@clisp.org>
51758
51759         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51760         if the compiler does not support C99.
51761
51762 2007-03-25  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/time (Makefile.am): Ensure all rule action lines start with a
51765         tab.
51766
51767 2007-03-24  Bruno Haible  <bruno@clisp.org>
51768
51769         * modules/tsearch-tests: New file.
51770         * tests/test-tsearch.sh: New file.
51771         * tests/test-tsearch.c: New file, mostly copied from glibc.
51772
51773         * modules/search-tests: New file.
51774         * tests/test-search.c: New file.
51775
51776         * modules/search: New file.
51777         * lib/search_.h: New file, incorporating lib/tsearch.h.
51778         * m4/search_h.m4: New file.
51779         * lib/tsearch.h: Remove file.
51780         * lib/tsearch.c: Include search.h instead of tsearch.h.
51781         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51782         HAVE_TSEARCH.
51783         * modules/tsearch (Files): Remove lib/tsearch.h.
51784         (Depends-on): Add search.
51785         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51786         (Include): Change tsearch.h into search.h.
51787
51788 2007-03-24  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/fpucw: New file.
51791         * lib/fpucw.h: New file.
51792         * lib/frexp.c: Include fpucw.h.
51793         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51794         (FUNC): Use them.
51795         * lib/printf-frexp.c: Include fpucw.h.
51796         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51797         (FUNC): Use them.
51798         * lib/vasnprintf.c: Include fpucw.h.
51799         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51800         'long double' calculations.
51801         * tests/test-frexpl.c: Include fpucw.h.
51802         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51803         * tests/test-printf-frexpl.c: Include fpucw.h.
51804         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51805         * modules/frexpl (Depends-on): Add fpucw.
51806         * modules/printf-frexpl (Depends-on): Likewise.
51807         * modules/fprintf-posix (Depends-on): Likewise.
51808         * modules/snprintf-posix (Depends-on): Likewise.
51809         * modules/sprintf-posix (Depends-on): Likewise.
51810         * modules/vasnprintf-posix (Depends-on): Likewise.
51811         * modules/vasprintf-posix (Depends-on): Likewise.
51812         * modules/vfprintf-posix (Depends-on): Likewise.
51813         * modules/vsnprintf-posix (Depends-on): Likewise.
51814         * modules/vsprintf-posix (Depends-on): Likewise.
51815         * modules/frexpl-tests (Depends-on): Likewise.
51816         * modules/printf-frexpl-tests (Depends-on): Likewise.
51817
51818 2007-03-24  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/float+.h: New file.
51821         * lib/isnan.c: Include float+.h.
51822         (SIZE): New macro.
51823         (FUNC): Compare only SIZE bytes of the value.
51824         * lib/vasnprintf.c: Include float+.h.
51825         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51826         SIZEOF_LDBL or SIZEOF_DBL bytes.
51827         * modules/isnan-nolibm (Files): Add lib/float+.h.
51828         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51829         * modules/isnanl (Files): Add lib/float+.h.
51830         * modules/vasnprintf (Files): Add lib/float+.h.
51831
51832 2007-03-24  Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51835         include isnanl-nolibm.h.
51836
51837 2007-03-24  Bruno Haible  <bruno@clisp.org>
51838
51839         * tests/test-read-file.c (main): Don't produce spurious output for
51840         expected situations. Make the test fail if it encountered unexpected
51841         results.
51842
51843 2007-03-24  Bruno Haible  <bruno@clisp.org>
51844
51845         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51846         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51847
51848 2007-03-24  Bruno Haible  <bruno@clisp.org>
51849
51850         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51851
51852 2007-03-24  Bruno Haible  <bruno@clisp.org>
51853
51854         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51855         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51856
51857         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51858         * modules/utf8-ucs4: Turn into a symbolic link to module
51859         unistr/u8-mbtouc.
51860
51861         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51862         utf8-ucs4-unsafe.
51863         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51864         unistr/u8-mbtouc-unsafe.
51865
51866         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51867         * modules/utf16-ucs4: Turn into a symbolic link to module
51868         unistr/u16-mbtouc.
51869
51870         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51871         utf16-ucs4-unsafe.
51872         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51873         unistr/u16-mbtouc-unsafe.
51874
51875         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51876         * modules/ucs4-utf8: Turn into a symbolic link to module
51877         unistr/u8-ubtomb.
51878
51879         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51880         * modules/ucs4-utf16: Turn into a symbolic link to module
51881         unistr/u16-ubtomb.
51882
51883 2007-03-24  Bruno Haible  <bruno@clisp.org>
51884
51885         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51886         Enable the function only if HAVE_INLINE.
51887         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51888         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51889         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51890         Enable the function only if HAVE_INLINE.
51891         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51892         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51893         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51894         Enable the function only if HAVE_INLINE.
51895         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51896         Enable the function only if HAVE_INLINE.
51897         * modules/utf8-ucs4: Update.
51898         * modules/utf8-ucs4-unsafe: Update.
51899         * modules/utf16-ucs4: Update.
51900         * modules/utf16-ucs4-unsafe: Update.
51901         * modules/ucs4-utf8: Update.
51902         * modules/ucs4-utf16: Update.
51903
51904 2007-03-24  Bruno Haible  <bruno@clisp.org>
51905
51906         * lib/utf8-ucs4.h: Remove file.
51907         * lib/utf8-ucs4-unsafe.h: Remove file.
51908         * lib/utf16-ucs4.h: Remove file.
51909         * lib/utf16-ucs4-unsafe.h: Remove file.
51910         * lib/ucs4-utf8.h: Remove file.
51911         * lib/ucs4-utf16.h: Remove file.
51912         * lib/unistr.h: Include their previous contents.
51913         * m4/utf-ucs4.m4: Remove file.
51914         * m4/ucs4-utf.m4: Remove file.
51915         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51916         (Depends-on): Add unistr/base.
51917         (configure.ac): Remove gl_UTF_UCS4.
51918         (Makefile.am): Update.
51919         (Include): Change to unistr.h.
51920         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51921         (Depends-on): Add unistr/base.
51922         (configure.ac): Remove gl_UTF_UCS4.
51923         (Makefile.am): Update.
51924         (Include): Change to unistr.h.
51925         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51926         (Depends-on): Add unistr/base.
51927         (configure.ac): Remove gl_UTF_UCS4.
51928         (Makefile.am): Update.
51929         (Include): Change to unistr.h.
51930         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51931         (Depends-on): Add unistr/base.
51932         (configure.ac): Remove gl_UTF_UCS4.
51933         (Makefile.am): Update.
51934         (Include): Change to unistr.h.
51935         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51936         (Depends-on): Add unistr/base.
51937         (configure.ac): Remove gl_UCS4_UTF.
51938         (Makefile.am): Update.
51939         (Include): Change to unistr.h.
51940         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51941         (Depends-on): Add unistr/base.
51942         (configure.ac): Remove gl_UCS4_UTF.
51943         (Makefile.am): Update.
51944         (Include): Change to unistr.h.
51945         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51946         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51947         utf8-ucs4-unsafe.h.
51948         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51949         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51950         utf16-ucs4-unsafe.h.
51951         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51952         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51953         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51954         * lib/unistr/u8-strchr.c: Likewise.
51955         * lib/unistr/u8-strrchr.c: Likewise.
51956         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51957         * lib/unistr/u16-strchr.c: Likewise.
51958         * lib/unistr/u16-strrchr.c: Likewise.
51959         * lib/striconveh.c: Update.
51960         * lib/linebreak.c: Update.
51961
51962 2007-03-24  Bruno Haible  <bruno@clisp.org>
51963
51964         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51965         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51966
51967 2007-03-22  Bruno Haible  <bruno@clisp.org>
51968
51969         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51970
51971 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51972
51973         * MODULES.html.sh (File system functions): New module write-any-file.
51974         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51975         * m4/write-any-file.m4: New files.
51976
51977 2007-03-23  Eric Blake  <ebb9@byu.net>
51978
51979         * gnulib-tool: Rearrange space-tab sequences, since some editors
51980         like to eat them.
51981
51982 2007-03-23  Eric Blake  <ebb9@byu.net>
51983
51984         * lib/version-etc.c (version_etc_va): Update license wording to
51985         be more concise.  Recommended by Richard Stallman.
51986
51987 2007-03-22  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/poll.c (MSG_PEEK): New fallback definition.
51990
51991 2007-03-22  Bruno Haible  <bruno@clisp.org>
51992
51993         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51994         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51995         (main): Update.
51996         Fixes a compilation error on BeOS.
51997
51998 2007-03-22  Bruno Haible  <bruno@clisp.org>
51999
52000         * modules/frexpl-tests: New file.
52001         * tests/test-frexpl.c: New file.
52002
52003         * modules/frexpl: New file.
52004         * m4/frexpl.m4: New file.
52005         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52006         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52008         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52009         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52010         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52011
52012 2007-03-22  Bruno Haible  <bruno@clisp.org>
52013
52014         * lib/frexpl.c: Share code with lib/frexp.c.
52015         * modules/mathl (Files): Add lib/frexp.c.
52016         (Depends-on): Add isnanl-nolibm.
52017
52018 2007-03-22  Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/printf-frexp (Files): Add m4/frexp.m4.
52021         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52022         only if the found frexp function actually works.
52023
52024 2007-03-22  Bruno Haible  <bruno@clisp.org>
52025
52026         * lib/frexp.c: Remove older implementation that uses divisions.
52027
52028 2007-03-21  Bruno Haible  <bruno@clisp.org>
52029
52030         * modules/frexp-tests: New file.
52031         * tests/test-frexp.c: New file.
52032
52033         * modules/frexp: New file.
52034         * lib/frexp.c: New file.
52035         * m4/frexp.m4: New file.
52036         * lib/math_.h (frexp): New declaration.
52037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52038         REPLACE_FREXP.
52039         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52040
52041 2007-03-21  Bruno Haible  <bruno@clisp.org>
52042
52043         * modules/isnanl-tests: New file.
52044         * tests/test-isnanl.c: New file.
52045
52046         * modules/isnanl: New file.
52047         * lib/isnanl.h: New file.
52048         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52049         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52050         gl_FUNC_ISNANL_WORKS.
52051         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52052         New macros.
52053
52054 2007-03-21  Bruno Haible  <bruno@clisp.org>
52055
52056         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52057         lib/isnanl.h.
52058         (Include): Update.
52059         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52060         * lib/vasnprintf.c: Update.
52061         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52062         tests/test-isnanl.h, remove tests/test-isnanl.c.
52063         (Makefile.am): Update.
52064         * tests/test-isnanl-nolibm.c: New file.
52065         * tests/test-isnanl.h: New file.
52066         * tests/test-isnanl.c: Remove file.
52067
52068 2007-03-21  Jim Meyering  <jim@meyering.net>
52069
52070         When trying to open ".", treat ESTALE like EACCES.
52071         * lib/savewd.c (savewd_save): Resort to forking not just upon
52072         failure with EACCES, but also when errno is ESTALE.
52073
52074 2007-03-20  Bruno Haible  <bruno@clisp.org>
52075
52076         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52077         Needed on AIX 5.1. Reported by Matthew Woehlke.
52078
52079 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52080
52081         Suggestions by Bruno Haible:
52082         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52083         our own.
52084         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52085         * modules/acl (Depends-on): Add gettext.
52086
52087 2007-03-19  Bruno Haible  <bruno@clisp.org>
52088
52089         * modules/iconvme: Remove file.
52090         * lib/iconvme.h: Remove file.
52091         * lib/iconvme.c: Remove file.
52092         * m4/iconvme.m4: Remove file.
52093
52094 2007-03-19  Bruno Haible  <bruno@clisp.org>
52095
52096         * doc/relocatable-maint.texi: Break long shell script line.
52097         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52098
52099 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52100
52101         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52102         handle file_has_acl.
52103         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52104         * lib/acl.c: Move header inclusions and related macro defns into
52105         lib/acl-internal.h.
52106         (S_ISLNK): Remove defn, since that's now done for us.
52107         (file_has_acl): Move to lib/file-has-acl.c.
52108         Call acl_trivial if available.  This is the crucial part of the fix.
52109         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52110         shared within the library.  Rewrite a bit, partly to make it compatible
52111         with the GNU coding style.
52112         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52113         Remove unnecessary double-quotes.
52114         Don't test for acl_to_text; the build will catch that.
52115         Replace acl_entries if it doesn't exist and it is needed.
52116         Check for -lsec and acl_trivial (as used on Solaris 10).
52117         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52118         lib/file-has-acl.c.
52119         (Depends-on): Add sys_stat, for S_ISLNK.
52120
52121 2007-03-19  Ben Pfaff  <blp@gnu.org>
52122
52123         * doc/gnulib.texi: Fix typos.
52124         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52125
52126 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52127
52128         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52129         If size is zero here, buf must be zero.
52130
52131 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52132
52133         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52134         <bruno@clisp.org>.
52135
52136 2007-03-18  Bruno Haible  <bruno@clisp.org>
52137
52138         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52139         Suggested by Eric Blake.
52140
52141 2007-03-18  Ben Pfaff  <blp@gnu.org>
52142
52143         * doc/relocatable.texi: Recommend using as prefix a directory
52144         that does not exist and will never be created.  Based on
52145         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52146         and others.
52147
52148 2007-03-17  Bruno Haible  <bruno@clisp.org>
52149
52150         * lib/fchownat.c: Include lchown.h.
52151
52152 2007-03-17  Bruno Haible  <bruno@clisp.org>
52153
52154         Fix endless loop when the given allocated size was > INT_MAX.
52155         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52156         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52157         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52158         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52159         * lib/sprintf.c (sprintf): Likewise.
52160
52161 2007-03-17  Bruno Haible  <bruno@clisp.org>
52162
52163         * tests/test-argp-2.sh (func_compare): Output a context diff.
52164
52165 2007-03-17  Bruno Haible  <bruno@clisp.org>
52166
52167         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52168         locale's decimal-point character.
52169
52170 2007-03-17  Bruno Haible  <bruno@clisp.org>
52171
52172         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52173         before comparing it. Needed because on some platforms (e.g. x86) a
52174         'long double' occupies less bytes than sizeof (long double).
52175
52176 2007-03-17  Bruno Haible  <bruno@clisp.org>
52177
52178         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52179         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52180         * tests/test-getaddrinfo.c (simple): Likewise.
52181         * tests/test-read-file.c (main): Likewise.
52182
52183 2007-03-17  Bruno Haible  <bruno@clisp.org>
52184
52185         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52186
52187 2007-03-17  Bruno Haible  <bruno@clisp.org>
52188
52189         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52190         unused variable.
52191
52192 2007-03-17  Bruno Haible  <bruno@clisp.org>
52193
52194         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52195         * tests/test-c-strncasecmp.c: Likewise.
52196
52197 2007-03-17  Bruno Haible  <bruno@clisp.org>
52198
52199         * modules/stdlib (Depends-on): Add unistd.
52200         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52201         Needed for MacOS X 10.3.
52202
52203 2007-03-17  Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52206
52207 2007-03-17  Bruno Haible  <bruno@clisp.org>
52208
52209         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52210
52211 2007-03-17  Bruno Haible  <bruno@clisp.org>
52212
52213         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52214         to reflect files copied from gnulib (with or without modifications).
52215         Suggested by Jim Meyering.
52216
52217 2007-03-17  Eric Blake  <ebb9@byu.net>
52218
52219         * NEWS: Document stdlib change from 2007-02-18.
52220
52221 2007-03-17  Jim Meyering  <jim@meyering.net>
52222
52223         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52224         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52225         someone uses a name containing shell meta-characters.
52226         Reported by Alfred M. Szmidt.
52227
52228         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52229
52230 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52231
52232         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52233         and copy gettext configuration files only if configure.ac contains
52234         a use of AM_GNU_GETTEXT_VERSION.
52235
52236 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52237
52238         * build-aux/bootstrap (gnulib_name): New variable.
52239         (gnulib_tool_options): Use it.
52240
52241 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52242
52243         * tests/test-des.c: Use new namespace.
52244
52245 2007-03-15  Bruno Haible  <bruno@clisp.org>
52246
52247         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52248         Reported by James Youngman <jay@gnu.org>.
52249
52250 2007-03-15  Bruno Haible  <bruno@clisp.org>
52251
52252         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52253         declared prototype. Needed with cc on OSF/1 5.1.
52254
52255 2007-03-15  Bruno Haible  <bruno@clisp.org>
52256
52257         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52258         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52259         (struct gl_list_implementation): Add dispose_fn argument to the
52260         'create_empty', 'create' methods.
52261         (struct gl_list_impl_base): Add field 'dispose_fn'.
52262         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52263         argument.
52264         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52265         dispose_fn argument.
52266         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52267         dispose_fn on the dropped values.
52268         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52269         dispose_fn argument.
52270         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52271         dropped values.
52272         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52273         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52274         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52275         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52276         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52277         argument.
52278         (gl_tree_list_free): Call dispose_fn on the dropped values.
52279         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52280         the dropped values.
52281         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52282         Add dispose_fn argument.
52283         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52284         Call dispose_fn on the dropped values.
52285         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52286         Add dispose_fn argument.
52287         (gl_sublist_create): Initialize the 'dispose_fn' field.
52288         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52289         * tests/test-array_list.c (main): Update.
52290         * tests/test-carray_list.c (main): Update.
52291         * tests/test-avltree_list.c (main): Update.
52292         * tests/test-rbtree_list.c (main): Update.
52293         * tests/test-avltreehash_list.c (main): Update.
52294         * tests/test-rbtreehash_list.c (main): Update.
52295         * tests/test-linked_list.c (main): Update.
52296         * tests/test-linkedhash_list.c (main): Update.
52297         * tests/test-array_oset.c (main): Update.
52298
52299 2007-03-15  Bruno Haible  <bruno@clisp.org>
52300
52301         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52302         (gl_oset_create_empty): Add dispose_fn argument.
52303         (struct gl_oset_implementation): Add dispose_fn argument to
52304         'create_empty' method.
52305         (struct gl_oset_impl_base): Add dispose_fn field.
52306         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52307         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52308         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52309         values.
52310         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52311         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52312         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52313         dropped value.
52314         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52315         dropped value.
52316         * tests/test-array_oset.c (main): Update.
52317         * tests/test-avltree_oset.c (main): Update.
52318         * tests/test-rbtree_oset.c (main): Update.
52319         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52320
52321 2007-03-13  Bruno Haible  <bruno@clisp.org>
52322
52323         * tests/test-stdbool.c (i): Update after last patch.
52324
52325 2007-03-12  Bruno Haible  <bruno@clisp.org>
52326
52327         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52328         the iswprint macro. Needed on Solaris 2.5.1.
52329
52330 2007-03-12  Bruno Haible  <bruno@clisp.org>
52331
52332         * tests/test-printf-frexp.c (main): Declare x as volatile.
52333
52334 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52335
52336         * doc/gnulib.texi (Build robot for gnulib): New section.
52337
52338 2007-03-12  Jim Meyering  <jim@meyering.net>
52339
52340         * build-aux/bootstrap: New file.
52341         * build-aux/bootstrap.conf: New file, from coreutils.
52342
52343 2007-03-11  Bruno Haible  <bruno@clisp.org>
52344
52345         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52346
52347 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52348
52349         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52350         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52351         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52352
52353 2007-03-11  Bruno Haible  <bruno@clisp.org>
52354
52355         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52356         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52357
52358 2007-03-11  Bruno Haible  <bruno@clisp.org>
52359
52360         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52361         formula. Needed for SunPRO C 5.0.
52362
52363 2007-03-11  Bruno Haible  <bruno@clisp.org>
52364
52365         * modules/long-options (Depends-on): Add getopt.
52366
52367 2007-03-11  Bruno Haible  <bruno@clisp.org>
52368
52369         * modules/modechange (Depends-on): Add stdbool.
52370
52371 2007-03-11  Bruno Haible  <bruno@clisp.org>
52372
52373         * modules/i-ring (Depends-on): Add stdbool.
52374
52375 2007-03-11  Bruno Haible  <bruno@clisp.org>
52376
52377         * modules/gc-des (Depends-on): Add stdbool.
52378
52379 2007-03-11  Bruno Haible  <bruno@clisp.org>
52380
52381         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52382
52383 2007-03-11  Bruno Haible  <bruno@clisp.org>
52384
52385         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52386
52387 2007-03-11  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52390
52391 2007-03-11  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/vasnprintf.c (sprintf): Undefine.
52394
52395 2007-03-11  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52398         initializers in SunPRO C and Compaq C compilers.
52399
52400 2007-03-11  Bruno Haible  <bruno@clisp.org>
52401
52402         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52403         decrementing code ANSI C compliant.
52404
52405 2007-03-11  Bruno Haible  <bruno@clisp.org>
52406
52407         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52408         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52409
52410 2007-03-11  Bruno Haible  <bruno@clisp.org>
52411
52412         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52413         <stdbool.h> substitute doesn't pass.
52414
52415 2007-03-11  Bruno Haible  <bruno@clisp.org>
52416
52417         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52418
52419 2007-03-11  Bruno Haible  <bruno@clisp.org>
52420
52421         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52422         script, for submission to autobuild.josefsson.org.
52423
52424 2007-03-10  Bruno Haible  <bruno@clisp.org>
52425
52426         * modules/canonicalize-lgpl-tests: New file.
52427         * tests/test-canonicalize-lgpl.sh: New file.
52428         * tests/test-canonicalize-lgpl.c: New file.
52429
52430         * modules/c-strcase-tests: New file.
52431         * tests/test-c-strcase.sh: New file.
52432         * tests/test-c-strcasecmp.c: New file.
52433         * tests/test-c-strncasecmp.c: New file.
52434
52435         * modules/atexit-tests: New file.
52436         * tests/test-atexit.sh: New file.
52437         * tests/test-atexit.c: New file.
52438
52439 2007-03-10  Bruno Haible  <bruno@clisp.org>
52440
52441         * tests/test-binary-io.sh: Use temporary filenames that are not so
52442         likely to clash with those of other tests (in a parallel make).
52443         * tests/test-binary-io.c: Likewise.
52444
52445 2007-03-10  Bruno Haible  <bruno@clisp.org>
52446
52447         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52448         fallback; use #error instead.
52449         Suggested by Simon Josefsson.
52450
52451 2007-03-10  Bruno Haible  <bruno@clisp.org>
52452
52453         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52454         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52455         first and the last.
52456
52457 2007-03-10  Bruno Haible  <bruno@clisp.org>
52458
52459         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52460
52461 2007-03-10  Bruno Haible  <bruno@clisp.org>
52462
52463         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52464         "make distcheck".
52465         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52466         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52467         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52468
52469 2007-03-10  Bruno Haible  <bruno@clisp.org>
52470
52471         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52472         variable.
52473         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52474         variable.
52475
52476 2007-03-09  Eric Blake  <ebb9@byu.net>
52477         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52478
52479         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52480         types are not being provided by gnulib.
52481         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52482         types are supported.
52483
52484 2007-03-10  Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/stdio_.h (__attribute__): New macro.
52487         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52488         vsprintf): Specify __attribute__ __format__ for GCC.
52489         Suggested by Eric Blake.
52490
52491 2007-03-09  Bruno Haible  <bruno@clisp.org>
52492
52493         * modules/printf-posix-tests: New file.
52494         * tests/test-printf-posix.sh: New file.
52495         * tests/test-printf-posix.c: New file.
52496
52497         * modules/printf-posix: New file.
52498         * lib/printf.c: New file.
52499         * m4/printf-posix-rpl.m4: New file.
52500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52501         REPLACE_PRINTF.
52502         * lib/stdio_.h (printf): New declaration.
52503         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52504         ____strfmon____): New macros.
52505         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52506         REPLACE_PRINTF.
52507
52508 2007-03-09  Bruno Haible  <bruno@clisp.org>
52509
52510         * tests/test-vasnprintf-posix2.sh: New file.
52511         * tests/test-vasnprintf-posix2.c: New file.
52512         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52513         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52514         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52515
52516         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52517         a locale dependent decimal point, rather than always '.'.
52518
52519 2007-03-09  Eric Blake  <ebb9@byu.net>
52520
52521         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52522         spite of platforms like Tandem/NSK that define it to -1.
52523
52524 2007-03-08  Bruno Haible  <bruno@clisp.org>
52525
52526         * modules/vprintf-posix-tests: New file.
52527         * tests/test-vprintf-posix.sh: New file.
52528         * tests/test-vprintf-posix.c: New file.
52529         * tests/test-printf-posix.h: New file.
52530
52531         * modules/vprintf-posix: New file.
52532         * lib/vprintf.c: New file.
52533         * m4/vprintf-posix.m4: New file.
52534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52535         REPLACE_VPRINTF.
52536         * lib/stdio_.h (vprintf): New declaration.
52537         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52538         REPLACE_VPRINTF.
52539
52540 2007-03-08  Bruno Haible  <bruno@clisp.org>
52541
52542         * modules/fprintf-posix-tests: New file.
52543         * tests/test-fprintf-posix.sh: New file.
52544         * tests/test-fprintf-posix.c: New file.
52545
52546         * modules/fprintf-posix: New file.
52547         * lib/fprintf.c: New file.
52548         * m4/fprintf-posix.m4: New file.
52549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52550         REPLACE_FPRINTF.
52551         * lib/stdio_.h (fprintf): New declaration.
52552         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52553         REPLACE_FPRINTF.
52554
52555 2007-03-08  Bruno Haible  <bruno@clisp.org>
52556
52557         * modules/vfprintf-posix-tests: New file.
52558         * tests/test-vfprintf-posix.sh: New file.
52559         * tests/test-vfprintf-posix.c: New file.
52560         * tests/test-fprintf-posix.h: New file.
52561         * tests/test-fprintf-posix.out: New file.
52562
52563         * modules/vfprintf-posix: New file.
52564         * lib/vfprintf.c: New file.
52565         * m4/vfprintf-posix.m4: New file.
52566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52567         REPLACE_VFPRINTF.
52568         * lib/stdio_.h (vfprintf): New declaration.
52569         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52570         REPLACE_VFPRINTF.
52571
52572 2007-03-08  Bruno Haible  <bruno@clisp.org>
52573
52574         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52575
52576 2007-03-08  Bruno Haible  <bruno@clisp.org>
52577
52578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52579         instead of 'expr' invocations.
52580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52581         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52582         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52583         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52584         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52585         Suggested by Paul Eggert.
52586
52587 2007-03-08  Bruno Haible  <bruno@clisp.org>
52588
52589         * modules/fseterr-tests: New file.
52590         * tests/test-fseterr.c: New file.
52591
52592         * modules/fseterr: New file.
52593         * lib/fseterr.h: New file.
52594         * lib/fseterr.c: New file.
52595
52596 2007-03-08  Bruno Haible  <bruno@clisp.org>
52597
52598         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52599         * lib/getopt_.h: Likewise.
52600         * lib/mbswidth.h: Likewise.
52601         * lib/setenv.h: Likewise.
52602         * lib/vasnprintf.h: Likewise.
52603         * lib/vasprintf.h: Likewise.
52604         * lib/verror.h: Likewise.
52605         * lib/xsetenv.h: Likewise.
52606         * lib/xvasprintf.h: Likewise.
52607
52608 2007-03-08  Jim Meyering  <jim@meyering.net>
52609
52610         * users.txt: Add parted.
52611
52612         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52613
52614 2007-03-07  Bruno Haible  <bruno@clisp.org>
52615
52616         * m4/printf.m4: Make the shell script snippets copy&pastable.
52617
52618 2007-03-02  Bruno Haible  <bruno@clisp.org>
52619
52620         * lib/netinet_in_.h: New file.
52621         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52622         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52623         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52624         (Depends-on): Add absolute-header.
52625         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52626         into netinet/in.h.
52627
52628 2007-03-03  Bruno Haible  <bruno@clisp.org>
52629
52630         * lib/sys_select_.h: New file.
52631         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52632         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52633         * modules/sys_select (Files): Add lib/sys_select_.h.
52634         (Depends-on): Add absolute-header.
52635         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52636         into sys/select.h.
52637
52638 2007-03-02  Bruno Haible  <bruno@clisp.org>
52639
52640         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52641         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52642         values.
52643         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52644         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52645         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52646         * modules/sys_socket (Depends-on): Add absolute-header.
52647         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52648         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52649         (Include): Remove requirement of inclusion of <sys/types.h>.
52650
52651 2007-03-02  Bruno Haible  <bruno@clisp.org>
52652
52653         * lib/byteswap_.h (bswap_32): Fix formula.
52654
52655 2007-03-06  Bruno Haible  <bruno@clisp.org>
52656
52657         * modules/sprintf-posix-tests: New file.
52658         * tests/test-sprintf-posix.c: New file.
52659
52660         * modules/sprintf-posix: New file.
52661         * lib/sprintf.c: New file.
52662         * m4/sprintf-posix.m4: New file.
52663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52664         REPLACE_SPRINTF.
52665         * lib/stdio_.h (sprintf): New declaration.
52666         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52667         REPLACE_SPRINTF.
52668
52669 2007-03-06  Bruno Haible  <bruno@clisp.org>
52670
52671         * modules/vsprintf-posix-tests: New file.
52672         * tests/test-vsprintf-posix.c: New file.
52673         * tests/test-sprintf-posix.h: New file.
52674
52675         * modules/vsprintf-posix: New file.
52676         * lib/vsprintf.c: New file.
52677         * m4/vsprintf-posix.m4: New file.
52678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52679         REPLACE_VSPRINTF.
52680         * lib/stdio_.h (vsprintf): New declaration.
52681         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52682         REPLACE_VSPRINTF.
52683
52684 2007-03-06  Bruno Haible  <bruno@clisp.org>
52685
52686         * modules/vsnprintf (Depend-on): Remove minmax.
52687
52688 2007-03-06  Bruno Haible  <bruno@clisp.org>
52689
52690         * modules/snprintf-posix-tests: New file.
52691         * tests/test-snprintf-posix.c: New file.
52692
52693         * modules/snprintf-posix: New file.
52694         * m4/snprintf-posix.m4: New file.
52695         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52696         gl_FUNC_SNPRINTF.
52697         (gl_FUNC_SNPRINTF): Invoke it.
52698         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52699         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52700         is set.
52701         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52702
52703 2007-03-06  Bruno Haible  <bruno@clisp.org>
52704
52705         * modules/vsnprintf-posix-tests: New file.
52706         * tests/test-vsnprintf-posix.c: New file.
52707         * tests/test-snprintf-posix.h: New file.
52708
52709         * modules/vsnprintf-posix: New file.
52710         * m4/vsnprintf-posix.m4: New file.
52711         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52712         gl_FUNC_VSNPRINTF.
52713         (gl_FUNC_VSNPRINTF): Invoke it.
52714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52715         * lib/stdio_.h (vsnprintf): Define as a replacement if
52716         REPLACE_VSNPRINTF is set.
52717         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52718
52719 2007-03-06  Bruno Haible  <bruno@clisp.org>
52720
52721         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52722         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52723
52724 2007-03-06  Bruno Haible  <bruno@clisp.org>
52725
52726         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52727         (asinl): Declare also if HAVE_DECL_ASINL is set.
52728         (atanl): Declare also if HAVE_DECL_ATANL is set.
52729         (ceill): Declare also if HAVE_DECL_CEILL is set.
52730         (cosl): Declare also if HAVE_DECL_COSL is set.
52731         (expl): Declare also if HAVE_DECL_EXPL is set.
52732         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52733         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52734         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52735         (logl): Declare also if HAVE_DECL_LOGL is set.
52736         (sinl): Declare also if HAVE_DECL_SINL is set.
52737         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52738         (tanl): Declare also if HAVE_DECL_TANL is set.
52739         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52741         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52742         declaration of frexpl, ldexpl.
52743         * modules/printf-frexpl (Depends-on): Add math.
52744         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52745
52746 2007-03-05  Bruno Haible  <bruno@clisp.org>
52747
52748         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52749         frexpl and ldexpl are declared.
52750         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52751
52752 2007-03-05  Bruno Haible  <bruno@clisp.org>
52753
52754         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52755         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52756
52757 2007-03-05  Bruno Haible  <bruno@clisp.org>
52758
52759         * lib/stdio_.h: Include <stddef.h>.
52760
52761 2007-03-05  Bruno Haible  <bruno@clisp.org>
52762
52763         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52764
52765 2007-03-05  Bruno Haible  <bruno@clisp.org>
52766
52767         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52768         NetBSD 4, from Ralf Wildenhues.
52769
52770 2007-03-04  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/vasprintf.h: Update #if logic for the case when the functions
52773         exist but are overridden.
52774
52775 2007-03-04  Bruno Haible  <bruno@clisp.org>
52776
52777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52778         implementations: glibc-2.4 and MacOS X 10.3.
52779         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52780         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52781         * tests/test-vasprintf-posix.c (test_function): Likewise.
52782
52783 2007-03-04  Bruno Haible  <bruno@clisp.org>
52784
52785         * modules/vasprintf-posix-tests: New file.
52786         * tests/test-vasprintf-posix.c: New file.
52787
52788         * modules/vasprintf-posix: New file.
52789         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52790         defined.
52791         * m4/vasprintf-posix.m4: New file.
52792         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52793         gl_FUNC_VASPRINTF.
52794         (gl_FUNC_VASPRINTF): Invoke it.
52795         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52796         here.
52797         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52798
52799 2007-03-04  Bruno Haible  <bruno@clisp.org>
52800
52801         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52802         REPLACE_GETTIMEOFDAY.
52803         * modules/sys_time (Makefile.am): Likewise.
52804         * m4/sys_time_h.m4: Likewise.
52805         * m4/gettimeofday.m4: Likewise.
52806
52807 2007-03-04  Bruno Haible  <bruno@clisp.org>
52808
52809         * modules/vasnprintf-posix-tests: New file.
52810         * tests/test-vasnprintf-posix.c: New file.
52811
52812         * modules/vasnprintf-posix: New file.
52813         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52814         printf-frexpl.h.
52815         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52816         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52817         REPLACE_VASNPRINTF is defined.
52818         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52819         gl_FUNC_VASNPRINTF.
52820         (gl_FUNC_VASNPRINTF): Invoke it.
52821         * m4/vasnprintf-posix.m4: New file.
52822         * m4/printf.m4: New file.
52823
52824 2007-03-04  Bruno Haible  <bruno@clisp.org>
52825
52826         Compile progreloc.c only if --enable-relocatable is specified.
52827         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52828         if --enable-relocatable was specified.
52829         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52830         lib_SOURCES.
52831
52832 2007-03-04  Jim Meyering  <jim@meyering.net>
52833
52834         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52835         Use it consistently, rather than enumerating errno constants.
52836
52837 2007-03-04  Bruno Haible  <bruno@clisp.org>
52838
52839         * modules/xvasprintf-tests: New file.
52840         * tests/test-xvasprintf.c: New file.
52841
52842         * modules/vasprintf-tests: New file.
52843         * tests/test-vasprintf.c: New file.
52844
52845         * modules/vasnprintf-tests: New file.
52846         * tests/test-vasnprintf.c: New file.
52847
52848         * modules/vsnprintf-tests: New file.
52849         * tests/test-vsnprintf.c: New file.
52850
52851         * modules/snprintf-tests: New file.
52852         * tests/test-snprintf.c: New file.
52853
52854 2007-03-04  Bruno Haible  <bruno@clisp.org>
52855
52856         Compile relocatable.c only if --enable-relocatable is specified.
52857         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52858         gl_RELOCATABLE_LIBRARY.
52859         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52860         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52861         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52862         gl_RELOCATABLE_LIBRARY.
52863         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52864         (Makefile.am): Remove lib_SOURCES.
52865         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52866         gl_RELOCATABLE_LIBRARY.
52867         (Makefile.am): Remove lib_SOURCES.
52868         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52869         always.
52870         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52871         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52872
52873 2007-03-04  Bruno Haible  <bruno@clisp.org>
52874
52875         * modules/argmatch-tests: New file.
52876         * tests/test-argmatch.c: New file.
52877
52878         * tests/test-allocsa.c (main): Halve the number of loop runs.
52879
52880         * modules/alloca-opt-tests: New file.
52881         * tests/test-alloca-opt.c: New file.
52882
52883 2007-03-04  Jim Meyering  <jim@meyering.net>
52884
52885         Work around difference between Linux ACLs and Solaris 10 ZFS.
52886         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52887         for EINVAL.
52888
52889 2007-03-03  Bruno Haible  <bruno@clisp.org>
52890
52891         * modules/relocatable-prog (Depends-on): Add back progreloc's
52892         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52893
52894 2007-03-03  Bruno Haible  <bruno@clisp.org>
52895
52896         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52897         * modules/relocatable-lib: New file.
52898
52899 2007-03-03  Bruno Haible  <bruno@clisp.org>
52900
52901         * modules/relocatable-prog: Renamed from modules/relocatable.
52902         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52903
52904 2007-03-03  Bruno Haible  <bruno@clisp.org>
52905
52906         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52907         m4/relocatable-lib.m4.
52908         (Depends-on): Remove 'relocatable'.
52909         (configure.ac): Add gl_RELOCATABLE_NOP.
52910
52911 2007-03-03  Bruno Haible  <bruno@clisp.org>
52912
52913         * modules/relocatable-prog-wrapper: New file.
52914         * modules/relocatable (Depends-on): Add it. Remove all other
52915         dependencies except progname.
52916         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52917
52918         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52919         (gl_FUNC_STRERROR): Nop.
52920         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52921
52922         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52923         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52924
52925         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52926         (gl_FUNC_READLINK): Update.
52927
52928         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52929
52930 2007-03-03  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52933         * modules/xreadlink (Depends-on): Add unistd.
52934         * modules/xreadlink-with-size (Depends-on): Likewise.
52935
52936 2007-03-03  Bruno Haible  <bruno@clisp.org>
52937
52938         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52939         extracted from gt_FUNC_SETENV.
52940         (gt_FUNC_SETENV): Remove macro.
52941         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52942         remove gt_FUNC_SETENV.
52943
52944 2007-03-03  Bruno Haible  <bruno@clisp.org>
52945
52946         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52947         ENABLE_RELOCATABLE here.
52948         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52949
52950 2007-03-03  Bruno Haible  <bruno@clisp.org>
52951
52952         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52953         * tests/test-rbtreehash_list.c: Include progname.h.
52954         (main): Call set_program_name.
52955
52956         * modules/rbtree-oset-tests (Depends-on): Add progname.
52957         * tests/test-rbtree_oset.c: Include progname.h.
52958         (main): Call set_program_name.
52959
52960         * modules/rbtree-list-tests (Depends-on): Add progname.
52961         * tests/test-rbtree_list.c: Include progname.h.
52962         (main): Call set_program_name.
52963
52964         * modules/linked-list-tests (Depends-on): Add progname.
52965         * tests/test-linked_list.c: Include progname.h.
52966         (main): Call set_program_name.
52967
52968 2007-03-03  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52971         All uses of __restrict changed to _Restrict_.
52972         * lib/glob_.h (__restrict): Remove macro.
52973
52974 2007-03-02  Bruno Haible  <bruno@clisp.org>
52975
52976         * modules/gettext (configure.ac): Require gettext infrastructure
52977         from version 0.16.1.
52978
52979 2007-03-02  Bruno Haible  <bruno@clisp.org>
52980
52981         * modules/linkedhash-list-tests (Depends-on): Add progname.
52982         * tests/test-linkedhash_list.c: Include progname.h.
52983         (main): Call set_program_name.
52984
52985         * modules/carray-list-tests (Depends-on): Add progname.
52986         * tests/test-carray_list.c: Include progname.h.
52987         (main): Call set_program_name.
52988
52989         * modules/avltreehash-list-tests (Depends-on): Add progname.
52990         * tests/test-avltreehash_list.c: Include progname.h.
52991         (main): Call set_program_name.
52992
52993         * modules/avltree-oset-tests (Depends-on): Add progname.
52994         * tests/test-avltree_oset.c: Include progname.h.
52995         (main): Call set_program_name.
52996
52997         * modules/avltree-list-tests (Depends-on): Add progname.
52998         * tests/test-avltree_list.c: Include progname.h.
52999         (main): Call set_program_name.
53000
53001         * modules/array-oset-tests (Depends-on): Add progname.
53002         * tests/test-array_oset.c: Include progname.h.
53003         (main): Call set_program_name.
53004
53005         * modules/array-list-tests (Depends-on): Add progname.
53006         * tests/test-array_list.c: Include progname.h.
53007         (main): Call set_program_name.
53008
53009         * modules/argp-tests (Depends-on): Add progname.
53010         * tests/test-argp.c: Include argp.h first. Include progname.h.
53011         (main): Call set_program_name.
53012
53013 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * doc/gnulib-tool.texi (Initial import): Reword description of
53016         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53017         limited effect even if defined after the first system include.
53018
53019 2007-03-01  Bruno Haible  <bruno@clisp.org>
53020
53021         * build-aux/config.libpath: Update to libtool-1.5.22.
53022         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53023
53024 2007-03-01  Bruno Haible  <bruno@clisp.org>
53025
53026         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53027         foo_CFLAGS.
53028         Reported by Ralf Wildenhues.
53029
53030 2007-03-01  Bruno Haible  <bruno@clisp.org>
53031
53032         * build-aux/install-reloc: Remove object files left over by some
53033         compilers.
53034         Reported by Ralf Wildenhues.
53035
53036 2007-03-01  Bruno Haible  <bruno@clisp.org>
53037
53038         * build-aux/install-reloc: Break long lines.
53039
53040 2007-03-01  Bruno Haible  <bruno@clisp.org>
53041
53042         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53043         Reported by Ralf Wildenhues.
53044
53045 2007-03-01  Bruno Haible  <bruno@clisp.org>
53046
53047         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53048         include ordering constraints.
53049
53050 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53051
53052         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53054         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53055         as another example.
53056         * lib/time_.h: Fix misspelling.
53057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53058         Require gl_HEADER_TIME_H_DEFAULTS.
53059         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53060         * m4/time_r.m4 (gl_TIME_R): Likewise.
53061         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53062
53063 2007-03-01  Bruno Haible  <bruno@clisp.org>
53064
53065         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53066         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53067
53068 2007-03-01  Jim Meyering  <jim@meyering.net>
53069
53070         * modules/xreadlink (Maintainer): Add my name.
53071         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53072
53073 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53074             Bruno Haible  <bruno@clisp.org>
53075
53076         * build-aux/install-reloc: Compile also c-ctype.c.
53077         * build-aux/relocatable.sh.in: New file.
53078         * doc/relocatable.texi: New file.
53079         * doc/relocatable-maint.texi: New file.
53080         * doc/gnulib.texi: Include relocatable-maint.texi.
53081         * lib/progreloc.c: Include unistd.h unconditionally.
53082         * lib/relocwrapper.c: Include unistd.h unconditionally.
53083         Include c-ctype.h.
53084         (add_dotbin): Use c_tolower.
53085         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53086         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53087         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53088         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53089         to m4/relocatable-lib.m4.
53090         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53091         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53092         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53093         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53094         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53095         * modules/relocatable: New file.
53096         * modules/relocatable-lib: New file.
53097         * modules/relocatable-script: New file.
53098
53099 2007-02-28  Bruno Haible  <bruno@clisp.org>
53100
53101         Import --enable-relocatable infrastructure.
53102         * build-aux/config.libpath: New file, from GNU gettext.
53103         * build-aux/install-reloc: New file, from GNU gettext.
53104         * build-aux/reloc-ldflags: New file, from GNU gettext.
53105         * lib/relocatable.h: New file, from GNU gettext.
53106         * lib/relocatable.c: New file, from GNU gettext.
53107         * lib/relocwrapper.c: New file, from GNU gettext.
53108         * m4/relocatable.m4: New file, from GNU gettext.
53109
53110 2007-02-28  Bruno Haible  <bruno@clisp.org>
53111
53112         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53113
53114         * modules/xreadlink: New file, from GNU gettext with modifications.
53115         * lib/xreadlink.c: New file, from GNU gettext.
53116         * lib/xreadlink.h: Add comments.
53117         (xreadlink): New declaration.
53118
53119         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53120         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53121         lib/xreadlink-with-size.c.
53122         (configure.ac): Remove gl_XREADLINK invocation.
53123         (Makefile.am): Augment lib_SOURCES.
53124         * m4/xreadlink.m4: Remove file.
53125         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53126         (xreadlink_with_size): Renamed from xreadink.
53127         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53128         * modules/canonicalize (Depends-on): Replace xreadlink with
53129         xreadlink-with-size.
53130         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53131
53132 2007-02-25  Jim Meyering  <jim@meyering.net>
53133
53134         * build-aux/announce-gen: When complaining about excess arguments,
53135         list them.
53136
53137 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53138
53139         * README: Document signed integer overflow situation more
53140         accurately.
53141
53142 2007-02-25  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53145         'a' or 'A' conversion.
53146
53147 2007-02-25  Bruno Haible  <bruno@clisp.org>
53148
53149         * modules/filename: Renamed from modules/pathname.
53150         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53151         lib/concatpath.c with lib/concat-filename.c.
53152         (Makefile.am): Update.
53153         (Include): Replace pathname.h with filename.h.
53154         * lib/filename.h: Renamed from lib/pathname.h.
53155         (concatenated_filename): Renamed from concatenated_pathname.
53156         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53157         (concatenated_filename): Renamed from concatenated_pathname.
53158         * lib/findprog.c: Include filename.h instead of pathname.h.
53159         (find_in_path): Update.
53160         * lib/javacomp.c: Include filename.h instead of pathname.h.
53161         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53162         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53163         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53164         is_oldgcj_14_13_usable, is_javac_usable): Update.
53165         * lib/javaexec.c: Include filename.h instead of pathname.h.
53166         (execute_java_class): Update.
53167         * modules/findprog: Update.
53168         * modules/javacomp: Update.
53169         * modules/javaexec: Update.
53170         * MODULES.html.sh (File system functions): Add 'filename', remove
53171         'pathname'.
53172
53173 2007-02-25  Bruno Haible  <bruno@clisp.org>
53174
53175         * modules/printf-frexpl-tests: New file.
53176         * tests/test-printf-frexpl.c: New file.
53177
53178         * modules/printf-frexpl: New file.
53179         * lib/printf-frexpl.h: New file.
53180         * lib/printf-frexpl.c: New file.
53181         * m4/printf-frexpl.m4: New file.
53182
53183 2007-02-25  Bruno Haible  <bruno@clisp.org>
53184
53185         * modules/printf-frexp-tests: New file.
53186         * tests/test-printf-frexp.c: New file.
53187
53188         * modules/printf-frexp: New file.
53189         * lib/printf-frexp.h: New file.
53190         * lib/printf-frexp.c: New file.
53191         * m4/printf-frexp.m4: New file.
53192
53193 2007-02-25  Bruno Haible  <bruno@clisp.org>
53194
53195         Assume automake >= 1.10 for the tests.
53196         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53197         * modules/arctwo-tests: Likewise.
53198         * modules/argp-tests: Likewise.
53199         * modules/avltree-list-tests: Likewise.
53200         * modules/avltree-oset-tests: Likewise.
53201         * modules/avltreehash-list-tests: Likewise.
53202         * modules/carray-list-tests: Likewise.
53203         * modules/crc-tests: Likewise.
53204         * modules/des-tests: Likewise.
53205         * modules/gc-arcfour-tests: Likewise.
53206         * modules/gc-arctwo-tests: Likewise.
53207         * modules/gc-des-tests: Likewise.
53208         * modules/gc-hmac-md5-tests: Likewise.
53209         * modules/gc-hmac-sha1-tests: Likewise.
53210         * modules/gc-md2-tests: Likewise.
53211         * modules/gc-md4-tests: Likewise.
53212         * modules/gc-md5-tests: Likewise.
53213         * modules/gc-pbkdf2-sha1-tests: Likewise.
53214         * modules/gc-rijndael-tests: Likewise.
53215         * modules/gc-sha1-tests: Likewise.
53216         * modules/gc-tests: Likewise.
53217         * modules/getaddrinfo-tests: Likewise.
53218         * modules/hmac-md5-tests: Likewise.
53219         * modules/hmac-sha1-tests: Likewise.
53220         * modules/linked-list-tests: Likewise.
53221         * modules/linkedhash-list-tests: Likewise.
53222         * modules/lock-tests: Likewise.
53223         * modules/md2-tests: Likewise.
53224         * modules/md4-tests: Likewise.
53225         * modules/md5-tests: Likewise.
53226         * modules/rbtree-list-tests: Likewise.
53227         * modules/rbtree-oset-tests: Likewise.
53228         * modules/rbtreehash-list-tests: Likewise.
53229         * modules/read-file-tests: Likewise.
53230         * modules/rijndael-tests: Likewise.
53231         * modules/stdint-tests: Likewise.
53232         * modules/tls-tests: Likewise.
53233
53234 2007-02-24  Bruno Haible  <bruno@clisp.org>
53235
53236         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53237         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53238         function; instead check whether isnan with a double argument links.
53239         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53240         function; instead check whether isnan with a 'long double' argument
53241         links.
53242         Reported by Eric Blake <ebb9@byu.net>.
53243
53244 2007-02-24  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53247         defined.
53248         * lib/isnanl.c: Remove all code. Just include isnan.c.
53249         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53250
53251 2007-02-25  Jim Meyering  <jim@meyering.net>
53252
53253         Avoid conflicting types for 'unsetenv' on FreeBSD.
53254         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53255         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53256         in stdlib.h.
53257
53258 2007-02-24  Bruno Haible  <bruno@clisp.org>
53259
53260         * modules/isnanl-nolibm-tests: New file.
53261         * tests/test-isnanl.c: New file.
53262
53263         * modules/isnanl-nolibm: New file.
53264         * lib/isnanl.h: New file.
53265         * lib/isnanl.c: New file.
53266         * m4/isnanl.m4: New file.
53267
53268 2007-02-24  Bruno Haible  <bruno@clisp.org>
53269
53270         * modules/isnan-nolibm-tests: New file.
53271         * tests/test-isnan.c: New file.
53272
53273         * modules/isnan-nolibm: New file.
53274         * lib/isnan.h: New file.
53275         * lib/isnan.c: New file.
53276         * m4/isnan.m4: New file.
53277
53278 2007-02-24  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53281         assume that an exponent fits in 20 bits.
53282
53283 2007-02-24  Jim Meyering  <jim@meyering.net>
53284
53285         * m4/regex.m4: Update the description of the configure-time option,
53286         --without-included-regex, to state accurately what the defaults are,
53287         and perhaps to give people an idea why using this option is risky.
53288
53289 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53290
53291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53292         loops on small arguments.  This attempts to avoid the problem
53293         Bruno Haible reported for AIX 4.3.2 in
53294         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53295
53296 2007-02-23  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53299         Needed for help2man.
53300
53301 2007-02-23  Karl Berry  <karl@gnu.org>
53302
53303         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53304         exists, foo.h should be cvs-ignored, not committed.
53305
53306 2007-02-23  Eric Blake  <ebb9@byu.net>
53307
53308         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53309         * lib/stat-time.h (includes): Likewise.
53310         * lib/utimecmp.c (includes): Likewise.
53311         * lib/utimens.h (includes): Likewise.
53312         * lib/getdate.y (includes): Also include "timespec.h" for use
53313         internal to the module.
53314         * modules/utimens (Depends-on): Revert yesterday's patch.
53315         * modules/nanosleep (Depends-on): Add missing dependency.
53316
53317 2007-02-22  Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/glob.c: Don't include getlogin_r.h.
53320
53321 2007-02-22  Jim Meyering  <jim@meyering.net>
53322
53323         * modules/utimens (Depends-on): Add timespec, required for
53324         utimens.h's inclusion of timespec.h.
53325
53326 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53327
53328         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53329         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53330         Schwab in
53331         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53332         I'll try to think of a better way to fix the Solaris problem.
53333
53334         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53335         like glibc; on Solaris 10, it fails with errno == EINVAL.
53336         POSIX says the behavior is unspecified if the first argument is NULL,
53337         so play it safe and never pass NULL to the system getcwd.
53338
53339 2007-02-21  Jim Meyering  <jim@meyering.net>
53340
53341         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53342         of gettimeofday.  It would conflict with the one now always
53343         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53344         an IRIX 6.5 build failure.
53345
53346 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53347
53348         Minor fixups to port to Solaris 10 with Sun C 5.8.
53349         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53350         * modules/getcwd (Depends-on): Add dirfd.
53351         * lib/putenv.c (putenv): #undef it.
53352         (rpl_putenv): New decl.
53353         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53354
53355 2007-02-20  Bruno Haible  <bruno@clisp.org>
53356
53357         * modules/stdio-tests: New file.
53358         * tests/test-stdio.c: New file.
53359
53360         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53361         (Depends-on): Add stdio.
53362         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53363         (Include): Use <stdio.h> instead of vsnprintf.h.
53364         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53365         HAVE_DECL_VSNPRINTF.
53366         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53367
53368         * modules/snprintf (Files): Remove lib/snprintf.h.
53369         (Depends-on): Add stdio.
53370         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53371         (Include): Use <stdio.h> instead of snprintf.h.
53372         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53373         HAVE_DECL_SNPRINTF.
53374         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53375         * lib/getaddrinfo.c: Likewise.
53376
53377         * modules/stdio: New file.
53378         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53379         * lib/snprintf.h: Remove file.
53380         * lib/vsnprintf.h: Remove file.
53381         * lib/.cppi-disable: Remove snprintf.h.
53382         * m4/stdio_h.m4: New file.
53383         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53384
53385 2007-02-20  Jim Meyering  <jim@meyering.net>
53386
53387         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53388         used by e.g., mingw.  From Bruno Haible.
53389
53390 2007-02-19  Bruno Haible  <bruno@clisp.org>
53391
53392         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53393         warnings.
53394         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53395
53396 2007-02-19  Bruno Haible  <bruno@clisp.org>
53397
53398         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53399         from mingw users.
53400
53401 2007-02-19  Bruno Haible  <bruno@clisp.org>
53402
53403         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53404         warnings.
53405         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53406
53407 2007-02-19  Jim Meyering  <jim@meyering.net>
53408
53409         Don't use FD after a successful "fdopendir (fd)".
53410         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53411         Reset it by calling dirfd on the just-obtained DIR*.
53412
53413         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53414         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53415
53416 2007-02-18  Bruno Haible  <bruno@clisp.org>
53417
53418         * lib/readlink.c: Include <unistd.h>.
53419         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53420         HAVE_READLINK.
53421         * modules/readlink (Depends-on): Add unistd.
53422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53423         (Include): Add <unistd.h>.
53424
53425         * lib/getlogin_r.h: Remove file.
53426         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53427         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53428         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53429         HAVE_DECL_GETLOGIN_R.
53430         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53431         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53432         (Include): Use <unistd.h> instead of getlogin_r.h.
53433
53434         * lib/getcwd.h: Remove file.
53435         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53436         * lib/xgetcwd.c: Likewise.
53437         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53438         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53439         * modules/getcwd (Files): Remove lib/getcwd.h.
53440         (Depends-on): Add unistd.
53441         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53442         (Include): Use <unistd.h> instad of getcwd.h.
53443
53444         * lib/ftruncate.c: Include <unistd.h> first.
53445         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53446         Set HAVE_FTRUNCATE.
53447         * modules/ftruncate (Depends-on): Add unistd.
53448         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53449
53450         * lib/fchdir.c: Include <unistd.h> first.
53451         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53453         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53454         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53455         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53456
53457         * lib/dup2.c: Include <unistd.h> first.
53458         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53459         HAVE_DUP2.
53460         * modules/dup2 (Depends-on): Add unistd.
53461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53462
53463         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53464         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53465         REPLACE_CHOWN. Don't define chown as a macro here.
53466         * modules/chown (Depends-on): Add unistd.
53467         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53468
53469         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53470         Add definition for GL_LINK_WARNING.
53471         (chown, dup2): New declarations.
53472         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53473         link warning.
53474         (ftruncate): New declaration.
53475         (getcwd): New declaration, taken from old getcwd.h.
53476         (getlogin_r): New declaration, taken from old getlogin_r.h.
53477         (readlink): New declaration.
53478         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53479         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53480         (gl_PREREQ_UNISTD): Remove macro.
53481         (gl_UNISTD_MODULE_INDICATOR): New macro.
53482         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53483         many new variables. Don't set UNISTD_H.
53484         * modules/unistd (Description): Change.
53485         (Depends-on): Add link-warning.
53486         (configure.ac): Update.
53487         (Makefile.am): Create unistd.h always. Substitute many new variables
53488         into it.
53489
53490 2007-02-18  Bruno Haible  <bruno@clisp.org>
53491
53492         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53493         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53494         HAVE_GETSUBOPT.
53495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53496         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53497         * lib/getsubopt.h: Remove file.
53498         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53499         (Depends-on): Add stdlib.
53500         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53501         (Includes): Use <stdlib.h> instead of getsubopt.h.
53502         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53503         Set HAVE_GETSUBOPT.
53504         * lib/getsubopt.c: Don't include getsubopt.h.
53505
53506 2007-02-18  Bruno Haible  <bruno@clisp.org>
53507
53508         * modules/fchdir (Depends-on): Add dup2.
53509
53510 2007-02-18  Bruno Haible  <bruno@clisp.org>
53511
53512         * lib/stdlib_.h: Handle glibc's special invocation convention
53513         specially.
53514
53515 2007-02-18  Bruno Haible  <bruno@clisp.org>
53516
53517         * modules/stdlib-tests: New file.
53518         * tests/test-stdlib.c: New file.
53519
53520         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53521         (Depends-on): Add stdlib.
53522         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53523         (Includes): Use <stdlib.h> instead of mkstemp.h.
53524         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53525         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53526         * lib/mkstemp.c: Don't include mkstemp.h.
53527         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53528         * lib/stdlib--.h: Don't include mkstemp.h.
53529
53530         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53531         (Depends-on): Add stdlib.
53532         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53533         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53534         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53535         HAVE_MKDTEMP.
53536         * lib/mkdtemp.c: Don't include mkdtemp.h.
53537         * lib/clean-temp.c: Don't include mkdtemp.h.
53538
53539         * modules/exit (Files): Remove lib/exit.h.
53540         (Depends-on): Add stdlib.
53541         (Makefile.am): Remove lib_SOURCES.
53542         (Include): Use <stdlib.h> instead of exit.h.
53543         * lib/argmatch.c: Don't include exit.h.
53544         * lib/execute.c: Likewise.
53545         * lib/pagealign_alloc.c: Likewise.
53546         * lib/pipe.c: Likewise.
53547         * lib/wait-process.c: Likewise.
53548         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53549         * lib/exitfail.c: Likewise.
53550         * lib/savewd.c: Likewise.
53551         * lib/xsetenv.c: Likewise.
53552
53553         * modules/stdlib: New file.
53554         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53555         and extra comments about mkstemp().
53556         * lib/exit.h: Remove file.
53557         * lib/mkdtemp.h: Remove file.
53558         * lib/mkstemp.h: Remove file.
53559         * m4/stdlib_h.m4: New file.
53560         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53561
53562 2007-02-18  Bruno Haible  <bruno@clisp.org>
53563
53564         * modules/math-tests: New file.
53565         * tests/test-math.c: New file.
53566
53567         * modules/math: New file.
53568         * modules/mathl (Files): Remove lib/mathl.h.
53569         (Depends-on): Add math.
53570         (Makefile.am): Don't mention mathl.h.
53571         (Include): Use <math.h> instead of mathl.h.
53572         * lib/math_.h: New file.
53573         * lib/mathl.h: Remove file.
53574         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53575         mathl.h.
53576         * lib/asinl.c: Likewise.
53577         * lib/atanl.c: Likewise.
53578         * lib/ceill.c: Likewise.
53579         * lib/cosl.c: Likewise.
53580         * lib/expl.c: Likewise.
53581         * lib/floorl.c: Likewise.
53582         * lib/frexpl.c: Likewise.
53583         * lib/ldexpl.c: Likewise.
53584         * lib/logl.c: Likewise.
53585         * lib/sincosl.c: Likewise.
53586         * lib/sinl.c: Likewise.
53587         * lib/sqrtl.c: Likewise.
53588         * lib/tanl.c: Likewise.
53589         * lib/trigl.c: Likewise.
53590         * m4/math_h.m4: New file.
53591         * MODULES.html.sh (Mathematics): Add math.
53592
53593 2007-02-17  Bruno Haible  <bruno@clisp.org>
53594
53595         * modules/wctype-tests: New file.
53596         * tests/test-wctype.c: New file.
53597
53598         * modules/wchar-tests: New file.
53599         * tests/test-wchar.c: New file.
53600
53601         * modules/unistd-tests: New file.
53602         * tests/test-unistd.c: New file.
53603
53604         * modules/time-tests: New file.
53605         * tests/test-time.c: New file.
53606
53607         * modules/sysexits-tests: New file.
53608         * tests/test-sysexits.c: New file.
53609
53610         * modules/sys_time-tests: New file.
53611         * tests/test-sys_time.c: New file.
53612
53613         * modules/sys_stat-tests: New file.
53614         * tests/test-sys_stat.c: New file.
53615
53616         * modules/sys_socket-tests: New file.
53617         * tests/test-sys_socket.c: New file.
53618
53619         * modules/sys_select-tests: New file.
53620         * tests/test-sys_select.c: New file.
53621
53622         * modules/string-tests: New file.
53623         * tests/test-string.c: New file.
53624
53625         * modules/stdbool-tests: New file.
53626         * tests/test-stdbool.c: New file.
53627
53628         * modules/netinet_in-tests: New file.
53629         * tests/test-netinet_in.c: New file.
53630
53631         * modules/inttypes-tests: New file.
53632         * tests/test-inttypes.c: New file.
53633
53634         * modules/fcntl-tests: New file.
53635         * tests/test-fcntl.c: New file.
53636
53637         * modules/byteswap-tests: New file.
53638         * tests/test-byteswap.c: New file.
53639
53640         * modules/arpa_inet-tests: New file.
53641         * tests/test-arpa_inet.c: New file.
53642
53643 2007-02-17  Bruno Haible  <bruno@clisp.org>
53644
53645         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53646         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53647         if the corresponding module is not enabled. Emit link warnings if
53648         the function is used nevertheless.
53649         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53650         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53651         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53652         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53653         * modules/inttypes (Depends-on): Add link-warning.
53654         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53655         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53656         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53657         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53658         * modules/imaxdiv (configure.ac): Likewise.
53659         * modules/strtoimax (configure.ac): Likewise.
53660         * modules/strtoumax (configure.ac): Likewise.
53661
53662 2007-02-17  Bruno Haible  <bruno@clisp.org>
53663
53664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53665         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53666         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53667         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53668
53669 2007-02-17  Bruno Haible  <bruno@clisp.org>
53670
53671         * modules/link-warning: New file.
53672         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53673         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53674         * modules/string (Depends-on): Add link-warning.
53675         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53676         string.h.
53677         * MODULES.html.sh (Support for building libraries and executables): Add
53678         link-warning.
53679
53680 2007-02-17  Bruno Haible  <bruno@clisp.org>
53681
53682         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53683         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53684         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53685         long lines.
53686
53687 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53688             Bruno Haible  <bruno@clisp.org>
53689
53690         * modules/tmpfile: New file.
53691         * lib/tmpfile.c: New file.
53692         * m4/tmpfile.m4: New file.
53693         * MODULES.html.sh (func_all_modules): New section "Input/output".
53694
53695 2007-02-15  Bruno Haible  <bruno@clisp.org>
53696
53697         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53698         (supports_delete_on_close): New function.
53699         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53700
53701 2007-02-14  Bruno Haible  <bruno@clisp.org>
53702
53703         * modules/mbspcasecmp-tests: New file.
53704         * tests/test-mbspcasecmp.sh: New file.
53705         * tests/test-mbspcasecmp.c: New file.
53706
53707         New module mbspcasecmp.
53708         * modules/mbspcasecmp: New file.
53709         * lib/mbspcasecmp.c: New file.
53710         * lib/string_.h (strncasecmp): Change warning message.
53711         (mbspcasecmp): New declaration.
53712         * m4/mbspcasecmp.m4: New file.
53713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53714         GNULIB_MBSPCASECMP.
53715         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53716         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53717
53718 2007-02-14  Bruno Haible  <bruno@clisp.org>
53719
53720         * modules/mbsncasecmp-tests: New file.
53721         * tests/test-mbsncasecmp.sh: New file.
53722         * tests/test-mbsncasecmp.c: New file.
53723
53724         New module mbsncasecmp.
53725         * modules/mbsncasecmp: New file.
53726         * lib/mbsncasecmp.c: New file.
53727         * lib/string_.h (mbsncasecmp): New declaration.
53728         * m4/mbsncasecmp.m4: New file.
53729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53730         GNULIB_MBSNCASECMP.
53731         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53732         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53733
53734 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53735
53736         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53737         Verify that it doesn't overlap with our flags.
53738         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53739         do not have the desired effect in multibyte locales; instead, use
53740         mbscasecmp.
53741         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53742         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53743         we don't require GNU fnmatch ourselves (if our users require it, they
53744         should do so explicitly).
53745
53746         Fix regex code so it doesn't rely on strcasecmp.
53747         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53748         Otherwise, include gnulib's langinfo.h.
53749         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53750         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53751         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53752         * modules/regex (FILES): Remove m4/codeset.m4.
53753         (Depends-on): Add localcharset.  Remove strcase.
53754
53755 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53756
53757         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53758         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53759
53760 2007-02-13  Bruno Haible  <bruno@clisp.org>
53761
53762         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53763         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53764
53765 2007-02-12  Bruno Haible  <bruno@clisp.org>
53766
53767         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53768         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53769         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53770         time warning rather than a link error.
53771
53772 2007-02-12  Bruno Haible  <bruno@clisp.org>
53773
53774         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53775         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53776         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53777
53778 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53781         args, not 2.
53782
53783 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         New module 'time', so that apps can include <time.h> as per
53786         POSIX and GNU instead of separate include files like time_r.h
53787         and timegm.h.  This implementation tries out a simpler approach
53788         for replacing decls in standard include files (as compared to
53789         the string module), somewhat as an experiment.
53790
53791         * config/srclist.txt: Comment out mktime.c for now.
53792         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53793         since it doesn't apply any more.  Use generic wording instead.
53794         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53795         'time'.
53796         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53797         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53798         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53799         Don't include <sys/types.h>; no longer needed since we assume C89.
53800         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53801         * lib/strftime.c: Likewise.
53802         * lib/time_r.c: Likewise.
53803         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53804         * lib/nanosleep.c: Include <time.h> first, to check interface.
53805         * lib/strptime.c: Likewise.
53806         * lib/time_r.c: Likewise.
53807         * lib/timegm.c: Likewise.
53808         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53809         needed.
53810         * lib/timegm.c: Don't include timegm.h; no longer needed.
53811         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53812         time.h now handles any problems in that area.
53813         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53814         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53815         that time.h defines struct timespec.
53816         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53817         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53818         handles that.
53819         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53820         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53821         needed.  Set REPLACE_LOCALTIME.
53822         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53823         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53824         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53825         nanosleep; time_h.m4 now does that.  Don't require
53826         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53827         module handles this now.
53828         * modules/getdate (Depends-on): Remove timespec.  Add time.
53829         * modules/nanosleep (Depends-on): Likewise.
53830         * modules/stat-time (Depends-on): Likewise.
53831         * modules/nanosleep (Include): Include time.h, not timespec.h.
53832         * modules/strptime (Files): Remove lib/strptime.h.
53833         (Depends-on): Add extensions, time.
53834         (Include): Include time.h, not strptime.h.
53835         * modules/time_r (Files): Remove lib/time_r.h.
53836         (Depends-on): Add time.
53837         (Include): Include time.h, not time_r.h.
53838         * modules/timegm: Likewise.
53839         * modules/timespec (Description): Now does timespec-related decls
53840         of our own, instead of struct timespec itself.
53841         (Depends-on): Add time; remove extensions.
53842         (Maintainer): Add self.
53843         * modules/utimecmp (Depends-on): Add time; remove timespec.
53844         * modules/utimens (Depends-on): Likewise.
53845         * modules/xnanosleep (Depends-on): Likewise.
53846
53847 2007-02-11  Bruno Haible  <bruno@clisp.org>
53848
53849         * lib/c-strstr.c: Include allocsa.h.
53850         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53851         * lib/c-strcasestr.c: Include allocsa.h.
53852         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53853         * lib/strcasestr.c: Include allocsa.h.
53854         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53855         * lib/mbsstr.c: Include allocsa.h.
53856         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53857         allocsa/freesa instead of malloc/free.
53858         * lib/mbscasestr.c: Include allocsa.h.
53859         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53860         allocsa/freesa instead of malloc/free.
53861         * modules/c-strstr (Depends-on): Add allocsa.
53862         * modules/c-strcasestr (Depends-on): Likewise.
53863         * modules/strcasestr (Depends-on): Likewise.
53864         * modules/mbsstr (Depends-on): Likewise.
53865         * modules/mbscasestr (Depends-on): Likewise.
53866
53867 2007-02-11  Bruno Haible  <bruno@clisp.org>
53868
53869         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53870
53871         * modules/mbsspn-tests: New file.
53872         * tests/test-mbsspn.sh: New file.
53873         * tests/test-mbsspn.c: New file.
53874
53875 2007-02-11  Bruno Haible  <bruno@clisp.org>
53876
53877         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53878
53879         * modules/mbspbrk-tests: New file.
53880         * tests/test-mbspbrk.sh: New file.
53881         * tests/test-mbspbrk.c: New file.
53882
53883 2007-02-11  Bruno Haible  <bruno@clisp.org>
53884
53885         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53886         unneeded cast.
53887
53888         * modules/mbscspn-tests: New file.
53889         * tests/test-mbscspn.sh: New file.
53890         * tests/test-mbscspn.c: New file.
53891
53892 2007-02-11  Bruno Haible  <bruno@clisp.org>
53893
53894         * modules/mbscasecmp-tests: New file.
53895         * tests/test-mbscasecmp.sh: New file.
53896         * tests/test-mbscasecmp.c: New file.
53897
53898 2007-02-11  Bruno Haible  <bruno@clisp.org>
53899
53900         Ensure O(n) worst-case complexity of mbscasestr.
53901         * lib/mbscasestr.c: Include stdbool.h.
53902         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53903         functions.
53904         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53905         the bookkeeping indicates that it's worth it.
53906         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53907
53908         * modules/mbscasestr-tests: New file.
53909         * tests/test-mbscasestr1.c: New file.
53910         * tests/test-mbscasestr2.sh: New file.
53911         * tests/test-mbscasestr2.c: New file.
53912         * tests/test-mbscasestr3.sh: New file.
53913         * tests/test-mbscasestr3.c: New file.
53914         * tests/test-mbscasestr4.sh: New file.
53915         * tests/test-mbscasestr4.c: New file.
53916         * m4/locale-tr.m4: New file.
53917
53918 2007-02-11  Bruno Haible  <bruno@clisp.org>
53919
53920         Ensure O(n) worst-case complexity of mbsstr.
53921         * lib/mbsstr.c: Include stdbool.h.
53922         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53923         functions.
53924         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53925         bookkeeping indicates that it's worth it.
53926         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53927
53928         * modules/mbsstr-tests: New file.
53929         * tests/test-mbsstr1.c: New file.
53930         * tests/test-mbsstr2.sh: New file.
53931         * tests/test-mbsstr2.c: New file.
53932         * tests/test-mbsstr3.sh: New file.
53933         * tests/test-mbsstr3.c: New file.
53934         * m4/locale-fr.m4: New file.
53935
53936 2007-02-11  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/mbsrchr.c (mbsrchr): Fix bug.
53939
53940         * modules/mbsrchr-tests: New file.
53941         * tests/test-mbsrchr.sh: New file.
53942         * tests/test-mbsrchr.c: New file.
53943
53944 2007-02-11  Bruno Haible  <bruno@clisp.org>
53945
53946         * lib/mbschr.c (mbschr): Fix bug.
53947
53948         * modules/mbschr-tests: New file.
53949         * tests/test-mbschr.sh: New file.
53950         * tests/test-mbschr.c: New file.
53951         * m4/locale-zh.m4: New file.
53952
53953 2007-02-11  Bruno Haible  <bruno@clisp.org>
53954
53955         Support for copying multibyte string iterators.
53956         * lib/mbiter.h: Include <string.h>.
53957         (mbiter_multi_copy): New function.
53958         (mbi_copy): New macro.
53959         * lib/mbuiter.h: Include <string.h>.
53960         (mbuiter_multi_copy): New function.
53961         (mbui_copy): New macro.
53962
53963 2007-02-11  Bruno Haible  <bruno@clisp.org>
53964
53965         New module mbslen.
53966         * modules/mbslen: New file.
53967         * lib/mbslen.c: New file.
53968         * lib/string_.h (mbslen): New declaration.
53969         * m4/mbslen.m4: New file.
53970         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53971         GNULIB_MBSLEN.
53972         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53973         * MODULES.html.sh (Internationalization functions): Add mbslen.
53974
53975 2007-02-11  Bruno Haible  <bruno@clisp.org>
53976
53977         Ensure O(n) worst-case complexity of strcasestr substitute.
53978         * lib/strcasestr.c: Include stdbool.h.
53979         (knuth_morris_pratt): New function.
53980         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53981         bookkeeping indicates that it's worth it.
53982         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53983
53984         * modules/strcasestr-tests: New file.
53985         * tests/test-strcasestr.c: New file.
53986
53987 2007-02-11  Bruno Haible  <bruno@clisp.org>
53988
53989         Ensure O(n) worst-case complexity of c_strcasestr.
53990         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53991         (knuth_morris_pratt): New function.
53992         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53993         the bookkeeping indicates that it's worth it.
53994         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53995
53996         * modules/c-strcasestr-tests: New file.
53997         * tests/test-c-strcasestr.c: New file.
53998
53999 2007-02-11  Bruno Haible  <bruno@clisp.org>
54000
54001         Ensure O(n) worst-case complexity of c_strstr.
54002         * lib/c-strstr.c: Include stdbool.h, string.h.
54003         (knuth_morris_pratt): New function.
54004         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54005         bookkeeping indicates that it's worth it.
54006         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54007
54008         * lib/c-strstr.c: Complete rewrite for maintainability.
54009
54010         * modules/c-strstr-tests: New file.
54011         * tests/test-c-strstr.c: New file.
54012
54013 2007-02-11  Bruno Haible  <bruno@clisp.org>
54014
54015         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54016         5.2.1 and earlier, whereby \055 was treated just like the range
54017         delimiter '-'.
54018         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54019
54020 2007-02-08  Bruno Haible  <bruno@clisp.org>
54021
54022         * modules/regex (Depends-on): Add stdbool.
54023         Reported by Dalibor Topic <robilad@kaffe.org>.
54024
54025 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54026
54027         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54028         Prefer returning from main to exiting from it.
54029         Remove unnecessary parens after sizeof.
54030
54031 2007-02-05  Bruno Haible  <bruno@clisp.org>
54032
54033         New module mbssep.
54034         * modules/mbssep: New file.
54035         * lib/mbssep.c: New file.
54036         * lib/string_.h (strsep): Add a conditional link warning.
54037         (mbssep): New declaration.
54038         * m4/mbssep.m4: New file.
54039         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54040         GNULIB_MBSSEP.
54041         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54042         * MODULES.html.sh (Internationalization functions): Add mbssep.
54043
54044 2007-02-05  Bruno Haible  <bruno@clisp.org>
54045
54046         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54047         Optimize search in case of 1 delimiter.
54048
54049 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54050
54051         * lib/acl.h: Include sys/types.h before sys/acl.h.
54052
54053 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54054
54055         Merge upstream fix for glibc bugzilla #3957:
54056
54057         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54058
54059         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54060         bit for RE_HAT_LISTS_NOT_NEWLINE.
54061         (build_charclass_op): Remove bogus comment.
54062
54063 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54064
54065         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54066
54067 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54068
54069         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54070         * lib/memmem.c [!defined _LIBC]: Include config.h.
54071
54072 2007-02-04  Bruno Haible  <bruno@clisp.org>
54073
54074         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54075         warning message.
54076
54077 2007-02-04  Bruno Haible  <bruno@clisp.org>
54078
54079         New module mbstok_r.
54080         * modules/mbstok_r: New file.
54081         * lib/mbstok_r.c: New file.
54082         * lib/string_.h (strtok_r): Change argument names to match the
54083         comments. Add a conditional link warning.
54084         (mbstok_r): New declaration.
54085         * m4/mbstok_r.m4: New file.
54086         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54087         GNULIB_MBSTOK_R.
54088         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54089         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54090
54091 2007-02-04  Bruno Haible  <bruno@clisp.org>
54092
54093         New module mbsspn.
54094         * modules/mbsspn: New file.
54095         * lib/mbsspn.c: New file.
54096         * lib/string_.h (strspn): Add a conditional link warning.
54097         (mbsspn): New declaration.
54098         * m4/mbsspn.m4: New file.
54099         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54100         GNULIB_MBSSPN.
54101         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54102         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54103
54104 2007-02-04  Bruno Haible  <bruno@clisp.org>
54105
54106         New module mbspbrk.
54107         * modules/mbspbrk: New file.
54108         * lib/mbspbrk.c: New file.
54109         * lib/string_.h (strpbrk): Add a conditional link warning.
54110         (mbspbrk): New declaration.
54111         * m4/mbspbrk.m4: New file.
54112         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54113         GNULIB_MBSPBRK.
54114         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54115         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54116
54117 2007-02-04  Bruno Haible  <bruno@clisp.org>
54118
54119         New module mbscspn.
54120         * modules/mbscspn: New file.
54121         * lib/mbscspn.c: New file.
54122         * lib/string_.h (strcspn): Add a conditional link warning.
54123         (mbscspn): New declaration.
54124         * m4/mbscspn.m4: New file.
54125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54126         GNULIB_MBSCSPN.
54127         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54128         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54129
54130 2007-02-04  Bruno Haible  <bruno@clisp.org>
54131
54132         New module mbscasestr, reduced goal of strcasestr.
54133         * modules/mbscasestr: New file.
54134         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54135         (mbscasestr): Renamed from strcasestr.
54136         * lib/strcasestr.c: Don't include mbuiter.h.
54137         (strcasestr): Remove support for multibyte locales.
54138         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54139         Change the conditional link warning.
54140         (mbscasestr): New declaration.
54141         * m4/mbscasestr.m4: New file.
54142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54143         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54144         REPLACE_STRCASESTR.
54145         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54147         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54148         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54149         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54150         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54151         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54152         (Depends-on): Remove mbuiter.
54153         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54154
54155 2007-02-04  Bruno Haible  <bruno@clisp.org>
54156
54157         Simplify handling of strncasecmp.
54158         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54159         the conditional link warning.
54160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54161         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54162         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54163         * modules/strcase (configure.ac): Don't invoke
54164         gl_STRING_MODULE_INDICATOR.
54165         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54166
54167 2007-02-04  Bruno Haible  <bruno@clisp.org>
54168
54169         New module mbscasecmp, reduced goal of strcasecmp.
54170         * modules/mbscasecmp: New file.
54171         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54172         (mbscasecmp): Renamed from strcasecmp.
54173         * lib/strcasecmp.c: Don't include mbuiter.h.
54174         (strcasecmp): Remove support for multibyte locales.
54175         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54176         Change the conditional link warning.
54177         (mbscasecmp): New declaration.
54178         * m4/mbscasecmp.m4: New file.
54179         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54180         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54181         REPLACE_STRCASECMP.
54182         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54183         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54184         GNULIB_MBSCASECMP.
54185         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54186         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54187         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54188         (Depends-on): Remove mbuiter.
54189         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54190
54191 2007-02-04  Bruno Haible  <bruno@clisp.org>
54192
54193         New module mbsstr. Remove module strstr.
54194         * modules/mbsstr: New file.
54195         * modules/strstr: Remove file.
54196         * lib/mbsstr.c: Renamed from lib/strstr.c.
54197         (mbsstr): Renamed from strstr.
54198         * lib/string_.h (strstr): Remove declaration. Change the conditional
54199         link warning.
54200         (mbsstr): New declaration.
54201         * m4/mbsstr.m4: New file.
54202         * m4/strstr.m4: Remove file.
54203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54204         REPLACE_STRSTR.
54205         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54206         Don't initialize GNULIB_STRSTR.
54207         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54208         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54209         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54210         (Support for systems lacking ANSI C 89): Remove strstr.
54211
54212 2007-02-04  Bruno Haible  <bruno@clisp.org>
54213
54214         New module mbsrchr.
54215         * modules/mbsrchr: New file.
54216         * lib/mbsrchr.c: New file.
54217         * lib/string_.h (strrchr): Add a conditional link warning.
54218         (mbsrchr): New declaration.
54219         * m4/mbsrchr.m4: New file.
54220         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54221         GNULIB_MBSRCHR.
54222         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54223         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54224
54225 2007-02-04  Bruno Haible  <bruno@clisp.org>
54226
54227         New module mbschr.
54228         * modules/mbschr: New file.
54229         * lib/mbschr.c: New file.
54230         * lib/string_.h (strchr): Add a conditional link warning.
54231         (mbschr): New declaration.
54232         * m4/mbschr.m4: New file.
54233         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54234         GNULIB_MBSCHR.
54235         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54236         * MODULES.html.sh (Internationalization functions): Add mbschr.
54237
54238 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54239
54240         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54241
54242         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54243
54244 2007-02-04  Bruno Haible  <bruno@clisp.org>
54245
54246         New module description section 'configure.ac-early'.
54247         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54248         (func_get_autoconf_early_snippet): New function.
54249         (func_import, func_create_testdir): Use it. Remove special cases for
54250         modules 'extensions' and 'lock'.
54251         * modules/extensions (configure.ac-early): Require
54252         gl_USE_SYSTEM_EXTENSIONS.
54253         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54254
54255 2007-02-04  Bruno Haible  <bruno@clisp.org>
54256
54257         Make use of gcj-4.3's -fsource and -ftarget option.
54258         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54259         and if so try the options -fsource and -ftarget.
54260         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54261         source_version, ftarget_option, target_version arguments.
54262         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54263         (is_envjavac_oldgcj_14_14_usable): Renamed from
54264         is_envjavac_gcj_14_14_usable.
54265         (is_envjavac_oldgcj_14_13_usable): Renamed from
54266         is_envjavac_gcj_14_13_usable.
54267         (is_gcj_present): Update.
54268         (is_gcj_43, is_gcj43_usable): New functions.
54269         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54270         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54271         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54272         try the options -fsource and -ftarget.
54273
54274 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54275
54276         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54277         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54278         larger value.
54279
54280 2007-02-03  Jim Meyering  <jim@meyering.net>
54281
54282         Give tools a better chance to allocate space for very large buffers.
54283         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54284
54285         Make pwd and readlink work also when run with an unreadable parent dir
54286         on systems with openat support.
54287         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54288         provided getcwd function, even when we have openat support.
54289         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54290
54291 2007-02-02  Bruno Haible  <bruno@clisp.org>
54292
54293         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54294         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54295         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54296         portability problems if one of these functions is only used on specific
54297         platforms.
54298         Reported by Paul Eggert.
54299
54300 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54301
54302         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54303         is causing more trouble than it's curing.
54304         * lib/regex_internal.h (__mempcpy): Remove.
54305         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54306         (and make the code a tad smaller to boot).
54307         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54308
54309 2007-02-02  Jim Meyering  <jim@meyering.net>
54310
54311         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54312         section, not in the Makefile.am: one.
54313
54314 2007-02-02  Eric Blake  <ebb9@byu.net>
54315
54316         * lib/strchrnul.c: Always include config.h first.
54317
54318         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54319         gnulib strstr is not necessary here.
54320
54321 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54322
54323         * m4/socklen.m4: Fix typo.
54324
54325 2007-02-02  Eric Blake  <ebb9@byu.net>
54326
54327         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54328         * modules/netinet_in (Makefile.am): Likewise.
54329
54330 2007-02-01  Bruno Haible  <bruno@clisp.org>
54331
54332         * lib/string_.h (GL_LINK_WARNING): New macro.
54333         (strcasecmp, strstr, strcasestr): If provided by the system,
54334         conditionally define as a macro that leads to a warning instead of to
54335         an error.
54336         (strncasecmp): Conditionally define as a macro that leads to a warning.
54337
54338 2007-02-01  Karl Berry  <karl@gnu.org>
54339
54340         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54341
54342 2007-02-01  Bruno Haible  <bruno@clisp.org>
54343
54344         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54345         renamings.
54346
54347 2007-02-01  Eric Blake  <ebb9@byu.net>
54348
54349         * modules/regex (Depends-on): Revert dependence on mempcpy.
54350         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54351         module's definition of mempcpy.
54352         Reported by Paul Eggert.
54353
54354 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54355
54356         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54357         the symbol XYZ before redefining it.  This fixes a problem with
54358         programs that don't use XYZ, when compiled on systems that define
54359         XYZ to something else.
54360
54361 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54364         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54365         writeable to group or other and (2) is intended to have a special
54366         mode bit that is set or cleared.  In such a case, the directory
54367         should be neither group- nor other-writeable until the special
54368         mode bits are right.
54369
54370 2007-01-31  Eric Blake  <ebb9@byu.net>
54371
54372         * modules/mountlist (Depends-on): Add strstr.
54373
54374         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54375         bug.
54376         * modules/string (Makefile.am): Remove redundant replacement.
54377         * modules/regex (Depends-on): Add mempcpy.
54378
54379 2007-01-31  Bruno Haible  <bruno@clisp.org>
54380
54381         New module description field 'Link'.
54382         * gnulib-tool (func_usage): Document --extract-link-directive.
54383         (sed_extract_prog): Recognize 'Link' directive.
54384         (func_get_link_directive): New function.
54385         (func_import): Show summary of link directives.
54386         Handle --extract-link-directive option.
54387         * modules/acl (Link): New section.
54388         * modules/clock-time (Link): New section.
54389         * modules/euidaccess (Link): New section.
54390         * modules/gettext (Link): New section.
54391         * modules/iconv (Link): New section.
54392         * modules/lock (Link): New section.
54393         * modules/nanosleep (Link): New section.
54394         * modules/readline (Link): New section.
54395
54396 2007-01-27  Bruno Haible  <bruno@clisp.org>
54397
54398         Enforce the use of gnulib modules for unportable <string.h> functions.
54399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54400         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54401         (gl_HEADER_STRING_H_BODY): Require it.
54402         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54403         the symbol XYZ to one that gives a link error.
54404         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54405         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54406         * modules/mempcpy (configure.ac): Likewise.
54407         * modules/memrchr (configure.ac): Likewise.
54408         * modules/stpcpy (configure.ac): Likewise.
54409         * modules/stpncpy (configure.ac): Likewise.
54410         * modules/strcase (configure.ac): Likewise.
54411         * modules/strcasestr (configure.ac): Likewise.
54412         * modules/strchrnul (configure.ac): Likewise.
54413         * modules/strdup (configure.ac): Likewise.
54414         * modules/strndup (configure.ac): Likewise.
54415         * modules/strnlen (configure.ac): Likewise.
54416         * modules/strpbrk (configure.ac): Likewise.
54417         * modules/strsep (configure.ac): Likewise.
54418         * modules/strstr (configure.ac): Likewise.
54419         * modules/strtok_r (configure.ac): Likewise.
54420
54421 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54422
54423         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54424
54425 2007-01-30  Jim Meyering  <jim@meyering.net>
54426
54427         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54428
54429 2007-01-29  Bruno Haible  <bruno@clisp.org>
54430
54431         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54432         * lib/execute.c: Likewise.
54433         * lib/pipe.c: Likewise.
54434         * lib/printf-args.h: Likewise.
54435         * lib/printf-args.c: Likewise.
54436         * lib/printf-parse.c: Likewise.
54437         * lib/vasnprintf.c: Likewise.
54438
54439 2007-01-29  Eric Blake  <ebb9@byu.net>
54440
54441         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54442         declaration.
54443
54444 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54445
54446         * lib/strptime.h (strptime): Use 'restrict' for args where
54447         POSIX requires this.
54448         * lib/strptime.c (strptime): Likewise.
54449         Change license notice from LGPL to GPL, since gnulib-tool will
54450         change this as needed.
54451         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54452         defined.
54453         Include "strptime.h" first, to check interface.
54454         Do not #undef _LIBC and _NL_CURRENT.
54455         Do not include <stdlib.h>; no longer needed.
54456         Include "time_r.h" and declare ptime_locale_status
54457         only if _LIBC is not defined.
54458         (__P): Remove unused macro.
54459         (match_string): Bring back glibc version, but use it only if _LIBC
54460         is defined.
54461         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54462         Remove unnecessary assertion and abort() call.
54463         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54464         * m4/strptime.m4: Fix serial number comment.
54465         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54466         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54467         (Depends-on): Add time_r.
54468
54469 2007-01-29  Bruno Haible  <bruno@clisp.org>
54470
54471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54472         strptime.
54473         * modules/strptime (Depends-on): Add stdbool.
54474         * lib/strptime.h: Include <time.h> always. Add comments.
54475
54476 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54477
54478         * modules/strptime: New file.
54479         * lib/strptime.h: New file.
54480         * lib/strptime.c: New file.
54481         * m4/strptime.m4: New file.
54482
54483 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * MODULES.html.sh: New module mpsort.
54486         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54487
54488         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54489         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54491         All uses changed.
54492         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54493         All uses changed.
54494         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54495         to _Restrict_.
54496         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54497         the parameter matches the prototype.
54498
54499 2007-01-28  Jim Meyering  <jim@meyering.net>
54500
54501         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54502         sys/time.h here, reverting that part of the previous patch:
54503         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54504
54505 2007-01-28  Bruno Haible  <bruno@clisp.org>
54506
54507         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54508         value of $(SYS_TIME_H).
54509         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54510         remove it conditionally, too. [added by Jim Meyering]
54511         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54512         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54513         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54514         GETTIMEOFDAY_REPLACEMENT to 1.
54515
54516 2007-01-28  Bruno Haible  <bruno@clisp.org>
54517
54518         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54519         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54520         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54521         Set UNISTD_H instead of UNISTD_H2.
54522         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54523
54524 2007-01-28  Bruno Haible  <bruno@clisp.org>
54525
54526         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54527         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54528
54529 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54530
54531         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54532         (func_create_testdir): Ensure C locale for `grep' and `tr'
54533         character ranges.
54534         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54535         ACLOCAL_AMFLAGS parsing state machine.
54536
54537 2007-01-27  Bruno Haible  <bruno@clisp.org>
54538
54539         * modules/unistr/base: Update.
54540
54541 2007-01-27  Bruno Haible  <bruno@clisp.org>
54542
54543         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54544         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54545         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54546         modules/unistr/u32-mbtouc.
54547         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54548         * lib/unistr.h: Update.
54549         * lib/linebreak.c: Update.
54550         * modules/unistr/u32-mbtouc: Renamed from
54551         modules/unistr/u32-mbtouc-safe.
54552         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54553         * lib/unistr.h: Update.
54554         * lib/unistr/u32-to-u8.c: Update.
54555         * lib/unistr/u32-to-u16.c: Update.
54556
54557 2007-01-27  Bruno Haible  <bruno@clisp.org>
54558
54559         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54560         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54561         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54562         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54563         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54564         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54565         modules/unistr/u16-mbtouc.
54566         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54567         * lib/unistr.h: Update.
54568         * lib/linebreak.c: Update.
54569         * modules/linebreak: Update.
54570         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54571         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54572         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54573         * modules/unistr/u16-mbtouc: Renamed from
54574         modules/unistr/u16-mbtouc-safe.
54575         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54576         * lib/unistr.h: Update.
54577         * lib/unistr/u16-to-u8.c: Update.
54578         * modules/unistr/u16-to-u8: Update.
54579         * lib/unistr/u16-to-u32.c: Update.
54580         * modules/unistr/u16-to-u32: Update.
54581
54582 2007-01-27  Bruno Haible  <bruno@clisp.org>
54583
54584         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54585         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54586         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54587         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54588         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54589         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54590         modules/unistr/u8-mbtouc.
54591         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54592         * lib/unistr.h: Update.
54593         * lib/striconveh.c: Update.
54594         * modules/striconveh: Update.
54595         * lib/linebreak.c: Update.
54596         * modules/linebreak: Update.
54597         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54598         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54599         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54600         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54601         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54602         * lib/unistr.h: Update.
54603         * lib/striconveh.c: Update.
54604         * modules/striconveh: Update.
54605         * lib/unistr/u8-to-u16.c: Update.
54606         * modules/unistr/u8-to-u16: Update.
54607         * lib/unistr/u8-to-u32.c: Update.
54608         * modules/unistr/u8-to-u32: Update.
54609
54610 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54611
54612         Sync from Libtool.
54613         * lib/argz.c: Do not include strings.h nor memory.h, include
54614         string.h unconditionally.  Patch by Simon Josefsson.
54615
54616 2007-01-27  Bruno Haible  <bruno@clisp.org>
54617
54618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54619         from gl_HEADER_STRING_H_BODY.
54620         (gl_HEADER_STRING_H_BODY): Require it.
54621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54622         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54623         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54624         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54625         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54626         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54628         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54629         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54630         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54631         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54632         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54633         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54634         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54635         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54636
54637 2007-01-27  Bruno Haible  <bruno@clisp.org>
54638
54639         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54640         check_PROGRAMS into noinst_PROGRAMS.
54641         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54642         check_PROGRAMS in this case.
54643         (func_import): Set for_test to false.
54644         (func_create_testdir): Set for_test to true.
54645
54646 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54647             Bruno Haible  <bruno@clisp.org>
54648
54649         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54650         (Depends-on): Add string.
54651         (Includes): Use <string.h> instead of strcasestr.h.
54652         * modules/string (Makefile.am): Also substitute the value of
54653         REPLACE_STRCASESTR.
54654         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54655         assume strcasestr is declared in <string.h> not <strings.h>. Also
54656         set REPLACE_STRCASESTR.
54657         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54658         REPLACE_STRCASESTR.
54659         * lib/strcasestr.h: Remove file.
54660         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54661         * lib/string_.h (strcasestr): New declaration.
54662
54663 2007-01-27  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/string_.h: Use 'extern'.
54666
54667 2007-01-27  Jim Meyering  <jim@meyering.net>
54668
54669         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54670         of set-but-not-used local, "q".
54671
54672         * lib/mempcpy.c: Include <config.h> before <string.h>.
54673         This fixes a compilation error on HP-UX, due to the system's
54674         "restrict"-using mempcpy prototype.
54675
54676 2007-01-26  Bruno Haible  <bruno@clisp.org>
54677
54678         Small optimization.
54679         * lib/javacomp.c: Include c-strstr.h.
54680          (is_envjavac_gcj): Use c_strstr instead of strstr.
54681         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54682
54683 2007-01-26  Bruno Haible  <bruno@clisp.org>
54684
54685         * MODULES.html.sh (Unicode string functions): Add the new modules.
54686
54687         * modules/uniconv/u32-strconv-to-locale: New file.
54688         * lib/uniconv/u32-strconv-to-locale.c: New file.
54689
54690         * modules/uniconv/u16-strconv-to-locale: New file.
54691         * lib/uniconv/u16-strconv-to-locale.c: New file.
54692
54693         * modules/uniconv/u8-strconv-to-locale: New file.
54694         * lib/uniconv/u8-strconv-to-locale.c: New file.
54695
54696         * modules/uniconv/u32-strconv-from-locale: New file.
54697         * lib/uniconv/u32-strconv-from-locale.c: New file.
54698
54699         * modules/uniconv/u16-strconv-from-locale: New file.
54700         * lib/uniconv/u16-strconv-from-locale.c: New file.
54701
54702         * modules/uniconv/u8-strconv-from-locale: New file.
54703         * lib/uniconv/u8-strconv-from-locale.c: New file.
54704
54705         * modules/uniconv/u32-strconv-to-enc: New file.
54706         * lib/uniconv/u32-strconv-to-enc.c: New file.
54707         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54708         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54709
54710         * modules/uniconv/u16-strconv-to-enc: New file.
54711         * lib/uniconv/u16-strconv-to-enc.c: New file.
54712         * lib/uniconv/u-strconv-to-enc.h: New file.
54713         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54714         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54715
54716         * modules/uniconv/u8-strconv-to-enc: New file.
54717         * lib/uniconv/u8-strconv-to-enc.c: New file.
54718         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54719         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54720
54721         * modules/uniconv/u32-strconv-from-enc: New file.
54722         * lib/uniconv/u32-strconv-from-enc.c: New file.
54723         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54724         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54725
54726         * modules/uniconv/u16-strconv-from-enc: New file.
54727         * lib/uniconv/u16-strconv-from-enc.c: New file.
54728         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54729         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54730
54731         * modules/uniconv/u8-strconv-from-enc: New file.
54732         * lib/uniconv/u8-strconv-from-enc.c: New file.
54733         * lib/uniconv/u-strconv-from-enc.h: New file.
54734         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54735         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54736
54737         * modules/uniconv/u32-conv-from-enc: New file.
54738         * lib/uniconv/u32-conv-from-enc.c: New file.
54739         * modules/uniconv/u32-conv-from-enc-tests: New file.
54740         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54741
54742         * modules/uniconv/u16-conv-from-enc: New file.
54743         * lib/uniconv/u16-conv-from-enc.c: New file.
54744         * lib/uniconv/u-conv-from-enc.h: New file.
54745         * modules/uniconv/u16-conv-from-enc-tests: New file.
54746         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54747
54748         * modules/uniconv/u8-conv-from-enc: New file.
54749         * lib/uniconv/u8-conv-from-enc.c: New file.
54750         * modules/uniconv/u8-conv-from-enc-tests: New file.
54751         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54752
54753         * modules/uniconv/base: New file.
54754         * lib/uniconv.h: New file.
54755
54756 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54757
54758         * doc/gnulib-tool.texi (Initial import): Update to match current
54759         behavior with strdup module.
54760         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54761         * lib/memmem.h: Remove; all uses removed.  This is now done
54762         by <string.h>.
54763         * lib/mempcpy.h: Likewise.
54764         * lib/memrchr.h: Likewise.
54765         * lib/stpcpy.h: Likewise.
54766         * lib/stpncpy.h: Likewise.
54767         * lib/strcase.h: Likewise.
54768         * lib/strchrnul.h: Likewise.
54769         * lib/strdup.h: Likewise.
54770         * lib/strndup.h: Likewise.
54771         * lib/strnlen.h: Likewise.
54772         * lib/strpbrk.h: Likewise.
54773         * lib/strsep.h: Likewise.
54774         * lib/strstr.h: Likewise.
54775         * lib/strtok_r.h: Likewise.
54776         * lib/string_.h: New file.
54777         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54778         Rely on <string.h> instead.
54779         * lib/canon-host.c: Likewise.
54780         * lib/chdir-long.c: Likewise.
54781         * lib/concatpath.c: Likewise.
54782         * lib/exclude.c: Likewise.
54783         * lib/fchdir.c: Likewise.
54784         * lib/getaddrinfo.c: Likewise.
54785         * lib/getcwd.c: Likewise.
54786         * lib/getsubopt.c: Likewise.
54787         * lib/glob.c: Likewise.
54788         * lib/hard-locale.c: Likewise.
54789         * lib/iconvme.c: Likewise.
54790         * lib/javacomp.c: Likewise.
54791         * lib/mempcpy.c: Likewise.
54792         * lib/memrchr.c: Likewise.
54793         * lib/regex_internal.h: Likewise.
54794         * lib/stpncpy.c: Likewise.
54795         * lib/strcasecmp.c: Likewise.
54796         * lib/strchrnul.c: Likewise.
54797         * lib/strdup.c: Likewise.
54798         * lib/striconv.c: Likewise.
54799         * lib/striconveh.c: Likewise.
54800         * lib/striconveha.c: Likewise.
54801         * lib/strncasecmp.c: Likewise.
54802         * lib/strndup.c: Likewise.
54803         * lib/strnlen.c: Likewise.
54804         * lib/strsep.c: Likewise.
54805         * lib/strstr.c: Likewise.
54806         * lib/strtok_r.c: Likewise.
54807         * lib/userspec.c: Likewise.
54808         * lib/w32spawn.h: Likewise.
54809         * lib/xstrndup.c: Likewise.
54810         * lib/mountlist.c (strstr): Remove decl.
54811         * m4/string_h.m4: New file.
54812         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54813         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54814         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54815         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54816         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54817         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54818         Set REPLACE_STRCASECMP if necessary.
54819         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54820         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54821         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54822         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54823         HAVE_DECL_STRDUP if necessary.
54824         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54825         since gl_FUNC_STRNDUP does that now.
54826         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54827         Check for decl here...
54828         (gl_PREREQ_STRNLEN): ... not here.
54829         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54830         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54831         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54832         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54833         necessary.
54834         * modules/string: New file.
54835         * modules/memmem (Files): Remove special-purpose include file.
54836         (Depends-on): Add string.
54837         (Include): Include <string.h>, not the removed file.
54838         * modules/mempcpy: Likewise.
54839         * modules/memrchr: Likewise.
54840         * modules/stpcpy: Likewise.
54841         * modules/stpncpy: Likewise.
54842         * modules/strcase: Likewise.
54843         * modules/strchrnul: Likewise.
54844         * modules/strdup: Likewise.
54845         * modules/strndup: Likewise.
54846         * modules/strnlen: Likewise.
54847         * modules/strpbrk: Likewise.
54848         * modules/strsep: Likewise.
54849         * modules/strstr: Likewise.
54850         * modules/strtok_r: Likewise.
54851         * tests/test-dirname.c: Don't include "strdup.h", since
54852         <string.h> now suffices.
54853         * tests/test-memmem.c: Don't include "memmem.h", since
54854         <string.h> now suffices.
54855
54856 2007-01-25  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54859         *resultp is 0.
54860
54861         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54862         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54863         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54864         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54865
54866         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54867         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54868         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54869         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54870         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54871         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54872
54873 2007-01-24  Bruno Haible  <bruno@clisp.org>
54874
54875         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54876         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54877         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54878         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54879         gl_FUNC_FTS_CORE.
54880         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54881         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54882         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54883         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54884         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54885         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54886         gl_FUNC_FCHOWNAT.
54887         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54888         gl_FUNC_STRFTIME.
54889         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54890         Reported by Ralf Wildenhues.
54891
54892 2007-01-24  Bruno Haible  <bruno@clisp.org>
54893
54894         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54895         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54896         gl_GETADDRINFO.
54897         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54898         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54899         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54900
54901 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54902
54903         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54904         Don't use 'exit'; just return from 'main'.
54905         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54906
54907         * lib/fnmatch_.h: Readjust white space and comments to match
54908         glibc, to avoid spurious diffs.
54909
54910 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54911
54912         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54913         2004-12-01 change by Jakub Jelinek, since this code won't compile
54914         if !LIBC.  Problem reported by Bob Proulx.
54915
54916 2007-01-23  Bruno Haible  <bruno@clisp.org>
54917
54918         * lib/striconveh.c: Include c-strcaseeq.h.
54919         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54920         * modules/striconveh (Depends-on): Add c-strcaseeq.
54921
54922 2007-01-23  Bruno Haible  <bruno@clisp.org>
54923
54924         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54925
54926         * modules/c-strcaseeq: New file.
54927         * lib/c-strcaseeq.h: New file.
54928
54929         * modules/streq: New file.
54930         * lib/streq.h: New file.
54931
54932 2007-01-23  Bruno Haible  <bruno@clisp.org>
54933
54934         * modules/striconveha-tests: New file.
54935         * tests/test-striconveha.c: New file.
54936
54937         * lib/striconveha.h: Include <stdbool.h>.
54938         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54939         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54940         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54941         (mem_iconveha): New function.
54942         (str_iconveha_notranslit): Renamed from str_iconveha.
54943         (str_iconveha): New function.
54944         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54945         c-strcase.
54946
54947 2007-01-23  Bruno Haible  <bruno@clisp.org>
54948
54949         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54950         encodings without forgiving before trying any encoding with handler.
54951         (str_iconveha): Try all encodings without forgiving before trying any
54952         encoding with handler.
54953
54954 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54955
54956         Import the following changes from libc.
54957
54958         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54959
54960         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54961
54962         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54963
54964         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54965         normal_bracket label.
54966
54967         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54968
54969         [BZ #361]
54970         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54971         to normal_bracket after fetching the next character.
54972
54973 2007-01-22  Bruno Haible  <bruno@clisp.org>
54974
54975         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54976         argument.
54977         * lib/striconveh.c (iconv_carefully_1): New function.
54978         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54979         argument.
54980         (str_cd_iconveh): Update.
54981         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54982         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54983         * tests/test-striconveh.c (MAGIC): New macro.
54984         (new_offsets): New function.
54985         (main): Test call with and without offsets.
54986
54987 2007-01-22  Bruno Haible  <bruno@clisp.org>
54988
54989         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54990         * modules/sys_select (Makefile.am): Likewise.
54991         * modules/sys_socket (Makefile.am): Likewise.
54992         * modules/sys_time (Makefile.am): Likewise.
54993
54994 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         * modules/gettimeofday (License): Change from GPL to LGPL, since
54997         gettimeofday is a library function.
54998
54999 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55000
55001         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55002
55003 2007-01-21  Bruno Haible  <bruno@clisp.org>
55004
55005         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55006
55007 2007-01-21  Bruno Haible  <bruno@clisp.org>
55008
55009         * modules/striconveha: New file.
55010         * lib/striconveha.h: New file.
55011         * lib/striconveha.c: New file.
55012         * MODULES.html.sh (Internationalization functions): Add striconveha.
55013         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55014         string.
55015         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55016
55017 2007-01-21  Bruno Haible  <bruno@clisp.org>
55018
55019         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55020         * lib/striconveh.c (str_iconveh): Likewise.
55021
55022 2007-01-21  Bruno Haible  <bruno@clisp.org>
55023
55024         * lib/striconveh.h (mem_iconveh): New declaration.
55025         * lib/striconveh.c (mem_iconveh): New function.
55026         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55027
55028 2007-01-21  Bruno Haible  <bruno@clisp.org>
55029
55030         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55031
55032         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55033         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55034         original result buffer.
55035         (str_cd_iconveh): Update.
55036         * tests/test-striconveh.c (main): Update.
55037
55038         * lib/striconv.h (mem_cd_iconv): Change specification.
55039         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55040         result buffer.
55041         (str_cd_iconv): Update.
55042         * tests/test-striconv.c (main): Update.
55043
55044 2007-01-21  Bruno Haible  <bruno@clisp.org>
55045
55046         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55047
55048 2007-01-20  Jim Meyering  <jim@meyering.net>
55049
55050         * lib/userspec.c (parse_with_separator): If a user or group string
55051         starts with "+", skip the corresponding name-to-ID look-up, since
55052         such a look-up must fail: user and group names may not include "+".
55053
55054 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55055
55056         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55057         since we now assume the sys_time module.
55058         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55059         check for sys/time.h; no longer needed.
55060         * modules/poll (Depends-on): Depend on sys_time.
55061
55062 2007-01-18  Bruno Haible  <bruno@clisp.org>
55063
55064         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55065         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55066
55067         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55068         gettimeofday.
55069
55070         * tests/test-gettimeofday.c: Include <time.h>.
55071         (dummy): Remove variable.
55072
55073         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55074         gl_HEADER_SYS_TIME_H.
55075         (gl_HEADER_SYS_TIME_H): New macro.
55076
55077         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55078         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55080         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55081         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55082         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55083         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55084         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55085         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55086         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55087         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55088
55089         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55090         last change; it caused a compilation error when cross-compiling to
55091         Cygwin.
55092
55093 2007-01-18  Jim Meyering  <jim@meyering.net>
55094
55095         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55096         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55097         than the race-prone "test -d sys || mkdir sys".
55098         (configure.ac): Use AC_PROG_MKDIR_P.
55099         * modules/sys_select: Likewise.
55100         * modules/sys_socket: Likewise.
55101         * modules/sys_time: Likewise.
55102
55103 2007-01-18  Eric Blake  <ebb9@byu.net>
55104
55105         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55106         replace gettimeofday.
55107         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55108         name, to avoid infinite recursion.
55109
55110 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55111
55112         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55113         module sys_time.
55114         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55115         assume timespec.h defines struct timeval.
55116         * lib/settime.c: Likewise.
55117         * lib/utimens.c: Likewise.
55118         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55119         since we now assume the gettimeofday module.
55120         * lib/tempname.c (__gen_tempname): Likewise.
55121         * lib/gettimeofday.h: Remove.
55122         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55123         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55124         Include <time.h>, for 'time()'.
55125         (localtime_buffer_addr): Also use this workaround if
55126         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55127         to simplify the uses.  All uses changed.
55128         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55129         that #undef is inside {}, and 'const' follows type name consistently.
55130         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55131         (gettimeofday): Do not use the maximum possible value for
55132         tv->tv_usec, since that might break usages other than ls.c.
55133         Instead, we'll leave ls.c alone.  This undoes today's patch
55134         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55135         we've never observed the problem but might as well keep the
55136         canary.
55137         * lib/nanosleep.c: Include timespec.h first, for interface check.
55138         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55139         now assume the sys_time module.
55140         * lib/tempname.c: Likewise.
55141         * lib/timespec.h: Likewise.
55142         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55143         needed.
55144         * lib/strftime.c: Likewise.
55145         * lib/timespec.h: Likewise.
55146         * lib/posixtm.c: Include posixtm.h first, for interface check.
55147         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55148         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55149         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55150         * lib/sys_time_.h: New file.
55151         * lib/timespec.h (struct timespec): Use long int, not long.
55152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55153         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55154         Remove obsolescent call to AC_HEADER_TIME.
55155         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55157         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55158         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55159         Likewise.
55160         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55161         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55162         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55163         into the sys_time module.  Check for gettimeofday just once.
55164         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55165         for gettimeofday signature to just check the signature.  Merely
55166         compile it, since linking doesn't test signature.  Improve test for
55167         whether gettimeofday.o is actually needed.
55168         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55169         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55170         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55171         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55172         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55173         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55174         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55175         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55176         than worrying about sys/time.h.
55177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55178         Don't bother worrying about TIME_WITH_SYS_TIME.
55179         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55180         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55181         * m4/sys_time_h.m4: New file.
55182         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55183         Don't include sys/time.h.  Return from main rather than exiting.
55184         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55185         all uses changed.
55186         * modules/gethrxtime (Depends-on): Add sys_time.
55187         * modules/gettime (Depends-on): Likewise.
55188         * modules/gettimeofday (Depends-on): Likewise.
55189         * modules/nanosleep (Depends-on): Likewise.
55190         * modules/settime (Depends-on): Likewise.
55191         * modules/tempname (Depends-on): Likewise.
55192         * modules/utimens (Depends-on): Likewise.
55193         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55194         (Include): Change back to <sys/time.h>.
55195         (Maintainer): Add self.
55196         * modules/sys_time: New file.
55197         * modules/tempname (Depends-on): Add gettimeofday.
55198         * tests/test-gettimeofday.c: Include <sys/time.h>
55199         rather than gettimeofday.h.
55200
55201 2007-01-17  Bruno Haible  <bruno@clisp.org>
55202
55203         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55204         the license default to GPL.
55205         (func_create_testdir): Don't complain if a module is LGPL and its
55206         tests module depends on GPLed modules.
55207
55208 2007-01-17  Bruno Haible  <bruno@clisp.org>
55209
55210         * lib/gettimeofday.c (gettimeofday): Add code for the case
55211         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55212         maximum possible value for tv->tv_usec, rather than the minimum one.
55213
55214 2005-10-08  Martin Lambers  <marlam@marlam.de>
55215 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55216 2007-01-16  Bruno Haible  <bruno@clisp.org>
55217
55218         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55219         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55220         gl_FUNC_GETTIMEOFDAY.
55221         (Include): Add gettimeofday.h.
55222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55223         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55224         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55225         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55226         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55227         * lib/gettimeofday.h: New file.
55228         * lib/gettimeofday.c: Include <sys/timeb.h>.
55229         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55230         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55231         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55232         fall back on time().
55233
55234         * tests/test-gettimeofday.c: New file.
55235         * modules/gettimeofday-tests: New file.
55236
55237 2007-01-16  Eric Blake  <ebb9@byu.net>
55238
55239         * modules/fnmatch (Depends-on): Depend on wchar.
55240         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55241         * m4/fnmatch.m4: Likewise.
55242         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55243         * m4/mbchar.m4: Likewise.
55244         * modules/mbswidth (Depends-on): Depend on wchar.
55245         * lib/mbswidth.c: Assume <wchar.h>.
55246         * m4/mbswidth.m4: Likewise.
55247         * modules/quotearg (Depends-on): Depend on wchar.
55248         * lib/quotearg.c: Assume <wchar.h>.
55249         * m4/quotearg.m4: Likewise.
55250         * modules/regex (Depends-on): Depend on wchar.
55251         * lib/regex_internal.h: Assume <wchar.h>.
55252         * m4/regex.m4: Likewise.
55253         * modules/stdint (Depends-on): Depend on wchar.
55254         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55255         * m4/stdint.m4: Likewise.
55256         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55257         * modules/strftime (Depends-on): Depend on wchar.
55258         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55259         * modules/strtol (Depends-on): Depend on wchar.
55260         * lib/strtol.c: Assume <wchar.h>.
55261         * modules/wcwidth (Depends-on): Depend on wchar.
55262         * lib/wcwidth.h: Assume <wchar.h>.
55263         * m4/wcwidth.m4: Likewise.
55264
55265 2007-01-16  Bruno Haible  <bruno@clisp.org>
55266
55267         * modules/csharpexec-script: New, created from...
55268         * modules/csharpexec: ... this.
55269
55270 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55271
55272         * modules/javaexec-script: New, created from...
55273         * modules/javaexec: ... this.
55274
55275 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55276
55277         * modules/poll (Dependencies): Add sys_select.
55278
55279 2007-01-15  Jim Meyering  <jim@meyering.net>
55280
55281         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55282         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55283         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55284         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55285
55286 2007-01-15  Bruno Haible  <bruno@clisp.org>
55287
55288         * modules/striconveh: New file.
55289         * lib/striconveh.h: New file.
55290         * lib/striconveh.c: New file.
55291         * MODULES.html.sh (Internationalization functions): Add striconveh.
55292
55293         * modules/striconveh-tests: New file.
55294         * tests/test-striconveh.c: New file.
55295
55296 2007-01-15  Bruno Haible  <bruno@clisp.org>
55297
55298         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55299         not from GNU libiconv or GNU libc.
55300
55301 2007-01-15  Bruno Haible  <bruno@clisp.org>
55302
55303         * doc/gnulib-intro.texi (Copyright): Explain the different license
55304         terms for module descriptions, autoconf macros, tests, documentation.
55305
55306 2007-01-14  Bruno Haible  <bruno@clisp.org>
55307
55308         * modules/striconv-tests: New file.
55309         * tests/test-striconv.c: New file.
55310
55311 2007-01-14  Bruno Haible  <bruno@clisp.org>
55312
55313         * modules/iconv-tests: New file.
55314         * tests/test-iconv.c: New file.
55315
55316 2007-01-14  Bruno Haible  <bruno@clisp.org>
55317
55318         * gnulib-tool (func_get_license): For test modules, use the license of
55319         the main module.
55320
55321 2007-01-14  Bruno Haible  <bruno@clisp.org>
55322
55323         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55324         if iconv is found to exist.
55325
55326 2007-01-14  Bruno Haible  <bruno@clisp.org>
55327
55328         * modules/c-ctype-tests: New file.
55329         * tests/test-c-ctype.c: New file.
55330
55331 2007-01-14  Bruno Haible  <bruno@clisp.org>
55332
55333         * modules/binary-io-tests: New file.
55334         * tests/test-binary-io.sh: New file.
55335         * tests/test-binary-io.c: New file.
55336
55337 2007-01-14  Bruno Haible  <bruno@clisp.org>
55338
55339         * modules/array-oset-tests: New file.
55340         * tests/test-array_oset.c: New file.
55341
55342 2007-01-14  Bruno Haible  <bruno@clisp.org>
55343
55344         * modules/array-list-tests: New file.
55345         * tests/test-array_list.c: New file.
55346
55347 2007-01-14  Bruno Haible  <bruno@clisp.org>
55348
55349         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55350         and make.
55351         Reported by Simon Josefsson in
55352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55353
55354 2007-01-14  Bruno Haible  <bruno@clisp.org>
55355
55356         * modules/allocsa-tests: New file.
55357         * tests/test-allocsa.c: New file.
55358
55359 2007-01-14  Bruno Haible  <bruno@clisp.org>
55360
55361         * modules/fchdir (Depends-on): Add absolute-header.
55362         * modules/unistd (Depends-on): Likewise.
55363
55364 2006-12-30  Bruno Haible  <bruno@clisp.org>
55365
55366         * modules/fchdir: New file.
55367         * modules/unistd (Files): Add lib/unistd_.h.
55368         (Makefile.am): Generate unistd.h from unistd_.h.
55369         * lib/fchdir.c: New file.
55370         * lib/dirent_.h: New file.
55371         * lib/unistd_.h: New file.
55372         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55373         * m4/fchdir.m4: New file.
55374         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55375         (gl_HEADER_UNISTD): Invoke it.
55376         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55377         function.
55378         * lib/backupfile.c (opendir, closedir): Undefine.
55379         * lib/chown.c (open, close): Undefine.
55380         * lib/clean-temp.c (open, close): Undefine.
55381         * lib/copy-file.c (open, close): Undefine.
55382         * lib/execute.c (open, close): Undefine.
55383         * lib/fsusage.c (open, close): Undefine.
55384         * lib/gc-gnulib.c (open, close): Undefine.
55385         * lib/getcwd.c (opendir, closedir): Undefine.
55386         * lib/glob.c (opendir, closedir): Undefine.
55387         * lib/javacomp.c (open, close): Undefine.
55388         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55389         * lib/openat-proc.c (open, close): Undefine.
55390         * lib/pagealign_alloc.c (open, close): Undefine.
55391         * lib/pipe.c (open, close): Undefine.
55392         * lib/progreloc.c (open, close): Undefine.
55393         * lib/savedir.c (opendir, closedir): Undefine.
55394         * lib/utime.c (open, close): Undefine.
55395         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55396
55397 2007-01-10  Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55400
55401 2007-01-12  Eric Blake  <ebb9@byu.net>
55402
55403         Provide a robust <wchar.h>.  Further simplifications are now
55404         possible in other modules, but not included here.
55405         * modules/wchar: New module.
55406         * m4/wchar.m4: New file.
55407         * lib/wchar_.h: Likewise.
55408         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55409         of the new module.
55410         * MODULES.html.sh (Extended multibyte and wide character utilities):
55411         New section.
55412
55413 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55414
55415         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55416         to a reasonable default for memory allocation.
55417         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55418         file system that reports garbage st_size values for symlinks.
55419         Problem reported by Liyang Hu.
55420
55421 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55422
55423         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55424         Emacs .#* auto-save files).
55425
55426 2007-01-11  Bruno Haible  <bruno@clisp.org>
55427
55428         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55429         directory.
55430
55431 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55432
55433         Use @...@ consistently in lib/wctype_.h.
55434         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55435         on it being set to 1 or 0.
55436         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55437         go back to AC_SUBSTing it.
55438         * modules/wctype (Makefile.am): Undo previous change.
55439
55440 2007-01-10  Eric Blake  <ebb9@byu.net>
55441
55442         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55443         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55444         * modules/wctype (Makefile.am): Likewise.
55445         Reported by Chris McGuire.
55446
55447 2007-01-10  Jim Meyering  <jim@meyering.net>
55448
55449         fts.c: a small readability/maintainability improvement
55450         * lib/fts.c (fts_read): Make this code slightly more readable and
55451         maintainable by hoisting the "sp->fts_cur = p" assignments to
55452         immediately follow the statements that set P.  Derived from
55453         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55454
55455 2007-01-10  Eric Blake  <ebb9@byu.net>
55456
55457         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55458         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55460         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55461         Reported by Chris McGuire.
55462
55463 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55464
55465         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55466         in sed script.
55467
55468 2007-01-09  Bruno Haible  <bruno@clisp.org>
55469
55470         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55471         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55472         variables.
55473         (func_module): Use them.
55474
55475 2007-01-09  Bruno Haible  <bruno@clisp.org>
55476
55477         * modules/unistr/base: New file.
55478         * lib/unistr.h: New file.
55479
55480         * modules/unistr/u8-to-u16: New file.
55481         * lib/unistr/u8-to-u16.c: New file.
55482
55483         * modules/unistr/u8-to-u32: New file.
55484         * lib/unistr/u8-to-u32.c: New file.
55485
55486         * modules/unistr/u16-to-u8: New file.
55487         * lib/unistr/u16-to-u8.c: New file.
55488
55489         * modules/unistr/u16-to-u32: New file.
55490         * lib/unistr/u16-to-u32.c: New file.
55491
55492         * modules/unistr/u32-to-u8: New file.
55493         * lib/unistr/u32-to-u8.c: New file.
55494
55495         * modules/unistr/u32-to-u16: New file.
55496         * lib/unistr/u32-to-u16.c: New file.
55497
55498         * modules/unistr/u8-check: New file.
55499         * modules/unistr/u16-check: New file.
55500         * modules/unistr/u32-check: New file.
55501         * lib/unistr/u8-check.c: New file.
55502         * lib/unistr/u16-check.c: New file.
55503         * lib/unistr/u32-check.c: New file.
55504
55505         * modules/unistr/u8-chr: New file.
55506         * modules/unistr/u16-chr: New file.
55507         * modules/unistr/u32-chr: New file.
55508         * lib/unistr/u8-chr.c: New file.
55509         * lib/unistr/u16-chr.c: New file.
55510         * lib/unistr/u32-chr.c: New file.
55511
55512         * modules/unistr/u8-cmp: New file.
55513         * modules/unistr/u16-cmp: New file.
55514         * modules/unistr/u32-cmp: New file.
55515         * lib/unistr/u8-cmp.c: New file.
55516         * lib/unistr/u16-cmp.c: New file.
55517         * lib/unistr/u32-cmp.c: New file.
55518
55519         * modules/unistr/u8-cpy: New file.
55520         * modules/unistr/u16-cpy: New file.
55521         * modules/unistr/u32-cpy: New file.
55522         * lib/unistr/u8-cpy.c: New file.
55523         * lib/unistr/u16-cpy.c: New file.
55524         * lib/unistr/u32-cpy.c: New file.
55525         * lib/unistr/u-cpy.h: New file.
55526
55527         * modules/unistr/u8-cpy-alloc: New file.
55528         * modules/unistr/u16-cpy-alloc: New file.
55529         * modules/unistr/u32-cpy-alloc: New file.
55530         * lib/unistr/u8-cpy-alloc.c: New file.
55531         * lib/unistr/u16-cpy-alloc.c: New file.
55532         * lib/unistr/u32-cpy-alloc.c: New file.
55533         * lib/unistr/u-cpy-alloc.h: New file.
55534
55535         * modules/unistr/u8-endswith: New file.
55536         * modules/unistr/u16-endswith: New file.
55537         * modules/unistr/u32-endswith: New file.
55538         * lib/unistr/u8-endswith.c: New file.
55539         * lib/unistr/u16-endswith.c: New file.
55540         * lib/unistr/u32-endswith.c: New file.
55541         * lib/unistr/u-endswith.h: New file.
55542
55543         * modules/unistr/u8-mblen: New file.
55544         * modules/unistr/u16-mblen: New file.
55545         * modules/unistr/u32-mblen: New file.
55546         * lib/unistr/u8-mblen.c: New file.
55547         * lib/unistr/u16-mblen.c: New file.
55548         * lib/unistr/u32-mblen.c: New file.
55549
55550         * modules/unistr/u8-mbtouc: New file.
55551         * modules/unistr/u16-mbtouc: New file.
55552         * modules/unistr/u32-mbtouc: New file.
55553         * lib/unistr/u8-mbtouc.c: New file.
55554         * lib/unistr/u16-mbtouc.c: New file.
55555         * lib/unistr/u32-mbtouc.c: New file.
55556
55557         * modules/unistr/u8-mbtouc-safe: New file.
55558         * modules/unistr/u16-mbtouc-safe: New file.
55559         * modules/unistr/u32-mbtouc-safe: New file.
55560         * lib/unistr/u8-mbtouc-safe.c: New file.
55561         * lib/unistr/u16-mbtouc-safe.c: New file.
55562         * lib/unistr/u32-mbtouc-safe.c: New file.
55563
55564         * modules/unistr/u8-move: New file.
55565         * modules/unistr/u16-move: New file.
55566         * modules/unistr/u32-move: New file.
55567         * lib/unistr/u8-move.c: New file.
55568         * lib/unistr/u16-move.c: New file.
55569         * lib/unistr/u32-move.c: New file.
55570         * lib/unistr/u-move.h: New file.
55571
55572         * modules/unistr/u8-next: New file.
55573         * modules/unistr/u16-next: New file.
55574         * modules/unistr/u32-next: New file.
55575         * lib/unistr/u8-next.c: New file.
55576         * lib/unistr/u16-next.c: New file.
55577         * lib/unistr/u32-next.c: New file.
55578
55579         * modules/unistr/u8-prev: New file.
55580         * modules/unistr/u16-prev: New file.
55581         * modules/unistr/u32-prev: New file.
55582         * lib/unistr/u8-prev.c: New file.
55583         * lib/unistr/u16-prev.c: New file.
55584         * lib/unistr/u32-prev.c: New file.
55585
55586         * modules/unistr/u8-set: New file.
55587         * modules/unistr/u16-set: New file.
55588         * modules/unistr/u32-set: New file.
55589         * lib/unistr/u8-set.c: New file.
55590         * lib/unistr/u16-set.c: New file.
55591         * lib/unistr/u32-set.c: New file.
55592         * lib/unistr/u-set.h: New file.
55593
55594         * modules/unistr/u8-startswith: New file.
55595         * modules/unistr/u16-startswith: New file.
55596         * modules/unistr/u32-startswith: New file.
55597         * lib/unistr/u8-startswith.c: New file.
55598         * lib/unistr/u16-startswith.c: New file.
55599         * lib/unistr/u32-startswith.c: New file.
55600         * lib/unistr/u-startswith.h: New file.
55601
55602         * modules/unistr/u8-stpcpy: New file.
55603         * modules/unistr/u16-stpcpy: New file.
55604         * modules/unistr/u32-stpcpy: New file.
55605         * lib/unistr/u8-stpcpy.c: New file.
55606         * lib/unistr/u16-stpcpy.c: New file.
55607         * lib/unistr/u32-stpcpy.c: New file.
55608         * lib/unistr/u-stpcpy.h: New file.
55609
55610         * modules/unistr/u8-stpncpy: New file.
55611         * modules/unistr/u16-stpncpy: New file.
55612         * modules/unistr/u32-stpncpy: New file.
55613         * lib/unistr/u8-stpncpy.c: New file.
55614         * lib/unistr/u16-stpncpy.c: New file.
55615         * lib/unistr/u32-stpncpy.c: New file.
55616         * lib/unistr/u-stpncpy.h: New file.
55617
55618         * modules/unistr/u8-strcat: New file.
55619         * modules/unistr/u16-strcat: New file.
55620         * modules/unistr/u32-strcat: New file.
55621         * lib/unistr/u8-strcat.c: New file.
55622         * lib/unistr/u16-strcat.c: New file.
55623         * lib/unistr/u32-strcat.c: New file.
55624         * lib/unistr/u-strcat.h: New file.
55625
55626         * modules/unistr/u8-strchr: New file.
55627         * modules/unistr/u16-strchr: New file.
55628         * modules/unistr/u32-strchr: New file.
55629         * lib/unistr/u8-strchr.c: New file.
55630         * lib/unistr/u16-strchr.c: New file.
55631         * lib/unistr/u32-strchr.c: New file.
55632
55633         * modules/unistr/u8-strcmp: New file.
55634         * modules/unistr/u16-strcmp: New file.
55635         * modules/unistr/u32-strcmp: New file.
55636         * lib/unistr/u8-strcmp.c: New file.
55637         * lib/unistr/u16-strcmp.c: New file.
55638         * lib/unistr/u32-strcmp.c: New file.
55639
55640         * modules/unistr/u8-strcpy: New file.
55641         * modules/unistr/u16-strcpy: New file.
55642         * modules/unistr/u32-strcpy: New file.
55643         * lib/unistr/u8-strcpy.c: New file.
55644         * lib/unistr/u16-strcpy.c: New file.
55645         * lib/unistr/u32-strcpy.c: New file.
55646         * lib/unistr/u-strcpy.h: New file.
55647
55648         * modules/unistr/u8-strcspn: New file.
55649         * modules/unistr/u16-strcspn: New file.
55650         * modules/unistr/u32-strcspn: New file.
55651         * lib/unistr/u8-strcspn.c: New file.
55652         * lib/unistr/u16-strcspn.c: New file.
55653         * lib/unistr/u32-strcspn.c: New file.
55654         * lib/unistr/u-strcspn.h: New file.
55655
55656         * modules/unistr/u8-strdup: New file.
55657         * modules/unistr/u16-strdup: New file.
55658         * modules/unistr/u32-strdup: New file.
55659         * lib/unistr/u8-strdup.c: New file.
55660         * lib/unistr/u16-strdup.c: New file.
55661         * lib/unistr/u32-strdup.c: New file.
55662         * lib/unistr/u-strdup.h: New file.
55663
55664         * modules/unistr/u8-strlen: New file.
55665         * modules/unistr/u16-strlen: New file.
55666         * modules/unistr/u32-strlen: New file.
55667         * lib/unistr/u8-strlen.c: New file.
55668         * lib/unistr/u16-strlen.c: New file.
55669         * lib/unistr/u32-strlen.c: New file.
55670         * lib/unistr/u-strlen.h: New file.
55671
55672         * modules/unistr/u8-strmblen: New file.
55673         * modules/unistr/u16-strmblen: New file.
55674         * modules/unistr/u32-strmblen: New file.
55675         * lib/unistr/u8-strmblen.c: New file.
55676         * lib/unistr/u16-strmblen.c: New file.
55677         * lib/unistr/u32-strmblen.c: New file.
55678
55679         * modules/unistr/u8-strmbtouc: New file.
55680         * modules/unistr/u16-strmbtouc: New file.
55681         * modules/unistr/u32-strmbtouc: New file.
55682         * lib/unistr/u8-strmbtouc.c: New file.
55683         * lib/unistr/u16-strmbtouc.c: New file.
55684         * lib/unistr/u32-strmbtouc.c: New file.
55685
55686         * modules/unistr/u8-strncat: New file.
55687         * modules/unistr/u16-strncat: New file.
55688         * modules/unistr/u32-strncat: New file.
55689         * lib/unistr/u8-strncat.c: New file.
55690         * lib/unistr/u16-strncat.c: New file.
55691         * lib/unistr/u32-strncat.c: New file.
55692         * lib/unistr/u-strncat.h: New file.
55693
55694         * modules/unistr/u8-strncmp: New file.
55695         * modules/unistr/u16-strncmp: New file.
55696         * modules/unistr/u32-strncmp: New file.
55697         * lib/unistr/u8-strncmp.c: New file.
55698         * lib/unistr/u16-strncmp.c: New file.
55699         * lib/unistr/u32-strncmp.c: New file.
55700
55701         * modules/unistr/u8-strncpy: New file.
55702         * modules/unistr/u16-strncpy: New file.
55703         * modules/unistr/u32-strncpy: New file.
55704         * lib/unistr/u8-strncpy.c: New file.
55705         * lib/unistr/u16-strncpy.c: New file.
55706         * lib/unistr/u32-strncpy.c: New file.
55707         * lib/unistr/u-strncpy.h: New file.
55708
55709         * modules/unistr/u8-strnlen: New file.
55710         * modules/unistr/u16-strnlen: New file.
55711         * modules/unistr/u32-strnlen: New file.
55712         * lib/unistr/u8-strnlen.c: New file.
55713         * lib/unistr/u16-strnlen.c: New file.
55714         * lib/unistr/u32-strnlen.c: New file.
55715         * lib/unistr/u-strnlen.h: New file.
55716
55717         * modules/unistr/u8-strpbrk: New file.
55718         * modules/unistr/u16-strpbrk: New file.
55719         * modules/unistr/u32-strpbrk: New file.
55720         * lib/unistr/u8-strpbrk.c: New file.
55721         * lib/unistr/u16-strpbrk.c: New file.
55722         * lib/unistr/u32-strpbrk.c: New file.
55723         * lib/unistr/u-strpbrk.h: New file.
55724
55725         * modules/unistr/u8-strrchr: New file.
55726         * modules/unistr/u16-strrchr: New file.
55727         * modules/unistr/u32-strrchr: New file.
55728         * lib/unistr/u8-strrchr.c: New file.
55729         * lib/unistr/u16-strrchr.c: New file.
55730         * lib/unistr/u32-strrchr.c: New file.
55731
55732         * modules/unistr/u8-strspn: New file.
55733         * modules/unistr/u16-strspn: New file.
55734         * modules/unistr/u32-strspn: New file.
55735         * lib/unistr/u8-strspn.c: New file.
55736         * lib/unistr/u16-strspn.c: New file.
55737         * lib/unistr/u32-strspn.c: New file.
55738         * lib/unistr/u-strspn.h: New file.
55739
55740         * modules/unistr/u8-strstr: New file.
55741         * modules/unistr/u16-strstr: New file.
55742         * modules/unistr/u32-strstr: New file.
55743         * lib/unistr/u8-strstr.c: New file.
55744         * lib/unistr/u16-strstr.c: New file.
55745         * lib/unistr/u32-strstr.c: New file.
55746         * lib/unistr/u-strstr.h: New file.
55747
55748         * modules/unistr/u8-strtok: New file.
55749         * modules/unistr/u16-strtok: New file.
55750         * modules/unistr/u32-strtok: New file.
55751         * lib/unistr/u8-strtok.c: New file.
55752         * lib/unistr/u16-strtok.c: New file.
55753         * lib/unistr/u32-strtok.c: New file.
55754         * lib/unistr/u-strtok.h: New file.
55755
55756         * modules/unistr/u8-uctomb: New file.
55757         * modules/unistr/u16-uctomb: New file.
55758         * modules/unistr/u32-uctomb: New file.
55759         * lib/unistr/u8-uctomb.c: New file.
55760         * lib/unistr/u16-uctomb.c: New file.
55761         * lib/unistr/u32-uctomb.c: New file.
55762
55763         * MODULES.html.sh (Unicode string functions): Add the new modules.
55764
55765 2007-01-08  Bruno Haible  <bruno@clisp.org>
55766
55767         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55768         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55769         subdirectories.
55770
55771 2007-01-08  Karl Berry  <karl@gnu.org>
55772
55773         * doc/error.texi: mention that main() fns must set program_name
55774         when progname is used.
55775
55776 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55777
55778         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55779         WCTYPE_H is empty, for the benefit of builds from non-distclean
55780         directories.  Problem reported by Eric Blake in
55781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55782
55783 2007-01-08  Bruno Haible  <bruno@clisp.org>
55784
55785         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55786         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55787         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55788         PROVIDE_CANONICALIZE_FILENAME_MODE.
55789         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55790
55791 2007-01-08  Bruno Haible  <bruno@clisp.org>
55792
55793         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55794         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55795         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55796         * lib/fts.c: Likewise.
55797         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55798
55799 2006-12-25  Bruno Haible  <bruno@clisp.org>
55800
55801         * modules/utf8-ucs4-safe: New file.
55802         * lib/utf8-ucs4-safe.h: New file.
55803         * lib/unistr/utf8-ucs4-safe.c: New file.
55804
55805         * modules/utf16-ucs4-safe: New file.
55806         * lib/utf16-ucs4-safe.h: New file.
55807         * lib/unistr/utf16-ucs4-safe.c: New file.
55808
55809         * MODULES.html.sh (Unicode string functions): Add the new modules.
55810
55811 2007-01-08  Bruno Haible  <bruno@clisp.org>
55812
55813         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55814         (Depends-on): Add unitypes.
55815         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55816         (u8_mbtouc_aux): Move out to separate file.
55817         (u8_mbtouc): Use ucs4_t, uint8_t types.
55818         * lib/unistr/utf8-ucs4.c: New file.
55819
55820         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55821         (Depends-on): Add unitypes.
55822         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55823         (u16_mbtouc_aux): Move out to separate file.
55824         (u16_mbtouc): Use ucs4_t, uint16_t types.
55825         * lib/unistr/utf16-ucs4.c: New file.
55826
55827         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55828         (Depends-on): Add unitypes.
55829         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55830         (u8_uctomb_aux): Move out to separate file.
55831         (u8_uctomb): Use ucs4_t, uint8_t types.
55832         * lib/unistr/ucs4-utf8.c: New file.
55833
55834         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55835         (Depends-on): Add unitypes.
55836         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55837         (u16_uctomb_aux): Move out to separate file.
55838         (u16_uctomb): Use ucs4_t, uint16_t types.
55839         * lib/unistr/ucs4-utf16.c: New file.
55840
55841 2006-12-25  Bruno Haible  <bruno@clisp.org>
55842
55843         * modules/unitypes: New file.
55844         * lib/unitypes.h: New file.
55845         * MODULES.html.sh (func_all_modules): New section "Unicode string
55846         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55847         this section. Add unitypes.
55848
55849 2007-01-08  Bruno Haible  <bruno@clisp.org>
55850
55851         Avoid variable names that conflict with those from libtool.
55852         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55853         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55854         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55855         library_names_spec to acl_library_names_spec, hardcode_* to
55856         acl_hardcode_*.
55857         Reported by Ralf Wildenhues.
55858
55859 2007-01-08  Bruno Haible  <bruno@clisp.org>
55860
55861         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55862         definition.
55863         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55864         definition.
55865         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55866         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55867         definition.
55868         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55869         definition.
55870         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55871         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55872         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55873         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55874         definition.
55875         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55876         definition.
55877         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55878         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55879         GC_USE_<algorithm>.
55880         * lib/gc-libgcrypt.c: Likewise.
55881         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55882         * modules/gc-arctwo (configure.ac): Likewise.
55883         * modules/gc-des (configure.ac): Likewise.
55884         * modules/gc-hmac-md5 (configure.ac): Likewise.
55885         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55886         * modules/gc-md2 (configure.ac): Likewise.
55887         * modules/gc-md4 (configure.ac): Likewise.
55888         * modules/gc-md5 (configure.ac): Likewise.
55889         * modules/gc-random (configure.ac): Likewise.
55890         * modules/gc-rijndael (configure.ac): Likewise.
55891         * modules/gc-sha1 (configure.ac): Likewise.
55892
55893 2007-01-08  Bruno Haible  <bruno@clisp.org>
55894
55895         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55896         macro definition.
55897         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55898         definition.
55899         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55900         definition.
55901         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55902         * modules/fcntl-safer (configure.ac): Likewise.
55903         * modules/fopen-safer (configure.ac): Likewise.
55904         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55905         GNULIB_FWRITEERROR macro definition.
55906
55907 2007-01-08  Bruno Haible  <bruno@clisp.org>
55908
55909         * m4/gnulib-common.m4: New file.
55910         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55911         (func_get_filelist): Add m4/gnulib-common.m4.
55912
55913 2007-01-08  Bruno Haible  <bruno@clisp.org>
55914
55915         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55916         command.
55917
55918 2007-01-08  Jim Meyering  <jim@meyering.net>
55919
55920         Use a more robust test for a "can't happen" condition.
55921         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55922         narrowed the st_size value.  Presuming the "can't happen" condition
55923         is true, that narrowing could conceivably convert an invalid st_size
55924         value into a valid one.  Instead, use a change based on Matthew
55925         Woehlke's original patch.
55926
55927         Slight readability improvement: use an assert-like macro
55928         in place of literal "abort ()" uses.
55929         * lib/fts.c (fts_assert): Define.
55930         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55931         Use this macro instead of a bare 'abort'.
55932
55933 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55934
55935         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55936         simply work around them.
55937         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55938         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55939         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55940         declaring.
55941         Don't bother to define as macros, since the standard doesn't require it.
55942         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55943         longer worry about IRIX 5.3.
55944         (HAVE_WCTYPE_CTMP_BUG): Remove.
55945
55946 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55947
55948         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55949         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55950         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55951         Problems reported by Georg Schwarz for IRIX 5.3.
55952
55953         * gnulib-tool (autoconf_minversion): Take the maximum version number
55954         found, not the minimum.  Problem reported by James Youngman.
55955
55956 2007-01-03  Karl Berry  <karl@gnu.org>
55957
55958         * doc/error.texi: new file, explaining interaction with progname.
55959         * doc/gnulib.texi: include it.  Update copyright.
55960
55961 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55962
55963         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55964         AC_CANONICAL_HOST, to improve autobuild outputs.
55965
55966 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55967             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55968
55969         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55970         sockets, server sockets, and other file descriptors.  Count errors
55971         to compute the return value.  Reorder the code a bit to be easier
55972         to follow.  Don't set event bits that were not requested (except
55973         POLLERR and POLLHUP).
55974
55975 2007-01-01  Bruno Haible  <bruno@clisp.org>
55976
55977         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55978
55979 2007-01-03  Jim Meyering  <jim@meyering.net>
55980
55981         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55982
55983 2007-01-02  Bruno Haible  <bruno@clisp.org>
55984
55985         * modules/settime (Include): Require timespec.h.
55986         * modules/nanosleep (Include): Likewise.
55987
55988 2007-01-01  Bruno Haible  <bruno@clisp.org>
55989
55990         * gnulib-tool (func_emit_copyright_notice): Bump year.
55991         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55992
55993 2007-01-01  Bruno Haible  <bruno@clisp.org>
55994
55995         Improve support for OpenBSD.
55996         * build-aux/config.rpath (libname_spec): Export.
55997         (library_names_spec): New variable. Export.
55998         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55999         library_names_spec from the config.rpath output. Locate shared library
56000         through the name pattern in library_names_spec.
56001
56002 2007-01-01  Eric Blake  <ebb9@byu.net>
56003
56004         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56005
56006 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56007
56008         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56009         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56010         assume the C locale, and avoid an "eval" that could cause trouble.
56011         Problem with SORT reported by Bob Proulx.
56012
56013         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56014         Define.  Trivial patch from Henning Nielsen Lund, originally
56015         sent to bug-grep@gnu.org today.
56016
56017 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56018
56019         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56020         struct stat.  Problem reported by Henning Nielsen Lund.
56021         * lib/acl.c: Include acl.h first, to check interface.  Don't
56022         bother to include sys/types.h and sys/stat.h again.
56023
56024 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56025
56026         Import the following change from libc; problem reported by
56027         Sven Verdoolaege.
56028
56029         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56030
56031         [BZ #1373]
56032         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56033
56034 2006-12-28  Jim Meyering  <jim@meyering.net>
56035
56036         * build-aux/announce-gen: Do not assume that the package
56037         builds any of tar.gz, tar.bz2, and .xdelta files.
56038         Suggestion from Simon Josefsson.
56039
56040 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56041
56042         * modules/announce-gen: New file.
56043
56044 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56045
56046         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56047         handles its gotchas now.
56048         * lib/mbswidth.c: Likewise.
56049         * lib/wcwidth.h: Likewise.
56050         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56051         and iswcntrl; the wctype module does this stuff now.
56052         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56054         * modules/mbchar (Depends-on): Add wctype.
56055         * modules/mbswidth (Depends-on): Likewise.
56056         * modules/wcwidth (Depends-on): Likewise.
56057
56058 2006-12-27  Eric Blake  <ebb9@byu.net>
56059
56060         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56061         module uses more than what <wctype.h> is required to provide.
56062
56063 2006-12-26  Eric Blake  <ebb9@byu.net>
56064
56065         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56066
56067 2006-12-26  Eric Blake  <ebb9@byu.net>
56068
56069         * modules/absolute-header: New module.
56070         * modules/fcntl (Depends-on): Depend on it.
56071         * modules/inttypes (Depends-on): Likewise.
56072         * modules/stdint (Depends-on): Likewise.
56073         * modules/sys_stat (Depends-on): Likewise.
56074         * modules/wctype (Depends-on): Likewise.
56075         * MODULES.html.sh (Support for building libraries and
56076         executables): Document it.
56077
56078 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56079
56080         * gnulib-tool (SED): Remove, undoing previous change.
56081         The problem was that it broke coreutils on Solaris, because
56082         "sed --posix" leaked into a makefile.
56083         (sed): New alias, if 'alias' and GNU sed.
56084
56085 2006-12-24  Jim Meyering  <jim@meyering.net>
56086
56087         Work around an fchownat bug in glibc-2.4:
56088         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56089         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56090         in spite of the -P option.
56091         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56092         New macros.
56093         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56094         * modules/openat (Files): Add lib/fchownat.c.
56095         * lib/openat.c (fchownat): Don't define here.  Move to...
56096         * lib/fchownat.c: ...this new file.
56097
56098 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56099
56100         Fix bug reported by Bruno Haible in
56101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56102         where quotearg.c didn't compile on Mac OS X 10.2 because it
56103         lacks <wchar.h> and wint_t.
56104         * lib/wctype_.h (__wctype_wint_t): New type.
56105         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56106         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56107         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56108         Arg is now of type __wctype_wint_t, not wint_t.
56109         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56110         substitute HAVE_WINT_T.
56111         * modules/wctype (Files): Add m4/wint_t.m4.
56112         (wctype.h): Substitute HAVE_WINT_T.
56113
56114 2006-12-23  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56117
56118 2006-12-23  Bruno Haible  <bruno@clisp.org>
56119
56120         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56121         S_ISLNK.
56122         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56123         mingw.
56124
56125 2006-12-22  Bruno Haible  <bruno@clisp.org>
56126
56127         * lib/copy-file.c: Include acl.h.
56128         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56129         Close the file descriptors only after being done with copy_acl.
56130         * modules/copy-file (Depends-on): Add acl.
56131
56132 2006-12-22  Bruno Haible  <bruno@clisp.org>
56133
56134         * gnulib-tool (SED): New variable.
56135         Use $SED instead of sed everywhere.
56136
56137 2006-12-22  Bruno Haible  <bruno@clisp.org>
56138
56139         * modules/no-c++: New file.
56140         * m4/no-c++.m4: New file.
56141         * MODULES.html.sh (Support for building libraries and executables):
56142         Add no-c++.
56143
56144 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56145
56146         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56147         Include <limits.h>, and use its INT_MAX to rewrite the
56148         j loop so that it does not overflow 'int'.  Problem reported by
56149         Ralf Wildenhues in
56150         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56151         Play it safe by shifting left by 1 rather than multiplying by 2,
56152         as GCC is less likely to optimize this away when the value
56153         is signed (when it assumes overflow leads to undefined behavior).
56154         Also, don't assume time_t uses two's complement.
56155
56156 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56157
56158         * MODULES.html.sh: New module wctype.
56159         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56160         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56161         <wctype.h>, since the new wctype module should fix this.
56162         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56163         the wctype module should arrange for it.
56164         * lib/regex_internal.h: Likewise.
56165         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56166         since the wctype module should handle this now.
56167         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56168         * modules/fnmatch (Depends-on): Add wctype.
56169         * modules/quotearg (Depends-on): Likewise.
56170         * modules/regex (Depends-on): Likewise.
56171
56172 2006-12-19  Bruno Haible  <bruno@clisp.org>
56173
56174         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56175         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56176
56177 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56178
56179         * modules/savewd (Depends-on): Fix dependency on fcntl.
56180
56181 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56182
56183         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56184         conforms to C99, rather than relying on the user's environment
56185         setting of STDINT_H.
56186
56187 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56188         and Eric Blake  <ebb9@byu.net>
56189
56190         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56191         This is more consistent with the other defines here.
56192         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56193         Port to z/OS.  Problem reported by Paul Gilmartin.
56194         Change local vars to use gl_ prefix rather than ac_.
56195         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56196         with other defines.
56197         * modules/double-slash-root: New module.
56198         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56199         (Depends-on): Add double-slash-root.
56200         * MODULES.html.sh (File system functions): Mention new module.
56201
56202 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56203
56204         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56205         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56206         This is for the benefit of gzip, which doesn't do i18n.
56207
56208 2006-12-12  Jim Meyering  <jim@meyering.net>
56209
56210         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56211         Reported by Andreas Schwab <schwab@suse.de>.
56212
56213 2006-12-12  Bruno Haible  <bruno@clisp.org>
56214
56215         Merge these changes.
56216         2006-09-05  Bruno Haible  <bruno@clisp.org>
56217         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56218         iconv_alloc succeeded.
56219         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56220         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56221         test for " && dest " at the end - dest is always != NULL there. Call
56222         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56223         with 2xNULL arguments, also to flush the state storage. Handle the
56224         IRIX iconv behaviour. Realloc the final result, to throw away unused
56225         memory.
56226
56227 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56228
56229         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56230         and fchmodat unconditionally, since glibc 2.4 has them.
56231         Problem reported by Arkadiusz Miskiewicz.
56232
56233 2006-12-10  Bruno Haible  <bruno@clisp.org>
56234
56235         * gnulib-tool (func_import): Show the include files only for those
56236         modules that are copied and specified.
56237         Reported by Karl Berry.
56238
56239 2006-12-08  Jim Meyering  <jim@meyering.net>
56240
56241         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56242         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56243
56244         * build-aux/announce-gen: Add two new options, both optional:
56245         --bootstrap-tools=TOOL_LIST
56246               a comma-separated list of tools, e.g.,
56247               autoconf,automake,bison,gnulib
56248         --gnulib-snapshot-date=DATE
56249               if gnulib is in the bootstrap tool list,
56250               then report this as the snapshot date.
56251               If not specified, use the current date/time.
56252               If you specify a date here, be sure it's UTC.
56253
56254 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56255
56256         * tests/test-argp-2.sh: Fix test to match actual output.
56257         (func_compare): Fix sed script to be portable.
56258
56259 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56262         workaround for this case.  It is not autoconfigured now; offhand
56263         it's hard to see how to autoconfigure it.
56264
56265 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56266
56267         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56268         a directory that is about to be chowned.  Such a directory's
56269         initial file permissions should permit the owner only and this
56270         should not be changed until after the chown, since the group and
56271         other bits would be incorrect if they granted permission before
56272         the chown.
56273
56274         Fix porting problem for iswctype reported by Georg Schwarz in:
56275         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56276         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56277         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56278         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56279         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56280
56281 2006-12-03  Jim Meyering  <jim@meyering.net>
56282
56283         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56284         p->fts_statp may not yet be defined.
56285         (fts_read): Instead, set it in the caller, once p->fts_statp is
56286         sure to be defined, and corresponds to a top-level directory.
56287         This bug made du -x fail.  Here's the coreutils test case:
56288         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56289         Reported by Mike Frysinger.
56290
56291 2006-12-01  Jim Meyering  <jim@meyering.net>
56292
56293         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56294         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56295         Reported by Simon Josefsson.
56296
56297 2006-11-30  Jim Meyering  <jim@meyering.net>
56298
56299         * m4/warning.m4: Use the all-permissive copyright notice
56300         recommended by RMS (rather than LGPL).
56301         * m4/vararrays.m4: Likewise.
56302         * m4/flexmember.m4: Likewise.
56303
56304 2006-11-29  Bruno Haible  <bruno@clisp.org>
56305
56306         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56307         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56308         using +=.
56309         Reported by Simon Josefsson <simon@josefsson.org>.
56310
56311 2006-11-28  James Youngman <jay@gnu.org>
56312
56313         * README: Advise users that they might find the bug-gnulib@gnu.org
56314         and autotools-announce@gnu.org mailing lists useful.
56315
56316 2006-11-28  Bruno Haible  <bruno@clisp.org>
56317
56318         * m4/ptrdiff_max.m4: Remove file.
56319
56320 2006-11-21  Bruno Haible  <bruno@clisp.org>
56321
56322         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56323         _AC_COMPUTE_INT.
56324         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56325         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56326         _AC_COMPUTE_INT.
56327         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56328         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56329         _AC_COMPUTE_INT.
56330         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56331
56332 2006-11-28  Jim Meyering  <jim@meyering.net>
56333
56334         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56335         warning from "gcc -Wshadow" about shadowing the builtin.
56336
56337 2006-11-27  Bruno Haible  <bruno@clisp.org>
56338
56339         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56340         _AC_COMPUTE_INT.
56341         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56342
56343 2006-11-27  Bruno Haible  <bruno@clisp.org>
56344             Paul Eggert  <eggert@cs.ucla.edu>
56345
56346         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56347
56348 2006-11-26  Bruno Haible  <bruno@clisp.org>
56349
56350         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56351         noinst_LTLIBRARIES.
56352
56353 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56354             Bruno Haible  <bruno@clisp.org>
56355
56356         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56357         if compiling with "gcc -ansi".
56358
56359 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56360
56361         Fix some incompatibilities with gcc -ansi -pedantic.
56362         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56363         if compiling pedantically with GCC, unless it's C99 or later.
56364         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56365         it mishandles gcc -ansi -pedantic as well.
56366         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56367         if gcc -pedantic.
56368         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56369         initializers for struct if -pedantic, unless it's C99 or later.
56370
56371 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56372
56373         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56374         Don't close an fd more than once. Identical atimes indicate
56375         success, not failure.
56376
56377 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56378
56379         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56380
56381 2006-11-23  Jim Meyering  <jim@meyering.net>
56382
56383         * build-aux/announce-gen: New file.  From coreutils.
56384
56385 2006-11-22  Jim Meyering  <jim@meyering.net>
56386
56387         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56388         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56389         (fts_read): Use a temporary to narrow the overused st_size member
56390         before using it in a switch statement.  Reported by Matthew Woehlke.
56391
56392         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56393         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56394
56395 2006-11-20  Bruno Haible  <bruno@clisp.org>
56396
56397         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56398         changequote instead of pairs of brackets.
56399         Reported by Andreas Schwab <schwab@suse.de>.
56400
56401 2006-11-21  Jim Meyering  <jim@meyering.net>
56402
56403         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56404         so as to remain compatible with older compilers.
56405         Patch from Michael Deutschmann.
56406
56407 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56408
56409         * MODULES.html.sh (File system functions): Add openat.
56410
56411         * lib/openat.h (rpl_fstatat): New macro, if
56412         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56413         (fstatat): Define to rpl_fstatat under the same conditions,
56414         unless COMPILING_FSTATAT.
56415         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56416         seems to have the bug.
56417         * lib/fstatat.c: New file.
56418         * modules/openat (Files): Add it.
56419
56420 2006-11-20  Bruno Haible  <bruno@clisp.org>
56421
56422         * Makefile: New file.
56423
56424 2006-11-20  Jim Meyering  <jim@meyering.net>
56425
56426         The beginnings of syntax-related checks for gnulib.
56427         * lib/Makefile: New file.
56428         * lib/t-idcache: New script.  Ensure that the two halves of
56429         idcache.c stay in sync.
56430
56431         * lib/idcache.c: Adjust comments in user- and group- portions to
56432         be more accurate, and to be consistent with one another.
56433
56434 2006-11-20  Jim Meyering  <jim@meyering.net>
56435
56436         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56437         continue using the flexible array member (thus, this module performs
56438         half as many malloc calls), with the addition that...
56439         (getgroup, getuser): Consistently record a non-match via an empty
56440         "name" string, and map an empty string match to a NULL return value.
56441         * modules/idcache (Depends-on): Re-add flexmember.
56442
56443         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56444         (getuidbyname, getgroup, getgidbyname): Likewise.
56445
56446         Use cleaner syntax: NULL rather than 0.
56447         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56448
56449 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56450
56451         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56452         It mishandled the case where the group was missing.
56453         Problem reported by Greg Schafer.
56454         * modules/idcache: Likewise.
56455
56456 2006-11-18  Jim Meyering  <jim@meyering.net>
56457
56458         * check-module (%exempt_header): Add exception for some
56459         conditionally-included headers.
56460
56461         * modules/i-ring (Depends-on): Add verify.
56462         (License): Change to LGPL.
56463
56464 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56465
56466         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56467         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56468         and inttostr.h.  Use snprintf rather than uinttostr, so that
56469         LGPLed code doesn't depend on GPLed.
56470
56471 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56472
56473         * modules/inline (License): Change from GPL to LGPL.
56474
56475 2006-11-17  Jim Meyering  <jim@meyering.net>
56476
56477         * modules/d-type (License): Switch to LGPL.
56478
56479 2006-11-15  Bruno Haible  <bruno@clisp.org>
56480
56481         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56482
56483 2006-11-15  Eric Blake  <ebb9@byu.net>
56484
56485         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56486         the module dependency.
56487
56488 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56489             Bruno Haible  <bruno@clisp.org>
56490
56491         * gnulib-tool (func_create_testdir): Add license consistency check.
56492
56493 2006-11-15  Eric Blake  <ebb9@byu.net>
56494
56495         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56496         random "(cached)" in configure output.
56497
56498 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56499
56500         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56501         test for conforming inttypes.h is both announced and cached.
56502
56503         * MODULES.html.sh (seen_modules, seen_files): New variables.
56504         (func_module): Rewrite to use a few less gnulib-tool and sed
56505         invocations.  Avoid a couple of quadratic algorithms for ...
56506         (missed_modules, missed_files): ... these, with ...
56507         (func_append, func_tmpdir): ... these new functions, from
56508         gnulib-tool.  Analogously, install traps for cleanup.
56509
56510         * tests/test-gc.c (main): Remove unused variables.
56511         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56512
56513 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56514
56515         * modules/inttostr (License): Change to LGPL.
56516
56517 2006-11-14  Eric Blake  <ebb9@byu.net>
56518
56519         * modules/tempname (License): Change to LGPL.
56520
56521 2006-11-14  Eric Blake  <ebb9@byu.net>
56522
56523         * doc/functions.texi (Function Portability): *printf functions on
56524         Cygwin now understand all POSIX size specifiers.
56525
56526 2006-11-14  Bruno Haible  <bruno@clisp.org>
56527
56528         * modules/c-ctype (License): Change to LGPL.
56529
56530 2006-11-12  Bruno Haible  <bruno@clisp.org>
56531
56532         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56533         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56534         for GNOME libraries, for which the include files are installed in
56535         subdirectories of $prefix/include.
56536
56537 2006-11-12  Bruno Haible  <bruno@clisp.org>
56538
56539         * m4/lib-link.m4: Require at least autoconf-2.54.
56540         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56541         name to underscores for the --with option.
56542
56543 2006-11-13  Bruno Haible  <bruno@clisp.org>
56544
56545         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56546         the tests directory.
56547         Reported by Ralf Wildenhues.
56548
56549 2006-11-13  Bruno Haible  <bruno@clisp.org>
56550
56551         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56552         (func_emit_initmacro_end): Undo the override here.
56553         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56554         Works around the famous automake error in coreutils.
56555
56556 2006-11-13  Eric Blake  <ebb9@byu.net>
56557
56558         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56559         element, not its node.
56560
56561 2006-11-12  Bruno Haible  <bruno@clisp.org>
56562
56563         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56564         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56565
56566 2006-11-12  Bruno Haible  <bruno@clisp.org>
56567
56568         * gnulib-tool: New option --local-symlink.
56569         (func_usage): Document it.
56570         (lsymbolic): New variable.
56571         (func_import, func_create_testdir): If --symlink was not specified,
56572         test whether --local-symlink was specified and the file comes from
56573         the local_gnulib_dir.
56574
56575 2006-11-12  Bruno Haible  <bruno@clisp.org>
56576
56577         * gnulib-tool (func_ln): New function.
56578         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56579
56580 2006-11-12  Bruno Haible  <bruno@clisp.org>
56581
56582         Finish support for source files in subdirectories.
56583         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56584         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56585         AUTOMAKE_OPTIONS.
56586         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56587
56588 2006-11-12  Bruno Haible  <bruno@clisp.org>
56589
56590         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56591         EXTRA_lib_SOURCES augmentation.
56592         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56593
56594 2006-11-12  Jim Meyering  <jim@meyering.net>
56595
56596         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56597         file descriptors.  This also averts a failure on systems with
56598         native openat support when a traversed directory lacks "x" access.
56599         * lib/fts_.h: Include "i-ring.h"
56600         (struct FTS) [fts_fd_ring]: New member.
56601         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56602         (FCHDIR): Add parentheses.
56603         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56604         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56605         When descending, rather than simply closing the previous
56606         fts_cwd_fd value, push that file descriptor onto the ring.
56607         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56608         (fts_open): Initialize the new fd_ring member.
56609         (fts_close): Clear the ring.
56610         (fts_safe_changedir): When possible, use our new fd_ring to skip
56611         the diropen and fstat and dev/ino comparison that would normally
56612         accompany a virtual `chdir ("..")'.
56613
56614         * modules/fts (Depends-on): Add i-ring.
56615         * modules/i-ring: New module.
56616         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56617         * m4/i-ring.m4: New file.
56618
56619 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56620
56621         * gnulib-tool (func_create_testdir): Fix replacement of
56622         `build-aux' in configure.ac.  Run autotools in gltests
56623         subdirectory.
56624         (func_create_testdir, func_create_megatestdir, test): There is
56625         no need for '--force' in most autotool invocations in a new
56626         tree.  Actually fail the whole test if any of the tools, or the
56627         configure or make stages fail.
56628
56629         Sync from Automake.
56630         * build-aux/gnupload: Revert last change.  Add pointer to upload
56631         instructions of the GNU Maintenance Instructions.
56632         Suggestion by Karl Berry.
56633
56634 2006-11-10  Jim Meyering  <jim@meyering.net>
56635
56636         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56637
56638 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56639
56640         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56641         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56642         (bind_textdomain_codeset) [! ENABLE_NLS]:
56643         Evaluate all the arguments.  That way, callers get compatible behavior
56644         if the arguments have side effects.  Also, it avoids some GCC
56645         diagnostics in some cases; Joel E. Denny reported problems when Bison
56646         was configured with --enable-gcc-warnigs.
56647
56648 2006-11-10  Jim Meyering  <jim@meyering.net>
56649
56650         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56651         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56652         account.
56653
56654 2006-11-10  Jim Meyering  <jim@meyering.net>
56655
56656         * modules/inline: New file/module.
56657         * modules/xalloc (Files): Remove m4/inline.m4.
56658         (Depends-on): Add inline, instead.
56659         * modules/oset: Likewise.
56660         * modules/list: Likewise.
56661
56662 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56663
56664         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56665         Problem reported by Matthew Woehlke.
56666
56667 2006-11-09  Bruno Haible  <bruno@clisp.org>
56668
56669         * lib/tempname.c (gen_tempname): Remove variant that invokes
56670         __gen_tempname.
56671         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56672         __gen_tempname.
56673
56674 2006-11-08  Bruno Haible  <bruno@clisp.org>
56675
56676         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56677         to 'yes' instead of 'cross-compiling'.
56678
56679 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56680
56681         * lib/quotearg.h (quotearg_free): New decl.
56682         * lib/quotearg.c (quotearg_free): New function.
56683         (slot0, nslots, slotvec0, slotvec):
56684         Now file-scope so that quotearg_free can get at them.
56685
56686 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56687
56688         Sync from Automake.
56689         * build-aux/gnupload: Add missing 'gnu' to example URL.
56690         Report by Karl Berry.
56691
56692 2006-11-08  Bruno Haible  <bruno@clisp.org>
56693
56694         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56695         Suggested by Paul Eggert.
56696
56697 2006-11-08  Jim Meyering  <jim@meyering.net>
56698
56699         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56700         It's already included if !_LIBC.
56701         (fts_safe_changedir): Add a comment.
56702
56703 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56704
56705         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56706         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56707         Matthew Woehlke.
56708
56709         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56710         definitions up, to avoid colliding with change below.
56711         (static_inline) [HAVE_INLINE]: New macro.
56712         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56713         Provide extern decls when !HAVE_INLINE.  Do not define unless
56714         static_inline is defined, either by us or by xmalloc.c.  Use
56715         static_inline rather than static inline.
56716         (XCALLOC): Optimize sizeof(T) = 1 case.
56717         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56718
56719 2006-11-07  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56722         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56723         AC_C_INLINE.
56724         * modules/xalloc (Files): Add m4/inline.m4.
56725
56726 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56727
56728         * README: Fix typo.
56729         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56730         (Miscellanous Notes): ...from this.
56731
56732 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56733
56734         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56735         Mention that offsetof should be used instead of sizeof.
56736         From Bruno Haible.
56737
56738 2006-11-07  Bruno Haible  <bruno@clisp.org>
56739
56740         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56741
56742 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56743
56744         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56745         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56746         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56747         (gl_tree_add_before, gl_tree_add_after):
56748         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56749         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56750         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56751         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56752         (gl_linked_add_after, gl_linked_add_at): Likewise.
56753         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56754         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56755         (gl_tree_add_before, gl_tree_add_after): Likewise.
56756         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56757         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56758         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56759
56760 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56761
56762         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56763
56764 2006-11-06  Bruno Haible  <bruno@clisp.org>
56765
56766         * m4/inline.m4: New file.
56767         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56768         * modules/list (Files): Add m4/inline.m4.
56769         * modules/oset (Files): Likewise.
56770
56771 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56772
56773         * lib/idcache.c: Include <stddef.h>, for offsetof.
56774         (struct userid.name): Change from char * to a flexible array member.
56775         All uses changed.
56776         * modules/idcache (Depends-on): Add flexmember.
56777
56778         * MODULES.html.sh (Core language properties): New module flexmember.
56779         * modules/flexmember, m4/flexmember.m4: New files.
56780
56781         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56782         inline functions that are identical with the old xnmalloc_inline,
56783         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56784         that we can avoid some unnecessary integer multiplications and
56785         divisions in the common case where the element size is known at
56786         compile time.
56787         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56788         needed.
56789         (xnboundedmalloc): Remove.
56790         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56791         arguments, for consistency with rest of this header.
56792         (xcharalloc): Rewrite using XNMALLOC.
56793         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56794         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56795         versions have been moved to lib/xalloc.h and renamed to be the
56796         non-*_inline versions.
56797         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56798         and xnrealloc functions, since those functions are now inline and
56799         now call us.
56800         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56801         renaming described above.
56802         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56803         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56804         captures the dependency in AC_C_INLINE.
56805
56806         New module canonicalize-lgpl, proposed by Charles Wilson in
56807         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56808         with a few small changes afterwards.
56809         * MODULES.html.sh (File system functions): New module
56810         canonicalize-lgpl.
56811         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56812         and canonicalize_file_name.
56813         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56814         * modules/canonicalize-lgpl: New files.
56815
56816 2006-11-05  Bruno Haible  <bruno@clisp.org>
56817
56818         * gnulib-tool (func_import, func_create_testdir): Create directories
56819         also for files in subdirectories of lib/.
56820
56821 2006-11-05  Bruno Haible  <bruno@clisp.org>
56822
56823         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56824         ANSI C compliant.
56825
56826 2006-11-03  Bruno Haible  <bruno@clisp.org>
56827
56828         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56829         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56830         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56831         (xnboundedmalloc): New inline function.
56832         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56833         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56834         xmalloc.
56835         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56836         xmalloc.
56837         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56838         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56839         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56840         xmalloc.
56841         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56842         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56843         xmalloc.
56844         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56845         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56846         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56847         xmalloc.
56848         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56849         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56850         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56851         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56852         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56853         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56854         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56855
56856 2006-11-03  Bruno Haible  <bruno@clisp.org>
56857
56858         * lib/c-ctype.h [C++]: Define functions without name mangling.
56859         * lib/fwriteerror.h [C++]: Likewise.
56860         * lib/gcd.h [C++]: Likewise.
56861         * lib/linebreak.h [C++]: Likewise.
56862
56863 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56864
56865         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56866         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56867         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56868         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56869         Check for functions and headers just once.
56870         Check for declaration of canonicalize_file_name.
56871         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56872
56873 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56874
56875         * gnulib-tool (func_import): Fix typo in actioncmd.
56876
56877 2006-11-02  Bruno Haible  <bruno@clisp.org>
56878
56879         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56880         newline sequence in the Makefile.am snippet as a space, like "make"
56881         does.
56882         Reported by Roger Persson <perrog@gmail.com>.
56883
56884 2006-11-01  Bruno Haible  <bruno@clisp.org>
56885
56886         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56887         already declared in <string.h>.
56888         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56889
56890 2006-11-01  Bruno Haible  <bruno@clisp.org>
56891
56892         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56893         * lib/strcase.h: Include <string.h>.
56894         (strcasecmp): Define to rpl_strcasecmp here.
56895
56896 2006-11-01  Bruno Haible  <bruno@clisp.org>
56897
56898         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56899
56900 2006-11-01  Eric Blake  <ebb9@byu.net>
56901
56902         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56903
56904         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56905
56906 2006-10-29  Bruno Haible  <bruno@clisp.org>
56907
56908         Make it compile in C++ mode.
56909         * lib/full-write.c (full_rw): Add a cast.
56910
56911 2006-11-01  Bruno Haible  <bruno@clisp.org>
56912
56913         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56914         be POSIX compliant.
56915         Reported by Roger Persson <perrog@gmail.com>.
56916
56917 2006-11-01  Eric Blake  <ebb9@byu.net>
56918
56919         * lib/getopt_.h: Fix comments.
56920
56921 2006-10-31  Eric Blake  <ebb9@byu.net>
56922
56923         * modules/tmpdir (Depends-on): Add sys_stat.
56924         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56925         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56926         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56927         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56928         tempname.
56929
56930 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         Avoid some C++ diagnostics reported by Bruno Haible.
56933         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56934         xmalloc.
56935         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56936         (struct slotvec): Move to top level.
56937         (quotearg_n_options): Rewrite to avoid xmalloc.
56938         * lib/xalloc.h (xcharalloc): New function.
56939         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56940         [defined __cplusplus]: Add function template that provides result
56941         type propagation.  This part of the change is from Bruno Haible.
56942
56943 2006-10-29  Bruno Haible  <bruno@clisp.org>
56944
56945         Make it compile in C++ mode.
56946         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56947         * lib/strnlen1.c (strnlen1): Cast memchr result.
56948         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56949         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56950         (create_temp_dir): Rename local variable 'template'.
56951         (compile_csharp_using_sscli): Add cast.
56952         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56953         * lib/findprog.c (find_in_path): Likewise.
56954         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56955         * lib/wait-process.c (register_slave_subprocess): Likewise.
56956
56957 2006-10-22  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/tsearch: New file.
56960         * lib/tsearch.h: New file.
56961         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56962         * m4/tsearch.m4: New file.
56963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56964
56965 2006-10-29  Eric Blake  <ebb9@byu.net>
56966
56967         * lib/arcfour.c: Assume config.h.
56968         * lib/arctwo.c: Likewise.
56969         * lib/base64.c: Likewise.
56970         * lib/check-version.c: Likewise.
56971         * lib/crc.c: Likewise.
56972         * lib/des.c: Likewise.
56973         * lib/gc-gnulib.c: Likewise.
56974         * lib/gc-libgcrypt.c: Likewise.
56975         * lib/gc-pbkdf2-sha1.c: Likewise.
56976         * lib/getaddrinfo.c: Likewise.
56977         * lib/getdelim.c: Likewise.
56978         * lib/getline.c: Likewise.
56979         * lib/hmac-md5.c: Likewise.
56980         * lib/hmac-sha1.c: Likewise.
56981         * lib/iconvme.c: Likewise.
56982         * lib/md2.c: Likewise.
56983         * lib/md4.c: Likewise.
56984         * lib/memxor.c: Likewise.
56985         * lib/read-file.c: Likewise.
56986         * lib/readline.c: Likewise.
56987         * lib/rijndael-alg-fst.c: Likewise.
56988         * lib/rijndael-api-fst.c: Likewise.
56989         * lib/xgetdomainname.c: Likewise.
56990
56991 2006-10-28  Eric Blake  <ebb9@byu.net>
56992
56993         * lib/xstrndup.c: Assume config.h.
56994
56995 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56996
56997         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56998         stat-macros.h is now for our own macros, whereas stat_h is for
56999         macros in the <sys/stat.h> name space.
57000         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57001         (STAT_MACROS_H): Remove.
57002         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57003         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57004         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57005         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57006         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57007         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57008         Move these macros to ...
57009         * lib/stat_.h: here.  Don't include stat-macros.h.
57010         * lib/canonicalize.c: Don't include stat-macros.h.
57011         * lib/chown.c: Likewise.
57012         * lib/euidaccess.c: Likewise.
57013         * lib/file-type.c: Likewise.
57014         * lib/filemode.c: Likewise.
57015         * lib/glob.c: Likewise.
57016         * lib/isapipe.c: Likewise.
57017         * lib/lchown.c: Likewise.
57018         * lib/lstat.c: Likewise.
57019         * lib/mkdir-p.c: Likewise.
57020         * lib/rmdir.c: Likewise.
57021         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57022         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57023         unless mkdir isn't declared, to speed up 'configure'.
57024         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57025         would define all the S_* symbols.
57026         * modules/canonicalize (Depends-on):
57027         Depend on sys_stat, not stat-macros.
57028         * modules/chown: Likewise.
57029         * modules/euidaccess: Likewise.
57030         * modules/filemode: Likewise.
57031         * modules/file-type: Likewise.
57032         * modules/glob: Likewise.
57033         * modules/isapipe: Likewise.
57034         * modules/lchown: Likewise.
57035         * modules/lstat: Likewise.
57036         * modules/mkancesdirs: Likewise.
57037         * modules/rmdir: Likewise.
57038         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57039         * modules/modechange: Likewise.
57040         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57041         (configure.ac): Remove gl_STAT_MACROS.
57042         * modules/sys_stat (Depends-on): Remove stat-macros.
57043
57044 2006-10-27  Bruno Haible  <bruno@clisp.org>
57045
57046         * m4/signed.m4: Remove file.
57047         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57048         invocation.
57049         * modules/vasnprintf (Files): Remove m4/signed.m4.
57050
57051 2006-10-27  Bruno Haible  <bruno@clisp.org>
57052
57053         Update to GNU gettext 0.16.
57054         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57055         m4/inttypes-h.m4, m4/signed.m4.
57056         * m4/gettext.m4: Update to GNU gettext 0.16.
57057         * m4/intl.m4: New file, from GNU gettext.
57058         * m4/intldir.m4: New file, from GNU gettext.
57059         * config/srclist.txt: Update
57060
57061 2006-10-27  Eric Blake  <ebb9@byu.net>
57062
57063         * MODULES.html.sh: Document tempname.
57064         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57065         dependencies.
57066         (Files): Move lib/tempname.c...
57067         * modules/tempname: ...to this new module.
57068         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57069         (gl_PREREQ_TEMPNAME): Move...
57070         * m4/tempname.m4: ...to this new file.
57071         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57072         * modules/sys_stat (Depends-on): Add stat-macros.
57073         * lib/stat_.h (includes): Pick up stat macros.
57074         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57075         if stat macros are broken.
57076         * lib/tempname.c (includes): No need to include "stat-macros.h".
57077         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57078         (direxists, __path_search) [!_LIBC]: Don't compile these in
57079         gnulib; the tmpdir module covers that.
57080         * lib/tempname.h: New file.
57081
57082 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57083
57084         * COPYING: Explain how gnulib-tool converts licence headers.
57085         Almost all wording by Eric Blake.
57086
57087 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57088
57089         * lib/mbchar.h (is_basic_table): Make read-only.
57090         * lib/mbchar.c (is_basic_table): Likewise.
57091         Reported by John Darrington.
57092
57093 2006-10-25  Bruno Haible  <bruno@clisp.org>
57094
57095         * lib/progname.h (set_program_name): Undefine before defining.
57096
57097 2006-10-25  Bruno Haible  <bruno@clisp.org>
57098
57099         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57100         false for non-gcc C++ compilers.
57101         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57102
57103 2006-10-24  Bruno Haible  <bruno@clisp.org>
57104
57105         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57106         iconv implementations like Irix iconv.
57107
57108 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57109
57110         * modules/vararrays: New file.
57111         * m4/vararrays.m4: New file, taken from diffutils.
57112         * MODULES.html.sh: New module vararrays.
57113
57114 2006-10-24  Karl Berry  <karl@gnu.org>
57115
57116         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57117         Don't call GNU Unix.
57118
57119 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57120
57121         * users.txt: Add Libtool.
57122
57123         Sync from Libtool:
57124
57125         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57126
57127         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57128         to gnulib's policy of including config.h unconditionally.
57129
57130 2006-10-24  Bruno Haible  <bruno@clisp.org>
57131
57132         * modules/wcwidth (Files): Add m4/wint_t.m4.
57133         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57134         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57135
57136 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57137
57138         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57139         to pacify GCC with some -W flags enabled.  Problem reported by
57140         Bruno Haible.
57141
57142 2006-10-24  Jim Meyering  <jim@meyering.net>
57143
57144         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57145         Reported by Karl Berry.
57146
57147 2006-10-23  Bruno Haible  <bruno@clisp.org>
57148
57149         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57150
57151 2006-10-24  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/gl_list.h: Use C comment style, not C++ comment style.
57154
57155 2006-10-23  Eric Blake  <ebb9@byu.net>
57156
57157         * lib/getaddrinfo.c (includes): Add missing include.
57158
57159 2006-10-23  Bruno Haible  <bruno@clisp.org>
57160             Paul Eggert  <eggert@cs.ucla.edu>
57161
57162         Ability to rename obstack_free.
57163         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57164         obstack_free.
57165         (obstack_free): Invoke the __obstack_free macro.
57166         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57167
57168 2006-10-23  Bruno Haible  <bruno@clisp.org>
57169             Paul Eggert  <eggert@cs.ucla.edu>
57170
57171         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57172         __argc, __argv from the declaration. (They are defined as macros on
57173         mingw.)
57174
57175 2006-10-22  Bruno Haible  <bruno@clisp.org>
57176
57177         * doc/gnulib-intro.texi: New file.
57178         * doc/gnulib.texi: Include it.
57179
57180 2006-10-21  Bruno Haible  <bruno@clisp.org>
57181
57182         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57183         "Introduction", "Miscellanous Notes", "Particular Modules".
57184
57185 2006-10-21  Bruno Haible  <bruno@clisp.org>
57186
57187         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57188         Change mostlyclean-local rule to avoid sh syntax error from bash
57189         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57190
57191 2006-10-23  Jim Meyering  <jim@meyering.net>
57192
57193         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57194         in place of snprintf.
57195
57196         * modules/inttostr (Files): Add lib/uinttostr.c.
57197         * lib/uinttostr.c (inttostr): New file/function.
57198         * lib/inttostr.h (uinttostr): Declare.
57199         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57200         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57201         Add uinttostr.
57202         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57203
57204 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57205
57206         * lib/canonicalize.c (ELOOP): Define if not already defined.
57207         Problem reported by Bruno Haible in
57208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57209
57210 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57211
57212         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57213         Problem reported by Perry Smith and Ville Laurikari.
57214
57215         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57216         uses.
57217
57218 2006-10-19  Bruno Haible  <bruno@clisp.org>
57219
57220         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57221         for mingw.
57222
57223 2006-10-19  Bruno Haible  <bruno@clisp.org>
57224
57225         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57226         Needed for mingw.
57227
57228 2006-10-19  Bruno Haible  <bruno@clisp.org>
57229
57230         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57231
57232 2006-10-19  Bruno Haible  <bruno@clisp.org>
57233
57234         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57235         it.
57236
57237 2006-10-19  Bruno Haible  <bruno@clisp.org>
57238
57239         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57240         invocation.
57241
57242 2006-10-19  Bruno Haible  <bruno@clisp.org>
57243
57244         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57245         mountlist by default.
57246
57247 2006-10-16  Bruno Haible  <bruno@clisp.org>
57248
57249         * lib/c-strstr.c: Include c-strstr.h.
57250
57251 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57252
57253         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57254         in a slash.
57255
57256 2006-10-18  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/lock.h [C++]: Wrap definitions in extern "C".
57259
57260 2006-10-18  Bruno Haible  <bruno@clisp.org>
57261
57262         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57263         gl_LIBOBJS list.
57264
57265 2006-10-18  Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57268
57269 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57270
57271         * lib/xstrtol.h: Include gettext.h.
57272         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57273         Problem reported by Eric Blake.
57274         * modules/xstrtol (Depends-on): Add gettext-h.
57275
57276 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57277
57278         * lib/strftime.c (advance): New macro.
57279         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57280         incomplete type, so you can't add 0 to it.  Problem and patch
57281         reported by Eelco Dolstra for dietlibc.
57282
57283 2006-10-18  Jim Meyering  <jim@meyering.net>
57284
57285         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57286         type for a local, and rename it: s/up/user_proc/.
57287
57288 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57289
57290         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57291         READ_UTMP_USER_PROCESS.
57292         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57293
57294 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57295
57296         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57297         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57298
57299 2006-10-17  Eric Blake  <ebb9@byu.net>
57300
57301         * lib/sigprocmask.c (sigprocmask): Fix typo.
57302
57303         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57304
57305         * modules/clean-temp (Makefile.am): Don't add to make output...
57306         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57307         config.h.
57308
57309 2006-10-17  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57312         differently if DEFAULT_TEXT_DOMAIN is set.
57313
57314 2006-10-16  Bruno Haible  <bruno@clisp.org>
57315
57316         * lib/clean-temp.c: Include fwriteerror.h.
57317
57318 2006-10-16  Bruno Haible  <bruno@clisp.org>
57319
57320         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57321
57322 2006-10-16  Bruno Haible  <bruno@clisp.org>
57323
57324         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57325         * lib/sigprocmask.h: Include <sys/types.h>.
57326         (sigset_t): Use the system's definition if present.
57327
57328 2006-10-17  Eric Blake  <ebb9@byu.net>
57329
57330         * lib/xvasprintf.c (includes): Assume config.h.
57331         * lib/xasprintf.c (includes): Likewise.
57332
57333 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57334
57335         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57336         at least as wide as intmax_t.
57337
57338 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57339
57340         (Imported from Automake.)
57341         * build-aux/gnupload: Update to version 1.1 of directive file.
57342
57343 2006-10-16  Eric Blake  <ebb9@byu.net>
57344
57345         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57346         match Automake 1.10a.
57347
57348 2006-10-14  Bruno Haible  <bruno@clisp.org>
57349
57350         * modules/sigprocmask: New file.
57351         * lib/sigprocmask.h: New file.
57352         * lib/sigprocmask.c: New file.
57353         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57354         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57355         request sigprocmask.o.
57356         (gl_PREREQ_SIGPROCMASK): New macro.
57357         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57358         (Depends-on): Add sigprocmask.
57359         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57360         gt_SIGNALBLOCKING. Test for 'raise' only once.
57361         * lib/fatal-signal.c: Include sigprocmask.h.
57362         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57363         unblock_fatal_signals): Define always.
57364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57365         sigprocmask.
57366
57367 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57368
57369         Sync from Automake.
57370         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57371         which incorrectly sets the mode of an existing destination
57372         directory.  In some cases the unpatched install-sh could do the
57373         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57374         system.  We hope this is rare in practice, but it's clearly worth
57375         fixing.  Problem reported by Alex Unleashed in
57376         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57377         Also, don't bother to check for -m bugs unless we're using -m;
57378         suggested by Stepan Kasal.
57379
57380 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57381
57382         Sync from Automake.
57383         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57384         `-c' flag, so they appear at the same position as in %FASTDEP%
57385         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57386         which ignores unknown options only after the first non-option.
57387         Bug report against M4 by Nelson H. F. Beebe.
57388
57389 2006-10-13  Jim Meyering  <jim@meyering.net>
57390
57391         Fix a bug in yesterday's change.
57392         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57393         p->fts_statp->st_dev would be used uninitialized.
57394         Ensures that we always call fts_stat on the very first entry.
57395         Miklos Szeredi reported that find -xdev stopped working.
57396
57397 2006-10-12  Bruno Haible  <bruno@clisp.org>
57398
57399         * gnulib-tool (func_get_automake_snippet): Append an automatically
57400         computed EXTRA_DIST augmentation.
57401         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57402         * modules/alloca-opt (Makefile.am): Likewise.
57403         * modules/allocsa (Makefile.am): Likewise.
57404         * modules/arcfour (Makefile.am): Likewise.
57405         * modules/arctwo (Makefile.am): Likewise.
57406         * modules/argmatch (Makefile.am): Likewise.
57407         * modules/argz (Makefile.am): Likewise.
57408         * modules/atexit (Makefile.am): Likewise.
57409         * modules/backupfile (Makefile.am): Likewise.
57410         * modules/byteswap (Makefile.am): Likewise.
57411         * modules/c-strtod (Makefile.am): Likewise.
57412         * modules/c-strtold (Makefile.am): Likewise.
57413         * modules/calloc (Makefile.am): Likewise.
57414         * modules/canon-host (Makefile.am): Likewise.
57415         * modules/canonicalize (Makefile.am): Likewise.
57416         * modules/chdir-long (Makefile.am): Likewise.
57417         * modules/chdir-safer (Makefile.am): Likewise.
57418         * modules/check-version (Makefile.am): Likewise.
57419         * modules/chown (Makefile.am): Likewise.
57420         * modules/cloexec (Makefile.am): Likewise.
57421         * modules/close-stream (Makefile.am): Likewise.
57422         * modules/closeout (Makefile.am): Likewise.
57423         * modules/crc (Makefile.am): Likewise.
57424         * modules/csharpexec (Makefile.am): Likewise.
57425         * modules/cycle-check (Makefile.am): Likewise.
57426         * modules/des (Makefile.am): Likewise.
57427         * modules/dev-ino (Makefile.am): Likewise.
57428         * modules/dirfd (Makefile.am): Likewise.
57429         * modules/dirname (Makefile.am): Likewise.
57430         * modules/dup2 (Makefile.am): Likewise.
57431         * modules/eealloc (Makefile.am): Likewise.
57432         * modules/error (Makefile.am): Likewise.
57433         * modules/euidaccess (Makefile.am): Likewise.
57434         * modules/exclude (Makefile.am): Likewise.
57435         * modules/exitfail (Makefile.am): Likewise.
57436         * modules/fcntl-safer (Makefile.am): Likewise.
57437         * modules/fcntl (Makefile.am): Likewise.
57438         * modules/file-type (Makefile.am): Likewise.
57439         * modules/fileblocks (Makefile.am): Likewise.
57440         * modules/filemode (Makefile.am): Likewise.
57441         * modules/filenamecat (Makefile.am): Likewise.
57442         * modules/fnmatch (Makefile.am): Likewise.
57443         * modules/fopen-safer (Makefile.am): Likewise.
57444         * modules/fpending (Makefile.am): Likewise.
57445         * modules/fprintftime (Makefile.am): Likewise.
57446         * modules/free (Makefile.am): Likewise.
57447         * modules/fsusage (Makefile.am): Likewise.
57448         * modules/ftruncate (Makefile.am): Likewise.
57449         * modules/fts (Makefile.am): Likewise.
57450         * modules/gc-arcfour (Makefile.am): Likewise.
57451         * modules/gc-des (Makefile.am): Likewise.
57452         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57453         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57454         * modules/gc-md4 (Makefile.am): Likewise.
57455         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57456         * modules/gc-sha1 (Makefile.am): Likewise.
57457         * modules/gc (Makefile.am): Likewise.
57458         * modules/getaddrinfo (Makefile.am): Likewise.
57459         * modules/getcwd (Makefile.am): Likewise.
57460         * modules/getdelim (Makefile.am): Likewise.
57461         * modules/getdomainname (Makefile.am): Likewise.
57462         * modules/getgroups (Makefile.am): Likewise.
57463         * modules/gethostname (Makefile.am): Likewise.
57464         * modules/gethrxtime (Makefile.am): Likewise.
57465         * modules/getline (Makefile.am): Likewise.
57466         * modules/getloadavg (Makefile.am): Likewise.
57467         * modules/getlogin_r (Makefile.am): Likewise.
57468         * modules/getndelim2 (Makefile.am): Likewise.
57469         * modules/getopt (Makefile.am): Likewise.
57470         * modules/getpagesize (Makefile.am): Likewise.
57471         * modules/getpass-gnu (Makefile.am): Likewise.
57472         * modules/getpass (Makefile.am): Likewise.
57473         * modules/getsubopt (Makefile.am): Likewise.
57474         * modules/gettime (Makefile.am): Likewise.
57475         * modules/gettimeofday (Makefile.am): Likewise.
57476         * modules/getugroups (Makefile.am): Likewise.
57477         * modules/getusershell (Makefile.am): Likewise.
57478         * modules/glob (Makefile.am): Likewise.
57479         * modules/group-member (Makefile.am): Likewise.
57480         * modules/hard-locale (Makefile.am): Likewise.
57481         * modules/hash (Makefile.am): Likewise.
57482         * modules/hmac-md5 (Makefile.am): Likewise.
57483         * modules/hmac-sha1 (Makefile.am): Likewise.
57484         * modules/human (Makefile.am): Likewise.
57485         * modules/idcache (Makefile.am): Likewise.
57486         * modules/imaxabs (Makefile.am): Likewise.
57487         * modules/imaxdiv (Makefile.am): Likewise.
57488         * modules/inet_ntop (Makefile.am): Likewise.
57489         * modules/inet_pton (Makefile.am): Likewise.
57490         * modules/intprops (Makefile.am): Likewise.
57491         * modules/inttostr (Makefile.am): Likewise.
57492         * modules/inttypes (Makefile.am): Likewise.
57493         * modules/isapipe (Makefile.am): Likewise.
57494         * modules/javaversion (Makefile.am): Likewise.
57495         * modules/lchmod (Makefile.am): Likewise.
57496         * modules/lchown (Makefile.am): Likewise.
57497         * modules/localcharset (Makefile.am): Likewise.
57498         * modules/long-options (Makefile.am): Likewise.
57499         * modules/lstat (Makefile.am): Likewise.
57500         * modules/malloc (Makefile.am): Likewise.
57501         * modules/mathl (Makefile.am): Likewise.
57502         * modules/mbchar (Makefile.am): Likewise.
57503         * modules/md2 (Makefile.am): Likewise.
57504         * modules/md4 (Makefile.am): Likewise.
57505         * modules/md5 (Makefile.am): Likewise.
57506         * modules/memcasecmp (Makefile.am): Likewise.
57507         * modules/memchr (Makefile.am): Likewise.
57508         * modules/memcmp (Makefile.am): Likewise.
57509         * modules/memcoll (Makefile.am): Likewise.
57510         * modules/memcpy (Makefile.am): Likewise.
57511         * modules/memmem (Makefile.am): Likewise.
57512         * modules/memmove (Makefile.am): Likewise.
57513         * modules/mempcpy (Makefile.am): Likewise.
57514         * modules/memrchr (Makefile.am): Likewise.
57515         * modules/memset (Makefile.am): Likewise.
57516         * modules/memxor (Makefile.am): Likewise.
57517         * modules/mkancesdirs (Makefile.am): Likewise.
57518         * modules/mkdir-p (Makefile.am): Likewise.
57519         * modules/mkdir (Makefile.am): Likewise.
57520         * modules/mkdtemp (Makefile.am): Likewise.
57521         * modules/mkstemp (Makefile.am): Likewise.
57522         * modules/mktime (Makefile.am): Likewise.
57523         * modules/modechange (Makefile.am): Likewise.
57524         * modules/mountlist (Makefile.am): Likewise.
57525         * modules/nanosleep (Makefile.am): Likewise.
57526         * modules/obstack (Makefile.am): Likewise.
57527         * modules/openat (Makefile.am): Likewise.
57528         * modules/pagealign_alloc (Makefile.am): Likewise.
57529         * modules/pathmax (Makefile.am): Likewise.
57530         * modules/physmem (Makefile.am): Likewise.
57531         * modules/poll (Makefile.am): Likewise.
57532         * modules/posixtm (Makefile.am): Likewise.
57533         * modules/posixver (Makefile.am): Likewise.
57534         * modules/putenv (Makefile.am): Likewise.
57535         * modules/quote (Makefile.am): Likewise.
57536         * modules/quotearg (Makefile.am): Likewise.
57537         * modules/raise (Makefile.am): Likewise.
57538         * modules/read-file (Makefile.am): Likewise.
57539         * modules/readline (Makefile.am): Likewise.
57540         * modules/readlink (Makefile.am): Likewise.
57541         * modules/readtokens (Makefile.am): Likewise.
57542         * modules/readutmp (Makefile.am): Likewise.
57543         * modules/realloc (Makefile.am): Likewise.
57544         * modules/regex (Makefile.am): Likewise.
57545         * modules/rename-dest-slash (Makefile.am): Likewise.
57546         * modules/rename (Makefile.am): Likewise.
57547         * modules/rijndael (Makefile.am): Likewise.
57548         * modules/rmdir (Makefile.am): Likewise.
57549         * modules/rpmatch (Makefile.am): Likewise.
57550         * modules/safe-read (Makefile.am): Likewise.
57551         * modules/safe-write (Makefile.am): Likewise.
57552         * modules/same-inode (Makefile.am): Likewise.
57553         * modules/same (Makefile.am): Likewise.
57554         * modules/save-cwd (Makefile.am): Likewise.
57555         * modules/savedir (Makefile.am): Likewise.
57556         * modules/setenv (Makefile.am): Likewise.
57557         * modules/settime (Makefile.am): Likewise.
57558         * modules/sha1 (Makefile.am): Likewise.
57559         * modules/sig2str (Makefile.am): Likewise.
57560         * modules/snprintf (Makefile.am): Likewise.
57561         * modules/stat-macros (Makefile.am): Likewise.
57562         * modules/stat-time (Makefile.am): Likewise.
57563         * modules/stdbool (Makefile.am): Likewise.
57564         * modules/stdint (Makefile.am): Likewise.
57565         * modules/stdlib-safer (Makefile.am): Likewise.
57566         * modules/stpcpy (Makefile.am): Likewise.
57567         * modules/stpncpy (Makefile.am): Likewise.
57568         * modules/strcase (Makefile.am): Likewise.
57569         * modules/strcasestr (Makefile.am): Likewise.
57570         * modules/strchrnul (Makefile.am): Likewise.
57571         * modules/strcspn (Makefile.am): Likewise.
57572         * modules/strdup (Makefile.am): Likewise.
57573         * modules/strerror (Makefile.am): Likewise.
57574         * modules/strftime (Makefile.am): Likewise.
57575         * modules/strndup (Makefile.am): Likewise.
57576         * modules/strnlen (Makefile.am): Likewise.
57577         * modules/strpbrk (Makefile.am): Likewise.
57578         * modules/strsep (Makefile.am): Likewise.
57579         * modules/strstr (Makefile.am): Likewise.
57580         * modules/strtod (Makefile.am): Likewise.
57581         * modules/strtoimax (Makefile.am): Likewise.
57582         * modules/strtok_r (Makefile.am): Likewise.
57583         * modules/strtol (Makefile.am): Likewise.
57584         * modules/strtoll (Makefile.am): Likewise.
57585         * modules/strtoul (Makefile.am): Likewise.
57586         * modules/strtoull (Makefile.am): Likewise.
57587         * modules/strtoumax (Makefile.am): Likewise.
57588         * modules/strverscmp (Makefile.am): Likewise.
57589         * modules/sys_socket (Makefile.am): Likewise.
57590         * modules/sys_stat (Makefile.am): Likewise.
57591         * modules/sysexits (Makefile.am): Likewise.
57592         * modules/time_r (Makefile.am): Likewise.
57593         * modules/timegm (Makefile.am): Likewise.
57594         * modules/timespec (Makefile.am): Likewise.
57595         * modules/tmpfile-safer (Makefile.am): Likewise.
57596         * modules/trim (Makefile.am): Likewise.
57597         * modules/unistd-safer (Makefile.am): Likewise.
57598         * modules/unlinkdir (Makefile.am): Likewise.
57599         * modules/unlocked-io (Makefile.am): Likewise.
57600         * modules/userspec (Makefile.am): Likewise.
57601         * modules/utime (Makefile.am): Likewise.
57602         * modules/utimecmp (Makefile.am): Likewise.
57603         * modules/utimens (Makefile.am): Likewise.
57604         * modules/vasnprintf (Makefile.am): Likewise.
57605         * modules/vasprintf (Makefile.am): Likewise.
57606         * modules/vsnprintf (Makefile.am): Likewise.
57607         * modules/xalloc (Makefile.am): Likewise.
57608         * modules/xgetcwd (Makefile.am): Likewise.
57609         * modules/xnanosleep (Makefile.am): Likewise.
57610         * modules/xreadlink (Makefile.am): Likewise.
57611         * modules/xstrtod (Makefile.am): Likewise.
57612         * modules/xstrtol (Makefile.am): Likewise.
57613         * modules/xstrtold (Makefile.am): Likewise.
57614         * modules/yesno (Makefile.am): Likewise.
57615         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57616
57617 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57618
57619         * modules/error (Makefile.am): Distribute files through
57620         EXTRA_DIST, not lib_SOURCES.
57621
57622 2006-10-12  Eric Blake  <ebb9@byu.net>
57623
57624         * modules/error (Makefile.am): Distribute files in /lib.
57625         * modules/obstack (Makefile.am): Likewise.
57626
57627 2006-10-12  Bruno Haible  <bruno@clisp.org>
57628
57629         * modules/acl (Makefile.am): Distribute all files in lib/ through
57630         EXTRA_DIST.
57631         * modules/arcfour (Makefile.am): Likewise.
57632         * modules/arctwo (Makefile.am): Likewise.
57633         * modules/argmatch (Makefile.am): Likewise.
57634         * modules/argz (Makefile.am): Likewise.
57635         * modules/atexit (Makefile.am): Likewise.
57636         * modules/backupfile (Makefile.am): Likewise.
57637         * modules/c-strtod (Makefile.am): Likewise.
57638         * modules/c-strtold (Makefile.am): Likewise.
57639         * modules/calloc (Makefile.am): Likewise.
57640         * modules/canon-host (Makefile.am): Likewise.
57641         * modules/canonicalize (Makefile.am): Likewise.
57642         * modules/chdir-long (Makefile.am): Likewise.
57643         * modules/chdir-safer (Makefile.am): Likewise.
57644         * modules/check-version (Makefile.am): Likewise.
57645         * modules/chown (Makefile.am): Likewise.
57646         * modules/cloexec (Makefile.am): Likewise.
57647         * modules/close-stream (Makefile.am): Likewise.
57648         * modules/closeout (Makefile.am): Likewise.
57649         * modules/crc (Makefile.am): Likewise.
57650         * modules/cycle-check (Makefile.am): Likewise.
57651         * modules/des (Makefile.am): Likewise.
57652         * modules/dirfd (Makefile.am): Likewise.
57653         * modules/dirname (Makefile.am): Likewise.
57654         * modules/dup2 (Makefile.am): Likewise.
57655         * modules/euidaccess (Makefile.am): Likewise.
57656         * modules/exclude (Makefile.am): Likewise.
57657         * modules/exitfail (Makefile.am): Likewise.
57658         * modules/fcntl-safer (Makefile.am): Likewise.
57659         * modules/file-type (Makefile.am): Likewise.
57660         * modules/fileblocks (Makefile.am): Likewise.
57661         * modules/filemode (Makefile.am): Likewise.
57662         * modules/filenamecat (Makefile.am): Likewise.
57663         * modules/fnmatch (Makefile.am): Likewise.
57664         * modules/fopen-safer (Makefile.am): Likewise.
57665         * modules/fpending (Makefile.am): Likewise.
57666         * modules/fprintftime (Makefile.am): Likewise.
57667         * modules/free (Makefile.am): Likewise.
57668         * modules/fsusage (Makefile.am): Likewise.
57669         * modules/ftruncate (Makefile.am): Likewise.
57670         * modules/fts (Makefile.am): Likewise.
57671         * modules/gc (Makefile.am): Likewise.
57672         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57673         * modules/getaddrinfo (Makefile.am): Likewise.
57674         * modules/getcwd (Makefile.am): Likewise.
57675         * modules/getdelim (Makefile.am): Likewise.
57676         * modules/getdomainname (Makefile.am): Likewise.
57677         * modules/getgroups (Makefile.am): Likewise.
57678         * modules/gethostname (Makefile.am): Likewise.
57679         * modules/gethrxtime (Makefile.am): Likewise.
57680         * modules/getline (Makefile.am): Likewise.
57681         * modules/getloadavg (Makefile.am): Likewise.
57682         * modules/getlogin_r (Makefile.am): Likewise.
57683         * modules/getopt (Makefile.am): Likewise.
57684         * modules/getpass (Makefile.am): Likewise.
57685         * modules/getpass-gnu (Makefile.am): Likewise.
57686         * modules/getsubopt (Makefile.am): Likewise.
57687         * modules/gettime (Makefile.am): Likewise.
57688         * modules/gettimeofday (Makefile.am): Likewise.
57689         * modules/getugroups (Makefile.am): Likewise.
57690         * modules/getusershell (Makefile.am): Likewise.
57691         * modules/glob (Makefile.am): Likewise.
57692         * modules/group-member (Makefile.am): Likewise.
57693         * modules/hard-locale (Makefile.am): Likewise.
57694         * modules/hash (Makefile.am): Likewise.
57695         * modules/hmac-md5 (Makefile.am): Likewise.
57696         * modules/hmac-sha1 (Makefile.am): Likewise.
57697         * modules/human (Makefile.am): Likewise.
57698         * modules/idcache (Makefile.am): Likewise.
57699         * modules/imaxabs (Makefile.am): Likewise.
57700         * modules/imaxdiv (Makefile.am): Likewise.
57701         * modules/inet_ntop (Makefile.am): Likewise.
57702         * modules/inet_pton (Makefile.am): Likewise.
57703         * modules/inttostr (Makefile.am): Likewise.
57704         * modules/isapipe (Makefile.am): Likewise.
57705         * modules/lchown (Makefile.am): Likewise.
57706         * modules/long-options (Makefile.am): Likewise.
57707         * modules/lstat (Makefile.am): Likewise.
57708         * modules/malloc (Makefile.am): Likewise.
57709         * modules/mathl (Makefile.am): Likewise.
57710         * modules/mbchar (Makefile.am): Likewise.
57711         * modules/md2 (Makefile.am): Likewise.
57712         * modules/md4 (Makefile.am): Likewise.
57713         * modules/md5 (Makefile.am): Likewise.
57714         * modules/memcasecmp (Makefile.am): Likewise.
57715         * modules/memchr (Makefile.am): Likewise.
57716         * modules/memcmp (Makefile.am): Likewise.
57717         * modules/memcoll (Makefile.am): Likewise.
57718         * modules/memcpy (Makefile.am): Likewise.
57719         * modules/memmem (Makefile.am): Likewise.
57720         * modules/memmove (Makefile.am): Likewise.
57721         * modules/mempcpy (Makefile.am): Likewise.
57722         * modules/memrchr (Makefile.am): Likewise.
57723         * modules/memset (Makefile.am): Likewise.
57724         * modules/memxor (Makefile.am): Likewise.
57725         * modules/mkancesdirs (Makefile.am): Likewise.
57726         * modules/mkdir (Makefile.am): Likewise.
57727         * modules/mkdir-p (Makefile.am): Likewise.
57728         * modules/mkdtemp (Makefile.am): Likewise.
57729         * modules/mkstemp (Makefile.am): Likewise.
57730         * modules/mktime (Makefile.am): Likewise.
57731         * modules/modechange (Makefile.am): Likewise.
57732         * modules/mountlist (Makefile.am): Likewise.
57733         * modules/nanosleep (Makefile.am): Likewise.
57734         * modules/openat (Makefile.am): Likewise.
57735         * modules/pagealign_alloc (Makefile.am): Likewise.
57736         * modules/physmem (Makefile.am): Likewise.
57737         * modules/poll (Makefile.am): Likewise.
57738         * modules/posixtm (Makefile.am): Likewise.
57739         * modules/posixver (Makefile.am): Likewise.
57740         * modules/putenv (Makefile.am): Likewise.
57741         * modules/quote (Makefile.am): Likewise.
57742         * modules/quotearg (Makefile.am): Likewise.
57743         * modules/raise (Makefile.am): Likewise.
57744         * modules/read-file (Makefile.am): Likewise.
57745         * modules/readline (Makefile.am): Likewise.
57746         * modules/readlink (Makefile.am): Likewise.
57747         * modules/readtokens (Makefile.am): Likewise.
57748         * modules/readutmp (Makefile.am): Likewise.
57749         * modules/realloc (Makefile.am): Likewise.
57750         * modules/regex (Makefile.am): Likewise.
57751         * modules/rename (Makefile.am): Likewise.
57752         * modules/rename-dest-slash (Makefile.am): Likewise.
57753         * modules/rijndael (Makefile.am): Likewise.
57754         * modules/rmdir (Makefile.am): Likewise.
57755         * modules/rpmatch (Makefile.am): Likewise.
57756         * modules/safe-read (Makefile.am): Likewise.
57757         * modules/safe-write (Makefile.am): Likewise.
57758         * modules/same (Makefile.am): Likewise.
57759         * modules/save-cwd (Makefile.am): Likewise.
57760         * modules/savedir (Makefile.am): Likewise.
57761         * modules/setenv (Makefile.am): Likewise.
57762         * modules/settime (Makefile.am): Likewise.
57763         * modules/sha1 (Makefile.am): Likewise.
57764         * modules/sig2str (Makefile.am): Likewise.
57765         * modules/snprintf (Makefile.am): Likewise.
57766         * modules/stdlib-safer (Makefile.am): Likewise.
57767         * modules/stpcpy (Makefile.am): Likewise.
57768         * modules/stpncpy (Makefile.am): Likewise.
57769         * modules/strcase (Makefile.am): Likewise.
57770         * modules/strcasestr (Makefile.am): Likewise.
57771         * modules/strchrnul (Makefile.am): Likewise.
57772         * modules/strcspn (Makefile.am): Likewise.
57773         * modules/strdup (Makefile.am): Likewise.
57774         * modules/strerror (Makefile.am): Likewise.
57775         * modules/strftime (Makefile.am): Likewise.
57776         * modules/strndup (Makefile.am): Likewise.
57777         * modules/strnlen (Makefile.am): Likewise.
57778         * modules/strpbrk (Makefile.am): Likewise.
57779         * modules/strsep (Makefile.am): Likewise.
57780         * modules/strstr (Makefile.am): Likewise.
57781         * modules/strtod (Makefile.am): Likewise.
57782         * modules/strtoimax (Makefile.am): Likewise.
57783         * modules/strtok_r (Makefile.am): Likewise.
57784         * modules/strtol (Makefile.am): Likewise.
57785         * modules/strtoll (Makefile.am): Likewise.
57786         * modules/strtoul (Makefile.am): Likewise.
57787         * modules/strtoull (Makefile.am): Likewise.
57788         * modules/strtoumax (Makefile.am): Likewise.
57789         * modules/strverscmp (Makefile.am): Likewise.
57790         * modules/time_r (Makefile.am): Likewise.
57791         * modules/timegm (Makefile.am): Likewise.
57792         * modules/tmpfile-safer (Makefile.am): Likewise.
57793         * modules/unistd-safer (Makefile.am): Likewise.
57794         * modules/unlinkdir (Makefile.am): Likewise.
57795         * modules/userspec (Makefile.am): Likewise.
57796         * modules/utime (Makefile.am): Likewise.
57797         * modules/utimecmp (Makefile.am): Likewise.
57798         * modules/utimens (Makefile.am): Likewise.
57799         * modules/vasnprintf (Makefile.am): Likewise.
57800         * modules/vasprintf (Makefile.am): Likewise.
57801         * modules/vsnprintf (Makefile.am): Likewise.
57802         * modules/xalloc (Makefile.am): Likewise.
57803         * modules/xgetcwd (Makefile.am): Likewise.
57804         * modules/xnanosleep (Makefile.am): Likewise.
57805         * modules/xreadlink (Makefile.am): Likewise.
57806         * modules/xstrtod (Makefile.am): Likewise.
57807         * modules/xstrtol (Makefile.am): Likewise.
57808         * modules/xstrtold (Makefile.am): Likewise.
57809         * modules/yesno (Makefile.am): Likewise.
57810
57811 2006-10-12  Jim Meyering  <jim@meyering.net>
57812
57813         * m4/getloadavg.m4: Revert the change below.
57814
57815         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57816         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57817         fail with a symlink, which is what coreutils' ./bootstrap now
57818         creates by default.
57819
57820 2006-10-12  Bruno Haible  <bruno@clisp.org>
57821
57822         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57823         mingw.
57824         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57825         MSVC and mingw explicitly.
57826
57827 2006-10-11  Simon Josefsson  <jas@extundo.com>
57828             Bruno Haible  <bruno@clisp.org>
57829
57830         Add support for multiple gnulib-tool invocations in the scope of a
57831         single configure.ac file.
57832         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57833         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57834         with the same contents as the _LIBADD variable.
57835         (func_emit_initmacro_start, func_emit_initmacro_end,
57836         func_emit_initmacro_done): New functions.
57837         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57838         gl_LIBOBJS and gl_LTLIBOBJS.
57839
57840 2006-10-11  Bruno Haible  <bruno@clisp.org>
57841
57842         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57843         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57844         autoreconf. Instead, invoke autopoint explicitly but move back the
57845         *.m4 files from gnulib.
57846
57847 2006-10-11  Bruno Haible  <bruno@clisp.org>
57848
57849         * gnulib-tool (func_usage): Make module names after --create-testdir
57850         optional.
57851         (func_create_testdir): If no module was specified, use nearly all
57852         modules.
57853
57854 2006-10-12  Jim Meyering  <jim@meyering.net>
57855
57856         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57857         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57858         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57859         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57860         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57861         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57862         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57863         (fts_set_stat_required): New function.
57864         (fts_open): Defer the calls to fts_stat, if possible or requested.
57865         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57866         into fts_stat itself.
57867         (fts_read): Perform any required (deferred) fts_stat call.
57868         (fts_build): Likewise, for the directory we're about to open and read.
57869         In the readdir loop, carefully decide whether each entry will require
57870         an eventual call to fts_stat, using dirent.d_type info if available.
57871         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57872         a command line argument into this function.  Update all callers.
57873         Map a return value of FTS_DOT to FTS_D for a command line argument.
57874         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57875         Thanks to Miklos Szeredi for his tenacity and for the initial
57876         bug report about "find" failing on a FUSE-based file system.
57877
57878         * lib/fts.c (fts_open): Use consistent indentation.
57879
57880 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57881
57882         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57883         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57884         reported by Jim Meyering.  All uses of cache variables renamed
57885         to match Autoconf's.
57886         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57887         the other one.
57888
57889         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57890         Fix misspelling in diagnostic.
57891
57892 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57893
57894         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57895         defined.  Problem reported by Matthew Woehlke.
57896
57897         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57898         Add support for Tandem NonStop R series.
57899         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57900         Use new macro.
57901
57902         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57903         (has_trailing_slash): Omit size arg; all callers changed.
57904         Omit 'inline', since it doesn't help performance and we'd
57905         need to configure it.
57906         Don't count //, ///, etc. as having a trailing slash.
57907         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57908         (rpl_rename_dest_slash): On failure, use rename's errno rather
57909         than (in some cases) an incorrect or junk errno.
57910         Simplify code by removing need to compute length; this does
57911         cause it to make two passes instead of one over the file name,
57912         but it's worth it.
57913
57914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57915         change, since Autoconf's version may no longer be appropriate now
57916         that we are using CVS Autoconf's version.  Add support for Tandem.
57917
57918 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57919             Bruno Haible  <bruno@clisp.org>
57920
57921         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57922         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57923         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57924         gl_AC_TYPE_LONG_LONG.
57925
57926         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57927         instead of HAVE_LONG_LONG.
57928         * lib/printf-args.c (printf_fetchargs): Likewise.
57929         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57930         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57931         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57932         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57933         gl_AC_TYPE_LONG_LONG.
57934
57935 2006-10-11  Bruno Haible  <bruno@clisp.org>
57936
57937         * m4/longlong.m4: Add comments.
57938         * m4/ulonglong.m4: Likewise.
57939
57940 2006-10-10  Bruno Haible  <bruno@clisp.org>
57941
57942         Make it possible to #define stpcpy, strdup to aliases.
57943         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57944         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57945
57946 2006-10-10  Bruno Haible  <bruno@clisp.org>
57947
57948         Make it possible to #define gcd to an alias.
57949         * lib/gcd.c: Include config.h.
57950
57951 2006-10-10  Bruno Haible  <bruno@clisp.org>
57952
57953         Make it possible to #define c_isascii to an alias.
57954         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57955         defined. Undefine the macros before defining them, to avoid gcc
57956         warnings.
57957         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57958         define NO_C_CTYPE_MACROS early.
57959
57960 2006-10-10  Bruno Haible  <bruno@clisp.org>
57961
57962         Make it possible to #define set_program_name to an alias.
57963         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57964         ENABLE_RELOCATABLE early.
57965
57966 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57967
57968         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57969         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57970         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57971         More generally, don't assume that 64-bit signed int is available
57972         if unsigned int is, and vice versa.
57973         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57974         unsigned symbols, not on their signed counterparts.
57975         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57976         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57977         (UINT64_C, UINTMAX_C):
57978         Likewise.
57979         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57980         unsigned counterparts.
57981         (Have_long_long, Unsigned): New macros.
57982         (Int): Renamed from INT.
57983         (strtoimax): Use the new macros.
57984         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57985         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57986         * modules/inttypes (inttypes.h): Substitute
57987         HAVE_UNSIGNED_LONG_LONG_INT.
57988         * modules/stdint (stdint.h): Likewise.
57989         (Files): Add m4/ulonglong.m4.
57990
57991 2006-10-10  Bruno Haible  <bruno@clisp.org>
57992
57993         Fix a gcc -Wshadow warning.
57994         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57995         to 'bucket'.
57996         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57997         gl_linked_indexof_from_to): Likewise.
57998         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57999         Likewise.
58000         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58001         Likewise.
58002         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58003         Reported by Eric Blake.
58004
58005 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58006
58007         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58008         for NetBSD.  Problem reported by Bruno Haible.
58009
58010 2006-10-09  Jim Meyering  <jim@meyering.net>
58011
58012         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58013         Patch from Bruno Haible.
58014
58015 2006-10-09  Jim Meyering  <jim@meyering.net>
58016
58017         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58018         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58019         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58020
58021 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58022
58023         Don't include <config.h> twice; this doesn't work in some cases,
58024         e.g., when config.h has "#define intmax_t long long int" and
58025         we include <config.h>, <inttypes.h>, <config.h> in that order.
58026         Problem reported by Matthew Woehlke in:
58027         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58028         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58029         * lib/fts-cycle.c: Don't include config.h.
58030         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58031         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58032         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58033         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58034         inttypes.h.
58035         * lib/xstrtoumax.c: Likewise.
58036         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58037         __strtol and the like, so that this module is more like its siblings.
58038         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58039         Remove; no longer needed now that we assume gnulib inttypes.h.
58040
58041 2006-10-08  Bruno Haible  <bruno@clisp.org>
58042
58043         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58044         option.
58045
58046 2006-10-07  Jim Meyering  <jim@meyering.net>
58047
58048         * modules/inttypes (inttypes.h): Revert what seems to have been
58049         an inadvertent part of today's change: use "|", not "/" in the
58050         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58051
58052 2006-10-07  Bruno Haible  <bruno@clisp.org>
58053
58054         * modules/sublist: New file.
58055
58056 2006-10-07  Bruno Haible  <bruno@clisp.org>
58057
58058         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58059         * modules/argz (argz.h): Likewise.
58060         * modules/arpa_inet (arpa/inet.h): Likewise.
58061         * modules/byteswap (byteswap.h): Likewise.
58062         * modules/configmake (configmake.h): Likewise.
58063         * modules/fcntl (fcntl.h): Likewise.
58064         * modules/fnmatch (fnmatch.h): Likewise.
58065         * modules/getopt (getopt.h): Likewise.
58066         * modules/glob (glob.h): Likewise.
58067         * modules/inttypes (inttypes.h): Likewise.
58068         * modules/netinet_in (netinet/in.h): Likewise.
58069         * modules/poll (poll.h): Likewise.
58070         * modules/stdbool (stdbool.h): Likewise.
58071         * modules/stdint (stdint.h): Likewise.
58072         * modules/sys_select (sys/select.h): Likewise.
58073         * modules/sys_socket (sys/socket.h): Likewise.
58074         * modules/sys_stat (sys/stat.h): Likewise.
58075         * modules/sysexits (sysexits.h): Likewise.
58076         * modules/unistd (unistd.h): Likewise.
58077         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58078         Add a "DO NOT EDIT" comment to the generated file.
58079         (func_import): Likewise for gnulib-comp.m4.
58080
58081 2006-10-07  Bruno Haible  <bruno@clisp.org>
58082
58083         * lib/gl_sublist.h: New file.
58084         * lib/gl_sublist.c: New file.
58085
58086 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58089         name (relative to the original working directory) and the file
58090         name component (relative to the temporary working directory).  All
58091         callers changed.
58092         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58093         * lib/mkdir-p.c (make_dir_parents): Likewise.
58094         * lib/mkdir-p.h (make_dir_parents): Likewise.
58095
58096 2006-10-06  Eric Blake  <ebb9@byu.net>
58097
58098         Define several macros for use by the clean-temp module.
58099         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58100         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58101         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58102
58103         * lib/clean-temp.h (close_stream_temp): New declaration.
58104         * lib/clean-temp.c (includes): Pull in headers according to what
58105         other modules are in use.
58106         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58107
58108 2006-10-06  Bruno Haible  <bruno@clisp.org>
58109
58110         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58111         instead of fopen, fwriteerror.
58112
58113 2006-10-06  Bruno Haible  <bruno@clisp.org>
58114
58115         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58116         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58117         int.
58118         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58119         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58120         Return an error indicator.
58121         Suggested by Eric Blake.
58122
58123 2006-10-06  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58126         Reported by Eric Blake.
58127
58128 2006-10-06  Bruno Haible  <bruno@clisp.org>
58129
58130         * modules/closeout (Description): Mention stderr too.
58131
58132 2006-10-06  Bruno Haible  <bruno@clisp.org>
58133         and Paul Eggert  <eggert@cs.ucla.edu>
58134
58135         * lib/closeout.c (close_stdout): Also close stderr.
58136         * lib/closeout.h: Update comment.
58137
58138 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58139
58140         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58141         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58142         * lib/dirchownmod.c: Include lchown.h.
58143         * lib/lchown.c: Don't include files that lchown.h now includes.
58144         Don't declare chown, since lchown.h now does that.
58145         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58146         (lchown): Define to rpl_chown if lchown is declared but
58147         does not exist.  Declare using a prototype if lchown is not
58148         declared.  Add a copyright notice.
58149         * lib/mkstemp.h: Include <unistd.h>.
58150         * lib/openat.c: Include lchown.h.
58151
58152         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58153         we now test for that separately.
58154         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58155         rather than O_NOFOLLOW, when testing whether it's possible to
58156         avoid a race condition reliably.
58157         * lib/savewd.c (savewd_chdir): Likewise.
58158
58159         Remove macros that are no longer needed now that stdint.h is
58160         reliable.
58161         * lib/fsusage.c (UINTMAX_MAX): Remove.
58162         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58163         * lib/utimecmp.c (SIZE_MAX): Remove.
58164
58165         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58166
58167         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58168         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58169         O_NOATIME works.
58170
58171 2006-10-05  Bruno Haible  <bruno@clisp.org>
58172
58173         * lib/gl_list.h (gl_sortedlist_search_from_to,
58174         gl_sortedlist_indexof_from_to): New declarations.
58175         (gl_list_implementation): New fields sortedlist_search_from_to,
58176         sortedlist_indexof_from_to.
58177         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58178         inline functions.
58179         * lib/gl_list.c (gl_sortedlist_search_from_to,
58180         gl_sortedlist_indexof_from_to): New functions.
58181         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58182         function.
58183         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58184         (gl_array_sortedlist_search_from_to): New function.
58185         (gl_array_list_implementation): Update.
58186         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58187         function.
58188         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58189         (gl_carray_sortedlist_search_from_to): New function.
58190         (gl_carray_list_implementation): Update.
58191         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58192         gl_linked_sortedlist_indexof_from_to): New functions.
58193         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58194         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58195         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58196         gl_tree_sortedlist_indexof_from_to): New functions.
58197         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58198         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58199         Update.
58200         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58201         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58202         Update.
58203
58204 2006-10-05  Bruno Haible  <bruno@clisp.org>
58205
58206         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58207         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58208         (struct gl_list_implementation): Add fields search_from_to,
58209         indexof_from_to. Remove fields search, indexof.
58210         (gl_list_search): Use the search_from_to method.
58211         (gl_list_search_from, gl_list_search_from_to): New functions.
58212         (gl_list_indexof): Use the indexof_from_to method.
58213         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58214         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58215         (gl_list_search_from, gl_list_search_from_to): New functions.
58216         (gl_list_indexof): Use the indexof_from_to method.
58217         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58218         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58219         gl_array_indexof. Add start_index, end_index arguments.
58220         (gl_array_search_from_to): Renamed from gl_array_search. Add
58221         start_index, end_index arguments.
58222         (gl_array_remove, gl_array_list_implementation): Update.
58223         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58224         gl_carray_indexof. Add start_index, end_index arguments.
58225         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58226         start_index, end_index arguments.
58227         (gl_carray_remove, gl_carray_list_implementation): Update.
58228         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58229         gl_linked_search. Add start_index, end_index arguments.
58230         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58231         start_index, end_index arguments.
58232         (gl_linked_remove): Update.
58233         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58234         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58235         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58236         field to 'size_t'.
58237         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58238         gl_tree_search. Add start_index, end_index arguments.
58239         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58240         start_index, end_index arguments.
58241         (gl_tree_remove): Update.
58242         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58243         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58244         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58245         function.
58246         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58247         gl_tree_search. Add start_index, end_index arguments.
58248         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58249         start_index, end_index arguments.
58250         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58251         Update.
58252         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58253
58254 2006-10-05  Bruno Haible  <bruno@clisp.org>
58255
58256         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58257
58258         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58259         fwriteerror_temp): New declarations.
58260         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58261         (descriptors): New variable.
58262         (cleanup): First, close the descriptors.
58263         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58264         fclose_temp, fwriteerror_temp): New functions.
58265
58266 2006-10-04  Jim Meyering  <jim@meyering.net>
58267
58268         * lib/fts.c (fts_open): Tiny comment change.
58269
58270 2006-10-04  Bruno Haible  <bruno@clisp.org>
58271
58272         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58273         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58274         gl_LOCK_BODY.
58275         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58276         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58277         gl_LOCK_EARLY_BODY.
58278         (gl_LOCK): Require gl_LOCK_BODY.
58279
58280 2006-10-04  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58283         (gl_oset_search_atleast): New declaration.
58284         (struct gl_oset_implementation): Add field 'search_atleast'.
58285         (gl_oset_search_atleast): New inline function.
58286         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58287         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58288         (gl_array_oset_implementation): Update.
58289         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58290         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58291         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58292
58293 2006-10-04  Bruno Haible  <bruno@clisp.org>
58294
58295         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58296
58297 2006-10-03  Bruno Haible  <bruno@clisp.org>
58298
58299         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58300         from gl_avltreehash_list_implementation.
58301
58302 2006-10-03  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/gl_oset.c (gl_oset_add): Fix return type.
58305
58306 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58307
58308         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58309
58310 2006-10-02  Eric Blake  <ebb9@byu.net>
58311
58312         * modules/strnlen (Depends-on): Add extensions.
58313
58314 2006-10-02  Eric Blake  <ebb9@byu.net>
58315
58316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58317         definition in 2.60+.
58318
58319 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58320
58321         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58322         checks.
58323
58324 2006-10-02  Bruno Haible  <bruno@clisp.org>
58325
58326         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58327         to the AUTOMAKE_OPTIONS.
58328         Reported by Jim Meyering.
58329
58330 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58331
58332         Work around bug in Solaris 10 /proc file system:
58333         /proc/self/fd/NNN/.. isn't the parent directory of
58334         the directory whose file descriptor is NNN.  This needs to
58335         be worked around at run time, not compile time, since a
58336         program might be built on Solaris 8, where things work, and
58337         run on Solaris 10.
58338         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58339         to use the following interface instead:
58340         (OPENAT_BUFFER_SIZE): New macro.
58341         (openat_proc_name): New function.
58342         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58343         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58344         Likewise.
58345         * lib/openat-proc.c: New file.
58346         * modules/openat (Files): Add lib/openat-proc.c.
58347         (Depends-on): Add same-inode, stdbool.
58348         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58349
58350 2006-09-29  Bruno Haible  <bruno@clisp.org>
58351
58352         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58353         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58354         argument. Set stdout_closed before testing for ferror, not after.
58355         (fwriteerror, fwriteerror_no_ebadf): New functions.
58356
58357 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58358
58359         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58360
58361 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58362
58363         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58364         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58365
58366 2006-09-28  Jim Meyering  <jim@meyering.net>
58367
58368         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58369         Include <unistd.h>.
58370
58371 2006-09-28  Bruno Haible  <bruno@clisp.org>
58372
58373         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58374         * modules/linkedhash-list (Depends-on): Likewise.
58375         * modules/rbtreehash-list (Depends-on): Likewise.
58376
58377 2006-09-28  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/strndup.h: Simplify the redefinition of strndup.
58380         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58381         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58382
58383 2006-09-28  Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58386         * lib/gl_linkedhash_list.c: Likewise.
58387         * lib/gl_rbtreehash_list.c: Likewise.
58388
58389 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58390
58391         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58392         getaddrinfo.
58393
58394         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58395         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58396         it causes <stdio_ext.h> to cause a compile-time error.
58397         Problem reported by Nelson H. F. Beebe.
58398         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58399         of HAVE_DECL___PENDING.
58400
58401         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58402         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58403         declaration.
58404
58405 2006-09-27  Jim Meyering  <jim@meyering.net>
58406
58407         This file could end up with a definition for a function
58408         named __strndup, rather than rpl_strndup on a system with
58409         incomplete weak_alias support.
58410         * lib/strndup.c (strndup): Rename from __strndup.
58411         Remove #defines that used to map __strndup to strndup.
58412         Don't use K&R prototypes.
58413         Remove LIBC-related code, since this file is not sync'd with glibc.
58414         * lib/strndup.h: Revamp, accordingly.
58415         * m4/strndup.m4: Modernize.
58416
58417 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58418
58419         * modules/savewd (Depends-on): Add 'raise'.
58420         * lib/savewd.c: Include <signal.h>, for 'raise'.
58421
58422 2006-09-26  Jim Meyering  <jim@meyering.net>
58423
58424         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58425         when we detect Darwin 8.7.0's acl_get_file bug.
58426         Rearrange to perform the new (below) run-test while $LIBS
58427         contains any acl-related library.  Set USE_ACL at the end.
58428         (gl_ACL_GET_FILE): New function.
58429
58430 2006-09-26  Eric Blake  <ebb9@byu.net>
58431
58432         * lib/verror.c: Include <config.h> unconditionally.
58433
58434 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58435
58436         * modules/clock-time (Maintainer): Add self.
58437         * modules/getlogin_r (Depends-on): Add extensions.
58438
58439 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58440
58441         * modules/clock-time: New module.
58442         * modules/nanosleep (Depends-on): Add clock-time.
58443         * modules/gethrxtime (Depends-on): Likewise.
58444         * modules/gettime (Depends-on): Likewise.
58445         * modules/settime (Depends-on): Likewise.
58446
58447         * modules/fts-lgpl: Depend on openat.
58448         * modules/mkancesdirs: Depend on savewd.
58449         * modules/mkdir-p: Likewise.
58450
58451 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58452
58453         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58454
58455         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58456         `gl_have_arbitrary_file_name_length_limit' to
58457         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58458         actually works between configure runs.
58459
58460 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58461             Bruno Haible  <bruno@clisp.org>
58462
58463         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58464
58465 2006-09-25  Jim Meyering  <jim@meyering.net>
58466
58467         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58468         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58469
58470 2006-09-25  Eric Blake  <ebb9@byu.net>
58471
58472         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58473         exec's in 2006-09-18 patch when shuffling fds.
58474
58475 2006-09-25  Bruno Haible  <bruno@clisp.org>
58476
58477         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58478         Reported by Jim Meyering.
58479
58480 2006-09-24  Jim Meyering  <jim@meyering.net>
58481
58482         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58483         compare a pointer against a literal "0".  That caused failures with
58484         at least HP-UX's hpcc.
58485
58486 2006-09-22  Simon Josefsson  <jas@extundo.com>
58487
58488         * modules/gc-sha1:
58489         * modules/gc-md4:
58490         * modules/gc-hmac-sha1:
58491         * modules/gc-hmac-md5:
58492         * modules/gc-des:
58493         * modules/gc-arcfour: Distribute more files.
58494
58495 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58496
58497         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58498         (gl_linked_iterator_from_to): Initialize struct completely.
58499         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58500         (gl_tree_iterator_from_to): Likewise
58501         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58502         * lib/gl_array_list.c [lint] (gl_array_iterator)
58503         (gl_array_iterator_from_to): Likewise.
58504         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58505         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58506         (gl_carray_iterator_from_to): Likewise.
58507
58508         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58509         * lib/md4.c (md4_process_block): Remove unused variable.
58510         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58511         parentheses for clarity.
58512
58513 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58514
58515         * modules/bison-i18n (Depends-on): Add gettext.
58516
58517 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58518
58519         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58520         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58521         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58522         also add missing comma that caused broken test.
58523         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58524         stdlib.h, for `abort'.
58525         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58526         variables.
58527         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58528         include unistd.h if present, for `rmdir'.
58529         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58530         variables.
58531         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58532         in the process include standard headers for prototypes.
58533         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58534         gets declared on GNU/Linux.
58535         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58536         unistd.h, for `rmdir'.
58537         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58538
58539         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58540         always true.
58541         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58542
58543         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58544
58545 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58546
58547         * gnulib-tool (func_version): Create output all at once.  This
58548         may help avoid triggering unnecessary SIGPIPEs, and at any
58549         rate it doesn't hurt.
58550
58551 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58552             Bruno Haible  <bruno@clisp.org>
58553
58554         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58555         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58556         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58557
58558         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58559         (gl_FUNC_VASPRINTF): Invoke it.
58560
58561 2006-09-22  Bruno Haible  <bruno@clisp.org>
58562
58563         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58564         getloadavg.c as first argument.
58565
58566 2006-09-22  Bruno Haible  <bruno@clisp.org>
58567
58568         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58569         at the beginning of the gl_INIT macro.
58570         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58571         gl_GETLOADAVG.
58572
58573 2006-09-22  Bruno Haible  <bruno@clisp.org>
58574
58575         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58576         module.
58577         Suggested by Ralf Wildenhues.
58578
58579 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58580
58581         Import this patch from libc:
58582
58583         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58584
58585         * lib/regex_internal.c (re_string_reconstruct): Handle
58586         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58587         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58588         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58589         re_string_context_at.
58590
58591         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58592         now requires it.
58593         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58594         gl_REGEX now does it for us.
58595         (gl_REGEX): Add test taken from
58596         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58597
58598         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58599         Check that large offsets work.  Modernize Autoconf usages.
58600         Prefer "yes" to mean a good thing rather than a bad.
58601         Don't put "#define mkstemp" in config.h, as this might interfere
58602         with standard system headers that "#define mkstemp mkstemp64".
58603
58604         * modules/mkstemp (Depends-on): Add extensions, so that
58605         mkstemp is visible on some platforms.
58606         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58607         (Include): Change to "mkstemp.h" from <stdlib.h>.
58608         (Files): Add mkstemp.h.
58609
58610         * lib/mkstemp.h: New file, since some standard headers
58611         #define mkstemp.
58612         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58613         Include "mkstemp.h".
58614         Make the _LIBC code resemble glibc original more,
58615         e.g., use K&R style.
58616         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58617         (mkstemp): Remove, since mkstemp.h does this for us.
58618         * lib/stdlib--.h: Include mkstemp.h.
58619
58620         Import this patch from libc:
58621
58622         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58623
58624         * lib/tempname.c (__gen_tempname): Change attempts_min
58625         into a macro.  Use preprocessor to decide how to initialize
58626         attempts [Coverity CID 67].
58627
58628 2006-09-20  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/mkdtemp.c: Import from libc.
58631         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58632                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58633                 attempts_min into a macro.  Use preprocessor to decide how to
58634                 initialize attempts [Coverity CID 67].
58635         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58636                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58637                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58638
58639 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58640
58641         * gnulib-tool (func_exit): New function, to allow to pass the
58642         exit status portably through the trap.  Use everywhere.
58643         (--help, --version): Signal a write error.
58644         (trap): catch SIGPIPE, for write errors.
58645         Exit at the end of the trap, with the correct exit status.
58646
58647 2006-09-19  Karl Berry  <karl@gnu.org>
58648
58649         * doc/gnulib.texi: note about the license texinfo files.
58650
58651 2006-09-19  Eric Blake  <ebb9@byu.net>
58652
58653         * gnulib-tool: Avoid space-tab.
58654
58655 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58656
58657         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58658         that prevented coreutils 6.1 from building.  Problem reported
58659         by Petter Reinholdtsen.
58660
58661 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58662
58663         * gnulib-tool (avoidlist): Fix typo that broke options like
58664         --avoid=lock that are used by coreutils bootstrap.
58665
58666 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58667
58668         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58669         more systematically.
58670
58671 2006-09-18  Jim Meyering  <jim@meyering.net>
58672
58673         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58674
58675 2006-09-18  Bruno Haible  <bruno@clisp.org>
58676
58677         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58678
58679 2006-09-18  Bruno Haible  <bruno@clisp.org>
58680
58681         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58682         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58683         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58684         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58685         * m4/gettext.m4: Require autoconf >= 2.52.
58686         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58687         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58688         of gl_cv_header_inttypes_h.
58689
58690 2006-09-18  Bruno Haible  <bruno@clisp.org>
58691
58692         * lib/javaversion.c: Include configmake.h.
58693
58694 2006-09-18  Bruno Haible  <bruno@clisp.org>
58695
58696         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58697         avoid that the while loops be executed in a subshell.
58698
58699 2006-09-18  Bruno Haible  <bruno@clisp.org>
58700
58701         * MODULES.html.sh (func_module): Break long lines.
58702         Suggested by Bruce Korb <bkorb@gnu.org>.
58703
58704 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58705
58706         Speed up by a factor of 1.12.
58707         * gnulib-tool (nl): New variable.
58708         (func_import): Rewrite include directive extraction to only read each
58709         directive once.
58710
58711 2006-09-17  Bruno Haible  <bruno@clisp.org>
58712
58713         * modules/javaversion (Makefile.am): Remove DEFS setting.
58714         (Depends-on): Add configmake, for PKGDATADIR definition.
58715
58716 2006-09-17  Bruno Haible  <bruno@clisp.org>
58717
58718         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58719
58720 2006-09-17  Bruno Haible  <bruno@clisp.org>
58721
58722         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58723         (func_modules_transitive_closure, func_modules_add_dummy,
58724         func_modules_to_filelist, func_import, func_create_testdir,
58725         func_create_megatestdir, ...): Use it wherever possible.
58726         Suggested by Ralf Wildenhues.
58727
58728 2006-09-16  Karl Berry  <karl@gnu.org>
58729
58730         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58731         to avoid sectioning errors.
58732         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58733         [ifinfo]: blank line after @center-ed titles.
58734         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58735         Spell FSF address consistently with others.
58736         (These changes approved by rms.)
58737
58738 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58739
58740         Speed up by a factor of 1.61.
58741         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58742         already checked module names again.
58743
58744 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58745
58746         Speed up by a factor of 1.13.
58747         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58748         for new_files, and the input to func_add_or_update.
58749
58750 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58751
58752         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58753         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58754
58755 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * modules/mkancesdirs (Depends-on): Add fcntl.
58758         * modules/savewd: New file.
58759         * MODULES.html.sh (File system functions): Add savewd.
58760
58761         * modules/configmake (Makefile.am): Add support for the
58762         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58763
58764 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58765
58766         * m4/savewd.m4: New file.
58767
58768 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58769
58770         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58771         (dirchownmod): New arg FD.  All callers changed.
58772         Use FD rather than opening the directory ourself, as opening is
58773         now the caller's responsibility.
58774         * lib/dirchownmod.h: Likewise.
58775         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58776         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58777         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58778         (test_dir): Remove.
58779         (mkancesdirs): Return length of prefix of FILE that has already
58780         been made, or -2 if there is a child doing the work.  Redo
58781         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58782         ".", and treat ".." specially since it might stray back into
58783         already-created areas.  Use a subprocess if necessary.  New arg
58784         WD; all users changed.  MAKE_DIR function should now return 1
58785         if it creates a directory that is not readable.  Return -2 if
58786         a child process is spun off.
58787         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58788         Adjust signature to match code.
58789         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58790         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58791         all users changed.
58792         * lib/savewd.c, lib/savewd.h: New files.
58793
58794 2006-09-15  Jim Meyering  <jim@meyering.net>
58795
58796         * modules/rename-dest-slash: New module.
58797         * MODULES.html.sh (posix_compat): Add it here.
58798
58799         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58800
58801 2006-09-15  Jim Meyering  <jim@meyering.net>
58802
58803         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58804         file.
58805
58806         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58807
58808 2006-09-15  Jim Meyering  <jim@meyering.net>
58809
58810         * lib/rename-dest-slash.c (has_trailing_slash): Use
58811         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58812         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58813         test before testing whether SRC is a directory.
58814         Suggestions from Bruno Haible.
58815
58816         Avoid a warning about an unused variable.
58817         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58818         into the #ifdef block where it's used.
58819
58820         * lib/rename-dest-slash.c: New file.
58821
58822 2006-09-14  Bruno Haible  <bruno@clisp.org>
58823
58824         * lib/allocsa.c: Include <config.h> unconditionally.
58825         * lib/asnprintf.c: Likewise.
58826         * lib/asprintf.c: Likewise.
58827         * lib/c-strcasecmp.c: Likewise.
58828         * lib/c-strcasestr.c: Likewise.
58829         * lib/c-strncasecmp.c: Likewise.
58830         * lib/c-strstr.c: Likewise.
58831         * lib/classpath.c: Likewise.
58832         * lib/clean-temp.c: Likewise.
58833         * lib/concatpath.c: Likewise.
58834         * lib/copy-file.c: Likewise.
58835         * lib/csharpcomp.c: Likewise.
58836         * lib/csharpexec.c: Likewise.
58837         * lib/execute.c: Likewise.
58838         * lib/fatal-signal.c: Likewise.
58839         * lib/findprog.c: Likewise.
58840         * lib/fwriteerror.c: Likewise.
58841         * lib/gl_array_list.c: Likewise.
58842         * lib/gl_array_oset.c: Likewise.
58843         * lib/gl_avltree_list.c: Likewise.
58844         * lib/gl_avltree_oset.c: Likewise.
58845         * lib/gl_avltreehash_list.c: Likewise.
58846         * lib/gl_carray_list.c: Likewise.
58847         * lib/gl_linked_list.c: Likewise.
58848         * lib/gl_linkedhash_list.c: Likewise.
58849         * lib/gl_list.c: Likewise.
58850         * lib/gl_oset.c: Likewise.
58851         * lib/gl_rbtree_list.c: Likewise.
58852         * lib/gl_rbtree_oset.c: Likewise.
58853         * lib/gl_rbtreehash_list.c: Likewise.
58854         * lib/imaxabs.c: Likewise.
58855         * lib/imaxdiv.c: Likewise.
58856         * lib/javacomp.c: Likewise.
58857         * lib/javaexec.c: Likewise.
58858         * lib/javaversion.c: Likewise.
58859         * lib/linebreak.c: Likewise.
58860         * lib/localcharset.c: Likewise.
58861         * lib/lock.c: Likewise.
58862         * lib/mbchar.c: Likewise.
58863         * lib/mbswidth.c: Likewise.
58864         * lib/mkdtemp.c: Likewise.
58865         * lib/pipe.c: Likewise.
58866         * lib/printf-args.c: Likewise.
58867         * lib/printf-parse.c: Likewise.
58868         * lib/progname.c: Likewise.
58869         * lib/progreloc.c: Likewise.
58870         * lib/readlink.c: Likewise.
58871         * lib/sh-quote.c: Likewise.
58872         * lib/stpcpy.c: Likewise.
58873         * lib/stpncpy.c: Likewise.
58874         * lib/strcasecmp.c: Likewise.
58875         * lib/strcasestr.c: Likewise.
58876         * lib/strcspn.c: Likewise.
58877         * lib/striconv.c: Likewise.
58878         * lib/strncasecmp.c: Likewise.
58879         * lib/strnlen1.c: Likewise.
58880         * lib/strstr.c: Likewise.
58881         * lib/strtok_r.c: Likewise.
58882         * lib/tls.c: Likewise.
58883         * lib/tmpdir.c: Likewise.
58884         * lib/unicodeio.c: Likewise.
58885         * lib/unsetenv.c: Likewise.
58886         * lib/vasnprintf.c: Likewise.
58887         * lib/vasprintf.c: Likewise.
58888         * lib/wait-process.c: Likewise.
58889         * lib/xallocsa.c: Likewise.
58890         * lib/xsetenv.c: Likewise.
58891         * lib/xstriconv.c: Likewise.
58892
58893 2006-09-13  Simon Josefsson  <jas@extundo.com>
58894
58895         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58896         that internally, suggested by Ralf Wildenhues
58897         <Ralf.Wildenhues@gmx.de>.
58898
58899 2006-09-13  Simon Josefsson  <jas@extundo.com>
58900
58901         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58902         @LIBOBJS@.
58903         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58904
58905 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58906
58907         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58908         longer worry about uses that don't define HAVE_CONFIG_H.
58909         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58910         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58911         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58912         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58913         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58914         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58915         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58916         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58917         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58918         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58919         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58920         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58921         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58922         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58923         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58924         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58925         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58926         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58927         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58928         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58929         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58930         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58931         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58932         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58933         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58934         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58935         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58936         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58937         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58938         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58939         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58940         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58941         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58942         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58943         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58944         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58945         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58946         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58947         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58948         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58949         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58950         Likewise.
58951
58952 2006-09-13  Eric Blake  <ebb9@byu.net>
58953
58954         * lib/getopt.c: Fix typo in last commit.
58955
58956 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58957
58958         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58959         dgettext.
58960
58961 2006-09-12  Jim Meyering  <jim@meyering.net>
58962
58963         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58964         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58965         Reported by Nelson H. F. Beebe.
58966
58967 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58968
58969         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58970         program_invocation_name and program_invocation_short_name are
58971         initialized.
58972         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58973         and program_invocation_short_name to argp.h, so they are visible
58974         to user programs.
58975         * lib/argp.h: Likewise
58976
58977 2006-09-10  Bruno Haible  <bruno@clisp.org>
58978
58979         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58980         m4/inttypes_h.m4, m4/uintmax_t.m4.
58981
58982 2006-09-10  Bruno Haible  <bruno@clisp.org>
58983
58984         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58985         gl_AC_TYPE_UINTMAX_T.
58986
58987 2006-09-10  Bruno Haible  <bruno@clisp.org>
58988
58989         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58990
58991 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58992
58993         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58994         convention.  Text proposed by Bruno Haible.
58995         (struct argp_option): Document the use of N_() wrappers.
58996
58997         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58998         '\v', and translate the two parts separately, instead of feeding
58999         the whole string to gettext.  This allows to exclude
59000         '\v' from the strings visible to the translator by writing doc
59001         strings as N_("..") "\v" N_("..").
59002
59003 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59004
59005         * config/srclist.txt: Undo latest change; the bug was fixed.
59006
59007 2006-09-09  Bruno Haible  <bruno@clisp.org>
59008
59009         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59010         assignments if building a library without libtool.
59011         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59012         in func_emit_lib_Makefile_am.
59013         (func_import): When building a static library libfoo.a, arrange to
59014         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59015         (func_create_testdir): Likewise.
59016         * modules/gc (configure.ac, Makefile.am): If building statically,
59017         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59018         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59019         * modules/striconv (configure.ac, Makefile.am): Likewise.
59020         Based on a suggestion by Ralf Wildenhues.
59021
59022 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59023
59024         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59025         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59026         Also:
59027
59028         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59029         Add year_2050_test to catch glibc bug 2821
59030         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59031
59032         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59033         Prefer #ifdef to #if.
59034
59035         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59036         Return from 'main' instead of calling 'exit'.
59037
59038 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59041         returned the maximum time_t value rather than (time_t) -1.
59042         Problem originally reported by William Bardwell
59043         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59044
59045         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59046         Moved to here ...
59047         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59048         ... from here.
59049
59050 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59051
59052         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59053         2821 is fixed.
59054
59055 2006-09-08  Jim Meyering  <jim@meyering.net>
59056
59057         Don't make generated files read-only.  That would bother too many
59058         people.  However, do retain the ability to work when targets are
59059         read-only: remove the destination and temporary files before writing
59060         them (when generated via sed or echo), or by using the -f option for
59061         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59062         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59063         * modules/byteswap, modules/configmake, modules/fcntl:
59064         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59065         * modules/localcharset, modules/netinet_in, modules/poll:
59066         * modules/stdbool, modules/stdint, modules/sys_select:
59067         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59068
59069 2006-09-08  Jim Meyering  <jim@meyering.net>
59070
59071         Avoid new build failure on FreeBSD 6.0.
59072         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59073         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59074         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59075
59076 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59077
59078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59079
59080 2006-09-07  Jim Meyering  <jim@meyering.net>
59081
59082         Fix global typo in last change: use chmod u-w, not chmod u-x.
59083         Spotted by Paul Eggert and Bruce Korb.
59084         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59085         * modules/byteswap, modules/configmake, modules/fcntl:
59086         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59087         * modules/localcharset, modules/netinet_in, modules/poll:
59088         * modules/stdbool, modules/stdint, modules/sys_select:
59089         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59090
59091 2006-09-06  Jim Meyering  <jim@meyering.net>
59092
59093         Make generated files be read-only.
59094         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59095         Ensure that each generated file is now read-only.
59096         * modules/argz: Likewise.
59097         * modules/arpa_inet: Likewise.
59098         * modules/byteswap: Likewise.
59099         * modules/configmake: Likewise.
59100         * modules/fcntl: Likewise.
59101         * modules/fnmatch: Likewise.
59102         * modules/getopt: Likewise.
59103         * modules/glob: Likewise.
59104         * modules/inttypes: Likewise.
59105         * modules/netinet_in: Likewise.
59106         * modules/poll: Likewise.
59107         * modules/stdbool: Likewise.
59108         * modules/stdint: Likewise.
59109         * modules/sys_select: Likewise.
59110         * modules/sys_socket: Likewise.
59111         * modules/sys_stat: Likewise.
59112         * modules/sysexits: Likewise.
59113         * modules/localcharset: Same as above, but continue using temporary
59114         file named "t-$@" (why different?) rather than the "$@-t" used
59115         everywhere else.
59116
59117         * modules/sysexits (Makefile.am): Replace literal occurrences
59118         of "sysexit.h" more readable, and more consistent, "$@".
59119
59120 2006-09-06  Bruno Haible  <bruno@clisp.org>
59121
59122         * modules/striconv: New file.
59123         * modules/xstriconv: New file.
59124         * MODULES.html.sh (Internationalization functions): Add striconv,
59125         xstriconv.
59126
59127 2006-09-06  Bruno Haible  <bruno@clisp.org>
59128
59129         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59130         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59131         not using libtool correctly.
59132
59133 2006-09-06  Bruno Haible  <bruno@clisp.org>
59134
59135         * lib/striconv.h: New file.
59136         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59137         iconvstring.c.
59138         * lib/xstriconv.h: New file.
59139         * lib/xstriconv.c: New file.
59140
59141 2006-09-06  Bruno Haible  <bruno@clisp.org>
59142
59143         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59144         lib_..._LDFLAGS.
59145
59146 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59147
59148         * lib/argz_.h: Sync from Libtool.
59149
59150         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59151                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59152
59153         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59154
59155 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59156
59157         * modules/trim: New file.
59158
59159 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59160
59161         * lib/trim.h: New file.
59162         * lib/trim.c: New file.
59163
59164 2006-09-05  Bruno Haible  <bruno@clisp.org>
59165
59166         * MODULES.html.sh (String handling): Add trim.
59167
59168 2006-09-04  Karl Berry  <karl@gnu.org>
59169
59170         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59171         until next release.
59172
59173 2006-09-03  Bruno Haible  <bruno@clisp.org>
59174
59175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59176         correctly.
59177
59178 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59179
59180         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59181         not gl_GETLOADAVG.  Omit unneeded semicolons.
59182         Problems reported by Ralf Wildenhues in
59183         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59184         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59185         at the end, which is the usual gnulib style.
59186
59187         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59188         of doing all the work ourselves.
59189         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59190         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59191
59192 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59193
59194         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59195         Problem reported by Ralf Wildenhues in
59196         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59197
59198         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59199         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59200
59201 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59204         yesterday's patch by changing test -n to test -z.
59205
59206 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59207
59208         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59209         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59210         the former is now obsolescent.
59211
59212         * modules/chdir-long (Depends-on): Add fcntl.
59213
59214 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59215
59216         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59217         obsolescent, and programs should use gnulib instead.
59218         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59219         but with prefixes changed.
59220
59221 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59222
59223         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59224         or stdbool.h, because they might not exist while configuring.
59225
59226         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59227         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59228         does that for us.
59229         (O_DIRECTORY): Remove.
59230
59231 2006-08-31  Eric Blake  <ebb9@byu.net>
59232
59233         * gnulib-tool: Don't let emacs change spaces to TAB.
59234
59235 2006-08-31  Bruno Haible  <bruno@clisp.org>
59236
59237         * gnulib-tool: When calling func_import more than once, do it in a
59238         subshell.
59239         Reported by Eric Blake <ebb9@byu.net>.
59240
59241 2006-08-31  Bruno Haible  <bruno@clisp.org>
59242
59243         * gnulib-tool (nl): Remove variable.
59244         (sed_transform_lib_file): Use more robust test for config-h module.
59245         (func_import): Fix typo in 2006-08-25 patch.
59246
59247 2006-08-31  Bruno Haible  <bruno@clisp.org>
59248
59249         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59250         specified, augment Makefile.am variables instead of assigning them.
59251
59252 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59253
59254         Work around a bug in both the Linux and SunOS 64-bit kernels:
59255         nanosleep mishandles sleeps for longer than 2**31 seconds.
59256         Problem reported by Frank v Waveren in
59257         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59258         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59259         Check for nanosleep bug.
59260         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59261
59262 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59263
59264         Work around a bug in both the Linux and SunOS 64-bit kernels:
59265         nanosleep mishandles sleeps for longer than 2**31 seconds.
59266         Problem reported by Frank v Waveren in
59267         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59268         * lib/nanosleep.c (BILLION): New constant.
59269         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59270         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59271         implementation.
59272
59273 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * modules/nanosleep (Depends-on): Add gettime.
59276
59277 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59278         and Simon Josefsson  <jas@extundo.com>
59279         and Oskar Liljeblad  <oskar@osk.mine.nu>
59280
59281         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59282         * gnulib-tool (func_import): New license type 'unmodifiable license
59283         text'.
59284         * modules/fdl: Use it.  Longer description.
59285         * module/gpl, module/lgpl: New files.
59286
59287 2006-08-30  Jim Meyering  <jim@meyering.net>
59288
59289         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59290         shadowing the parameter.
59291
59292 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59293
59294         Sync from Libtool:
59295
59296         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59297
59298         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59299         sharing with gnulib.  Report by Eric Blake.
59300
59301 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59302
59303         * modules/isapipe: New file.
59304         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59305
59306 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         * modules/configmake (Makefile.am): Add a comment, and omit
59309         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59310         by Bruno Haible.
59311
59312 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59313
59314         * m4/isapipe.m4: New file.
59315
59316 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * lib/isapipe.c, lib/isapipe.h: New files.
59319
59320 2006-08-29  Jim Meyering  <jim@meyering.net>
59321
59322         * modules/configmake (Makefile.am): Make configmake.h depend on
59323         Makefile.  Otherwise, a stale configmake.h could hang around.
59324
59325 2006-08-29  Eric Blake  <ebb9@byu.net>
59326
59327         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59328         resolution of upstream bug 3044.
59329
59330 2006-08-29  Bruno Haible  <bruno@clisp.org>
59331
59332         * modules/localcharset (Depends-on): Add configmake.
59333         (Makefile.am): Remove setting of LIBDIR through DEFS.
59334
59335 2006-08-29  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59338         defined.
59339
59340 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59341
59342         * modules/fcntl: New file.
59343         * modules/chdir-safer (Depends-on): Add fcntl.
59344         * modules/fts: Likewise.
59345         * modules/mkdir-p: Likewise.
59346
59347         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59348         This undoes the most recent change, since we're now addressing the
59349         problem in a different way.
59350
59351         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59352         into output, since the output might be called Makefile.am even
59353         if $makefile_name is something different.
59354         (func_import): Use $makefile_am rather than
59355         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59356         empty.
59357
59358         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59359
59360 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59361
59362         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59363         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59364         recent change to stdint.m4, since we're now addressing the problem in a
59365         different way.
59366
59367 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59368
59369         * m4/fcntl_h.m4: New file.
59370
59371 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59372
59373         * lib/fcntl_.h: New file.
59374         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59375         the fcntl module.
59376         * lib/dirchownmod.c: Likewise.
59377         * lib/fts.c: Likewise.
59378
59379         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59380         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59381         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59382         just before including <inttypes.h>, to avoid circular inclusion.
59383
59384 2006-08-28  Jim Meyering  <jim@meyering.net>
59385
59386         * doc/visibility.texi: Actually read and correct the grammar of the
59387         sentence affected by yesterday's change.
59388
59389 2006-08-28  Eric Blake  <ebb9@byu.net>
59390
59391         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59392         needs wrapper.
59393
59394 2006-08-28  Eric Blake  <ebb9@byu.net>
59395
59396         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59397
59398 2006-08-28  Eric Blake  <ebb9@byu.net>
59399
59400         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59401
59402 2006-08-28  Bruno Haible  <bruno@clisp.org>
59403
59404         * modules/c-strstr: New file, from GNU gettext.
59405         * MODULES.html.sh (String handling): Add c-strstr.
59406
59407 2006-08-28  Bruno Haible  <bruno@clisp.org>
59408
59409         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59410         macros.
59411         Reported by Eric Blake.
59412
59413 2006-08-28  Bruno Haible  <bruno@clisp.org>
59414
59415         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59416         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59417         * lib/vasprintf.c: Include errno.h, limits.h.
59418         (EOVERFLOW): New fallback definition.
59419         (vasprintf): Test here whether the string length is > INT_MAX.
59420         * lib/vsnprintf.c: Include errno.h, limits.h.
59421         (EOVERFLOW): New fallback definition.
59422         (vsnprintf): Fix bug when generated string was too long for the buffer.
59423         Test here whether the string length is > INT_MAX.
59424
59425 2006-08-28  Bruno Haible  <bruno@clisp.org>
59426
59427         * lib/inttypes_.h (SCNX*): Remove definitions.
59428         Reported by Eric Blake.
59429
59430 2006-08-28  Bruno Haible  <bruno@clisp.org>
59431
59432         * lib/c-strstr.h: New file, from GNU gettext.
59433         * lib/c-strstr.c: New file, from GNU gettext.
59434
59435 2006-08-28  Bruno Haible  <bruno@clisp.org>
59436
59437         * gnulib-tool: Reorder some statements.
59438
59439 2006-08-28  Bruno Haible  <bruno@clisp.org>
59440
59441         * gnulib-tool: New option --makefile-name.
59442         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59443         $makefile_name.
59444         (func_import): Write $makefile_name to the cache file, and read it from
59445         there unless explicitly specified. Use $makefile_name as file name
59446         instead of Makefile.am. Adjust the recommendations accordingly.
59447
59448 2006-08-28  Bruno Haible  <bruno@clisp.org>
59449
59450         * gnulib-tool (func_verify_module): Check against misapplying patch.
59451
59452 2006-08-28  Bruno Haible  <bruno@clisp.org>
59453
59454         * gnulib-tool (func_relativize, func_relconcat): New functions.
59455         Give an error if --local-dir is given with --update.
59456         Remove trailing slashes from $local_gnulib_dir.
59457         (func_import): Store the relativized $local_gnulib_dir in
59458         gnulib-cache.m4, and read it from there if not specified explicitly.
59459
59460 2006-08-28  Bruno Haible  <bruno@clisp.org>
59461
59462         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59463         is the current directory. Respect also $local_gnulib_dir.
59464
59465 2006-08-28  Bruno Haible  <bruno@clisp.org>
59466             Simon Josefsson  <jas@extundo.com>
59467
59468         BeOS portability.
59469         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59470
59471 2006-08-27  Jim Meyering  <jim@meyering.net>
59472
59473         * doc/visibility.texi: Remove duplicate word: "pointer".
59474
59475 2006-08-26  Bruno Haible  <bruno@clisp.org>
59476
59477         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59478         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59479         (Makefile.am): Create inttypes.h from inttypes_.h.
59480         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59481
59482         * modules/imaxabs: New file.
59483
59484         * modules/imaxdiv: New file.
59485
59486 2006-08-26  Bruno Haible  <bruno@clisp.org>
59487
59488         * m4/inttypes.m4: New file.
59489         * m4/_inttypes_h.m4: Remove file.
59490         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59491         PRI_MACROS_BROKEN.
59492         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59493
59494         * m4/imaxabs.m4: New file.
59495
59496         * m4/imaxdiv.m4: New file.
59497
59498 2006-08-26  Bruno Haible  <bruno@clisp.org>
59499
59500         * lib/inttypes_.h: New file.
59501         * lib/inttypes.h: Remove file.
59502         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59503
59504         * lib/imaxabs.c: New file.
59505
59506         * lib/imaxdiv.c: New file.
59507
59508 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59509
59510         New config-h module, so that "make" output needn't be cluttered
59511         by -DHAVE_CONFIG_H.
59512         * MODULES.html.sh (Support for building libraries and executables):
59513         Add config-h.
59514         * modules/config-h: New file.
59515         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59516         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59517         the config-h module is used.
59518
59519         New configmake module, so that "make" output needn't be cluttered
59520         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59521         * MODULES.html.sh (Support for building libraries and executables):
59522         Add configmake.
59523         * modules/configmake: New file.
59524
59525 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59526
59527         * m4/config-h.m4: New file.
59528
59529 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         * config/srclist.txt: Add elisp-comp.
59532
59533 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59534
59535         * MODULES.html.sh (Support for building libraries and executables):
59536         Add elisp-comp.
59537         * build-aux/elisp-comp: New file.
59538         * modules/elisp-comp: New file.
59539
59540 2006-08-24  Bruno Haible  <bruno@clisp.org>
59541
59542         * gnulib-tool (func_create_testdir): Use non-default values of
59543         sourcebase and m4base.
59544
59545 2006-08-24  Bruno Haible  <bruno@clisp.org>
59546
59547         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59548         HTML structure.
59549
59550 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59551
59552         * modules/openat (Depends-on): Add lchown.
59553
59554 2006-08-23  Bruno Haible  <bruno@clisp.org>
59555
59556         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59557         of gl_LOCK_EARLY instead of gl_LOCK.
59558
59559 2006-08-23  Bruno Haible  <bruno@clisp.org>
59560
59561         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59562         on OSF/1 to no.
59563         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59564
59565 2006-08-23  Bruno Haible  <bruno@clisp.org>
59566
59567         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59568         as unusable.
59569
59570         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59571         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59572         (gl_LOCK): New macro.
59573
59574 2006-08-22  Simon Josefsson  <jas@extundo.com>
59575
59576         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59577         to md5 module.
59578
59579 2006-08-22  Simon Josefsson  <jas@extundo.com>
59580
59581         * MODULES.html.sh: Add "Support for maintaining and release
59582         projects".
59583
59584         * build-aux/gnupload: New file, from coreutils.
59585
59586 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59587
59588         Avoid the need for AC_LIBSOURCES in m4 macros.
59589         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59590         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59591         * modules/check-version (EXTRA_DIST): Add check-version.h.
59592         * modules/crc (EXTRA_DIST): Add crc.h.
59593         * modules/des (EXTRA_DIST): Add des.h.
59594         * modules/gc (EXTRA_DIST): Add gc.h.
59595         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59596         * modules/getline (EXTRA_DIST): Add getline.h.
59597         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59598         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59599         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59600         * modules/md2 (EXTRA_DIST): Add md2.h.
59601         * modules/md4 (EXTRA_DIST): Add md4.h.
59602         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59603         * modules/read-file (EXTRA_DIST): Add read-file.h.
59604         * modules/readline (EXTRA_DIST): Add readline.h.
59605         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59606         rijndael-api-fst.h.
59607
59608 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59609
59610         * m4/rijndael.m4 (gl_ARCFOUR):
59611         * m4/arctwo.m4 (gl_ARCTWO):
59612         * m4/check-version.m4 (gl_CHECK_VERSION):
59613         * m4/crc.m4 (gl_CRC):
59614         * m4/des.m4 (gl_DES):
59615         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59616         * m4/gc.m4 (gl_GC):
59617         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59618         * m4/getline.m4 (gl_FUNC_GETLINE):
59619         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59620         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59621         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59622         * m4/md2.m4 (gl_MD2):
59623         * m4/md4.m4 (gl_MD4):
59624         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59625         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59626         * m4/readline.m4 (gl_FUNC_READLINE):
59627         * m4/rijndael.m4 (gl_RIJNDAEL):
59628         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59629         to get the necessary .h files and whatnot.
59630
59631 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59632
59633         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59634         gnulib rather than the other way around.
59635         * config/srclistvars.sh (COREUTILS): Remove.
59636
59637 2006-08-22  Jim Meyering  <jim@meyering.net>
59638
59639         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59640
59641         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59642
59643 2006-08-22  Eric Blake  <ebb9@byu.net>
59644
59645         * modules/regexprops-generic: New file.
59646         * MODULES.html.sh (Support for building documentation): List it.
59647
59648 2006-08-22  Eric Blake  <ebb9@byu.net>
59649
59650         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59651         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59652         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59653         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59654
59655 2006-08-22  Bruno Haible  <bruno@clisp.org>
59656
59657         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59658         and lib_LTLIBRARIES like the other lib_* variables.
59659
59660 2006-08-22  Bruno Haible  <bruno@clisp.org>
59661
59662         * build-aux/x-to-1.in: New file, from GNU gettext.
59663
59664 2006-08-22  Bruno Haible  <bruno@clisp.org>
59665
59666         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59667         <utmpx.h> exists.
59668
59669 2006-08-22  Bruno Haible  <bruno@clisp.org>
59670
59671         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59672         <utmpx.h> exists.
59673
59674 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59675
59676         BeOS portability.
59677         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59678         exist.
59679         Problem reported by Bruno Haible.
59680
59681 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59682
59683         Avoid the need for AC_LIBSOURCES in m4 macros.
59684         * modules/acl (EXTRA_DIST): Add acl.h.
59685         * modules/argmatch (Files): Add m4/argmatch.m4.
59686         (configure.ac): Add gl_ARGMATCH.
59687         (EXTRA_DIST): Renamed from lib_SOURCES, for
59688         consistency with the other modules.  Remove argmatch.c.
59689         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59690         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59691         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59692         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59693         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59694         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59695         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59696         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59697         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59698         * modules/closeout (EXTRA_DIST): Add closeout.h.
59699         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59700         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59701         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59702         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59703         dirname.h; remove basename.c and stripslash.c.
59704         * modules/exclude (EXTRA_DIST): Add exclude.h.
59705         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59706         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59707         * modules/file-type (EXTRA_DIST): Add file-type.h.
59708         * modules/filemode (EXTRA_DIST): Add filemode.h.
59709         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59710         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59711         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59712         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59713         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59714         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59715         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59716         * modules/getdate (EXTRA_DIST): Add getdate.c.
59717         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59718         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59719         * modules/getpass (EXTRA_DIST): Add getpass.h.
59720         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59721         * modules/group-member (EXTRA_DIST): Add group-member.h.
59722         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59723         * modules/hash (EXTRA_DIST): Add hash.h.
59724         * modules/human (EXTRA_DIST): Add human.h.
59725         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59726         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59727         * modules/lchown (EXTRA_DIST): Add lchown.h.
59728         * modules/long-options (EXTRA_DIST): Add long-options.h.
59729         * modules/lstat (EXTRA_DIST): Add lstat.h.
59730         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59731         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59732         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59733         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59734         * modules/memxor (EXTRA_DIST): Add memxor.h.
59735         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59736         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59737         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59738         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59739         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59740         * modules/physmem (EXTRA_DIST): Add physmem.h.
59741         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59742         * modules/posixver (EXTRA_DIST): Add posixver.h.
59743         * modules/quote (EXTRA_DIST): Add quote.h.
59744         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59745         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59746         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59747         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59748         regex_internal.h regexec.c.
59749         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59750         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59751         * modules/same (EXTRA_DIST): Add same.h.
59752         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59753         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59754         * modules/savedir (EXTRA_DIST): Add savedir.h.
59755         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59756         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59757         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59758         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59759         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59760         * modules/strdup (EXTRA_DIST): Add strdup.h.
59761         * modules/strftime (EXTRA_DIST): Add strftime.h.
59762         * modules/strndup (EXTRA_DIST): Add strndup.h.
59763         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59764         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59765         * modules/time_r (EXTRA_DIST): Add time_r.h.
59766         * modules/timespec (EXTRA_DIST): Add timespec.h.
59767         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59768         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59769         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59770         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59771         * modules/userspec (EXTRA_DIST): Add userspec.h.
59772         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59773         * modules/utimens (EXTRA_DIST): Add utimens.h.
59774         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59775         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59776         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59777         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59778         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59779         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59780         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59781         * modules/yesno (EXTRA_DIST): Add yesno.h.
59782
59783 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59784
59785         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59786
59787         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59788         * m4/dev-ino.m4, same-inode.m4: Remove.
59789
59790         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59791         * m4/acl.m4 (AC_FUNC_ACL):
59792         * m4/backupfile.m4 (gl_BACKUPFILE):
59793         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59794         * m4/canon-host.m4 (gl_CANON_HOST):
59795         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59796         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59797         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59798         * m4/cloexec.m4 (gl_CLOEXEC):
59799         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59800         * m4/closeout.m4 (gl_CLOSEOUT):
59801         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59802         * m4/dirname.m4 (gl_DIRNAME):
59803         * m4/exclude.m4 (gl_EXCLUDE):
59804         * m4/exitfail.m4 (gl_EXITFAIL):
59805         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59806         * m4/file-type.m4 (gl_FILE_TYPE):
59807         * m4/filemode.m4 (gl_FILEMODE):
59808         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59809         * m4/fpending.m4 (gl_FUNC_FPENDING):
59810         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59811         * m4/fts.m4 (gl_FUNC_FTS):
59812         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59813         * m4/getdate.m4 (gl_GETDATE):
59814         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59815         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59816         * m4/getpass.m4 (gl_FUNC_GETPASS):
59817         * m4/gettime.m4 (gl_GETTIME):
59818         * m4/getugroups.m4 (gl_GETUGROUPS):
59819         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59820         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59821         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59822         * m4/hash.m4 (gl_HASH):
59823         * m4/idcache.m4 (gl_IDCACHE):
59824         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59825         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59826         * m4/long-options.m4 (gl_LONG_OPTIONS):
59827         * m4/lstat.m4 (gl_FUNC_LSTAT):
59828         * m4/md5.m4 (gl_MD5):
59829         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59830         * m4/memcoll.m4 (gl_MEMCOLL):
59831         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59832         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59833         * m4/memxor.m4 (gl_MEMXOR):
59834         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59835         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59836         * m4/modechange.m4 (gl_MODECHANGE):
59837         * m4/mountlist.m4 (gl_MOUNTLIST):
59838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59839         * m4/openat.m4 (gl_FUNC_OPENAT):
59840         * m4/pathmax.m4 (gl_PATHMAX):
59841         * m4/physmem.m4 (gl_PHYSMEM):
59842         * m4/posixtm.m4 (gl_POSIXTM):
59843         * m4/posixver.m4 (gl_POSIXVER):
59844         * m4/quote.m4 (gl_QUOTE):
59845         * m4/quotearg.m4 (gl_QUOTEARG):
59846         * m4/readtokens.m4 (gl_READTOKENS):
59847         * m4/readutmp.m4 (gl_READUTMP):
59848         * m4/regex.m4 (gl_REGEX):
59849         * m4/safe-read.m4 (gl_SAFE_READ):
59850         * m4/safe-write.m4 (gl_SAFE_WRITE):
59851         * m4/same.m4 (gl_SAME):
59852         * m4/save-cwd.m4 (gl_SAVE_CWD):
59853         * m4/savedir.m4 (gl_SAVEDIR):
59854         * m4/settime.m4 (gl_SETTIME):
59855         * m4/sha1.m4 (gl_SHA1):
59856         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59857         * m4/stat-macros.m4 (gl_STAT_MACROS):
59858         * m4/stat-time.m4 (gl_STAT_TIME):
59859         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59860         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59861         * m4/strdup.m4 (gl_FUNC_STRDUP):
59862         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59863         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59864         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59865         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59866         * m4/time_r.m4 (gl_TIME_R):
59867         * m4/timespec.m4 (gl_TIMESPEC):
59868         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59869         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59870         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59871         * m4/userspec.m4 (gl_USERSPEC):
59872         * m4/utimecmp.m4 (gl_UTIMECMP):
59873         * m4/utimens.m4 (gl_UTIMENS):
59874         * m4/xalloc.m4 (gl_XALLOC):
59875         * m4/xgetcwd.m4 (gl_XGETCWD):
59876         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59877         * m4/xreadlink.m4 (gl_XREADLINK):
59878         * m4/xstrtod.m4 (gl_XSTRTOD):
59879         * m4/yesno.m4 (gl_YESNO):
59880         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59881         to get the necessary .h files and whatnot.
59882
59883 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59884             Bruno Haible  <bruno@clisp.org>
59885
59886         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59887         /bin/sh understanding of '!' conditional negation.
59888
59889 2006-08-21  Jim Meyering  <jim@meyering.net>
59890
59891         * modules/openat (Depends-on): Really alphabetize.
59892
59893         * modules/acl (Depends-on): Add error and quote.
59894
59895         * check-module (find_included_lib_files): Add at-func.c to the
59896         ok-to-include-more-than-once white list.
59897
59898         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59899
59900 2006-08-21  Bruno Haible  <bruno@clisp.org>
59901
59902         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59903         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59904         Reported by Martin Lambers <marlam@marlam.de>.
59905
59906 2006-08-21  Bruno Haible  <bruno@clisp.org>
59907
59908         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59909         specify an installation location, don't emit a noinst_LIBRARIES or
59910         noinst_LTLIBRARIES assignment.
59911
59912 2006-08-21  Bruno Haible  <bruno@clisp.org>
59913
59914         BeOS portability.
59915         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59916         BeOS has mbrtowc() but no <wctype.h>.
59917
59918 2006-08-21  Bruno Haible  <bruno@clisp.org>
59919
59920         BeOS portability.
59921         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59922         exist.
59923
59924 2006-08-21  Bruno Haible  <bruno@clisp.org>
59925
59926         BeOS portability.
59927         * lib/mbchar.h: Include <wctype.h> only if it exists.
59928
59929 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59930
59931         Remove files that are no longer needed by their respective modules.
59932         * m4/obstack.m4: Remove.
59933         * m4/strerror_r.m4: Remove.
59934         * m4/uint32_t.m4: Remove.
59935         * m4/uintptr_t.m4: Remove.
59936         * m4/ullong_max.m4: Remove.
59937         * m4/xstrtoimax.m4: Remove.
59938         * m4/xstrtoumax.m4: Remove.
59939
59940         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59941         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59942         dependencies now capture this.
59943
59944         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59945         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59946         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59947         * m4/human.m4 (gl_HUMAN): Likewise.
59948         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59949         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59950
59951         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59952
59953         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59954         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59955         stdint.
59956         * m4/human.m4 (gl_HUMAN): Likewise.
59957         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59958         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59959         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59960         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59961         * m4/xstrtol (gl_XSTRTOL): Likewise.
59962
59963         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59964         AC_TYPE_LONG_LONG_INT.
59965         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59966         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59967         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59968         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59969
59970         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59971         on stdbool.
59972
59973         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59974         (gl_PREREQ_XSTRTOUL): Remove.
59975
59976         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59977
59978         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59979         mode.
59980
59981 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         Add and change modules to make it easier for coreutils to use
59984         gnulib-tool.
59985         * modules/backupfile (Files): Remove m4/d-ino.m4.
59986         (Depends-on): Add d-ino.
59987         * modules/cycle-check (Depends-on): Add stdint.
59988         (lib_SOURCES): Add cycle-check.h.
59989         * modules/d-ino: New module.
59990         * modules/d-type: New module.
59991         * modules/error (Files): Remove m4/strerror_r.m4.
59992         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59993         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59994         m4/inttypes_h.m4, m4/uintmax_t.m4.
59995         (Depends-on): Add stdint.
59996         (lib_SOURCES): Add fsusage.h.
59997         * modules/getcwd (Files): Remove d-ino.m4.
59998         (Depends-on): Add d-ino.
59999         * modules/getndelim2 (Depends-on): Add stdint.
60000         * modules/glob (Files): Remove m4/d-type.m4.
60001         (Depends-on): Add d-type.
60002         * modules/host-os: New module.
60003         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60004         m4/inttypes_h.m4, m4/uintmax_t.m4.
60005         * Depends-on: Add stdint.
60006         (lib_SOURCES): Add human.h.
60007         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60008         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60009         m4/uintmax_t.m4, m4/ulonglong.m4.
60010         (Depends-on): Add stdint.
60011         (EXTRA_DIST): Add inttostr.h.
60012         * modules/lchmod: New module.
60013         * modules/link-follow: New module.
60014         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60015         (Depends-on): Add lchmod.
60016         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60017         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60018         (Depends-on): Add stdint.
60019         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60020         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60021         (Depends-on): Add stdint.
60022         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60023         * modules/perl: New module.
60024         * modules/regex (Depends-on): Add stdint.
60025         * modules/rmdir-errno: New module.
60026         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60027         m4/intmax_t.m4.
60028         (Depends-on): Add stdint.
60029         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60030         m4/uintmax_t.m4.
60031         (Depends-on): Add stdint.
60032         * modules/unlink-busy: New module.
60033         * modules/utimecmp (Depends-on): Add stdint.
60034         * modules/uptime: New module.
60035         * modules/winsz-ioctl: New module.
60036         * modules/winsz-termios: New module.
60037         * modules/xnanosleep (Depends-on): Add nanosleep.
60038         * modules/ullong_max: Remove.
60039         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60040         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60041         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60042         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60043         (Depends-on): Add inttypes.
60044         (lib_SOURCES): Add xstrtol.h.
60045         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60046         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60047         * MODULES.html.sh: Move 'assert' into the assert section.
60048         Move 'dummy' into the linking section.
60049         Remove ullong_max.
60050         Add section for compatibility checks for POSIX:2001 functions,
60051         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60052         winsz-ioctl, and winsz-termios into it.
60053         Add lchmod.
60054         Add top-level Misc section and put host-os, perl, and uptime
60055         into it.
60056
60057 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60058
60059         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60060         now assume the stdint module.  Do not include inttypes.h.
60061         * lib/fsusage.h: Likewise.
60062         * lib/getndelim2.c: Likewise.
60063         * lib/human.h: Likewise.
60064         * lib/inttostr.h: Likewise.
60065         * lib/obstack.c: Likewise.
60066         * lib/regex_internal.h: Likewise.
60067         * lib/tempname.c: Likewise.
60068         * lib/utimecmp.c: Likewise.
60069         * lib/xstrtol.h: Likewise.
60070
60071         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60072
60073         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60074         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60075         * lib/xtime.h: Likewise.
60076
60077 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60078
60079         * modules/openat (Files): Add lib/fchmodat.c.
60080         Fixes problem reported by Jay Youngman.
60081
60082 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60083
60084         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60085         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60086
60087 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60088             Bruno Haible  <bruno@clisp.org>
60089
60090         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60091         and is a script that invokes bison. Tighten the code. Add comments.
60092
60093 2006-08-18  Jim Meyering  <jim@meyering.net>
60094
60095         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60096         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60097         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60098         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60099
60100 2006-08-18  Bruno Haible  <bruno@clisp.org>
60101
60102         * modules/bison-i18n: New file.
60103         * MODULES.html.sh (Internationalization functions): Add it.
60104
60105 2006-08-18  Bruno Haible  <bruno@clisp.org>
60106
60107         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60108         sys/statvfs.h. When getmntinfo was found, check its declaration and
60109         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60110
60111 2006-08-18  Bruno Haible  <bruno@clisp.org>
60112
60113         * m4/bison-i18n.m4: New file, from bison.
60114
60115 2006-08-18  Bruno Haible  <bruno@clisp.org>
60116
60117         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60118         (ME_DUMMY): Treat "kernfs" as a dummy.
60119         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60120
60121 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60122
60123         Update from coreutils.
60124
60125         2006-08-15  Jim Meyering  <jim@meyering.net>
60126
60127         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60128
60129         2006-01-17  Jim Meyering  <jim@meyering.net>
60130
60131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60132
60133         2006-01-11  Jim Meyering  <jim@meyering.net>
60134
60135         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60136         Check for the lchmod function.
60137
60138 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60139
60140         Update from coreutils.
60141
60142         * lib/__fpending.h: Add copyright notice.
60143         * lib/fprintftime.h: Likewise.
60144         * lib/savedir.c: Use (C) in copyright notice.
60145         * lib/savedir.h: Likewise.
60146
60147         2006-08-15  Jim Meyering  <jim@meyering.net>
60148
60149         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60150         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60151         in support of the EXPECTED_ERRNO macro.
60152         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60153         definitions.  Instead, define the appropriate symbols and include
60154         "at-func.c".
60155         * lib/mkdirat.c (mkdirat): Likewise.
60156         * lib/fchmodat.c (fchmodat): Likewise.
60157         (ENOSYS): Remove definition.
60158         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60159         it.  Don't include "unistd--.h" -- it wasn't ever used.
60160
60161         2006-01-17  Jim Meyering  <jim@meyering.net>
60162
60163         Rewrite fts.c not to change the current working directory,
60164         by using openat, fstatat, fdopendir, etc..
60165
60166         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60167         (HAVE_OPENAT_SUPPORT): Define.
60168         [_LIBC] (fchdir): Don't undef or define; no longer used.
60169         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60170         Now, this `function' always succeeds, and consumes its file descriptor
60171         parameter -- so callers must not close such FDs.  Update callers.
60172         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60173         (diropen): Add parameter, SP.  Adjust all callers.
60174         Implement using diropen_fd, rather than open.
60175         (fts_open): Initialize new member, fts_cwd_fd.
60176         Remove fts_rft-setting code.
60177         (fts_close): Close fts_cwd_fd, if necessary.
60178         (__opendir2): Define in terms of opendir or opendirat,
60179         depending on whether the FST_NOCHDIR flag is set.
60180         (fts_build): Since fts_safe_changedir consumes its FD, and since
60181         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60182         and close the dup'd file descriptor upon failure.
60183         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60184         (fts_safe_changedir): Tweak semantics to reflect that this function
60185         now calls cwd_advance_fd and hence consumes its FD argument.
60186         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60187         [struct FTS] (fts_rft): Remove now-unused member.
60188         [struct FTS] (fts_cycle.state): Improve comment.
60189
60190         * lib/openat.c (openat_needs_fchdir): New function.
60191         * lib/openat.h (openat_needs_fchdir): Declare it.
60192
60193 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60194
60195         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60196         Problem and fix reported by Pádraig Brady in
60197         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60198
60199 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60200
60201         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60202
60203 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60204
60205         * lib/memcoll.c (memcoll): Optimize for the common case where the
60206         arguments are bytewise equal.
60207
60208 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60209
60210         * doc/regexprops-generic.texi: Add a copyright notice.
60211
60212 2006-08-15  Bruno Haible  <bruno@clisp.org>
60213
60214         * modules/tmpdir (License): Change to LGPL.
60215
60216 2006-08-15  Bruno Haible  <bruno@clisp.org>
60217
60218         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60219         module.
60220
60221 2006-08-14  Simon Josefsson  <jas@extundo.com>
60222
60223         * config/srclist.txt: Add gnupload.
60224
60225 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60226
60227         Change copyright notice from LGPL 2 to GPL 2, since that's the
60228         standard form used in the gnulib repository.
60229         * tests/test-lock.c: Likewise.
60230         * tests/test-stdint.c: Likewise.
60231         * tests/test-tls.c: Likewise.
60232
60233         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60234         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60235         Add copyright notice.
60236
60237         * check-module: Add copyright notice.  Output a copyright
60238         notice if "--version" is specified.
60239         * modules/COPYING: New file.
60240         * tests/test-getaddrinfo.c: Add copyright notice.
60241         * tests/test-verify.c: Likewise.
60242
60243 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60244
60245         Change copyright notice from LGPL 2 to GPL 2, since that's the
60246         standard form used in the gnulib repository.
60247         * lib/lock.c: LGPL -> GPL.
60248         * lib/lock.h: Likewise.
60249         * lib/strnlen1.c: Likewise.
60250         * lib/strnlen1.h: Likewise.
60251         * lib/tls.c: Likewise.
60252         * lib/tls.h: Likewise.
60253         * lib/tmpdir.c: Likewise.
60254
60255         * lib/TODO: Remove; this belongs only in coreutils.
60256
60257 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         Add copyright notices to long-enough files that lack them, since
60260         otherwise the files aren't clearly free.  Use the same notice that
60261         getdate.texi already uses.
60262         * doc/alloca-opt.texi: Add copyright notice.
60263         * doc/alloca.texi: Likewise.
60264         * doc/ctime.texi: Likewise.
60265         * doc/functions.texi: Likewise.
60266         * doc/gcd.texi: Likewise.
60267         * doc/gnulib-tool.texi: Likewise.
60268         * doc/inet_ntoa.texi: Likewise.
60269         * doc/visibility.texi: Likewise.
60270
60271         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60272         * doc/quote.texi: Add copyright notice.
60273
60274         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60275         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60276         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60277         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60278         is now obsolete, and give a pointer to the Sun list.
60279         Add copyright notice.
60280
60281 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60282
60283         * config/srclistvars.sh: Add copyright notice.
60284
60285 2006-08-14  Eric Blake  <ebb9@byu.net>
60286
60287         Import the following change from libc:
60288
60289         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60290
60291         Upstream bug 2997.
60292         * lib/misc/error.c: Add space between program name and message if file
60293         name is missing.
60294
60295 2006-08-12  Karl Berry  <karl@gnu.org>
60296
60297         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60298         remove, these originate in gnulib now.
60299
60300 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60301
60302         * doc/Makefile (standards.info standards.html standards.dvi):
60303         Also depend on make-stds.texi.
60304
60305 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60306
60307         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60308         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60309
60310         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60311         in wchar_t.  Problem reported by Eric Blake.
60312
60313         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60314         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60315         Also, help the compiler to keep LEN in a register.
60316
60317 2006-08-11  Eric Blake  <ebb9@byu.net>
60318
60319         * users.txt: Sort.  Add tar.
60320
60321 2006-08-11  Bruno Haible  <bruno@clisp.org>
60322
60323         * users.txt: New file.
60324
60325 2006-08-11  Bruno Haible  <bruno@clisp.org>
60326
60327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60328         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60329
60330 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60331
60332         * modules/snprintf (Depends-on): Remove minmax.
60333         (Maintainer): Add self and Bruno.
60334
60335 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60336
60337         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60338         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60339         (EOVERFLOW): Define if the system does not.
60340         Do not include "minmax.h"; it wasn't used.
60341         (snprintf): Don't assume size_t promotes to an unsigned type.
60342         Fix bug when generated string was too long for the buffer: the
60343         buffer's contents are supposed to be the initial prefix of the
60344         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60345         exceeds INT_MAX; do the check ourselves.
60346
60347         Import the following changes from libc:
60348
60349         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60350
60351         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60352         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60353         set wc to the byte which couldn't be converted.
60354         (re_string_reconstruct): Don't clear valid_raw_len before calling
60355         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60356         tip_context using re_string_context_at.
60357
60358         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60359
60360         * lib/posix/regex.h: g++ still cannot handled [restrict].
60361
60362         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60363
60364         * lib/posix/regex.h: Remove special handling for VMS.
60365
60366 2006-08-10  Jim Meyering  <jim@meyering.net>
60367
60368         * modules/same-inode: New module.
60369         * modules/dev-ino: New module.
60370         * modules/cycle-check: Depend on these modules, rather than simply
60371         including their .h files.
60372         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60373         required via m4/cycle-check.m4.
60374         * modules/same: Depend on new same-inode module, rather than
60375         including same-inode.h.
60376         * modules/chdir-safer: New file.
60377
60378         * modules/chown (Depends-on): Add stat-macros.
60379
60380 2006-08-10  Jim Meyering  <jim@meyering.net>
60381
60382         * m4/cycle-check.m4: New file.
60383         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60384         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60385
60386 2006-08-10  Eric Blake  <ebb9@byu.net>
60387
60388         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60389         in from original proposal.
60390
60391 2006-08-10  Eric Blake  <ebb9@byu.net>
60392         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60393
60394         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60395         namespace.
60396
60397 2006-08-10  Bruno Haible  <bruno@clisp.org>
60398
60399         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60400         as well.
60401
60402 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60403
60404         Sync from coreutils.
60405
60406         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60407
60408         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60409         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60410
60411 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60412
60413         * modules/restrict: Remove; no longer needed now that we assume
60414         Autoconf 2.59 or later.
60415         * MODULES.html.sh: Remove 'restrict'.
60416         * modules/argp (Depends-on): Remove 'restrict'.
60417         * modules/base64 (Depends-on): Likewise.
60418         * modules/gc (Depends-on): Likewise.
60419         * modules/getaddrinfo (Depends-on): Likewise.
60420         * modules/glob (Depends-on): Likewise.
60421         * modules/inet_ntop (Depends-on): Likewise.
60422         * modules/inet_pton (Depends-on): Likewise.
60423         * modules/memxor (Depends-on): Likewise.
60424         * modules/regex (Depends-on): Likewise.
60425         * modules/strtok_r (Depends-on): Likewise.
60426         * modules/time_r (Depends-on): Likewise.
60427
60428 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60431         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60432         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60433         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60434         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60435         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60436         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60437         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60438
60439         Merge from coreutils.
60440         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60441         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60442         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60443         * m4/time_r.m4 (gl_TIME_R): Likewise.
60444
60445 2006-08-09  Karl Berry  <karl@gnu.org>
60446
60447         * config/srclist.txt: no more gettext-tools, per Bruno.
60448
60449 2006-08-08  Eric Blake  <ebb9@byu.net>
60450
60451         * modules/verror: New module.
60452         * MODULES.html.sh: Document it.
60453
60454 2006-08-08  Eric Blake  <ebb9@byu.net>
60455
60456         * lib/verror.h, lib/verror.c: New files.
60457
60458 2006-08-08  Eric Blake  <ebb9@byu.net>
60459
60460         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60461         verror_at_line output complies with GNU Coding Standards even when
60462         file is NULL.
60463
60464 2006-08-07  Bruno Haible  <bruno@clisp.org>
60465
60466         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60467         versions of AIX.
60468         Reported by Ralf Wildenhues.
60469
60470 2006-08-07  Bruno Haible  <bruno@clisp.org>
60471
60472         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60473         in an AC_DEFUN. Needed so that the autoconf snippets can use
60474         AC_REQUIRE.
60475
60476 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60477
60478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60479         Initialize pkgdata_DATA.
60480         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60481         overriding it.
60482
60483 2006-08-06  Eric Blake  <ebb9@byu.net>
60484
60485         * lib/error.h: Fold in some upstream changes from glibc.
60486         * lib/error.c: Likewise.
60487
60488 2006-08-04  Bruno Haible  <bruno@clisp.org>
60489
60490         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60491         Make the mostlyclean-local rule depend on mostlyclean-generic.
60492         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60493
60494 2006-07-31  Bruno Haible  <bruno@clisp.org>
60495
60496         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60497         <stdlib.h>, <string.h>.
60498
60499 2006-07-30  Bruno Haible  <bruno@clisp.org>
60500
60501         * modules/readlink (License): Change to LGPL.
60502
60503 2006-07-30  Bruno Haible  <bruno@clisp.org>
60504
60505         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60506         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60507         set PKGDATADIR to point to it.
60508
60509 2006-07-30  Bruno Haible  <bruno@clisp.org>
60510
60511         * modules/csharpexec (configure.ac): Comment out macro invocation.
60512         * modules/javaexec (configure.ac): Likewise.
60513         * modules/javacomp-script (configure.ac): Likewise.
60514
60515         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60516
60517 2006-07-30  Bruno Haible  <bruno@clisp.org>
60518
60519         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60520         linked-list.
60521
60522 2006-07-30  Bruno Haible  <bruno@clisp.org>
60523
60524         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60525
60526 2006-07-30  Bruno Haible  <bruno@clisp.org>
60527
60528         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60529         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60530         get removed.
60531
60532 2006-07-29  Bruno Haible  <bruno@clisp.org>
60533
60534         Make it possible for gnulib-tool to work with locally modified or
60535         augmented gnulib repositories.
60536         * gnulib-tool (func_usage): Document --local-dir option.
60537         (local_gnulib_dir): New variable.
60538         Handle --local-dir option.
60539         (func_lookup_file): New function.
60540         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60541         (func_get_description, func_get_filelist, func_get_description,
60542         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60543         func_get_automake_snippet, func_get_include_directive,
60544         func_get_license, func_get_maintainer): Use func_lookup_file.
60545         (func_import, func_create_testdir): Use func_lookup_file.
60546
60547 2006-07-29  Bruno Haible  <bruno@clisp.org>
60548
60549         * modules/setenv (Depends-on): Add unistd.
60550
60551 2006-07-29  Bruno Haible  <bruno@clisp.org>
60552
60553         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60554
60555 2006-07-29  Bruno Haible  <bruno@clisp.org>
60556
60557         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60558
60559 2006-07-29  Bruno Haible  <bruno@clisp.org>
60560
60561         * gnulib-tool (import, update): If there is no Makefile.am, look at
60562         aclocal.m4, instead of bailing out.
60563
60564 2006-07-29  Bruno Haible  <bruno@clisp.org>
60565
60566         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60567         Categorize the options by when they are useful.
60568
60569 2006-07-29  Bruno Haible  <bruno@clisp.org>
60570
60571         * gnulib-tool (func_usage): Document option --no-libtool.
60572         Handle option --no-libtool.
60573         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60574         for changed semantics of $libtool variable.
60575         (func_import): Likewise. If libtool is not used, show this through
60576         an option --no-libtool.
60577         (func_create_testdir): Update.
60578
60579 2006-07-29  Bruno Haible  <bruno@clisp.org>
60580
60581         * gnulib-tool (func_import): Extend error message about missing
60582         --doc-base.
60583
60584 2006-07-29  Bruno Haible  <bruno@clisp.org>
60585
60586         * gnulib-tool (func_import): Don't create the $docbase directory if
60587         there is no file to store there.
60588
60589 2006-07-29  Bruno Haible  <bruno@clisp.org>
60590
60591         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60592         relevant, look for configure.ac there, not in the current directory.
60593         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60594
60595 2006-07-29  Bruno Haible  <bruno@clisp.org>
60596
60597         * gnulib-tool (SORT): New variable.
60598         (func_usage): Undocument --assume-autoconf option.
60599         Remove --assume-autoconf option handling.
60600         (autoconf_minversion): Determine from the contents of configure.ac.
60601         (func_import): Remove autoconf_minversion handling.
60602         Suggested by Eric Blake.
60603
60604 2006-07-29  Bruno Haible  <bruno@clisp.org>
60605
60606         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60607
60608 2006-07-29  Bruno Haible  <bruno@clisp.org>
60609
60610         * config/srclist.txt (*setenv.[ch]): Remove rules.
60611
60612 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60613
60614         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60615
60616 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60617
60618         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60619         arpa/inet.h.
60620
60621 2006-07-28  Simon Josefsson  <jas@extundo.com>
60622
60623         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60624         * modules/inet_pton (Depends-on): Likewise.
60625
60626 2006-07-28  Simon Josefsson  <jas@extundo.com>
60627
60628         * m4/netinet_in_h.m4: New file.
60629
60630 2006-07-28  Simon Josefsson  <jas@extundo.com>
60631
60632         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60633         #include's.
60634
60635 2006-07-28  Simon Josefsson  <jas@extundo.com>
60636
60637         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60638         #include's.
60639
60640 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60641
60642         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60643         setgid on directories only if they set these bits.
60644         * lib/modechange.h: Remove obsolete comment about masks.
60645
60646 2006-07-28  Eric Blake  <ebb9@byu.net>
60647
60648         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60649         macro expansion.
60650
60651 2006-07-28  Bruno Haible  <bruno@clisp.org>
60652
60653         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60654
60655 2006-07-28  Bruno Haible  <bruno@clisp.org>
60656
60657         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60658
60659 2006-07-28  Bruno Haible  <bruno@clisp.org>
60660
60661         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60662         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60663         Define fallbacks.
60664         Avoids link error on FreeBSD 4.x.
60665         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60666
60667         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60668         encoding.
60669         * lib/mbswidth.c (iswcntrl): Likewise.
60670
60671 2006-07-27  Bruno Haible  <bruno@clisp.org>
60672
60673         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60674         test.
60675
60676 2006-07-27  Bruno Haible  <bruno@clisp.org>
60677
60678         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60679         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60680         defined.
60681
60682 2006-07-26  Eric Blake  <ebb9@byu.net>
60683
60684         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60685
60686 2006-07-26  Eric Blake  <ebb9@byu.net>
60687
60688         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60689         like mingw that lack mkstemp.
60690         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60691         avoid compilation warning on mingw.
60692
60693 2006-07-26  Bruno Haible  <bruno@clisp.org>
60694
60695         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60696         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60697         INT_FAST*_MIN, INTPTR_MIN.
60698
60699 2006-07-25  Bruno Haible  <bruno@clisp.org>
60700
60701         * modules/version-etc (Depends-on): Add stdarg.
60702
60703 2006-07-25  Bruno Haible  <bruno@clisp.org>
60704
60705         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60706         complex commands.
60707
60708 2006-07-25  Bruno Haible  <bruno@clisp.org>
60709
60710         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60711         defined in <stdarg.h> or config.h.
60712
60713 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60714
60715         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60716         (gl_STDIO_SAFER): Remove.
60717
60718 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60719
60720         * MODULES.html.sh (File stream based Input/Output):
60721         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60722         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60723         * modules/fopen-safer, modules/tmpfile-safer: New files.
60724         * modules/stdio-safer: Remove.
60725
60726 2006-07-24  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/tmpdir: New file.
60729         * MODULES.html.sh (File system functions): Add it.
60730
60731 2006-07-24  Bruno Haible  <bruno@clisp.org>
60732
60733         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60734         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60735
60736 2006-07-24  Bruno Haible  <bruno@clisp.org>
60737
60738         * modules/clean-temp: New file.
60739
60740 2006-07-24  Bruno Haible  <bruno@clisp.org>
60741
60742         * m4/tmpdir.m4: New file, from GNU gettext.
60743
60744 2006-07-24  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/tmpdir.h: New file, from GNU gettext.
60747         * lib/tmpdir.c: New file, from GNU gettext.
60748
60749 2006-07-24  Bruno Haible  <bruno@clisp.org>
60750
60751         * lib/clean-temp.h: New file, from GNU gettext.
60752         * lib/clean-temp.c: New file, from GNU gettext.
60753
60754 2006-07-23  Eric Blake  <ebb9@byu.net>
60755
60756         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60757         (Depends-on): Add binary-io.
60758
60759 2006-07-23  Eric Blake  <ebb9@byu.net>
60760
60761         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60762
60763 2006-07-23  Eric Blake  <ebb9@byu.net>
60764
60765         * lib/tmpfile-safer.c: New file.
60766         * lib/stdio-safer.h (fopen_safer): Add prototype.
60767         * lib/stdio--.h (tmpfile): Make safer.
60768
60769 2006-07-23  Bruno Haible  <bruno@clisp.org>
60770
60771         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60772         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60773         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60774         gl_linked_remove_at): Use it.
60775
60776 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60777         and Simon Josefsson <jas@extundo.com>
60778
60779         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60780
60781         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60782
60783 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60784
60785         * modules/close-stream: New file.
60786         * modules/closeout (Description): Make it clear that it exits
60787         with a diagnostic on error.
60788         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60789         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60790
60791 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60792
60793         * m4/close-stream.m4: New file.
60794
60795 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * lib/close-stream.c, lib/close-stream.h: New files.
60798
60799 2006-07-22  Bruno Haible  <bruno@clisp.org>
60800
60801         Merge from GNU gettext 0.15.
60802
60803         2006-05-01  Bruno Haible  <bruno@clisp.org>
60804
60805                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60806
60807         2006-07-22  Bruno Haible  <bruno@clisp.org>
60808
60809                 * modules/javaversion: New file.
60810                 * MODULES.html.sh (Java): Add javaversion.
60811
60812         2006-03-12  Bruno Haible  <bruno@clisp.org>
60813
60814                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60815
60816         2005-12-04  Bruno Haible  <bruno@clisp.org>
60817
60818                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60819                 (untested).
60820
60821         2006-06-21  Bruno Haible  <bruno@clisp.org>
60822
60823                 Avoid warnings from recent versions of mcs.
60824                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60825                 -o, -L, -r any more. Use options documented since mcs-1.0
60826                 instead. Similarly for -g.
60827
60828         2005-12-04  Bruno Haible  <bruno@clisp.org>
60829
60830                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60831                 .resources, not .resource.
60832
60833         2005-07-09  Bruno Haible  <bruno@clisp.org>
60834
60835                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60836                 add a .dll suffix.
60837                 Reported by Mark Junker <mjscod@gmx.de>.
60838
60839         2006-07-22  Bruno Haible  <bruno@clisp.org>
60840
60841                 * modules/gettext: Upgrade to gettext-0.15.
60842                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60843                 m4/visibility.m4.
60844                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60845
60846 2006-07-22  Bruno Haible  <bruno@clisp.org>
60847
60848         Merge from GNU gettext 0.15.
60849
60850         2006-03-25  Bruno Haible  <bruno@clisp.org>
60851
60852                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60853
60854         2006-07-21  Bruno Haible  <bruno@clisp.org>
60855
60856                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60857                 "1.1".
60858
60859         2006-05-09  Bruno Haible  <bruno@clisp.org>
60860
60861                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60862                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60863                 for the conftestver execution.
60864
60865         2006-05-01  Bruno Haible  <bruno@clisp.org>
60866
60867                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60868                 optional target-version argument. Verify that the compiler
60869                 groks source of the specified source-version, or add -source
60870                 option as necessary. Verify that the compiler produces
60871                 bytecode in the specified target-version, or add -target and
60872                 -source options as necessary. Make the result of the test
60873                 available as variable CONF_JAVAC. Also log error output in
60874                 config.log.
60875
60876         2006-03-11  Bruno Haible  <bruno@clisp.org>
60877
60878                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60879
60880         2006-05-09  Bruno Haible  <bruno@clisp.org>
60881
60882                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60883                 CLASSPATH_SEPARATOR to a semicolon.
60884
60885         2006-03-12  Bruno Haible  <bruno@clisp.org>
60886
60887                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60888                 available as variable CONF_JAVA, for subsequent autoconf
60889                 tests. Also log error output in config.log.
60890
60891         2006-07-19  Bruno Haible  <bruno@clisp.org>
60892
60893                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60894                 that getline works on glibc2 systems. Needed to avoid trouble
60895                 in relocatable.c.
60896                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60897
60898         2005-12-04  Bruno Haible  <bruno@clisp.org>
60899
60900                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60901                 launcher (untested).
60902
60903         2005-12-04  Bruno Haible  <bruno@clisp.org>
60904
60905                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60906
60907         2006-07-22  Bruno Haible  <bruno@clisp.org>
60908
60909                 * gettext.m4: Update from GNU gettext-0.15.
60910                 * nls.m4: Likewise.
60911                 * po.m4: Likewise.
60912                 * inttypes-pri.m4: Likewise.
60913                 * inttypes-h.m4: Renamed from inttypes.m4.
60914                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60915
60916 2006-07-22  Bruno Haible  <bruno@clisp.org>
60917
60918         Merge from GNU gettext 0.15.
60919
60920         2005-07-05  Bruno Haible  <bruno@clisp.org>
60921
60922                 * printf-args.c (printf_fetchargs): Work around broken
60923                 definition of wint_t on mingw.
60924
60925         2005-02-12  Bruno Haible  <bruno@clisp.org>
60926
60927                 * xallocsa.h: Add extern "C" for C++.
60928
60929         2006-05-17  Bruno Haible  <bruno@clisp.org>
60930
60931                 Cygwin portability.
60932                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60933
60934         2006-04-30  Bruno Haible  <bruno@clisp.org>
60935
60936                 * progreloc.c: Include <mach-o/dyld.h> if available.
60937                 (find_executable): Use _NSGetExecutablePath when possible.
60938
60939         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60940
60941                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60942                 function.
60943
60944         2005-12-29  Bruno Haible  <bruno@clisp.org>
60945
60946                 * progreloc.c (set_program_name_and_installdir): Fix
60947                 compilation error.
60948
60949         2005-12-04  Bruno Haible  <bruno@clisp.org>
60950
60951                 Cygwin portability.
60952                 * progreloc.c: Include <windows.h> also on Cygwin.
60953                 (find_executable): Add support for Cygwin.
60954                 (set_program_name_and_installdir): Handle also platforms with
60955                 nonempty EXEEXT.
60956
60957         2006-07-11  Bruno Haible  <bruno@clisp.org>
60958
60959                 * javacomp.c: Fix a comment.
60960                 Reported by Jim Meyering.
60961
60962         2006-04-30  Bruno Haible  <bruno@clisp.org>
60963
60964                 * javacomp.h (compile_java_class): Add source_version,
60965                 target_version arguments.
60966                 * javacomp.c: Rewritten to choose only a compiler that
60967                 respects the specified source_version and target_version.
60968
60969         2006-06-27  Bruno Haible  <bruno@clisp.org>
60970
60971                 Assume correct S_ISDIR macro.
60972                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60973
60974         2006-07-22  Bruno Haible  <bruno@clisp.org>
60975
60976                 * javaversion.h: New file, from GNU gettext.
60977                 * javaversion.c: New file, from GNU gettext.
60978                 * javaversion.java: New file, from GNU gettext.
60979                 * javaversion.class: New file, from GNU gettext.
60980
60981         2006-05-17  Bruno Haible  <bruno@clisp.org>
60982
60983                 Cygwin portability.
60984                 * javaexec.c (execute_java_class): Test for jview program
60985                 also on Cygwin.
60986
60987         2006-04-09  Bruno Haible  <bruno@clisp.org>
60988
60989                 * fatal-signal.c: Don't include string.h.
60990                 (at_fatal_signal): Use a copying loop instead of memcpy.
60991
60992         2005-12-04  Bruno Haible  <bruno@clisp.org>
60993
60994                 * csharpexec.c: Add support for 'clix' launcher (untested).
60995                 (execute_csharp_using_sscli): New function.
60996                 (execute_csharp_program): Call it.
60997
60998         2006-06-21  Bruno Haible  <bruno@clisp.org>
60999
61000                 Avoid warnings from recent versions of mcs.
61001                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61002                 -o, -L, -r any more. Use options documented since mcs-1.0
61003                 instead. Similarly for -g.
61004
61005         2005-07-09  Bruno Haible  <bruno@clisp.org>
61006
61007                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61008                 add a .dll suffix.
61009                 Reported by Mark Junker <mjscod@gmx.de>.
61010
61011         2006-06-17  Bruno Haible  <bruno@clisp.org>
61012
61013                 * config.charset: Update for NetBSD 3.0.
61014
61015         2006-05-17  Bruno Haible  <bruno@clisp.org>
61016
61017                 Cygwin portability.
61018                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61019
61020         2006-05-16  Bruno Haible  <bruno@clisp.org>
61021
61022                 * localcharset.c [CYGWIN]: Include <windows.h>.
61023                 (get_charset_aliases): For Cygwin, return the same CPxxx
61024                 aliases list as under WIN32.
61025                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61026                 the environment variables. Fall back to GetACP().
61027
61028         2006-04-05  Bruno Haible  <bruno@clisp.org>
61029
61030                 * config.charset: Update Juan Manuel Guerrero's address.
61031
61032         2005-02-12  Bruno Haible  <bruno@clisp.org>
61033
61034                 * allocsa.h: Add extern "C" for C++.
61035
61036         2005-02-10  Bruno Haible  <bruno@clisp.org>
61037
61038                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61039                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61040
61041         2006-07-22  Bruno Haible  <bruno@clisp.org>
61042
61043                 * gettext.h: Update to GNU gettext-0.15.
61044
61045 2006-07-22  Bruno Haible  <bruno@clisp.org>
61046
61047         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61048         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61049         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61050
61051 2006-07-21  Eric Blake  <ebb9@byu.net>
61052
61053         * modules/stdlib-safer: New file.
61054         * MODULES.html.sh (File stream based Input/Output): Add
61055         stdlib-safer.
61056
61057 2006-07-21  Eric Blake  <ebb9@byu.net>
61058
61059         * lib/stdlib-safer.h: New file from coreutils, required by
61060         stdlib--.h.
61061
61062 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61065
61066 2006-07-20  Bruno Haible  <bruno@clisp.org>
61067
61068         * gnulib-tool: Recognize new option --assume-autoconf.
61069         (autoconf_minversion): New variable.
61070         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61071
61072 2006-07-20  Bruno Haible  <bruno@clisp.org>
61073
61074         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61075
61076 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61077
61078         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61079         Reindent and repaginate.
61080
61081 2006-07-19  Derek Price  <derek@ximbiot.com>
61082
61083         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61084         Correct grammar.
61085
61086 2006-07-17  Bruno Haible  <bruno@clisp.org>
61087
61088         * modules/list: New file.
61089         * modules/array-list: New file.
61090         * modules/carray-list, modules/carray-list-tests: New files.
61091         * modules/linked-list, modules/linked-list-tests: New files.
61092         * modules/avltree-list, modules/avltree-list-tests: New files.
61093         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61094         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61095         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61096         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61097         * modules/oset: New file.
61098         * modules/array-oset: New file.
61099         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61100         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61101         * tests/test-carray_list.c: New file.
61102         * tests/test-linked_list.c: New file.
61103         * tests/test-avltree_list.c: New file.
61104         * tests/test-rbtree_list.c: New file.
61105         * tests/test-linkedhash_list.c: New file.
61106         * tests/test-avltreehash_list.c: New file.
61107         * tests/test-rbtreehash_list.c: New file.
61108         * tests/test-avltree_oset.c: New file.
61109         * tests/test-rbtree_oset.c: New file.
61110         * MODULES.html.sh (Container data structures): New section.
61111
61112 2006-07-17  Bruno Haible  <bruno@clisp.org>
61113
61114         * m4/gl_list.m4: New file.
61115
61116 2006-07-17  Bruno Haible  <bruno@clisp.org>
61117
61118         * lib/gl_list.h: New file.
61119         * lib/gl_list.c: New file.
61120         * lib/gl_array_list.h: New file.
61121         * lib/gl_array_list.c: New file.
61122         * lib/gl_carray_list.h: New file.
61123         * lib/gl_carray_list.c: New file.
61124         * lib/gl_linked_list.h: New file.
61125         * lib/gl_linked_list.c: New file.
61126         * lib/gl_anylinked_list1.h: New file.
61127         * lib/gl_anylinked_list2.h: New file.
61128         * lib/gl_avltree_list.h: New file.
61129         * lib/gl_avltree_list.c: New file.
61130         * lib/gl_anyavltree_list1.h: New file.
61131         * lib/gl_anyavltree_list2.h: New file.
61132         * lib/gl_rbtree_list.h: New file.
61133         * lib/gl_rbtree_list.c: New file.
61134         * lib/gl_anyrbtree_list1.h: New file.
61135         * lib/gl_anyrbtree_list2.h: New file.
61136         * lib/gl_anytree_list1.h: New file.
61137         * lib/gl_anytree_list2.h: New file.
61138         * lib/gl_linkedhash_list.h: New file.
61139         * lib/gl_linkedhash_list.c: New file.
61140         * lib/gl_anyhash_list1.h: New file.
61141         * lib/gl_anyhash_list2.h: New file.
61142         * lib/gl_avltreehash_list.h: New file.
61143         * lib/gl_avltreehash_list.c: New file.
61144         * lib/gl_rbtreehash_list.h: New file.
61145         * lib/gl_rbtreehash_list.c: New file.
61146         * lib/gl_anytreehash_list1.h: New file.
61147         * lib/gl_anytreehash_list2.h: New file.
61148
61149         * lib/gl_oset.h: New file.
61150         * lib/gl_oset.c: New file.
61151         * lib/gl_array_oset.h: New file.
61152         * lib/gl_array_oset.c: New file.
61153         * lib/gl_avltree_oset.h: New file.
61154         * lib/gl_avltree_oset.c: New file.
61155         * lib/gl_rbtree_oset.h: New file.
61156         * lib/gl_rbtree_oset.c: New file.
61157         * lib/gl_anytree_oset.h: New file.
61158
61159 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61160
61161         * m4/mkancesdirs.m4: New file.
61162         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61163         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61164         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61165         it.
61166
61167 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61168
61169         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61170         * lib/mkancesdirs.h: New files.
61171         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61172         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61173         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61174         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61175         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61176         callers changed.  Revamp internals significantly, by not
61177         attempting to create directories that are temporarily more
61178         permissive than the final results.  Do not attempt to use
61179         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61180         This removes some race conditions, fixes some bugs, and simplifies
61181         things.  Use new dirchownmod function to do owner and mode changes.
61182         * lib/mkdir-p.h: Likewise.
61183         * lib/modechange.c (octal_to_mode): New function.
61184         (struct mode_change): New member mentioned.
61185         (make_node_op_equals): New arg mentioned.  All callers changed.
61186         (mode_compile): Keep track of which mode bits the user has explicitly
61187         mentioned.
61188         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61189         New arg PMODE_BITS, to keep track of which mode bits the user
61190         mentioned; it treats S_ISUID and S_ISGID speciall.
61191         All callers changed.
61192         * lib/modechange.h: Likewise.
61193
61194 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61195
61196         * MODULES.html.sh: Add mkancestors.
61197         * modules/mkancesdirs: New module.
61198         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61199         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61200         The chdir-safer and afs files are now orphans; I'll remove them
61201         unless someone speaks up.
61202         Add lib/dirchownmod.c, lib/dirchownmod.h.
61203         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61204         Add lchown, mkancesdirs.
61205         (Maintainer): Add self.
61206
61207 2006-07-15  Karl Berry  <karl@gnu.org>
61208
61209         * gnulib-tool: help message wording/arrangement.
61210
61211 2006-07-14  Simon Josefsson  <jas@extundo.com>
61212
61213         * doc/gnulib.texi (Libtool and Windows): New section.
61214
61215 2006-07-12  Simon Josefsson  <jas@extundo.com>
61216
61217         * modules/gendocs (License): Fix license, approved by Karl.
61218
61219 2006-07-12  Eric Blake  <ebb9@byu.net>
61220
61221         * MODULES.html.sh: Add gendocs.
61222
61223 2006-07-11  Eric Blake  <ebb9@byu.net>
61224
61225         * modules/fdl: New module, to install doc/fdl.texi.
61226         * MODULES.html.sh: Add new section for documentation modules.
61227         * gnulib-tool: Avoid space-tab.
61228         (--doc-base): New option, to manage files from doc.
61229
61230 2006-07-11  Eric Blake  <ebb9@byu.net>
61231
61232         * m4/absolute-header.m4: Fix comments to match recent change.
61233
61234 2006-07-11  Eric Blake  <ebb9@byu.net>
61235
61236         * gnulib-tool: List --doc-base before --tests-base.
61237
61238 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61239
61240         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61241
61242 2006-07-11  Bruno Haible  <bruno@clisp.org>
61243
61244         * README: Mention where to put documentation.
61245
61246 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61247
61248         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61249
61250 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61253         to stdint.m4.
61254
61255 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61256
61257         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61258         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61259         "no/such/file/stdint.h" when there is no such file, so that
61260         the resulting C code can be parsed by dodgy compilers.
61261         Problems reported by Bob Proulx.
61262
61263 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61264
61265         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61266         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61267         macros into the GNU _D_EXACT_NAMLEN.
61268         * lib/savedir.c:  Likewise.
61269         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61270
61271 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61272         and Paul Eggert  <eggert@cs.ucla.edu>
61273
61274         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61275         * m4/savedir.m4:
61276         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61277         macros into the GNU _D_EXACT_NAMLEN.
61278
61279 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61282         around the absolute name, to work around a problem with the HP-UX
61283         11.23 native C compiler, reported by Bob Proulx.
61284
61285 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61286
61287         * doc/maintain.texi, make-stds.texi: Sync from
61288         <http://savannah.gnu.org/projects/gnustandards>.
61289
61290 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61291
61292         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61293
61294 2006-07-09  Jim Meyering  <jim@meyering.net>
61295
61296         * m4/glob.m4: Remove a doubled word in a comment.
61297
61298 2006-07-09  Jim Meyering  <jim@meyering.net>
61299
61300         * lib/argp-pv.c: Remove a doubled word in a comment.
61301         * lib/check-version.c (check_version): Likewise.
61302         * lib/javacomp.c (compile_java_class): Likewise.
61303
61304 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61305
61306         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61307         for the benefit of people using Autoconf 2.60.  If you want to
61308         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61309         (or m4/onceonly.m4, if pre-2.57) manually.
61310
61311 2006-07-08  Jim Meyering  <jim@meyering.net>
61312
61313         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61314         comment.
61315         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61316         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61317         comment.
61318
61319 2006-07-08  Jim Meyering  <jim@meyering.net>
61320
61321         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61322
61323 2006-07-07  Simon Josefsson  <jas@extundo.com>
61324
61325         * tests/test-crc.c: Change expected crc value, the test vector
61326         were probably computed using the old broken crc.c?
61327
61328 2006-07-06  Simon Josefsson  <jas@extundo.com>
61329
61330         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61331         now the canonical place for the M4 file).
61332
61333         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61334         from the sys_socket dependency now.
61335
61336         * modules/inet_pton (Files): Ditto.
61337
61338         * modules/inet_ntop (Files): Ditto.
61339
61340 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61341
61342         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61343         not gl_PREREQ_GETUSERSHELL.
61344
61345 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61346
61347         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61348         with only one argument, for Autoconf 2.60.
61349         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61350         expand to nothing, so add a shell command to avoid syntax error.
61351         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61352
61353 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61354
61355         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61356
61357 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61358
61359         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61360         no longer needed.  Check for isblank decl.
61361         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61362         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61363         of existence.
61364
61365 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61366
61367         * lib/getloadavg.c: Use __VMS, not VMS.
61368         * lib/getopt.c: Likewise.
61369         * lib/getpagesize.h: Likewise.
61370         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61371         and probably does not work.
61372
61373 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61374
61375         * lib/.cppi-disable: Add wcwidth.
61376         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61377         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61378         (ISGRAPH): Remove.  All uses changed to isgraph.
61379         (FOLD) [!defined _LIBC]: Remove special case.
61380         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61381         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61382         HAVE_ISBLANK.
61383         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61384         case.
61385
61386 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61387
61388         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61389         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61390         brackets.  Other minor changes to suppress some compiler
61391         warnings.
61392
61393 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61394         and Paul Eggert  <eggert@cs.ucla.edu>
61395
61396         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61397         of invoking obsolescent AC_HEADER_DIRENT macro.
61398         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61399         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61400         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61401         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61402         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61403         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61404         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61405         * m4/readdir.m4: Remove; no longer needed.
61406
61407 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61408         and Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61411         Don't worry about this obsolete case any more.
61412         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61413         directories.
61414         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61415         worry about this obsolete case any more.
61416         * lib/fts.c: Likewise.
61417         * lib/getcwd.c: Likewise.
61418         * lib/glob.h: Likewise.
61419         * lib/savedir.c: Likewise.
61420
61421 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61422
61423         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61424         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61425         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61426         needed.
61427         All uses removed.
61428         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61429         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61430         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61431         needed.
61432         * m4/getdate.m4 (gl_GETDATE): Likewise.
61433         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61434         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61435         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61436         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61437         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61438         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61439         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61440         needed.
61441
61442 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61443
61444         * lib/memcasecmp.c: Include <limits.h>.
61445         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61446         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61447         Don't assume isdigit succeeds only on '0' through '9'.
61448
61449 2006-07-05  Eric Blake  <ebb9@byu.net>
61450
61451         * modules/getaddrinfo (Depends-on): Add snprintf.
61452
61453 2006-07-05  Eric Blake  <ebb9@byu.net>
61454
61455         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61456         to avoid 'header present but could not be compiled' on cygwin.
61457
61458 2006-07-05  Eric Blake  <ebb9@byu.net>
61459
61460         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61461         missing from netdb.h.
61462         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61463
61464 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61465
61466         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61467         no longer needed.
61468         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61469         * m4/getdate.m4 (gl_GETDATE): Likewise.
61470         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61471         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61472         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61473         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61474         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61475
61476 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61477
61478         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61479         All uses of is_space replaced by isspace.
61480         * lib/exit.h: Don't talk about STDC_HEADERS.
61481         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61482         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61483         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61484         replaced by isprint etc.
61485         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61486         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61487         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61488         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61489         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61490         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61491
61492 2006-07-05  Bruno Haible  <bruno@clisp.org>
61493
61494         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61495         the function exists, before testing against AIX.
61496         Reported by Martin Lambers <marlam@marlam.de>.
61497
61498 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61499
61500         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61501         From Mark D. Baushke.
61502
61503 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61504
61505         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61506         to the absolute name, not just one, to bypass Sun C 5.8's
61507         "warning: #include of /usr/include/... may be non-portable".
61508
61509 2006-07-04  Eric Blake  <ebb9@byu.net>
61510
61511         * modules/dirname-tests: New test module.
61512         * tests/test-dirname.c: New file, replacing dirname.c
61513         TEST_DIRNAME section that was recently deleted.
61514
61515 2006-07-04  Bruno Haible  <bruno@clisp.org>
61516
61517         Assume ANSI C header files and <ctype.h> functions.
61518         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61519         (mbsnwidth): Use isprint, iscntrl instead.
61520
61521 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61522
61523         Merge from coreutils.
61524         * MODULES.html.sh: Add xstrtold.
61525         * modules/xstrtold: New file.
61526         * modules/cycle-check (Files): Add lib/same-inode.h.
61527         * modules/dirname (Files): Add m4/double-slash-root.m4.
61528         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61529         * modules/mkdir-p (Files): Add lib/same-inode.h.
61530         * modules/same (Files): Add lib/same-inode.h.
61531
61532 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61533
61534         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61535         This is to keep the terminology clean; POSIX talks about
61536         "absolute pathnames", not "full pathnames", but the GNU
61537         Coding Standards say to use "path" for something else;
61538         so use "absolute" to keep both sides happy.
61539         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61540         Set gl_absolute_header, not gl_full_header_path.
61541         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61542         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61543         All uses changed.
61544
61545         Merge from coreutils.
61546
61547         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61548
61549         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61550         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61551         want to require the building of c-strtod.o.
61552         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61553         needs -lm directly.
61554         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61555
61556         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61557
61558         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61559         --as-needed option if available.  Problem reported by Albert Chin in
61560         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61561         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61562         cc merely issues a bunch of annoying warnings for --as-needed
61563         (this problem was reported by Bob Proulx).  Also, try linking with
61564         -lm to detect a bug in binutils 2.16 (this problem was reported
61565         by Ralf Wildenhues).
61566
61567         2006-06-18  Jim Meyering  <jim@meyering.net>
61568
61569         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61570         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61571         macro.
61572         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61573         also check for glibc-2.4's abort-inducing bug.
61574
61575         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61576         Low-probability clean-up should be to use rmdir to get rid of
61577         the just-created directory, not unlink.
61578
61579         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61580         configure fail, and request a bug report to inform us about it.
61581         Add a comment that, barring reports to the contrary, in 2007 we'll
61582         assume ftruncate is universally available.
61583
61584         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61587
61588         2006-03-12  Jim Meyering  <jim@meyering.net>
61589
61590         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61591         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61592         * m4/same.m4 (gl_SAME): Likewise.
61593         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61594
61595         2006-03-11  Eric Blake  <ebb9@byu.net>
61596
61597         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61598         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61599         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61600         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61601
61602 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61605         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61606         reported by Mark D. Baushke, one in
61607         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61608
61609         Merge from coreutils.
61610
61611         * lib/.cppi-disable: Add stdint_.h.
61612         * lib/.cvsignore: Add stdint.h.
61613
61614         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61615
61616         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61617         both double and long double versions.
61618         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61619         * lib/xstrtold.c: New file.
61620         * lib/xstrtod.h (xstrtold): New decl.
61621
61622         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61623
61624         * lib/filemode.c (setst): Remove.
61625         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61626         (arguably) clearer, and the generated code is a bit smaller on my
61627         Debian GNU/Linux stable x86 host.
61628
61629         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61630
61631         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61632         Assume that filemode.h includes sys/types.h and sys/stat.h.
61633         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61634         (ftypelet): Reorder to put common cases first, for efficiency.
61635         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61636         to do 'M'.
61637         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61638         of 10, for compatibility with FreeBSD.  All callers changed.
61639         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61640         types that can't be deduced solely from st_mode.  First arg is now a
61641         const pointer.
61642         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61643         (strmode): Renamed from mode_string.
61644         (filemodestring): New decl.
61645         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61646         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61647         needed.
61648         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61649
61650         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61653         fsusage.h now does that.  Include fsusage.h first, to test interface.
61654         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61655         at most one method (the old code could have generated decls that
61656         didn't conform to C89, not that this was ever exercised).
61657         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61658
61659         2006-03-19  Jim Meyering  <jim@meyering.net>
61660
61661         Work even in a chroot where d_ino values for entries in "/"
61662         don't match the stat.st_ino values for the same names.
61663         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61664         number, iterate through all entries again, using lstat instead.
61665         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61666         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61667
61668         * lib/getcwd.c (__getcwd): Clarify a comment.
61669         Use memcpy in place of a call to strcpy.
61670
61671         2006-03-12  Jim Meyering  <jim@meyering.net>
61672
61673         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61674         matches that of the current directory (which we're about to chdir ".."
61675         out of), then save the dev-ino of the parent, instead.
61676
61677         * lib/same-inode.h (SAME_INODE): New file/macro.
61678         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61679         Include "same-inode.h", instead.
61680         * lib/same.c: Likewise.
61681         * lib/cycle-check.h: Include "same-inode.h".
61682         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61683         * lib/cycle-check.c (SAME_INODE): Remove definition.
61684         * lib/root-dev-ino.h: Include "same-inode.h".
61685
61686         2006-03-11  Eric Blake  <ebb9@byu.net>
61687
61688         * lib/same.c (same_name): s/base_name/last_component/
61689         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61690         * lib/filenamecat.c (file_name_concat): Likewise.
61691
61692         2006-03-11  Eric Blake  <ebb9@byu.net>,
61693                     Paul Eggert  <eggert@cs.ucla.edu>
61694
61695         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61696         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61697         drive prefix.
61698         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61699         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61700         (last_component): New method.
61701         * lib/dirname.c (dir_len): Determine when drive letters need a
61702         subsequent slash.  Preserve // when it is special.
61703         (dir_name): Don't append dot when drive letter is absolute.
61704         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61705         * lib/basename.c (base_name): New semantics - malloc the result.
61706         Preserve // when it is special.  Preserve relative files that look
61707         like drive letters.
61708         (base_len): Preserve // when it is special.
61709         (last_component): New method, similar to old base_name semantics.
61710         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61711         base_name.  Strip redundant slashes from ///.
61712
61713 2006-07-03  Jim Meyering  <jim@meyering.net>
61714
61715         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61716         macro is used before the first cycle_check call.
61717
61718 2006-07-03  Eric Blake  <ebb9@byu.net>
61719
61720         * modules/dirname (Depends-on): Add xstrndup.
61721
61722 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61723
61724         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61725         test cases, so that config.log is a bit easier to follow.
61726
61727 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61728
61729         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61730         both are 64 bits, since this seems to be the tradition, and this
61731         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61732         we ever run into a host that prefers long long to long in this
61733         case, we'll need another configure-time test.  Problem reported by
61734         Jim Meyering.
61735
61736 2006-07-02  Eric Blake  <ebb9@byu.net>
61737
61738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61739
61740 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61741
61742         * modules/inttypes (Depends-on): No longer depends on stdint.
61743         * modules/stdint (Description): Say more about assumptions.
61744         Say that the fast types might differ.  Say macros are used.
61745         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61746         (Makefile.am): Revise list of substituted symbols to match
61747         new stdint.m4.
61748         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61749         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61750         * tests/test-stdint.c (verify_same_types)
61751         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61752         the code conforms to C99/C89.
61753         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61754         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61755
61756 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61759         but fix a bug, by requiring at least 64 bits.
61760         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61761         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61762         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61763         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61764
61765         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61766         changes.  Make 2.59 a prerequisite.  Check and substitute for
61767         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61768         inttypes.h.  Do not use special include files; just use the
61769         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61770         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61771         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61772         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61773         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61774         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61775         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61776         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61777         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61778         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61779         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61780         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61781         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61782         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61783         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61784         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61785         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61786         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61787         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61788         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61789         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61790         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61791         not check for things that C99 does not require, e.g., int8_t.  If
61792         a test isn't needed unless <stdint.h> isn't working, and is
61793         unlikely to be needed for any other reason, then don't do it
61794         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61795         size_t, since we assume C89 freestanding at least.  Do not check
61796         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61797         the right thing even if the types are not defined.  Instead use:
61798         (gl_STDINT_TYPE_PROPERTIES): New macro.
61799         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61800         testing whether <sys/types.h> clashes, as Autoconf does this for
61801         us now.  All uses removed.
61802         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61803         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61804         (gl_CHECK_TYPE_SAME):
61805         Remove; no longer needed.
61806         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61807         exists, since we'll return 0 anyway in that case.
61808         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61809
61810 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61811
61812         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61813         possible collision with system files.
61814         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61815         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61816         WCHAR_MIN and WCHAR_MAX in this case.
61817         (<stddef.h>): Do not include; no longer needed.
61818         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61819         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61820         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61821         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61822         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61823         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61824         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61825         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61826         !defined(__c99))]: Include in this case too, since it's harmless
61827         now.
61828         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61829         dangerous to do so.
61830         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61831         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61832         (_STDINT_MIN, _STDINT_MAX): New macros.
61833         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61834         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61835         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61836         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61837         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61838         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61839         macros, not typedefs; this simplifies things quite a bit.
61840         Use long int for all types narrower than int64_t.
61841         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61842         Define in terms of long long int or int64_t or long int,
61843         not int64_t or int32_t.  This saves some compile-time testing.
61844         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61845         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61846         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61847         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61848         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61849         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61850         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61851         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61852         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61853         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61854         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61855         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61856         undef any previous version and define our own version, for
61857         simplicity and consistency with the new macros for types.
61858         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61859         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61860         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61861         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61862         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61863         @WINT_T_SUFFIX@ to keep things simple here.
61864         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61865         Simplify by assuming typical 8/16/32/64 host, since we're
61866         already doing that elsewhere anyway.
61867         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61868         and assume long long int is 64 bits if available.  This
61869         speeds up 'configure'.
61870
61871 2006-07-01  Eric Blake  <ebb9@byu.net>
61872
61873         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61874         Reported by Andreas Buening.
61875
61876 2006-07-01  Eric Blake  <ebb9@byu.net>
61877
61878         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61879
61880 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61881
61882         * lib/getaddrinfo.c: fixed typo
61883
61884 2006-06-29  Jim Meyering  <jim@meyering.net>
61885
61886         * modules/strftime (Maintainer): Add my name, since with the
61887         FPRINTFTIME changes strftime.c has forked from glibc.
61888
61889 2006-06-29  Eric Blake  <ebb9@byu.net>
61890
61891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61892
61893 2006-06-29  Eric Blake  <ebb9@byu.net>
61894
61895         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61896
61897 2006-06-29  Eric Blake  <ebb9@byu.net>
61898
61899         * lib/stat_.h: New file.
61900
61901 2006-06-29  Eric Blake  <ebb9@byu.net>
61902
61903         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61904         unused static function.
61905
61906 2006-06-29  Eric Blake  <ebb9@byu.net>
61907
61908         * doc/functions.texi (Function Portability): Document missing lstat
61909         on mingw.
61910
61911 2006-06-29  Eric Blake  <ebb9@byu.net>
61912
61913         * MODULES.html.sh: Add sys_stat.
61914         * modules/sys_stat: New module.
61915         * modules/mkstemp (Depends-on): Add sys_stat.
61916
61917 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61918
61919         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61920
61921 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61922
61923         * m4/c-bs-a.m4: Removed.
61924
61925 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61926
61927         * lib/strftime.c: Assume strftime() exists.
61928
61929 2006-06-29  Derek Price  <derek@ximbiot.com>
61930
61931         * modules/c-bs-a: Removed - \a is C89.
61932         * MODULES.html.sh: Remove c-bs-a.
61933
61934 2006-06-29  Bruno Haible  <bruno@clisp.org>
61935
61936         * modules/wcwidth (License): Change to LGPL.
61937
61938 2006-06-28  Simon Josefsson  <jas@extundo.com>
61939
61940         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61941         on _WIN32.
61942
61943         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61944         getnameinfo.
61945
61946 2006-06-28  Simon Josefsson  <jas@extundo.com>
61947
61948         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61949
61950 2006-06-28  Simon Josefsson  <jas@extundo.com>
61951
61952         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61953         functions there.  It will succeed on Windows XP, but on Windows
61954         2000 and (presumably) earlier, it will fail, and use the internal
61955         re-implementation.
61956         (use_win32_p): New function.
61957         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61958         Support AI_NUMERICSERV to disable getservbyname.
61959         (getnameinfo): New function, only supports
61960         NI_NUMERICHOST|NI_NUMERICSERV for now.
61961
61962         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61963         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61964         getnameinfo.
61965
61966 2006-06-28  Eric Blake  <ebb9@byu.net>
61967
61968         * modules/wcwidth: New file.
61969         * modules/mbchar (Depends-on): Add wcwidth.
61970         * modules/mbswidth (Depends-on): Add wcwidth.
61971         * MODULES.html.sh: Add wcwidth.
61972
61973 2006-06-28  Eric Blake  <ebb9@byu.net>
61974
61975         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61977
61978 2006-06-28  Eric Blake  <ebb9@byu.net>
61979
61980         * lib/xvasprintf.h: Fix comments.
61981
61982 2006-06-28  Eric Blake  <ebb9@byu.net>
61983
61984         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61985         * lib/mbswidth.c (wcwidth): Move from here...
61986         * lib/wcwidth.h: ...to this new file.
61987
61988 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61989
61990         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61991
61992         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61993         it's obsolete.
61994         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61995
61996 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61997
61998         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61999         Autoconf 2.60 says this stuff was obsolete.
62000
62001 2006-06-28  Bruno Haible  <bruno@clisp.org>
62002
62003         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62004
62005 2006-06-28  Bruno Haible  <bruno@clisp.org>
62006
62007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62008         gt_TYPE_WCHAR_T.
62009
62010 2006-06-28  Bruno Haible  <bruno@clisp.org>
62011
62012         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62013         declaration for wcwidth.
62014         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62015
62016 2006-06-28  Bruno Haible  <bruno@clisp.org>
62017
62018         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62019         (mkdir): Define using _mkdir.
62020
62021 2006-06-28  Bruno Haible  <bruno@clisp.org>
62022
62023         * lib/getaddrinfo.h: Fix POSIX URL.
62024         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62025         _WIN32.
62026         (use_win32_p): Make static.
62027         (getaddrinfo): Reject service name if it is empty or does not consist
62028         solely of decimal digits, or if its value is > 65535.
62029         (getnameinfo): Remove useless casts.
62030
62031 2006-06-27  Simon Josefsson  <jas@extundo.com>
62032
62033         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62034         Eggert and Martin Lambers.
62035
62036 2006-06-27  Simon Josefsson  <jas@extundo.com>
62037
62038         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62039         Eggert and Martin Lambers.
62040
62041 2006-06-27  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62044         result to 0, not to empty.
62045         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62046
62047 2006-06-27  Bruno Haible  <bruno@clisp.org>
62048
62049         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62050
62051 2006-06-26  Simon Josefsson  <jas@extundo.com>
62052
62053         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62054         present.
62055
62056 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62057
62058         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62059         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62060         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62061
62062 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62063
62064         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62065
62066 2006-06-26  Bruno Haible  <bruno@clisp.org>
62067
62068         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62069
62070 2006-06-26  Bruno Haible  <bruno@clisp.org>
62071
62072         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62073
62074 2006-06-26  Bruno Haible  <bruno@clisp.org>
62075
62076         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62077         SGI C compiler in pre-C99 mode.
62078         Suggested by Mark D. Baushke and Larry Jones.
62079
62080 2006-06-26  Bruno Haible  <bruno@clisp.org>
62081
62082         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62083         WCHAR_MAX.
62084         Reported by Mark D. Baushke and Larry Jones.
62085
62086 2006-06-26  Bruno Haible  <bruno@clisp.org>
62087
62088         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62089         in pre-C99 mode.
62090         Suggested by Mark D. Baushke and Larry Jones.
62091
62092 2006-06-23  Simon Josefsson  <jas@extundo.com>
62093             Bruno Haible  <bruno@clisp.org>
62094
62095         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62096         Emit mostlyclean-local rule.
62097         (func_emit_tests_Makefile_am): Likewise.
62098         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62099
62100 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62101
62102         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62103
62104 2006-06-23  Bruno Haible  <bruno@clisp.org>
62105
62106         * tests/test-stdint.c: Update to match ISO C 99 Technical
62107         Corrigendum 1.
62108
62109 2006-06-23  Bruno Haible  <bruno@clisp.org>
62110
62111         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62112
62113 2006-06-23  Bruno Haible  <bruno@clisp.org>
62114
62115         * lib/stdint_.h: Treat IRIX like OpenBSD.
62116
62117 2006-06-23  Bruno Haible  <bruno@clisp.org>
62118
62119         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62120         ISO C 99 Technical Corrigendum 1.
62121
62122 2006-06-22  Simon Josefsson  <jas@extundo.com>
62123
62124         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62125         MinGW.
62126
62127 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62128
62129         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62130         needed.  Some compiler complained about some of them.  Problem reported
62131         by Larry Jones in
62132         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62133
62134 2006-06-21  Simon Josefsson  <jas@extundo.com>
62135
62136         * tests/test-getaddrinfo.c: New file.
62137
62138         * modules/getaddrinfo-tests: New file.
62139
62140         * MODULES.html.sh: Add inet_pton.
62141
62142         * modules/inet_pton: New file.
62143
62144 2006-06-21  Simon Josefsson  <jas@extundo.com>
62145
62146         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62147         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62148         of using the (limited) gnulib implementation on Windows XP.
62149
62150         * m4/inet_pton.m4: New file.
62151
62152 2006-06-21  Simon Josefsson  <jas@extundo.com>
62153
62154         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62155         variable.
62156
62157         * lib/socket_.h: Don't define WINVER.
62158
62159         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62160         slightly modified to work in gnulib.
62161
62162 2006-06-21  Simon Josefsson  <jas@extundo.com>
62163
62164         * doc/gnulib.texi (Windows sockets): Add.
62165
62166 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62167
62168         * lib/read-file.c (fread_file): Start with buffer allocation of
62169         0 bytes rather than 1 byte; this simplifies the code.
62170         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62171         code to free buffer and save/restore errno.
62172         (internal_read_file): Remove unused local.
62173
62174 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62177         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62178         Problem reported by Denis Excoffier in
62179         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62180
62181 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62182
62183         * modules/sys_socket, modules/socklen: Include sys/types since
62184         FreeBSD 4.x's sys/socket.h needs it.
62185
62186 2006-06-19  Simon Josefsson  <jas@extundo.com>
62187
62188         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62189
62190 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62191
62192         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62193
62194 2006-06-19  Bruno Haible  <bruno@clisp.org>
62195
62196         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62197         and FULL_PATH_INTTYPES_H in angle brackets.
62198         Reported by Mark D. Baushke <mdb@gnu.org>.
62199
62200 2006-06-17  Eric Blake  <ebb9@byu.net>
62201
62202         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62203         errno.
62204
62205 2006-06-17  Bruno Haible  <bruno@clisp.org>
62206
62207         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62208         <sys/inttypes.h>.
62209
62210 2006-06-17  Bruno Haible  <bruno@clisp.org>
62211
62212         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62213         whether errno is declared. Assume <errno.h> declares errno.
62214
62215 2006-06-17  Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62218
62219 2006-06-17  Bruno Haible  <bruno@clisp.org>
62220
62221         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62222         problem on Solaris 2.5.1.
62223
62224 2006-06-16  Eric Blake  <ebb9@byu.net>
62225
62226         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62227         * lib/unicodeio.c [!defined errno]: Likewise.
62228         * lib/strtol.c [!defined errno]: Likewise.
62229         * lib/strtod.c [!defined errno]: Likewise.
62230
62231 2006-06-15  Eric Blake  <ebb9@byu.net>
62232
62233         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62234
62235 2006-06-15  Eric Blake  <ebb9@byu.net>
62236
62237         * config/srclist.txt (ssize_t.m4): Lose sync.
62238
62239 2006-06-15  Bruno Haible  <bruno@clisp.org>
62240
62241         * modules/stdint (Files): Include m4/full-header-path.m4,
62242         m4/size_max.m4, m4/wchar_t.m4.
62243         (Makefile.am): Many more substitutions.
62244         * modules/stdint-tests: New file.
62245         * tests/test-stdint.c: New file.
62246
62247 2006-06-15  Bruno Haible  <bruno@clisp.org>
62248
62249         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62250         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62251         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62252         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62253         gl_CHECK_TYPE_SAME): New macros.
62254
62255 2006-06-15  Bruno Haible  <bruno@clisp.org>
62256
62257         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62258
62259 2006-06-15  Bruno Haible  <bruno@clisp.org>
62260
62261         * lib/stdint_.h: Rewritten to be fully auto-configured.
62262         Fixes bug on HP-UX/IA64.
62263
62264 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62265
62266         * lib/getdate.y (__attribute__): Don't define if already defined.
62267         Problem reported by Larry Jones.
62268         * lib/utimens.c (__attribute__): Likewise.
62269
62270 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62271
62272         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62273         reported by Andreas Schwab.
62274
62275 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62276             Bruno Haible  <bruno@clisp.org>
62277
62278         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62279         check for the declaration of strnlen and a run test that exposes the
62280         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62281         rpl_strndup.
62282
62283 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62284             Bruno Haible  <bruno@clisp.org>
62285
62286         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62287
62288 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62289
62290         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62291         compile test, for Tru64 4.0D.
62292
62293 2006-05-28  Karl Berry  <karl@gnu.org>
62294
62295         * config/srclist.txt (printf-args.c): lose sync.
62296
62297 2006-05-26  Martin Lambers  <marlam@marlam.de>
62298
62299         * lib/getpass.c: Updates the test for the native W32 API, and adds
62300         missing includes, thus fixing compilation warnings.
62301
62302 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62303
62304         * lib/exclude.c (exclude_fnmatch): New function.
62305         (excluded_file_name): Call exclude_fnmatch.
62306         * lib/exclude.h (excluded_file_name): New prototype
62307
62308 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62309
62310         * lib/tempname.c (small_open, large_open): New macros.
62311         (__open, __open64) [!_LIBC]: Remove.
62312         (__gen_tempname): Use small_open and large_open instead of __open
62313         and __open64.  This fixes a portability bug on HP-UX 11.11i
62314         reported by Simon Wing-Tang in
62315         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62316
62317 2006-05-24  Bruno Haible  <bruno@clisp.org>
62318
62319         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62320         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62321         Reported by Thorsten Maerz <torte@netztorte.de> via
62322         Aaron Stone <aaron@serendipity.cx>.
62323
62324 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62325
62326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62327         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62328         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62329         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62330         not really conditional on the cache.
62331         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62332
62333 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62334
62335         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62336         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62337         (my_usleep): Don't mishandle maximum value.
62338
62339 2006-05-19  Jim Meyering  <jim@meyering.net>
62340
62341         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62342
62343 2006-05-17  Bruno Haible  <bruno@clisp.org>
62344
62345         Cygwin portability.
62346         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62347
62348 2006-05-17  Bruno Haible  <bruno@clisp.org>
62349
62350         * lib/stdint_.h: Fix recognition of Cygwin.
62351
62352 2006-05-15  Bruno Haible  <bruno@clisp.org>
62353
62354         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62355         on libtool patch by Ralf Wildenhues.
62356
62357 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62358
62359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62360         test for C99 conformance; (bool) 0.5 is an integer constant
62361         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62362         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62363
62364 2006-05-11  Simon Josefsson  <jas@extundo.com>
62365
62366         * m4/xvasprintf.m4: Fix obvious typo.
62367
62368 2006-05-11  Jim Meyering  <jim@meyering.net>
62369
62370         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62371         James Lemley.
62372
62373 2006-05-10  Simon Josefsson  <jas@extundo.com>
62374
62375         * lib/md4.c: Typo fix, update copyright years.
62376         (K1, K2): Don't use L because it turn computations into 64-bit on
62377         64-bit platforms.
62378
62379 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62380
62381         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62382         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62383         unwanted sign propagation, e.g., on hosts with 64-bit int.
62384         There still are some problems with reeelly weird theoretical hosts
62385         (e.g., 33-bit int) but it's not worth worrying about now.
62386         * lib/sha1.c (rol): Likewise.
62387         (K1, K2, K3, K4): Remove unnecessary L suffix.
62388
62389 2006-05-10  Bruno Haible  <bruno@clisp.org>
62390
62391         * lib/des.c: Cast to avoid warnings.
62392
62393 2006-05-09  Bruno Haible  <bruno@clisp.org>
62394
62395         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62396         (Depends-on): Depend also on xsize, stdarg.
62397         (configure.ac): Add gl_XVASPRINTF.
62398
62399 2006-05-09  Bruno Haible  <bruno@clisp.org>
62400
62401         * m4/xvasprintf.m4: New file.
62402
62403 2006-05-09  Bruno Haible  <bruno@clisp.org>
62404
62405         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62406         (EOVERFLOW): Define fallback value.
62407         (xstrcat): New function.
62408         (xvasprintf): Recognize the special case of a string concatenation.
62409
62410 2006-05-08  Eric Blake  <ebb9@byu.net>
62411
62412         * gnulib-tool (func_version): Base copyright year on CVS date.
62413         (func_emit_copyright_notice): New function.
62414         (func_emit_lib_Makefile_am): Use it.
62415         (func_emit_tests_Makefile_am): Likewise.
62416         (func_import): Likewise.
62417
62418 2006-05-08  Bruno Haible  <bruno@clisp.org>
62419
62420         * modules/stdarg: New file.
62421         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62422
62423 2006-05-08  Bruno Haible  <bruno@clisp.org>
62424
62425         * m4/stdarg.m4: New file, from GNU gettext.
62426
62427 2006-05-08  Bruno Haible  <bruno@clisp.org>
62428
62429         * config/srclist.txt (build-aux/config.rpath): different from latest
62430         release.
62431
62432 2006-05-08  Bruno Haible  <bruno@clisp.org>
62433
62434         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62435
62436 2006-05-05  Jim Meyering  <jim@meyering.net>
62437
62438         * m4/warning.m4: New file, derived from bison's file by the same name.
62439
62440 2006-05-03  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/stdint_.h: Shorter URL.
62443         * lib/inttypes.h: Likewise.
62444
62445 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62446
62447         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62448
62449 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62450
62451         * lib/verify.h: Document the internals better.  Most of this change
62452         was written by Bruno Haible.
62453
62454 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         * doc/verify.texi: New file, partly based on a proposal by
62457         Bruno Haible.
62458
62459 2006-05-02  Bruno Haible  <bruno@clisp.org>
62460
62461         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62462         test from here...
62463         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62464
62465 2006-04-29  Bruno Haible  <bruno@clisp.org>
62466
62467         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62468         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62469
62470 2006-04-29  Bruno Haible  <bruno@clisp.org>
62471
62472         * gnulib-tool: Make --update option actually work.
62473
62474 2006-04-29  Bruno Haible  <bruno@clisp.org>
62475
62476         * doc/gcd.texi: New file.
62477         * doc/gnulib.texi: Include it.
62478
62479 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62480
62481         * lib/getdate.y (get_date): When adding relative date, start with the
62482         initial time, not with the result of the first mktime call.
62483
62484 2006-04-25  Bruno Haible  <bruno@clisp.org>
62485
62486         * gnulib-tool (func_import): Output the include directives in three
62487         blocks, sorted separately.
62488         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62489
62490 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62491
62492         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62493         to define main with arguments, for C++.  Reported by Eric Blake.
62494         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62495         Prefer 'int main ()' to 'int main (void)', for C++.
62496         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62497         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62498         for 'main', for C99 and C++.
62499
62500 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62501
62502         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62503         Don't assume that exit status -1 is valid.
62504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62505         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62506         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62507         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62508         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62509         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62510         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62511         functions can be used without declaring them, or that you can
62512         exit with status -1.
62513         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62514
62515 2006-04-24  Karl Berry  <karl@gnu.org>
62516
62517         * config/srclist.txt (longdouble.m4): sync lost.
62518
62519 2006-04-24  Eric Blake  <ebb9@byu.net>
62520
62521         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62522
62523 2006-04-24  Bruno Haible  <bruno@clisp.org>
62524
62525         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62526         poll() implementation in AIX.
62527         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62528
62529 2006-04-24  Bruno Haible  <bruno@clisp.org>
62530
62531         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62532         assigned exactly once.
62533
62534 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62535             Bruno Haible  <bruno@clisp.org>
62536
62537         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62538         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62539         for AM_CPPFLAGS.
62540
62541 2006-04-23  Bruno Haible  <bruno@clisp.org>
62542
62543         * modules/copy-file: Depend on unistd.
62544         * modules/execute: Likewise.
62545         * modules/fatal-signal: Likewise.
62546         * modules/findprog: Likewise.
62547         * modules/mkdtemp : Likewise.
62548         * modules/pipe: Likewise.
62549         * modules/wait-process: Likewise.
62550
62551 2006-04-23  Bruno Haible  <bruno@clisp.org>
62552
62553         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62554         condition was already detected.
62555         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62556
62557 2006-04-23  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/copy-file.c: Include <unistd.h> unconditionally.
62560         * lib/execute.c: Likewise.
62561         * lib/fatal-signal.c: Likewise.
62562         * lib/findprog.c: Likewise.
62563         * lib/mkdtemp.c: Likewise.
62564         * lib/pipe.h: Likewise.
62565         * lib/pipe.c: Likewise.
62566         * lib/wait-process.h: Likewise.
62567
62568 2006-04-23  Bruno Haible  <bruno@clisp.org>
62569
62570         * gnulib-tool (func_usage): Fix --import description. Document
62571         --update.
62572         (func_import): Create temporary file in a temporary directory, if
62573         --dry-run is specified. Silence errors from 'grep' when there are no
62574         m4 files in $m4dir.
62575         (func_create_testdir): Silence errors from 'grep' when there are no
62576         m4 files in $m4dir.
62577         Reported by Karl Berry <karl@freefriends.org>.
62578
62579 2006-04-20  Bruno Haible  <bruno@clisp.org>
62580
62581         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62582         one argument, so that the code will be portable to Autoconf 2.60.
62583         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62584         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62585         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62586
62587 2006-04-19  Derek Price  <derek@ximbiot.com>
62588             Eric Blake  <ebb9@byu.net>
62589
62590         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62591         rather than "/full/path.h".  Update comment to match.  Shorten &
62592         generalize m4_translit call via AS_TR_CPP.
62593
62594 2006-04-19  Derek Price  <derek@ximbiot.com>
62595             Eric Blake  <ebb9@byu.net>
62596
62597         * lib/inttypes.h: Correct grammar in comment.
62598
62599 2006-04-18  Derek Price  <derek@ximbiot.com>
62600             Paul Eggert  <eggert@cs.ucla.edu>
62601
62602         * modules/inttypes: New file.
62603         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62604
62605 2006-04-18  Derek Price  <derek@ximbiot.com>
62606             Paul Eggert  <eggert@cs.ucla.edu>
62607
62608         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62609         New files.
62610
62611 2006-04-18  Derek Price  <derek@ximbiot.com>
62612             Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * lib/inttypes.h: New file.
62615         * lib/strtoimax.c: Assume <inttypes.h>.
62616
62617 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62618
62619         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62620         isn't mounted.  Problem reported by Kir Kolyshkin.
62621
62622 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62623
62624         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62625         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62626         Derek R. Price.
62627         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62628         implementation.
62629
62630 2006-04-12  Eric Blake  <ebb9@byu.net>
62631
62632         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62633         is now done automatically by the corresponding Autoconf macro.
62634
62635 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62636
62637         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62638         time_r.h.
62639
62640 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         Merge regex changes from libc, removing some of our
62643         POSIX-conformance changes that were rejected and redoing them in a
62644         less-intrusive way.
62645
62646         * lib/regcomp.c (re_compile_internal, init_dfa):
62647         Length arg is now size_t, not Idx.  All uses changed.
62648         (peek_token): Forward decl now says internal_function.
62649         (__re_error_msgid, __re_error_msgid_idx):
62650         Now static rather than extern with attribute_hidden.
62651         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62652         For some reason libc prefers K&R style defns for external functions.
62653         (regerror) [!defined _LIBC]: Likewise.
62654         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62655         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62656         (build_range_exp, build_collating_symbol):
62657         Use K&R-style defn.
62658         (re_compile_fastmap): Use '\0' to memset, not 0.
62659         (utf8_sb_map): Make the calculations more obvious.
62660         (init_dfa, parse_bracket_exp, build_charclass_op):
62661         Call calloc and cast result, as glibc does.
62662         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62663         (build_range_exp, build_collating_symbol):
62664         Now internal functions.
62665
62666         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62667
62668         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62669         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62670         Don't depend on VMS; depend on __VMS instead, for POSIX
62671         namespace cleanness.
62672         (regoff_t): Define to ssize_t, not long int.
62673
62674         Remove the REG_ macros named below.  Instead, make the old names
62675         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62676         __USE_GNU_REGEX.
62677         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62678         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62679         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62680         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62681         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62682         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62683         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62684         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62685         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62686         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62687         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62688         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62689         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62690         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62691         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62692         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62693         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62694         (REG_NREGS):
62695         Remove.  All uses replaced by the old RE_* names.
62696         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62697         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62698         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62699         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62700         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62701         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62702         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62703         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62704         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62705         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62706         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62707         Don't bother having these macros be independent of each others'
62708         values, since they no longer exist in the POSIX name space.
62709
62710         Rename the following member names back to their old names,
62711         unless !__USE_GNU_REGEX.  All uses changed back.
62712         (buffer): Renamed from re_buffer.
62713         (allocated): Renamed from re_allocated.
62714         (used): Renamed from re_used.
62715         (syntax): Renamed from re_syntax.
62716         (fastmap): Renamed from re_fastmap.
62717         (translate): Renamed from re_translate.
62718         (can_be_null): Renamed from re_can_be_null.
62719         (regs_allocated): Renamed from re_regs_allocated.
62720         (fastmap_accurate): Renamed from re_fastmap_accurate.
62721         (no_sub): Renamed from re_no_sub.
62722         (not_bol): Renamed from re_not_bol.
62723         (not_eol): Renamed from re_not_eol.
62724         (newline_anchor): Renamed from re_newline_anchor.
62725         (num_regs): Renamed from rm_num_regs.
62726         (start): Renamed from rm_start.
62727         (end): Renamed from rm_end.
62728
62729         (free_state): Move up a bit.
62730
62731         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62732         #define to be empty.
62733         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62734         when that is what is intended.
62735         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62736         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62737         (MAX): New macro.
62738         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62739         All uses changed back to re_malloc, etc.  It's now the caller's
62740         responsibility to check for overflow; all callers changed.
62741         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62742         (re_x2nrealloc): Remove.
62743         (free_state): Remove decl.
62744
62745         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62746         (re_set_registers, re_exec):
62747         Use K&R-style defn.
62748
62749         2006-01-31  Roland McGrath  <roland@redhat.com>
62750
62751         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62752         Reported by Mike Frysinger <vapier@gentoo.org>.
62753
62754         2006-01-15  Andreas Jaeger  <aj@suse.de>
62755
62756         [BZ #1950]
62757         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62758         build_wcs_upper_buffer change.
62759         (build_wcs_upper_buffer): Change return type.
62760
62761         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62762
62763         * lib/regex_internal.h: Include <stdint.h> if available.
62764
62765         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62766
62767         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62768
62769         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62770
62771         * lib/regcomp.c: Adjust for changed secondary hash function.
62772
62773         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62774
62775         * lib/regex.h: Pretty printing.
62776         Clean up namespace a bit.
62777
62778         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62779
62780         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62781         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62782
62783         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62784                     Ulrich Drepper  <drepper@redhat.com>
62785
62786         [BZ #1302]
62787         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62788         changed.
62789         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62790
62791         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62792
62793         [BZ #281]
62794         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62795         * lib/regcomp.c: Remove unnecessary uses of
62796         unsigned RE_TRANSLATE_TYPE.
62797         * lib/regex_internal.h: Likewise.
62798         * lib/regex_internal.c: Likewise.
62799         * lib/regexec.c: Likewise.
62800         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62801
62802         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62803
62804         * lib/regexec.c (find_recover_state): Remove unnecessary
62805         initialization.
62806         (transit_state_bkref): Make DFA a const pointer.
62807         (get_subexp): Likewise.
62808         (check_arrival): Likewise.
62809         (update_cur_sifted_state): Likewise.
62810         (re_search_internal): Likewise.
62811         (prune_impossible_nodes): Likewise.
62812         (acquire_init_state_context): Likewise.
62813         (proceed_next_node): Likewise.
62814         (set_regs): Likewise.
62815         (free_fail_stack_return): Likewise.
62816         (check_arrival_expand_ecl): Mark DFA parameter as const.
62817         (check_arrival_expand_ecl_sub): Likewise.
62818         (check_subexp_limits): Likewise.
62819         (sub_epsilon_src_nodes):  Likewise.
62820         (add_epsilon_src_nodes):  Likewise.
62821         (merge_state_array): Likewise.
62822         (update_regs): Likewise.
62823         (build_trtable): Likewise.
62824         (sift_states_backward): Mark MCTX parameter as const.
62825         (build_sifted_states): Likewise.
62826         (update_cur_sifted_state): Likewise.
62827         (sift_states_mkref): Likewise.
62828         (check_arrival_expand_ecl): Mark eclosure as const.
62829         (check_dst_limits_calc_pos_1): Likewise.
62830         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62831         pointer.
62832
62833         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62834
62835         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62836         (transit_state_sb): Likewise.
62837         (transit_state_mb): Likewise.
62838         (sift_states_iter_mb): Likewise.
62839         (check_arrival_add_next_nodes): Likewise.
62840         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62841         [_LIBC] (re_search_2_stub): Use mempcpy.
62842
62843         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62844         mbrtowc for very simple UTF-8 case.
62845
62846         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62847         a pointer-to-const.
62848         (re_acquire_state_context): Likewise.
62849         * lib/regex_internal.h: Adjust prototypes.
62850
62851         * lib/regex.c: Prevent using C++ compilers.
62852
62853         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62854         (re_acquire_state_context): Likewise.
62855
62856 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62857
62858         * modules/regex (Depends-on): Add ssize_t.
62859
62860 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62861
62862         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62863         translation table.
62864
62865 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62866
62867         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62868
62869 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62870             Bruno Haible  <bruno@clisp.org>
62871
62872         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62873         <sys/types.h> and <inttypes.h>.
62874
62875 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62876
62877         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62878         `__error_t_defined', so argp.h will not typedef the former.
62879
62880 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62881
62882         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62883         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62884         glibc names.  Even if glibc is changed to conform to POSIX, the
62885         traditional names will be available anyway, since regex depends on
62886         the extensions module.  Also, fix a longstanding typo in the
62887         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62888         reported by Emanuele Giaquinta.  Also, change sense of cached
62889         variable, so that the message makes sense.
62890
62891 2006-03-24  Simon Josefsson  <jas@extundo.com>
62892
62893         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62894         including some doc fixes.
62895         (base64_encode_alloc): Fix +1 bug on allocation failures.
62896
62897 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62898
62899         * lib/base64.c (base64_encode): Do not read past end of array with
62900         unsanitized input on systems with CHAR_BIT > 8.
62901
62902 2006-03-24  Eric Blake  <ebb9@byu.net>
62903
62904         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62905
62906 2006-03-22  Karl Berry  <karl@gnu.org>
62907
62908         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62909         * config/srclistvars.sh (COREUTILS): new var.
62910
62911 2006-03-17  Jim Meyering  <jim@meyering.net>
62912
62913         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62914         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62915
62916 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62917
62918         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62919         no longer needs it.  Instead, check that regoff_t is as least
62920         as wide as ptrdiff_t.
62921
62922         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62923         so that our regex.h stays compatible with the installed regex.
62924         This is helpful for installers who configure --without-included-regex.
62925         Problem reported by Emanuele Giaquinta.
62926
62927 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62928
62929         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62930         Typedef to long int, not to off_, as POSIX will likely change
62931         in that direction.
62932
62933 2006-03-15  Eric Blake  <ebb9@byu.net>
62934
62935         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62936
62937 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62938
62939         * lib/argp-help.c (validate_uparams): Fix typo
62940         * lib/argp-parse.c (argp_default_options): Consistently begin help
62941         messages with a lowercase letter.
62942
62943 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62944
62945         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62946         overrun buffers and shouldn't be used (much as gets shouldn't be
62947         used).
62948         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62949
62950 2006-03-08  Simon Josefsson  <jas@extundo.com>
62951
62952         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62953         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62954
62955 2006-03-08  Simon Josefsson  <jas@extundo.com>
62956
62957         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62958         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62959
62960 2006-03-08  Simon Josefsson  <jas@extundo.com>
62961
62962         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62963         signal that configure disabled the device.
62964
62965 2006-03-08  Simon Josefsson  <jas@extundo.com>
62966
62967         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62968         languages.
62969
62970 2006-03-07  Simon Josefsson  <jas@extundo.com>
62971
62972         * modules/getopt (Depends-on): Add unistd.
62973
62974         * modules/unistd: New file.
62975
62976 2006-03-07  Simon Josefsson  <jas@extundo.com>
62977
62978         * modules/gc-random: New file.
62979
62980 2006-03-07  Simon Josefsson  <jas@extundo.com>
62981
62982         * m4/unistd_h.m4: New file.
62983
62984 2006-03-07  Simon Josefsson  <jas@extundo.com>
62985
62986         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62987         test to be side-effect free by storing the result in the cache
62988         variable gl_cv_lib_readline, and moving the assignment of
62989         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62990         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62991
62992 2006-03-07  Simon Josefsson  <jas@extundo.com>
62993
62994         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62995         error on missing devices (the functions will return an error).
62996
62997         * m4/gc.m4: Move random stuff to gc-random.m4
62998
62999 2006-03-07  Simon Josefsson  <jas@extundo.com>
63000
63001         * lib/unistd_.h: New file.
63002
63003 2006-03-07  Simon Josefsson  <jas@extundo.com>
63004
63005         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63006
63007 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63010         Problem reported by Juan Manuel Guerrero.
63011
63012 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63015         the unistd module.
63016         * lib/getlogin_r.c: Likewise.
63017         * lib/getlogin_r.h: Likewise.
63018         * lib/glob.c: Likewise.
63019         * lib/pagealign_alloc.c: Likewise.
63020         * lib/unistd_.h: Remove; no longer needed.
63021
63022 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63023
63024         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63025         Add unistd.
63026         * modules/c-stack (Depends-on): Add unistd.
63027         * modules/getlogin_r: Likewise.
63028         * modules/glob: Likewise.
63029         * modules/pagealign_alloc: Likewise.
63030         * modules/unistd (Files): Remove lib/unistd_.h.
63031         (EXTRA_DIST): Remove.
63032         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63033         need unistd_.h.
63034         (MOSTLYCLEANFILES): Remove unistd.h-t.
63035
63036 2006-03-03  Simon Josefsson  <jas@extundo.com>
63037
63038         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63039
63040 2006-03-03  Simon Josefsson  <jas@extundo.com>
63041
63042         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63043         libidn and bison.
63044
63045 2006-03-03  Simon Josefsson  <jas@extundo.com>
63046
63047         * build-aux/maint.mk: Add indent target.
63048
63049 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63050
63051         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63052         our replacement poll.h in any case, to avoid a differing
63053         declaration from a system header.  Seen on AIX.
63054
63055 2006-03-01  Simon Josefsson  <jas@extundo.com>
63056
63057         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63058         <kasal@ucw.cz>.
63059
63060 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         * modules/gettime (Depends-on): Add extensions module.
63063         * modules/nanosleep (Depends-on): Likewise.
63064         * modules/settime (Depends-on): Likewise.
63065
63066 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63067
63068         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63069         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63070         pedantically.
63071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63072         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63073
63074         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63075         not "==".  Reported by Ralf Wildenhues.
63076
63077 2006-03-01  Karl Berry  <karl@gnu.org>
63078
63079         * doc/Copyright/request-*: new files, synced from gnuorg.
63080
63081 2006-03-01  Karl Berry  <karl@gnu.org>
63082
63083         * config/srclist.txt (Copyright/*): new entries.
63084
63085 2006-02-28  Simon Josefsson  <jas@extundo.com>
63086
63087         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63088
63089 2006-02-27  Simon Josefsson  <jas@extundo.com>
63090
63091         * lib/base64.h: Indent #define's.  From Jim Meyering
63092         <jim@meyering.net>.
63093
63094 2006-02-27  Jim Meyering  <jim@meyering.net>
63095
63096         Revert the change of 2006-02-24, so these files can continue
63097         to be sync'd from gettext.
63098         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63099         of `config.h'.
63100
63101 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63102
63103         * modules/intprops: New file.
63104         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63105         Add intprops.
63106         * modules/getloadavg (Files): Remove lib/intprops.h.
63107         (Depends-on): Add intprops.
63108         * modules/human: Likewise.
63109         * modules/inttostr: Likewise.
63110         * modules/openat: Likewise.
63111         * modules/sig2str: Likewise.
63112         * modules/userspec: Likewise.
63113         * modules/utimecmp: Likewise.
63114         * modules/xnanosleep: Likewise.
63115         * modules/xstrtol: Likewise.
63116
63117 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63118
63119         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63120         * modules/lock-tests (TESTS): Use $(EXEEXT).
63121         * modules/tls-tests: Likewise.
63122         * modules/argp-tests: Likewise.
63123         (check_PROGRAMS): New var, replacing...
63124         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63125
63126 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63127
63128         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63129         `config.h'.
63130
63131 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63132
63133         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63134
63135 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63136
63137         Sync from coreutils.
63138         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63139         gl_CHDIR_SAFER.
63140
63141 2006-02-22  Jim Meyering  <jim@meyering.net>
63142
63143         Sync from coreutils.
63144         * m4/chdir-safer.m4: New file.
63145
63146 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63147
63148         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63149         AT_FDCWD exceeds INT_MAX.
63150         * lib/openat.h (AT_FDCWD): Likewise.
63151
63152 2006-02-17  Eric Blake  <address@hidden>
63153
63154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63155
63156 2006-02-16  Simon Josefsson  <jas@extundo.com>
63157
63158         * modules/getaddrinfo (Depends-on): Add sys_socket.
63159
63160 2006-02-15  Simon Josefsson  <jas@extundo.com>
63161
63162         * build-aux/maint.mk: Add dsyntax-check rule.
63163
63164 2006-02-15  Eric Blake  <ebb9@byu.net>
63165
63166         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63167         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63168         'present but cannot compile' warnings on cygwin.
63169         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63170         use ws2tcpip.h if sys/socket.h works.
63171         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63172         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63173
63174 2006-02-14  Simon Josefsson  <jas@extundo.com>
63175
63176         * modules/maintainer-makefile (Files): Rename.
63177
63178         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63179         and (the local) Makefile.cfg to maint-cfg.mk.
63180
63181         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63182         to the latter.
63183
63184         * modules/maintainer-makefile: New module.
63185
63186         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63187         severaly stripped to make it possible to build it up from scratch
63188         with reliable tests.
63189
63190         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63191         fixes to permit overriding the default actions when configure and
63192         makefile are not available.
63193
63194 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63195
63196         Sync from coreutils.
63197         * modules/lstat (Depends-on): Don't depend on xalloc.
63198         (License): Change from GPL to LGPL, since this is now simply a
63199         replacement for a libc function.
63200
63201 2006-02-14  Jim Meyering  <jim@meyering.net>
63202
63203         Sync from coreutils.
63204
63205         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63206         failure on deficient systems, and simplify gnulib lgpl dependencies.
63207         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63208         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63209
63210         * lib/xalloc-die.c: Remove unused definition of N_.
63211
63212 2006-02-14  Jim Meyering  <jim@meyering.net>
63213
63214         Sync from coreutils.
63215         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63216         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63217         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63218         double-quote uses of that variable, to accommodate the rare case in
63219         which getmntent is available in none of the libraries checked.  This
63220         happens at least on FreeBSD 5.0.
63221
63222 2006-02-13  Simon Josefsson  <jas@extundo.com>
63223
63224         * gnulib-tool (Usage): Fix --import, from
63225         karl@freefriends.org (Karl Berry).
63226
63227 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63228
63229         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63230
63231 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63232
63233         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63234         "autoupdate" on 2005-12-12.
63235
63236 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63237
63238         * modules/closeout (Depends-on): Remove atexit.
63239
63240 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63241
63242         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63243         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63244
63245 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63246
63247         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63248         __EXTENSIONS__ if this causes compilation to fail.  Problem
63249         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63250         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63251
63252 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63255         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63256         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63257         All uses changed.
63258
63259 2006-01-26  Simon Josefsson  <jas@extundo.com>
63260
63261         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63262         prototype is visible on mingw32.
63263
63264         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63265         for mingw32.
63266
63267         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63268         mingw32).
63269
63270 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63271
63272         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63273         attempt to open for write; this always fails, at least on POSIX
63274         hosts.  This reinstates the 2006-01-09 change, which was
63275         inadvertently removed.
63276
63277 2006-01-26  Bruno Haible  <bruno@clisp.org>
63278
63279         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63280         Reported by Paul Eggert.
63281
63282 2006-01-26  Bruno Haible  <bruno@clisp.org>
63283             Paul Eggert  <eggert@cs.ucla.edu>
63284
63285         * lib/stdbool_.h (_Bool)
63286         [(! (defined __cplusplus || defined __BEOS__)
63287           && !defined __GNUC__
63288           && !(defined __HP_cc || defined __xlc__
63289                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63290                || defined __sgi))]:
63291         #define to signed char in these cases too; this simplifies
63292         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63293         etc., separately) and makes it more conservative.
63294
63295 2006-01-25  Simon Josefsson  <jas@extundo.com>
63296
63297         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63298         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63299         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63300
63301 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63302
63303         * lib/argp-namefrob.h: Bugfix. Remove stray #
63304
63305 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63306
63307         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63308         so that we test the test.
63309         Check for yet another HP-UX cc bug involving *bool |= bool.
63310
63311 2006-01-25  Karl Berry  <karl@gnu.org>
63312
63313         * config/srclist.txt (vasnprintf.c): sync lost.
63314
63315 2006-01-25  Jim Meyering  <jim@meyering.net>
63316
63317         Sync from the stable (b5) branch of coreutils:
63318
63319         * lib/fts.c (fts_children): Don't let close() clobber errno from
63320         failed fchdir().
63321
63322         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63323         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63324         a dangling symlink.  That can also happen at least for ELOOP.
63325         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63326         FYI, this bug predates the inclusion of fts.c in coreutils.
63327
63328         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63329         in their own block, so pre-c99 compilers don't object.
63330
63331         Avoid the double-free (first in fts_read, second in fts_close) that
63332         would occur when an `active' directory is made inaccessible (e.g.,
63333         via chmod a-x) during a traversal.
63334         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63335         before returning.  Reproduce this failure by
63336         mkdir -p a/b; cd a; chmod a-x . b
63337         Reported by Stavros Passas.
63338
63339 2006-01-25  Jim Meyering  <jim@meyering.net>
63340
63341         * lib/fileblocks.c: Remove more useless parentheses.
63342         * lib/readutmp.h: Likewise.
63343
63344 2006-01-25  Bruno Haible  <bruno@clisp.org>
63345
63346         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63347         warnings.
63348         Reported by Paul Eggert.
63349
63350 2006-01-25  Bruno Haible  <bruno@clisp.org>
63351
63352         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63353         rid of a trap command. For Solaris sh.
63354         Reported by Mark D. Baushke <mdb@gnu.org>.
63355
63356 2006-01-24  Simon Josefsson  <jas@extundo.com>
63357
63358         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63359         Bruno.
63360
63361 2006-01-24  Karl Berry  <karl@gnu.org>
63362
63363         * config/srclist.txt (argp-namefrob.h): sync lost.
63364
63365 2006-01-24  Jim Meyering  <jim@meyering.net>
63366
63367         * modules/openat (Files): Add lib/intprops.h.
63368         From Mark D. Baushke.
63369
63370 2006-01-24  Jim Meyering  <jim@meyering.net>
63371
63372         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63373         Reported by Mark D. Baushke.
63374
63375 2006-01-24  Jim Meyering  <jim@meyering.net>
63376
63377         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63378
63379 2006-01-24  Bruno Haible  <bruno@clisp.org>
63380
63381         * modules/strnlen (Maintainer): Change from glibc to all.
63382
63383 2006-01-24  Bruno Haible  <bruno@clisp.org>
63384
63385         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63386         Patch by Paul Eggert.
63387
63388 2006-01-24  Bruno Haible  <bruno@clisp.org>
63389
63390         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63391         already has it.
63392         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63393         2005-11-26.
63394
63395         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63396         'signed char' to avoid problems with the built-in _Bool type.
63397         Reported by Paul Eggert on 2005-11-26.
63398
63399 2006-01-24  Bruno Haible  <bruno@clisp.org>
63400
63401         * gnulib-tool (func_import): Avoid constructing complicated sed
63402         expressions inside backquote.
63403         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63404
63405 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63406
63407         These changes imported from libc.
63408         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63409         test and two separate function calls.
63410         * lib/strndup.c (__strndup): Add libc_hidden_def.
63411
63412 2006-01-23  Simon Josefsson  <jas@extundo.com>
63413
63414         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63415         Remove the test_*_SOURCES variable: automake infers it by default.
63416         * modules/tls-tests: Likewise.
63417
63418 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63419
63420         Work around porting bugs reported by Dieter in
63421         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63422         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63423         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63424         Include "getopt.h" first, to check interface.
63425         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63426         !HAVE_DECL_GETENV.
63427         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63428         (__strndup): Revert to K&R-style function dfns, the glibc style.
63429         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63430         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63431         Include strnlen.h first, to get prototype properly.
63432         (strnlen): Renamed from __strnlen.
63433         Remove weak alias.
63434
63435 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63438
63439 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63440
63441         * config/srclist.txt: Adjust to reflect glibc reorganization.
63442         This affects only comments.
63443
63444 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63445
63446          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63447          Reported by Bruce Korb <bkorb@gnu.org>.
63448
63449 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63450
63451         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63452         to pacify gcc -Wswitch-default.
63453
63454 2006-01-22  Bruno Haible  <bruno@clisp.org>
63455
63456         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63457         temporary buffer for sprintf, take into account the precision also
63458         for 'd', 'i', 'u', 'o', 'x', 'X'.
63459
63460 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63461
63462         * modules/argp-tests: New module
63463         * tests/test-argp.c: New file
63464         * tests/test-argp-2.sh: New file
63465
63466 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63467
63468         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63469         (__argp_base_name): Removed
63470         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63471         typo.
63472         (__argp_base_name): Provide macro definition or extern declaration
63473         depending on the configuration
63474
63475 2006-01-20  Simon Josefsson  <jas@extundo.com>
63476
63477         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63478
63479 2006-01-20  Simon Josefsson  <jas@extundo.com>
63480
63481         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63482
63483 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63484
63485         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63486         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63487         Suggested by Bruno Haible.
63488
63489 2006-01-20  Karl Berry  <karl@gnu.org>
63490
63491         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63492         until changes propagate, I guess.
63493
63494 2006-01-19  Simon Josefsson  <jas@extundo.com>
63495
63496         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63497
63498 2006-01-19  Simon Josefsson  <jas@extundo.com>
63499
63500         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63501
63502 2006-01-19  Simon Josefsson  <jas@extundo.com>
63503
63504         * gnulib-tool: Set check_PROGRAMS.
63505
63506         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63507         modules/des-tests, modules/gc-arcfour-tests,
63508         modules/gc-arctwo-tests, modules/gc-des-tests,
63509         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63510         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63511         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63512         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63513         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63514         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63515         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63516         test_*_SOURCES.
63517
63518 2006-01-18  Simon Josefsson  <jas@extundo.com>
63519
63520         * modules/socklen (Depends-on): Depend on sys_socket.
63521
63522 2006-01-18  Simon Josefsson  <jas@extundo.com>
63523
63524         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63525         modules/des-tests, modules/gc-arcfour-tests,
63526         modules/gc-arctwo-tests, modules/gc-des-tests,
63527         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63528         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63529         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63530         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63531         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63532         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63533         $(EXEEXT) to automake TESTS variable, for mingw32.
63534
63535 2006-01-17  Simon Josefsson  <jas@extundo.com>
63536
63537         * modules/socklen (Include): Need sys/socket.h.
63538
63539 2006-01-17  Bruno Haible  <bruno@clisp.org>
63540
63541         * modules/ssize_t (Include): Add <sys/types.h>.
63542
63543 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63544
63545         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63546         it's not portable and it doesn't work with cross-compiles.
63547         Problem reported by Bruno Haible.  Fix missing-$ typo in
63548         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63549         -zignore from being used with Sun's C compiler.
63550
63551 2006-01-12  Simon Josefsson  <jas@extundo.com>
63552
63553         * lib/base64.c: Fix warning, reported by Bruno Haible
63554         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63555
63556 2006-01-12  Bruno Haible  <bruno@clisp.org>
63557
63558         * modules/ldd: New file.
63559         * build-aux/ldd.sh.in: New file.
63560         * MODULES.html.sh (Support for building libraries and executables): Add
63561         ldd.
63562
63563 2006-01-12  Bruno Haible  <bruno@clisp.org>
63564
63565         * m4/ldd.m4: New file.
63566
63567 2006-01-12  Bruno Haible  <bruno@clisp.org>
63568
63569         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63570         endless loop while replacing $auxdir with build-aux.
63571
63572 2006-01-11  Simon Josefsson  <jas@extundo.com>
63573
63574         * lib/stdint_.h (SIZE_MAX): Add missing (.
63575
63576 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63577
63578         Sync from coreutils.
63579         * lib/md5.c: Fix commentary typos.
63580         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63581         * lib/md5.h (__attribute__): Remove; unused.
63582         * lib/sha1.c: Fix commentary to match md5 better.
63583         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63584         so that we don't need to worry about alignment.  All uses changed.
63585         This merges the 2005-10-28 md5 change into sha1.
63586
63587 2006-01-11  Jim Meyering  <jim@meyering.net>
63588
63589         Sync from coreutils.
63590         * lib/md5.c (OP): Fix spacing.
63591
63592 2006-01-11  Bruno Haible  <bruno@clisp.org>
63593
63594         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63595         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63596         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63597
63598 2006-01-11  Bruno Haible  <bruno@clisp.org>
63599
63600         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63601         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63602         the "early" section as well.
63603
63604 2006-01-11  Bruno Haible  <bruno@clisp.org>
63605
63606         Avoid "ar: no archive members specified" error on MacOS X.
63607         * gnulib-tool (func_modules_add_dummy): New function.
63608         (func_import, func_create_testdir): Invoke it.
63609
63610 2006-01-11  Bruno Haible  <bruno@clisp.org>
63611
63612         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63613         with $auxdir in AC_CONFIG_FILES statements.
63614
63615 2006-01-11  Bruno Haible  <bruno@clisp.org>
63616
63617         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63618         Initialize also noinst_HEADERS to empty.
63619
63620 2006-01-11  Bruno Haible  <bruno@clisp.org>
63621
63622         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63623         variables.
63624         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63625         autoreconf.
63626
63627 2006-01-11  Bruno Haible  <bruno@clisp.org>
63628
63629         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63630         overridable by the user.
63631         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63632
63633 2006-01-10  Simon Josefsson  <jas@extundo.com>
63634
63635         * modules/sys_socket: New file.
63636
63637 2006-01-10  Simon Josefsson  <jas@extundo.com>
63638
63639         * m4/sys_socket_h.m4: New file.
63640
63641 2006-01-10  Simon Josefsson  <jas@extundo.com>
63642
63643         * lib/socket_.h: New file.
63644
63645 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63646
63647         * modules/readutmp (Maintainer): Add myself.
63648
63649 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63650
63651         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63652         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63653         People who are still concerned with buggy memcmp implementations
63654         can invoke gl_FUNC_MEMCMP themselves.
63655
63656 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63657
63658         * lib/regex_internal.h (BITSET_WORD_BITS):
63659         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63660         preprocessor mishandles large unsigned values as if they were signed.
63661         Problem reported by Claudio Fontana in
63662         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63663
63664 2006-01-10  Jim Meyering  <jim@meyering.net>
63665
63666         Avoid the double-free (first in fts_read, second in fts_close) that
63667         would occur when an `active' directory is made inaccessible (e.g.,
63668         via chmod a-x) during a traversal.
63669         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63670         before returning.  Reproduce this failure by
63671         mkdir -p a/b; cd a; chmod a-x . b
63672         Reported by Stavros Passas.
63673
63674         Sync from coreutils.
63675         * lib/sha1.c: Tweak grammar in a comment.
63676
63677 2006-01-10  Jim Meyering  <jim@meyering.net>
63678
63679         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63680         Patch by Joerg Sonnenberger.
63681
63682 2006-01-10  Bruno Haible  <bruno@clisp.org>
63683
63684         * modules/readutmp: Depend on module free.
63685         * modules/strtok_r: Depend on module restrict.
63686
63687 2006-01-10  Bruno Haible  <bruno@clisp.org>
63688
63689         * modules/gettext (configure.ac): Add an invocation of
63690         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63691
63692 2006-01-10  Bruno Haible  <bruno@clisp.org>
63693
63694         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63695         Reported by Werner Lemberg <wl@gnu.org>.
63696
63697 2006-01-10  Bruno Haible  <bruno@clisp.org>
63698
63699         * lib/localcharset.c: Update from GNU gettext.
63700
63701 2006-01-10  Bruno Haible  <bruno@clisp.org>
63702
63703         * lib/argp.h (__const): Remove macro. Use const instead.
63704         * lib/argp-fmtstream.h (__const): Likewise.
63705         * lib/glob_.h (__const): Remove macro.
63706         * lib/glob-libc.h: Use const instead of __const.
63707
63708 2006-01-10  Bruno Haible  <bruno@clisp.org>
63709
63710         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63711         variable.
63712         Needed to avoid an automake error regarding the 'gettext' module.
63713
63714 2006-01-09  Simon Josefsson  <jas@extundo.com>
63715
63716         * modules/inet_ntop (Depends-on): Add restrict.
63717
63718 2006-01-09  Simon Josefsson  <jas@extundo.com>
63719
63720         * modules/gc-rijndael-tests (License): Put under LGPL.
63721
63722         * modules/gc-des-tests (License): Likewise.
63723
63724         * modules/gc-arcfour-tests (License): Likewise.
63725
63726         * modules/gc-arctwo-tests (License): Likewise.
63727
63728         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63729
63730         * modules/gc-hmac-sha1-tests (Files): Likewise.
63731
63732         * modules/gc-hmac-md5-tests (License): Likewise.
63733
63734         * modules/gc-sha1-tests (License): Likewise.
63735
63736         * modules/gc-md5-tests (License): Likewise.
63737
63738         * modules/gc-md4-tests (License): Likewise.
63739
63740         * modules/gc-md2-tests (License): Likewise.
63741
63742         * modules/gc-tests (License): Likewise.
63743
63744         * modules/des-tests (License): Likewise.
63745
63746         * modules/md4-tests (License): Likewise.
63747
63748         * modules/md2-tests (License): Likewise.
63749
63750 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63751
63752         Sync from coreutils:
63753
63754         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63755         * modules/lib-ignore: New file.
63756         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63757         chdir-safer.m4, lchmod.m4.
63758         * modules/openat: Add mkdirat.c, openat-priv.h.
63759
63760 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63761
63762         Sync from coreutils.
63763         * m4/lib-ignore.m4: New file.
63764         * m4/lchmod.m4: New file.
63765
63766 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63767
63768         Sync from coreutils.
63769         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63770         for write access: POSIX says that must fail.
63771         * lib/fts.c (diropen): Likewise.
63772         * lib/save-cwd.c (save_cwd): Likewise.
63773         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63774         well, for minor improvements on hosts that lack O_DIRECTORY.
63775         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63776         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63777         Fall back on chown if open failed with EACCES.
63778
63779         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63780         Report an error at compile-time if only a 1-second nominal clock
63781         resolution is found.
63782
63783         * lib/lchmod.h: New file.
63784         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63785         (make_dir_parents): Use lchown rather than chown, and
63786         lchmod rather than chmod.
63787
63788         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63789         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63790         "proc" reported by n0dalus.
63791
63792         * lib/mountlist.c: Include <limits.h>.
63793         (dev_from_mount_options)
63794         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63795         New function.  It no longer assumes "dev=" has the System V meaning
63796         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63797         (read_file_system_list)
63798         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63799         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63800         dev= in that case.
63801
63802         * lib/posixtm.h (PDS_PRE_2000): New macro.
63803         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63804         allow_century.  All usages changed.  Reject dates outside the range
63805         1969-1999 if PDS_PRE_2000 is used.
63806
63807 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63808
63809         Sync from coreutils.
63810         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63811         (Time of day items): Mention the possibility of leap seconds.
63812         Problem reported by Dr. David Alan Gilbert.
63813
63814 2006-01-09  Jim Meyering  <jim@meyering.net>
63815
63816         Sync from coreutils.
63817
63818         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63819
63820         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63821
63822         * lib/modechange.c (mode_compile): Reject an invalid mode string
63823         that starts with an octal digit.  From Andreas Gruenbacher.
63824
63825         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63826         and dup to open_safer and dup_safer, respectively.
63827         (openat_permissive): Fix typo in comment.
63828
63829         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63830         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63831         (_): Remove; no longer needed.
63832         (openat): Renamed from rpl_openat; no need for rpl_openat
63833         since openat.h renames openat for us.
63834         Replace most of the body with a call to openat_permissive,
63835         to avoid duplicate code.
63836         Port to (probably hypothetical) environments were mode_t is
63837         wider than int.
63838         (openat_permissive): Require mode arg, so that we can check
63839         types better.  Put it just after flags.  Change cwd failure
63840         indicator from pointer-to-bool to pointer-to-errno-value.
63841         All callers changed.
63842         Invoke openat_save_fail and/or openat_restore_fail if
63843         cwd_errno is null, so that openat can call us.
63844         (openat_permissive, fdopendir, fstatat, unlinkat):
63845         Simplify errno handling to avoid some duplicate code,
63846         as it's OK to set errno on success.
63847         * lib/openat.h: Revamp code so that function macros depend on
63848         __OPENAT_PREFIX only, not also on AT_FDCWD.
63849         (openat_ro): Remove.  Caller changed to use openat_permissive.
63850         (openat_permissive): Now a macro, if not a function.
63851         (openat_restore_fail, openat_save_fail): Now always functions,
63852         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63853
63854         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63855         and openat.c.
63856         * lib/mkdirat.c: Include openat-priv.h.
63857         Remove definitions of macros defined therein.
63858         * lib/openat.c: Likewise.
63859
63860         * lib/mkdirat.c (mkdirat): New file and function.
63861         * lib/openat.h (mkdirat): Declare.
63862
63863         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63864
63865         * lib/openat.h (openat_permissive): Declare.
63866         (openat_ro): Define.
63867
63868         * lib/openat.c (EXPECTED_ERRNO): New macro.
63869         (openat_permissive): New function -- used in remove.c rewrite.
63870         (all functions): Set errno just before returning, only if there
63871         was an actual failure.
63872         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63873
63874         Emulate openat-family functions using Linux's procfs, if possible.
63875         Idea and some code based on Ulrich Drepper's glibc changes.
63876
63877         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63878         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63879         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63880         before falling back on save_cwd and restore_cwd.
63881         (fdopendir, fstatat, unlinkat): Likewise.
63882
63883         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63884         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63885
63886         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63887         as second argument to va_arg.  Otherwise, some versions of gcc
63888         warn that `if this code is reached, the program will abort'.
63889
63890 2006-01-09  Jim Meyering  <jim@meyering.net>
63891
63892         Sync from coreutils.
63893         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63894         Require openat-priv.h.
63895
63896 2006-01-09  Bruno Haible  <bruno@clisp.org>
63897
63898         * modules/strnlen (Include): Use strnlen.h.
63899
63900 2006-01-09  Bruno Haible  <bruno@clisp.org>
63901
63902         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63903
63904 2006-01-09  Bruno Haible  <bruno@clisp.org>
63905
63906         * lib/sysexit_.h (EX_OK): New macro.
63907         Suggested by Martin Lambers <marlam@marlam.de>.
63908
63909 2006-01-09  Bruno Haible  <bruno@clisp.org>
63910
63911         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63912         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63913
63914 2006-01-09  Bruno Haible  <bruno@clisp.org>
63915
63916         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63917         numbers.
63918
63919 2006-01-09  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63922         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63923         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63924         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63925
63926 2006-01-09  Bruno Haible  <bruno@clisp.org>
63927
63928         * build-aux/javacomp.sh.in: New file, moved from lib/.
63929         * modules/javacomp-script (Files): Update.
63930         (configure.ac): Add AC_CONFIG_FILES invocation.
63931         (EXTRA_DIST): Remove variable.
63932
63933         * build-aux/javaexec.sh.in: New file, moved from lib/.
63934         * modules/javaexec (Files): Update.
63935         (configure.ac): Add AC_CONFIG_FILES invocation.
63936         (EXTRA_DIST): Remove javaexec.sh.in.
63937
63938         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63939         * modules/csharpcomp-script (Files): Update.
63940         (configure.ac): Add AC_CONFIG_FILES invocation.
63941         (EXTRA_DIST): Remove variable.
63942
63943         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63944         * modules/csharpexec (Files): Update.
63945         (configure.ac): Add AC_CONFIG_FILES invocation.
63946         (EXTRA_DIST): Remove csharpexec.sh.in.
63947
63948 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63949
63950         Sync from coreutils.
63951
63952         Add POSIX ACL support
63953         * lib/acl.h (copy_acl, set_acl): Add declarations.
63954         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63955         systems other than Linux.
63956         (chmod_or_fchmod): New function: use fchmod when possible,
63957         and chmod otherwise.
63958         (file_has_acl): Add a POSIX ACL implementation, with a
63959         Linux-specific subcase.
63960         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63961         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63962         acls are unsupported.
63963         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63964         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63965         are unsupported.
63966
63967 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63968
63969         Sync from coreutils.
63970         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63971
63972 2006-01-07  Bruno Haible  <bruno@clisp.org>
63973
63974         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63975         gl_EARLY.
63976
63977 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63978
63979         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63980         Problem reported for Mingw by Mark Junker.
63981
63982 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         * README: Gnulib normally doesn't generate a tarball.
63985
63986 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63987
63988         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63989         long int, not int, for nanosecond counts, so that people who are
63990         used to POSIX struct timespec won't be surprised.  Reported by Jim
63991         Meyering.
63992
63993 2005-12-28  Bruno Haible  <bruno@clisp.org>
63994
63995         * build-aux/config.rpath: Update from GNU gettext.
63996
63997 2005-12-16  Jim Meyering  <jim@meyering.net>
63998
63999         * modules/fprintftime: New module.
64000         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64001
64002 2005-12-16  Jim Meyering  <jim@meyering.net>
64003
64004         * m4/fprintftime.m4: New file.
64005
64006 2005-12-16  Jim Meyering  <jim@meyering.net>
64007
64008         * lib/fprintftime.c, lib/fprintftime.h: New files.
64009
64010 2005-12-15  Simon Josefsson  <jas@extundo.com>
64011
64012         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64013         new m4/socklen.m4.
64014
64015 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64016
64017         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64018         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64019
64020 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64021
64022         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64023         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64024         struct uparams is valid. Fall back to the default values if it is
64025         not.
64026
64027 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64028
64029         * modules/argp (Files): Add argp-pin.c
64030         (Depends-on): dirname
64031         (lib_SOURCES): Add argp-pin.c
64032
64033 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64034
64035         * m4/argp.m4:  Check if program_invocation_name and
64036         program_invocation_short_name are declared and define appropriate
64037         macros if they are not.
64038
64039 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64040
64041         * lib/argp-help.c (__argp_base_name): New function
64042         (__argp_short_program_name): Rewrite using __argp_base_name
64043         * lib/argp-namefrob.h: Define program_invocation_name and
64044         program_invocation_short_name if requested
64045         (__argp_base_name): Add prototype
64046         * lib/argp-parse.c (argp_def): Use gettext wrappers
64047         (argp_default_parser): Use __argp_base_name
64048         * lib/argp-pin.c: New file. Defines program_invocation_name and
64049         program_invocation_short_name on systems that lack them.
64050
64051 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64054         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64055         porting problem reported by Georg Schwarz in
64056         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64057
64058 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64061         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64062         porting problem reported by Georg Schwarz in
64063         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64064
64065 2005-12-05  Bruno Haible  <bruno@clisp.org>
64066
64067         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64068         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64069         Reported by Mark Junker <mjscod@gmx.de>.
64070
64071 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64072
64073         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64074         Use implementation from Albert Chin, with some
64075         comments/corrections by Stepan Kasal and myself.
64076
64077 2005-12-02  Bruno Haible  <bruno@clisp.org>
64078
64079         * gnulib-tool (func_import): Accept GPLed build tool modules when
64080         --lgpl is given.
64081         * modules/csharpcomp-script: New file.
64082         * modules/csharpcomp: Depend on it.
64083         * modules/javacomp-script: New file.
64084         * modules/javacomp: Depend on it.
64085         Suggested by Simon Josefsson.
64086
64087 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64088
64089         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64090         statement, to work around an HP-UX 10.20 compiler bug reported by
64091         Peter O'Gorman.
64092
64093 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64094
64095         * modules/savedir (Depends-on): Add openat.
64096
64097 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64098
64099         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64100         (uintmax_t) [defined uintmax_t]: Do not declare.
64101         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64102         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64103         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64104         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64105         sake of portability to weird hosts that C allows (though we don't
64106         know of any practical examples).
64107
64108         * lib/savedir.h (fdsavedir): New decl.
64109         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64110         contains most of the former guts of savedir.
64111         (savedir): Use savedirstream.
64112         Include "openat.h".
64113
64114 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64115
64116         * modules/obstack (Files): Add m4/ulonglong.m4.
64117         Problem reported by Davide Angelocola.
64118
64119 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64120
64121         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64122         coreutils no longer futzes with rounding modes.
64123
64124 2005-11-14  Jim Meyering  <jim@meyering.net>
64125
64126         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64127         replacement of mkstemp.
64128
64129 2005-11-10  Simon Josefsson  <jas@extundo.com>
64130
64131         * lib/readline.c: Remove EOL.
64132
64133 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64134
64135         * modules/gethrxtime (Depends-on): Add gettime.
64136
64137 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64138
64139         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64140         or gettimeofday; no longer needed.
64141
64142 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64143
64144         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64145         time business.
64146         (gethrxtime) [! (HAVE_NANOUPTIME
64147         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64148         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64149         our own approximation.
64150
64151 2005-11-08  Eric Blake  <ebb9@byu.net>
64152
64153         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64154
64155 2005-11-08  Eric Blake  <ebb9@byu.net>
64156
64157         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64158
64159 2005-11-04  Bruno Haible  <bruno@clisp.org>
64160
64161         * gnulib-tool: Implement --update mode.
64162
64163 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         Fix porting problem reported by Theodoros V. Kalamatianos.
64166         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64167         Don't assume that futimes failing means we must fail.
64168
64169 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64170
64171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64172         variables to suggest the intended function of the PATH_MAX check.
64173
64174 2005-10-30  Kean Johnston  <jkj@sco.com>
64175
64176         Trivial changes to support SCO systems.
64177         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64178         as PATH_MAX.
64179         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64180         where __ptr is null when no I/O is pending.
64181
64182 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64185         leave errno alone.  Problem reported by Dmitry V. Levin.
64186
64187 2005-10-28  Simon Josefsson  <jas@extundo.com>
64188
64189         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64190         Test more.
64191
64192         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64193
64194         * modules/md2, modules/md2-tests: New files.
64195
64196 2005-10-28  Simon Josefsson  <jas@extundo.com>
64197
64198         * m4/inet_ntop.m4: More tests.
64199
64200         * m4/gc-md2.m4, md2.m4: New file.
64201
64202 2005-10-28  Simon Josefsson  <jas@extundo.com>
64203
64204         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64205         "restrict" keywords, as per POSIX.  Protect the function
64206         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64207         Don't use K&R prototypes.  Check the sprintf return values.
64208         Re-define EAFNOSUPPORT if not present.  Indent.
64209
64210         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64211         suggested by Bruno Haible <bruno@clisp.org>.
64212
64213         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64214
64215         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64216
64217         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64218         libgcrypt).
64219
64220         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64221
64222         * lib/md2.h, lib/md2.c: New files.
64223
64224 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64227         errno alone.  Problem reported by Frederic Jolliton.
64228
64229 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64230
64231         * modules/verify (License): Change from GPL to LGPL.  This is a
64232         tiny module and there are apparently near-equivalents that are
64233         under the BSD license.
64234
64235 2005-10-24  Simon Josefsson  <jas@extundo.com>
64236
64237         * modules/sha1: Relicense to LGPL.
64238
64239 2005-10-24  Simon Josefsson  <jas@extundo.com>
64240
64241         * lib/md4.h: Shrink buffer size, now that we changed the type.
64242
64243 2005-10-23  Simon Josefsson  <jas@extundo.com>
64244
64245         * gnulib-tool (func_import): Fix --tests-base.
64246
64247 2005-10-22  Simon Josefsson  <jas@extundo.com>
64248
64249         * modules/arcfour (Depends-on): Need stdint.
64250
64251 2005-10-22  Simon Josefsson  <jas@extundo.com>
64252
64253         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64254         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64255
64256 2005-10-22  Simon Josefsson  <jas@extundo.com>
64257
64258         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64259         suggested by Bruno Haible <bruno@clisp.org>.
64260
64261 2005-10-22  Simon Josefsson  <jas@extundo.com>
64262
64263         * lib/crc.h: Include stddef.h, for size_t.
64264
64265 2005-10-22  Simon Josefsson  <jas@extundo.com>
64266
64267         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64268         arcfour_context struct (simplify test vector testing in GNU
64269         Shishi).
64270
64271 2005-10-21  Simon Josefsson  <jas@extundo.com>
64272
64273         * modules/des, modules/des-tests: New files.
64274
64275         * modules/gc-des, modules/gc-des-tests: New files.
64276
64277         * tests/test-des.c, tests/test-gc-des.c: New file.
64278
64279 2005-10-21  Simon Josefsson  <jas@extundo.com>
64280
64281         * modules/arctwo, modules/arctwo-tests: New files.
64282
64283         * tests/test-arctwo.c: New file.
64284
64285         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64286
64287         * tests/test-gc-arctwo.c: New file.
64288
64289 2005-10-21  Simon Josefsson  <jas@extundo.com>
64290
64291         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64292         Bruno Haible <bruno@clisp.org>.
64293
64294         * m4/gc-des.m4: New file.
64295
64296 2005-10-21  Simon Josefsson  <jas@extundo.com>
64297
64298         * m4/arctwo.m4: New file.
64299
64300         * m4/gc-arctwo.m4: New file.
64301
64302 2005-10-21  Simon Josefsson  <jas@extundo.com>
64303
64304         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64305         block.
64306
64307 2005-10-21  Simon Josefsson  <jas@extundo.com>
64308
64309         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64310         <bruno@clisp.org>.
64311
64312         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64313
64314         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64315         Bruno Haible <bruno@clisp.org>.
64316
64317         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64318         <bruno@clisp.org>.
64319
64320 2005-10-21  Simon Josefsson  <jas@extundo.com>
64321
64322         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64323
64324 2005-10-21  Simon Josefsson  <jas@extundo.com>
64325
64326         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64327
64328 2005-10-21  Simon Josefsson  <jas@extundo.com>
64329
64330         * lib/des.h, lib/des.c: New files.
64331
64332         * lib/gc-gnulib.c: Support DES.c
64333
64334 2005-10-21  Simon Josefsson  <jas@extundo.com>
64335
64336         * lib/arctwo.h, lib/arctwo.c: New files.
64337
64338         * lib/gc-gnulib.c: Support ARCTWO.
64339
64340 2005-10-21  Simon Josefsson  <jas@extundo.com>
64341
64342         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64343         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64344
64345 2005-10-21  Simon Josefsson  <jas@extundo.com>
64346
64347         * gnulib-tool (func_import, func_create_testdir): Define automake
64348         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64349         Makefile.am snippet),
64350         suggested by Bruno Haible <bruno@clisp.org>.
64351
64352         * modules/gc (Makefile.am): Use it.
64353
64354 2005-10-21  Bruno Haible  <bruno@clisp.org>
64355
64356         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64357         patch.
64358
64359 2005-10-19  Simon Josefsson  <jas@extundo.com>
64360
64361         * tests/test-gc-rijndael.c: New file.
64362
64363         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64364
64365 2005-10-19  Simon Josefsson  <jas@extundo.com>
64366
64367         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64368         interface too.
64369
64370 2005-10-19  Simon Josefsson  <jas@extundo.com>
64371
64372         * tests/test-gc-arcfour.c: New file.
64373
64374         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64375
64376 2005-10-19  Simon Josefsson  <jas@extundo.com>
64377
64378         * modules/gc-md4, modules/gc-md4-tests: New file.
64379
64380         * tests/test-gc-md4.c: New file.
64381
64382 2005-10-19  Simon Josefsson  <jas@extundo.com>
64383
64384         * m4/gc-md4.m4: New file.
64385
64386 2005-10-19  Simon Josefsson  <jas@extundo.com>
64387
64388         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64389         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64390         <kasal@ucw.cz>.
64391
64392 2005-10-19  Simon Josefsson  <jas@extundo.com>
64393
64394         * m4/gc-arcfour.m4: New file.
64395
64396         * m4/gc-rijndael.m4: New file.
64397
64398 2005-10-19  Simon Josefsson  <jas@extundo.com>
64399
64400         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64401
64402 2005-10-19  Simon Josefsson  <jas@extundo.com>
64403
64404         * lib/gc-gnulib.c: Support ARCFOUR.
64405
64406 2005-10-19  Simon Josefsson  <jas@extundo.com>
64407
64408         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64409         support.
64410
64411         * lib/gc.h: Add ECB enum type.
64412
64413         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64414
64415 2005-10-18  Simon Josefsson  <jas@extundo.com>
64416
64417         * tests/test-md5.c: New file.
64418
64419         * modules/md5-tests: New file.
64420
64421 2005-10-18  Simon Josefsson  <jas@extundo.com>
64422
64423         * tests/test-md4.c: New file.
64424
64425         * modules/md4, modules/md4-tests: New files.
64426
64427 2005-10-18  Simon Josefsson  <jas@extundo.com>
64428
64429         * m4/md4.m4: New file.
64430
64431 2005-10-18  Simon Josefsson  <jas@extundo.com>
64432
64433         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64434
64435 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64436
64437         * gnulib-tool (func_create_testdir): Omit the second check whether
64438         BUILT_SOURCES in nonempty.
64439
64440 2005-10-17  Simon Josefsson  <jas@extundo.com>
64441
64442         * tests/test-rijndael.c: New file.
64443
64444 2005-10-17  Simon Josefsson  <jas@extundo.com>
64445
64446         * modules/sha1: Depend on stdint instead of md5.
64447
64448         * modules/md5: Depend on stdint, remove uint32_t.
64449
64450 2005-10-17  Simon Josefsson  <jas@extundo.com>
64451
64452         * modules/gc-sha1-tests: New file.
64453
64454         * tests/test-gc-sha1.c: New file.
64455
64456 2005-10-17  Simon Josefsson  <jas@extundo.com>
64457
64458         * m4/md5.m4: Remove call to uint32_t.m4.
64459
64460 2005-10-17  Simon Josefsson  <jas@extundo.com>
64461
64462         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64463
64464         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64465         md5.h.
64466
64467         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64468
64469         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64470
64471 2005-10-17  Simon Josefsson  <jas@extundo.com>
64472
64473         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64474
64475 2005-10-17  Simon Josefsson  <jas@extundo.com>
64476
64477         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64478
64479 2005-10-17  Simon Josefsson  <jas@extundo.com>
64480
64481         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64482
64483         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64484
64485 2005-10-17  Bruno Haible  <bruno@clisp.org>
64486
64487         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64488         that it can also be used in a test.
64489
64490 2005-10-16  Bruno Haible  <bruno@clisp.org>
64491
64492         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64493         TESTS_ENVIRONMENT, so that individual tests can augment it.
64494
64495         * gnulib-tool (func_create_testdir): Use an intermediate target for
64496         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64497         macros, like $(ALLOCA_H), which cannot be passed through the command
64498         line.
64499
64500 2005-10-15  Simon Josefsson  <jas@extundo.com>
64501
64502         * modules/rijndael-tests: New file.
64503
64504         * modules/rijndael: New file.
64505
64506 2005-10-15  Simon Josefsson  <jas@extundo.com>
64507
64508         * m4/rijndael.m4: New file.
64509
64510 2005-10-15  Simon Josefsson  <jas@extundo.com>
64511
64512         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64513
64514         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64515
64516 2005-10-14  Simon Josefsson  <jas@extundo.com>
64517
64518         * tests/test-arcfour.c: New file.
64519
64520         * modules/arcfour, modules/arcfour-tests: New files.
64521
64522 2005-10-14  Simon Josefsson  <jas@extundo.com>
64523
64524         * m4/arcfour.m4: New file.
64525
64526 2005-10-14  Simon Josefsson  <jas@extundo.com>
64527
64528         * lib/arcfour.h, lib/arcfour.c: New files.
64529
64530 2005-10-14  Roland McGrath  <roland@redhat.com>
64531
64532         Import from libc.  [BZ #1331]
64533         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64534         macro argument.
64535         Reported by Matej Vela <vela@debian.org>.
64536
64537 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64540         include <wchar.h>; no longer needed.
64541
64542 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64543
64544         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64545
64546 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64547         and  Ulrich Drepper  <drepper@redhat.com>
64548
64549         Import from libc.
64550         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64551         instead of inline stream orientation test and two separate
64552         function calls.  Pay no attention to USE_IN_LIBIO.
64553
64554 2005-10-13  Simon Josefsson  <jas@extundo.com>
64555
64556         * modules/gc-hmac-md5-tests: New file.
64557
64558         * tests/test-gc-hmac-sha1.c: New file.
64559
64560         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64561
64562         * modules/gc-hmac-md5-tests: New file.
64563
64564         * tests/test-gc-md5.c: New file.
64565
64566         * modules/gc-md5-tests: New file.
64567
64568 2005-10-13  Simon Josefsson  <jas@extundo.com>
64569
64570         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64571         Move memory allocation outside of loop.
64572
64573 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64574
64575         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64576         intermediate directory is in a read-only file system.  Problem
64577         reported by Eric Blake.
64578
64579 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64580
64581         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64582
64583 2005-10-12  Simon Josefsson  <jas@extundo.com>
64584
64585         * tests/test-hmac-sha1.c: New file.
64586
64587         * modules/hmac-sha1-tests: New file.
64588
64589         * modules/hmac-sha1: New file.
64590
64591 2005-10-12  Simon Josefsson  <jas@extundo.com>
64592
64593         * modules/gc-sha1: New file.
64594
64595 2005-10-12  Simon Josefsson  <jas@extundo.com>
64596
64597         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64598
64599         * tests/test-gc-pbkdf2-sha1.c: New file.
64600
64601 2005-10-12  Simon Josefsson  <jas@extundo.com>
64602
64603         * modules/gc-md5, modules/gc-hmac-md5: New files.
64604
64605         * modules/gc (Files): Remove md5, memxor and hmac files.
64606
64607 2005-10-12  Simon Josefsson  <jas@extundo.com>
64608
64609         * m4/gc-pbkdf2-sha1.m4: New file.
64610
64611         * m4/gc-hmac-sha1.m4: New file.
64612
64613         * m4/gc-sha1: New file.
64614
64615         * m4/hmac-sha1.m4: New file.
64616
64617 2005-10-12  Simon Josefsson  <jas@extundo.com>
64618
64619         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64620
64621         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64622
64623 2005-10-12  Simon Josefsson  <jas@extundo.com>
64624
64625         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64626         suggested by Bruno Haible <bruno@clisp.org>.
64627
64628 2005-10-12  Simon Josefsson  <jas@extundo.com>
64629
64630         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64631
64632 2005-10-12  Simon Josefsson  <jas@extundo.com>
64633
64634         * lib/gc-pbkdf2-sha1.c: New file.
64635
64636         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64637
64638 2005-10-12  Simon Josefsson  <jas@extundo.com>
64639
64640         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64641
64642         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64643
64644 2005-10-12  Simon Josefsson  <jas@extundo.com>
64645
64646         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64647         GC_USE_HMAC_MD5, respectively.
64648
64649         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64650         (gc_md5): Fix typo.
64651
64652         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64653
64654         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64655
64656         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64657
64658 2005-10-12  Bruno Haible  <bruno@clisp.org>
64659
64660         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64661         Reported by Stepan Kasal <kasal@ucw.cz>.
64662
64663 2005-10-11  Simon Josefsson  <jas@extundo.com>
64664
64665         * tests/test-crc.c: New file.
64666
64667         * modules/crc, modules/crc-tests: New files.
64668
64669 2005-10-11  Simon Josefsson  <jas@extundo.com>
64670
64671         * m4/crc.m4: New file.
64672
64673 2005-10-11  Simon Josefsson  <jas@extundo.com>
64674
64675         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64676
64677         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64678
64679         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64680
64681 2005-10-11  Simon Josefsson  <jas@extundo.com>
64682
64683         * lib/crc.h, lib/crc.c: New files.
64684
64685         * lib/gc.h (gc_hash_buffer): Add doc.
64686
64687 2005-10-11  Bruno Haible  <bruno@clisp.org>
64688
64689         * modules/c-strcasestr: New file.
64690         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64691
64692 2005-10-11  Bruno Haible  <bruno@clisp.org>
64693
64694         * modules/c-strcase: New file.
64695         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64696
64697 2005-10-11  Bruno Haible  <bruno@clisp.org>
64698
64699         * lib/strcasecmp.c: Include limits.h.
64700         (strcasecmp): Avoid integer overflow on exotic platforms.
64701         * lib/strncasecmp.c: Include limits.h.
64702         (strncasecmp): Avoid integer overflow on exotic platforms.
64703         Reported by Paul Eggert.
64704
64705 2005-10-11  Bruno Haible  <bruno@clisp.org>
64706
64707         * lib/c-strcasestr.h: New file, from GNU gettext.
64708         * lib/c-strcasestr.c: New file, from GNU gettext.
64709
64710 2005-10-11  Bruno Haible  <bruno@clisp.org>
64711
64712         * lib/c-strcase.h: New file, from GNU gettext.
64713         * lib/c-strcasecmp.c: New file, from GNU gettext.
64714         * lib/c-strncasecmp.c: New file, from GNU gettext.
64715
64716 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64717
64718         * modules/mempcpy (License): GPL -> LGPL.
64719         * modules/strchrnul (License): Likewise.
64720         * modules/sysexits (License): Likewise.
64721
64722 2005-10-08  Simon Josefsson  <jas@extundo.com>
64723
64724         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64725
64726 2005-10-07  Simon Josefsson  <jas@extundo.com>
64727
64728         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64729
64730 2005-10-06  Simon Josefsson  <jas@extundo.com>
64731
64732         * tests/test-hmac-md5.c: New file.
64733
64734         * modules/hmac-md5-tests: New file.
64735
64736         * modules/hmac-md5: New file.
64737
64738 2005-10-06  Simon Josefsson  <jas@extundo.com>
64739
64740         * m4/hmac-md5.m4: New file.
64741
64742         * m4/memxor.m4: Require gl_C_RESTRICT.
64743
64744 2005-10-06  Simon Josefsson  <jas@extundo.com>
64745
64746         * lib/memxor.c (memxor): Avoid casts and warnings.
64747
64748 2005-10-06  Simon Josefsson  <jas@extundo.com>
64749
64750         * lib/hmac-md5.c: New file.
64751
64752         * lib/hmac.h: New file.
64753
64754 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64755
64756         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64757         promotes to int, not unsigned int, to catch the AIX 5.3
64758         compiler bug.
64759
64760 2005-10-05  Simon Josefsson  <jas@extundo.com>
64761
64762         * modules/memxor: New file.
64763
64764         * modules/iconv (Files): Move config.rpath to havelib, it is used
64765         there.
64766
64767         * modules/havelib (Files): Add config.rpath.
64768
64769 2005-10-05  Simon Josefsson  <jas@extundo.com>
64770
64771         * m4/memxor.m4: New file.
64772
64773 2005-10-05  Simon Josefsson  <jas@extundo.com>
64774
64775         * lib/memxor.c (memxor): Fix compiler error.
64776
64777         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64778         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64779
64780         * lib/memxor.h, lib/memxor.c: New files.
64781
64782         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64783         we assume all systems have it, suggested by Jim Meyering
64784         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64785         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64786         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64787         same reasons.
64788
64789 2005-10-05  Simon Josefsson  <jas@extundo.com>
64790
64791         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64792
64793 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64794
64795         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64796         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64797         needed, since the source code now assumes these .h files.
64798
64799 2005-10-05  Derek Price  <derek@ximbiot.com>
64800
64801         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64802
64803 2005-10-05  Bruno Haible  <bruno@clisp.org>
64804
64805         * modules/stdint (License): Change to LGPL.
64806
64807 2005-10-04  Simon Josefsson  <jas@extundo.com>
64808
64809         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64810         D. Baushke" <mdb@gnu.org>.
64811
64812 2005-10-04  Bruno Haible  <bruno@clisp.org>
64813
64814         * lib/verify.h (verify_true): Provide alternative definition for C++.
64815
64816 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64819         (SSIZE_MAX): New macro, if not already defined.
64820         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64821         than 2 GiB.
64822
64823 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         Sync from coreutils.
64826         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64827         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64828         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64829         ULLONG_MAX doesn't work with 2.7.2.1.
64830
64831 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64832
64833         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64834         From Ben Pfaff.
64835
64836         * modules/exclude (Depends-on): Depend on verify.
64837         * modules/strtoimax (Depends-on): Likewise.
64838         * modules/utimecmp (Depends-on): Likewise.
64839
64840 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64841
64842         * lib/exclude.c: Include verify.h.
64843         (verify): Remove.  All callers changed to use verify.h's version.
64844         * lib/strtoimax.c: Likewise.
64845         * lib/utimecmp.c: Likewis.e
64846
64847         Sync from coreutils.
64848         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64849         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64850         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64851         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64852         bother returning ENOSYS if settimeofday or stime fails; just let
64853         them return whatever errno they want to return.
64854         * lib/utimens.c: Include unistd.h, for dup2.
64855         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64856         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64857
64858 2005-10-02  Jim Meyering  <jim@meyering.net>
64859
64860         Sync from coreutils.
64861         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64862         from glibc-2.2.5 that fails for read-only files.
64863
64864 2005-10-02  Jim Meyering  <jim@meyering.net>
64865
64866         Sync from coreutils.
64867         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64868         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64869         `#if HAVE_CONFIG_H'.
64870         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64871         Remove AT_FDCWD test.
64872         Do not consume the fd unless successful.
64873         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64874         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64875         block, so that we don't even try to compile it if settimeofday is
64876         available.  This works around a compilation failure on OSF1 V5.1,
64877         due to stime requiring a `long int*' while tv_sec is `int'.
64878
64879 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64880
64881         Sync from coreutils.
64882         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64883         against `yes', rather than just testing for nonempty.
64884
64885 2005-10-01  Simon Josefsson  <jas@extundo.com>
64886
64887         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64888         and Darwin.
64889
64890         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64891         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64892         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64893         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64894         Check if struct addrinfo is declared.
64895
64896 2005-10-01  Simon Josefsson  <jas@extundo.com>
64897
64898         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64899         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64900         AI_* and EAI_* definitions.  Protect function declarations.
64901
64902 2005-10-01  Jim Meyering  <jim@meyering.net>
64903
64904         Sync from coreutils.
64905
64906         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64907         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64908         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64909         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64910         in the inet and nsl libraries.  Required on Solaris 5.7.
64911
64912 2005-10-01  Jim Meyering  <jim@meyering.net>
64913
64914         Sync from coreutils.
64915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64916         in the inet and nsl libraries.  Required on Solaris 5.7.
64917
64918 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64919
64920         * lib/getdelim.c (getdelim): Remove unused variables.
64921
64922 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64925         so that the code works even with ancient cpp.  Portability problem
64926         with GCC 2.7.2.1 reported by Thomas M.Ott.
64927
64928 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64929
64930         * modules/regex (Depends-on): Add strcase.
64931
64932         * modules/gethostname (Licence): Change from GPL to LGPL, since
64933         gethostname.c is a trivial implementation of a standard library
64934         function.
64935         * modules/poll (License): Change from GPL to LGPL, since it's
64936         derived from LGPL code.
64937
64938 2005-09-27  Jim Meyering  <jim@meyering.net>
64939
64940         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64941         HAVE_CONFIG_H.
64942
64943         * lib/intprops.h (signed_type_or_expr__): Define.
64944         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64945         for unsigned types.
64946
64947 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64948
64949         * lib/verify.h (verify_expr): Remove, replacing with:
64950         (verify_true): New macro that returns true instead of void.
64951         (verify_type__): Remove.
64952         (verify): Use verify_true rather than verify_type__.
64953
64954 2005-09-26  Bruno Haible  <bruno@clisp.org>
64955
64956         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64957         is necessary.
64958         (lib_SOURCES): Remove mbchar.c.
64959         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64960         (Files): Add m4/mbrtowc.m4.
64961         * modules/mbiter: Likewise.
64962         * modules/mbuiter: Likewise.
64963
64964 2005-09-26  Bruno Haible  <bruno@clisp.org>
64965
64966         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64967         compile mbchar.c if they are not both present.
64968         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64969         * m4/mbiter.m4 (gl_MBITER): Likewise.
64970         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64971         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64972         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64973
64974 2005-09-25  Jim Meyering  <jim@meyering.net>
64975
64976         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64977         also uses socklen_t.
64978
64979 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64980
64981         * lib/utimens.c (ENOSYS): Define if not already defined.
64982         (futimens): Support having a null PATH if the file descriptor
64983         is nonnegative.
64984
64985         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64986         Remove.
64987         (__attribute): Define to empty unless GCC 3.1 or later.
64988         This works around a core dump on OpenBSD 3.4, which has GCC
64989         2.95.3, which dumps core when given __attribute__(()).  It also
64990         simplifies other tests, since we really don't want to bother with
64991         worrying about which ancient version of GCC supported what.
64992         Original problem reported by Yoann Vandoorselaere, with part of
64993         the fix suggested by Derek Price.
64994
64995 2005-09-24  Jim Meyering  <jim@meyering.net>
64996
64997         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64998         so we can once again use a positive bitfield width of 1 -- now we
64999         don't have to explain why we were using a bitfield width of 2.
65000
65001 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65002
65003         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65004         and similarly for the other external symbols.  Problem reported
65005         by James Gallager.
65006
65007         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65008         bug reported by Jim Meyering.
65009
65010         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65011         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65012         not needed, since socklen is a prerequisite module.
65013
65014 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65015
65016         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65017         Problem reported by Eric Blake.
65018         (getaddrinfo): Initialize se so that it's not garbage.
65019         Redo internal storage allocation so that it doesn't make unportable
65020         assumptions about alignment.
65021         Fix a memory leak.
65022
65023         * lib/utimens.c (futimens): Use futimesat if available.
65024         Prefer it to futimes since it doesn't have the futimes bug.
65025
65026         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65027         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65028         Instead, declare a function that returns a pointer to an array,
65029         and use verify_type__ to declare the size of the array.
65030         Problem and germ of a solution reported by Bruno Haible.
65031         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65032         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65033
65034 2005-09-23  Jim Meyering  <jim@meyering.net>
65035
65036         Sync from coreutils.
65037         Correct build failure (socklen_t not defined) on at least
65038         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65039         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65040
65041 2005-09-23  Jim Meyering  <jim@meyering.net>
65042
65043         * modules/getaddrinfo (Depends-on): Add socklen.
65044
65045 2005-09-23  Bruno Haible  <bruno@clisp.org>
65046
65047         * tests/test-verify.c: New file.
65048
65049 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65050
65051         Sync from coreutils.
65052
65053         * modules/argmatch (Depends-on): Add verify.
65054         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65055         unistd-safer.
65056         * modules/save-cwd (Depends-on): Likewise.
65057
65058         * modules/openat (Files): Add lib/openat-die.c.
65059         (Depends-on): Remove error, exitfail.
65060         Add dirname.
65061
65062         * modules/verify: New file.
65063         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65064         with "verify" module.
65065
65066 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65067
65068         Sync from coreutils.
65069
65070         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65071         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65072         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65073         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65074         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65075         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65076         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65077         Don't bother checking for string.h, stdlib.h, unistd.h.
65078         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65079         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65080         module's job.
65081         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65082         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65083
65084         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65085         (gl_GETDATE): Use it.
65086
65087         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65088
65089 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         Sync from coreutils.
65092
65093         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65094         stat-time.h.
65095         * lib/argmatch.h: Include verify.h
65096         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65097         (ARGMATCH_ASSERT): Remove; unused.
65098         * lib/canonicalize.c: Assume STDC_HEADERS.
65099         * lib/exclude.c: Include "strcase.h".
65100         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65101         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65102         and stdio-safer.h.
65103         (getusershell): Call fopen, not fopen_safer.
65104         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65105         Do not include unistd-safer.h.
65106         (save_cwd): Don't call fd_safer; no longer needed
65107         now that we include fcntl--.h.
65108
65109         * lib/getdate.y (relative_time): New type.
65110         (RELATIVE_TIME_0): New constant.
65111         (parser_control): Use relative_time instead of doing it ourselves.
65112         (%union): Add new relative_time rel member.
65113         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65114         Now typeless.
65115         (relunit, relunit_snumber): Now of type rel.
65116         (zone, rel, relunit, get_date): Adjust to above changes.
65117
65118         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65119         Do not include unistd-safer.h.
65120         (getloadavg): Don't call fd_safer; no longer needed
65121         now that we include fcntl--.h.
65122
65123         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65124         (make_dir_parents): Treat ENOSYS like EEXIST.
65125
65126         Improve quality of diagnostics on restore_cwd failure.
65127         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65128         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65129         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65130         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65131         each time through the loop.  Do not diagnose restore_cwd failure;
65132         that is the caller's job (and perhaps the caller does not care).
65133
65134         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65135         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65136         If the file already exists but is not a directory, don't bother
65137         to try to make its parents.
65138         Close potential file descriptor leak if we can't chdir("/") (!).
65139         Don't always return true if chdir($PWD) fails; return true only
65140         if the requested action was done successfully (except for the
65141         chdir($PWD)).
65142         Don't log final directory unless we actually made it.
65143         Refactor to avoid duplicate code to fix up permissions.
65144         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65145
65146         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65147         to make it a bit faster and (I hope) clearer.
65148         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65149         Fix bug in formats like %2N.
65150
65151         * lib/verify.h: New file.
65152
65153 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65154
65155         Sync from coreutils.
65156         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65157
65158 2005-09-22  Jim Meyering  <jim@meyering.net>
65159
65160         Sync from coreutils.
65161
65162         * m4/lstat.m4 (gl_FUNC_LSTAT):
65163         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65164         Remove obsolete comment.
65165         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65166         * m4/xstrtod.m4: Likewise.
65167
65168         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65169
65170 2005-09-22  Jim Meyering  <jim@meyering.net>
65171
65172         Sync from coreutils.
65173
65174         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65175
65176         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65177         the .tm_year member, since otherwise gcc-4.0 would now warn about
65178         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65179
65180         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65181         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65182
65183         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65184         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65185         when run in a time zone for which daylight savings time is in effect
65186         for the starting date.
65187
65188         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65189         stop us from restricting permissions of just-created absolute-named
65190         directories.
65191         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65192         to restore initial working directory.
65193         * lib/mkdir-p.c (make_dir_parents): New parameter:
65194         different_working_dir, to tell caller if/when we change the working
65195         directory and are unable to return to the initial one.
65196         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65197         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65198         `return false'.  This fixes a bug introduced on 2004-07-30.
65199
65200         * lib/openat.c (fdopendir): Be sure to close the supplied
65201         file descriptor before returning.  This makes our replacement
65202         implementation a little closer to Solaris's, where fdopendir
65203         ties the file descriptor to the returned DIR* pointer.
65204         * lib/openat.c (unlinkat): New function.
65205         * lib/openat.h (unlinkat): Add prototype.
65206         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65207         (openat_restore_fail): Rename from openat_restore_die.
65208         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65209
65210         Provide an alternative to exiting immediately upon save_cwd or
65211         restore_cwd failure.  Now, an application can arrange e.g.,
65212         to perform a longjump in that case.
65213         * lib/openat.c: Include dirname.h.
65214         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65215         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65216         and openat_restore_die rather than calling error directly.
65217         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65218
65219         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65220         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65221         define.
65222
65223         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65224         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65225                             int utc, int nanoseconds);
65226         Background:
65227         date should not have to allocate a megabyte of virtual memory to
65228         handle a format argument like +%1048575T.  When implemented with
65229         strftime, it must allocate such a buffer, use strftime to fill it
65230         in, print it, then free it.
65231         With fprintftime, it simply prints everything and exits.
65232         With no need for memory allocation, that's one fewer way to fail.
65233         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65234         optional field width, not before, so we accept %9:z, not %:9z.
65235         (my_strftime): Be sure to use L_('x') for literals.
65236
65237         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65238         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65239         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65240         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65241         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65242         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65243         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65244         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65245         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65246         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65247         * lib/xgethostname.c, lib/xreadlink.c:
65248         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65249
65250         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65251         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65252         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65253         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65254         and don't include <sys/file.h>).
65255
65256 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65257
65258         Sync from coreutils.
65259
65260         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65261         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65262         [!LDAV_DONE]: Avoid unused variable warning.
65263
65264 2005-09-21  Bruno Haible  <bruno@clisp.org>
65265
65266         * lib/unicodeio.h (unicode_to_mb): New declaration.
65267
65268 2005-09-20  Derek Price  <derek@ximbiot.com>
65269
65270         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65271         getaddrinfo.h.
65272
65273 2005-09-20  Bruno Haible  <bruno@clisp.org>
65274
65275         * gnulib-tool: Remove trailing slashes from the values specified for
65276         --source-base, --m4-base, --tests-base, --aux-dir.
65277         Suggested by Simon Josefsson <jas@extundo.com>.
65278
65279 2005-09-20  Bruno Haible  <bruno@clisp.org>
65280
65281         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65282         func_modules_to_filelist, func_import, func_create_testdir): Make all
65283         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65284         change when gnulib-tool is invoked in a different locale.
65285
65286 2005-09-19  Simon Josefsson  <jas@extundo.com>
65287
65288         * m4/socklen.m4: Fix typo.
65289
65290 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65291
65292         Use a consistent style for including <config.h>.
65293         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65294         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65295         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65296         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65297         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65298         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65299         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65300         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65301         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65302         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65303         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65304         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65305         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65306         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65307         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65308         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65309         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65310         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65311         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65312         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65313         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65314         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65315         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65316         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65317         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65318         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65319         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65320         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65321         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65322         lib/xstrtoumax.c, lib/yesno.c:
65323         Standardize inclusion of config.h.
65324         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65325         lib/inttostr.h:  Removed inclusion of config.h from header files.
65326         * lib/inttostr.c:  Adjusted in-tree users.
65327         * lib/timespec.h: Remove superfluous warning to include config.h.
65328         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65329         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65330         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65331         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65332         config.h with HAVE_CONFIG_H.
65333
65334 2005-09-19  Jim Meyering  <jim@meyering.net>
65335
65336         * modules/pathmax (License): Change to LGPL.
65337
65338 2005-09-19  Derek Price  <derek@ximbiot.com>
65339
65340         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65341
65342 2005-09-19  Bruno Haible  <bruno@clisp.org>
65343
65344         * gnulib-tool (import): Provide default for --tests-base.
65345
65346 2005-09-19  Bruno Haible  <bruno@clisp.org>
65347
65348         * doc/quote.texi: New file, extracted from gnulib.texi.
65349         * doc/ctime.texi: New file, extracted from gnulib.texi.
65350         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65351         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65352         * doc/gnulib.texi: Include them.
65353
65354 2005-09-18  Bruno Haible  <bruno@clisp.org>
65355
65356         Portability fix.
65357         * gnulib-tool (func_readlink): New function.
65358         (func_ln_if_changed): Use it.
65359
65360 2005-09-18  Bruno Haible  <bruno@clisp.org>
65361
65362         * gnulib-tool: Support --with-tests also with --import.
65363         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65364         (func_import): Use variables $testsbase and $inctests. Emit a
65365         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65366         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65367         SUBDIRS += $testsdir.
65368         (func_create_testdir): Update.
65369
65370 2005-09-18  Bruno Haible  <bruno@clisp.org>
65371
65372         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65373         instead of $dry_run.
65374         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65375         (func_ln_if_changed): Don't handle dry-run here.
65376         (func_import): In dry-run mode, detect more precisely which actions
65377         would be performed, and don't use "...ing" verbs.
65378
65379 2005-09-18  Bruno Haible  <bruno@clisp.org>
65380
65381         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65382         (func_import): Use join on two temporary files instead of three nested
65383         loops, in order to determine which files are new or old.
65384
65385 2005-09-18  Bruno Haible  <bruno@clisp.org>
65386
65387         * gnulib-tool (func_import): Comment out code that spits out the
65388         new files with --dry-run.
65389
65390 2005-09-18  Bruno Haible  <bruno@clisp.org>
65391
65392         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65393
65394 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65395
65396         * lib/stat-time.h: New file.
65397         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65398         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65399         in a different way.
65400         (timespec_cmp): New function.
65401         * lib/utimecmp.c: Include stat-time.h.
65402         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65403         members exist, not on the obsolescent ST_MTIM_NSEC.
65404         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65405
65406 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65407
65408         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65409
65410 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65411
65412         * MODULES.html.sh (File system functions): Add stat-time.
65413         * modules/stat-time: New file.
65414         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65415         is now done in a different way, by the stat-time module.
65416         * modules/utimecmp (Depends-on): Add stat-time.
65417
65418 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65419
65420         * m4/st_mtim.m4: Remove.  Superseded by...
65421         * m4/stat-time.m4: New file.
65422         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65423         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65424
65425 2005-09-15  Derek Price  <derek@ximbiot.com>
65426
65427         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65428
65429 2005-09-15  Derek Price  <derek@ximbiot.com>
65430
65431         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65432         * lib/regex_internal.c: Ditto, using this...
65433         (__GNUC_PREREQ): ...new macro.
65434         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65435         using...
65436         (__GNUC_PREREQ): ...this new macro.
65437
65438         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65439
65440 2005-09-15  Derek Price  <derek@ximbiot.com>
65441             Paul Eggert  <eggert@cs.ucla.edu>
65442
65443         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65444         changes, consolidating in...
65445         * lib/regex_internal.h: ...this file.
65446
65447 2005-09-13  Jim Meyering  <jim@meyering.net>
65448
65449         * lib/canon-host.c: Filter through gnu indent and reword comments
65450         slightly.
65451         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65452
65453 2005-09-13  Derek Price  <derek@ximbiot.com>
65454
65455         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65456         failure.
65457         Reported by Jim Meyering  <jim@meyering.net>.
65458
65459 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65460
65461         * lib/base64.c: Typo.
65462         (base64_encode): Put b64str in initialized data section.
65463
65464 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65465
65466         Merge glibc and coreutils changes into gnulib, plus a few
65467         extra fixes.
65468         * lib/md5.c: Use #error rather than a string.
65469         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65470         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65471         (__attribute__): Define to empty for non recent-GCC.
65472         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65473         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65474         Renamed from their non-__ counterparts, with new macros replacing
65475         them if not _LIBC.  Add __THROW attribute.
65476         (rol): Remove.
65477         (struct md5_ctx): Align buffer if using GCC.
65478         * lib/sha1.h (struct sha1_ctx): Likewise.
65479         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65480         The old name was backwards.
65481         (NOTSWAP): Remove; not used.
65482         (rol): New macro, moved here from md5.h.
65483         (sha1_process_block): Remove a FIXME that doesn't make sense.
65484
65485 2005-09-12  Derek Price  <derek@ximbiot.com>
65486
65487         Return usable errors from canon-host.
65488         * lib/canon-host.h: New file.
65489         * lib/canon-host.c (canon_host): Wrap...
65490         (canon_host_r): ...this new function, which now relies exclusively on
65491         getaddrinfo.
65492         (ch_strerror): New function.
65493         (last_cherror): New global.
65494         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65495         interface.
65496         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65497         void *.
65498         (freeaddrinfo): Free ai->ai_canonname when set.
65499
65500 2005-09-12  Derek Price  <derek@ximbiot.com>
65501
65502         Make canon-host require getaddrinfo.
65503         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65504         AC_LIBSOURCE canon-host.h.  Call...
65505         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65506         gl_GETADDRINFO.
65507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65508
65509 2005-09-12  Derek Price  <derek@ximbiot.com>
65510
65511         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65512         LGPL.
65513         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65514
65515 2005-09-12  Derek Price  <derek@ximbiot.com>
65516
65517         * lib/gai_strerror.c: Include config.h when available.  Include
65518         getaddrinfo.h before other headers to test interface.
65519         Reported by Larry Jones <lawrence.jones@ugs.com>.
65520
65521 2005-09-12  Derek Price  <derek@ximbiot.com>
65522             Paul Eggert  <eggert@cs.ucla.edu>
65523
65524         * modules/glob (Files): Add glob-libc.h.
65525
65526 2005-09-12  Derek Price  <derek@ximbiot.com>
65527             Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65530         glob_.h, glob-libc.h.
65531         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65532
65533 2005-09-12  Derek Price  <derek@ximbiot.com>
65534             Paul Eggert  <eggert@cs.ucla.edu>
65535
65536         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65537         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65538         protecting things that should be done only in gnulib contexts.
65539         * lib/glob_.h: New file, containing only the glob things needed for
65540         gnulib.
65541         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65542         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65543         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65544         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65545         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65546         and to respect the namespace rules better.
65547
65548 2005-09-08  Simon Josefsson  <jas@extundo.com>
65549
65550         * modules/socklen: New file.
65551
65552 2005-09-08  Simon Josefsson  <jas@extundo.com>
65553
65554         * m4/socklen.m4: New file.
65555
65556 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * modules/utimens (Files): Add m4/utimbuf.m4, since
65559         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65560         Reported by Sergey Poznyakoff.
65561
65562 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65563
65564         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65565         definitions, since that's the preferred style in glibc.
65566         Fix a minor spacing issue, and update copyright notice to match
65567         glibc's.
65568
65569 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65570
65571         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65572
65573 2005-09-06  Simon Josefsson  <jas@extundo.com>
65574
65575         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65576         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65577
65578 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65579
65580         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65581         warning.
65582
65583 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65584
65585         * config/srclist.txt: Add glibc bug 1302.
65586
65587 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65588
65589         Change bitset word type from unsigned int to unsigned long int,
65590         as this has better performance on typical 64-bit hosts.
65591         Port bitset code to hosts with unusual word sizes.
65592         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65593         (build_collating_symbol):
65594         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65595         argument is a bitset.  This is merely a style issue, but it makes
65596         it clearer that an entire array is expected.
65597         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65598         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65599         Port to the case where bitset_word is not the same as unsigned int.
65600         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65601         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65602         Likewise.
65603         * lib/regexec.c (check_dst_limits_calc_pos_1,
65604         check_subexp_matching_top):
65605         (build_trtable, group_nodes_into_DFAstates):
65606         Likewise.
65607         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65608         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65609         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65610         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65611         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65612         * lib/regcomp.c (optimize_subexps, lower_subexp):
65613         Work even if bitset_word has holes in its bitwise representation.
65614         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65615         * lib/regexec.c (check_dst_limits_calc_pos_1,
65616         check_subexp_matching_top):
65617         Likewise.
65618         * lib/regex_internal.c (re_string_reconstruct):
65619         Don't assume UCHAR_MAX == 255.
65620         * lib/regex_internal.h (bitset_set_all): Likewise.
65621         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65622         All uses changed.
65623         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65624         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65625         All uses changed.
65626         (BITSET_WORD_MAX): New macro.
65627         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65628         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65629         (bitset_empty, bitset_copy):
65630         Prefer sizeof (bitset) to multiplying it out ourselves.
65631         (bitset_not_merge): Remove; unused.
65632         (bitset_contain): Return bool, not unsigned int with one bit on.
65633         All callers changed.
65634         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65635         alignment than re_node_set; do this by defining a new internal
65636         type struct dests_alloc and using it to allocate memory.
65637
65638 2005-09-05  Bruno Haible  <bruno@clisp.org>
65639
65640         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65641         links.
65642
65643 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65644
65645         * modules/size_max (Makefile.am): Add size_max.h
65646
65647 2005-09-04  Derek Price  <derek@ximbiot.com>
65648
65649         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65650
65651 2005-09-03  Simon Josefsson  <jas@extundo.com>
65652
65653         * gnulib-tool: Fix typo.
65654
65655 2005-09-03  Simon Josefsson  <jas@extundo.com>
65656
65657         * config/srclist.txt: Add glibc bug 1293.
65658
65659 2005-09-03  Derek Price  <derek@ximbiot.com>
65660
65661         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65662         From Larry Jones <lawrence.jones@ugs.com>.
65663
65664 2005-09-02  Simon Josefsson  <jas@extundo.com>
65665
65666         * modules/socklen: New file.
65667
65668 2005-09-02  Simon Josefsson  <jas@extundo.com>
65669
65670         * modules/havelib: New module.
65671
65672         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65673         Use havelib.
65674
65675 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         Check for arithmetic overflow when calculating sizes, to prevent
65678         some buffer-overflow issues.  These patches are conservative, in the
65679         sense that when I couldn't determine whether an overflow was possible,
65680         I inserted a run-time check.
65681         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65682         macros.
65683         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65684         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65685         (re_xnrealloc, re_x2nrealloc): New inline functions.
65686         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65687         parse_bracket_exp):
65688         (build_equiv_class, build_charclass): Check for arithmetic overflow
65689         in size expression calculations.
65690         * lib/regex_internal.c (re_string_realloc_buffers):
65691         (build_wcs_upper_buffer, re_node_set_add_intersect):
65692         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65693         (re_dfa_add_node, register_state): Likewise.
65694         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65695         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65696         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65697         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65698
65699 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65702         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65703
65704 2005-09-02  Bruno Haible  <bruno@clisp.org>
65705
65706         Support for lib vs. lib64 distinction on biarch platforms.
65707         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65708         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65709         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65710
65711 2005-09-02  Bruno Haible  <bruno@clisp.org>
65712
65713         * gnulib-tool (import): In the other first-use case, provide defaults
65714         as well.
65715
65716 2005-09-02  Bruno Haible  <bruno@clisp.org>
65717
65718         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65719         patches not yet found in the latest gettext release.
65720
65721 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65722
65723         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65724         to avoid a collision with bits/local_lim.h in glibc.
65725         All uses changed.  Problem reported by Dmitry V. Levin in
65726         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65727
65728         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65729         bugs in int versus size_t comparisons.
65730         (re_string_context_at): Fix bug where the code assumed that
65731         Idx is signed.
65732
65733         Use bool where appropriate.
65734         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65735         All callers changed.
65736         (calc_eclosure_iter): Likewise, for ROOT arg.
65737         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65738         (build_charclass_op): Likewise, for NON_MATCH arg.
65739         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65740         (re_string_construct_common): Likewise, for ICASE arg.
65741         * lib/regexec.c (re_search_2_stub, re_search_stub):
65742         Likewise, for RET_LEN arg.
65743         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65744         (set_regs): Likewise, for FL_BACKTRACK arg.
65745         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65746         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65747         (calc_eclosure_iter, parse_bracket_exp):
65748         Use bool for internal variables that are booleans.
65749         * lib/regexec.c (re_search_internal, check_matching,
65750         proceed_next_node):
65751         (set_regs, build_sifted_states, sift_states_bkref):
65752         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65753         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65754         (find_collation_sequence_value):
65755         Likewise.
65756         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65757         (re_node_set_compare):
65758         Return bool, not int. All callers changed.
65759         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65760         (build_trtable, check_node_accept): Likewise.
65761         * lib/regex_internal.h: Include stdbool.h.
65762
65763         Fix bugs uncovered when converting to bool.
65764         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65765         failure instead of charging ahead blindly.
65766         * lib/regex_internal.c (register_state): Likewise.
65767         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65768         for freeing internal storage.
65769         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65770         bitset pieces used as boolean, to avoid undefined behavior
65771         on hosts that do int overflow checking.
65772
65773 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65774
65775         * config/srclist.txt: Add glibc bugs 1285-1287.
65776
65777 2005-09-01  Jim Meyering  <jim@meyering.net>
65778
65779         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65780         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65781         Require gl_STAT_MACROS, too.
65782
65783 2005-09-01  Bruno Haible  <bruno@clisp.org>
65784
65785         * gnulib-tool (import): In the first-use case, provide defaults.
65786
65787 2005-09-01  Bruno Haible  <bruno@clisp.org>
65788
65789         * gnulib-tool (func_import): Remove the .tmp files.
65790
65791 2005-09-01  Bruno Haible  <bruno@clisp.org>
65792
65793         * gnulib-tool (func_import): Fix handling of symbolic links.
65794
65795 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65798         old glibc regex code mishandles strings longer than 2**31 bytes.
65799         This patch fixes this when the regex code is used in gnulib
65800         (i.e., outside glibc).
65801
65802         This patch should not affect the use of the regex code inside
65803         glibc.  No doubt this problem also needs to be handled for glibc
65804         as well, but the result will be an incompatible change to the
65805         glibc ABI, and the old ABI will have to be supported too.  That
65806         can be the the subject for another patch.
65807
65808         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65809         governing whether the rest of this patch is active.  By default,
65810         the macro is disabled and the patch has no effect.
65811         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65812         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65813         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65814         (re_match_2, re_set_registers): Use the new types.
65815         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65816         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65817         New macros.
65818         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65819         (re_string_context_at, bin_tree_t, re_dfastate_t):
65820         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65821         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65822         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65823         (re_string_char_size_at, re_string_wchar_at):
65824         (re_string_elem_size_at):
65825         Use the new types and macros to port to 64-bit hosts.
65826         Use unsigned types for internal values, so that the code
65827         mostly works even for arrays larger than SSIZE_MAX.
65828         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65829         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65830         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65831         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65832         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65833         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65834         (calc_inveclosure, parse_dup_op, build_range_exp):
65835         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65836         (fetch_number, create_token_tree, mark_opt_subexp):
65837         Likewise.
65838         * lib/regex_internal.c (re_string_construct_common,
65839         create_ci_newstate):
65840         (create_cd_newstate, re_string_allocate, re_string_construct):
65841         (re_string_realloc_buffers, build_wcs_upper_buffer):
65842         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65843         (re_string_reconstruct, re_string_peek_byte_case):
65844         (re_string_fetch_byte_case, re_string_context_at):
65845         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65846         (re_node_set_init_copy, re_node_set_add_intersect):
65847         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65848         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65849         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65850         (re_acquire_state, re_acquire_state_context, register_state):
65851         Likewise.
65852         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65853         search_cur_bkref_entry):
65854         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65855         (re_search_internal, re_search_2_stub, re_search_stub)
65856         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65857         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65858         (update_cur_sifted_state, check_dst_limits):
65859         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65860         (check_subexp_limits, sift_states_bkref, merge_state_array):
65861         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65862         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65863         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65864         (expand_bkref_cache, check_node_accept_bytes):
65865         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65866         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65867         (acquire_init_state_context, check_halt_node_context):
65868         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65869         (sift_states_backward, clean_state_log_if_needed):
65870         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65871         (find_recover_state, transit_state_sb, transit_state_mb):
65872         (transit_state_bkref, build_trtable, match_ctx_clean):
65873         Likewise.
65874         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65875         to work around an assumption that REG_MISSING is negative.
65876
65877         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65878         (seek_collating_symbol_entry) [defined _LIBC]:
65879         (lookup_collation_sequence_value) [defined _LIBC]:
65880         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65881         Use prototypes rather than old-style function definitions.
65882         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65883         (transit_state_sb) [0]:
65884         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65885
65886         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65887         rm_eo.
65888
65889         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65890         (optimize_subexps, lower_subexp):
65891         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65892         since the signed shift might overflow.  Use 1u<<31 instead.
65893         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65894         Likewise.
65895         * lib/regexec.c (check_dst_limits_calc_pos_1,
65896         check_subexp_matching_top): Likewise.
65897
65898         * lib/regcomp.c (optimize_subexps, lower_subexp):
65899         Use CHAR_BIT rather than 8, for clarity.
65900         * lib/regexec.c (check_dst_limits_calc_pos_1):
65901         (check_subexp_matching_top): Likewise.
65902         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65903         have to worry about portability issues when shifting it left.
65904         Remove no-longer-needed test for table_size > 0.
65905         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65906         in a word, as the resulting behavior is undefined.
65907         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65908         in one case, a <= should have been an <, and in another case the
65909         whole test was missing.
65910         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65911         the standard name CHAR_BIT.
65912         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65913         this is not true on one's complement and signed-magnitude hosts.
65914
65915         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65916         next_last_offset.
65917         (struct re_dfa_t): Remove unused member states_alloc.
65918         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65919
65920 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65923         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65924         and large-file glibc and in 32-bit large-file Solaris.
65925
65926 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65927
65928         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65929         lengths fit in regoff_t; this isn't true if regoff_t is the same
65930         width as size_t.
65931         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65932         (= START + RANGE) instead of RANGE.  This avoids overflow
65933         problems when regoff_t is the same width as size_t.
65934         All callers changed.
65935         (re_search_2_stub): Check for overflow when adding the
65936         sizes of the two strings.
65937         (re_search_stub): Check for overflow when adding START
65938         to RANGE; if it occurs, substitute the extreme value.
65939
65940 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65941
65942         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65943
65944 2005-08-31  Jim Meyering  <jim@meyering.net>
65945
65946         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65947         a pointer-to-const.
65948         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65949         (register_state): Likewise.
65950         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65951         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65952         (group_nodes_into_DFAstates): Likewise.
65953
65954 2005-08-31  Jim Meyering  <jim@meyering.net>
65955
65956         * check-module: Add a FIXME comment.
65957
65958 2005-08-31  Eric Blake  <ebb9@byu.net>
65959
65960         * modules/unistd-safer (Files): Add unistd--.h.
65961         * modules/stdio-safer (Files): Add stdio--.h.
65962
65963 2005-08-31  Derek Price  <derek@ximbiot.com>
65964
65965         * lib/getdelim.c (getdelim): Return EOF on EOF.
65966         Reported by Larry Jones <lawrence.jones@ugs.com>.
65967
65968 2005-08-31  Bruno Haible  <bruno@clisp.org>
65969
65970         Avoid unnecessary diffs in the generated lib/Makefile.am.
65971         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65972         the generated files.
65973         (func_import): Don't set cmd.
65974
65975 2005-08-31  Bruno Haible  <bruno@clisp.org>
65976
65977         * lib/strstr.c: Include <stddef.h>, for NULL.
65978         * lib/strcasestr.c: Likewise.
65979         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65980
65981 2005-08-31  Bruno Haible  <bruno@clisp.org>
65982
65983         * gnulib-tool: New option --macro-prefix.
65984         (func_import): Use macro_prefix.
65985         (import): Handle option --macro-prefix.
65986
65987 2005-08-31  Bruno Haible  <bruno@clisp.org>
65988
65989         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65990         Also use new variables cached_lgpl, cached_libtool.
65991
65992 2005-08-31  Bruno Haible  <bruno@clisp.org>
65993
65994         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65995         always instantiating them.
65996
65997 2005-08-31  Bruno Haible  <bruno@clisp.org>
65998
65999         * gnulib-tool (func_import): Read the previous cached settings
66000         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66001         earlier added by gnulib but are now dropped. Warn when a gnulib file
66002         overwrites a non-gnulib file.
66003
66004 2005-08-31  Bruno Haible  <bruno@clisp.org>
66005
66006         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66007         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66008         projects that don't keep autogenerated files in CVS. Put into
66009         actioncmd only the specified modules, not the transitive closure.
66010
66011 2005-08-31  Bruno Haible  <bruno@clisp.org>
66012
66013         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66014         Create directories that shall be filled.
66015         (import): Don't look for gl_* macros in configure.ac. Recurse across
66016         all directories containing a gnulib-cache.m4 files, if meaningful.
66017
66018 2005-08-31  Bruno Haible  <bruno@clisp.org>
66019
66020         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66021         (import): Set seen_libtool when we see gl_LIBTOOL.
66022
66023 2005-08-31  Bruno Haible  <bruno@clisp.org>
66024
66025         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66026         declaration macro definitions from generated gnulib.m4.
66027
66028 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66029
66030         * lib/iconvme.h: Add prototype for iconv_alloc.
66031
66032 2005-08-29  Simon Josefsson  <jas@extundo.com>
66033
66034         * lib/iconvme.c: Fix errno.
66035
66036 2005-08-29  Bruno Haible  <bruno@clisp.org>
66037
66038         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66039         that it works when the directory contains spaces.
66040
66041 2005-08-29  Bruno Haible  <bruno@clisp.org>
66042
66043         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66044
66045 2005-08-29  Bruno Haible  <bruno@clisp.org>
66046
66047         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66048         Emit more advice.
66049
66050 2005-08-29  Bruno Haible  <bruno@clisp.org>
66051         and Stepan Kasal  <kasal@ucw.cz>
66052
66053         * check-module: If more parameters are given, check each of them
66054         separately; add more exceptions, as noted by Jim Meyering.
66055         (check_module): New procedure.
66056         (%exempt_header): Now contains all exceptions.
66057
66058 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66059
66060         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66061
66062 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66063
66064         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66065
66066 2005-08-28  Bruno Haible  <bruno@clisp.org>
66067
66068         * m4/gnulib-tool.m4: New file.
66069
66070 2005-08-27  Jim Meyering  <jim@meyering.net>
66071
66072         * modules/unistd-safer (Files): Add pipe-safer.c.
66073         * modules/fcntl-safer (Files): Add creat-safer.c.
66074
66075 2005-08-27  Jim Meyering  <jim@meyering.net>
66076
66077         * m4/stdlib-safer.m4: New file.  From coreutils.
66078         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66079         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66080         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66081         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66082         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66083
66084 2005-08-27  Jim Meyering  <jim@meyering.net>
66085
66086         * lib/fopen-safer.c: Merge minor changes from coreutils.
66087         * lib/dup-safer.c: Likewise.
66088         * lib/fd-safer.c: Likewise.
66089
66090         Merge from coreutils.
66091         * lib/stdio--.h: New file.
66092         * lib/stdlib--.h: New file.
66093         * lib/mkstemp-safer.c: New file.
66094
66095         GNU tar needs these.
66096         * lib/pipe-safer.c: New file.
66097         * lib/creat-safer.c: New file.
66098         * lib/fcntl--.h (creat): Define to creat_safer.
66099         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66100         * lib/unistd--.h (pipe): Define to pipe_safer.
66101         * lib/unistd-safer.h: Declare pipe_safer.
66102
66103 2005-08-26  Simon Josefsson  <jas@extundo.com>
66104
66105         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66106         Haible <bruno@clisp.org>.
66107
66108 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66109
66110         * lib/regex_internal.h: Remove all references to
66111         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66112         or better.
66113         (bitset_not, bitset_merge, bitset_not_merge):
66114         (bitset_mask, re_string_allocate, re_string_construct):
66115         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66116         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66117         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66118         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66119         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66120         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66121         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66122         (re_acquire_state_context):
66123         Remove unnecessary forward decls.
66124         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66125         Put __attribute at function definition,
66126         now that the function decl has been removed.
66127         * lib/regex_internal.c (re_string_peek_byte_case):
66128         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66129         Likewise.
66130
66131 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66132
66133         * m4/regex.m4: Add AC_PREREQ(2.50).
66134         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66135
66136 2005-08-25  Simon Josefsson  <jas@extundo.com>
66137
66138         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66139         __fsetlocking.
66140
66141 2005-08-25  Simon Josefsson  <jas@extundo.com>
66142
66143         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66144         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66145         GLIBC specific code.
66146
66147 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66148
66149         Make regex safe for g++.  This fixes one real bug (an "err"
66150         that should have been "*err").  g++ problem reported by
66151         Sam Steingold.
66152         * lib/regex_internal.h (re_calloc): New macro, consistent with
66153         re_malloc etc.  All callers of calloc changed to use re_calloc.
66154         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66155         not int.  All callers changed.
66156         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66157         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66158         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66159         (find_recover_state): Change "err" to "*err"; this fixes what
66160         appears to be a real bug.
66161         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66162         versus int.
66163
66164 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66165
66166         * modules/regex (Depends-on): Add malloc, since the code
66167         assumes that !malloc(0) means failure.
66168
66169 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66170
66171         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66172
66173         alloca modernization/simplification for regex.
66174         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66175         needs to be at the start of the file, and can be moved into
66176         regex_internal.h and simplified.
66177         * lib/regex_internal.h: Include <alloca.h>.
66178         (__libc_use_alloca) [!defined _LIBC]: New macro.
66179         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66180         now works outside glibc.
66181
66182 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66183
66184         * config/srclist.txt: Add glibc bugs 1241, 1245.
66185
66186 2005-08-25  Jim Meyering  <jim@meyering.net>
66187
66188         * lib/open-safer.c: Include <config.h>.
66189         Otherwise, we'd lose LARGEFILE support in any file using
66190         e.g. "fcntl--.h"
66191
66192 2005-08-25  Bruno Haible  <bruno@clisp.org>
66193
66194         * m4/minmax.m4: Require autoconf 2.52.
66195         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66196         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66197         alternatives of translit over the alphabet.
66198         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66199
66200 2005-08-24  Simon Josefsson  <jas@extundo.com>
66201
66202         * tests/test-getpass.c: New file.
66203
66204 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66205
66206         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66207         for GNU regex features.
66208
66209 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66210
66211         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66212         * lib/regex.h (regerror): Likewise.
66213
66214         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66215         requires this.  (The code never needed it.)
66216
66217         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66218         All uses of recently-renamed identifiers changed to use the new,
66219         POSIX-compliant names.  The code will build and run just fine
66220         without these changes, but it's better to eat our own dog food
66221         and use the standard-conforming names.
66222
66223         * lib/regex.h: Fix a multitude of POSIX name space violations.
66224         These changes have an effect only for programs that define
66225         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66226         do not change anything for programs compiled in the normal way.
66227         Also, there is no effect on the ABI.
66228
66229         (_REGEX_SOURCE): New macro.
66230         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66231         defined and _GNU_SOURCE is not; this fixes a name space violation.
66232
66233         Rename the following macros to obey POSIX requirements.
66234         The old names are still visible as macros if _REGEX_SOURCE is defined.
66235         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66236         RE_BACKSLASH_ESCAPE_IN_LISTS.
66237         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66238         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66239         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66240         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66241         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66242         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66243         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66244         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66245         (REG_INTERVALS): renamed from RE_INTERVALS.
66246         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66247         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66248         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66249         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66250         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66251         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66252         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66253         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66254         RE_UNMATCHED_RIGHT_PAREN_ORD.
66255         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66256         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66257         (REG_DEBUG): renamed from RE_DEBUG.
66258         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66259         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66260         unusual, since we can't clash with the POSIX REG_ICASE.
66261         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66262         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66263         (REG_NO_SUB): renamed from RE_NO_SUB.
66264         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66265         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66266         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66267         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66268         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66269         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66270         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66271         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66272         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66273         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66274         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66275         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66276         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66277         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66278         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66279         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66280         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66281         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66282         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66283         (REG_FIXED): Renamed from REGS_FIXED.
66284         (REG_NREGS): Renamed from RE_NREGS.
66285
66286         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66287         of other REG_* macros, since POSIX says the user is allowed to
66288         #undef these macros selectively.
66289
66290         (reg_errcode_t): Update comment stating what other tables need
66291         to be consistent.
66292
66293         Rename the following enum values to obey POSIX requirements.
66294         The old names are still visible as macros.
66295         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66296         is not defined, since GNU is supposed to be a superset of POSIX as
66297         much as possible, and since we want reg_errcode_t to be a signed
66298         type for implementation consistency.
66299         (_REG_NOERROR): Renamed from REG_NOERROR.
66300         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66301         (_REG_BADPAT): Renamed from REG_BADPAT.
66302         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66303         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66304         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66305         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66306         (_REG_EBRACK): Renamed from REG_EBRACK.
66307         (_REG_EPAREN): Renamed from REG_EPAREN.
66308         (_REG_EBRACE): Renamed from REG_EBRACE.
66309         (_REG_BADBR): Renamed from REG_BADBR.
66310         (_REG_ERANGE): Renamed from REG_ERANGE.
66311         (_REG_ESPACE): Renamed from REG_ESPACE.
66312         (_REG_BADRPT): Renamed from REG_BADRPT.
66313         (_REG_EEND): Renamed from REG_EEND.
66314         (_REG_ESIZE): Renamed from REG_ESIZE.
66315         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66316         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66317         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66318         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66319         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66320
66321         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66322         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66323         changed.  But support the old name if the new one is not defined
66324         and if _REGEX_SOURCE.
66325
66326         Change the following member names in struct re_pattern_buffer.
66327         The old names are still supported if !_REGEX_SOURCE.
66328         The new names are always supported, regardless of _REGEX_SOURCE.
66329         (re_buffer): Renamed from buffer.
66330         (re_allocated): Renamed from allocated.
66331         (re_used): Renamed from used.
66332         (re_syntax): Renamed from syntax.
66333         (re_fastmap): Renamed from fastmap.
66334         (re_translate): Renamed from translate.
66335         (re_can_be_null): Renamed from can_be_null.
66336         (re_regs_allocated): Renamed from regs_allocated.
66337         (re_fastmap_accurate): Renamed from fastmap_accurate.
66338         (re_no_sub): Renamed from no_sub.
66339         (re_not_bol): Renamed from not_bol.
66340         (re_not_eol): Renamed from not_eol.
66341         (re_newline_anchor): Renamed from newline_anchor.
66342
66343         Change the following member names in struct re_registers.
66344         The old names are still supported if !_REGEX_SOURCE.
66345         The new names are always supported, regardless of _REGEX_SOURCE.
66346         (rm_num_regs): Renamed from num_regs.
66347         (rm_start): Renamed from start.
66348         (rm_end): Renamed from end.
66349
66350         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66351         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66352         Prepend __ to parameter names.
66353
66354         Undo yesterday's changes.
66355
66356 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66357
66358         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66359         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66360         lib/regex.c.
66361
66362 2005-08-24  Jim Meyering  <jim@meyering.net>
66363
66364         Sync from coreutils.
66365         * m4/fcntl-safer.m4: New file.
66366
66367         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66368         and object files for this module.
66369
66370 2005-08-24  Jim Meyering  <jim@meyering.net>
66371
66372         Sync from coreutils.
66373         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66374
66375 2005-08-24  Jim Meyering  <jim@meyering.net>
66376
66377         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66378         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66379
66380 2005-08-24  Jim Meyering  <jim@meyering.net>
66381
66382         * modules/fcntl-safer: New module.
66383         * modules/fts (Depends-on): Add fcntl-safer.
66384         * MODULES.html.sh (File descriptor based Input/Output):
66385         Add fcntl-safer.
66386
66387 2005-08-24  Bruno Haible  <bruno@clisp.org>
66388
66389         Support for unit test modules.
66390         * modules/README: Mention tests modules.
66391         * modules/TEMPLATE-TESTS: New file.
66392         * gnulib-tool: New options --extract-tests-module, --with-tests and
66393         --tests-base (unused for the moment).
66394         (testsbase, inctests): New variables.
66395         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66396         (func_verify_module): Exclude TEMPLATE-TESTS.
66397         (func_verify_nontests_module, func_verify_tests_module): New functions.
66398         (func_get_dependencies): Add implicit dependency for tests modules.
66399         (func_get_tests_module): New function.
66400         (func_modules_transitive_closure): When --with-tests was specified,
66401         include the unit tests as well, unless explicitly avoided.
66402         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66403         (func_emit_tests_Makefile_am): New function.
66404         (func_create_testdir): When --with-tests was specified, emit a
66405         tests/ directory.
66406         * MODULES.html.sh (Future developments): Update.
66407
66408 2005-08-24  Bruno Haible  <bruno@clisp.org>
66409
66410         * modules/tls-tests: New file.
66411         * tests/test-tls.c: New file, from GNU gettext.
66412
66413 2005-08-24  Bruno Haible  <bruno@clisp.org>
66414
66415         * modules/lock-tests: New file.
66416         * tests/test-lock.c: New file, from GNU gettext.
66417
66418 2005-08-24  Bruno Haible  <bruno@clisp.org>
66419
66420         * lib/lock.h: Add multiple inclusion guard.
66421         * lib/tls.h: Add multiple inclusion guard.
66422
66423 2005-08-24  Bruno Haible  <bruno@clisp.org>
66424
66425         * gnulib-tool: Add support for the --aux-dir option to
66426         --create-testdir, --create-megatestdir, --test, --megatest.
66427         (func_create_testdir, func_create_megatestdir): Optionally emit a
66428         AC_CONFIG_AUX_DIR directive.
66429         (create-testdir, create-megatestdir, test, megatest): Provide a
66430         default value for $auxdir.
66431
66432 2005-08-24  Bruno Haible  <bruno@clisp.org>
66433
66434         * gnulib-tool (import): Use compound statement instead of subshell
66435         where possible.
66436
66437 2005-08-24  Bruno Haible  <bruno@clisp.org>
66438
66439         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66440
66441 2005-08-24  Bruno Haible  <bruno@clisp.org>
66442
66443         * gnulib-tool (func_version): Update.
66444
66445 2005-08-24  Bruno Haible  <bruno@clisp.org>
66446
66447         * gnulib-tool (func_import, func_create_testdir,
66448         func_create_megatestdir): Quote all autoconf macro arguments.
66449
66450 2005-08-24  Bruno Haible  <bruno@clisp.org>
66451
66452         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66453         option --force, because --force causes the aclocal.m4 of each
66454         subdirectory to be newer than the corresponding config.h.in.
66455
66456 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66457
66458         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66459         All contents moved to gl_REGEX.
66460         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66461         assume that it does.
66462
66463 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66464
66465         * lib/regex.h (REG_NOSYS)
66466         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66467         Define, since POSIX requires it as of 2001.
66468         (_REG_ENOSYS)
66469         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66470         New private symbol, used to keep the enum signed in all cases.
66471         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66472         Youngman in
66473         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66474
66475         * lib/regex_internal.c (re_string_skip_chars, register_state):
66476         (calc_state_hash):
66477         Remove forward decls; no longer needed now that we use prototypes.
66478         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66479         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66480         (clean_state_log_if_needed): Likewise.
66481
66482 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66483
66484         * config/srclist.txt: Add glibc bugs 1231-1233.
66485
66486 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66487
66488         Fix problems reported by Sam Steingold in
66489         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66490         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66491         assumed that reg_errcode_t is a signed type, which is not
66492         necessarily true if _XOPEN_SOURCE is not defined.
66493         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66494         since some compilers warn about it otherwise.
66495
66496 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66497
66498         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66499         (init_word_char, create_initial_state, duplicate_node_closure):
66500         (fetch_token, peek_token_bracket, build_range_exp):
66501         (build_collating_symbol): Remove forward decls; no longer needed
66502         now that we use prototypes.
66503
66504         * lib/regcomp.c:
66505         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66506         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66507         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66508         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66509         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66510         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66511         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66512         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66513         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66514         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66515         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66516         (build_charclass, build_charclass_op, fetch_number, create_tree):
66517         (create_token_tree, mark_opt_subexp, duplicate_tree):
66518         Use prototypes rather than old-style definitions.
66519
66520         * lib/regex_internal.c:
66521         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66522         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66523         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66524         (re_string_reconstruct, re_string_peek_byte_case):
66525         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66526         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66527         (re_node_set_init_copy, re_node_set_add_intersect):
66528         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66529         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66530         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66531         (re_acquire_state, re_acquire_state_context, register_state):
66532         (create_ci_newstate, create_cd_newstate, free_state):
66533         Likewise.
66534         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66535         re_search_2):
66536         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66537         (re_search_internal, prune_impossible_nodes):
66538         (acquire_init_state_context, check_matching, static):
66539         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66540         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66541         (update_regs, sift_states_backward, build_sifted_states):
66542         (clean_state_log_if_needed, merge_state_array):
66543         (update_cur_sifted_state, add_epsilon_src_nodes):
66544         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66545         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66546         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66547         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66548         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66549         (check_arrival, check_arrival_add_next_nodes):
66550         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66551         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66552         (check_node_accept_bytes, check_node_accept, extend_buffers):
66553         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66554         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66555         (sift_ctx_init):
66556         Likewise.
66557
66558         * lib/regex_internal.h:
66559         (re_string_allocate, re_string_construct, re_string_reconstruct):
66560         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66561         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66562         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66563         (re_string_context_at, re_string_peek_byte_case):
66564         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66565         is defined, since we now use prototypes always.
66566
66567         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66568         C89 or better.  All uses removed.
66569
66570 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         * config/srclist.txt: Add glibc bugs 1220-1227.
66573
66574 2005-08-20  Jim Meyering  <jim@meyering.net>
66575
66576         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66577         of unused local, dfa.
66578
66579 2005-08-20  Bruno Haible  <bruno@clisp.org>
66580
66581         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66582
66583 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66586         (re_node_set_insert_last, re_dfa_add_node):
66587         Rename local variables to avoid GCC shadowing warnings.
66588
66589 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66590
66591         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66592         [defined lint]: Suppress bogus uninitialized-variable warnings.
66593
66594         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66595         and let the caller return REG_ESPACE if out of space.  This
66596         removes an uninitialied-variable warning with GCC 4.0.1, and also
66597         avoids taking the address of a local variable.  All callers
66598         changed.
66599
66600 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66601
66602         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66603         $LIBCSRC/posix/regexec.c.
66604         Add glibc bug 1217 for regcomp.c.
66605
66606 2005-08-19  Jim Meyering  <jim@meyering.net>
66607
66608         * lib/regexec.c (proceed_next_node): Redo local variables to
66609         avoid GCC shadowing warnings.
66610
66611 2005-08-18  Bruno Haible  <bruno@clisp.org>
66612
66613         * lib/strstr.c (strstr): Fix return value in multibyte case.
66614         * lib/strcasestr.c (strcasestr): Likewise.
66615
66616 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66619
66620 2005-08-17  Jim Meyering  <jim@meyering.net>
66621
66622         Make the %s format (seconds since the epoch) work for a negative
66623         number and when used with a zero-padded field width, e.g. %015s.
66624
66625         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66626         label so that it precedes the code to set `digits'.  Otherwise,
66627         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66628         print `00-22'.  Now, it prints `-0022', as it should.
66629
66630 2005-08-17  Bruno Haible  <bruno@clisp.org>
66631
66632         * modules/strstr (Files): Add m4/mbrtowc.m4.
66633         (Depends-on): Add mbuiter.
66634
66635 2005-08-17  Bruno Haible  <bruno@clisp.org>
66636
66637         * modules/strcasestr: New file.
66638         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66639         strcasestr.
66640
66641 2005-08-17  Bruno Haible  <bruno@clisp.org>
66642
66643         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66644
66645 2005-08-17  Bruno Haible  <bruno@clisp.org>
66646
66647         * modules/mbuiter: New file.
66648         * MODULES.html.sh (Extended multibyte and wide character utilities):
66649         Add mbuiter.
66650
66651 2005-08-17  Bruno Haible  <bruno@clisp.org>
66652
66653         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66654         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66655
66656 2005-08-17  Bruno Haible  <bruno@clisp.org>
66657
66658         * m4/strcasestr.m4: New file.
66659
66660 2005-08-17  Bruno Haible  <bruno@clisp.org>
66661
66662         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66663         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66664
66665 2005-08-17  Bruno Haible  <bruno@clisp.org>
66666
66667         * lib/strcasestr.h: New file.
66668         * lib/strcasestr.c: New file.
66669
66670 2005-08-17  Bruno Haible  <bruno@clisp.org>
66671
66672         * lib/strcasecmp.c: Use mbuiter.h.
66673
66674 2005-08-17  Bruno Haible  <bruno@clisp.org>
66675
66676         * lib/mbuiter.h: New file.
66677
66678 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66679
66680         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66681         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66682         and gl_GETOPT are both invoked via different paths (as happens
66683         with GNU tar CVS because it uses both argp and getopt), the former
66684         wins.
66685
66686 2005-08-16  Bruno Haible  <bruno@clisp.org>
66687
66688         * modules/tls: New file.
66689         * MODULES.html.sh (Multithreading): Add tls.
66690
66691 2005-08-16  Bruno Haible  <bruno@clisp.org>
66692
66693         * modules/strnlen1: New file.
66694         * MODULES.html.sh (String handling): Add strnlen1.
66695
66696 2005-08-16  Bruno Haible  <bruno@clisp.org>
66697
66698         * modules/strcase (Files): Add m4/mbrtowc.m4.
66699         (Depends-on): Add strnlen1, mbchar.
66700
66701 2005-08-16  Bruno Haible  <bruno@clisp.org>
66702
66703         * modules/mbiter: New file.
66704         * MODULES.html.sh (Extended multibyte and wide character utilities):
66705         Add mbiter.
66706
66707 2005-08-16  Bruno Haible  <bruno@clisp.org>
66708
66709         * modules/mbfile: New file.
66710         * MODULES.html.sh (Extended multibyte and wide character utilities):
66711         Add mbfile.
66712
66713 2005-08-16  Bruno Haible  <bruno@clisp.org>
66714
66715         * modules/mbchar: New file.
66716         * MODULES.html.sh (Extended multibyte and wide character utilities):
66717         New section.
66718
66719 2005-08-16  Bruno Haible  <bruno@clisp.org>
66720
66721         * m4/tls.m4: New file, from GNU gettext.
66722
66723 2005-08-16  Bruno Haible  <bruno@clisp.org>
66724
66725         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66726         always.
66727         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66728
66729 2005-08-16  Bruno Haible  <bruno@clisp.org>
66730
66731         * m4/mbiter.m4: New file.
66732
66733 2005-08-16  Bruno Haible  <bruno@clisp.org>
66734
66735         * m4/mbfile.m4: New file.
66736
66737 2005-08-16  Bruno Haible  <bruno@clisp.org>
66738
66739         * m4/mbchar.m4: New file.
66740
66741 2005-08-16  Bruno Haible  <bruno@clisp.org>
66742
66743         * lib/tls.h: New file, from GNU gettext.
66744         * lib/tls.c: New file, from GNU gettext.
66745
66746 2005-08-16  Bruno Haible  <bruno@clisp.org>
66747
66748         * lib/strnlen1.h: New file.
66749         * lib/strnlen1.c: New file.
66750
66751 2005-08-16  Bruno Haible  <bruno@clisp.org>
66752
66753         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66754         (mbi_init): Update.
66755         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66756         NUL byte, not after it.
66757
66758 2005-08-16  Bruno Haible  <bruno@clisp.org>
66759
66760         * lib/strcase.h (strcasecmp): Add note in comments.
66761         * lib/strncasecmp.c: Use code from strcasecmp.c.
66762         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66763         (strcasecmp): Work correctly in multibyte locales.
66764
66765 2005-08-16  Bruno Haible  <bruno@clisp.org>
66766
66767         * lib/mbiter.h: New file.
66768
66769 2005-08-16  Bruno Haible  <bruno@clisp.org>
66770
66771         * lib/mbfile.h: New file.
66772
66773 2005-08-16  Bruno Haible  <bruno@clisp.org>
66774
66775         * lib/mbchar.h: New file.
66776         * lib/mbchar.c: New file.
66777
66778 2005-08-16  Bruno Haible  <bruno@clisp.org>
66779
66780         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66781         the valid ones. Makes the comparison operations transitive:
66782         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66783         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66784
66785 2005-08-15  Simon Josefsson  <jas@extundo.com>
66786
66787         * modules/ssize_t (License): Change to 'unlimited'.
66788
66789         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66790
66791 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66794         Add comments for each pending glibc patch.
66795
66796 2005-08-15  Bruno Haible  <bruno@clisp.org>
66797
66798         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66799         __cplusplus is defined.
66800
66801 2005-08-14  Jim Meyering  <jim@meyering.net>
66802
66803         Sync from coreutils.
66804
66805         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66806         Use the hash-table-based cycle-detection code not just when
66807         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66808         Reported by James Youngman in
66809         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66810         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66811         FTS_TIGHT_CYCLE_CHECK.
66812         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66813         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66814         once again.
66815         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66816         * lib/fts.c (fd_safer): Remove decl.
66817         Include fcntl--.h rather than unistd-safer.h
66818         (fts_safe_changedir): Don't call fd_safer; no longer needed
66819         now that we include fcntl--.h.
66820
66821 2005-08-12  Simon Josefsson  <jas@extundo.com>
66822
66823         * modules/getndelim2: Use ssize_t module.
66824         * modules/getnline: Likewise.
66825         * modules/safe-read: Likewise.
66826         * modules/xreadlink: Likewise.
66827
66828         * modules/ssize_t: New file.
66829
66830 2005-08-12  Simon Josefsson  <jas@extundo.com>
66831
66832         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66833
66834 2005-08-12  Simon Josefsson  <jas@extundo.com>
66835
66836         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66837         ssize_t.
66838
66839 2005-08-12  Simon Josefsson  <jas@extundo.com>
66840
66841         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66842         readline, getdelim and check_version.
66843         (Support for systems lacking ISO C 99: Sizes of integer types):
66844         Add size_max.
66845
66846 2005-08-12  Bruno Haible  <bruno@clisp.org>
66847
66848         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66849
66850 2005-08-11  Simon Josefsson  <jas@extundo.com>
66851
66852         * modules/readline: New file.
66853
66854         * modules/strnlen (Files): Add strnlen.h.
66855
66856 2005-08-11  Simon Josefsson  <jas@extundo.com>
66857
66858         * m4/readline.m4: New file.
66859
66860 2005-08-11  Simon Josefsson  <jas@extundo.com>
66861
66862         * lib/readline.h, readline.c: New file.
66863
66864 2005-08-11  Simon Josefsson  <jas@extundo.com>
66865
66866         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66867         gl_AVOID.
66868
66869 2005-08-11  Bruno Haible  <bruno@clisp.org>
66870
66871         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66872
66873 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66874
66875         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66876
66877 2005-08-10  Simon Josefsson  <jas@extundo.com>
66878
66879         * tests/test-iconvme.c: New file.
66880
66881 2005-08-10  Simon Josefsson  <jas@extundo.com>
66882
66883         * m4/strnlen.m4: New file.
66884
66885         * m4/strndup.m4: Don't check for strnlen declaration, done in
66886         strnlen.m4.
66887
66888 2005-08-10  Simon Josefsson  <jas@extundo.com>
66889
66890         * lib/strndup.c: Use strnlen.h.
66891
66892         * lib/strnlen.h: New file.
66893
66894 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66895
66896         * README: Typos.
66897
66898 2005-08-02  Simon Josefsson  <jas@extundo.com>
66899
66900         * modules/readline: New file.
66901
66902 2005-08-02  Simon Josefsson  <jas@extundo.com>
66903
66904         * modules/getdelim: New file.
66905
66906         * modules/getline: Rewrite, don't use getndelim2.
66907
66908 2005-08-02  Simon Josefsson  <jas@extundo.com>
66909
66910         * m4/getline.m4: Separate out getdelim stuff into separate module.
66911
66912         * m4/getdelim.m4: New file.
66913
66914 2005-08-02  Simon Josefsson  <jas@extundo.com>
66915
66916         * lib/getline.h, getline.c: Rewrite.
66917
66918         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66919
66920 2005-07-31  Bruno Haible  <bruno@clisp.org>
66921
66922         * lib/lock.h (gl_lock_initializer): New macro.
66923         (gl_lock_define_initialized): Use it.
66924         (gl_rwlock_initializer): New macro.
66925         (gl_rwlock_define_initialized): Use it.
66926         (gl_recursive_lock_initializer): New macro.
66927         (gl_recursive_lock_define_initialized): Use it.
66928
66929 2005-07-30  Karl Berry  <karl@gnu.org>
66930
66931         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66932         Report from Ben Pfaff, regarding getopt.
66933
66934 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66937         normal way.
66938         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66939         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66940         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66941         (gl_GETOPT): Use the new macros.  Most of the implementation
66942         is moved to the new macros.  This is for programs like Emacs
66943         that don't want all the functionality of gl_GETOPT.
66944
66945 2005-07-26  Bruno Haible  <bruno@clisp.org>
66946
66947         * m4/lock.m4: Update from GNU gettext.
66948
66949 2005-07-26  Bruno Haible  <bruno@clisp.org>
66950
66951         * lib/lock.h: Update from GNU gettext.
66952         * lib/lock.c: Update from GNU gettext.
66953
66954 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66955
66956         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66957         obsolescent AC_TRY_RUN.  Include the default includes files, for
66958         'exit'.
66959
66960 2005-07-24  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/visibility: New file.
66963         * MODULES.html.sh (Misc): Add visibility.
66964
66965 2005-07-24  Bruno Haible  <bruno@clisp.org>
66966
66967         * m4/visibility.m4: New file.
66968
66969 2005-07-24  Bruno Haible  <bruno@clisp.org>
66970
66971         * doc/visibility.texi: New file.
66972
66973 2005-07-22  Bruno Haible  <bruno@clisp.org>
66974
66975         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66976         $(ALLOCA_H), redundant through BUILT_SOURCES.
66977         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66978         redundant through BUILT_SOURCES.
66979         * modules/byteswap (Makefile.am): Remove explicit dependency on
66980         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66981         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66982         $(FNMATCH_H), redundant through BUILT_SOURCES.
66983         * modules/getopt (Makefile.am): Remove explicit dependency on
66984         $(GETOPT_H), redundant through BUILT_SOURCES.
66985         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66986         redundant through BUILT_SOURCES.
66987         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66988         redundant through BUILT_SOURCES.
66989         * modules/stdbool (Makefile.am): Remove explicit dependency on
66990         $(STDBOOL_H), redundant through BUILT_SOURCES.
66991         * modules/stdint (Makefile.am): Remove explicit dependency on
66992         $(STDINT_H), redundant through BUILT_SOURCES.
66993         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66994         Remove explicit dependency on $(SYSEXITS_H).
66995         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66996
66997 2005-07-18  Simon Josefsson  <jas@extundo.com>
66998
66999         * lib/check-version.c (check_version): Accept identical versions too.
67000
67001 2005-07-18  Bruno Haible  <bruno@clisp.org>
67002
67003         * modules/lock: New file.
67004         * MODULES.html.sh (Multithreading): New section.
67005
67006 2005-07-18  Bruno Haible  <bruno@clisp.org>
67007
67008         * m4/lock.m4: New file, from GNU gettext.
67009
67010 2005-07-18  Bruno Haible  <bruno@clisp.org>
67011
67012         * lib/lock.h: New file, from GNU gettext.
67013         * lib/lock.c: New file, from GNU gettext.
67014
67015 2005-07-18  Bruno Haible  <bruno@clisp.org>
67016
67017         * lib/lock.h (gl_once_t): New type.
67018         (gl_once_define, gl_once): New macros.
67019         * lib/lock.c (fresh_once): New variable.
67020         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67021         functions.
67022
67023 2005-07-16  Simon Josefsson  <jas@extundo.com>
67024
67025         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67026         workaround, suggested by Bruno.
67027
67028 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67029
67030         * modules/xalloc (Depends-on): Add xalloc-die.
67031         * modules/xvasprintf (Depends-on): Add xalloc-die.
67032
67033 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67034
67035         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67036         with a minor change.
67037
67038 2005-07-15  Bruno Haible  <bruno@clisp.org>
67039
67040         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67041         When using lib/poll.c, define poll as rpl_poll.
67042
67043 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67044
67045         * modules/argp (Depends-on): Remove unlocked-io.
67046
67047 2005-07-14  Derek Price  <derek@ximbiot.com>
67048
67049         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67050         for glob symlink bug.
67051
67052 2005-07-14  Bruno Haible  <bruno@clisp.org>
67053
67054         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67055         Instead, test for *_unlocked function declarations directly.
67056
67057 2005-07-11  Simon Josefsson  <jas@extundo.com>
67058
67059         * modules/size_max: New file.
67060
67061         * modules/xsize: Depend on size_max module for size_max.m4.
67062
67063 2005-07-11  Simon Josefsson  <jas@extundo.com>
67064
67065         * lib/size_max.h: New file.
67066
67067 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67068
67069         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67070         copyright symbol and the year.
67071         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67072         (version_etc_va): Use parameterized copyright notice.
67073         Reword to conform to the current GNU coding standards.
67074
67075 2005-07-11  Karl Berry  <karl@gnu.org>
67076
67077         * doc/gnulib.texi (Quoting): new node.
67078         (Initial import): more info, from Patrice.
67079
67080 2005-07-11  Bruno Haible  <bruno@clisp.org>
67081
67082         * gnulib-tool (func_usage): Document option --avoid.
67083         (Command line options): Handle --avoid.
67084         (func_acceptable): New function.
67085         (func_modules_transitive_closure): Use it.
67086
67087 2005-07-11  Bruno Haible  <bruno@clisp.org>
67088
67089         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67090         Reported by Jim Meyering.
67091
67092 2005-07-10  Bruno Haible  <bruno@clisp.org>
67093
67094         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67095         Needed when size_t is smaller than 'unsigned int'.
67096         Reported by Paul Eggert.
67097
67098 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67099
67100         * modules/argp (Depends-on): Add unlocked-io
67101
67102 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67103
67104         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67105         block of defines.
67106
67107 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67110         fix now.
67111
67112 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67113         and Paul Eggert  <eggert@cs.ucla.edu>
67114
67115         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67116         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67117
67118 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67119
67120         * modules/regex (Files): Add lib/regex_internal.c,
67121         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67122         (Depends-on): Add extensions.
67123         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67124
67125 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67126
67127         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67128         pathconf.
67129         * m4/same.m4 (gl_SAME): Likewise.
67130         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67131
67132         * m4/regex.m4: Adjust to new libc regex implementation.
67133         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67134         all the .c and .h parts of (the new) regex.
67135         Quote the m4 stuff better.
67136         Check for RE_ICASE bug of old gnulib.
67137         Check for REG_STARTEND of recent libc.
67138         Rename local variables from jm_* to gl_*.
67139         Quote operand of "test -f".
67140         Say "recent enough" version of libc, not "version 2".
67141         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67142         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67143         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67144         Remove check for btowc, isascii.
67145         Require AM_LANGINFO_CODESET.
67146
67147 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67148
67149         * lib/regex.c, regex.h: Sync from libc.
67150         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67151         * lib/regexec.c:
67152         New files, synced from libc, except that regex_internal.h
67153         currently has a small porting fix.
67154
67155 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67158         regex_internal.c, regexec.c.
67159         Add regex_internal.h too, but as a comment, since the libc version
67160         is currently broken in gnulib mode.
67161
67162 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67163
67164         Support programs like Emacs that use gnulib but not gettext.
67165         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67166         * modules/gettext-h: New file.
67167         * modules/gettext (Files): Remove lib/gettext.h.
67168         (Depends-on): Add gettext-h.
67169         (Makefile.am): Remove lib_SOURCES.
67170         * modules/argmatch, modules/c-stack, modules/closeout:
67171         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67172         * modules/execute, modules/file-type, modules/getaddrinfo:
67173         * modules/getopt, modules/human, modules/javacomp:
67174         * modules/javaexec, modules/mkdir-p, modules/obstack:
67175         * modules/openat, modules/pagealign_alloc, modules/pipe:
67176         * modules/quotearg, modules/regex, modules/rpmatch:
67177         * modules/unicodeio, modules/userspec, modules/version-etc:
67178         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67179         * modules/xsetenv:
67180         Depend on gettext-h, not gettext.
67181
67182 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67183
67184         * gnulib-tool (func_import): Add support for 'public domain' license.
67185         * modules/alloca, modules/atexit, modules/memmove:
67186         Now public domain, not GPL.
67187         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67188         * modules/realloc, modules/strerror, modules/strtod:
67189         Now LGPL, not GPL.
67190
67191 2005-07-05  Bruno Haible  <bruno@clisp.org>
67192
67193         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67194         autoconf CVS. Needed for mingw.
67195
67196 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         Remove the dependency of the strftime module on the tzset module.
67199         * modules/strftime (Depends-on): Remove dependency on tzset.
67200
67201 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67202
67203         Remove the dependency of the strftime module on the tzset module.
67204         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67205         gl_FUNC_TZSET_CLOBBER.
67206
67207 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67208
67209         Remove the dependency of the strftime module on the tzset module.
67210         * lib/strftime.c (my_strftime)
67211         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67212         Copy the input structure, to work around some of the bug with
67213         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67214         Solaris releases, you should also use the tzset module, but we won't
67215         require it as a dependency any more since we don't want LGPLed code
67216         to depend on GPLed code.
67217
67218 2005-07-02  Jim Meyering  <jim@meyering.net>
67219
67220         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67221         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67222         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67223         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67224
67225 2005-07-02  Jim Meyering  <jim@meyering.net>
67226
67227         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67228
67229 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67230
67231         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67232         declares only 'struct timespec;' (!).
67233
67234 2005-07-01  Jim Meyering  <jim@meyering.net>
67235
67236         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67237         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67238         * lib/save-cwd.c, tempname.c:
67239         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67240         and don't include <sys/file.h>).
67241
67242 2005-06-29  Jim Meyering  <jim@meyering.net>
67243
67244         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67245         type name.  Use the variable name instead.
67246         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67247         Likewise.
67248
67249 2005-06-28  Simon Josefsson  <jas@extundo.com>
67250
67251         * modules/check-version (Files): Add check-version.m4.
67252
67253 2005-06-28  Simon Josefsson  <jas@extundo.com>
67254
67255         * m4/check-version.m4: New file, suggested by Jim Meyering
67256         <jim@meyering.net>.
67257
67258 2005-06-28  Simon Josefsson  <jas@extundo.com>
67259
67260         * lib/check-version.h, lib/check-version.c: New files.
67261
67262 2005-06-28  Simon Josefsson  <jas@extundo.com>
67263
67264         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67265         collision with global variable.  Better indentation.  Don't
67266         increment buffer pointer beyond buffer end.  Based on comments
67267         from Paul Eggert <eggert@cs.ucla.edu>.
67268
67269         * lib/base64.h: Indent.
67270
67271 2005-06-28  Simon Josefsson  <jas@extundo.com>
67272
67273         * doc/gnulib.texi (Library version handling): New section.
67274
67275 2005-06-28  Jim Meyering  <jim@meyering.net>
67276
67277         * check-module (find_included_lib_files): Hard-code another
67278         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67279         but modules/fts-lgpl (correctly) does not list those files.
67280
67281         * modules/canonicalize (Files): Add lib/pathmax.h.
67282
67283 2005-06-25  Simon Josefsson  <jas@extundo.com>
67284
67285         * modules/check-version: New file.
67286
67287 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67288
67289         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67290         initializer of struct addrinfo, as an indication that we don't
67291         care how many members the structure has.
67292
67293 2005-06-24  Derek Price  <derek@ximbiot.com>
67294         and Bruno Haible  <bruno@clisp.org>
67295
67296         Remove stat module & update lstat.
67297         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67298         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67299         * m4/stat.m4: Remove this file.
67300
67301 2005-06-24  Derek Price  <derek@ximbiot.com>
67302         and Bruno Haible  <bruno@clisp.org>
67303
67304         Remove stat module & update lstat.
67305         * lib/stat.c: Remove this file...
67306         (slash_aware_lstat): ...moving this content and its support...
67307         * lib/lstat.c (rpl_lstat): ...into here.
67308         * lib/lstat.h: New file.
67309
67310 2005-06-24  Derek Price  <derek@ximbiot.com>
67311         and Bruno Haible  <bruno@clisp.org>
67312
67313         Remove stat module & update lstat.
67314         * config/srclist.txt (libc sources): Remove stat.
67315
67316 2005-06-24  Derek Price  <derek@ximbiot.com>
67317         and Bruno Haible  <bruno@clisp.org>
67318
67319         Remove stat module & update lstat.
67320         * MODULES.html.sh (stat): Remove.
67321         * MODULES.html: Regenerated.
67322         * modules/lstat (Description): Correct function name.
67323         (Files): Add "lstat.h".
67324         (Depends-on): Remove stat, add xalloc, stat-macros.
67325         * modules/stat: Remove this file.
67326         (Include): Add "lstat.h", remove <sys/stat.h>.
67327
67328 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67329
67330         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67331         (ranged_convert): Don't save conversion in a temporary struct.
67332         This causes a warning with GCC 4.0.0, and anyway in the typical
67333         case it's not worth the extra 100 bytes or so of code.
67334         (ranged_convert, __mktime_internal): When calling a function via a
67335         pointer P, use P () rather than (*P) (), as we now assume C89 or
67336         better.
67337
67338 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67341         "who -r" failed to give output.  Problem reported by Tim Waugh.
67342
67343         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67344         (xcalloc): Use it to avoid needless tests.
67345         Problem reported by Jim Meyering.
67346
67347 2005-06-20  Derek Price  <derek@ximbiot.com>
67348
67349         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67350         unnecessary for Autoconfs > 2.59c.
67351
67352 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67353
67354         * lib/argp.h (__option_is_short): Check upper limit of
67355         __key. Isprint() requires its argument to have the value
67356         of an unsigned char or EOF.
67357
67358 2005-06-16  Jim Meyering  <jim@meyering.net>
67359
67360         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67361         when either N or S is zero.
67362
67363 2005-06-16  Derek Price  <derek@ximbiot.com>
67364
67365         * m4/bison.m4: Declare YACC & YFLAGS precious.
67366
67367 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67368
67369         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67370         multibyte string or pattern, fall back on unibyte matching.
67371         Problem reported by James Youngman.
67372
67373 2005-06-08  Bruno Haible  <bruno@clisp.org>
67374
67375         * modules/csharpcomp: New file.
67376         * MODULES.html.sh (C#): Add csharpcomp.
67377
67378 2005-06-08  Bruno Haible  <bruno@clisp.org>
67379
67380         * m4/csharpcomp.m4: New file, from GNU gettext.
67381
67382 2005-06-08  Bruno Haible  <bruno@clisp.org>
67383
67384         * lib/csharpcomp.h: New file, from GNU gettext.
67385         * lib/csharpcomp.c: New file, from GNU gettext.
67386         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67387
67388 2005-06-08  Bruno Haible  <bruno@clisp.org>
67389
67390         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67391         warning on mingw.
67392
67393 2005-06-07  Derek Price  <derek@ximbiot.com>
67394
67395         Sync from CVS.
67396         * lib/glob_.h: Indent nested #ifdef.
67397
67398 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67399
67400         Sync from coreutils.
67401         Use "file name" when talking about file names, instead of "filename"
67402         or "path", as per the GNU coding standards.
67403         * lib/mkdir-p.c: Renamed from makepath.c.
67404         (make_dir_parents): Renamed from make_path.  All callers changed.
67405         * lib/mkdir-p.h: Likewise.  All includers changed.
67406         * lib/filenamecat.c: Renamed from path-concat.c.
67407         (file_name_concat): Renamed from path_concat.  All callers changed.
67408         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67409         * lib/filenamecat.h: Likewise.  All includers changed.
67410         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67411         in comments or local variable names.
67412         * lib/basename.c: Likewise.
67413         * lib/canonicalize.c, canonicalize.h: Likewise.
67414         * lib/dirname.c, dirname.h: Likewise.
67415         * lib/euidaccess.c: Likewise.
67416         * lib/exclude.c: Likewise
67417         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67418         * lib/fsusage.c, fsuage.h: Likewise.
67419         * lib/fts.c, fts_.h: Likewise.
67420         * lib/getcwd.c: Likewise.
67421         * lib/getloadavg.c: Likewise.
67422         * lib/mkstemp.c: Likewise.
67423         * lib/mountlist.c, mountlist.h: Likewise.
67424         * lib/openat.c, openat.h: Likewise.
67425         * lib/readlink-stub.c: Likewise.
67426         * lib/readutmp.c, readutmp.h: Likewise.
67427         * lib/rename.c: Likewise.
67428         * lib/rmdir.c: Likewise.
67429         * lib/same.c: Likewise.
67430         * lib/savedir.c: Likewise.
67431         * lib/stripslash.c: Likewise.
67432         * lib/tempname.c: Likewise.
67433         * lib/xreadlink.c: Likewise.
67434         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67435         All uses changed.
67436         * lib/exclude.h: Likewise.
67437
67438         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67439         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67440         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67441         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67442         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67443         files have been getting away with it for years (MORE/BSD 4.3
67444         is extinct now).
67445         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67446         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67447
67448         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67449         Define to 256, not 255, as per modern POSIX.
67450
67451 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67452
67453         Sync from coreutils.
67454         Use "file name" when talking about file names, instead of "filename"
67455         or "path", as per the GNU coding standards.
67456         * MODULES.html.sh: mkdir-p renamed from makepath.
67457         filenamecat renamed from path-concat.
67458         * modules/filenamecat: Renamed from modules/path-concat.
67459         (Files): filenamecat.h and filenamecat.c renamed from
67460         path-concat.h and path-concat.c.
67461         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67462         (Include): filenamecat.h, not path-concat.h.
67463         * modules/mkdir-p: Renamed from modules/makepath.
67464         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67465         makepath.c.
67466         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67467         (Include): mkdir-p.h, not makepath.h.
67468
67469 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67470
67471         Sync from coreutils.
67472         * m4/mkdir-p.m4: Renamed from makepath.m4.
67473         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67474         Rename files from makepath.c to mkdir-p.c, and from
67475         makepath.h to mkdir-p.h.
67476         * m4/filenamecat.m4: Renamed from path-concat.m4.
67477         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67478         Rename files from path-concat.c to filenamecat.c,
67479         and from path-concat.h to filenamecat.h.
67480         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67481         "file name" in local variables or comments.
67482         * m4/rename.m4: Likewise.
67483
67484 2005-06-01  Bruno Haible  <bruno@clisp.org>
67485
67486         * modules/csharpexec: New file.
67487         * MODULES.html.sh (C#): New section.
67488
67489 2005-06-01  Bruno Haible  <bruno@clisp.org>
67490
67491         * m4/csharp.m4: New file, from GNU gettext.
67492         * m4/csharpexec.m4: New file, from GNU gettext.
67493
67494 2005-06-01  Bruno Haible  <bruno@clisp.org>
67495
67496         * lib/csharpexec.h: New file, from GNU gettext.
67497         * lib/csharpexec.c: New file, from GNU gettext.
67498         * lib/csharpexec.sh.in: New file, from GNU gettext.
67499
67500 2005-05-31  Derek Price  <derek@ximbiot.com>
67501             Paul Eggert  <eggert@cs.ucla.edu>
67502
67503         Sync from cvs.
67504         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67505
67506 2005-05-31  Derek Price  <derek@ximbiot.com>
67507             Paul Eggert  <eggert@cs.ucla.edu>
67508
67509         Sync from cvs.
67510         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67511
67512 2005-05-29  Derek Price  <derek@ximbiot.com>
67513
67514         * config/srclist.txt (glob_.h, glob.c): Add these files.
67515
67516 2005-05-29  Derek Price  <derek@ximbiot.com>
67517
67518         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67519         * modules/glob: New file.
67520         * modules/getlogin_r: Add link to POSIX spec in description.
67521
67522 2005-05-29  Derek Price  <derek@ximbiot.com>
67523             Paul Eggert  <eggert@cs.ucla.edu>
67524
67525         * m4/glob.m4: New file.
67526
67527 2005-05-29  Derek Price  <derek@ximbiot.com>
67528             Paul Eggert  <eggert@cs.ucla.edu>
67529
67530         * lib/glob_.h, lib/glob.c: New files.
67531
67532 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67533
67534         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67535         * modules/fts-lgpl (Depends-on): Remove gettext.
67536
67537 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67540         and don't require gt_INTTYPES_PRI.
67541
67542 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67545
67546         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67547         the configuration hassle isn't worth it.
67548         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67549         (LONGEST_MODIFIER, PRIuMAX): Remove.
67550
67551 2005-05-27  Bruno Haible  <bruno@clisp.org>
67552
67553         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67554
67555 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67556
67557         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67558         _POSIX_PTHREAD_SEMANTICS for Solaris.
67559
67560 2005-05-25  Derek Price  <derek@ximbiot.com>
67561
67562         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67563
67564 2005-05-25  Derek Price  <derek@ximbiot.com>
67565             Paul Eggert  <eggert@cs.ucla.edu>
67566
67567         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67568         * lib/getlogin_r.c, getlogin_r.h: New files.
67569
67570 2005-05-25  Bruno Haible  <bruno@clisp.org>
67571             Derek Price  <derek@ximbiot.com>
67572
67573         * lib/getlogin_r.h: Simplify API documentation.
67574
67575 2005-05-23  Derek Price  <derek@ximbiot.com>
67576
67577         * modules/minmax (Files): Add m4/minmax.m4.
67578         (configure.ac): Add gl_MINMAX.
67579
67580 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67581
67582         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67583         so that unistd-safer.h (GPL'ed code) need not be included.
67584
67585 2005-05-22  Bruno Haible  <bruno@clisp.org>
67586
67587         * m4/minmax.m4: New file.
67588         Based on a patch by Derek Price <derek@ximbiot.com>.
67589
67590 2005-05-22  Bruno Haible  <bruno@clisp.org>
67591
67592         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67593         (INT64_MIN): Fix definition.
67594         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67595
67596         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67597         NEED_SIGNED_INT_TYPES.
67598
67599         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67600         HAVE_SYSTEM_INTTYPES.
67601
67602 2005-05-22  Bruno Haible  <bruno@clisp.org>
67603
67604         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67605         Also include <sys/param.h> if it defines MIN, MAX.
67606         Based on a patch by Derek Price <derek@ximbiot.com>.
67607
67608 2005-05-21  Jim Meyering  <jim@meyering.net>
67609
67610         * modules/fts (Files): Add m4/inttypes-pri.m4.
67611         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67612
67613 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67614
67615         New fts module.
67616         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67617         (setup_dir, free_dir): New functions.
67618         (enter_dir, leave_dir): Define trivial
67619         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67620         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67621         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67622         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67623         Move to fts-cycle.c.
67624         (fts_open): Use setup_dir.
67625         (fts_close): Use free_dir.
67626         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67627         This adds a label and some gotos, but the alternatives were messier.
67628         Check for memory allocation failure when entering a dir.
67629         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67630         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67631         (FTS): New member fts_cycle, that is a union that contains the
67632         old active_dir_ht and cycle_state.  All uses changed to mention
67633         fts_cycle.ht and fts_cycle.state.
67634         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67635         fts.c, with the following changes:
67636         (setup_dir, free_dir): New functions.
67637         (enter_dir): Now returns bool.  Return true if successful, false
67638         if memory exhausted.  All callers changed.
67639         Do not bother partly cleaning up on
67640         memory allocation failure; that is free_dir's job.
67641         However, free ad if hash_insert fails, to avoid memory leak.
67642         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67643         fts->fts_options to see which union member to use.
67644
67645 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67646
67647         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67648         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67649
67650 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67651
67652         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67653
67654 2005-05-20  Jim Meyering  <jim@meyering.net>
67655
67656         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67657         Now a macro, to pacify GCC.
67658
67659 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67660
67661         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67662         of -1.
67663
67664 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67665
67666         * lib/chown.c (rpl_chown): Return -1 on failure.
67667
67668 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67669
67670         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67671         Don't check for stddef.h.
67672         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67673         don't use its results.
67674         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67675         since we include them unconditionally.  Don't require
67676         AM_STDBOOL_H, since stdbool is a prerequisite.
67677         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67678         since we assume C89 or better.
67679         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67680         as we don't use their results.
67681         Don't check for fchdir, memmove, memset, strrchr, as we use
67682         them unconditionally.
67683         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67684         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67685
67686 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67687
67688         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67689         Include <stddef.h> unconditionally, since we assume C89 now.
67690         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67691         * lib/fts.c: Include fts_.h first, to check interface.
67692         Do not include intprops.h; no longer needed.
67693         Include cycle-check.h and hash.h, since fts_.h no longer does.
67694         Remove unnecessary casts of closedir to void.
67695         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67696         decide whether to decrement nlinks.
67697         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67698         (FTS): Use struct hash_table * instead of Hash_table, so that
67699         we no longer need to include hash.h here.
67700
67701 2005-05-18  Jim Meyering  <jim@meyering.net>
67702
67703         * modules/dirfd (License): Change to LGPL.  Most of the code
67704         is already in the public domain.
67705
67706 2005-05-18  Jim Meyering  <jim@meyering.net>
67707
67708         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67709         Reported by Yoann Vandoorselaere.
67710
67711 2005-05-17  Jim Meyering  <jim@meyering.net>
67712
67713         * m4/fts.m4: New file, from coreutils.
67714
67715 2005-05-17  Jim Meyering  <jim@meyering.net>
67716
67717         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67718
67719 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         Sync from coreutils.
67722         * m4/unlinkdir.m4: New file.
67723
67724 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67725
67726         Sync from coreutils.
67727         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67728         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67729         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67730         White space changes only.
67731         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67732         special.
67733         * lib/yesno.c: Include getline.h, not ctype.h.
67734         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67735         Use getline to remove arbitrary restriction on response length.
67736
67737 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67738
67739         * config/srclist-update: Spell out "Street" in FSF postal
67740         mail address; this is the style the FSF seems to prefer.
67741
67742         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67743         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67744         this updates FSF postal mail address.
67745
67746         Sync from coreutils.
67747         * modules/unlinkdir: New file.
67748         * modules/yesno (Depends-on): Add getline.
67749         * MODULES.html.sh (File system functions): Add unlinkdir.
67750
67751 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67752
67753         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67754         lib/strsep.h:
67755         Change the initial comment to refer to GPL, not LGPL.
67756         gnulib-tool will change it to LGPL as needed.
67757
67758         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67759         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67760         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67761         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67762         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67763         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67764         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67765         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67766         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67767         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67768         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67769         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67770         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67771         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67772         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67773         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67774         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67775         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67776         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67777         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67778         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67779         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67780         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67781         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67782         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67783         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67784         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67785         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67786         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67787         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67788         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67789         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67790         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67791         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67792         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67793         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67794         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67795         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67796         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67797         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67798         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67799         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67800         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67801         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67802         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67803         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67804         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67805         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67806         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67807         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67808         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67809         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67810         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67811         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67812         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67813         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67814         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67815         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67816         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67817         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67818         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67819         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67820         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67821         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67822         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67823         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67824         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67825         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67826         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67827         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67828         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67829         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67830         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67831         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67832         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67833         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67834         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67835         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67836         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67837         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67838         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67839         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67840         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67841         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67842         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67843         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67844         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67845         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67846         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67847         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67848         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67849         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67850         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67851         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67852         lib/yesno.c, lib/yesno.h:
67853         Update FSF postal mail address.
67854
67855 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67856
67857         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67858         tests/test-memmem.c, tests/test-stpncpy.c:
67859         Update FSF postal mail address.
67860
67861 2005-05-13  Bruno Haible  <bruno@clisp.org>
67862
67863         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67864         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67865         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67866         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67867         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67868         Add support for 64-bit integers in the MSVC compiler.
67869
67870 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67871
67872         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67873
67874 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67875
67876         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67877
67878 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67879
67880         * doc/getdate.texi (General date syntax): Don't say that date
67881         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67882         Problem reported by Nic Ferrier.
67883
67884 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67885
67886         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67887         specified in ai_socktype. Fix invalid ai_protocol
67888         check. ai_protocol is usually set to 0 or depending on
67889         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67890         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67891         ai_socktype / ai_protocol in the returned addrinfo structure.
67892
67893 2005-05-10  Simon Josefsson  <jas@extundo.com>
67894
67895         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67896         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67897
67898 2005-05-10  Karl Berry  <karl@gnu.org>
67899
67900         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67901         (from http://www.gnu.org/licenses).
67902         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67903         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67904         fdl.texi suffices.
67905
67906 2005-05-10  Karl Berry  <karl@gnu.org>
67907
67908         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67909         (COPYING.DOC): remove.
67910
67911         * config/srclist-update: new FSF address.
67912
67913 2005-05-10  Derek Price  <derek@ximbiot.com>
67914
67915         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67916         possible.
67917
67918 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67919             Bruno Haible  <bruno@clisp.org>
67920
67921         * modules/inet_ntop: New file.
67922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67923         inet_ntop.
67924
67925 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67926             Bruno Haible  <bruno@clisp.org>
67927
67928         * m4/inet_ntop.m4: New file.
67929
67930 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67931             Bruno Haible  <bruno@clisp.org>
67932
67933         * lib/inet_ntop.h: New file.
67934         * lib/inet_ntop.c: New file, from glibc with modifications.
67935
67936 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67937
67938         * modules/time_r (License): Change to LGPL.
67939         * modules/extensions (License): Change to LGPL.  Actually,
67940         the license is more permissive than that, but currently gnulib-tool
67941         doesn't know how to handle more-permissive licenses.
67942
67943         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67944         Problem reported by Dave Love.
67945
67946 2005-05-08  Jim Meyering  <jim@meyering.net>
67947
67948         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67949         blank.
67950
67951 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67952
67953         * modules/argmatch (Depends-on): Add stdbool.
67954         * modules/backupfile (Depends-on): Likewise.
67955         * modules/chdir-long (Depends-on): Likewise.
67956         * modules/closeout (Depends-on): Likewise.
67957         * modules/cycle-check (Depends-on): Likewise.
67958         * modules/dirname (Depends-on): Likewise.
67959         * modules/fnmatch (Depends-on): Likewise.
67960         * modules/fsusage (Depends-on): Likewise.
67961         * modules/fwriteerror (Depends-on): Likewise.
67962         * modules/getcwd (Depends-on): Likewise.
67963         * modules/getloadavg (Depends-on): Likewise.
67964         * modules/hard-locale (Depends-on): Likewise.
67965         * modules/makepath (Depends-on): Likewise.
67966         * modules/mountlist (Depends-on): Likewise.
67967         * modules/nanosleep (Depends-on): Likewise.
67968         * modules/posixtm (Depends-on): Likewise.
67969         * modules/quotearg (Depends-on): Likewise.
67970         * modules/readtokens (Depends-on): Likewise.
67971         * modules/readtokens0 (Depends-on): Likewise.
67972         * modules/readutmp (Depends-on): Likewise.
67973         * modules/save-cwd (Depends-on): Likewise.
67974         * modules/strftime (Depends-on): Likewise.
67975         * modules/userspec (Depends-on): Likewise.
67976         * modules/utimecmp (Depends-on): Likewise.
67977         * modules/xgetcwd (Depends-on): Likewise.
67978         * modules/xnanosleep (Depends-on): Likewise.
67979         * modules/xstrtod (Depends-on): Likewise.
67980         * modules/yesno (Depends-on): Likewise.
67981
67982 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67985         needless checks.
67986
67987 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         Merge from coreutils.  Among other things,
67990         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67991         * lib/fd-safer.c: New file.
67992         * lib/fcntl-safer.h, open-safer.c: Remove.
67993         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67994         * lib/dup-safer.c: Include unistd-safer.h first.
67995         Don't include errno.h.
67996         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67997         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67998         * lib/file-type.c: Rely on file-type.h change.
67999         * lib/getloadavg.c: Include unistd-safer.h.
68000         (getloadavg): Use safer open.
68001         * lib/getusershell.c: Include "stdio-safer.h".
68002         (getusershell): Use safer fopen.
68003         * lib/long-options.c (long_options): Use NULL rather than 0.
68004         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68005         'free'.
68006         * lib/modechange.c: Likewise.
68007         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68008         (MODE_DONE): New constant.
68009         (struct mode_change): Remove 'next' member.
68010         (make_node_op_equals): New function; like the old one of the
68011         same name, except it allocates an array.
68012         (mode_compile, mode_create_from_ref): Use it.
68013         (mode_compile): Allocate result as an array, not a linked list.
68014         Parse octal string ourself, so that we catch mistakes like "+0".
68015         (mode_adjust): Arg is an array, not a linked list.
68016         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68017         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68018         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68019         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68020         Remove.  This is now stat-macros.h's job.
68021         (talloc): Remove.  All callers replaced by xalloc, so that
68022         our invokers don't have to worry about reporting memory failures.
68023         (make_node_op_equals): Remove.
68024         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68025         New constants.
68026         (struct mode_change): Moved here from modechange.h.
68027         (mode_append_entry): Remove.
68028         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68029         apps to have incorrect behavior.  Use simpler algorithm for head
68030         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68031         Detect more invalid usages rather than having somewhat-random behavior.
68032         Don't insert an "a=" action, as that leads to incorrect behavior.
68033         (mode_compile, mode_create_from_ref): Return NULL on error instead
68034         of an enum, since now there's only one way to have an error.  All
68035         callers changed.
68036         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68037         at the correct time.  Simplify calculation of "+u" and its ilk.
68038         Don't mishandle "+X".
68039         (mode_free): Remove "register" and localize decls.
68040         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68041         (struct mode_change): Move to modechange.c; callers don't
68042         need to see this stuff.
68043         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68044         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68045         (mode_change, mode_adjust): Reflect the new signatures noted above.
68046         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68047         that might redefine system include files.
68048         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68049         (my_usleep): Use NULL rather than (void *) 0.
68050         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68051         Use siginterrupt to specify that system calls should be interrupted.
68052         (rpl_nanosleep): Move initialization of suspended closer to call of
68053         my_usleep.
68054         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68055         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68056         (desirable_utmp_entry): New function.
68057         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68058         using x2nrealloc, to simplify logic.
68059         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68060         size calculation.  Do not assume utmp file is a regular file.
68061         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68062         (READ_UTMP_CHECK_PIDS): New constant.
68063         * lib/save-cwd.c: Include unistd-safer.h.
68064         (save_cwd): Use fd_safer.
68065         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68066         [!_LIBC] Include "stat-macros.h" instead.
68067         * lib/unistd-safer.h (fd_safer): New decl.
68068
68069 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68070
68071         * modules/getloadavg (Depends-on): Add unistd-safer.
68072         * modules/getusershell (Depends-on): Add stdio-safer.
68073         * modules/lstat (Depends-on): Remove xalloc.
68074         * modules/mkstemp (Depends-on): Add stat-macros.
68075         * modules/modechange (Depends-on): Remove xstrtol.
68076         Add stat-macros, xalloc.
68077         * modules/save-cwd (Depends-on): Add unistd-safer.
68078         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68079         * modules/unistd-safer (Files): Add lib/fd-safer.c
68080         (Makefile.am): Remove lib_SOURCES.
68081
68082         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68083         Remove fcntl-safer; unistd-safer supersedes it.
68084
68085 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68086
68087         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68088         AC_HEADER_STAT.
68089         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68090         (gl_PREREQ_CHOWN): Remove.
68091         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68092         it.  Don't require AC_HEADER_STAT.
68093         (gl_PREREQ_LSTAT): Remove.
68094         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68095         Don't require AC_HEADER_STAT.
68096         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68097         (gl_PREREQ_RMDIR): Remove.
68098         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68099         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68100         the stat-macros module a prerequisite.
68101         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68102         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68103         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68104         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68105         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68106         variable names.
68107         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68108         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68109         variable prefixes.
68110         * m4/fcntl-safer.m4: Remove.
68111         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68112         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68113         Invoke gl_PREREQ_FD_SAFER.
68114         (gl_PREREQ_FD_SAFER): New macro.
68115         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68116         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68117         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68118         Remove duplicate call to AC_LIBOBJ(readutmp).
68119         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68120
68121         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68122         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68123
68124 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68125
68126         * MODULES.html.sh (Misc): Add byteswap.
68127
68128 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68129
68130         * modules/getcwd (Depends-on): Add extensions.
68131         * modules/openat (Depends-on): Likewise.
68132
68133 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68134
68135         * modules/byteswap: New file.
68136
68137 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68138
68139         * m4/byteswap.m4: New file.
68140
68141 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68142
68143         * lib/byteswap_.h: New file.
68144
68145 2005-04-25  Karl Berry  <karl@gnu.org>
68146
68147         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68148
68149 2005-04-25  Albert Chin  <china@thewrittenword.com>
68150
68151         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68152         Toolkit C bug.
68153
68154 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68155
68156         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68157         (func_ln_if_changed): Remove forcibly for no error message
68158         in case file does not exist.
68159
68160 2005-04-19  Simon Josefsson  <jas@extundo.com>
68161
68162         * gnulib-tool (Options): Make --symlink mean --symbolic.
68163
68164 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68165
68166         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68167
68168 2005-04-16  Simon Josefsson  <jas@extundo.com>
68169
68170         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68171
68172 2005-04-15  Simon Josefsson  <jas@extundo.com>
68173
68174         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68175
68176 2005-04-15  Simon Josefsson  <jas@extundo.com>
68177
68178         * gnulib-tool: Rename --symlink to --symbolic.
68179
68180 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68181
68182         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68183         symbolic links to files instead of copying/moving.  Add --aux-dir,
68184         specifying directory relative --dir where auxiliary build tools
68185         are placed.
68186
68187 2005-04-14  Bruno Haible  <bruno@clisp.org>
68188
68189         * modules/allocsa (License): Change to LGPL.
68190         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68191
68192 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68193
68194         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68195         that "UTC +1 second" continues to work.  Problem reported
68196         by Dmitry V. Levin.
68197         (relunit_snumber): New rule.
68198         (relunit): Use it.
68199
68200 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68201
68202         * lib/getdate.y (universal_time_zone_table): New constant.
68203         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68204         universal_time_zone_table.
68205         (lookup_zone): Prefer universal_time_zone_table to
68206         local_time_zone_table, so that "GMT" time stamps are allowed in
68207         London during the summer.  Problem reported by Ian Abbott.
68208
68209 2005-04-12  Jim Meyering  <jim@meyering.net>
68210
68211         * lib/human.c (humblock): Set *options even when returning due to
68212         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68213         warning from gcc-4.
68214
68215 2005-04-09  Jim Meyering  <jim@meyering.net>
68216
68217         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68218         -Wuninitialized: initialize tm0.tm_year.
68219
68220 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68221
68222         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68223         count, since there's no maximum.  All uses changed.
68224         Add member dsts_seen.
68225         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68226         not being INT_MAX.
68227         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68228         Use pc_rels_seen to decide whther a date is absolute.
68229
68230         * lib/getdate.y (number): Don't overwrite year.
68231         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68232         check.
68233
68234 2005-04-02  Simon Josefsson  <jas@extundo.com>
68235
68236         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68237         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68238
68239 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68240
68241         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68242         where no absolute path name can be longer than PATH_MAX.
68243
68244 2005-03-27  Jim Meyering  <jim@meyering.net>
68245
68246         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68247
68248 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68249
68250         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68251         "one's complement" -> "ones' complement" in comment, as per Knuth.
68252         "value of type" -> "type or expression" in comment.
68253         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68254
68255 2005-03-26  Jim Meyering  <jim@meyering.net>
68256
68257         Comment nits.
68258         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68259         Correct typos: s/or/of/.
68260
68261 2005-03-26  Jim Meyering  <jim@meyering.net>
68262
68263         * modules/check-include-files: Move to ../ and rename to...
68264         * check-module: ...this.
68265
68266 2005-03-25  Jim Meyering  <jim@meyering.net>
68267
68268         * modules/xvasprintf (Files): Add xalloc.h.
68269
68270 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68271
68272         * modules/gettext (Files): config/config.rpath ->
68273         build-aux/config.rpath
68274         * modules/iconv (Files): Likewise.
68275         Problem reported by Oskar Liljeblad.
68276
68277 2005-03-23  Jim Meyering  <jim@meyering.net>
68278
68279         * modules/check-include-files: New script to check for
68280         missing dependencies, multiple includes, etc.
68281
68282         * modules/c-strtold (Depends-on): Add xalloc.
68283         * modules/c-strtod (Depends-on): Add xalloc.
68284         * modules/hash (Depends-on): Add xalloc.
68285         (Files): Remove lib/xalloc.h.
68286
68287         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68288         * modules/userspec (Files): Add lib/inttostr.h.
68289
68290 2005-03-23  Jim Meyering  <jim@meyering.net>
68291
68292         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68293
68294 2005-03-22  Jim Meyering  <jim@meyering.net>
68295
68296         * modules/stat-macros: New module.
68297         * modules/canonicalize, modules/euidaccess, modules/file-type,
68298         * modules/filemode, modules/lchown, modules/makepath,
68299         * modules/rmdir, modules/stat: Depend on new stat-macros module
68300         rather than listing lib/stat-macros.h manually.
68301         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68302
68303 2005-03-22  Jim Meyering  <jim@meyering.net>
68304
68305         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68306
68307 2005-03-22  Bruno Haible  <bruno@clisp.org>
68308
68309         * config/srclist.txt: Replace target directory 'config' with
68310         'build-aux'.
68311         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68312         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68313         ../build-aux/.
68314
68315 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68316
68317         * modules/chdir-long (Depends-on): Add mempcpy.
68318
68319         * modules/acl, modules/backupfile, modules/c-strtod,
68320         modules/c-strtold, modules/canon-host, modules/canonicalize,
68321         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68322         modules/exclude, modules/exitfail, modules/file-type,
68323         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68324         modules/getdate, modules/getline, modules/getpagesize,
68325         modules/getpass, modules/getugroups, modules/group-member,
68326         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68327         modules/inttostr, modules/long-options, modules/makepath,
68328         modules/md5, modules/memcasecmp, modules/memcoll,
68329         modules/modechange, modules/mountlist, modules/path-concat,
68330         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68331         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68332         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68333         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68334         modules/strftime, modules/strndup, modules/strverscmp,
68335         modules/timespec, modules/unlocked-io, modules/userspec,
68336         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68337         modules/yesno:
68338         Remove lib_SOURCES line from Makefile.am section, as this is now
68339         done automatically by the corresponding Autoconf macro.
68340
68341 2005-03-21  Jim Meyering  <jim@meyering.net>
68342
68343         Changes imported from coreutils.
68344
68345         * lib/cycle-check.c: Don't include xalloc.h.
68346
68347         * lib/path-concat.c: Don't include assert.h.
68348         (path_concat): Remove assertion that would have triggered
68349         for ABASE starting with more than one slash.
68350         Reported by Andreas Schwab.
68351
68352         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68353         properly when ABASE is an absolute file name.
68354         Correct the description of this function.
68355         Include <assert.h>.
68356         Add an assertion and a test driver.
68357         This fixes a bug introduced on 2004-07-02.
68358         Andreas Schwab reported the resulting failure of cp --parents:
68359         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68360
68361 2005-03-21  Jim Meyering  <jim@meyering.net>
68362
68363         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68364         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68365
68366 2005-03-21  Jim Meyering  <jim@meyering.net>
68367         and  Paul Eggert  <eggert@cs.ucla.edu>
68368
68369         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68370         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68371         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68372         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68373         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68374         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68375         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68376         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68377         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68378         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68379         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68380         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68381         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68382         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68383         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68384         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68385         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68386         for these modules.
68387
68388 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68391         (which shouldn't happen), generate nothing instead of returning 0
68392         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68393
68394 2005-03-16  Bruno Haible  <bruno@clisp.org>
68395
68396         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68397         HAVE_LONGLONG_64BIT.
68398
68399 2005-03-16  Bruno Haible  <bruno@clisp.org>
68400
68401         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68402         HAVE_LONGLONG_64BIT.
68403
68404 2005-03-16  Bruno Haible  <bruno@clisp.org>
68405
68406         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68407         HAVE_LONGLONG_64BIT.
68408
68409 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68412         reliably distinguish strftime failure from empty output on POSIX
68413         hosts.
68414
68415 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68416
68417         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68418         (iconv_string): Don't guess a size-zero buffer, as that might cause
68419         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68420         result would be 'too large', where 'too large' is (heuristically)
68421         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68422         overflow concerns.  This will prevent some unwanted malloc failures
68423         when the inputs are very large.
68424
68425 2005-03-15  Karl Berry  <karl@gnu.org>
68426
68427         * config/srclist.txt (config.rpath): from gettext.
68428         * config/config.rpath: update.
68429
68430 2005-03-15  Bruno Haible  <bruno@clisp.org>
68431
68432         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68433         to 'negate'.
68434
68435         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68436         variable.
68437
68438         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68439         results.
68440
68441 2005-03-14  Simon Josefsson  <jas@extundo.com>
68442
68443         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68444         <fx@gnu.org>.
68445
68446 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68447
68448         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68449         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68450         intprops.h.
68451         * lib/strtol.c: Likewise.
68452
68453 2005-03-14  Jim Meyering  <jim@meyering.net>
68454
68455         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68456         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68457         to be nonzero so that we (and caller) can detect the difference
68458         between a valid zero-length expansion and an error return, even
68459         when the underlying strftime fails before writing anything into
68460         that location.
68461
68462 2005-03-14  Bruno Haible  <bruno@clisp.org>
68463
68464         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68465         Update from GNU gettext 0.14.3.
68466
68467 2005-03-10  Jim Meyering  <jim@meyering.net>
68468
68469         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68470
68471 2005-03-10  Jim Meyering  <jim@meyering.net>
68472
68473         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68474         so that this module works on systems without fchdir.
68475
68476 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68477
68478         Factor int-properties macros into a single file, except for
68479         glibc-related files.
68480         * lib/intprops.h: New file.
68481         * lib/getloadavg.c: Include it instead of limits.h.
68482         (INT_STRLEN_BOUND): Remove.
68483         * lib/human.c: Include intprops.h.
68484         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68485         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68486         302/1000.
68487         * lib/inttostr.h: Include intprops.h instead of limits.h.
68488         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68489         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68490         for consistency with intprops.h.
68491         (time_t_is_integer, twos_complement_arithmetic): Use them.
68492         * lib/sig2str.h: Include <signal.h>, intprops.h.
68493         (INT_STRLEN_BOUND): Remove.
68494         * lib/strftime.c (TYPE_SIGNED): Remove.
68495         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68496         * lib/strtol.c: Adjust comments to match intprops.h.
68497         * lib/userspec.c: Include intprops.h.
68498         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68499         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68500         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68501         instead of rolling our own expressions.
68502         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68503
68504         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68505         instead of int.
68506         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68507         the right thing even if adding 1900 would overflow.  Similarly
68508         for tm_mon + 1 and tm_yday + 1.
68509         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68510         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68511         (DO_SIGNED_NUMBER): New macro.
68512         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68513
68514 2005-03-07  Bruno Haible  <bruno@clisp.org>
68515
68516         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68517
68518 2005-03-07  Bruno Haible  <bruno@clisp.org>
68519
68520         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68521
68522 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68523
68524         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68525         (func_import): Only replace files via --import when they have actually
68526         changed.
68527
68528 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68529
68530         * m4/mmap-anon.m4: New file.
68531         * m4/pagealign_alloc.m4: New file.
68532
68533 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68534             Bruno Haible  <bruno@clisp.org>
68535
68536         * modules/pagealign_alloc: New file.
68537         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68538
68539 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68540             Bruno Haible  <bruno@clisp.org>
68541
68542         * lib/pagealign_alloc.h: New file.
68543         * lib/pagealign_alloc.c: New file.
68544
68545 2005-03-03  Bruno Haible  <bruno@clisp.org>
68546
68547         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68548         Use an all-permissive copyright notice, recommended by RMS.
68549
68550 2005-03-02  Bruno Haible  <bruno@clisp.org>
68551
68552         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68553         of AIX, the replacement has to be done only after <string.h> is
68554         included, therefore not in config.h. stpncpy.h does the replacement,
68555         and stpncpy.c uses it.
68556
68557 2005-03-02  Bruno Haible  <bruno@clisp.org>
68558
68559         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68560         stpncpy.c uses it.
68561
68562 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68563
68564         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68565         The workaround isn't strictly needed for POSIX conformance, and
68566         it's too much of a pain to configure and maintain.  We'll ask
68567         people to fix their kernels instead.
68568         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68569         (NANOSLEEP_BUG_WORKAROUND): Remove.
68570         (xnanosleep): Remove the workaround.
68571
68572 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68573
68574         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68575         Reported by Derek Price.
68576         (Include): Add "timespec.h".
68577
68578         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68579
68580 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68581
68582         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68583         to detect nanosleep bug.
68584
68585 2005-03-01  Bruno Haible  <bruno@clisp.org>
68586
68587         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68588
68589 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68590
68591         * modules/gethrxtime: New file.
68592         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68593         (Depends-on): Add gethrxtime.
68594         (configure.ac): Add gl_XNANOSLEEP.
68595         (Makefile.am): Remove lib_SOURCES line.
68596
68597 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68600         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68601
68602 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68603
68604         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68605         * lib/timespec.h (gettime): Return void, since it always
68606         succeeds now.  All uses changed.
68607         * lib/gettime.c (gettime): Likewise.
68608         [HAVE_NANOTIME]: Prefer nanotime.
68609         Assume gettimeofday succeeds, as POSIX requires.
68610         Assime time () succeeds, since other code already does.
68611         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68612         (timespec_subtract): Remove.
68613         (NANOSLEEP_BUG_WORKAROUND): New constant.
68614         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68615         things considerably.  Use it only on GNU/Linux hosts, since the
68616         workaround shouldn't be needed elsewhere.
68617
68618 2005-02-24  Bruno Haible  <bruno@clisp.org>
68619
68620         * modules/gettext (Files): Add m4/glibc2.m4.
68621
68622 2005-02-24  Bruno Haible  <bruno@clisp.org>
68623
68624         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68625         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68626         * m4/progtest.m4:
68627         Update from GNU gettext 0.14.2.
68628         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68629
68630 2005-02-24  Bruno Haible  <bruno@clisp.org>
68631
68632         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68633         * lib/config.charset: Update from GNU gettext 0.14.2.
68634
68635 2005-02-24  Bruno Haible  <bruno@clisp.org>
68636
68637         * lib/gettext.h: Update from GNU gettext 0.14.2.
68638
68639 2005-02-23  Simon Josefsson  <jas@extundo.com>
68640
68641         * m4/iconvme.m4: New file.
68642
68643 2005-02-23  Jim Meyering  <jim@meyering.net>
68644
68645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68646         change.
68647         Thanks to Bruno Haible for catching it.
68648
68649 2005-02-22  Simon Josefsson  <jas@extundo.com>
68650
68651         * modules/iconvme: New file.
68652
68653         * MODULES.html.sh: Add iconvme.
68654
68655 2005-02-22  Simon Josefsson  <jas@extundo.com>
68656
68657         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68658
68659 2005-02-22  Simon Josefsson  <jas@extundo.com>
68660
68661         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68662
68663 2005-02-22  Jim Meyering  <jim@meyering.net>
68664
68665         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68666         s/ifndef/ifdef/.
68667
68668 2005-02-20  Neil Conway  <neilc@samurai.com>
68669
68670         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68671         returned by OSX/Darwin if the specified buffer is not large
68672         enough for the hostname.
68673
68674 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68675
68676         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68677         pass it to _help, otherwise the latter coredumps trying to
68678         dereference state.root_argp.
68679
68680 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * modules/chdir-long (Depends-on): Add memrchr.
68683         * modules/memrchr (Files): Add lib/memrchr.h.
68684         (Include): "memrchr.h".
68685
68686 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68687
68688         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68689
68690 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68691
68692         * lib/memrchr.h: New file.
68693         * lib/chdir-long.c: Include it.
68694         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68695         Don't bother including stddef.h.
68696
68697 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68700         inclusion.
68701         Include <sys/types.h>, for dev_t.
68702         (ME_DUMMY, ME_REMOTE): Move from here....
68703         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68704         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68705         Dmitry V. Levin.
68706         Include mountlist.h first, to test the interface.
68707
68708 2005-01-29  Bruno Haible  <bruno@clisp.org>
68709
68710         * lib/progname.c (program_name): Initialize.
68711         Needed when linking statically on MacOS X.
68712
68713 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68714
68715         Sync from coreutils.
68716         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68717         (Depends-on): Add c-strtod.
68718         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68719
68720 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68721
68722         Sync from coreutils.
68723         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68724
68725         Remove files that are specific to coreutils.
68726         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68727
68728 2005-01-28  Bruno Haible  <bruno@clisp.org>
68729
68730         * modules/javacomp: New file.
68731         * MODULES.html.sh (Java): Add javacomp.
68732
68733 2005-01-28  Bruno Haible  <bruno@clisp.org>
68734
68735         * m4/javacomp.m4: New file, from GNU gettext.
68736
68737 2005-01-28  Bruno Haible  <bruno@clisp.org>
68738
68739         * lib/javacomp.sh.in: New file, from GNU gettext.
68740         * lib/javacomp.h: New file, from GNU gettext.
68741         * lib/javacomp.c: New file, from GNU gettext.
68742
68743 2005-01-26  Simon Josefsson  <jas@extundo.com>
68744
68745         * lib/gai_strerror.c: Use GPL in header.
68746
68747 2005-01-26  Bruno Haible  <bruno@clisp.org>
68748
68749         * modules/javaexec: New file.
68750         * MODULES.html.sh (Java): Add javaexec.
68751
68752 2005-01-26  Bruno Haible  <bruno@clisp.org>
68753
68754         * m4/javaexec.m4: New file, from GNU gettext.
68755
68756 2005-01-26  Bruno Haible  <bruno@clisp.org>
68757
68758         * lib/javaexec.sh.in: New file, from GNU gettext.
68759         * lib/javaexec.h: New file, from GNU gettext.
68760         * lib/javaexec.c: New file, from GNU gettext.
68761
68762 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68763
68764         * modules/lchown (Depends-on): Remove lchown.h
68765
68766 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68767
68768         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68769         must be defined if the header file was not found, in order
68770         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68771
68772 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68773
68774         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68775         initializers for struct pentry_state.
68776         (__argp_error): Check return value of __asprintf
68777         (__argp_failure): Translate error message
68778
68779         * lib/argp-parse.c: Removed braces around the expansion of N_()
68780
68781 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68782
68783         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68784         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68785         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68786         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68787         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68788         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68789         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68790         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68791         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68792         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68793         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68794         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68795         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68796         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68797         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68798         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68799         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68800         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68801         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68802         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68803         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68804         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68805         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68806         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68807         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68808         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68809         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68810         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68811         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68812         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68813         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68814         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68815         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68816         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68817         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68818         Use an all-permissive copyright notice, recommended by RMS.
68819
68820 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68821
68822         * modules/chdir-long (Depends-on): Remove mempcpy.
68823
68824 2005-01-21  Jim Meyering  <jim@meyering.net>
68825
68826         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68827         same value as for Solaris 9.
68828
68829         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68830         component length.  This included changing the parameter to be
68831         of type `char *' rather than `char const *'.
68832         * lib/chdir-long.h (chdir_long): Update prototype.
68833
68834         * lib/openat.c (fdopendir, fstatat): New functions.
68835         * lib/openat.h: Include headers required for use of DIR and struct
68836         stat.
68837         [AT_SYMLINK_NOFOLLOW]: Define.
68838         (fdopendir, fstatat): Add prototypes.
68839
68840 2005-01-21  Bruno Haible  <bruno@clisp.org>
68841
68842         * modules/classpath: New file.
68843         * MODULES.html.sh (Java): Add classpath.
68844
68845 2005-01-21  Bruno Haible  <bruno@clisp.org>
68846
68847         * lib/classpath.h: New file, from GNU gettext.
68848         * lib/classpath.c: New file, from GNU gettext.
68849
68850 2005-01-20  Simon Josefsson  <jas@extundo.com>
68851
68852         * modules/version-etc-fsf: New file.
68853
68854 2005-01-20  Simon Josefsson  <jas@extundo.com>
68855
68856         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68857         * lib/version-etc.c: Remove version_etc_copyright.
68858         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68859         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68860
68861 2005-01-20  Simon Josefsson  <jas@extundo.com>
68862
68863         * lib/base64.h (isbase64): Add.
68864
68865         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68866         using a unsigned prototype, don't inline.
68867         (base64_decode): Use it.
68868
68869 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68870
68871         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68872         it.
68873
68874 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68875
68876         * lib/save-cwd.c (save_cwd): Remove code to support the case
68877         where fchdir is missing or flaky.
68878
68879 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68880
68881         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68882
68883 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68884
68885         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68886         AC_LIBSOURCES now does this.
68887         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68888         with new ullong_max module.
68889
68890 2005-01-19  Bruno Haible  <bruno@clisp.org>
68891
68892         * modules/sh-quote: New file.
68893         * MODULES.html.sh (Executing programs): Add sh-quote.
68894
68895 2005-01-19  Bruno Haible  <bruno@clisp.org>
68896
68897         * lib/sh-quote.h: New file, from GNU gettext.
68898         * lib/sh-quote.c: New file, from GNU gettext.
68899
68900 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         Merge from coreutils.
68903         * m4/ullong_max.m4: New file.
68904         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68905         (gl_MACROS): Assume localeconv exists.
68906
68907 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68908
68909         Merge changes from coreutils, as described below in several
68910         changelogs dated today.
68911
68912         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68913         (O_DIRECTORY): Remove; not needed here, since "." must be
68914         a directory.  All uses removed.
68915         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68916         universal on Suns, and we also need to test for IRIX.
68917         Revamp code to use 'if' rather than '#if'.
68918         Avoid unnecessary comparison of cwd->desc to 0.
68919
68920         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68921         for known valid error numbers rather than observed invalid ones.
68922
68923 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * modules/ullong_max: New file.
68926
68927         * modules/chdir-long, modules/openat: New files.
68928         * modules/save-cwd (Depends-on): Depend on chdir-long.
68929         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68930
68931 2005-01-18  Jim Meyering  <jim@meyering.net>
68932
68933         Merge from coreutils.
68934         * m4/chdir-long.m4, m4/openat.m4: New files.
68935         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68936         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68937         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68938         is sane and DOES follow symlinks.  Besides, testing 20 different
68939         systems found no broken chown implementations.
68940         Prompted by a change in rsync's copy of this macro.
68941         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68942
68943         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68944
68945         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68946         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68947         NULL-means-set-to-current-time semantics.
68948         Remove temporary file immediately, rather than waiting
68949         for configure's at-exit trap code to do it.
68950
68951 2005-01-18  Jim Meyering  <jim@meyering.net>
68952
68953         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68954
68955         * lib/utimens.c (futimens): Account for the fact that futimes
68956         can also fail with errno == ENOSYS or errno == ENOENT.
68957         Patch from Dmitry V. Levin.
68958
68959         Change the name of the robust chdir function from chdir to chdir_long.
68960         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68961         (restore_cwd): Use chdir_long, not chdir.
68962         * lib/chdir-long.c: Renamed from chdir.c.
68963         * lib/chdir-long.h: Renamed from chdir.h.
68964         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68965         Hurd.
68966
68967 2005-01-18  Bruno Haible  <bruno@clisp.org>
68968
68969         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68970         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68971         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68972         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68973         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68974         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68975         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68976         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68977         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68978         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68979         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68980         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68981         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68982         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68983         Use an all-permissive copyright notice, recommended by RMS.
68984
68985 2005-01-18  Bob Proulx  <bob@proulx.com>
68986
68987         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68988         simplify offsetof() macro construct to avoid compile failure with
68989         native HP-UX 11.0 ANSI C compiler.
68990
68991 2005-01-17  Bruno Haible  <bruno@clisp.org>
68992
68993         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68994         redundant because stpncpy.m4 takes care of it.
68995
68996 2005-01-17  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68999
69000 2005-01-17  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69003         used.
69004
69005 2005-01-17  Bruno Haible  <bruno@clisp.org>
69006
69007         * lib/fwriteerror.h (fwriteerror): Change specification to include
69008         fclose.
69009         * lib/fwriteerror.c: Include <stdbool.h>.
69010         (fwriteerror): At the end, close the file stream. Record whether
69011         stdout was already closed.
69012
69013 2005-01-17  Bruno Haible  <bruno@clisp.org>
69014
69015         * lib/execute.c (environ): Declare if needed.
69016         * lib/pipe.c (environ): Likewise.
69017         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69018
69019 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69020
69021         * modules/argp: Depend on vsnprintf
69022
69023 2005-01-10  Jim Meyering  <jim@meyering.net>
69024
69025         * modules/closeout (Depends-on): Add atexit.
69026
69027 2005-01-06  Bruno Haible  <bruno@clisp.org>
69028
69029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69030
69031 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69032
69033         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69034         definitions to be after all include files, to avoid collisions.
69035         Problem reported by Bob Proulx.
69036
69037 2005-01-04  Jim Meyering  <jim@meyering.net>
69038
69039         Changes imported from coreutils.
69040         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69041         as the mkstemp template, use a temporary directory and an
69042         8.3-friendly template to avoid trouble on systems like DJGPP.
69043         Reported by Juan M. Guerrero via Stepan Kasal.
69044         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69045         close. Remove the temporary directory right away, rather than waiting
69046         for configure's at-exit trap code to do it.
69047         Suggestion from Stepan Kasal.
69048
69049 2005-01-01  Simon Josefsson  <jas@extundo.com>
69050
69051         * gnulib-tool: Print #include directives when --import'ing.
69052
69053 2004-12-28  Simon Josefsson  <jas@extundo.com>
69054
69055         * tests/test-base64.c: Include required header files.  Remove
69056         unused variables.
69057
69058 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69059
69060         * modules/error (Depends-on): Remove gettext.
69061
69062 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69065         not needed.  This removes a dependency on the gettext module.
69066         [defined _LIBC]: Do not include <libintl.h>; not needed.
69067
69068 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69071         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69072
69073 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69076         HAVE_DECL_STRTOLD.
69077
69078 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * modules/getdate (Depends-on): Remove alloca-opt.
69081
69082 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69085
69086 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69087
69088         * lib/argp-parse.c: Include <stddef.h>.
69089         (alignof, alignto): New macros.
69090         (parser_init): Don't assume that void * is aligned sufficiently
69091         for struct option.
69092
69093         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69094         need to extend the stack.
69095         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69096         large.
69097
69098 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69099
69100         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69101
69102 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69105         (2004-10-24) change.  Apparently this was a false alarm.
69106
69107         * modules/getdate: Depend on alloca-opt, not alloca.
69108
69109 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69112         Remove now-obsolete comment about AIX.
69113         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69114         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69115         (YYMAXDEPTH): New macro.
69116
69117 2004-12-18  Simon Josefsson  <jas@extundo.com>
69118
69119         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69120
69121 2004-12-18  Bruno Haible  <bruno@clisp.org>
69122
69123         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69124
69125 2004-12-18  Bruno Haible  <bruno@clisp.org>
69126
69127         * lib/fatal-signal.c (fatal_signals): Make non-const.
69128         (init_fatal_signals): New function.
69129         (uninstall_handlers, install_handlers): Ignore signals that were set to
69130         SIG_IGN.
69131         (at_fatal_signal): Call init_fatal_signals.
69132         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69133         SIG_IGN.
69134         Reported by Paul Eggert.
69135
69136 2004-12-18  Bruno Haible  <bruno@clisp.org>
69137
69138         * doc/alloca.texi: New file.
69139         * doc/alloca-opt.texi: New file.
69140
69141 2004-12-17  Jim Meyering  <jim@meyering.net>
69142
69143         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69144         Otherwise, install-sh could exit with improper exit status when
69145         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69146
69147 2004-12-16  Simon Josefsson  <jas@extundo.com>
69148
69149         * tests/test-base64.c: Add license.
69150
69151 2004-12-15  Stepan Kasal  <address@hidden>
69152
69153         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69154
69155 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69156
69157         * modules/getcwd (Files): Add m4/d-ino.m4.
69158         Suggested by Mark D. Baushke.
69159
69160 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69161
69162         * lib/getdate.y (textint): New member "negative".
69163         (time_zone_hhmm): New function.
69164         Expect 14 shift-reduce conflicts, not 13.
69165         (o_colon_minutes): New rule.
69166         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69167         (yylex): Set the "negative" member of signed numbers.
69168
69169 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69170
69171         * doc/getdate.texi (Time of day items, Time zone items):
69172         Describe new formats +00:00, UTC+00:00.
69173
69174 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69175
69176         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69177         spurious "-l"s.  Problem reported by Stepan Kasal.
69178
69179 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69180
69181         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69182         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69183
69184 2004-12-04  Simon Josefsson  <jas@extundo.com>
69185
69186         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69187         Vandoorselaere <yoann@prelude-ids.org>.
69188
69189 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69190
69191         Changes imported from coreutils.
69192         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69193         exist.
69194         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69195
69196 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69197
69198         Changes imported from coreutils.
69199         * lib/hard-locale.c: Assume <locale.h> exists.
69200         Include "strdup.h".
69201         (GLIBC_VERSION): New macro.
69202         (hard_locale): Assume setlocale exists.
69203         Rewrite to avoid #ifdef.
69204         Use strdup rather than malloc + strcpy.
69205         * lib/human.c: Assume <locale.h> exists.
69206         (human_readable): Assume localeconv exists.
69207
69208 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * modules/hard-locale (Depends-on): Add strdup.
69211
69212 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69213
69214         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69215         convert T2, not T.  (Imported from libc.)
69216
69217 2004-11-30  Simon Josefsson  <jas@extundo.com>
69218
69219         * modules/restrict (License): Change to LGPL.
69220
69221 2004-11-30  Simon Josefsson  <jas@extundo.com>
69222
69223         * m4/restrict.m4: Add copyright and copying conditions.
69224
69225 2004-11-30  Simon Josefsson  <jas@extundo.com>
69226
69227         * m4/base64.m4: New file.
69228
69229 2004-11-30  Simon Josefsson  <jas@extundo.com>
69230
69231         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69232         base64.
69233
69234         * tests/test-base64.c: New file.
69235
69236         * modules/base64: New file.
69237
69238 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69241         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69242
69243         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69244
69245 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69246
69247         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69248         (__getcwd.c): Don't restore errno; glibc doesn't.
69249         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69250         first, falling back to our code only if its results look suspicious.
69251         Ensure that the resulting buffer is only as large as necessary.
69252
69253         * lib/readutmp.c: Include readutmp.h first.
69254         Include <errno.h>, since readutmp.h no longer does that.
69255         * lib/readutmp.h: Don't include <errno.h>,
69256         <sys/param.h>, <time.h>; not needed to establish interface.
69257         (errno): Remove decl.
69258         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69259         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69260         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69261
69262 2004-11-28  Simon Josefsson  <jas@extundo.com>
69263
69264         * lib/base64.h, base64.c: New file.
69265
69266 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69267
69268         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69269
69270 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69271
69272         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69273         (Depends-on): Remove pathmax, same.  Add mempcpy.
69274         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69275         (Makefile.am): Append getcwd.h to lib_SOURCES.
69276         (Include): Add getcwd.h.
69277         (Maintainer): Change from Jim Meyering to "all, glibc",
69278         since getdate now uses intended-for-glibc code.
69279         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69280         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69281
69282 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69285         HP's ANSI C compiler.
69286         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69287         Declaring int functions causes warnings on some modern systems and
69288         shouldn't be needed to compile on ancient ones.
69289         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69290         defined.
69291
69292         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69293         with the following changes.
69294         (__set_errno): Parenthesize properly.
69295         Include <stdbool.h>.
69296         (MIN, MAX, MATCHING_INO): New macros.
69297         (__getcwd): Define with prototype, not K&R form.
69298         Use heuristics to allocate default buffer on stack if possible.
69299         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69300         behavior, and to avoid the PATH_MAX limit when computing
69301         ../../../../...
69302         Use MATCHING_INO to compare inode number to file.
69303         Check for arithmetic overflow in size calculations.
69304         Fix bug in reallocation of dot array that caused getcwd to fail
69305         on directories nested deeper than 75.
69306         Be more careful about saving errno on error.
69307         Do not use realloc; use only free+malloc, as this is a bit
69308         more flexible and avoids a needless copy operation.
69309         Do not inspect st_dev and st_ino for symbolic links; POSIX
69310         doesn't specify the latter.
69311         Check for closedir errors.
69312         Avoid needless casts.
69313         Use "#ifdef weak_alias" around weak_alias, to be like other
69314         glibc code.
69315         The following changes to getcwd.c have effect only when used in
69316         gnulib; they have no effect inside glibc proper.
69317         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69318         as alloca isn't used.
69319         (alloca, __alloca): Likewise.
69320         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69321         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69322         unconditionally, as gnulib assumes C89 or better.
69323         Do not include <sys/param.h>.
69324         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69325         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69326         better.
69327         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69328         Include <dirent.h> in a way that is compatible with modern Autoconf.
69329         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69330         New macros, if not already defined.
69331         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69332         Use "_LIBC", not "defined _LIBC", for consistency.
69333         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69334         a mempcpy module.
69335         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69336         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69337         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69338         credit only to Jim Meyering and adjust the copyright dates.
69339         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69340         <stdlib.h>, <unistd.h>, "pathmax.h".
69341         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69342         (INITIAL_BUFFER_SIZE): Remove.
69343         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69344
69345 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69346
69347         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69348         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69349         Use the _ONCE methods, for efficiency.
69350         Check for fcntl.h.  In test program, include <errno.h>
69351         and <fcntl.h> if available.  Remove old K&R cruft from
69352         test program.  Check for common errors in GNU/Linux,
69353         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69354         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69355         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69356         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69357         name accordingly.
69358         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69359         accommodate new getcwd.c.
69360         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69361         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69362         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69363         that's all we need now.
69364
69365 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69366
69367         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69368         argp-parse.c depends on getopt internals, that means we should
69369         always use our getopt, to be on the safe side.
69370         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69371         order not to spoil the result of an eventual previous invocation
69372         of gl_GETOPT_SUBSTITUTE.
69373
69374 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69375
69376         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69377         redefinition warnings. To avoid them, include the defines
69378         in `#if !defined __need_getopt ... #endif'. The only place
69379         where __getopt_argv_const is used is in definitions
69380         of getopt_long and getopt_long_only below, which are as well
69381         protected by `#ifndef __need_getopt'.
69382         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69383         __need_getopt after including <stdio.h> and <unistd.h> These
69384         headers might have defined it.
69385
69386 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69387
69388         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69389
69390 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69393         (futimens): New function, which uses futimes if available.
69394         (futimens, utimens): Support timespec==NULL, with same semantics
69395         as utime and utimens.
69396         * lib/utimens.h (futimens): New decl.
69397
69398 2004-11-23  Jim Meyering  <jim@meyering.net>
69399
69400         * lib/getopt_.h: Remove trailing blanks.
69401
69402 2004-11-23  Jim Meyering  <jim@meyering.net>
69403
69404         * lib/__fpending.c: Add comment.
69405
69406 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69407
69408         * modules/canonicalize (Depends-on): Add xreadlink.
69409         Problem reported by James Youngman.
69410
69411 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69414         New macros.
69415         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69416         optopt): Use them instead of invoking ## directly; otherwise, the
69417         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69418
69419 2004-11-19  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/strtok_r.c: Move comments from here...
69422         * lib/strtok_r.h: ... to here.
69423
69424 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69427         implementations that mishandle size_t overflow.
69428
69429 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69430
69431         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69432         might fail.  Problem reported by Yoann Vandoorselaere.
69433         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69434         implementations that mishandle size_t overflow.
69435
69436 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * modules/canon-host (Depends-on): Add strdup.
69439
69440 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69443
69444 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * lib/canon-host.c: Include "strdup.h".
69447         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69448         Use strdup instead of malloc/strcpy to duplicate strings.
69449
69450         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69451         (human_space_before_unit): New constant.
69452         * lib/human.c (human_readable): Support it.
69453
69454         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69455         (xgetcwd): Set errno correctly when failing.
69456         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69457         the failure is actually due to a PATH_MAX problem.
69458
69459         Further getopt changes to make it more likely that glibc will
69460         buy the changes back.
69461         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69462         (getopt): Use it, so to preserve glibc semantic
69463         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69464         when compiling for libc.
69465         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69466         (getopt_long, getopt_long_only): Use it.
69467
69468         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69469         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69470         (getopt): Argv is now char * const *, as per standard.
69471         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69472         not char *__getopt_argv_const *.
69473         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69474         _getopt_long_only_r): Likewise.
69475         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69476         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69477         _getopt_long_r, _getopt_long_only_r): Likewise.
69478         * lib/getopt_.h (__getopt_argv_const): Remove.
69479         (getopt): Argv is now char * const *, as per standard.
69480
69481         * lib/getdate.y (tORDINAL): New token.
69482         (day, relunit): Allow it for relative times.
69483         (relative_time_table): Use tORDINAL for ordinals.
69484
69485 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69486
69487         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69488         Document that "second" isn't allowed as an ordinal number.
69489
69490 2004-11-16  Jim Meyering  <jim@meyering.net>
69491
69492         * modules/closeout (Depends-on): Add fpending.
69493
69494 2004-11-15  Jim Meyering  <jim@meyering.net>
69495
69496         * lib/closeout.c: Include "__fpending.h" once again.
69497         Include <stdbool.h>.
69498         (close_stdout): Don't fail just because stdout was closed initially,
69499         since some programs don't write to stdout in the normal course of
69500         operation (other than --version and --help), and we don't want this
69501         function to make e.g. `touch file >&-' fail.
69502         But do fail if it was closed and someone has tried to write to it.
69503         E.g., `printf foo >&-' must fail.
69504
69505 2004-11-13  Jim Meyering  <jim@meyering.net>
69506
69507         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69508
69509 2004-11-12  Simon Josefsson  <jas@extundo.com>
69510
69511         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69512         small doc fix is still pending.
69513
69514 2004-11-11  Simon Josefsson  <jas@extundo.com>
69515
69516         * modules/strtok_r: New file.
69517
69518         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69519         strtok_r.
69520
69521 2004-11-11  Simon Josefsson  <jas@extundo.com>
69522
69523         * m4/strtok_r.m4: New file.
69524
69525         * m4/getopt.m4: Replace opterr.
69526
69527 2004-11-11  Simon Josefsson  <jas@extundo.com>
69528
69529         * lib/strtok_r.h, strtok_r.c: New file.
69530
69531 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69534         of replacing opterr, getopt, etc.  This should handle the
69535         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69536
69537 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69538
69539         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69540         we can stop lying to compilers about the constness of argv when we
69541         are compiled outside glibc.
69542         (getopt, getopt_long, getopt_long_only): Use it.
69543         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69544         _getopt_internal, getopt): Likewise.
69545         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69546         _getopt_long_only_r): Likewise.
69547         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69548         _getopt_long_r, _getopt_long_only_r): Likewise.
69549
69550         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69551         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69552         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69553         the other external symbols.
69554         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69555         declaration, since the above renaming now works around collisions.
69556
69557 2004-11-11  Jim Meyering  <jim@meyering.net>
69558
69559         * lib/linebreak.c: Remove trailing blanks.
69560         * lib/alloca_.h: Likewise.
69561         * lib/acosl.c: Likewise.
69562         * lib/euidaccess.c: Likewise.
69563         * lib/allocsa.h: Likewise.
69564
69565 2004-11-10  Simon Josefsson  <jas@extundo.com>
69566
69567         * m4/getaddrinfo.m4: New file.
69568
69569 2004-11-10  Simon Josefsson  <jas@extundo.com>
69570
69571         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69572
69573 2004-11-10  Simon Josefsson  <jas@extundo.com>
69574
69575         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69576         getaddrinfo.
69577
69578         * modules/getaddrinfo: New file.
69579
69580 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69581
69582         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69583
69584 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69585
69586         * lib/mktime.c (SHR): New macro, which is a portable
69587         substitute for >> that should work even on Crays.
69588         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69589         Problem reported by Mark D. Baushke in
69590         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69591         * lib/getdate.y (SHR): Likewise.
69592         (tm_diff): Use it.
69593         * lib/strftime.c (SHR): Likewise.
69594         (tm_diff): Use it.
69595         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69596         quote_these_too, so that right shifts are well defined.  All uses
69597         changed.
69598
69599 2004-11-10  Jim Meyering  <jim@meyering.net>
69600
69601         Ensure that no close failure goes unreported.
69602         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69603         return early when it seems there's nothing to flush.
69604         Don't include __fpending.h.
69605
69606 2004-11-10  Jim Meyering  <jim@meyering.net>
69607
69608         * modules/closeout (Depends-on): Remove fpending.
69609
69610 2004-11-10  Jim Meyering  <jim@meyering.net>
69611
69612         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69613
69614 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69615
69616         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69617         gl_FUNC_STRFTIME.
69618         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69619         and AC_REQUIRE when possible, to avoid duplicate checks.
69620         Check for <wchar.h>.
69621
69622 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69625
69626 2004-11-09  Bruno Haible  <bruno@clisp.org>
69627
69628         * m4/sockpfaf.m4: New file.
69629
69630 2004-11-05  Bruno Haible  <bruno@clisp.org>
69631
69632         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69633         Reported by Mark D. Baushke <mdb@cvshome.org>.
69634
69635 2004-11-04  Bruno Haible  <bruno@clisp.org>
69636
69637         2004-09-11  Bruno Haible  <bruno@clisp.org>
69638                 * allocsa.valgrind: New file.
69639         2004-02-06  Bruno Haible  <bruno@clisp.org>
69640                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69641                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69642                 Reported by Christopher Seip <chris.seip@hp.com>.
69643
69644 2004-11-04  Bruno Haible  <bruno@clisp.org>
69645
69646         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69647         (Makefile.am): Distribute it.
69648
69649 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69650
69651         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69652         with errno == ERANGE if the buffer is too small.
69653         Problem reported by Mark D. Baushke.
69654
69655 2004-11-03  Albert Chin  <china@thewrittenword.com>
69656             Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69659         equivalent, substitute $ac_type for equivalent type rather than
69660         blindly using uint32_t *always* which won't work if uint32_t is not
69661         available.  Define _UINT32_T to work around typedef of uint32_t if
69662         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69663         2.5.1.
69664
69665 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * m4/jm-macros.m4: Sync from coreutils.
69668         (gl_MACROS): Check for mbrlen, for pathchk.
69669         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69670
69671 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69672
69673         * lib/xreadlink.c (MAXSIZE): New macro.
69674         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69675         size does not exceed MAXSIZE.  Avoid cast.
69676         As suggested by Mark D. Baushke in
69677         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69678         if readlink fails with buffer size just under MAXSIZE, try again
69679         with MAXSIZE.
69680
69681 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69682
69683         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69684
69685 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69686         and  Paul Eggert  <eggert@cs.ucla.edu>
69687
69688         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69689         (get_date): Overparenthesize to avoid GCC warning.
69690
69691 2004-11-02  Bruno Haible  <bruno@clisp.org>
69692
69693         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69694         returns void.
69695
69696 2004-11-02  Bruno Haible  <bruno@clisp.org>
69697
69698         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69699         function returns void.
69700
69701 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69704         fflush_unlocked, flockfile, funlockfile, funlockfile,
69705         fputs_unlocked, putc_unlocked.
69706
69707 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69708
69709         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69710         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69711         already declared.
69712
69713 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * modules/getdate (Files): Add doc/getdate.texi.
69716         (Depends-on): Add setenv, xalloc.
69717
69718 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69719
69720         * lib/getdate.y: Add support for TZ="foo" within a date string.
69721         Fix some bugs near time_t boundaries.  Reject dates with
69722         out-of-range components, e.g., "Sept 31".
69723         Include <stdlib.h>, "setenv.h", "xalloc.h".
69724         (ISDIGIT_LOCALE): Remove; unused.
69725         Note that the TZ and time functions used here are not reentrant.
69726         (mktime_ok, get_tz): New functions.
69727         (TZBUFSIZE): New constant.
69728         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69729         This requires that we sometimes generate our own TZ="XXX..." setting.
69730
69731 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69732
69733         * doc/getdate.texi: New file, from coreutils with modifications for
69734         the new TZ parsing.
69735
69736 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69737
69738         * lib/mktime.c (not_equal_tm): Remove redundant check.
69739
69740 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * modules/regex (lib_SOURCES): Add regex.c.
69743         Reported by James Youngman in
69744         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69745
69746 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69747
69748         * lib/getdate.y: Use Bison 1.875 features, and some minor
69749         code cleanups.  This change does not affect semantics.
69750         Don't include <stdlib.h>; no longer needed.
69751         Don't include unlocked-io.h; only the "#if TEST" code uses
69752         stdio, and performance isn't crucial there.
69753         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69754         Bison 1.875 features as described below.
69755         All uses of "PC." replaced by "pc->".
69756         (YYSTYPE): Add a forward declaration.
69757         (yylex, yyerror): Use full prototypes in forward decls.
69758         Use "%pure-parser" rather than obsolescent "%pure_parser".
69759         Use %parse-param and %lex-param instead of obsolescent
69760         YYPARSE_PARAM and YYLEX_PARAM.
69761         (meridian_table, month_and_day_table, time_units_table,
69762         relative_time_table, time_zone_table, military_table,
69763         lookup_zone, lookup_word, get_date):
69764         Use NULL instead of 0 where appropriate.
69765         (to_hour): Avoid abort (), to avoid a dependency on
69766         stdlib.h.
69767         (yyerror, yylex): Now accepts parser_control * arg.
69768         (main) [TEST]: Use '\0' rather than 0 for char.
69769
69770 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69771
69772         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69773
69774 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69775
69776         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69777         It's now the caller's responsibility to handle the case where
69778         !HAVE_GETPAGESIZE && !defined getpagesize.
69779
69780         * lib/mktime.c (leapyear): Arg is long int, not int.
69781
69782 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69783
69784         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69785
69786 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69787
69788         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69789         missing.  Problem reported by James Youngman.
69790
69791 2004-10-16  Simon Josefsson  <jas@extundo.com>
69792
69793         * gnulib-tool: Fix comments.  Fix parse problem.
69794         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69795
69796 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69797
69798         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69799         implementation of getopt_long.  Problem reported by Alexander Taler in:
69800         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69801
69802 2004-10-15  Bruno Haible  <bruno@clisp.org>
69803
69804         * gnulib-tool: Untabify. Initialize supplied_libname.
69805         (func_usage): More homogenous output.
69806         (func_modules_transitive_closure, func_modules_to_filelist,
69807         func_emit_lib_Makefile_am): New functions.
69808         (func_import): New function, extracted from big case statement. Use
69809         func_get_license, func_modules_transitive_closure,
69810         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69811         opt_lgpl. Don't use test -a, as it's not portable.
69812         (func_create_testdir): Use func_modules_transitive_closure,
69813         func_modules_to_filelist, func_emit_lib_Makefile_am.
69814
69815 2004-10-15  Bruno Haible  <bruno@clisp.org>
69816
69817         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69818
69819 2004-10-15  Bruno Haible  <bruno@clisp.org>
69820
69821         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69822         the portions belonging to each module.
69823         Suggested by Derek Robert Price <derek@ximbiot.com>.
69824
69825 2004-10-12  Simon Josefsson  <jas@extundo.com>
69826
69827         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69828         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69829         to real functions.
69830
69831 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69832
69833         * modules/vsnprintf: New file.
69834
69835 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69836
69837         * m4/vsnprintf.m4: New file.
69838
69839 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69840
69841         * lib/vsnprintf.h: New file.
69842         * lib/vsnprintf.c: New file.
69843
69844 2004-10-11  Bruno Haible  <bruno@clisp.org>
69845
69846         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69847         vsnprintf.
69848
69849 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69852
69853 2004-10-07  Bruno Haible  <bruno@clisp.org>
69854
69855         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69856         fits into the provided buffer.
69857
69858 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         * lib/diacrit.c, diacrit.h: Add GPL notice.
69861
69862         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69863         notice.
69864         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69865         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69866         This avoids a potential constant-folding bug.
69867
69868 2004-10-05  Bruno Haible  <bruno@clisp.org>
69869
69870         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69871         for the declaration of strsep.
69872
69873 2004-10-05  Bruno Haible  <bruno@clisp.org>
69874
69875         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69876
69877 2004-10-04  Simon Josefsson  <jas@extundo.com>
69878
69879         * modules/memmem: New file.
69880         * tests/test-memmem.c: New file.
69881         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69882
69883 2004-10-04  Simon Josefsson  <jas@extundo.com>
69884
69885         * m4/memmem.m4: New file.
69886
69887 2004-10-04  Simon Josefsson  <jas@extundo.com>
69888
69889         * lib/memmem.h: New file.
69890         * lib/memmem.c: New file, taken from glibc.
69891
69892 2004-10-04  Simon Josefsson  <jas@extundo.com>
69893
69894         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69895         '#ifdef USE_UNLOCKED_IO'.
69896
69897 2004-10-04  Simon Josefsson  <jas@extundo.com>
69898
69899         * config/srclist.txt: Add memmem from glibc.
69900
69901 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69904
69905         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69906         modules/exclude, modules/getdate, modules/getline,
69907         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69908         modules/getusershell, modules/linebuffer, modules/md5,
69909         modules/mountlist, modules/posixtm, modules/readtokens,
69910         modules/readutmp, modules/regex, modules/sha1,
69911         modules/version-etc, modules/yesno:
69912         Remove dependency on unlocked-io.
69913
69914 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69915
69916         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69917
69918         * m4/unlocked-io.m4: Add copyright notice.
69919         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69920
69921 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69924         * lib/xmalloc.c (xmemdup): Likewise.
69925         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69926         XFREE): Remove these long-obsolescent macros.
69927         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69928         * lib/xstrdup.c: Remove.
69929
69930         * lib/regex.c (re_comp): Cast gettext return value to char *,
69931         Problem reported by Martin Neitzel via Mark D. Baushke.
69932
69933 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69934
69935         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69936         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69937         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69938         regex.c, sha1.c, version-etc.c, yesno.c:
69939         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69940         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69941         the includer's responsibility.
69942
69943         Sync from coreutils.
69944
69945         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69946         points to the start of a string, as the C Standard says the
69947         resulting behavior is undefined.
69948
69949         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69950         simple -> simple_backups, numbered_existing ->
69951         numbered_existing_backups, numbered -> numbered_backups
69952         to avoid shadowing problems.  All uses changed.
69953         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69954         * lib/backupfile.c (check_extension, numbered_backup):
69955         Rename locals to avoid shadowing 'basename'.
69956         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69957         once.
69958
69959         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69960         * lib/.cvsignore: Add getopt.h.
69961
69962 2004-10-04  Bruno Haible  <bruno@clisp.org>
69963
69964         * modules/README: New file.
69965         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69966         not a module.
69967
69968 2004-10-02  Jim Meyering  <jim@meyering.net>
69969
69970         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69971
69972 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69973
69974         * modules/strsep: New file.
69975
69976 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69977
69978         * m4/strsep.m4: New file.
69979
69980 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69981
69982         * lib/strsep.h: New file.
69983         * lib/strsep.c: New file.
69984
69985 2004-10-01  Simon Josefsson  <jas@extundo.com>
69986
69987         * lib/snprintf.c (snprintf): Handle size==0.
69988
69989 2004-10-01  Simon Josefsson  <jas@extundo.com>
69990             Bruno Haible  <bruno@clisp.org>
69991
69992         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69993         (snprintf): Declare 'args'.
69994
69995 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69996
69997         * lib/snprintf.c: Remove comments as to why each header is needed.
69998
69999 2004-10-01  Bruno Haible  <bruno@clisp.org>
70000
70001         * MODULES.html.sh: Add strsep.
70002
70003 2004-09-30  Simon Josefsson  <jas@extundo.com>
70004
70005         * modules/snprintf: New file.
70006
70007 2004-09-30  Simon Josefsson  <jas@extundo.com>
70008
70009         * m4/snprintf.m4: New file.
70010
70011 2004-09-30  Simon Josefsson  <jas@extundo.com>
70012
70013         * lib/snprintf.h, lib/snprintf.c: New files.
70014
70015 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70016
70017         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70018         (hol_entry_help): Never translate an empty string.
70019         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70020         * lib/argp.h (OPTION_NO_TRANS): New option.
70021
70022 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70023
70024         * modules/argp (Maintainer): Replace Simon Josefsson
70025         by Sergey Poznyakoff.
70026
70027 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70030         changes merged back into glibc.
70031
70032 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70035
70036 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70037
70038         * lib/xvasprintf.c: Include xalloc.h.
70039         (xvasprintf): Use xalloc_die, not xmalloc_die.
70040
70041 2004-09-29  Bruno Haible  <bruno@clisp.org>
70042
70043         * modules/alloca-opt: New file, derived from modules/alloca.
70044         * modules/allocsa: Depend on alloca-opt instead of alloca.
70045         * modules/setenv: Likewise.
70046         * modules/vasnprintf: Likewise.
70047         * MODULES.html.sh: Add alloca-opt.
70048
70049 2004-09-28  Simon Josefsson  <jas@extundo.com>
70050
70051         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70052         LGPL, and to replace license template from GPL to LGPL.
70053
70054 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70055
70056         * modules/dummy: Change license to LGPL.
70057
70058 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70059
70060         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70061
70062 2004-09-24  Simon Josefsson  <jas@extundo.com>
70063
70064         * modules/minmax (License): Change from GPL to LGPL.
70065
70066 2004-09-23  Simon Josefsson  <jas@extundo.com>
70067
70068         * gnulib-tool (--import): Typo.
70069
70070 2004-09-23  Simon Josefsson  <jas@extundo.com>
70071
70072         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70073
70074 2004-09-22  Bruno Haible  <bruno@clisp.org>
70075
70076         * modules/*: Add 'License' field.
70077         * gnulib-tool: Accept --extract-license option.
70078         (func_get_license): New function.
70079
70080 2004-09-21  Bruno Haible  <bruno@clisp.org>
70081
70082         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70083         Reported by Simon Josefsson.
70084
70085 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70088         gl_AC_TYPE_LONG_LONG.
70089
70090 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70093
70094 2004-09-18  Simon Josefsson  <jas@extundo.com>
70095         and  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70098         calls with autoreconf.  Define GL_LIB.
70099
70100 2004-09-14  Karl Berry  <karl@gnu.org>
70101
70102         * config/srclist.txt: unsync setenv.c, sigh.
70103
70104 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70105
70106         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70107         Problem reported by Bruno Haible in:
70108         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70109
70110 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * config/srclist.txt: Comment out argp-pvh.c.
70113
70114 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70115
70116         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70117         in case some system header has #define'd it.  Problem reported by
70118         Soeren D. Schulze in
70119         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70120
70121 2004-09-09  Karl Berry  <karl@gnu.org>
70122
70123         * regex.[ch]: delete from the root.  These were supposed to be
70124                 synced with emacs cvs, but this has not happened for about
70125                 a year, and anyway nothing else uses emacs regex.[ch].
70126                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70127                 lib/regex[.ch] is untouched.
70128
70129 2004-09-09  Bruno Haible  <bruno@clisp.org>
70130
70131         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70132
70133 2004-09-09  Bruno Haible  <bruno@clisp.org>
70134
70135         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70136         modifications.
70137         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70138
70139 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70140
70141         * modules/xvasprintf: New file.
70142         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70143
70144 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70145
70146         * lib/xvasprintf.h: New file.
70147         * lib/xvasprintf.c: New file.
70148         * lib/xasprintf.c: New file.
70149
70150 2004-09-08  Bruno Haible  <bruno@clisp.org>
70151
70152         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70153
70154 2004-09-08  Bruno Haible  <bruno@clisp.org>
70155
70156         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70157         length is > INT_MAX.
70158         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70159         more.
70160
70161 2004-09-08  Bruno Haible  <bruno@clisp.org>
70162
70163         * lib/stdint_.h: New file, taken from GNU clisp.
70164
70165 2004-09-08  Bruno Haible  <bruno@clisp.org>
70166             Oskar Liljeblad  <oskar@osk.mine.nu>
70167
70168         * modules/stdint: New file.
70169         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70170
70171 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70172
70173         Import from coreutils.
70174         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70175         strings on unbounded length.  alloca's performance benefits aren't
70176         that important here.
70177         (V_STRDUP): Remove.
70178         (parse_with_separator): New function, with most of the internals
70179         of the old parse_user_spec.  Allow user to omit both user and group,
70180         for compatibility with FreeBSD.
70181         Clone only the user name, not the entire spec.
70182         Do not set *uid, *gid unless entirely successful.
70183         Avoid memory leak in some failing cases.
70184         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70185         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70186         (parse_user_spec): Rewrite to use parse_with_separator.
70187
70188 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70189
70190         * modules/userspec: Don't depend on alloca.
70191
70192 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70195
70196 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70197
70198         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70199         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70200         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70201
70202 2004-08-16  Simon Josefsson  <jas@extundo.com>
70203
70204         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70205         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70206         Add --dry-run for --import.
70207         Let user provided command line parameters override configure.ac
70208         settings.
70209
70210 2004-08-12  Simon Josefsson  <jas@extundo.com>
70211
70212         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70213         as discussed with Paul Eggert in threads rooted at
70214         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70215         and
70216         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70217         Before, the test was empty, and relied on ELIDE_CODE in source
70218         code.)
70219         (gl_PREREQ_GETOPT): New macro.
70220         (gl_GETOPT): Use them.
70221
70222 2004-08-12  Simon Josefsson  <jas@extundo.com>
70223
70224         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70225         * lib/getopt_.h: Renamed from getopt.h.
70226
70227 2004-08-12  Simon Josefsson  <jas@extundo.com>
70228
70229         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70230         Change default library name from libfoo to libgnu.
70231         Now, if you have a configure.ac that says:
70232                 gl_SOURCE_BASE(gl)
70233                 gl_M4_BASE(gl/m4)
70234                 gl_MODULES(error getopt etcetera)
70235                 gl_INIT
70236         you can import all you need by running:
70237                 ../gnulib/gnulib-tool --import
70238
70239         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70240         (Makefile.am): Rewrite, use logic from argz.
70241         (Include): Use <getopt.h> instead of "getopt.h".
70242
70243 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70244
70245         * modules/argp (Files): Add m4/unlocked-io.m4.
70246         (Depends-on): Add extensions.
70247
70248 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70251         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70252         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70253         Check for program_invocation_name, program_invocation_short_name,
70254         flockfile, funlockfile, features.h, _getopt_long_only_r.
70255
70256 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70257
70258         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70259         its complicated substitute.
70260         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70261         and program_invocation_name.
70262         (__argp_basename) [!_LIBC]: Remove; the only use was
70263         replaced by its body.
70264         (__argp_short_program_name): Change condition from
70265         !defined __argp_short_program_name to
70266         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70267         to match argp-namefrob.h.
70268         (__argp_failure): Don't assume strerror_r returns char *.
70269         * lib/argp-parse.c (N_): Define unconditionally.
70270         (argp_default_options): Fill out initializers with 0 to avoid
70271         gcc warnings.
70272
70273 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70274
70275         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70276         getopt1.c.
70277
70278 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70279
70280         Merge from coreutils.
70281
70282         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70283
70284         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70285         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70286
70287 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70288
70289         Merge from coreutils.
70290
70291         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70292         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70293         for Reliant Unix 5.43.
70294
70295         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70296         (union fooround): Use uintmax_t, not long int.
70297         The rest is a merge from libc:
70298         [defined _LIBC]: Include <shlib-compat.h>.
70299         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70300
70301         * lib/settime.c (settime): Recode to avoid warning with
70302         Sun Forte C 6U2.
70303
70304         * lib/strverscmp.c: Convert to UTF-8.
70305
70306 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70307
70308         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70309         m4/uintmax_t.m4.
70310
70311 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70312
70313         * modules/xalloc-die: New file.
70314         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70315
70316         * modules/md5 (Files): Add m4/uint32_t.m4.
70317         * modules/sha1: Renamed from modules/sha.
70318         (Files):
70319         Rename lib/sha.h to lib/sha1.h.
70320         Rename lib/sha.c to lib/sha1.c.
70321         Rename m4/sha.m4 to m4/sha1.m4.
70322         (lib_SOURCES): Likewise.
70323         (configure.ac): Rename gl_SHA to gl_SHA1.
70324         (Include): sha.h -> sha1.h.
70325
70326 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70329         * m4/sha1.m4: Renamed from sha.m4.
70330         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70331
70332 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * lib/obstack.h (obstack_empty_p):
70335         Don't assume that chunk->contents is suitably aligned.
70336         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70337         Likewise. Problem reported by Benno in
70338         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70339
70340         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70341         readable.  This could be improved further but it'd take some work.
70342
70343 2004-08-08  Simon Josefsson  <jas@extundo.com>
70344
70345         * modules/xgethostname (Depends-on): Remove exit and error (not
70346         used).
70347
70348         * modules/getpass-gnu: Add getpass.h.
70349         (Depends-on): Add stdbool.
70350         * modules/getpass: Add getpass.h.
70351
70352 2004-08-08  Simon Josefsson  <jas@extundo.com>
70353
70354         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70355         Check getpass declaration.
70356
70357 2004-08-08  Simon Josefsson  <jas@extundo.com>
70358
70359         * lib/xgethostname.c: Don't include error.h (not used).
70360
70361         * lib/getpass.h: Add.
70362         * lib/getpass.c: Include getpass.h first.
70363
70364 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70365
70366         * lib/xalloc-die.c: New file.
70367         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70368         All uses removed.
70369         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70370         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70371         xalloc-die.c.
70372         (_, N_, xalloc_die): Move to xalloc-die.c.
70373         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70374         so that we needn't mess with xalloc_msg_memory_exhausted.
70375
70376         * lib/sha1.h: Renamed from sha.h.
70377         (SHA1_H): Renamed from _SHA_H.
70378         (sha1_ctx): Renamed from sha_ctx.
70379         (sha1_init_ctx): Renamed from sha_init_ctx.
70380         (sha1_process_block): Renamed from sha_process_block.
70381         (sha1_process_bytes): Renamed from sha_process_bytes.
70382         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70383         (sha1_read_ctx): Renamed from sha_read_ctx.
70384         (sha1_stream): Renamed from sha_stream.
70385         (sha1_buffer): Renamed from sha_buffer.
70386         * lib/sha1.c: Likewise; renamed from sha.c.
70387         Do not include <sys/types.h>.
70388         Include <stddef.h> rather than <stdlib.h>.
70389
70390 2004-08-08  Bruno Haible  <bruno@clisp.org>
70391
70392         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70393         FILESYSTEM_PREFIX_LEN.
70394         * lib/progreloc.c: Likewise.
70395         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70396
70397 2004-08-06  Simon Josefsson  <jas@extundo.com>
70398
70399         * modules/progname (Depends-on): Don't depend on stdbool.
70400
70401 2004-08-06  Simon Josefsson  <jas@extundo.com>
70402
70403         * modules/getsubopt: New file.
70404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70405         getsubopt.
70406
70407 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70408
70409         More merge from coreutils.
70410
70411         * m4/utimens.m4, m4/utimecmp.m4: New files.
70412         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70413         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70414         prereq.m4, sha.m4: Import changes from coreutils.
70415
70416 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70417
70418         More merge from coreutils.
70419         * modules/raise, modules/readtokens0, modules/utimens:
70420         * modules/utimecmp, module/xnanosleep: New files.
70421         * modules/strftime: Add lib/strftime.h.
70422         Change include from <time.h> to "strftime.h".
70423         * modules/yesno: Add lib/yesno.h.
70424         * modules/backupfile: Remove lib/addext.c.
70425         * modules/euidaccess: Add stat-macros.h.
70426         * modules/canonicalize, modules/euidaccess,
70427         modules/filemode, modules/lchown, modules/makepath,
70428         modules/rmdir, modules/stat: Likewise.
70429
70430 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70431
70432         Merge from tar.
70433         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70434         SIZE_MAX is a valid preprocessor constant.
70435         (__argp_basename): Change from "#ifndef _LIBC"
70436         to "#ifndef __argp_short_program_name", so that
70437         we don't compile these functions for tar.
70438
70439         More merges from coreutils.
70440         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70441         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70442         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70443         * lib/addext.c: Remove; no longer needed.
70444         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70445         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70446         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70447         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70448         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70449         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70450         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70451         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70452         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70453         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70454         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70455         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70456         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70457         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70458         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70459         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70460         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70461         Import changes from coreutils.
70462
70463 2004-08-05  Simon Josefsson  <jas@extundo.com>
70464
70465         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70466
70467 2004-08-05  Simon Josefsson  <jas@extundo.com>
70468
70469         * m4/getsubopt.m4: New file.
70470
70471 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70472
70473         Merge from coreutils.
70474
70475         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70476         * m4/getcwd-path-max.m4: New files.
70477
70478         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70479         FILESYSTEM_PREFIX_LEN ->
70480         FILE_SYSTEM_PREFIX_LEN.
70481         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70482         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70483         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70484         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70485
70486         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70487         prerequisite modules now handle the DOS stuff.
70488         Don't check for unistd.h.
70489
70490 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70491
70492         Merge from coreutils.
70493
70494         * lib/.gdb-history: Remove; this doesn't belong here.
70495
70496         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70497         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70498         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70499         * lib/getcwd.c: New files.
70500
70501         * lib/dirname.h: Include <stdbool.h>.
70502         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70503         for consistency with POSIX terminology.  All uses changed.
70504         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70505         (strip_trailing_slashes): Use bool for booleans.
70506         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70507
70508         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70509         sometimes returns a positive errno value even when it succeeds.
70510         (print_errno_message) [!LIBC]: Fall back on strerror if
70511         __strerror_r fails.
70512
70513         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70514         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70515         (longest_relative_suffix): New function.
70516         (path_concat): Use it.  Assume first argument is not NULL.
70517         Port to DOS.  Omit redundant separators.
70518         Report an error instead of returning NULL.
70519         Use mempcpy instead of memcpy.
70520         (xpath_concat): Remove: not declared or used.
70521
70522         * lib/same.h: Include <stdbool.h>
70523         (same_name): Return bool, not int.
70524         * lib/same.c (same_name): Likewise.
70525         (errno): Don't declare; we assume C89 or better now.
70526
70527         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70528         if not already defined.
70529
70530         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70531         * lib/dup-safer.c (errno): Likewise.
70532
70533 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70534
70535         Merge from coreutils.
70536         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70537         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70538         * modules/path-concat: Don't depend on strdup.
70539
70540 2004-08-03  Simon Josefsson  <jas@extundo.com>
70541
70542         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70543         * lib/progname.h: Don't include stdbool.h.
70544
70545 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70546
70547         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70548         * MODULES.html.sh (func_all_modules): Remove fatal.
70549
70550 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70553
70554 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70555
70556         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70557         working.
70558
70559 2004-08-02  Simon Josefsson  <jas@extundo.com>
70560
70561         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70562         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70563         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70564
70565 2004-08-01  Simon Josefsson  <jas@extundo.com>
70566
70567         * lib/xgetdomainname.c: Include stdlib.h, for free().
70568
70569 2004-07-19  Bruno Haible  <bruno@clisp.org>
70570
70571         * MODULES.html.sh (func_all_modules): Add dummy.
70572
70573 2004-07-16  Simon Josefsson  <jas@extundo.com>
70574
70575         * modules/dummy: New file.
70576
70577 2004-07-16  Simon Josefsson  <jas@extundo.com>
70578
70579         * lib/dummy.c: New file.
70580
70581 2004-07-16  Bruno Haible  <bruno@clisp.org>
70582
70583         * lib/backupfile.h: Add extern "C" for C++.
70584         * lib/closeout.h: Likewise.
70585         * lib/copy-file.h: Likewise.
70586         * lib/findprog.h: Likewise.
70587         * lib/full-write.h: Likewise.
70588         * lib/pathname.h: Likewise.
70589         * lib/progname.h: Likewise.
70590         * lib/stpcpy.h: Likewise.
70591         * lib/stpncpy.h: Likewise.
70592         * lib/strcase.h: Likewise.
70593         * lib/strstr.h: Likewise.
70594         * lib/xalloc.h: Likewise.
70595
70596         * lib/mbswidth.h: Add extern "C" for C++.
70597         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70598
70599 2004-07-13  Robert Millan  <robertmh@gnu.org>
70600
70601         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70602
70603 2004-07-09  Simon Josefsson  <jas@extundo.com>
70604
70605         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70606         failed without this.)
70607
70608 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * modules/chown (Files): Add lib/fchown-stub.c, since
70611         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70612
70613 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70614
70615         * lib/fchown-stub.c: New file.
70616
70617 2004-06-24  Jim Meyering  <jim@meyering.net>
70618
70619         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70620
70621 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         * modules/argz: Omit "#include".
70624
70625         * MODULES.html.sh (func_all_modules): Add calloc, to match
70626         2004-06-01 addition of calloc module.
70627
70628 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70629
70630         * m4/argz.m4: New file, which is autoupdated from libtool.
70631
70632 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70633
70634         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70635         libtool.
70636
70637 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         * config/srclist-update: Don't insist on "USA." before the
70640         close-comment, as libtool omits the period and puts the */ on a
70641         separate line.
70642         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70643         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70644
70645 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70646
70647         * modules/argz: New file.
70648         * MODULES.html.sh (func_all_modules): Add argz.
70649
70650 2004-06-12  Jim Meyering  <jim@meyering.net>
70651         and  Paul Eggert  <eggert@cs.ucla.edu>
70652
70653         * modules/hash (Files): Add lib/xalloc.h.
70654         * modules/pipe (Depends-on): Add wait-process.
70655         * modules/stat (Depends-on): Add xalloc.
70656         * modules/userspec (Files): Add lib/userspec.h.
70657         * modules/xstrto
70658
70659         Upgrade from gettext-0.13.
70660         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70661         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70662         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70663
70664 2004-06-10  Jim Meyering  <jim@meyering.net>
70665
70666         * lib/calloc.c: New file.
70667
70668 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70669
70670         * lib/getdate.y (yylex): Allow space between sign and number.
70671         Problem reported by Dan Jacobson.
70672
70673 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70674
70675         Merge from coreutils CVS.
70676
70677         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70678         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70679         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70680         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70681         xstrtol.m4: Fix copyright date and/or serial number.
70682
70683         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70684         See if we need an fchown replacement.
70685         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70686         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70687         and use the replacement function if we detect either defect.
70688
70689         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70690         gl_UTIMECMP.
70691
70692 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70693         and  Jim Meyering  <jim@meyering.net>
70694
70695         Merge from coreutils CVS.
70696
70697         * lib/stat-macros.h: New file, with contents from file-type.h
70698         and coreutils' system.h.
70699         * lib/file-type.c: Include "stat-macros.h".
70700         * lib/file-type.h (file_type): Move all macro definitions to new file,
70701         stat-macros.h.
70702
70703         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70704         Wrap old code with this conditional.
70705         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70706         function that does not dereference symlinks.
70707         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70708
70709         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70710         dependency problems.
70711         (xreadlink): Accept new arg SIZE, for efficiency.
70712         All decls and uses changed.
70713         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70714
70715         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70716         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70717
70718         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70719         sysexits.h.
70720
70721 2004-06-01  Jim Meyering  <jim@meyering.net>
70722
70723         * m4/calloc.m4: New file.
70724
70725 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70728         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70729         Also, fix a typo in a diagnostic.
70730
70731 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70734         or AC_FUNC_REALLOC.
70735
70736 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70737
70738         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70739         macros to be defined.
70740         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70741         the allocator returns NULL because the requested size is zero.
70742
70743 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70744
70745         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70746         var.  Add comment explaining why libc still defines it.  This
70747         merges the following patch from glibc:
70748         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70749
70750 2004-05-20  Andreas Schwab  <schwab@suse.de>
70751
70752         * m4/free.m4: Replace free if it not known to work, not the other
70753         way round.
70754
70755 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70756
70757         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70758         present in glibc since revision 1.1 of this file.
70759         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70760         obstack_alignment_mask, obstack_alloc, obstack_base,
70761         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70762         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70763         obstack_grow0, obstack_init, obstack_int_grow,
70764         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70765         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70766         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70767         nonexistent functions.
70768
70769 2004-05-18  Karl Berry  <karl@gnu.org>
70770
70771         * config/srclist.txt: break link for vasnprintf.c.
70772
70773 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         Port obstack to the AS/400, where pointers are 16 bytes wide and
70776         you cannot cast an integer to a valid pointer.  This patch is
70777         currently waiting to be integrated into glibc; see
70778         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70779
70780         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70781         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70782         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70783         (struct obstack): temp member is now a union of a pointer and
70784         an integer, instead of an integer.  All integer uses changed.
70785         This does not affect the physical layout of struct obstack,
70786         except on hosts (like the AS/400) where the size or alignment of
70787         void * is greater than that of ptrdiff_t.
70788         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70789         __STDC__)]: Store temporary in pointer member of union, not
70790         integer member.
70791         * lib/obstack.c: Include <stddef.h>, for offsetof.
70792         (struct fooalign): Remove; it doesn't need a name.
70793         (union fooround): Change double to long double, and add void *.
70794         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70795         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70796         not a macro.  Hence the values are always int; so remove all
70797         casts-to-int in uses.
70798
70799 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70802         we can get this patch merged into glibc.
70803
70804 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70805             Paul Eggert  <eggert@cs.ucla.edu>
70806
70807         * m4/argp: Depend on alloca.
70808
70809 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70810             Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70813         freecoding.
70814
70815 2004-05-17  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70818         precision that consists of a '.' followed by an empty digit string.
70819         Patch by Tor Lillqvist <tml@iki.fi>.
70820
70821 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70824         for backward compatibility with older code.  We need our own
70825         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70826         it under some other name, and our alloca.h will define it.
70827
70828 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70829             Derek Price  <derek@ximbiot.com>
70830
70831         * lib/alloca.c: Include <alloca.h>, to get our interface.
70832         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70833         include <alloca.h> first.  Use C89 prototype for alloca; this
70834         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70835         Use #elif for simplicity, since we can assume C89 now.
70836         Don't try to source the system alloca.h since it will not be found
70837         and to prevent recursively including its replacement.
70838         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70839         * lib/regex.c: Likewise.
70840
70841 2004-05-16  Derek Price  <derek@ximbiot.com>
70842             Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         getline cleanup.  This changes the getndelim2 API: both order of
70845         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70846         no delimiter).
70847
70848         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70849         interface does that.
70850         (getline): Always use getdelim, so that we don't have two
70851         copies of this code.
70852         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70853         if available.
70854         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70855         (GETNDELIM2_MAXIMUM): New macro.
70856         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70857         instead of the old practice of delim2==0.  All callers changed.
70858         Return -1 on overflow, instead of returning junk.
70859         Do not set *linesize unless allocation succeeds.
70860         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70861         that we include sys/types.h.
70862         * lib/getnline.h: Likewise.
70863         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70864         (getndelim2): Reorder arguments.
70865         * lib/getnline.c (getnline, getndelim):
70866         Don't discard the NMAX argument.
70867         (getnline): Invoke getndelim, to avoid code duplication.
70868         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70869         of (size_t) -1 by callers of the getnline family.
70870
70871 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70872
70873         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70874         Check for gettimeofday.
70875         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70876         Check for settimeofday, stime.
70877
70878 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70879
70880         * lib/nanosleep.c (suspended): Change its type from int to
70881         sig_atomic_t volatile.
70882         (first_call): Make it private to rpl_nanosleep, and have it
70883         be zero initially as that's a bit faster.
70884         (my_usleep): Round up fractional times instead of truncating them,
70885         as this is the usual meaning for 'sleep'.
70886
70887         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70888         doesn't work.
70889         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70890         (ENOSYS): Define if not defined.
70891         (settime): Fall back on stime if it exists and settimeofday fails.
70892         But don't bother with fallbacks if a method fails with errno == EPERM.
70893
70894 2004-05-11  Jim Meyering  <jim@meyering.net>
70895
70896         Prior to this change, the save_cwd caller required read access to the
70897         current directory on most systems (ones with the fchdir function).
70898
70899         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70900         fails, try write-only, and finally, resort to using xgetcwd.
70901
70902 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70903
70904         * lib/obstack.c, obstack.h: Import changes from libc.
70905
70906 2004-04-28  Bruno Haible  <bruno@clisp.org>
70907
70908         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70909         also implicitly appends .exe to executables.
70910         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70911         accepts Windows pathnames.
70912         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70913         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70914         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70915         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70916         Reported by Derek Robert Price <derek@ximbiot.com>.
70917
70918 2004-04-21  Karl Berry  <karl@gnu.org>
70919
70920         * config/srclist.txt (localcharset.c): break sync.
70921
70922 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70923
70924         * m4/host-os.m4: Add a copyright notice.
70925
70926 2004-04-20  Jim Meyering  <jim@meyering.net>
70927
70928         Change UTILS_ to gl_ in AC_DEFINE'd names.
70929         Change utils_- and jm_-prefixed variables, too.
70930         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70931         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70933
70934         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70935         Don't emit trailing blanks.
70936         Also rename jm_-prefixed variables to have gl_ prefix.
70937
70938         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70939         Also rename jm_-prefixed variables to have gl_ prefix.
70940
70941         * m4/jm-macros.m4: Reflect the renamings.
70942         * m4/prereq.m4: Likewise.
70943
70944 2004-04-20  Jim Meyering  <jim@meyering.net>
70945
70946         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70947         memory.
70948
70949 2004-04-20  Jim Meyering  <jim@meyering.net>
70950             Bruno Haible  <bruno@clisp.org>
70951
70952         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70953         memory when realloc fails.
70954
70955 2004-04-19  Jim Meyering  <jim@meyering.net>
70956
70957         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70958         now that readutmp.c may call `free (0)'.
70959
70960 2004-04-19  Bruno Haible  <bruno@clisp.org>
70961
70962         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70963         * m4/inttypes_h.m4: Likewise.
70964         * m4/stdint_h.m4: Likewise.
70965         * m4/intmax_t.m4: Likewise.
70966         * m4/uintmax_t.m4: Likewise.
70967
70968 2004-04-18  Jim Meyering  <jim@meyering.net>
70969
70970         * m4/prereq.m4: Don't forbid jm_ prefix.
70971
70972         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70973         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70974         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70975         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70976         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70977         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70978         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70979         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70980         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70981         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70982         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70983         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70984         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70985         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70986         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70987         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70988         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70989         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70990         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70991
70992 2004-04-18  Jim Meyering  <jim@meyering.net>
70993
70994         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70995         failure, don't leak memory and do call END_UTMP_ENT.
70996
70997 2004-04-16  Jim Meyering  <jim@meyering.net>
70998
70999         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71000         coreutils' stat program.
71001         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71002
71003 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71004
71005         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71006         C89.
71007         (CHAR_BIT): Remove, since we assume C89.
71008         Include <stdint.h> if available, as per current Autoconf CVS advice.
71009
71010 2004-03-31  Jim Meyering  <jim@meyering.net>
71011
71012         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71013         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71014         * m4/xalloc.m4: Likewise.
71015
71016 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71017
71018         Merge from coreutils.
71019
71020         * m4/inttostr.m4: New file.
71021         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71022         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71023         Require gl_CLOCK_TIME.
71024         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71025
71026 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71027
71028         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71029         not bool, to be more consistent with Unix conventions.
71030         Suggested by Bruno Haible.
71031
71032         Merge from coreutils.
71033
71034         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71035         * lib/umaxtostr.c: New files.
71036
71037         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71038         the usual <time.h> dance.
71039         (get_date): Change signature to support fractional time stamps.
71040         All callers changed.
71041         * lib/getdate.y: Include "getdate.h" first, as we can now
71042         assume C89 and don't need to worry about 'const'.
71043         Similarly, include "unlocked-io.h" near start, not in middle.
71044         Include <limits.h>.
71045         (textint.value): Use long int rather than int.
71046         (textint.digits): Use size_t rather than int.
71047         (BILLION, LOG10_BILLION): New constants.
71048         (parser_control): New member rel_ns.  Members day_ordinal,
71049         time_zone, month, day, hour, minutes, rel_year, rel_month,
71050         rel_day, rel_hour, rel_minutes, rel_seconds
71051         are now long int, not int.  Member seconds is now struct timespec,
71052         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71053         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71054         not int.
71055         (%union.intval): Now long int, not int.
71056         New member timespec.
71057         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71058         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71059         (spec): Now is a timespec or an item list.
71060         (timespec, items): New nonterminals.
71061         (time, rel, relunit, number, get_date):
71062         Add support for fractional seconds.
71063         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71064         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71065         (to_hour): First arg is now long int, not int.
71066         (to_year): Returns long int, not int.
71067         Don't treat year -70 like 70.
71068         (tm_diff): Returns long int, not int.
71069         (lookup_word): Use bool instead of int when appropriate.
71070         (yylex): Use size_t for count, not int.
71071         Detect overflow when parsing large integer constants.
71072         Add support for fractions.
71073         (get_date): Make pointers 'const' if possible.
71074         Use more-portable code to detect integer overflow.
71075         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71076         Don't use ctime; it's not reliable if the year has >4 digits.
71077
71078         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71079         This is for compatibility with BSD.
71080
71081         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71082         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71083         From coreutils' system.h.
71084
71085         * lib/userspec.c: Don't include "posixver.h".
71086         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71087         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71088         compatible extension.  Simplify code by removing a boolean int
71089         that was always nonzero if a string was nonnull.
71090
71091 2004-03-30  Jim Meyering  <jim@meyering.net>
71092
71093         Merge from coreutils.
71094
71095         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71096         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71097         on some systems one must include <grp.h> before it.
71098         Reported by Christian Krackowizer.
71099
71100 2004-03-30  Jim Meyering  <jim@meyering.net>
71101
71102         Merge from coreutils.
71103
71104         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71105
71106         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71107         an empty input stream.
71108
71109         * lib/readtokens.c: Include <stdbool.h>.
71110         (readtoken): Use `size_t' rather than int/long.
71111         All callers adjusted.
71112         Use `bool' rather than `int' where appropriate.
71113         Use memset rather than an explicit loop.
71114         Use x2nrealloc rather than xrealloc.
71115         Allow the use of `\0' as a delimiter.
71116         (readtokens): Likewise.
71117         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71118
71119 2004-03-30  Jim Meyering  <jim@meyering.net>
71120
71121         * m4/realloc.m4: Remove file, since now it does no more than
71122         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71123         the `configure.ac' section of module/realloc.
71124         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71125
71126 2004-03-30  Bruno Haible  <bruno@clisp.org>
71127
71128         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71129         nonnull.
71130
71131 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71132
71133         Merge changes to getloadavg.c from coreutils and Emacs.
71134
71135         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71136         Define to an expression, not to the empty string.
71137         Include cloexec.h and xalloc.h.
71138         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71139         Use set_cloexec_flag rather than rolling our own.
71140         * lib/cloexec.c, lib/cloexec.h: New files.
71141
71142 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71143
71144         * m4/cloexec.m4: New file.
71145
71146 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71147
71148         * lib/getopt.h: Sync with libc CVS.
71149
71150 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71151             Bruno Haible  <bruno@clisp.org>
71152
71153         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71154         mbswidth.
71155
71156 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71157             Bruno Haible  <bruno@clisp.org>
71158
71159         * lib/mbswidth.h: Include <wchar.h> only if
71160         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71161         <wchar.h>.
71162         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71163
71164 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71165
71166         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71167         Sync with libc CVS.
71168         * lib/getopt_int.h: New file, also synced from libc.
71169
71170 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71171
71172         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71173         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71174         Bring back getopt.c, getopt.h, getopt1.c.
71175
71176 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71177
71178         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71179         All uses changed.  Check for sa_sigaction member; this fixes
71180         a bug first reported by Jason Andrade in
71181         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71182
71183 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71184
71185         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71186         '#if' expressions.  Unlike the code it replaces, it does not
71187         depend on (defined _SC_PAGESIZE).  However, it does depend on
71188         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71189         first reported by Jason Andrade in
71190         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71191
71192 2004-02-25  Simon Josefsson  <jas@extundo.com>
71193
71194         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71195
71196 2004-02-25  Simon Josefsson  <jas@extundo.com>
71197
71198         * lib/strdup.h: New file.
71199         * lib/strdup.c: Include it.
71200         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71201         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71202
71203 2004-02-23  Karl Berry  <karl@gnu.org>
71204
71205         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71206         (from fencepost.gnu.org:/gd/gnuorg).
71207
71208 2004-02-23  Karl Berry  <karl@gnu.org>
71209
71210         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71211         * config/srclist.txt: add maintain/standards documents.
71212
71213 2004-02-18  Bruno Haible  <bruno@clisp.org>
71214
71215         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71216         Reported by Derek Robert Price <derek@ximbiot.com>.
71217
71218 2004-02-16  Karl Berry  <karl@gnu.org>
71219
71220         * config/mkinstalldirs, install-sh: update from automake.
71221
71222 2004-02-06  Karl Berry  <karl@gnu.org>
71223
71224         * m4/po.m4: update from gettext 0.14.1.
71225
71226 2004-02-06  Karl Berry  <karl@gnu.org>
71227
71228         * lib/config.charset: update from gettext 0.14.1.
71229
71230 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71231
71232         Add comments and code, prompted by suggestions from Bruno Haible
71233         for sh-quote.
71234         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71235         describing the enum quoting_style values.
71236         * lib/quotearg.c (quotearg_alloc): New function.
71237         (quotearg_buffer_restyled): Treat lone { and } as special.
71238         Treat = as special.  Work around bug with older shells
71239         that "see" a '\' that is really the 2nd byte of a multibyte char.
71240         Quote empty string with shell_quoting_style.
71241
71242 2004-02-03  Bruno Haible  <bruno@clisp.org>
71243
71244         * m4/pipe.m4: New file, from GNU gettext.
71245
71246 2004-02-03  Bruno Haible  <bruno@clisp.org>
71247
71248         * lib/pipe.h: New file, from GNU gettext.
71249         * lib/pipe.c: New file, from GNU gettext.
71250
71251 2004-01-27  Bruno Haible  <bruno@clisp.org>
71252
71253         * m4/execute.m4: New file, from GNU gettext.
71254
71255 2004-01-27  Bruno Haible  <bruno@clisp.org>
71256
71257         * lib/execute.h: New file, from GNU gettext.
71258         * lib/execute.c: New file, from GNU gettext.
71259         * lib/w32spawn.h: New file, from GNU gettext.
71260
71261 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71262
71263         Merge from diffutils.
71264
71265         * lib/file-type.c (file_type): Add typed memory objects.
71266         * lib/file-type.h (S_TYPEISTMO): New macro.
71267
71268         * lib/c-stack.h (c_stack_action): Remove argv argument.
71269         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71270         (die): Don't calculate message unless segv_action returns.
71271         (get_stack_location, min_address_from_argv, max_address_from_argv,
71272         volatile stack_base, volatile_stack_size): Remove.
71273         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71274         that every segmentation violation is a stack overflow.  (Ouch!)
71275         See Debian bug 136249 (still outstanding) for more info about why
71276         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71277
71278 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71279
71280         Exit-status fix from coreutils.
71281
71282         Use exit_failure consistently in place of EXIT_FAILURE,
71283         so that program exit statuses are consistent on failure.
71284
71285         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71286         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71287         * lib/argmatch.h: Comment fix to match the above.
71288         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71289         Now a macro referring to exit_failure, instead of a separate
71290         variable.  Include "exitfail.h" to get it.
71291         * lib/xstrtol.h: Include "exitfail.h".
71292         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71293
71294         * lib/long-options.c (parse_long_options): Use prototype
71295         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71296         for clarity.
71297
71298 2004-01-21  Jim Meyering  <jim@meyering.net>
71299
71300         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71301         so as not to conflict with a different-sized __mktime_internal
71302         function in GNU libc.
71303         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71304         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71305
71306 2004-01-20  Karl Berry  <karl@gnu.org>
71307
71308         * config/config.guess: update from config.
71309
71310         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71311
71312 2004-01-20  Bruno Haible  <bruno@clisp.org>
71313
71314         Safer stack allocation.
71315         * lib/setenv.c: Include allocsa.h.
71316         (alloca): Remove fallback definition.
71317         (freea): Remove macro.
71318         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71319         instead of freea.
71320
71321 2004-01-20  Bruno Haible  <bruno@clisp.org>
71322
71323         * m4/eealloc.m4: New file, from GNU gettext.
71324
71325 2004-01-20  Bruno Haible  <bruno@clisp.org>
71326
71327         * m4/allocsa.m4: New file, from GNU gettext.
71328
71329 2004-01-20  Bruno Haible  <bruno@clisp.org>
71330
71331         * lib/xallocsa.h: New file, from GNU gettext.
71332         * lib/xallocsa.c: New file, from GNU gettext.
71333
71334 2004-01-20  Bruno Haible  <bruno@clisp.org>
71335
71336         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71337
71338 2004-01-20  Bruno Haible  <bruno@clisp.org>
71339
71340         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71341         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71342         specially.
71343
71344 2004-01-20  Bruno Haible  <bruno@clisp.org>
71345
71346         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71347         patch.
71348
71349 2004-01-20  Bruno Haible  <bruno@clisp.org>
71350
71351         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71352
71353 2004-01-20  Bruno Haible  <bruno@clisp.org>
71354
71355         * lib/eealloc.h: New file.
71356
71357 2004-01-20  Bruno Haible  <bruno@clisp.org>
71358
71359         * lib/binary-io.h: Avoid warnings on Cygwin.
71360
71361 2004-01-20  Bruno Haible  <bruno@clisp.org>
71362
71363         * lib/allocsa.h: New file, from GNU gettext.
71364         * lib/allocsa.c: New file, from GNU gettext.
71365
71366 2004-01-18  Karl Berry  <karl@gnu.org>
71367
71368         * doc/gpl.texi, doc/lgpl.texi: new files.
71369
71370 2004-01-18  Karl Berry  <karl@gnu.org>
71371
71372         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71373         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71374
71375 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71376
71377         Merge from coreutils.
71378
71379         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71380         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71381         (gl_DEFAULT_POSIX2_VERSION): Move
71382         the documentation from 'configure' into 'config.hin',
71383         so that 'configure --help' isn't burdened by it and
71384         we don't have to worry about its formatting there.
71385         Reword the documentation so that it's more succinct
71386         and can be run together into a single paragraph.
71387         * m4/same.m4 (gl_SAME): Check for pathconf.
71388
71389 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71390
71391         Merge from coreutils.
71392
71393         * lib/posixver.c: Include posixver.h.
71394
71395         * lib/same.c: Include <stdbool.h>, <limits.h>.
71396         (_POSIX_NAME_MAX): Define if not defined.
71397         (MIN): New macro.
71398         (same_name): If file names are silently truncated, report
71399         that the file names are the same if they are the same after
71400         the silent truncation.
71401
71402         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71403         conversion function.
71404         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71405         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71406         longer needed.
71407
71408 2004-01-15  Jim Meyering  <jim@meyering.net>
71409
71410         Merge from coreutils.
71411
71412         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71413         if no library is required.
71414         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71415         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71416         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71417         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71418         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71419         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71420         value, $ac_cv_search_crypt, if it's "none required".
71421         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71422         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71423         not gl_FUNC_GETLOADAVG.
71424         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71425         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71426
71427 2004-01-15  Jim Meyering  <jim@meyering.net>
71428
71429         Merge from coreutils.
71430
71431         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71432         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71433         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71434
71435         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71436         optional configure-time default.
71437
71438         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71439
71440         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71441
71442 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71443
71444         Merge from coreutils.
71445
71446         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71447         value, $ac_cv_search_nanosleep, if it's "none required".
71448
71449 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71450
71451         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71452         with like-named macro in fnmatch.c.
71453         (EXT): Use an internal constant instead.
71454
71455         Merge fnmatch patches from glibc.
71456         * lib/fnmatch.c (mbsinit): Remove define.
71457         Add libc_hidden_ver (__fnmatch, fnmatch).
71458         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71459         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71460
71461 2004-01-14  Karl Berry  <karl@gnu.org>
71462
71463         * config/install-sh: update from automake.
71464
71465 2004-01-13  Karl Berry  <karl@gnu.org>
71466
71467         * config/install-sh: update from automake.
71468
71469 2004-01-09  Karl Berry  <karl@gnu.org>
71470
71471         * config/install-sh: update from automake.
71472
71473 2004-01-05  Karl Berry  <karl@gnu.org>
71474
71475         * config/config.{sub,guess}: update from config.
71476
71477 2003-12-31  Karl Berry  <karl@gnu.org>
71478
71479         * config/depcomp: update from automake.
71480
71481 2003-12-14  Karl Berry  <karl@gnu.org>
71482
71483         * lib/config.charset: update from gettext-runtime.
71484
71485 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71486
71487         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71488         Bug reported by Alfred M. Szmidt.
71489
71490 2003-12-03  Bruno Haible  <bruno@clisp.org>
71491
71492         * m4/gettext.m4: Upgrade from gettext-0.13.
71493         * m4/po.m4: Upgrade from gettext-0.13.
71494         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71495         * m4/intmax.m4: New file, from gettext-0.13.
71496         * m4/printf-posix.m4: New file, from gettext-0.13.
71497
71498 2003-11-29  Karl Berry  <karl@gnu.org>
71499
71500         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71501
71502 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71503             Bruno Haible  <bruno@clisp.org>
71504
71505         * lib/printf-parse.h: Don't include sys/types.h.
71506         (ARG_NONE): New macro.
71507         (char_directive): Change type of *arg_index fields to size_t.
71508         * lib/printf-parse.c: Don't include sys/types.h.
71509         (SSIZE_MAX): Remove macro.
71510         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71511         Remove unnecessary overflow check.
71512         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71513         fields.
71514
71515 2003-11-25  Bruno Haible  <bruno@clisp.org>
71516
71517         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71518
71519 2003-11-25  Bruno Haible  <bruno@clisp.org>
71520
71521         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71522         gt_TYPE_SSIZE_T.
71523
71524 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71525
71526         * modules/alloca: Remove dependency on xalloc.
71527
71528 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71529
71530         * lib/alloca.c: Remove dependency on xalloc module.
71531         (xalloc_die): Remove.
71532         (memory_full) [!defined emacs]: New macro.
71533         [!defined emacs]: Don't include xalloc.h.
71534         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71535         address arithmetic overflows.  Change datatypes a bit to avoid
71536         unnecessary casts.
71537
71538 2003-11-22  Jim Meyering  <jim@meyering.net>
71539
71540         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71541         s/size/size_t/.
71542
71543 2003-11-21  Karl Berry  <karl@gnu.org>
71544
71545         * config/config.{sub,guess}: update from config.
71546
71547 2003-11-18  Karl Berry  <karl@gnu.org>
71548
71549         * config/config.{sub,guess}: update from config.
71550
71551         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71552
71553 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71554
71555         * README: Mention that S+T cannot overflow if S is the size of
71556         an existing object and T is sufficiently small.
71557
71558 2003-11-17  Jim Meyering  <jim@meyering.net>
71559
71560         On systems without utime and without a utimes function capable of
71561         dealing with a NULL struct utimbuf* argument, this utime replacement
71562         could -- in unusual circumstances -- leak a file descriptor.
71563         * lib/utime.c: Include <unistd.h> and <errno.h>.
71564         (utime_null): Be sure to close `fd' and to preserve errno.
71565         Reported by Geoff Collyer via Arnold Robbins.
71566
71567 2003-11-17  Bruno Haible  <bruno@clisp.org>
71568
71569         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71570         (Depends-on): Add xsize.
71571
71572 2003-11-17  Bruno Haible  <bruno@clisp.org>
71573
71574         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71575
71576 2003-11-17  Bruno Haible  <bruno@clisp.org>
71577
71578         * lib/vasnprintf.c (alloca): Remove fallback definition.
71579         (freea): Remove definition.
71580         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71581         Reported by Paul Eggert.
71582
71583 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71584             Bruno Haible  <bruno@clisp.org>
71585
71586         Protect against address arithmetic overflow.
71587         * lib/printf-args.h: Include stddef.h.
71588         (arguments): Change type of field 'count' to size_t.
71589         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71590         'unsigned int' where appropriate.
71591         * lib/printf-parse.h: Include sys/types.h.
71592         (char_directive): Change type of *arg_index fields to ssize_t.
71593         (char_directives): Change type of fields 'count', max_*_length to
71594         size_t.
71595         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71596         (SSIZE_MAX): Define fallback value.
71597         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71598         instead of 'int' where appropriate. Check a_allocated, d_allocated
71599         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71600         * lib/vasnprintf.c: Include xsize.h.
71601         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71602         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71603         overflow. Avoid wraparound when converting a width or precision from
71604         decimal to binary.
71605
71606 2003-11-16  Bruno Haible  <bruno@clisp.org>
71607
71608         Update from GNU gettext.
71609         * lib/printf-parse.c: Generalize to it can be compiled for wide
71610         strings.
71611         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71612         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71613         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71614         SNPRINTF): New macros.
71615         Don't include <alloca.h> if the file is used inside libintl.
71616         (local_wcslen): New function, for Solaris 2.5.1.
71617         (VASNPRINTF): Use it instead of wcslen.
71618
71619 2003-11-16  Bruno Haible  <bruno@clisp.org>
71620
71621         * lib/xsize.h (xmax): New function.
71622         (xsum, xsum3, xsum4): Declare as "pure" functions.
71623
71624 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71625
71626         * modules/xalloc (Files): Undo latest change, since xalloc.h
71627         no longer needs SIZE_MAX or PTRDIFF_MAX.
71628
71629 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71630
71631         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71632         gl_PTRDIFF_MAX.
71633
71634 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71635
71636         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71637         "return", to pacify some unknown compiler.  Problem reported
71638         by Joerg Schilling.
71639
71640 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71641
71642         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71643         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71644         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71645         heuristic is just as accurate as far as we know, and it removes a
71646         dependency on size_max.m4 and ptrdiff_max.m4.
71647
71648 2003-11-11  Bruno Haible  <bruno@clisp.org>
71649
71650         * modules/xsize (Files): Add m4/size_max.m4.
71651         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71652
71653 2003-11-11  Bruno Haible  <bruno@clisp.org>
71654
71655         * m4/size_max.m4: New file.
71656         * m4/ptrdiff_max.m4: New file.
71657         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71658         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71659         (gl_XALLOC): Invoke it.
71660
71661 2003-11-11  Bruno Haible  <bruno@clisp.org>
71662
71663         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71664         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71665         defined.
71666
71667 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71668
71669         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71670         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71671         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71672         From Bruno Haible.
71673         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71674         not (size_t) -1, since it's defined here.
71675
71676 2003-11-09  Karl Berry  <karl@gnu.org>
71677
71678         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71679
71680 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71681
71682         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71683         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71684         Reject sizes of exactly SIZE_MAX bytes.
71685         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71686         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71687
71688 2003-11-05  Bruno Haible  <bruno@clisp.org>
71689
71690         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71691         SIZE_MAX defined in <limits.h> on Solaris.
71692
71693 2003-11-04  Jim Meyering  <jim@meyering.net>
71694
71695         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71696         variable names, rather than @VAR@.
71697         * modules/poll: Likewise.
71698
71699 2003-11-04  Bruno Haible  <bruno@clisp.org>
71700
71701         * modules/xsize: New file.
71702         * modules/linebreak: Depend on xsize.
71703         * MODULES.html.sh (func_all_modules): Add xsize.
71704
71705 2003-11-04  Bruno Haible  <bruno@clisp.org>
71706
71707         * m4/xsize.m4: New file.
71708
71709 2003-11-04  Bruno Haible  <bruno@clisp.org>
71710
71711         * lib/xsize.h: New file.
71712         * lib/linebreak.c: Include xsize.h.
71713         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71714         argument for overflow.
71715         Suggested by Paul Eggert.
71716
71717 2003-11-03  Karl Berry  <karl@gnu.org>
71718
71719         * config/config.{guess,sub}: update from config.
71720
71721 2003-11-03  Jim Meyering  <jim@meyering.net>
71722
71723         * modules/userspec (lib_SOURCES): Add userspec.h.
71724         (Include): Add "userspec.h".
71725         Improve description.
71726
71727 2003-11-03  Jim Meyering  <jim@meyering.net>
71728
71729         * lib/userspec.c: Include "userspec.h".
71730         * lib/userspec.h: New file.
71731
71732 2003-11-03  Bruno Haible  <bruno@clisp.org>
71733
71734         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71735
71736 2003-11-03  Bruno Haible  <bruno@clisp.org>
71737
71738         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71739         available, to avoid (extremely rare) race condition.
71740         Suggested by Paul Eggert.
71741
71742 2003-11-02  Karl Berry  <karl@gnu.org>
71743
71744         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71745
71746 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71747
71748         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71749         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71750         (read_filesystem_list): Set and use me_type_malloced.
71751         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71752         whatever the type happens to be), for brevity and consistency.
71753         Check for size calculation overflow on Alphas running OSF/1.
71754
71755 2003-10-31  Jim Meyering  <jim@meyering.net>
71756
71757         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71758
71759         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71760
71761 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71762             Bruno Haible  <bruno@clisp.org>
71763
71764         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71765         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71766
71767 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71768
71769         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71770         netbsd*-gnu*.  Suggested by Robert Millan.
71771
71772 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71773
71774         * modules/group-member: Depend on stdbool.
71775
71776 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71777
71778         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71779
71780 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71781
71782         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71783         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71784         after the 'gnu' in these cases.  This fixes some bugs in the
71785         previous change, and is based on suggestions by Robert Millan.
71786
71787 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71788
71789         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71790         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71791         no longer needed.
71792         * lib/quotearg.c (quotearg_n_options): Use it.
71793         * lib/group-member.c: Include <stdbool.h>.
71794         (free_group_info): Arg is now const *; don't free arg.
71795         (get_group_info): Now returns bool and accepts struct group_info *,
71796         rather than returning a malloc'ed struct group_info *.
71797         All uses changed.  Check for overflow in internal size calculation.
71798
71799         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71800         rather than xmalloc/xrealloc.
71801         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71802         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71803         conformance bug: the old code used a pointer after freeing the
71804         storage that it addressed.
71805         * lib/hash.c (hash_initialize): Simplify the code by using
71806         xalloc_oversized rather than doing it by hand.
71807         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71808         the buffer preserved.  Use free and xmalloc instead.
71809         * lib/quotearg.c (quotearg_n_options): Likewise.
71810         Use a simpler test for size overflow.  Don't use xalloc_oversized
71811         because unsigned int might be wider than size_t (!); this suggests
71812         that we should switch from unsigned int to size_t for slot numbers.
71813
71814 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71815
71816         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71817         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71818         NetBSD kernels.  Requested by Richard Stallman.
71819
71820 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71821
71822         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71823         to allocate the returned structure.  Do not allocate a subarray,
71824         as x2nrealloc will do that.
71825         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71826         instead of xnrealloc.
71827         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71828
71829 2003-10-27  Bruno Haible  <bruno@clisp.org>
71830
71831         * lib/stdbool_.h: Better support for BeOS.
71832
71833 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71834
71835         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71836         now uses inline.
71837
71838 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71839
71840         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71841         callers that want to do their own size-overflow checking.  Include
71842         <stdbool.h>, since xalloc_oversized returns bool.
71843         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71844         to use xalloc_oversized.
71845
71846         Add two functions x2realloc, x2nrealloc, for programs that grow
71847         arrays dynamically by doubling their sizes.
71848         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71849         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71850         New functions.
71851
71852         Port to C99 semantics for 'inline' of external functions.
71853         Bug reported by Bruno Haible.
71854         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71855         with the old contents of xnmalloc.
71856         (xnmalloc, xmalloc): Use it.
71857         (xnrealloc_inline): New static inline function,
71858         with the old contents of xnrealloc.
71859         (xnrealloc, xrealloc): Use it.
71860
71861         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71862         that.
71863
71864 2003-10-26  Karl Berry  <karl@gnu.org>
71865
71866         * config/srclist.txt (COPYING.DOC): no longer available from
71867         /gd/gnuorg; don't know where the ultimate source is.
71868
71869 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71870
71871         Fix several address-calculation bugs in the hash modules,
71872         plus some minor code cleanup.
71873
71874         * lib/hash.h: Include <stdbool.h>, for bool.
71875         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71876         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71877         hash_get_n_entries, hash_get_max_bucket_length,
71878         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71879         hash_rehash): Use size_t rather than unsigned.
71880         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71881         hash_get_n_buckets_used, hash_get_n_entries,
71882         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71883         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71884         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71885         Likewise.
71886         (SIZE_MAX): Define if not defined.
71887         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71888         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71889         hash_print):
71890         Use const * when possible.
71891         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71892         (check_tuning): Fix bug: if tuning parameters were very close to
71893         0 or 1, rounding errors could have caused subscript violations.
71894         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71895         (hash_initialize): Add 'fail:' label
71896         to free table and return NULL, and use it to simplify code.
71897         Use calloc rather than clearing the storage ourself.
71898         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71899         buffer size calculations.
71900         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71901         Include <stddef.h>, for size_t.
71902         * lib/hash-pjw.c (hash_pjw): Likewise.
71903         Switch to method described by Bruno Haible.
71904         Include <limits.h>, for CHAR_BIT.
71905         (SIZE_BITS): New macro.
71906
71907 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71908
71909         * m4/getline.m4 (AM_FUNC_GETLINE):
71910         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71911         hosts.  Problem reported by Derek Robert Price in
71912         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71913         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71914         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71915
71916 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71917
71918         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71919         ceiling the allocation at NMAX bytes rather than silently
71920         discarding input bytes before NMAX is reached.  This makes
71921         a difference only if NMAX exceeds SIZE_MAX / 2.
71922
71923         * lib/obstack.c: Merge from glibc.
71924         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71925         Add libc_hidden_def (_obstack_newchunk).
71926         (_obstack_free) [! defined _LIBC]: Remove.
71927         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71928         a clone of the function body.
71929         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71930         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71931
71932         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71933         glibc.
71934         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71935         arg to memcpy.
71936
71937         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71938         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71939         Don't use lvalue casts, as GCC plans to remove support for them
71940         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71941         was also present in the non-GCC version, indicating that this
71942         code had always been buggy and had never been widely used.
71943         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71944         Use the fast variant of each macro, rather than copying the
71945         definiens of the fast variant; that way, we'll be more likely to
71946         catch future bugs in the fast variants.
71947
71948 2003-10-20  Bruno Haible  <bruno@clisp.org>
71949
71950         * modules/wait-process: New file.
71951         * MODULES.html.sh (func_all_modules): Add wait-process.
71952
71953 2003-10-20  Bruno Haible  <bruno@clisp.org>
71954
71955         * m4/wait-process.m4: New file.
71956
71957 2003-10-20  Bruno Haible  <bruno@clisp.org>
71958
71959         * lib/wait-process.h: New file, from GNU gettext.
71960         * lib/wait-process.c: New file, from GNU gettext.
71961
71962 2003-10-19  Jim Meyering  <jim@meyering.net>
71963
71964         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71965         HPUX 10.20.
71966
71967 2003-10-18  Karl Berry  <karl@gnu.org>
71968
71969         * config/config.guess: update from config.
71970
71971 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71972
71973         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71974         (getgroups): First arg is int, not size_t.
71975         Don't let 'free' mangle errno.
71976
71977 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71978
71979         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71980
71981 2003-10-16  Karl Berry  <karl@gnu.org>
71982
71983         * config/config.{guess,sub}: update from config.
71984
71985 2003-10-16  Jim Meyering  <jim@meyering.net>
71986
71987         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71988         memcpy.
71989
71990 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71991
71992         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71993         (SIZE_MAX): Remove.
71994         (new_exclude, add_exclude_file): Initial size no longer needs to
71995         be a power of 2.
71996         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71997         our own address arithmetic overflow checking.
71998
71999         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72000         (fnmatch): Do not alloca more than 2000 wide characters;
72001         instead, use malloc for large buffers.
72002         Check for address arithmetic overflow, and return -1
72003         with errno set to ENOMEM in that case.
72004         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72005         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72006         instead, return -1.  Check for address arithmetic overflow.
72007
72008 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72009
72010         Handle invalid suffixes and overflow independently, so that
72011         callers can treat them independently as needed.  Fix some bugs in
72012         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72013         suffix for a human-readable blocksize.  The major caller-visible
72014         change is the addition of a new
72015         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72016         that both overflow and suffix chars were found.
72017
72018         * lib/human.c (humblock): Don't check separately for invalid suffix
72019         char; that is xstrtoumax's job (now that its bug is fixed).
72020         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72021         INTMAX_MAX]: New macros.
72022         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72023         TYPE_MAXIMUM): New macros.
72024         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72025         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72026         if overflow occurs, as it's what __strtol does and it's more useful
72027         in practice.
72028         (__xstrtol): If __strtol reports some error other than ERANGE,
72029         reflect it to the caller as LONGINT_INVALID.  If it reports
72030         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72031         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72032         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72033         value.
72034         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72035         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72036         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72037         [defined UINTMAX_MAX]: New macros.
72038
72039 2003-10-14  Bruno Haible  <bruno@clisp.org>
72040
72041         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72042
72043 2003-10-14  Bruno Haible  <bruno@clisp.org>
72044
72045         * m4/sig_atomic_t: New file, from GNU gettext.
72046         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72047
72048 2003-10-14  Bruno Haible  <bruno@clisp.org>
72049
72050         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72051         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72052         Also use volatile where needed.
72053
72054 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72055
72056         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72057         Change maintainer from Bruno Haible to 'all'.
72058
72059 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72060
72061         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72062
72063 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72064
72065         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72066         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72067         and define in terms of the other primitives.
72068         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72069         (SIZE_MAX): Define if not already defined.
72070         (array_size_overflow): New function.
72071         (xalloc_die): Abort instead of exiting if 'error' returns.
72072         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72073         (xmalloc, xrealloc): Use them.
72074         (xcalloc): Check for address arithmetic overflow.
72075         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72076         a bit faster than strcpy.
72077
72078 2003-10-10  Simon Josefsson  <jas@extundo.com>
72079
72080         * modules/argp (Depends-on): Add restrict and strcase.
72081
72082 2003-10-10  Simon Josefsson  <jas@extundo.com>
72083
72084         * m4/argp.m4: Add AC_C_INLINE.
72085
72086 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72087
72088         Merge getpass from libc, plus a few fixes.
72089
72090         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72091         Include <stdbool.h>.
72092         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72093         __fsetlocking to empty.
72094         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72095         do include <bits/libc-lock.h>.
72096         Do not include <fcntl.h>; not needed.
72097         [_LIBC]: Include <wchar.h>.
72098         (NOTCANCEL_MODE): New macro.
72099         (flockfile, funlockfile) [_LIBC]: New macros.
72100         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72101         [!_LIBC]: New macros.
72102         (call_fclose): New function.
72103         (getpass): Use it.  Save tty stream separately; this simplifies the
72104         code and makes it more reliable if stdin happens to equal stdout.
72105         Invoke __fsetlocking on tty.
72106         Handle thread cancellation if needed.
72107         Namespace cleanup (use __tcgetattr, __getline).
72108         Use bool for Booleans.
72109         [USE_IN_LIBIO]: Handle wide streams.
72110         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72111         stream might go where.
72112
72113         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72114         doesn't have to include <stdio.h> before us.
72115         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72116         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72117         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72118         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72119         if not declared, so that we can use getpass.c code from libc without
72120         rewriting it.
72121         (flockfile, ftrylockfile, funlockfile): New macros.
72122
72123 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72124
72125         * modules/getpass: Depend on stdbool.
72126
72127 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72128
72129         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72130
72131 2003-10-07  Karl Berry  <karl@gnu.org>
72132
72133         * config/config.{guess,sub}: update from config.
72134
72135 2003-10-06  Jim Meyering  <jim@meyering.net>
72136             Bruno Haible  <bruno@clisp.org>
72137
72138         This lets translators provide better translations for the
72139         "Written by ..." part of --version output.
72140         * lib/version-etc.h: Include stdarg.h.
72141         (version_etc_copyright): Declare as readonly.
72142         (version_etc): Make this function variadic with a NULL-terminated list
72143         of author name strings.
72144         (version_etc_va): New declaration.
72145         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72146         (version_etc_copyright): Declare as readonly.
72147         (version_etc_va): New function. Provide a different translatable string
72148         for each possible number of authors < 10. Abbreviate when there are 10
72149         authors or more.
72150         (version_etc): Make this function variadic. Call version_etc_va.
72151         Suggestion from Gary V. Vaughan.
72152
72153         * lib/long-options.h (parse_long_options): Change prototype: the
72154         authors string is moved to the end and becomes variadic.
72155         * lib/long-options.c: Include stdarg.h.
72156         (parse_long_options): Make this function variadic, too.
72157         Call version_etc_va, not version_etc.
72158
72159 2003-10-06  Bruno Haible  <bruno@clisp.org>
72160
72161         * modules/version-etc-2: Remove file.
72162         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72163
72164 2003-10-06  Bruno Haible  <bruno@clisp.org>
72165
72166         * modules/fatal-signal: New file.
72167         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72168
72169 2003-10-06  Bruno Haible  <bruno@clisp.org>
72170
72171         * m4/fatal-signal.m4: New file.
72172         * m4/signalblocking.m4: New file, from GNU gettext.
72173
72174 2003-10-06  Bruno Haible  <bruno@clisp.org>
72175
72176         * lib/version-etc-2.h: Remove file.
72177         * lib/version-etc-2.c: Remove file.
72178
72179 2003-10-06  Bruno Haible  <bruno@clisp.org>
72180
72181         * lib/fatal-signal.h: New file, from GNU gettext.
72182         * lib/fatal-signal.c: New file, from GNU gettext.
72183
72184 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72185
72186         * README: Rework advice for preventing empty .o files.
72187         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72188         not <sys/types.h>.
72189
72190 2003-10-04  Karl Berry  <karl@gnu.org>
72191
72192         * lib/argp*: update from libc.
72193
72194 2003-10-04  Karl Berry  <karl@gnu.org>
72195
72196         * config/config.{guess,sub}: update from config.
72197
72198 2003-10-02  Bruno Haible  <bruno@clisp.org>
72199
72200         * modules/lchown (Include): Add lchown.h.
72201         * modules/time_r (Include): Use "..." syntax.
72202         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72203
72204 2003-10-01  Simon Josefsson  <jas@extundo.com>
72205
72206         * MODULES.html.sh (func_all_modules): Move gethostname from section
72207         'based on' to section 'lacking' POSIX:2001.
72208
72209 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72210
72211         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72212         to output mode on the same stream.
72213
72214 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72215
72216         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72217         Fix arg typo in previous patch.
72218
72219 2003-09-28  Jim Meyering  <jim@meyering.net>
72220
72221         * lib/error.c: Correct cpp indentation.
72222
72223 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72224
72225         * modules/free: New file.
72226
72227 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72228
72229         * m4/free.m4: New file.
72230
72231 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72232
72233         * lib/minmax.h (MIN, MAX)
72234         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72235         Omit the special code that used __typeof__, since we worry that
72236         it could be more trouble than it's worth.  See:
72237         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72238         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72239
72240         * lib/free.c: New file.
72241
72242 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72243
72244         Trivial fixes to Makefile.am parts of module listings.
72245         * modules/strstr: Append strstr.h to lib_SOURCES.
72246         * modules/strcase: Likewise, for strcase.h.
72247
72248 2003-09-27  Karl Berry  <karl@gnu.org>
72249
72250         * config/mkinstalldirs: update from automake.
72251
72252 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72253
72254         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72255         (error_tail): Do not loop, reallocating temporary buffer, since
72256         the output cannot contain more wide characters than the input
72257         contains bytes, the size must be big enough already.  This avoids
72258         one potential size overflow calculation.  Check for size overflow
72259         when calculating temporary buffer size.  Free temporary buffer
72260         when done, if it was allocated with malloc; this plugs a memory
72261         leak.  Remove casts from void * to pointers, that are no longer
72262         needed now that we're assuming C89 or better.
72263
72264         Merge error changes from glibc.
72265
72266         * lib/error.c, error.h: Update copyright notice header to match glibc.
72267         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72268         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72269         Disable cancellation while printing error.
72270         * lib/error.h: Prepend __ to parameter names.
72271
72272 2003-09-26  Jim Meyering  <jim@meyering.net>
72273
72274         * lib/error.c (error_tail): Move some declarations
72275         into inner scope where the local variables are used.
72276
72277 2003-09-26  Bruno Haible  <bruno@clisp.org>
72278
72279         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72280         stpncpy().
72281         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72282
72283 2003-09-26  Bruno Haible  <bruno@clisp.org>
72284
72285         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72286         (stpncpy): Define as alias for gnu_stpncpy.
72287         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72288
72289 2003-09-25  Simon Josefsson  <jas@extundo.com>
72290
72291         * lib/xgetdomainname.h: New file.
72292         * lib/xgetdomainname.c: New file.
72293
72294 2003-09-25  Simon Josefsson  <jas@extundo.com>
72295             Bruno Haible  <bruno@clisp.org>
72296
72297         * modules/getdomainname: New file.
72298         * modules/xgetdomainname: New file.
72299         * MODULES.html.sh (func_all_modules): Add getdomainname,
72300         xgetdomainname.
72301
72302 2003-09-25  Simon Josefsson  <jas@extundo.com>
72303             Bruno Haible  <bruno@clisp.org>
72304
72305         * m4/getdomainname.m4: New file.
72306
72307 2003-09-25  Simon Josefsson  <jas@extundo.com>
72308             Bruno Haible  <bruno@clisp.org>
72309
72310         * lib/getdomainname.h: New file.
72311         * lib/getdomainname.c: New file.
72312
72313 2003-09-25  Karl Berry  <karl@gnu.org>
72314
72315         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72316
72317 2003-09-25  Karl Berry  <karl@gnu.org>
72318
72319         * config/install-sh: update from automake.
72320
72321 2003-09-25  Bruno Haible  <bruno@clisp.org>
72322
72323         * modules/version-etc-2: New file, from modules/version-etc with
72324         modifications.
72325         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72326
72327 2003-09-25  Bruno Haible  <bruno@clisp.org>
72328
72329         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72330         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72331
72332 2003-09-24  Simon Josefsson  <jas@extundo.com>
72333
72334         * modules/xgethostname: Add xgethostname.h.
72335
72336 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72337
72338         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72339         the buffer associated with the argument.  Bug reported by
72340         Simon Josefsson.
72341
72342 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72343
72344         * README: Document assumptions that 'int' is at least 32 bits
72345         wide, that integer arithmetic is 2's complement without overflow,
72346         that there are no holes in integer values, that adding sizes of
72347         two nonoverlapping objects can't overflow, and that all-bits-zero
72348         yields scalar zero.  Fix spelling and capitalization typos.
72349
72350 2003-09-19  Karl Berry  <karl@gnu.org>
72351
72352         * lib/argp.h: update from libc.
72353
72354 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72355
72356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72357         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72358         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72359
72360 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72361
72362         * gnulib-tool: Use "test -h", not "test -L", for portability
72363         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72364         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72365         (sed_extract_prog): Issue s commands one-by-one, rather than
72366         using \| in one s command.
72367
72368 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72369
72370         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72371         input error, instead of returning NULL the next time we are called
72372         (and therefore losing track of errno).
72373
72374 2003-09-16  Bruno Haible  <bruno@clisp.org>
72375
72376         * gnulib-tool (func_create_testdir): Warn about duplicated
72377         dependencies.
72378
72379 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72380
72381         * modules/argmatch, modules/fatal, modules/obstack,
72382         modules/xalloc, modules/xgethostname: Sort dependencies by
72383         importance, not alphabetically.
72384
72385 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72386
72387         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72388         fails, so that the caller gets the proper errno.
72389
72390         * lib/readutmp.c (read_utmp): Likewise.
72391         Check for fstat error.  Close stream and free storage
72392         when failing.
72393
72394 2003-09-14  Karl Berry  <karl@gnu.org>
72395
72396         * config/srclist.txt (strdup.c): disable for c89 changes.
72397
72398 2003-09-14  Jim Meyering  <jim@meyering.net>
72399
72400         * lib/getloadavg.c: Correct cpp indentation.
72401         * lib/strdup.c: Likewise.
72402         * lib/vasnprintf.c: Likewise.
72403
72404 2003-09-14  Bruno Haible  <bruno@clisp.org>
72405
72406         * modules/fwriteerror: New file.
72407         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72408
72409 2003-09-14  Bruno Haible  <bruno@clisp.org>
72410
72411         * lib/fwriteerror.h: New file.
72412         * lib/fwriteerror.c: New file.
72413
72414 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72415
72416         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72417         modules/xgethostname, modules/xalloc: Depend on exit.
72418
72419 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72420
72421         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72422
72423         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72424         and AC_MINIX, too, so that their extensions are available.
72425
72426         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72427         This macro has been superseded by gl_BACKUPFILE.
72428
72429         More patches to assume C89 or better.
72430
72431         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72432
72433         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72434         unconditionally.
72435         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72436         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72437         Include <string.h>, <stdlib.h> unconditionally.
72438         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72439         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72440         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72441         headers or for string.h.
72442         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72443         or strtoul.
72444
72445         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72446         headers.
72447         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72448         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72449         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72450         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72451         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72452         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72453         memcpy, memset.
72454         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72455         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72456         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72457         strtol.
72458         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72459         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72460         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72461         strtoul.
72462
72463 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72464
72465         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72466         * lib/obstack.c [!defined _LIBC]: Likewise.
72467         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72468         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72469         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72470
72471         More changes to assume C89 or better.
72472
72473         * lib/error.c (error_tail): Assume vprintf.
72474
72475         * lib/argmatch.c (getenv): Remove decl.
72476         * lib/progreloc.c (get_full_program_name): Define via prototype.
72477         * lib/setenv.c (clearenv): Likewise.
72478         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72479         needed.
72480         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72481         (malloc, memcpy): Remove decls.
72482         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72483         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72484         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72485         (memcpy): Remove macro.
72486         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72487         (__P): Remove.  All uses removed.
72488         (PTR): Remove.  All uses changed to void *.
72489         (CHAR_BIT, NULL): Remove.
72490         (spaces, zeros, memset_space, memset_zero)
72491         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72492         Remove.
72493         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72494         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72495         Define with prototype.
72496         Remove now-unnecessary prototype decl.
72497         (extra_args_spec): Assume ANSI C.  All uses changed.
72498         (extra_args_spec_iso): Remove.
72499         (my_strftime, emacs_strftimeu): Define via prototype.
72500         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72501         unconditionally.
72502         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72503         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72504         (strtoul, strtol): Remove decls.
72505         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72506         LONG_MAX): Remove.
72507         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72508         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72509         (LOCALE_PARAM_PROTO): New macro.
72510         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72511         (INTERNAL (strtol), strtol): Define with a prototype.
72512         (PARAMS): Remove.  All uses removed.
72513         * lib/tempname.c: Include <string.h> unconditionally.
72514         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72515         * lib/xgethostname.c (main): Define with a prototype.
72516         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72517         Include <stdlib.h> unconditionally.
72518         (calloc, malloc, realloc, free): Remove decls.
72519         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72520         Include <stdlib.h> unconditionally.  Sort include file names.
72521         (strtod): Remove.
72522         (xstrtod): Define with a prototype.
72523         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72524         (strtol, strtoul): Remove decls.
72525
72526 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72527
72528         More patches to assume C89 or better.
72529         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72530         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72531         string.h, memchr, STDC_HEADERS.
72532
72533 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72534
72535         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72536         Include <stdlib.h>, <string.h> unconditionally.
72537         Remove now-unnecessary cast to char *.
72538         * lib/strnlen.c: Include <string.h> unconditionally.
72539         * lib/yesno.c (yesno): Define with a prototype.
72540
72541 2003-09-11  Bruno Haible  <bruno@clisp.org>
72542
72543         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72544
72545 2003-09-10  Jim Meyering  <jim@meyering.net>
72546
72547         * lib/error.c: Correct indentation of cpp directives.
72548
72549 2003-09-10  Bruno Haible  <bruno@clisp.org>
72550
72551         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72552         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72553         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72554         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72555         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72556         <stdlib.h> and <string.h> checks.
72557         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72558         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72559
72560 2003-09-10  Bruno Haible  <bruno@clisp.org>
72561
72562         * lib/strcspn.c: Include <string.h> unconditionally.
72563         * lib/strpbrk.c: Include <string.h> unconditionally.
72564         * lib/strstr.c: Include <string.h> unconditionally.
72565         * lib/unicodeio.c: Include <string.h> unconditionally.
72566         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72567         * lib/unsetenv.c: Likewise.
72568         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72569         * lib/yesno.c: Include <stdlib.h> unconditionally.
72570         (rpmatch): Add prototype.
72571
72572 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72573
72574         More patches to assume C89 or better.
72575         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72576         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72577         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72578         or for string.h.
72579         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72580         stdlib.h.
72581         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72582         C headers.
72583         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72584         string.h.
72585         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72586         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72587         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72588         or for string.h.
72589         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72590         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72591         C headers.
72592         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72593         memcpy.
72594         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72595         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72596         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72597         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72598         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72599         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72600         string.h, free.
72601         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72602         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72603         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72604         C headers, or for string.h.
72605         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72606         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72607         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72608         headers, memory.h, stdlib.h, string.h, strings.h.
72609         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72610         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72611         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72612         strchr.
72613         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72614         headers, memory.h, string.h.
72615         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72616         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72617         free.
72618         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72619         headers.
72620         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72621         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72622         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72623         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72624         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72625
72626 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72627
72628         More K&R removal.
72629
72630         * lib/acosl.c (main): Use a prototype.
72631         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72632         tanl.c: Likewise.
72633
72634         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72635
72636         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72637         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72638         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72639         with a prototype.
72640         * lib/getopt.c (const): Remove macro.
72641         Include <string.h> unconditionally.
72642         (my_index): Remove; all uses changed to strchr.
72643         (strlen): Remove decl.
72644         (exchange): Remove forward decl; no longer needed.
72645         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72646         Define with prototype.
72647         * lib/getopt1.c (const): Remove macro.
72648         (getopt_long, getopt_long_only, main): Define with prototype.
72649
72650         * lib/getugroups.c: Include <string.h> unconditionally.
72651
72652         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72653         (getusershell, setusershell, endusershell, readname, main):
72654         Define with prototypes.
72655
72656         * lib/group-member.c: Include group-member.h first.
72657         Include <stdlib.h> unconditionally.
72658
72659         * lib/hard-locale.c: Include hard-locale.h first.
72660         Include <stdlib.h>, <string.h> unconditionally.
72661
72662         * lib/hash.c (free, malloc): Remove decls.
72663         Include <stdlib.h> unconditionally.
72664
72665         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72666         (getenv): Do not declare.
72667
72668         * lib/idcache.c: Include <string.h> unconditionally.
72669
72670         * lib/long-options.c: Include long-options.h first, to test interface.
72671         Include <stdlib.h> unconditionally.
72672
72673         * lib/makepath.c: Include makepath.h first, to test interface.
72674         Include <stdlib.h> and <string.h> unconditionally.
72675
72676         * lib/linebuffer.c: Include <stdlib.h>.
72677         (free): Remove decl.
72678
72679         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72680         stddef.h. rpl_malloc returns void *, not char *.
72681         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72682         prototype.
72683
72684         * lib/md5.h: Include <limits.h> unconditionally.
72685         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72686         (__P): Remove; all uses removed.
72687         * lib/md5.c: Include "md5.h" first.
72688         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72689         md5_buffer, md5_process_bytes, md5_process_block):
72690         Define with prototypes.
72691         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72692         * lib/sha.c: Include "sha.h" first.
72693         Include <stdlib.h>, <string.h> unconditionally.
72694
72695         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72696         * lib/memcmp.c (__ptr_t): Likewise.
72697         * lib/memrchr.c (__ptr_t): Likewise.
72698         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72699         Include <string.h> unconditionally.
72700         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72701         * lib/memchr.c: Include <stdlib.h> unconditionally.
72702         * lib/memchr.c (LONG_MAX): Remove.
72703         * lib/memrchr.c (LONG_MAX): Likewise.
72704         * lib/memchr.c (__memchr): Define via a prototype.
72705         * lib/memrchr.c (__memrchr): Likewise.
72706         * lib/memcmp.c (__P): Remove, and remove all uses.
72707         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72708         Remove forward decls; no longer needed.
72709         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72710         Use types required by C89 in prototype.
72711
72712         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72713         * lib/savedir.c: Likewise.
72714         * lib/mkdir.c (free): Remove decl.
72715         * lib/rmdir.c (rmdir): Define with a prototype.
72716         * lib/savedir.c: Include savedir.h first, to test interface.
72717
72718         * lib/mktime.c (STDC_HEADERS): Remove.
72719         Include <stdlib.h>, <string.h> unconditionally.
72720
72721         * lib/modechange.c: Include <stdlib.h> unconditionally.
72722         (malloc): Remove decl.
72723
72724         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72725         (free): Remove decl.
72726
72727         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72728         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72729         (This type really should be intptr_t, but that's a C99ism.)
72730         (_obstack_memcpy): Remove: all uses changed to memcpy.
72731         Include <string.h> unconditionally.
72732         (struct obstack): Assume __STDC__ for types of members
72733         chunkfun, freefun, extra_arg.
72734         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72735         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72736         obstack_begin, obstack_specify_allocation,
72737         obstack_specify_allocation_with_arg, obstack_chunkfun,
72738         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72739         Remove unprototyped decls and the macros that use them.
72740         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72741         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72742         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72743         (defined __STDC__ && __STDC__)]:
72744         Remove nonprototyped code.
72745         Include <stdlib.h> unconditionally.
72746         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72747         _obstack_allocated_p, _obstack_free, obstack_free,
72748         _obstack_memory_used, print_and_abort):
72749         Define using prototypes.
72750         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72751         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72752         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72753         obstack_next_free, obstack_object_size, obstack_room) [0]:
72754         Remove unused, unprototyped code.
72755
72756         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72757
72758         * lib/physmem.c (physmem_total, physmem_available, main): Define
72759         with prototypes.
72760
72761         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72762         (main): Define with a prototype.
72763
72764         * lib/posixver.c (getenv): Remove decl.
72765
72766         * lib/putenv.c (malloc): Returns void *, not char *.
72767         Include <string.h> unconditionally.
72768         (strchr, memcpy, NULL): Do not define.
72769
72770         * lib/readtokens.c: Include readtokens.h first, to test interface.
72771         Include <stdlib.h>, <string.h> unconditionally.
72772         (init_tokenbuffer): Define with a prototype.
72773
72774         * lib/regex.c (PARAMS): Remove.  All uses removed.
72775         All uses of _RE_ARGS removed, too.
72776         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72777         unconditionally.
72778         (bzero): Assume memset exists.
72779         (memcmp, memcpy, NULL): Remove.
72780         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72781         char, or assignments to local vars of type signed char.
72782         (init_syntax_once, PREFIX(extract_number_and_incr),
72783         PREFIX(print_partial_compiled_pattern),
72784         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72785         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72786         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72787         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72788         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72789         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72790         wcs_compile_range, byte_compile_range, truncate_wchar,
72791         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72792         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72793         count_mbs_length, wcs_re_match_2_internal,
72794         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72795         PREFIX(alt_match_null_string_p),
72796         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72797         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72798         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72799         now-unnecessary declaration, if any.
72800         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72801         regcomp, regexec):
72802         Remove now-unnecessary casts among pointer types.
72803         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72804
72805         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72806         (free): Remove decl.
72807
72808         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72809
72810         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72811         (free): Remove decl.
72812
72813         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72814         * lib/xgetcwd.c: Likewise.
72815
72816         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72817         (free): Remove decl.
72818
72819         * lib/strchrnul.c (strchrnul): Define with a prototype.
72820         Fix bug: c_in was not converted to char before searching.
72821
72822         The following changes are not K&R related:
72823
72824         * lib/group-member.h: Include <sys/types.h>, so that this file is
72825         self-contained.
72826         * lib/makepath.h: Likewise.
72827
72828         * lib/getusershell.c (readname, default_index, line_size, readname):
72829         Use size_t, not int, for sizes.
72830         (readname): If the size overflows, report an error instead of
72831         looping forever.
72832
72833 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72834
72835         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72836         libc.
72837
72838 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72839
72840         * README: New section: portability guidelines.
72841
72842 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72843
72844         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72845         C89 spec.
72846
72847 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72848
72849         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72850
72851 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72852
72853         Assume C89 or better; remove K&R cruft.
72854         A few of these changes were first proposed by Derek Robert Price
72855         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72856
72857         * lib/addext.c: Include <string.h> unconditionally.
72858         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72859         Don't declare getenv or malloc.
72860
72861         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72862         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72863         (NULL): Remove.
72864         (find_stack_direction, alloca): Use prototypes.
72865
72866         * lib/atexit.c (atexit): Define using a prototype.
72867
72868         * lib/basename.c, dirname.c, stripslash.c:
72869         Include <string.h> unconditionally.
72870
72871         * lib/bcopy.c: Include <stddef.h>.
72872         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72873
72874         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72875
72876         * lib/error.h (error, error_at_line, error_print_progname)
72877         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72878         * lib/error.c: Include error.h first, to check interface.
72879         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72880         (VA_START): Remove; all uses changeed to va_start.
72881         (exit, strerror): Remove decls.
72882         (error_print_progname): Prototype uncondionally.
72883         Don't include <errno.h>; no longer needed.
72884         (private_strerror): Remove.
72885         (error_tail): Always define.
72886         (error, error_at_line): Assume C89 or better; always use prototypes.
72887         * lib/fatal.c: Include "fatal.h" first, to test interface.
72888         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72889         (VA_START): Remove; all uses changed to va_start.
72890         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72891         this case.
72892         (exit): Remove decl.
72893         (fatal): Prototype unconditionally.  Assume va_start works.
72894         Abort at end, to pacify gcc.
72895
72896         * lib/euidaccess.c (main): Define with a prototype.
72897
72898         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72899
72900         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72901
72902         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72903         prototypes.
72904         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72905         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72906         (getenv): Remove decl.
72907         (fnmatch): Define using a prototype.
72908         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72909         (FCT): Define using a prototype.
72910
72911         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72912
72913         * lib/gethostname.c: Include <stddef.h>.
72914         (gethostname): Define with prototype.  Length is size_t, not int.
72915
72916 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72917
72918         Assume C89 or better; remove K&R cruft.
72919         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72920         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72921         string.h, getenv, malloc.
72922         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72923         headers.
72924         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72925         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72926         do not check for strerror.
72927         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72928         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72929         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72930         do not check for doprnt or vprintf.
72931         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72932         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72933
72934 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72935
72936         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72937         getversion.c should have been removed then, but was accidentally
72938         preserved.
72939
72940         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72941         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72942
72943 2003-09-08  Karl Berry  <karl@gnu.org>
72944
72945         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72946                 config, forget about prep.
72947
72948         * config/depcomp, missing: update from automake.
72949
72950 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72951
72952         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72953         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72954
72955 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72956
72957         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72958         copy_tm_result.  Bug reported by Simon Josefsson in
72959         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72960
72961 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72962
72963         * m4/time_r.m4: New file.
72964         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72965         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72966         is. Check for timegm declaration.
72967         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72968         Do not check for gmtime_r.
72969         Replace mktime if __mktime_internal does not exist and if mktime
72970         hasn't been replaced already.
72971
72972 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72973
72974         * lib/time_r.c, lib/time_r.h: New files.
72975
72976         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72977         __localtime_r.
72978         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72979         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72980
72981         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72982         __gmtime_r.
72983         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72984         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72985         Include <time_r.h>.
72986
72987         * lib/timegm.c: Switch to glibc implementation, with the following
72988         changes:
72989         [defined HAVE_CONFIG_H]: Include <config.h>.
72990         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72991         (__mktime_internal) [!defined _LIBC]: New decl.
72992         (__gmtime_r) [!defined _LIBC]: New macro and function.
72993         (timegm): Use a prototype, since gnulib assumes C89.
72994         Do not bother declaring tmp to be const, as it's not really usefu.
72995         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72996         (timegm): Declare only if HAVE_DECL_TIMEGM.
72997
72998 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72999
73000         * MODULES.html.sh (func_all_modules): Add time_r.
73001         * modules/time_r: New file.
73002         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73003         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73004
73005 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73006
73007         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73008         Bug reported by Lute Kamstra in
73009         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73010
73011         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73012         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73013         course with correspondingly smaller numbers for tomorrow and
73014         yesterday.  From Tadayoshi Funaba.  Originally installed into
73015         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73016         coreutils merge?).
73017
73018 2003-08-31  Simon Josefsson  <jas@extundo.com>
73019
73020         * modules/timegm: New file.
73021         * MODULES.html.sh (func_all_modules): Add timegm.
73022
73023 2003-08-31  Simon Josefsson  <jas@extundo.com>
73024
73025         * m4/timegm.m4: New file.
73026
73027 2003-08-31  Simon Josefsson  <jas@extundo.com>
73028
73029         * lib/timegm.h: New file.
73030         * lib/timegm.c: New file.  Based on
73031         wget-1.8.2/src/http.c:mktime_from_utc.
73032
73033 2003-08-31  Karl Berry  <karl@gnu.org>
73034
73035         * lib/argp.h: update from libc.
73036
73037 2003-08-28  Bruno Haible  <bruno@clisp.org>
73038
73039         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73040         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73041         followed by '#define fnmatch fnmatch_posix' gives an error.
73042
73043 2003-08-28  Bruno Haible  <bruno@clisp.org>
73044
73045         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73046         warning on QNX, which defines O_BINARY to 000000.
73047
73048 2003-08-27  Jim Meyering  <jim@meyering.net>
73049
73050         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73051         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73052         would fail after 32.  Reported by Danny Levinson.  Details here:
73053         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73054
73055 2003-08-24  Bruno Haible  <bruno@clisp.org>
73056
73057         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73058         MSVC7 <stdio.h> is included later.
73059
73060 2003-08-22  Simon Josefsson  <jas@extundo.com>
73061
73062         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73063
73064 2003-08-20  Karl Berry  <karl@gnu.org>
73065
73066         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73067
73068 2003-08-20  Bruno Haible  <bruno@clisp.org>
73069
73070         * modules/progname: New file.
73071         * MODULES.html.sh (func_all_modules): Add progname.
73072
73073 2003-08-20  Bruno Haible  <bruno@clisp.org>
73074
73075         * lib/progname.h: New file, from GNU gettext.
73076         * lib/progname.c: New file, from GNU gettext.
73077         * lib/progreloc.c: New file, from GNU gettext.
73078
73079 2003-08-19  Jim Meyering  <jim@meyering.net>
73080
73081         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73082         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73083
73084 2003-08-19  Bruno Haible  <bruno@clisp.org>
73085
73086         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73087         more.
73088
73089 2003-08-19  Bruno Haible  <bruno@clisp.org>
73090
73091         * lib/xstrdup.c: Assume <string.h> exists.
73092
73093 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73094
73095         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73096         in makefile rules.
73097
73098 2003-08-18  Jim Meyering  <jim@meyering.net>
73099
73100         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73101         * m4/lib-ld.m4: Likewise.
73102
73103 2003-08-18  Jim Meyering  <jim@meyering.net>
73104
73105         * lib/setenv.h: Indent nested cpp directive.
73106         * lib/vasnprintf.c: Remove trailing blanks.
73107
73108 2003-08-17  Simon Josefsson  <jas@extundo.com>
73109
73110         * modules/xstrndup: New file.
73111         * MODULES.html.sh (func_all_modules): Add xstrndup.
73112
73113 2003-08-17  Simon Josefsson  <jas@extundo.com>
73114
73115         * modules/argp: Fix autoconf macro name. Add more dependencies.
73116
73117 2003-08-17  Simon Josefsson  <jas@extundo.com>
73118
73119         * m4/xstrndup.m4: New file.
73120
73121 2003-08-17  Simon Josefsson  <jas@extundo.com>
73122
73123         * m4/argp.m4: New file.
73124
73125 2003-08-17  Simon Josefsson  <jas@extundo.com>
73126             Bruno Haible  <bruno@clisp.org>
73127
73128         * lib/xstrndup.h: New file.
73129         * lib/xstrndup.c: New file.
73130
73131 2003-08-17  Bruno Haible  <bruno@clisp.org>
73132
73133         * modules/strndup (Files, Include): Add lib/strndup.h.
73134
73135 2003-08-17  Bruno Haible  <bruno@clisp.org>
73136
73137         * modules/euidaccess (Files): Add lib/euidaccess.h.
73138
73139 2003-08-17  Bruno Haible  <bruno@clisp.org>
73140
73141         * lib/strndup.h: New file.
73142
73143 2003-08-17  Bruno Haible  <bruno@clisp.org>
73144
73145         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73146         like AC_GNU_SOURCE.
73147         * modules/extensions (configure.ac): Comment out the invocation of
73148         gl_USE_SYSTEM_EXTENSIONS.
73149
73150 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73151
73152         Merges from coreutils, etc.
73153         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73154         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73155         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73156         fixing a typo.
73157         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73158         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73159
73160 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73161
73162         Document merge from coreutils.
73163         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73164         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73165         * modules/utime: Add m4/utimes-null.m4.
73166
73167 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73168
73169         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73170         space, undoing this 2003-08-12 change:
73171         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73172
73173 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73174
73175         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73176         strtoul.c from libc, undoing this 2003-08-12 change:
73177         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73178
73179 2003-08-16  Jim Meyering  <jim@meyering.net>
73180
73181         Merges from coreutils.
73182         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73183         prefix.  Adjust cache variables similarly.  Create 500 rather than
73184         just 300 files, to exercise bug on Darwin6.5, too.
73185         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73186         $missing_dir.
73187         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73188         AM_SYS_POSIX_TERMIOS.
73189         Reported by mkc@mathdogs.com.
73190         Also change use of $am_cv_sys_posix_termios
73191         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73192         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73193         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73194         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73195         in /proc/mounts until it finds one with matching device number.  This
73196         is unnecessary when the FILE argument *is* a mount point.  No stat call
73197         is necessary in that case.  So, disable the statvfs-testing code on
73198         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73199         as RedHat bug# 84846.
73200         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73201         to 1MB, so as not to render systems with no stack size limit (e.g.,
73202         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73203         Include <unistd.h>.  On some systems,
73204         it is required for the definition of _SC_PAGESIZE.
73205
73206 2003-08-16  Jim Meyering  <jim@meyering.net>
73207
73208         Merge from coreutils.
73209         * lib/xstrtoimax.c: #else #if -> #elif.
73210         * lib/xstrtoumax.c: Likewise.
73211
73212 2003-08-16  Jim Meyering  <jim@meyering.net>
73213
73214         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73215         * m4/utimes.m4: Removed.
73216         * m4/utimes-null.m4: Renamed from utimes.m4.
73217
73218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73219         to 1MB, so as not to render systems with no stack size limit (e.g.,
73220         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73221         Include <unistd.h>.  On some systems,
73222         it is required for the definition of _SC_PAGESIZE.
73223
73224 2003-08-16  Jim Meyering  <jim@meyering.net>
73225         and Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         Merges from coreutils, etc.
73228
73229         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73230         using the latest version from cvs.  This avoids problems with #line
73231         directives using a vendor (Sun) compiler.
73232         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73233         Don't set GETGROUPS_LIB here; now it's
73234         done via getgroups.m4's wrapper function.
73235         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73236         rather than just in sh-util/configure.in, so that the
73237         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73238         same.
73239         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73240         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73241         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73242         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73243         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73244         Remove code that is now done by the newly-required macros.
73245         Append $(EXEEXT) to DF_PROG.
73246         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73247         Do not invoke or require the following here,
73248         since prereq.m4 or some gnulib .m4 now does this for us:
73249         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73250         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73251         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73252         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73253         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73254         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73255         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73256         AC_FUNC_OBSTACK.
73257         Do not replace the following functions, as this is now the job
73258         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73259         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73260         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73261         atexit getpass, strdup, getpagesize.
73262         Replace 'raise'.
73263         Do not check for the following functions, as this is now the job
73264         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73265         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73266         setregid.
73267         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73268         Check for sys/sysctl.h.
73269         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73270         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73271         of checking for ssize_t ourselves.
73272
73273         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73274         Require every macro that gnulib/modules/* suggests for us.
73275         (jm_PREREQ_ADDEXT): New macro.
73276         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73277         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73278
73279         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73280         (gl_PHYSMEM): Use it.
73281         Also check for `table' function.
73282         Check for new headers and functions.
73283         Add check for sys/sysmp.h.
73284         With suggestions from Kaveh Ghazi.
73285         Ignore headers that are present but cannot be compiled.  This
73286         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73287         C 5.4.
73288
73289 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73290
73291         Document merge from coreutils.
73292         * modules/userspec: Depend on posixver.
73293         * modules/strftime: Depend on tzset.
73294
73295 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73296
73297         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73298         rather than tab, after '#' in shell-script copyright notices.
73299         Suggested by Bruno Haible.
73300
73301 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73302
73303         * config/srclist-update: Use three spaces, rather than tab, after '#'
73304         in shell-script copyright notices.  Suggested by Bruno Haible.
73305         Remove unnecessary parenthesization in regular expression.
73306
73307 2003-08-15  Jim Meyering  <jim@meyering.net>
73308
73309         Merge from coreutils.
73310         * lib/xgethostname.c: Include <stdlib.h>.
73311         (xghostname): Don't exit for anything other than memory-related
73312         failure; just return NULL.
73313         * lib/userspec.c: Include "posixver.h".
73314         (parse_user_spec): Accept `.' as a separator only
73315         in pre-POSIX-200112 mode.
73316         * lib/strtoimax.c: Use #elif rather than #else #if.
73317         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73318         Remove function, now that we can rely on a working tzset function.
73319         [!_LIBC]: Ensure that the required autoconf test has been run.
73320         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73321         Use underlying_strftime for %r.
73322         * lib/sha.c: Merge in some clean-up and optimization changes from
73323         glibc.
73324         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73325         Ensure that it is a multiple of 64.
73326         Rearrange loop exit tests so as to avoid performing an
73327         additional fread after encountering an error or EOF.
73328         * lib/realloc.c: Update copyright date.
73329
73330 2003-08-15  Jim Meyering  <jim@meyering.net>
73331         and Paul Eggert  <eggert@twinsun.com>
73332
73333         Merge from coreutils.
73334         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73335         member but strut utmpx does not.  Needed for AIX 4.3.3.
73336         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73337
73338 2003-08-15  Jim Meyering  <jim@meyering.net>
73339         and Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         Merges from coreutils, etc.
73342         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73343         Require gl_FUNC_TZSET_CLOBBER.
73344         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73345         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73346         members.
73347
73348 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73349
73350         Help the merge from coreutils.
73351         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73352         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73353         * m4/tzset.m4: Use it too.
73354
73355 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73356
73357         * modules/tzset: New file.
73358
73359 2003-08-14  Jim Meyering  <jim@meyering.net>
73360
73361         Merges from coreutils.
73362         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73363         variable names, rather than @FNMATCH_H@.
73364         * modules/alloca: Likewise for $(ALLOCA_H).
73365
73366         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73367         the three copies of the literal target, `fnmatch.h'.
73368         * modules/alloca (alloca.h): Likewise.
73369
73370 2003-08-14  Jim Meyering  <jim@meyering.net>
73371
73372         Merge from coreutils.
73373         * m4/tzset.m4: New file.
73374         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73375         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73376         otherwise, AIX 5.1 systems would end up using the latter.
73377         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73378         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73379         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73380         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73381
73382 2003-08-14  Jim Meyering  <jim@meyering.net>
73383
73384         Merge from coreutils.
73385         * lib/obstack.h: Whitespace changes.
73386         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73387         and xcalloc return values.
73388         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73389         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73390         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73391         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73392         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73393         error from mntctl.
73394         Use mntctl's return value to drive the entry-processing loop, since
73395         we can't rely on the value of the vmt_length member in the last
73396         entry.  On some systems doing so could result in exhausting
73397         virtual memory.  Based in part on a patch from Mike Jetzer.
73398
73399 2003-08-14  Jim Meyering  <jim@meyering.net>
73400         and Paul Eggert  <eggert@twinsun.com>
73401
73402         Merges from coreutils, plus other fixes.
73403         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73404         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73405         for credits and details.  Thanks to Kaveh Ghazi for helping
73406         to keep these files in sync.
73407         (ARRAY_SIZE): Define it.
73408         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73409         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73410         (memcasecmp): Don't assume size_t fits in unsigned int.
73411         Remove casts and duplicate code.
73412         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73413         (memcpy): Remove definition.
73414         Merge in some clean-up and optimization changes from glibc.
73415         [BLOCKSIZE]: Move definition to top of file.
73416         Ensure that it is a multiple of 64.
73417         Rearrange loop exit tests so as to avoid performing an
73418         additional fread after encountering an error or EOF.
73419         * lib/md5.h (md5_uintptr): Define.
73420         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73421         return to the initial working directory.  Preserve errno
73422         for caller.
73423         * lib/idcache.c: Include "xalloc.h".
73424         (xmalloc, xrealloc): Remove decls.
73425         (getuser): Remove casts no longer required in C89.
73426         * lib/human.c: Include stdio.h, for sprintf.
73427         * lib/group-member.c: Include "xalloc.h".
73428         (xmalloc, xrealloc): Remove decls.
73429         (get_group_info): Remove casts no longer required in C89.
73430         * lib/getusershell.c (readname): Remove casts no longer required in
73431         C89.
73432         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73433         * lib/getline.c: Whitespace fix, from coreutils.
73434
73435 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73436
73437         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73438         Check for isascii.
73439
73440         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73441         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73442         Undo previous (whitespace-only) change.
73443
73444 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73445
73446         * lib/exclude.c: Include <ctype.h>
73447         (IN_CTYPE_DOMAIN): New macro.
73448         (is_space): New fn.
73449         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73450         and empty lines.
73451
73452         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73453         Undo previous (whitespace-only) change.
73454
73455 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73456
73457         * config/srclist-update: Change update back to the old behavior,
73458         leaving whitespace alone.  Use one 'sed' command rather than a
73459         pipeline.
73460         (fixlicense): Now a variable, not a function.
73461         (remove_trailing_blanks): Remove.
73462         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73463         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73464         Undo previous (whitespace-only) change.
73465
73466 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73467
73468         Merge from coreutils.
73469         * modules/euidaccess: Add lib_SOURCES, include for new
73470         file euidaccess.h
73471
73472 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73473
73474         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73475         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73476         Normalize leading white space and remove trailing white space.
73477
73478         Merge from coreutils
73479         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73480
73481         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73482         0.12.1.  These files are now being upgraded automatically by
73483         ../config/srclist-update.
73484
73485 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73486
73487         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73488         Normalize leading white space and remove trailing white space.
73489         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73490         notice, as per ../config/srclist-update.
73491
73492         Merge from coreutils.
73493         * lib/euidaccess.h: New file.
73494         * lib/euidaccess.c: Include it.
73495         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73496         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73497         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73498
73499 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73500
73501         * config/srclist-update: Add copyright notice.
73502         (remove_id_lines, remove_trailing_blanks): New constants.
73503         (fixfile): Use them to normalize spacing a bit in copied files.
73504         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73505         Normalize leading white space and remove trailing white space.
73506
73507         * config/texinfo.tex: Sync with texinfo.
73508
73509         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73510         strtoul.c from libc, to merge coreutils whitespace changes.
73511
73512         * config/srclist.txt: Get the following m4 files from gettext:
73513         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73514         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73515         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73516         wint_t.m4.
73517
73518 2003-08-12  Karl Berry  <karl@gnu.org>
73519
73520         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73521         been made.
73522
73523 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73524
73525         * modules/gnu-source, m4/gnu-source.m4:
73526         Remove; we're assuming Autoconf 2.54 or later now.
73527         Suggested by Bruno Haible.
73528         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73529
73530 2003-08-11  Bruno Haible  <bruno@clisp.org>
73531
73532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73533
73534 2003-08-11  Bruno Haible  <bruno@clisp.org>
73535
73536         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73537         (vasnprintf): Use it instead of wcslen.
73538
73539 2003-08-11  Bruno Haible  <bruno@clisp.org>
73540
73541         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73542         value to ensure that _Bool promotes to int. Use #define for _Bool when
73543         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73544
73545 2003-08-10  Karl Berry  <karl@gnu.org>
73546
73547         * lib/regex.h: update from libc (whitespace fix).
73548
73549 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73550
73551         Merge some files from coreutils.  These changes were
73552         originally made by Jim Meyering.
73553         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73554         many older Unixes require this.
73555         * lib/alloca.c (alloca): Remove cast to argument of free;
73556         no longer needed in C89.
73557         * lib/alloca_.h, regex.h: Fix white space to match
73558         what GNU indent does.
73559
73560 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73561
73562         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73563         apparently Emacs's Unicode mode got confused before my 2003-08-05
73564         checkin.
73565
73566 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73567
73568         * m4/extensions.m4: New file.
73569         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73570         Require gl_USE_SYSTEM_EXTENSIONS.
73571         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73572         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73573
73574 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73575
73576         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73577         * modules/extensions, modules/gnu-source: New files.
73578         * modules/timespec, modules/unlocked-io: Depend on extensions.
73579
73580 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73581
73582         * modules/restrict: New file.
73583         * MODULES.html.sh (func_all_modules): Add restrict.
73584         * modules/regex: Depend on restrict.
73585
73586 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73587
73588         * m4/restrict.m4: New file.
73589         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73590
73591 2003-08-07  Bruno Haible  <bruno@clisp.org>
73592
73593         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73594         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73595
73596 2003-08-07  Bruno Haible  <bruno@clisp.org>
73597
73598         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73599         makes the module 'getndelim2' compatible with the module 'getline'.
73600
73601 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73602
73603         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73604         byte with "\201" to avoid glitches when editing that source file
73605         with multi-gnome-terminal.
73606
73607 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73608
73609         * lib/bumpalloc.h: Remove.
73610
73611 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73612
73613         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73614         * modules/bumpalloc: Remove.
73615
73616 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73617
73618         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73619         GNU coding style.
73620
73621         Merge from coreutils.
73622         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73623         1. From glibc.
73624         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73625         from Karl Berry, implemented by Jim Meyering.
73626         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73627         from Dmitry V. Levin.
73628         Remove anachronistic cast of xrealloc.
73629         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73630         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73631         type. Otherwise, it wouldn't compile with at least /bin/cc on
73632         ymp-cray-unicos9.0.2.X.
73633         Combine two mostly-identical uses of alloca into one.
73634         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73635
73636 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73637
73638         [From Emacs.]
73639
73640         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73641         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73642         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73643         obsolete NLIST_NAME_UNION.
73644         [__GNU__]: Undef BSD and FSCALE.
73645         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73646
73647 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73648
73649         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73650         an enum type, so that it's guaranteed to promote to int.  See:
73651         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73652
73653 2003-08-03  Karl Berry  <karl@gnu.org>
73654
73655         * config/depcomp: update from automake.
73656
73657 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73658
73659         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73660         (strerror): Don't assume that a printable int fits in 14 bytes.
73661
73662 2003-07-31  Bruno Haible  <bruno@clisp.org>
73663
73664         * modules/getpass-gnu: New file.
73665         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73666
73667 2003-07-31  Bruno Haible  <bruno@clisp.org>
73668
73669         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73670
73671 2003-07-24  Karl Berry  <karl@gnu.org>
73672
73673         * config/missing: update from automake.
73674
73675 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73676             Bruno Haible  <bruno@clisp.org>
73677
73678         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73679         * lib/getline.c (getline, getdelim): Likewise.
73680         Remove _GNU_SOURCE define; now it's defined in config.h through
73681         m4/getline.m4.
73682
73683 2003-07-23  Karl Berry  <karl@gnu.org>
73684
73685         * config/config.sub: update from prep.
73686
73687 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73688
73689         * modules/xalloc (Depends-on): Add exitfail.
73690         * modules/xmemcoll: Likewise.
73691
73692 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73693
73694         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73695         over-parenthesization in macros.
73696
73697         Sync with coreutils.
73698
73699         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73700         required by C99.
73701
73702         Use `exit_failure' for xalloc and xmemcoll instead of their own
73703         private exit-failure variables.
73704         * lib/xalloc.h (xalloc_exit_failure): Remove.
73705         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73706         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73707         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73708         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73709         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73710
73711 2003-07-20  Jim Meyering  <jim@meyering.net>
73712
73713         * modules/closeout (Depends-on): Add exitfail.
73714         Suggestion from Bruno Haible.
73715
73716 2003-07-19  Karl Berry  <karl@gnu.org>
73717
73718         * config/config.sub: update from prep.
73719
73720 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73721
73722         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73723         Remove.
73724         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73725         to test that it can stand by itself.  Include "exitfail.h".
73726         Clients should set exit_failure instead.
73727         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73728
73729 2003-07-18  Bruno Haible  <bruno@clisp.org>
73730
73731         * modules/getndelim2: New file.
73732         * modules/getline: Share files with module getndelim2.
73733         * modules/getnline: Depend on getndelim2 instead of sharing files with
73734         it. Add getnline.c to lib_SOURCES.
73735         * MODULES.html.sh (func_all_modules): Add getndelim2.
73736
73737 2003-07-18  Bruno Haible  <bruno@clisp.org>
73738
73739         * m4/getndelim2.m4: New file.
73740         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73741         invoke gl_PREREQ_GETNDELIM2.
73742         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73743         gl_PREREQ_GETNDELIM2.
73744         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73745         gl_GETNDELIM2.
73746
73747 2003-07-18  Bruno Haible  <bruno@clisp.org>
73748
73749         * lib/getndelim2.h: New file.
73750         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73751         getndelim2.h.
73752         (getndelim2): Make non-static. Change return type to ssize_t.
73753         * lib/getline.h: Change argument names.
73754         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73755         * lib/getnline.c: Include getndelim2.h.
73756
73757 2003-07-18  Andreas Schwab  <schwab@suse.de>
73758
73759         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73760
73761 2003-07-17  Karl Berry  <karl@gnu.org>
73762
73763         * config/config.sub: update from prep.
73764
73765 2003-07-17  Bruno Haible  <bruno@clisp.org>
73766
73767         * modules/getnline: New file.
73768         * modules/getline: Add lib/getndelim2.c to source file list.
73769         * MODULES.html.sh (func_all_modules): Add getnline.
73770
73771 2003-07-17  Bruno Haible  <bruno@clisp.org>
73772
73773         * m4/getnline.m4: New file.
73774
73775 2003-07-17  Bruno Haible  <bruno@clisp.org>
73776
73777         * m4/Makefile.am.in: Remove file.
73778         * m4/Makefile.am: Remove file.
73779         * m4/Makefile.in: Remove file.
73780
73781 2003-07-17  Bruno Haible  <bruno@clisp.org>
73782
73783         * lib/getnline.h: New file.
73784         * lib/getnline.c: New file.
73785         * lib/getndelim2.c: New file, extracted from getline.c.
73786         (getndelim2): Renamed from getdelim2, with added nmax argument.
73787         * lib/getline.c: Include getndelim2.c.
73788         (getdelim2): Moved out to getndelim2.c.
73789         (getline, getdelim): Update.
73790
73791 2003-07-17  Bruno Haible  <bruno@clisp.org>
73792
73793         * lib/Makefile.am: Remove file.
73794         * lib/Makefile.in: Remove file.
73795
73796 2003-07-17  Bruno Haible  <bruno@clisp.org>
73797
73798         * configure.in: Remove file.
73799         * Makefile.in: Remove file.
73800
73801 2003-07-17  Bruno Haible  <bruno@clisp.org>
73802
73803         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73804
73805 2003-07-16  Karl Berry  <karl@gnu.org>
73806
73807         * config/srclist-update: was running fixlicense twice, which caused
73808                 texinfo.tex to be nullified for some reason.  Simplify,
73809                 $gplsrc is no longer needed as far as I can see?
73810
73811 2003-07-16  Jim Meyering  <jim@meyering.net>
73812
73813         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73814
73815 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73816
73817         * config/srclist.txt: Get the following files from gettext-runtime/intl
73818         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73819         ref-del.sin.  From Bruno Haible.
73820         * config/srclist-update (fixfile): Change grep pattern again, since the
73821         previous fix didn't work (there was another trailing $).  Use
73822         '[$]' to escape the $s.
73823
73824 2003-07-15  Karl Berry  <karl@gnu.org>
73825
73826         * lib/vasnprintf.c: update from gettext.
73827
73828 2003-07-15  Karl Berry  <karl@gnu.org>
73829
73830         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73831         gets expanded when surrounded by '$'.
73832
73833 2003-07-15  Jim Meyering  <jim@meyering.net>
73834
73835         * modules/save-cwd: Don't depend on error.  From Derek Price.
73836
73837 2003-07-15  Jim Meyering  <jim@meyering.net>
73838
73839         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73840
73841 2003-07-14  Simon Josefsson  <jas@extundo.com>
73842
73843         * modules/mempcpy: New file.
73844         * MODULES.html.sh (func_all_modules): Add mempcpy.
73845
73846 2003-07-14  Simon Josefsson  <jas@extundo.com>
73847
73848         * m4/mempcpy.m4: New file.
73849
73850 2003-07-14  Simon Josefsson  <jas@extundo.com>
73851
73852         * lib/mempcpy.h: New file.
73853         * lib/mempcpy.c: New file.
73854
73855 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73856
73857         * modules/getdate, modules/posixtm: Depend on mktime.
73858
73859 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73860
73861         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73862         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73863         unicodeio.c, unicodeio.h, unlocked-io.h:
73864         Switch from LGPL to GPL.
73865
73866 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73867
73868         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73869         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73870         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73871         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73872         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73873         updated automatically by ../config/srclist-update.  This changes
73874         their license from LPGL to GPL.
73875
73876 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73877
73878         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73879         assumed to refer to the root of the most recent stable gettext version.
73880         * config/srclistvars.sh: Add defaults for eggert.
73881         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73882         Match "This program" as well as "The program".  This is needed
73883         for gettext.
73884
73885 2003-07-14  Jim Meyering  <jim@meyering.net>
73886
73887         Don't emit diagnostics.  Let callers do that.
73888         * lib/save-cwd.c: Don't include "error.h".
73889         (save_cwd): Don't call error.  Ensure that errno is valid
73890         when returning nonzero.
73891
73892         * lib/save-cwd.h (restore_cwd): Update prototype.
73893         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73894         Simplify.  Don't call error upon failure.  Let callers do that.
73895         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73896         when auditing is enabled.  But don't bother updating the #if.
73897
73898 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73899
73900         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73901         it breaks C++ compilation.
73902         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73903
73904 2003-07-10  Simon Josefsson  <jas@extundo.com>
73905
73906         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73907
73908 2003-07-10  Jim Meyering  <jim@meyering.net>
73909
73910         * m4/clock_time.m4: Remove trailing blank.
73911         * m4/intmax_t.m4: Likewise.
73912
73913 2003-07-10  Jim Meyering  <jim@meyering.net>
73914
73915         * lib/vasnprintf.c: Remove trailing blanks.
73916         Make cpp indentation consistent.
73917
73918 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73919
73920         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73921         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73922         Switch from LGPL to GPL.
73923
73924 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73925
73926         * config/srclist.txt: Sort sublists.  Add
73927         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73928         that differ from gnulib for one reason or another; we'd like this list
73929         to be smaller but for now let's document what we have.
73930
73931 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73932
73933         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73934         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73935         and sweeter "eval x=$x".
73936         * config/srclist.txt: Get lib/argp* from glibc.
73937
73938 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73939
73940         * lib/mktime.c: Fix some boundary cases and remove need for floating
73941         point.
73942
73943         Issue a compile-time diagnostic if time_t is floating point, or if
73944         two's complement arithmetic is not in effect, or if arithmetic
73945         right shift does not propagate the sign.  These assumptions were
73946         all in the original code but they weren't checked.
73947
73948         (TIME_T_MIDPOINT, verify): New macros.
73949         (__isleap): Remove; it has integer overflow problems.
73950         (leapyear): New function, without those problems.
73951         (ydhms_tm_diff): Remove; splitting into two parts.
73952         (ydhms_diff): New function, containing the arithmetic part of
73953         the old ydhms_tm_diff function.  Issue a compile-time
73954         diagnostic if we are not using C99 integer division.
73955         Avoid casts when possible.
73956         (guess_time_tm): New function, containing the checking part of
73957         the old ydhms_tm_diff function.  Return the new value, rather than
73958         the difference between it and the old.  Accept a new argument T
73959         so that *T specifies the old value.  Check for overflow in the result.
73960
73961         (__mktime_internal): Use a time_t offset, not a long int offset.
73962         This undoes the 2003-06-04 change, which is no longer needed now
73963         that we have better overflow checking.
73964         (localtime_offset): Likewise.
73965
73966         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73967         and long are 64-bit but int is only 32-bit.
73968         (ydhms_diff): Use long int to store year1 and yday1.
73969         Issue a compile-time diagnostic if long int is not wide enough.
73970
73971         (__mktime_internal): Use long int to store adjusted year and yday.
73972         Use plain C rather than preprocessor commands, if that doesn't
73973         affect efficiency.
73974         Check for overflow (and try to repair) after each probe
73975         rather than checking only at the very end.  This avoids some bugs
73976         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73977         does not equal GMT offset at maximum time).
73978         Use integer to check for overflow rather than floating point; this
73979         is more portable to non-IEEE hosts, and is a tad faster.
73980         When we detect that we are oscillating between two values,
73981         don't check whether tm_isdst has the requested value, since
73982         we already know the answer.  When tm_isdst has the wrong value,
73983         use a different heuristic to find the right one, based on the
73984         extreme values actually observed in practice in tz2003a,
73985         rather than the (overly optimistic) "previous 3 calendar quarters".
73986
73987         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73988         "T const" to accommodate glibc style.
73989         (check_result): Use less-confusing report format.  "long" -> "long int.
73990         (main): Likewise.
73991         Don't loop if the iteration overflows time_t.
73992         Allow a negative step in the iteration.
73993
73994 2003-07-06  Karl Berry  <karl@gnu.org>
73995
73996         * config/depcomp: update from automake.
73997         * config/config.sub: update from prep.
73998
73999 2003-07-03  Karl Berry  <karl@gnu.org>
74000
74001         * config/config.guess: update from prep.
74002
74003 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74004
74005         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74006         xreadlink.c now includes it unconditionally.
74007
74008 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74009
74010         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74011         having it depend on HAVE_SYS_TYPES_H.
74012
74013 2003-07-01  Bruno Haible  <bruno@clisp.org>
74014
74015         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74016         <sys/types.h> should be sufficient.
74017         Reported by Paul Eggert.
74018
74019 2003-06-26  Karl Berry  <karl@gnu.org>
74020
74021         * config/depcomp: update from automake.
74022
74023 2003-06-26  Bruno Haible  <bruno@clisp.org>
74024
74025         * modules/human: Depend on module stdbool.
74026
74027 2003-06-25  Bruno Haible  <bruno@clisp.org>
74028
74029         * modules/readlink: New file.
74030         * modules/xreadlink: Depend on it.
74031         * MODULES.html.sh (func_all_modules): Add readlink.
74032
74033 2003-06-25  Bruno Haible  <bruno@clisp.org>
74034
74035         * m4/readlink.m4: New file.
74036
74037 2003-06-25  Bruno Haible  <bruno@clisp.org>
74038
74039         * lib/readlink.c: New file.
74040
74041 2003-06-22  Karl Berry  <karl@gnu.org>
74042
74043         * config/srclist.txt: update mkinstalldirs from automake.
74044         * config/mkinstalldirs: update.
74045
74046 2003-06-22  Bruno Haible  <bruno@clisp.org>
74047
74048         Portability to mingw32.
74049         * m4/ssize_t.m4: New file, from GNU gettext.
74050         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74051         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74052
74053 2003-06-22  Bruno Haible  <bruno@clisp.org>
74054
74055         * modules/safe-read: Add m4/ssize_t.m4.
74056         * modules/xreadlink: Add m4/ssize_t.m4.
74057
74058 2003-06-20  Bruno Haible  <bruno@clisp.org>
74059
74060         Assume C89, so PARAMS isn't needed.
74061         * lib/unicodeio.h (PARAMS): Remove.
74062         * lib/unicodeio.c: Don't use PARAMS.
74063
74064 2003-06-18  Karl Berry  <karl@gnu.org>
74065
74066         * config/config.{guess,sub}: update from prep.
74067
74068 2003-06-18  Jim Meyering  <jim@meyering.net>
74069
74070         Merge changes from coreutils.
74071         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74072         Remove explicit declarations of xmalloc and realloc.
74073         Include xalloc.h.
74074         (read_utmp): Remove anachronistic cast of xmalloc.
74075
74076 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74077
74078         Assume C89, so PARAMS isn't needed.
74079         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74080         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74081         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74082         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74083         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74084         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74085         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74086         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74087         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74088         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74089         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74090         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74091         no longer needed. Anyway, config.h should always be included before any
74092         other file.
74093
74094 2003-06-11  Simon Josefsson  <jas@extundo.com>
74095
74096         * modules/sysexits: New file.
74097         * MODULES.html.sh (func_all_modules): Add sysexits.
74098
74099 2003-06-11  Simon Josefsson  <jas@extundo.com>
74100
74101         * lib/sysexit_.h: New file.
74102
74103 2003-06-11  Derek Price  <derek@ximbiot.com>
74104
74105         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74106         necessary.
74107
74108 2003-06-11  Bruno Haible  <bruno@clisp.org>
74109
74110         * m4/sysexits.m4: New file.
74111
74112 2003-06-10  Simon Josefsson  <jas@extundo.com>
74113
74114         * lib/argp.h: New file, from glibc.
74115         * lib/argp-ba.c: New file, from glibc.
74116         * lib/argp-eexst.c: New file, from glibc.
74117         * lib/argp-fmtstream.c: New file, from glibc.
74118         * lib/argp-fmtstream.h: New file, from glibc.
74119         * lib/argp-fs-xinl.c: New file, from glibc.
74120         * lib/argp-help.c: New file, from glibc.
74121         * lib/argp-namefrob.h: New file, from glibc.
74122         * lib/argp-parse.c: New file, from glibc.
74123         * lib/argp-pv.c: New file, from glibc.
74124         * lib/argp-pvh.c: New file, from glibc.
74125         * lib/argp-xinl.c: New file, from glibc.
74126
74127 2003-06-10  Simon Josefsson  <jas@extundo.com>
74128
74129         * modules/strchrnul: New file.
74130
74131 2003-06-10  Simon Josefsson  <jas@extundo.com>
74132
74133         * modules/argp: New file.
74134
74135 2003-06-10  Simon Josefsson  <jas@extundo.com>
74136
74137         * m4/strchrnul.m4: New file.
74138
74139 2003-06-10  Simon Josefsson  <jas@extundo.com>
74140
74141         * lib/strchrnul.h: New file.
74142         * lib/strchrnul.c: New file.
74143
74144 2003-06-10  Bruno Haible  <bruno@clisp.org>
74145
74146         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74147
74148 2003-06-07  Karl Berry  <karl@gnu.org>
74149
74150         * config/config.{guess,sub}: update from prep.
74151
74152 2003-06-07  Jim Meyering  <jim@meyering.net>
74153
74154         * modules/strtod: Use $(...) notation, not @...@ for
74155         AC_REPLACE'd variables.
74156         * modules/localcharset: Likewise.
74157
74158 2003-06-07  Jim Meyering  <jim@meyering.net>
74159
74160         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74161         in place of my name in the copyright comment.
74162         Remove definition and uses of __P.
74163
74164         From coreutils.
74165         * lib/stat.c: Don't declare xmalloc explicitly.
74166         Instead, include "xalloc.h".
74167         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74168         xrealloc, and xcalloc return values.
74169         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74170         Improve comment.
74171         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74172
74173 2003-06-07  Bruno Haible  <bruno@clisp.org>
74174
74175         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74176         avoid AC_CONFIG_LINKS.
74177         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74178         fnmatch.h, to avoid AC_CONFIG_LINKS.
74179         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74180
74181 2003-06-07  Bruno Haible  <bruno@clisp.org>
74182
74183         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74184         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74185         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74186         directory.
74187         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74188         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74189         directory.
74190
74191 2003-06-06  Jim Meyering  <jim@meyering.net>
74192
74193         Merge from coreutils.
74194         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74195         Consolidate declarations and initializations of *_base* locals.
74196
74197         Merge from coreutils.
74198         This avoids a core dump on systems without GNU putenv,
74199         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74200         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74201         (unsetenv): New static function, from GNU libc.
74202         (rpl_putenv): Use it.
74203
74204         * lib/modechange.c: Remove trailing blanks.
74205
74206         Merge from coreutils.
74207         * lib/fsusage.c: Remove declaration of statfs.
74208         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74209
74210         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74211
74212 2003-06-06  Jim Meyering  <jim@meyering.net>
74213
74214         * lib/stdbool_.h: Renamed from stdbool.h.in.
74215
74216 2003-06-06  Jim Meyering  <jim@meyering.net>
74217             Bruno Haible  <bruno@clisp.org>
74218
74219         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74220         Adjust Makefile.am snippet not to redirect directly to target.
74221         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74222
74223 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74224
74225         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74226         mismatch, look in future quarters as well as past.  This fixes a
74227         bug when processing fall-backwards gaps immediately after a long
74228         period of daylight-saving time.
74229
74230         * lib/mktime.c: Assume freestanding C89 or better.
74231         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74232         (__P): Remove; not used.
74233         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74234         (mktime, not_equal_tm, print_tm, check_result,
74235         main): Use prototypes.  Use const * where appropriate.
74236         (main): Fix typo in testing code that uncovered by above changes.
74237         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74238
74239 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74240
74241         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74242         locale.h, localeconv.  This merges changes from coreutils.
74243
74244         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74245         It can be removed after the next Autoconf is released.
74246         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74247         needed.
74248
74249 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74250
74251         * lib/mktime.c: Fix Debian bug 177940
74252         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74253         (localtime_offset): Now long int, not time_t, because we want it
74254         to be guaranteed to be signed.  All uses changed.
74255         (__mktime_internal): If overflow would occur when adding offset,
74256         don't add it.
74257
74258         Merge 'human' changes from coreutils.  Rewrite to support
74259         locale-specific notations like thousands separators.
74260         * lib/human.c: Simplify authorship notice.
74261         Include human.h immediately after config.h.
74262         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74263         <limits.h>: Do not include, since human.h does.
74264         (SIZE_MAX, UINTMAX_MAX): New macros.
74265         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74266         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74267         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74268         (power_letter): Renamed from suffixes.
74269         (generate_suffix_backwards): Remove.
74270         (adjust_value): Now takes int style (because of human.h changes)
74271         and long double value (for greater precision on some platforms).
74272         (group_number): New function.
74273         (human_readable): Use it.  Use integer options, not enum.
74274         Put the options before the sizes in the arg list.
74275         Support all the new options.
74276         The old human_readable function has been removed;
74277         use inttostr.h instead.
74278         (human_readable, default_block_size, humblock):
74279         Use uintmax_t, not int, for block sizes.
74280         (human_readable_inexact, block_size_types): Remove.
74281         (block_size_opts): New constant.
74282         (human_options): Renamed from human_block_size, with new signature
74283         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74284         * lib/human.h: Add copyright and authorship notice.
74285         Include <limits.h> and <stdbool.h> unconditionally.
74286         (PARAMS): Remove.  All uses removed.
74287         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74288         (enum human_inexact_style): Remove tag; now a nameless enum.
74289         (human_floor, human_ceiling, human_round_to_even): Now have
74290         values 2, 0, 1 rather than -1, 1, 0.
74291         (human_group_digits, human_suppress_point_zero, human_autoscale,
74292         human_base_1024, human_SI, human_B): New constants.
74293         (human_readable_inexact, human_block_size): Remove.
74294         (human_readable): Size args are now uintmax_t, not int.
74295         (human_options): New decl.
74296
74297         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74298         unnecessary now that we assume C89 or better.  This change
74299         imported from coreutils.
74300
74301         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74302         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74303         in the 2003-05-30 sync from glibc.
74304
74305         .h files should stand alone, but we shouldn't include <sys/types.h>
74306         if we can get away with just <stddef.h>.
74307
74308         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74309         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74310         rather than <sys/types.h>, as we merely need size_t.
74311         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74312         to get size_t.
74313         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74314         Include <stdio.h>, to get FILE.
74315         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74316         memcasecmp.h has included <stddef.h> and all we need is size_t.
74317         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74318         our interface, instead of including <sys/types.h>
74319
74320 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74321
74322         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74323         now, as glibc mktime is buggy on non-glibc systems.
74324
74325 2003-06-03  Karl Berry  <karl@gnu.org>
74326
74327         * config/config.sub: update from prep.
74328
74329 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74330
74331         [from coreutils]
74332         Fix some minor time-related bugs with POSIX time arguments.
74333         Some valid time stamps were being rejected (notably -1, and
74334         time stamps before 1900 on 64-bit hosts).  And some invalid
74335         time stamps were being accepted, e.g. September 31.
74336
74337         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74338         that we can return (time_t) -1 successfully.
74339         * lib/posixtm.c: Likewise.
74340         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74341         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74342         (t): Remove static var.
74343         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74344         of static var.  All uses changed.
74345         (year): Do not reject years before 1900; they can occur with
74346         64-bit time_t.
74347         (posix_time_parse): Do not check for out-of-range components;
74348         that is now the caller's responsibility, since our checks were
74349         only approximations.
74350         (posixtime): Use mktime to check for out-of-range components,
74351         since it knows them exactly.
74352         If mktime returns (time_t) -1, check whether an error actually occurred
74353         by invoking localtime on -1.
74354         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74355         posixtime failures better.
74356         Improve the test data (in comments only).
74357
74358 2003-06-02  Karl Berry  <karl@gnu.org>
74359
74360         * config/mkinstalldirs (version): new variable.
74361         (--version): new option.
74362         (usage): improve message.
74363
74364 2003-05-30  Karl Berry  <karl@gnu.org>
74365
74366         * lib/mktime.c: update from libc.
74367
74368 2003-05-30  Bruno Haible  <bruno@clisp.org>
74369
74370         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74371         * config/config.rpath: Upgrade to gettext-0.12.1.
74372
74373 2003-05-30  Bruno Haible  <bruno@clisp.org>
74374
74375         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74376         * m4/nls.m4: New file, from gettext-0.12.1.
74377         * m4/po.m4: New file, from gettext-0.12.1.
74378         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74379
74380 2003-05-30  Bruno Haible  <bruno@clisp.org>
74381
74382         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74383         * lib/localcharset.h: Likewise.
74384         * lib/localcharset.c: Likewise.
74385
74386 2003-05-29  Karl Berry  <karl@gnu.org>
74387
74388         * config/config.rpath: update from gettext.
74389
74390 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74391
74392         Assume the headers required for C89 freestanding compilers.
74393         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74394         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74395         * m4/human.m4 (gl_HUMAN): Likewise.
74396         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74397         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74398         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74399         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74400         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74401         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74402
74403 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74404
74405         Assume the headers required for C89 freestanding compilers.
74406         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74407         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74408         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74409         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74410         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74411         define, since <limits.h> is guaranteed to do that.
74412         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74413         * lib/exclude.c: Include <stdbool.h> unconditionally.
74414         * lib/tempname.c: Include <stddef.h> unconditionally.
74415         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74416         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74417         <stddef.h> does that.
74418         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74419         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74420         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74421         needed.
74422         * lib/xstrtol.c: Likewise.
74423         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74424         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74425
74426         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74427         warnings on some platforms.
74428
74429         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74430         arbitrarily.
74431
74432 2003-05-26  Jim Meyering  <jim@meyering.net>
74433
74434         Merge in a change from coreutils:
74435         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74436         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74437         that condition, rather than `-1' which is slightly misleading.
74438         Change the name of the cache variable to have the gl_ prefix.
74439         Prompted by a patch from Richard Dawe for DJGPP.
74440
74441 2003-05-24  Karl Berry  <karl@gnu.org>
74442
74443         * config/config.guess: update from prep.
74444
74445 2003-05-22  Karl Berry  <karl@gnu.org>
74446
74447         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74448
74449 2003-05-20  Karl Berry  <karl@gnu.org>
74450
74451         * config/config.guess: update from prep.
74452
74453 2003-05-18  Karl Berry  <karl@gnu.org>
74454
74455         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74456         might actually be set by the user.
74457
74458         * config/depcomp, install-sh, mdate-sh: update from automake.
74459
74460 2003-05-17  Bruno Haible  <bruno@clisp.org>
74461
74462         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74463         invalid expansion for AC_EGREP_CPP.
74464         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74465         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74466         Suggested by Akim Demaille <akim@epita.fr> in
74467         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74468
74469 2003-05-12  Jim Meyering  <jim@meyering.net>
74470
74471         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74472         the space-padded-by-default conversion specifiers, %e, %k, %l.
74473
74474 2003-05-12  Bruno Haible  <bruno@clisp.org>
74475
74476         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74477         the string is longer than 4 KB.
74478
74479 2003-05-11  Karl Berry  <karl@gnu.org>
74480
74481         * config/config.{guess,sub}: update from prep.
74482
74483 2003-05-09  Bruno Haible  <bruno@clisp.org>
74484
74485         * modules/error: Add m4/strerror_r.m4 to file list.
74486
74487 2003-05-03  Bruno Haible  <bruno@clisp.org>
74488
74489         Upgrade to Unicode-4.0.
74490         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74491         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74492         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74493         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74494         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74495         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74496         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74497         Change width of U+E0100..U+E01EF from 1 to 0.
74498
74499 2003-04-25  Jim Meyering  <jim@meyering.net>
74500
74501         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74502         of type size_t, not int.
74503
74504 2003-04-25  Bruno Haible  <bruno@clisp.org>
74505
74506         * lib/copy-file.c: Include <stddef.h>, for size_t.
74507
74508 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74509
74510         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74511         code which expansion is under static control.  Patch imported from
74512         Akim Demaille's patch to Bison; see
74513         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74514
74515 2003-04-14  Bruno Haible  <bruno@clisp.org>
74516
74517         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74518
74519 2003-04-11  Jim Meyering  <jim@meyering.net>
74520
74521         Merge changes from Coreutils.
74522
74523         2003-03-22  Jim Meyering  <jim@meyering.net>
74524
74525         * lib/strftime.c (widen): Cast alloca return value to proper type.
74526
74527         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74528
74529         From GNU libc.
74530         * lib/strftime.c (my_strftime): Handle very large width
74531         specifications for numeric values correctly.  Improve checks for
74532         overflow.
74533
74534         2003-01-19  Jim Meyering  <jim@meyering.net>
74535
74536         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74537         definitions.
74538         (nl_get_alt_digit) [! defined my_strftime]: Define.
74539         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74540         _nl_get_alt_digit and _nl_get_walt_digit.
74541
74542         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74543         libc. These changes have no effect outside of _LIBC.
74544
74545 2003-04-10  Bruno Haible  <bruno@clisp.org>
74546
74547         * modules/findprog: New file.
74548         * MODULES.html.sh (func_all_modules): Add it.
74549
74550 2003-04-10  Bruno Haible  <bruno@clisp.org>
74551
74552         * m4/findprog.m4: New file.
74553         * m4/eaccess.m4: New file.
74554
74555 2003-04-10  Bruno Haible  <bruno@clisp.org>
74556
74557         * lib/findprog.h: New file, from GNU gettext.
74558         * lib/findprog.c: New file, from GNU gettext.
74559
74560 2003-04-05  Jim Meyering  <jim@meyering.net>
74561
74562         Merge changes from Coreutils.
74563
74564         * lib/exclude.h (PARAMS): Remove definition and uses.
74565         * lib/exclude.c: Remove uses of `PARAMS'.
74566
74567         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74568         Add test-cases for DOS filenames. Declare program_name.
74569         (main): Set up program_name.  Patch by Rich Dawe.
74570
74571         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74572         error from mntctl.
74573         Use mntctl's return value to drive the entry-processing loop, since
74574         we can't rely on the value of the vmt_length member in the last
74575         entry.  On some systems doing so could result in exhausting
74576         virtual memory.  Based in part on a patch from Mike Jetzer.
74577
74578 2003-04-04  Bruno Haible  <bruno@clisp.org>
74579
74580         * modules/linebreak: New file.
74581         * MODULES.html.sh (func_all_modules): Add it.
74582
74583 2003-04-04  Bruno Haible  <bruno@clisp.org>
74584
74585         * m4/linebreak.m4: New file.
74586
74587 2003-04-04  Bruno Haible  <bruno@clisp.org>
74588
74589         * lib/linebreak.h: New file, from GNU gettext.
74590         * lib/linebreak.c: New file, from GNU gettext with slight
74591         modifications.
74592         * lib/lbrkprop.h: New file, from GNU gettext.
74593
74594 2003-04-03  Bruno Haible  <bruno@clisp.org>
74595
74596         * modules/utf8-ucs4: New file.
74597         * modules/utf16-ucs4: New file.
74598         * modules/ucs4-utf8: New file.
74599         * modules/ucs4-utf16: New file.
74600         * MODULES.html.sh (func_all_modules): Add them.
74601
74602 2003-04-03  Bruno Haible  <bruno@clisp.org>
74603
74604         * m4/utf-ucs4.m4: New file.
74605         * m4/ucs4-utf.m4: New file.
74606
74607 2003-04-03  Bruno Haible  <bruno@clisp.org>
74608
74609         * lib/utf8-ucs4.h: New file, from GNU gettext.
74610         * lib/utf16-ucs4.h: New file, from GNU gettext.
74611         * lib/ucs4-utf8.h: New file, from GNU gettext.
74612         * lib/ucs4-utf16.h: New file, from GNU gettext.
74613
74614 2003-04-02  Bruno Haible  <bruno@clisp.org>
74615
74616         * modules/binary-io: New file.
74617         * MODULES.html.sh (func_all_modules): Add it.
74618
74619 2003-04-02  Bruno Haible  <bruno@clisp.org>
74620
74621         * lib/binary-io.h: New file, from GNU gettext.
74622
74623 2003-04-01  Bruno Haible  <bruno@clisp.org>
74624
74625         * modules/pathname: New file.
74626         * MODULES.html.sh (func_all_modules): Add it.
74627
74628 2003-04-01  Bruno Haible  <bruno@clisp.org>
74629
74630         * lib/pathname.h: New file, from GNU gettext.
74631         * lib/concatpath.c: New file, from GNU gettext.
74632
74633 2003-03-30  Bruno Haible  <bruno@clisp.org>
74634
74635         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74636
74637 2003-03-30  Bruno Haible  <bruno@clisp.org>
74638
74639         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74640         function chown() doesn't exist.
74641
74642 2003-03-28  Bruno Haible  <bruno@clisp.org>
74643
74644         * modules/copy-file: New file.
74645         * MODULES.html.sh (func_all_modules): Add it.
74646
74647 2003-03-28  Bruno Haible  <bruno@clisp.org>
74648
74649         * m4/copy-file.m4: New file.
74650
74651 2003-03-28  Bruno Haible  <bruno@clisp.org>
74652
74653         * lib/copy-file.h: New file, from GNU gettext.
74654         * lib/copy-file.c: New file, from GNU gettext.
74655
74656 2003-03-18  Jim Meyering  <jim@meyering.net>
74657
74658         * lib/quote.c (quote_n): Fix typo in comment.
74659
74660 2003-03-18  Bruno Haible  <bruno@clisp.org>
74661
74662         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74663         checking.
74664         * m4/onceonly_2_57.m4: Likewise.
74665
74666 2003-03-17  Bruno Haible  <bruno@clisp.org>
74667
74668         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74669         (m4_quote): Remove macro.
74670         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74671
74672 2003-03-14  Jim Meyering  <jim@meyering.net>
74673
74674         Merge changes from Coreutils.
74675         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74676         to be const, in order to avoid warnings.
74677         (obstack_room): Likewise.
74678         (obstack_empty_p): Likewise.
74679
74680 2003-03-14  Bruno Haible  <bruno@clisp.org>
74681
74682         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74683         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74684
74685 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74686
74687         Merge changes from Bison.
74688         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74689         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74690         when compiling Bison 1.875's `bitset bset = obstack_alloc
74691         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74692         * lib/hash.c: Include <stdbool.h> unconditionally.
74693
74694 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74695
74696         * m4/onceonly.m4 (m4_quote): New macro.
74697         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74698         Quote AC_FOREACH variable-expansions properly.
74699
74700 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74701
74702         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74703
74704 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74705
74706         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74707         Reported by Bruce Becker; see:
74708         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74709
74710 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74711             Bruno Haible  <bruno@clisp.org>
74712
74713         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74714         Reported by John Hughes, see
74715         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74716
74717 2003-02-20  Bruno Haible  <bruno@clisp.org>
74718
74719         * MODULES.html.sh (func_all_modules): Add poll.
74720
74721 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74722
74723         * modules/poll: New file.
74724
74725 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74726
74727         * lib/poll_.h: New file.
74728         * lib/poll.c: New file.
74729
74730 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74731
74732         * m4/poll.m4: New file.
74733
74734 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74735
74736         * modules/mathl: New file.
74737
74738 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74739
74740         * lib/mathl.h: New file.
74741         * lib/acosl.c: New file.
74742         * lib/asinl.c: New file.
74743         * lib/atanl.c: New file.
74744         * lib/ceill.c: New file.
74745         * lib/cosl.c: New file.
74746         * lib/expl.c: New file.
74747         * lib/floorl.c: New file.
74748         * lib/frexpl.c: New file.
74749         * lib/ldexpl.c: New file.
74750         * lib/logl.c: New file.
74751         * lib/sincosl.c: New file.
74752         * lib/sinl.c: New file.
74753         * lib/sqrtl.c: New file.
74754         * lib/tanl.c: New file.
74755         * lib/trigl.c: New file.
74756         * lib/trigl.h: New file.
74757
74758 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74759
74760         * m4/mathl.m4: New file.
74761
74762 2003-02-18  Bruno Haible  <bruno@clisp.org>
74763
74764         * MODULES.html.sh (func_all_modules): Add mathl.
74765
74766 2003-02-17  Bruno Haible  <bruno@clisp.org>
74767
74768         * modules/mkdtemp: New module.
74769         * MODULES.html.sh (func_all_modules): Add it.
74770
74771 2003-02-17  Bruno Haible  <bruno@clisp.org>
74772
74773         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74774
74775 2003-02-17  Bruno Haible  <bruno@clisp.org>
74776
74777         * lib/mkdtemp.h: New file, from GNU gettext.
74778         * lib/mkdtemp.c: New file, from GNU gettext.
74779
74780 2003-02-02  Jim Meyering  <jim@meyering.net>
74781
74782         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74783         e.g. glibc-2.2.93.
74784
74785 2003-01-31  Bruno Haible  <bruno@clisp.org>
74786
74787         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74788         'rpl_rename'.
74789         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74790         'rpl_strnlen'.
74791         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74792         'rpl_strtod'.
74793         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74794         'rpl_utime'.
74795
74796 2003-01-31  Bruno Haible  <bruno@clisp.org>
74797
74798         * lib/rename.c: #undef rename before defining rpl_rename.
74799         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74800
74801 2003-01-30  Bruno Haible  <bruno@clisp.org>
74802
74803         * modules/vasnprintf, modules/vasprintf: New modules.
74804         * MODULES.html.sh (func_all_modules): Add them.
74805
74806 2003-01-30  Bruno Haible  <bruno@clisp.org>
74807
74808         * m4/signed.m4: New file, from GNU gettext.
74809         * m4/longdouble.m4: New file, from GNU gettext.
74810         * m4/wchar_t.m4: New file, from GNU gettext.
74811         * m4/wint_t.m4: New file, from GNU gettext.
74812         * m4/vasnprintf.m4: New file.
74813         * m4/vasprintf.m4: New file.
74814
74815 2003-01-30  Bruno Haible  <bruno@clisp.org>
74816
74817         * lib/printf-args.h: New file, from GNU gettext.
74818         * lib/printf-args.c: New file, from GNU gettext.
74819         * lib/printf-parse.h: New file, from GNU gettext.
74820         * lib/printf-parse.c: New file, from GNU gettext.
74821         * lib/vasnprintf.h: New file, from GNU gettext.
74822         * lib/vasnprintf.c: New file, from GNU gettext.
74823         * lib/asnprintf.c: New file, from GNU gettext.
74824         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74825         * lib/vasprintf.c: New file, from GNU gettext.
74826         * lib/asprintf.c: New file, from GNU gettext.
74827
74828 2003-01-29  Bruno Haible  <bruno@clisp.org>
74829
74830         * modules/stpncpy: New module.
74831         * MODULES.html.sh (func_all_modules): Add it.
74832
74833 2003-01-29  Bruno Haible  <bruno@clisp.org>
74834
74835         * m4/stpncpy.m4: New file.
74836
74837 2003-01-29  Bruno Haible  <bruno@clisp.org>
74838
74839         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74840         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74841
74842 2003-01-28  Bruno Haible  <bruno@clisp.org>
74843
74844         * modules/c-ctype: New module.
74845         * MODULES.html.sh (func_all_modules): Add it.
74846
74847 2003-01-28  Bruno Haible  <bruno@clisp.org>
74848
74849         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74850         Paul Eggert.
74851         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74852         Paul Eggert.
74853
74854 2003-01-27  Bruno Haible  <bruno@clisp.org>
74855
74856         * modules/xsetenv: New module.
74857         * MODULES.html.sh (func_all_modules): Add it.
74858
74859 2003-01-27  Bruno Haible  <bruno@clisp.org>
74860
74861         * lib/xsetenv.h: New file, from GNU gettext.
74862         * lib/xsetenv.c: New file, from GNU gettext.
74863
74864 2003-01-23  Jim Meyering  <jim@meyering.net>
74865
74866         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74867         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74868
74869 2003-01-23  Bruno Haible  <bruno@clisp.org>
74870
74871         * modules/minmax: New module.
74872         * MODULES.html.sh (func_all_modules): Add it.
74873
74874 2003-01-23  Bruno Haible  <bruno@clisp.org>
74875
74876         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74877         Eggert.
74878
74879 2003-01-22  Bruno Haible  <bruno@clisp.org>
74880
74881         * modules/exit: New module.
74882         * MODULES.html.sh (func_all_modules): Add it.
74883
74884 2003-01-22  Bruno Haible  <bruno@clisp.org>
74885
74886         * lib/exit.h: New file, from GNU gettext.
74887
74888 2003-01-19  Bruno Haible  <bruno@clisp.org>
74889
74890         * gnulib-tool: Recognize option --extract-maintainer.
74891         (func_get_maintainer): New function.
74892         * modules/*: Add Maintainer entry.
74893
74894 2003-01-16  Jim Meyering  <jim@meyering.net>
74895
74896         * m4/regex.m4: The `regex' struct is both input and output.
74897         Initialize it before each use.  Patch by Tim Waugh.
74898
74899 2003-01-16  Bruno Haible  <bruno@clisp.org>
74900
74901         * MODULES.html.sh: Add a table of contents. Add the module name as
74902         leftmost column. Add hyperlinks.
74903
74904 2003-01-15  Bruno Haible  <bruno@clisp.org>
74905
74906         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74907
74908 2003-01-15  Bruno Haible  <bruno@clisp.org>
74909
74910         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74911         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74912         suffix.
74913
74914 2003-01-15  Bruno Haible  <bruno@clisp.org>
74915
74916         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74917
74918 2003-01-15  Bruno Haible  <bruno@clisp.org>
74919
74920         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74921         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74922
74923 2003-01-14  Jim Meyering  <jim@meyering.net>
74924
74925         * lib/same.c (same_name): Tweak a comment.
74926
74927 2003-01-14  Bruno Haible  <bruno@clisp.org>
74928
74929         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74930         when a string comparison is sufficient.
74931
74932 2003-01-14  Bruno Haible  <bruno@clisp.org>
74933
74934         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74935         'unsigned int'.
74936
74937 2003-01-14  Bruno Haible  <bruno@clisp.org>
74938
74939         * lib/hash-pjw.c: Add comment about low quality of this function.
74940
74941 2003-01-13  Bruno Haible  <bruno@clisp.org>
74942
74943         * modules/stpcpy: Distribute lib/stpcpy.h.
74944         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74945
74946 2003-01-13  Bruno Haible  <bruno@clisp.org>
74947
74948         * modules/*: Add a description.
74949         * modules/strpbrk: Fix Makefile.am snippet.
74950         * modules/strtoimax: Fix dependencies.
74951         * modules/strtoumax: Likewise.
74952
74953 2003-01-13  Bruno Haible  <bruno@clisp.org>
74954
74955         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74956         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74957         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74958
74959 2003-01-13  Bruno Haible  <bruno@clisp.org>
74960
74961         * gnulib-tool (func_create_testdir): Store config/* files in the main
74962         directory.
74963         * config.rpath: Move to ...
74964         * config/config.rpath: ... here.
74965         * modules/gettext: Contains config/config.rpath, not config.rpath.
74966         * modules/iconv: Likewise.
74967
74968 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74969
74970         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74971         to avoid collisions with libcurses and libreadline.
74972
74973         * m4/getstr.m4: Remove.
74974         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74975
74976 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74977
74978         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74979         to avoid collisions with libcurses and libreadline.
74980
74981         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74982         * lib/getstr.h, getstr.c: Remove.
74983         * lib/getline.c: Include "getline.h", to check interface.
74984         Move body of old getstr.c here: this defines MIN_CHUNK and
74985         declares getdelim2, which is renamed from getstr.
74986         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74987
74988         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74989         All uses changed.
74990         * lib/linebuffer.h: Likewise.
74991         (readline): Remove backward-compatibility macro.
74992
74993 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74994
74995         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74996         to avoid collisions with libcurses and libreadline.
74997         * getstr: Remove.
74998         * MODULES.html.sh: Remove getstr.
74999         * modules/getline: Depend on unlocked-io, not getstr.
75000
75001 2003-01-12  Jim Meyering  <jim@meyering.net>
75002
75003         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75004
75005 2003-01-10  Bruno Haible  <bruno@clisp.org>
75006
75007         * modules/alloca: Change Makefile.am requirements. Simplify Include
75008         requirements. Add lib/alloca_.h to file list.
75009
75010 2003-01-10  Bruno Haible  <bruno@clisp.org>
75011
75012         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75013
75014 2003-01-10  Bruno Haible  <bruno@clisp.org>
75015
75016         * lib/alloca_.h: New file.
75017         * lib/getdate.y: Unconditionally include alloca.h.
75018         * lib/makepath.c: Likewise.
75019         * lib/setenv.c: Likewise.
75020         * lib/userspec.c: Likewise.
75021
75022 2003-01-09  Karl Berry  <karl@gnu.org>
75023
75024         * MODULES.html.sh: include `dirname $0` in PATH, to find
75025         gnulib-tool.
75026
75027 2003-01-09  Bruno Haible  <bruno@clisp.org>
75028
75029         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75030         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75031
75032 2003-01-09  Bruno Haible  <bruno@clisp.org>
75033
75034         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75035
75036 2003-01-09  Bruno Haible  <bruno@clisp.org>
75037
75038         * lib/stdbool.h.in: New file.
75039
75040 2003-01-09  Bruno Haible  <bruno@clisp.org>
75041
75042         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75043         * MODULES.html.sh: Likewise.
75044
75045 2003-01-08  Jim Meyering  <jim@meyering.net>
75046
75047         * lib/full-write.c: Undefine and define-away `const' after inclusion
75048         of errno.h, not before.  Suggestion from Bruno Haible.
75049
75050 2003-01-08  Bruno Haible  <bruno@clisp.org>
75051
75052         * modules/full-read: Depend on full-write.
75053
75054 2003-01-08  Bruno Haible  <bruno@clisp.org>
75055
75056         * lib/safe-read.c: Include specification header first, to ensure its
75057         selfcontainedness.
75058         * lib/full-write.c: Likewise.
75059
75060 2003-01-07  Jim Meyering  <jim@meyering.net>
75061
75062         * lib/full-write.c: Rework so that it may serve to define full_read,
75063         too.
75064         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75065
75066 2003-01-07  Bruno Haible  <bruno@clisp.org>
75067
75068         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75069         <inttypes.h>.
75070         * lib/xstrtol.h: Likewise.
75071         * lib/xstrtoimax.c: Likewise.
75072         * lib/xstrtoumax.c: Likewise.
75073         * lib/human.h: Likewise.
75074
75075         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75076         on systems that have <inttypes.h> but not <stdint.h>.
75077
75078 2003-01-07  Bruno Haible  <bruno@clisp.org>
75079
75080         * MODULES.html.sh: Add copyright notice.
75081         (missed_files): Omit CVS directory entries.
75082         (func_module): Make it work with sed-3.02.
75083         * MODULES.txt: Remove file.
75084
75085 2003-01-06  Jim Meyering  <jim@meyering.net>
75086
75087         * lib/version-etc.c: Update year in translatable copyright string.
75088
75089 2003-01-03  Karl Berry  <karl@gnu.org>
75090
75091         * config/config.{guess,sub}: update from prep.
75092
75093 2003-01-02  Karl Berry  <karl@gnu.org>
75094
75095         * doc/COPYING.DOC: belatedly updated to 1.2.
75096
75097 2003-01-01  Karl Berry  <karl@gnu.org>
75098
75099         * gnulib-tool (func_verify_module): report module name $module in
75100         error message, not $1.
75101         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75102         be created, only if it doesn't exist.
75103         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75104
75105 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75106
75107         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75108
75109 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75110
75111         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75112         memcmp if strcoll doesn't work.
75113
75114 2002-12-31  Bruno Haible  <bruno@clisp.org>
75115
75116         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75117         nonempty.
75118
75119 2002-12-31  Bruno Haible  <bruno@clisp.org>
75120
75121         * lib/memcoll.c (STRCOLL): New macro.
75122         (memcoll): Use it.
75123
75124 2002-12-31  Bruno Haible  <bruno@clisp.org>
75125
75126         * lib/localcharset.h: New file.
75127         * lib/localcharset.c: Include it.
75128         * lib/unicodeio.c: Likewise.
75129
75130 2002-12-31  Bruno Haible  <bruno@clisp.org>
75131
75132         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75133         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75134
75135 2002-12-31  Bruno Haible  <bruno@clisp.org>
75136
75137         * lib/getline.h: Include <stddef.h>, for size_t.
75138
75139         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75140         * lib/unicodeio.c: Don't include <stddef.h>.
75141
75142 2002-12-31  Bruno Haible  <bruno@clisp.org>
75143
75144         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75145         HAVE_TM_ZONE.
75146
75147 2002-12-24  Karl Berry  <karl@gnu.org>
75148
75149         * config/config.guess: update from prep.
75150
75151 2002-12-24  Bruno Haible  <bruno@clisp.org>
75152
75153         General infrasructure.
75154         * m4/README: Rewritten.
75155         * m4/onceonly.m4: New file.
75156         * m4/onceonly_2_57.m4: New file.
75157
75158         Module atexit.
75159         * m4/atexit.m4: New file.
75160
75161         Module strtod.
75162         * m4/strtod.m4: New file.
75163
75164         Module strtol.
75165         * m4/strtol.m4: New file.
75166
75167         Module strtoul.
75168         * m4/strtoul.m4: New file.
75169
75170         Module memchr.
75171         * m4/memchr.m4: New file.
75172
75173         Module memcmp.
75174         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75175         (jm_FUNC_MEMCMP): Invoke it.
75176
75177         Module memcpy.
75178         * m4/memcpy.m4: New file.
75179
75180         Module memmove.
75181         * m4/memmove.m4: New file.
75182
75183         Module memset.
75184         * m4/memset.m4: New file.
75185
75186         Module strcspn.
75187         * m4/strcspn.m4: New file.
75188
75189         Module strpbrk.
75190         * m4/strpbrk.m4: New file.
75191
75192         Module strstr.
75193         * m4/strstr.m4: New file.
75194
75195         Module strerror.
75196         * m4/strerror.m4: New file.
75197
75198         Module mktime.
75199         * m4/mktime.m4: Renamed from jm-mktime.m4.
75200         (gl_PREREQ_MKTIME): New macro.
75201         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75202
75203         Module malloc.
75204         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75205         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75206         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75207
75208         Module realloc.
75209         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75210         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75211         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75212
75213         Module strftime.
75214         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75215         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75216         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75217         gl_TM_GMTOFF.
75218         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75219
75220         Module xalloc.
75221         * m4/xalloc.m4: New file.
75222
75223         Module alloca.
75224         * m4/alloca.m4: New file.
75225
75226         Module putenv.
75227         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75228         (jm_FUNC_PUTENV): Invoke it.
75229
75230         Module setenv.
75231         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75232         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75233         when invoked twice.
75234         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75235         gt_FUNC_SETENV.
75236
75237         Module memrchr.
75238         * m4/memrchr.m4: New file.
75239
75240         Module stpcpy.
75241         * m4/stpcpy.m4: New file.
75242
75243         Module strcase.
75244         * m4/strcase.m4: New file.
75245
75246         Module strdup.
75247         * m4/strdup.m4: New file.
75248
75249         Module strnlen.
75250         * m4/strnlen.m4: New file.
75251
75252         Module strndup.
75253         * m4/strndup.m4: New file.
75254
75255         Module xstrtod.
75256         * m4/xstrtod.m4: New file.
75257
75258         Module xstrtol.
75259         * m4/xstrtol.m4: New file.
75260
75261         Module getdate.
75262         * m4/getdate.m4: New file.
75263
75264         Module unlocked-io.
75265         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75266         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75267         * m4/jm-glibc-io.m4n: Remove file.
75268
75269         Module long-options.
75270         * m4/long-options.m4: New file.
75271
75272         Module md5.
75273         * m4/md5.m4: New file.
75274
75275         Module sha.
75276         * m4/sha.m4: New file.
75277
75278         Module getstr.
75279         * m4/getstr.m4: New file.
75280
75281         Module getline.
75282         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75283         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75284         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75285         simply getline. Infoke gl_PREREQ_GETLINE.
75286
75287         Module obstack.
75288         * m4/obstack.m4: New file.
75289
75290         Module hash.
75291         * m4/hash.m4: New file.
75292
75293         Module readtokens.
75294         * m4/readtokens.m4: New file.
75295
75296         Module strverscmp.
75297         * m4/strverscmp.m4: New file.
75298
75299         Module stdbool.
75300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75301         OSF/1.
75302
75303         Module strtoll.
75304         * m4/strtoll.m4: New file.
75305
75306         Module strtoull.
75307         * m4/strtoull.m4: New file.
75308
75309         Module strtoimax.
75310         * m4/strtoimax.m4: New file.
75311
75312         Module strtoumax.
75313         * m4/strtoumax.m4: New file.
75314
75315         Module xstrtoimax.
75316         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75317         jm_AC_PREREQ_XSTRTOIMAX.
75318         Moved the strtol prerequisites to strtol.m4.
75319         Moved the strtoll prerequisites to strtoll.m4.
75320         Moved the strtoimax prerequisites to strtoimax.m4.
75321
75322         Module xstrtoumax.
75323         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75324         jm_AC_PREREQ_XSTRTOUMAX.
75325         Moved the strtoul prerequisites to strtoul.m4.
75326         Moved the strtoull prerequisites to strtoull.m4.
75327         Moved the strtoumax prerequisites to strtoumax.m4.
75328
75329         Module chown.
75330         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75331         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75332
75333         Module dup2.
75334         * m4/dup2.m4: New file.
75335
75336         Module ftruncate.
75337         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75338         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75339
75340         Module getgroups.
75341         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75342         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75343
75344         Module gettimeofday.
75345         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75346         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75347         gl_PREREQ_GETTIMEOFDAY.
75348
75349         Module mkdir.
75350         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75351         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75352
75353         Module mkstemp.
75354         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75355         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75356         jm_AC_TYPE_UINTMAX_T.
75357         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75358
75359         Module stat.
75360         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75361         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75362
75363         Module lstat.
75364         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75365         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75366
75367         Module timespec.
75368         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75369         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75370         * m4/st_mtim.m4: Indentation.
75371
75372         Module nanosleep.
75373         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75374         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75375         gl_PREREQ_NANOSLEEP.
75376
75377         Module regex.
75378         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75379         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75380         (gl_REGEX): New macro.
75381
75382         Module rename.
75383         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75384         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75385
75386         Module rmdir.
75387         * m4/rmdir.m4: New file.
75388
75389         Module utime.
75390         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75391         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75392         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75393
75394         Module dirname.
75395         * m4/dirname.m4: New file.
75396
75397         Module getopt.
75398         * m4/getopt.m4: New file.
75399
75400         Module unistd-safer.
75401         * m4/unistd-safer.m4: New file.
75402
75403         Module fnmatch.
75404         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75405         declaration.
75406         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75407         (gl_FUNC_FNMATCH_POSIX): New macro.
75408         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75409         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75410         simply fnmatch.
75411
75412         Module exclude.
75413         * m4/exclude.m4: New file.
75414
75415         Module human.
75416         * m4/human.m4: New file.
75417
75418         Module acl.
75419         * m4/acl.m4: Nop.
75420
75421         Module backupfile.
75422         * m4/backupfile.m4: New file.
75423         * m4/d-ino.m4: Indentation.
75424
75425         Module fsusage.
75426         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75427         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75428         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75429
75430         Module dirfd.
75431         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75432         requirements.
75433
75434         Module euidaccess.
75435         * m4/euidaccess.m4: New file.
75436
75437         Module file-type.
75438         * m4/file-type.m4: New file.
75439
75440         Module fileblocks.
75441         * m4/fileblocks.m4: New file.
75442
75443         Module filemode.
75444         * m4/filemode.m4: New file.
75445
75446         Module isdir.
75447         * m4/isdir.m4: New file.
75448
75449         Module lchown.
75450         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75451         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75452
75453         Module makepath.
75454         * m4/makepath.m4: New file.
75455
75456         Module modechange.
75457         * m4/modechange.m4: New file.
75458
75459         Module mountlist.
75460         * m4/mountlist.m4: New file.
75461         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75462         Indentation.
75463
75464         Module path-concat.
75465         * m4/path-concat.m4: New file.
75466
75467         Module pathmax.
75468         * m4/pathmax.m4: New file.
75469
75470         Module same.
75471         * m4/same.m4: New file.
75472
75473         Module save-cwd.
75474         * m4/save-cwd.m4: New file.
75475
75476         Module savedir.
75477         * m4/savedir.m4: New file.
75478
75479         Module xgetcwd.
75480         * m4/xgetcwd.m4: New file.
75481         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75482
75483         Module xreadlink.
75484         * m4/xreadlink.m4: New file.
75485
75486         Module safe-read.
75487         * m4/safe-read.m4: New file.
75488
75489         Module safe-write.
75490         * m4/safe-write.m4: New file.
75491
75492         Module closeout.
75493         * m4/closeout.m4: New file.
75494
75495         Module stdio-safer.
75496         * m4/stdio-safer.m4: New file.
75497
75498         Module getpass.
75499         * m4/getpass.m4: New file.
75500
75501         Module getugroups.
75502         * m4/getugroups.m4: New file.
75503
75504         Module group-member.
75505         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75506         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75507
75508         Module idcache.
75509         * m4/idcache.m4: New file.
75510
75511         Module userspec.
75512         * m4/userspec.m4: New file.
75513
75514         Module gettime.
75515         * m4/clock_time.m4: New file.
75516         * m4/gettime.m4: New file.
75517
75518         Module settime.
75519         * m4/settime.m4: New file.
75520
75521         Module posixtm.
75522         * m4/posixtm.m4: New file.
75523
75524         Module gethostname.
75525         * m4/gethostname.m4: New file.
75526
75527         Module canon-host.
75528         * m4/canon-host.m4: New file.
75529
75530         Module gettext.
75531         * m4/codeset.m4: New file, from gettext-0.11.5.
75532         * m4/gettext.m4: New file, from gettext-0.11.5.
75533         * m4/glibc21.m4: New file, from gettext-0.11.5.
75534         * m4/iconv.m4: New file, from gettext-0.11.5.
75535         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75536         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75537         * m4/inttypes.m4: New file, from gettext-0.11.5.
75538         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75539         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75540         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75541         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75542         * m4/lib-link.m4: New file, from gettext-0.11.5.
75543         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75544         * m4/progtest.m4: New file, from gettext-0.11.5.
75545         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75546         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75547         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75548
75549         Module localcharset.
75550         * m4/localcharset.m4: New file.
75551
75552         Module hard-locale.
75553         * m4/hard-locale.m4: New file.
75554
75555         Module mbswidth.
75556         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75557         onceonly macros.
75558         * m4/mbrtowc.m4: Add comment.
75559
75560         Module memcasecmp.
75561         * m4/memcasecmp.m4: New file.
75562
75563         Module memcoll.
75564         * m4/memcoll.m4: New file.
75565
75566         Module unicodeio.
75567         * m4/unicodeio.m4: New file.
75568
75569         Module rpmatch.
75570         * m4/rpmatch.m4: New file.
75571
75572         Module yesno.
75573         * m4/yesno.m4: New file.
75574
75575         Module exitfail.
75576         * m4/exitfail.m4: New file.
75577
75578         Module c-stack.
75579         * m4/c-stack.m4 (gl_C_STACK): New macro.
75580         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75581
75582         Module error.
75583         * m4/error.m4 (gl_ERROR): New macro.
75584         (jm_PREREQ_ERROR): Use onceonly macros.
75585
75586         Module fatal.
75587         * m4/fatal.m4: New file.
75588
75589         Module getloadavg.
75590         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75591         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75592
75593         Module getpagesize.
75594         * m4/getpagesize.m4: New file.
75595
75596         Module getusershell.
75597         * m4/getusershell.m4: New file.
75598
75599         Module physmem.
75600         * m4/physmem.m4: New file.
75601
75602         Module posixver.
75603         * m4/posixver.m4: New file.
75604
75605         Module quotearg.
75606         * m4/quotearg.m4: New file.
75607
75608         Module quote.
75609         * m4/quote.m4: New file.
75610
75611         Module readutmp.
75612         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75613
75614         Module sig2str.
75615         * m4/sig2str.m4: New file.
75616
75617         Other.
75618         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75619         ulonglong.m4.
75620         * m4/intmax_t.m4: New file.
75621         * m4/d-type.m4: Indentation.
75622         * m4/jm-macros.m4: Update.
75623         * m4/prereq.m4 (jm_PREREQ): Update.
75624         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75625         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75626         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75627         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75628         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75629         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75630         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75631         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75632         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75633         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75634         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75635         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75636         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75637         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75638         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75639         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75640         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75641         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75642         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75643
75644 2002-12-24  Bruno Haible  <bruno@clisp.org>
75645
75646         * MODULES.txt: Update according to m4/ changes.
75647
75648         Module gettext.
75649         * config.rpath: New file, from gettext-0.11.5.
75650
75651         * modules/*: New module descriptions.
75652         * gnulib-tool: New file.
75653         * MODULES.html.sh: New file.
75654
75655 2002-12-21  Karl Berry  <karl@gnu.org>
75656
75657         * doc/fdl.texi: update to version 1.2.
75658
75659 2002-12-19  Karl Berry  <karl@gnu.org>
75660
75661         * config/config.guess: update from prep.
75662
75663 2002-12-18  Bruno Haible  <bruno@clisp.org>
75664
75665         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75666         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75667
75668 2002-12-17  Bruno Haible  <bruno@clisp.org>
75669
75670         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75671         stdlib.h, string.h.
75672
75673 2002-12-17  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/canon-host.c (strdup): Remove unused declaration.
75676
75677         * lib/fsusage.c: Include full_read.h.
75678         (get_fs_usage): Use full_read instead of safe_read.
75679
75680         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75681
75682 2002-12-12  Karl Berry  <karl@gnu.org>
75683
75684         * config/config.guess: update from prep.
75685
75686 2002-12-11  Bruno Haible  <bruno@clisp.org>
75687
75688         * m4/setenv.m4: New file, from gettext-0.11.5.
75689
75690 2002-12-11  Bruno Haible  <bruno@clisp.org>
75691
75692         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75693         not unsetenv().
75694         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75695         modifications:
75696
75697         2002-12-11  Bruno Haible  <bruno@clisp.org>
75698
75699                 * setenv.c (alloca): Fall back to malloc.
75700                 (freea): New macro.
75701                 (setenv): Use freea() to free memory allocated with alloca().
75702
75703         2002-11-13  Bruno Haible  <bruno@clisp.org>
75704
75705                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75706                 function declarations.
75707                 * unsetenv.c (unsetenv): Likewise.
75708
75709         2002-03-04  Bruno Haible  <bruno@clisp.org>
75710
75711                 Portability to AIX 4.3.3.
75712                 * unsetenv.c: New file, extracted from setenv.c.
75713                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75714
75715         2001-12-20  Bruno Haible  <bruno@clisp.org>
75716
75717                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75718                 use malloc instead. For SunOS 4.
75719
75720         2001-12-11  Bruno Haible  <bruno@clisp.org>
75721
75722                 * setenv.c: Declare alloca.
75723                 (compar_fn_t): New typedef.
75724                 (KNOWN_VALUE, STORE_VALUE): Use it.
75725
75726         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75727         setenv.h.
75728
75729 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75730
75731         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75732         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75733         Choose values that are less likely to collide with system fnmatch
75734         options.
75735         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75736         defined (e.g., a pure POSIX system).
75737         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75738         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75739
75740 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75741
75742         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75743         a pain in practice to deal with generated m4 files.  This change
75744         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75745
75746         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75747         and jm-glibc-io.m4, as they are no longer a special case.
75748         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75749         kludge and the auto-generation stuff.  Check only whether the
75750         functions are declared, not whether they exist, since older hosts
75751         that don't declare the functions can't use the optimization anyway.
75752
75753 2002-12-06  Jim Meyering  <jim@meyering.net>
75754
75755         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75756
75757         Merge in changes from libc's misc/error.c, in preparation
75758         for the merge of gnulib's changes back into libc.
75759
75760         * lib/error.c (_): Define only if not already defined.
75761         Move definition to follow all #include directives.
75762         Include unlocked-io.h only if !_LIBC.
75763         [_LIBC]: Include <libio/libioP.h>.
75764         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75765         (fflush): Tweak definition to use INTUSE.
75766         (putc): Define.
75767
75768 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75769
75770         * lib/alloca.c [defined emacs]: Include "lisp.h".
75771         (xalloc_die) [defined emacs]: New macro.
75772         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75773         [! defined emacs]: Include <xalloc.h>.
75774         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75775         (pointer): Typedef to POINTER_TYPE *.
75776         (malloc): Remove decl; we now always use xmalloc.
75777         (alloca): Use old-style definition, since Emacs needs this.
75778         Check for arithmetic overflow when computing combined size.
75779
75780 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75781
75782         Do not generate unlocked-io.h automatically, since it's easier to
75783         maintain it by hand.
75784
75785         * lib/unlocked-io.h: New file, from GNU diffutils,
75786         but with proper copyright notice and attribution.
75787         * lib/gen-uio: Remove.
75788         * lib/Makefile.am: Add copyright notice.
75789         (libfetish_a_SOURCES): Add unlocked-io.h.
75790         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75791         (DISTCLEANFILES, io_functions): Remove macros.
75792         (EXTRA_DIST): Remove gen_uio.
75793         (unlocked-io.h): Remove rule.
75794
75795 2002-12-04  Jim Meyering  <jim@meyering.net>
75796
75797         Reflect the fact that stat.c and lstat.c are no longer generated.
75798         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75799         (DISTCLEANFILES): Likewise.
75800         (EXTRA_DIST): Likewise.
75801         (all_local): Don't depend on stat.c or lstat.c.
75802         (stat.c, lstat.c): Remove rules.
75803         (EXTRA_DIST): Remove xstat.in.
75804
75805         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75806         * lib/stat.c: New file.  Contents mostly from xstat.in.
75807         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75808         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75809
75810         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75811         too.
75812         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75813
75814 2002-12-03  Jim Meyering  <jim@meyering.net>
75815
75816         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75817         but not semantics, to minimize the differences between these two files.
75818         (safe_read): Change comment to mention SAFE_READ_ERROR.
75819
75820         * lib/safe-read.c (IS_EINTR): Define.
75821         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75822
75823 2002-12-02  Jim Meyering  <jim@meyering.net>
75824
75825         * lib/safe-read.c (EINTR): Define.
75826         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75827         (INT_MAX): Provide fallback.
75828         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75829
75830         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75831
75832 2002-12-02  Bruno Haible  <bruno@clisp.org>
75833
75834         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75835         Define, taken from safe-read.c.
75836         (INT_MAX): Provide fallback.
75837         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75838         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75839
75840         * lib/safe-read.c (EINTR): Remove definition.
75841         (safe_read): Don't use EINTR if it is absent.
75842
75843 2002-12-01  Jim Meyering  <jim@meyering.net>
75844
75845         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75846         zero.
75847         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75848
75849 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75850
75851         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75852         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75853         with `if (! (value < limit)) abort ();', for readability.
75854
75855 2002-11-26  Karl Berry  <karl@gnu.org>
75856
75857         * lib/strdup.c: copy from libc again, with jim's ok.
75858         * lib/.cppi-disable: re-add strdup.c
75859
75860 2002-11-25  Karl Berry  <karl@gnu.org>
75861
75862         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75863         instead of "strtol.c".
75864
75865 2002-11-25  Karl Berry  <karl@gnu.org>
75866
75867         * config/install-sh: update from automake for variable quoting, $0 in
75868         error msgs, etc.
75869
75870         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75871         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75872         entry.
75873
75874 2002-11-25  Jim Meyering  <jim@meyering.net>
75875
75876         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75877
75878 2002-11-24  Karl Berry  <karl@gnu.org>
75879
75880         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75881         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75882
75883 2002-11-24  Jim Meyering  <jim@meyering.net>
75884
75885         Update from coreutils:
75886
75887         * lib/mktime.c: Merge in changes from libc.
75888
75889         Avoid a link-time failure on some Linux systems.
75890         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75891         (otherwise).
75892         (__mon_yday): Declare with the STATIC attribute.
75893         (__mktime_internal): Likewise.
75894         Based on a report from Greg Schafer.
75895
75896 2002-11-23  Jim Meyering  <jim@meyering.net>
75897
75898         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75899         Use `unsigned', not `int', as type of index.
75900
75901         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75902
75903         * lib/fsusage.c: Remove unneeded parentheses around operands of
75904         `defined'.
75905
75906 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75907
75908         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75909         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75910         so that we can be included first.
75911         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75912         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75913         No need to include stddef.h or sys/types.h any more.
75914         Surround local include files with "", not "<>".
75915         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75916         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75917         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75918         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75919         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75920         (ISPRINT): Remove; no longer needed now that we assume C89.
75921
75922         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75923         Preserve errno.
75924
75925         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75926         quotearg_char): Use SIZE_MAX rather than
75927         (size_t) -1 when we are talking about "infinity".
75928
75929         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75930
75931 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75932
75933         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75934         hint that one should use `if (! x) abort ();' rather than `assert
75935         (x);', and anyway it's one less thing to worry about configuring.
75936         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75937         hash_rehash, hash_insert): Use abort rather than assert.
75938
75939 2002-11-22  Bruno Haible  <bruno@clisp.org>
75940
75941         * lib/safe-read.h: Assume C89. Add comments.
75942         (safe_read): Change return type to size_t.
75943         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75944         byte counts > SSIZE_MAX correctly.
75945         * lib/safe-write.h: New file.
75946         * lib/safe-write.c: New file.
75947         * lib/full-read.h: New file.
75948         * lib/full-read.c: New file.
75949         * lib/full-write.h: Assume C89. Add comments.
75950         * lib/full-write.c: Include safe-write.h.
75951         (full_write): Rewritten to use safe_write.
75952         Suggested by Jim Meyering and Paul Eggert.
75953
75954 2002-11-21  Jim Meyering  <jim@meyering.net>
75955
75956         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75957
75958         Merge in changes from the coreutils.
75959
75960         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75961         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75962         <stdint.h>.
75963         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75964         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75965         int.  Work more efficiently if X is the same width as uintmax_t.
75966         Do not compare X to -1, to avoid bogus compiler warning.
75967         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75968         Don't assume that f_frsize and f_bsize are the same type.
75969
75970         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75971         warning on FreeBSD.
75972
75973         * lib/makepath.c (make_path): Restore umask *before* creating the final
75974         component.
75975         (make_path): Minor reformatting.
75976
75977         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75978         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75979         HAVE_MALLOC/HAVE_REALLOC.
75980
75981         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75982         dummy ones.  At least on GNU/Linux systems, `auto' means something
75983         else.
75984         From Michael Stone.
75985
75986 2002-11-21  Bruno Haible  <bruno@clisp.org>
75987
75988         Remove case insensitive option matching.
75989         * lib/argmatch.h (argcasematch): Remove declaration.
75990         (ARGCASEMATCH): Remove macro.
75991         (__xargmatch_internal): Remove case_sensitive argument.
75992         (XARGMATCH): Update.
75993         (XARGCASEMATCH): Remove macro.
75994         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75995         case_sensitive argument.
75996         (argcasematch): Remove function.
75997         (__xargmatch_internal): Remove case_sensitive argument.
75998         (main): Use XARGMATCH instead of XARGCASEMATCH.
75999
76000         * lib/xmalloc.c: Change compile-time error message. Add comment about
76001         required autoconf version.
76002
76003 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76004
76005         Merge argmatch cleanups from Bison.  Assume C89.
76006
76007         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76008         Include stdlib.h, for EXIT_FAILURE.
76009         Always include <string.h>, since we assume C89.
76010         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76011         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76012         Include <stddef.h> instead, since it's all we need for size_t.
76013         (PARAMS): Remove.  All uses removed.
76014         (ARRAY_CARDINALITY): Do not bother to #undef.
76015         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76016         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76017         Remove unnecessary parentheses.
76018         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76019         Insert necessary parentheses.
76020         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76021         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76022
76023 2002-11-19  Bruno Haible  <bruno@clisp.org>
76024
76025         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76026         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76027
76028         * lib/mbswidth.h (PARAMS): Remove macro.
76029         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76030         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76031
76032         * lib/gcd.h (PARAMS): Remove macro.
76033         (gcd): Use ANSI C function declarations.
76034         * lib/gcd.c (gcd): Likewise.
76035
76036 2002-11-15  Bruno Haible  <bruno@clisp.org>
76037
76038         * lib/strcspn.c: Include <stddef.h>.
76039         (strcspn): Use ANSI C function declaration. Change return type to
76040         size_t. Use NULL.
76041         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76042         (strpbrk): Use NULL.
76043         * lib/strpbrk.h (PARAMS): Remove macro.
76044         (strpbrk): Use ANSI C function declaration.
76045         * lib/strstr.c: Don't include <sys/types.h>.
76046         * lib/strstr.h (PARAMS): Remove macro.
76047         (strstr): Use ANSI C function declarations.
76048
76049 2002-11-14  Karl Berry  <karl@gnu.org>
76050
76051         * config/mkinstalldirs: `do' on separate line, instead of
76052         `for var; do'.
76053
76054 2002-11-06  Bruno Haible  <bruno@clisp.org>
76055
76056         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76057         * lib/gcd.c (gcd): Likewise.
76058
76059 2002-11-05  Bruno Haible  <bruno@clisp.org>
76060
76061         * lib/gcd.h: New file, from gettext-0.11.5.
76062         * lib/gcd.c: New file, from gettext-0.11.5.
76063
76064 2002-11-05  Bruno Haible  <bruno@clisp.org>
76065
76066         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76067         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76068         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76069         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76070
76071         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76072         <libintl.h>.
76073         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76074         <libintl.h>.
76075
76076         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76077         * lib/human.c: Include gettext.h instead of <libintl.h>.
76078         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76079         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76080         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76081         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76082         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76083         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76084         (textdomain): Remove definition.
76085         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76086
76087         * lib/long-options.c: Remove include of <libintl.h> and definition of
76088         _.
76089         * lib/same.c: Remove include of <libintl.h> and definition of _.
76090
76091 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76092
76093         * lib/config.charset: A few additions for Solaris.
76094
76095 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76096
76097         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76098         * lib/localcharset.c (locale_charset): Declare as extern "C".
76099
76100 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76101
76102         * lib/config.charset: msdos in uk_UA uses CP1125.
76103
76104 2002-11-04  Bruno Haible  <bruno@clisp.org>
76105
76106         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76107         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76108         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76109         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76110         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76111
76112 2002-11-04  Bruno Haible  <bruno@clisp.org>
76113
76114         * lib/localcharset.c (locale_charset): Don't return an empty string.
76115
76116 2002-11-04  Bruno Haible  <bruno@clisp.org>
76117
76118         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76119         aliases.
76120
76121 2002-11-04  Bruno Haible  <bruno@clisp.org>
76122
76123         * lib/config.charset: Update for newest glibc. Add canonical names
76124         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76125
76126 2002-11-04  Bruno Haible  <bruno@clisp.org>
76127
76128         * lib/config.charset: Add support for NetBSD.
76129
76130 2002-11-04  Bruno Haible  <bruno@clisp.org>
76131
76132         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76133
76134 2002-11-01  Bruno Haible  <bruno@clisp.org>
76135
76136         * configure.in: Add AC_CONFIG_AUX_DIR call.
76137         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76138         test/Makefile.
76139         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76140
76141 2002-09-28  Karl Berry  <karl@gnu.org>
76142
76143         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76144         installed automake until the next release, since changes have been
76145         made.
76146
76147 2002-09-25  Karl Berry  <karl@gnu.org>
76148
76149         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76150         * lib/getopt*: copy from libc/posix.
76151         * lib/gettext.h: copy from gettext.
76152         * lib/.cppi-disable: add strdup.c, gettext.h.
76153
76154 2002-09-25  Karl Berry  <karl@gnu.org>
76155
76156         * config/srclist.txt: enable gettext.h check.
76157         * config/config.{guess,sub}: update from prep.
76158         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76159                 from automake 1.6.3.
76160         See srclist*.
76161
76162 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76163
76164         * regex.c (PATFETCH): Remove the translating fetch.
76165         (PATFETCH_RAW): Rename to PATFETCH.
76166         (set_image_of_range): New fun.
76167         (SET_RANGE_TABLE_WORK_AREA): Use it.
76168         (regex_compile): Don't translate the pattern chars so eagerly.
76169         Only do it when inserting an `exactn' bytecode or when handling
76170         a char-range.
76171         (mutually_exclusive_p): Avoid empty statement.
76172
76173 2002-07-06  Jim Meyering  <meyering@lucent.com>
76174
76175         * m4/README: Don't mention Makefile.am.in.
76176         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76177
76178 2002-07-01  Jim Meyering  <meyering@lucent.com>
76179
76180         * lib/c-stack.c: Include sys/time.h.
76181         From Volker Borchert.
76182
76183 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76184
76185         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76186
76187 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76188
76189         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76190         New macro.  Use it uniformly instead of
76191         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76192         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76193         reported by Vin Shelton.
76194
76195 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76196
76197         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76198         Do not assume SA_SIGINFO behavior.
76199         Bug reported by Jim Meyering on NetBSD 1.5.2.
76200
76201 2002-06-22  Jim Meyering  <meyering@lucent.com>
76202
76203         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76204         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76205
76206         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76207         now that configure.ac uses AC_GNU_SOURCE.
76208         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76209         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76210
76211         Update to latest tools.  Suggestions from Paul Eggert.
76212         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76213         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76214         * m4/fnmatch.m4: Likewise.
76215         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76216         to AC_HEADER_STDBOOL
76217
76218 2002-06-22  Jim Meyering  <meyering@lucent.com>
76219
76220         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76221         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76222
76223 2002-06-22  Jim Meyering  <meyering@lucent.com>
76224
76225         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76226
76227         * lib/exitfail.c, exitfail.h: Likewise.
76228         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76229
76230         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76231         of fnmatch.h.
76232         (EXTRA_DIST): Add fnmatch_loop.c.
76233         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76234
76235         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76236         * lib/fnmatch.c: Update from diffutils-2.8.2.
76237         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76238         * lib/fnmatch.h: Remove file.
76239
76240 2002-06-21  Jim Meyering  <meyering@lucent.com>
76241
76242         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76243         * m4/mbrtowc.m4: Likewise.
76244
76245         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76246         * m4/mbswidth.m4: Reflect name change:
76247         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76248         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76249
76250         * m4/lib-link.m4: Update from gettext-0.11.2.
76251         * m4/gettext.m4: Likewise.
76252
76253         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76254         From Alfred M. Szmidt.
76255
76256 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76257
76258         * lib/file-type.h: Report an error if neither S_ISREG nor
76259         S_IFREG is defined, instead of using a test specific to glibc
76260         2.2.  This should be safe, since POSIX requires S_ISREG and
76261         Unix Version 7 had S_IFREG.  We don't need to check for
76262         <sys/types.h> since we don't use any symbols that it defines.
76263
76264 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76265
76266         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76267         $@-t, so that each temporary file name is unique and valid in the first
76268         8 characters, for operation under DOS.
76269
76270 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76271
76272         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76273
76274 2002-06-15  Jim Meyering  <meyering@lucent.com>
76275
76276         Work even with DJGPP 2.03, which lacks support for symlinks.
76277         From Richard Dawe.
76278         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76279         is defined.
76280         * lib/lchown.c (S_ISLNK): Likewise.
76281
76282 2002-06-15  Jim Meyering  <meyering@lucent.com>
76283
76284         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76285         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76286         have been included before this file.
76287
76288 2002-06-14  Jim Meyering  <meyering@lucent.com>
76289
76290         * lib/file-type.h: Use the version from diffutils-2.8.2.
76291         * lib/file-type.c: Likewise.
76292
76293 2002-06-07  Jim Meyering  <meyering@lucent.com>
76294
76295         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76296         They're needed at least for NetBSD 1.5.2.
76297         ($statxfs_includes): Include those same headers.
76298         ($statxfs_includes): Include sys/vfs.h if available.
76299         ($statxfs_includes): Likewise for sys/statvfs.h.
76300         Check for the following members in both structs statfs and statvfs:
76301         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76302
76303 2002-06-01  Jim Meyering  <meyering@lucent.com>
76304
76305         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76306         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76307
76308 2002-05-28  Jim Meyering  <meyering@lucent.com>
76309
76310         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76311         Reported by Volker Borchert.
76312
76313 2002-05-27  Jim Meyering  <meyering@lucent.com>
76314
76315         Fix a problem seen only on nonconforming systems whereby ls.c's
76316         use of localtime, and then of gettimeofday would cause trouble:
76317         the localtime call used to initialize rpl_gettimeofday's save
76318         mechanism would clobber ls's current local time information so
76319         that in any long listing the first file would always be listed
76320         with date 1970-01-01.  Analysis by Volker Borchert.
76321
76322         * lib/gettimeofday.c (localtime): Undefine.
76323         (rpl_localtime): New function.
76324
76325 2002-05-27  Jim Meyering  <meyering@lucent.com>
76326
76327         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76328         localtime.
76329
76330         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76331         use the replacement function; it wouldn't resolve at link time.
76332         Reported by Volker Borchert.
76333
76334 2002-05-22  Jim Meyering  <meyering@lucent.com>
76335
76336         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76337         file-type.h.
76338         * lib/file-type.h: New file.
76339         * lib/file-type.c (file_type): New file/function.  Extracted from
76340         diffutils.
76341
76342 2002-04-30  Jim Meyering  <meyering@lucent.com>
76343
76344         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76345
76346 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76347
76348         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76349
76350 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76351
76352         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76353         Do not check for alloca.h (no longer used) or stdbool.h (was never
76354         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76355
76356 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76357
76358         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76359
76360 2002-04-29  Jim Meyering  <meyering@lucent.com>
76361
76362         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76363         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76364         Use AC_FUNC_STRNLEN here instead.
76365
76366         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76367         With autoconf-2.53a, it's part of AC_PROG_CC.
76368
76369 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76370
76371         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76372         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76373
76374 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76375
76376         * lib/sig2str.h, lib/sig2str.c: New files.
76377         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76378
76379 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76380
76381         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76382         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76383         of 127, since 64 is the largest conceivable number for ancient
76384         nonstandard hosts.
76385         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76386
76387 2002-04-28  Jim Meyering  <meyering@lucent.com>
76388
76389         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76390
76391 2002-04-24  Jim Meyering  <meyering@lucent.com>
76392
76393         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76394         (jm_PREREQ): Use it.
76395
76396         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76397         mach/mach.h fcntl.h.
76398         Check for this function: setlocale.
76399
76400 2002-04-24  Jim Meyering  <meyering@lucent.com>
76401
76402         * lib/gettext.h: New file, from Gettext.
76403         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76404         (libfetish_a_SOURCES): Add gettext.h.
76405
76406 2002-04-16  Jim Meyering  <meyering@lucent.com>
76407
76408         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76409         ut_pid, ut_id, ut_exit.
76410
76411 2002-04-16  Jim Meyering  <meyering@lucent.com>
76412
76413         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76414         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76415         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76416
76417 2002-04-12  Jim Meyering  <meyering@lucent.com>
76418
76419         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76420         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76421         existence of the getmntinfo function.  Needed for Darwin 5.3.
76422
76423         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76424         This is necessary at least on Darwin 5.3.
76425
76426         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76427         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76428         strnlen.o in the library, and that makes some versions of ranlib
76429         object.
76430
76431 2002-04-12  Jim Meyering  <meyering@lucent.com>
76432
76433         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76434
76435 2002-04-09  Jim Meyering  <meyering@lucent.com>
76436
76437         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76438         to be more precise.  Rather than saying we're checking whether the
76439         function `works', say what we're testing.
76440         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76441         Reported by Bruno Haible.
76442
76443 2002-03-10  Jim Meyering  <meyering@lucent.com>
76444
76445         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76446         Suggestion from Santiago Vila.
76447
76448 2002-03-08  Jim Meyering  <meyering@lucent.com>
76449
76450         * lib/rename.c: Mention that this wrapper is needed also on
76451         mips-dec-ultrix4.4 systems.
76452
76453 2002-03-02  Jim Meyering  <meyering@lucent.com>
76454
76455         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76456         not HAVE_CLOCK_SETTIME.
76457
76458 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76459
76460         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76461         Check for clock_settime.
76462
76463 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76464
76465         * lib/nanosleep.h: Rename to....
76466         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76467
76468         * lib/gettime.c: New file.
76469         * lib/settime.c: New file.
76470         * lib/stime.c: Remove.
76471
76472         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76473         timespec.h.  Remove nanosleep.h.
76474
76475 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76476
76477         * m4/acl.m4: New file.
76478         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76479         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76480
76481 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76482
76483         * lib/acl.c, lib/acl.h: New files.
76484         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76485
76486 2002-02-24  Jim Meyering  <meyering@lucent.com>
76487
76488         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76489         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76490         cause trouble.  Reported by Nelson Beebe.
76491
76492 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76493
76494         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76495         compilers that don't know that xalloc_die never returns.
76496
76497 2002-02-20  Jim Meyering  <meyering@lucent.com>
76498
76499         * lib/getdate.c: Regenerate using bison-1.33.
76500
76501 2002-02-17  Jim Meyering  <meyering@lucent.com>
76502
76503         * config/config.guess (main): Don't use `head -1'; it's no longer
76504         portable. Use `sed 1q' instead.
76505
76506 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76507
76508         * m4/codeset.m4: Upgrade to gettext-0.11.
76509         * m4/gettext.m4: Upgrade to gettext-0.11.
76510         * m4/glibc21.m4: Upgrade to gettext-0.11.
76511         * m4/iconv.m4: Upgrade to gettext-0.11.
76512         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76513         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76514         * m4/lib-ld.m4: New file, from gettext-0.11.
76515         * m4/lib-link.m4: New file, from gettext-0.11.
76516         * m4/lib-prefix.m4: New file, from gettext-0.11.
76517         * m4/progtest.m4: Upgrade to gettext-0.11.
76518
76519 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76520
76521         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76522         (jm_PREREQ): Use it.
76523
76524 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76525
76526         * lib/posixver.c, lib/posixver.h: New files.
76527         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76528
76529 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76530             Bruno Haible  <bruno@clisp.org>
76531
76532         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76533         (fwrite_success_callback): New declaration.
76534         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76535         print_unicode_char. Call failure callback instead of error.
76536         (fwrite_success_callback): New function.
76537         (exit_failure_callback): New function.
76538         (fallback_failure_callback): New function.
76539         (print_unicode_char): Call unicode_to_mb.
76540
76541 2002-01-26  Jim Meyering  <meyering@lucent.com>
76542
76543         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76544         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76545
76546 2002-01-26  Jim Meyering  <meyering@lucent.com>
76547
76548         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76549
76550 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76551
76552         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76553
76554 2002-01-22  Jim Meyering  <meyering@lucent.com>
76555
76556         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76557         Otherwise, some versions of automake would omit the rule that makes
76558         Makefile from Makefile.in.
76559
76560 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76561
76562         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76563         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76564         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76565         (memcoll): Set errno to zero if there is no error.
76566
76567         * lib/quotearg.c (quotearg_buffer_restyled):
76568         Fix bug with quoting buffers containing NUL when backslashing escapes.
76569         This bug was exposed by the other changes in this patch.
76570         (quotearg_n_options): New arg ARGSIZE.
76571         All callers changed.
76572         (quoting_options_from_style): New function.
76573         (quotearg_n_style): Use it.
76574         (quotearg_n_style_mem): New function.
76575
76576         * lib/quotearg.h (quotearg_n_style_mem): New function.
76577
76578 2002-01-19  Jim Meyering  <meyering@lucent.com>
76579
76580         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76581         Remove useless quotes: DF_PROG="df".
76582         * m4/strnlen.m4: New file.
76583
76584 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76585
76586         * lib/backupfile.c (ISDIGIT): Comment fix.
76587         * lib/getdate.y (ISDIGIT): Likewise.
76588         * lib/posixtm.c (ISDIGIT, year): Likewise.
76589         * lib/strverscmp.c (ISDIGIT): Likewise.
76590         * lib/userspec.c (ISDIGIT): Likewise.
76591
76592 2002-01-16  Jim Meyering  <meyering@lucent.com>
76593
76594         * lib/getdate.y: Add three semicolons, each just before a closing
76595         brace. Bison (as of version 1.31) no longer papers over that mistake.
76596
76597 2002-01-05  Jim Meyering  <meyering@lucent.com>
76598
76599         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76600
76601 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76602
76603         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76604         not silently exit merely because the output buffer happens to
76605         have nothing pending.
76606
76607 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76608
76609         See the big note in ../ChangeLog.
76610         * lib/human.c (suffixes): Prefer K to k for 1024.
76611         (generate_suffix_backwards): New function.
76612         (human_readable_inexact): Use it.
76613         * lib/xstrtol.c (__xstrtol): If there is no number but there
76614         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76615         Accept 'K' as well as 'k'.
76616
76617 2001-12-15  Jim Meyering  <meyering@lucent.com>
76618
76619         * lib/regex.h (__restrict_arr): Update from libc.
76620
76621         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76622         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76623         (STREQ): Define.
76624
76625 2001-12-14  Jim Meyering  <meyering@lucent.com>
76626
76627         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76628         Suggestion from Bruno Haible.
76629
76630 2001-12-10  Jim Meyering  <meyering@lucent.com>
76631
76632         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76633         xrealloc, Instead, include "xalloc.h".
76634         (initbuffer): Don't cast xmalloc return value to char*.
76635         (readline): Reword comment.
76636         Don't cast xrealloc return value to char*
76637         Return NULL, not 0.
76638
76639 2001-12-09  Jim Meyering  <meyering@lucent.com>
76640
76641         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76642         about `signed and unsigned type in conditional expression'.
76643         * lib/posixtm.c (posix_time_parse): Likewise.
76644
76645         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76646
76647         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76648         to avoid a pedantic warning.
76649
76650         * lib/getstr.c: Don't include assert.h.
76651         (getstr): Remove warning-evoking assertions.
76652         Return -1 if offset parameter is out of bounds.
76653         Change the type of a local from int to size_t.
76654
76655         * lib/strftime.c (my_strftime_localtime_r): Include this function
76656         definition in the `#if ! HAVE_TM_GMTOFF' block.
76657
76658         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76659         Include xalloc.h instead.
76660
76661 2001-12-02  Jim Meyering  <meyering@lucent.com>
76662
76663         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76664         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76665         included.
76666
76667         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76668         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76669
76670 2001-11-30  Akim Demaille  <akim@epita.fr>
76671
76672         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76673         before being defined.
76674
76675 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76676
76677         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76678         First arg is int, not unsigned.
76679         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76680         (SIZE_MAX, UINT_MAX): New macros.
76681         (quotearg_n_options): Abort if N is negative.
76682         Avoid overflow check on hosts where size_t is 64 bits and int
76683         is 32 bits, as overflow is impossible there.
76684         Fix off-by-one typo that caused unnecessary reallocation.
76685
76686 2001-11-27  Jim Meyering  <meyering@lucent.com>
76687
76688         * lib/tempname.c: Merge with version from libc.
76689         * lib/regex.c: Likewise.
76690
76691         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76692         systems for which STDC_HEADERS is 0, it was not included, resulting in
76693         a warning about an integer-to-pointer conversion problem with getenv.
76694         Reported by Volker Borchert.
76695
76696 2001-11-26  Jim Meyering  <meyering@lucent.com>
76697
76698         * lib/gtod.h: Remove file.
76699         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76700         * lib/gettimeofday.c: Don't include gtod.h.
76701         (GTOD_init): Remove function.
76702         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76703         Suggestion from Volker Borchert.
76704
76705 2001-11-23  Jim Meyering  <meyering@lucent.com>
76706
76707         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76708         it.
76709         * lib/hash.c (struct hash_table): Define it here instead.
76710
76711 2001-11-22  Jim Meyering  <meyering@lucent.com>
76712
76713         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76714
76715 2001-11-20  Jim Meyering  <meyering@lucent.com>
76716
76717         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76718         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76719
76720 2001-11-19  Jim Meyering  <meyering@lucent.com>
76721
76722         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76723         directory.  Use "conftestXXXXXX" as the template.
76724         Suggestion from Paul Eggert.
76725
76726         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76727         immediately, so the test doesn't mistakenly hit the max-open-files
76728         limit.
76729
76730 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76731
76732         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76733         (TEMPORARIES): New macro.
76734         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76735         removes an artificial limitation (e.g. HP-UX 10.20, where
76736         TMP_MAX is 17576).
76737
76738 2001-11-18  Jim Meyering  <meyering@lucent.com>
76739
76740         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76741
76742 2001-11-18  Jim Meyering  <meyering@lucent.com>
76743
76744         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76745         on SunOS 4.
76746
76747         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76748         files will be created before anything else.
76749
76750 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76751
76752         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76753         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76754
76755 2001-11-17  Jim Meyering  <meyering@lucent.com>
76756
76757         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76758         Prompted by a report from Bob Proulx.
76759
76760         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76761         Instead, require UTILS_FUNC_MKSTEMP.
76762
76763 2001-11-17  Jim Meyering  <meyering@lucent.com>
76764
76765         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76766         Now, that's done as part of AC_FUNC_STRTOD.
76767
76768 2001-11-17  Jim Meyering  <meyering@lucent.com>
76769
76770         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76771         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76772         rather than group writable.  Patch by Juan F. Codagnone.
76773
76774         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76775         xrealloc, Instead, include "xalloc.h".
76776
76777         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76778         Remove explicit declarations of xmalloc, xrealloc,
76779         and xstrdup.  Instead, include "xalloc.h".
76780
76781         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76782         unlocked-io.h.
76783         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76784         Likewise.
76785         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76786
76787         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76788         Reported by Padraig Brady.
76789
76790         * lib/mkstemp.c: #undef mkstemp.
76791         Include config.h.
76792         (rpl_mkstemp): Rename from mkstemp.
76793         Protoize.
76794
76795 2001-11-16  Jim Meyering  <meyering@lucent.com>
76796
76797         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76798         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76799         determine the amount of total physical memory, use pstat_getstatic.
76800         HPUX-11 doesn't define _SC_PHYS_PAGES.
76801         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76802         If sysconf couldn't be used to determine the amount of available
76803         physical memory, use both pstat_getstatic and pstat_getdynamic.
76804         Based on a patch from Bob Proulx.
76805
76806 2001-11-10  Jim Meyering  <meyering@lucent.com>
76807
76808         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76809         (jm_PREREQ): Use it.
76810
76811 2001-11-09  Jim Meyering  <meyering@lucent.com>
76812
76813         * m4/jm-macros.m4: Require autoconf-2.52f.
76814         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76815         Use these AC_-prefixed names, not the AM_-prefixed ones.
76816
76817         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76818
76819 2001-11-05  Jim Meyering  <meyering@lucent.com>
76820
76821         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76822
76823 2001-11-04  Jim Meyering  <meyering@lucent.com>
76824
76825         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76826         $DEFS.
76827
76828 2001-11-03  Jim Meyering  <meyering@lucent.com>
76829
76830         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76831         of AC_DEFUN.
76832
76833         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76834         know the name of the variable in the macro definition.
76835
76836 2001-11-03  Jim Meyering  <meyering@lucent.com>
76837
76838         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76839         in argmatch_to_argument call.
76840
76841         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76842         argument.
76843
76844         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76845         e.g., a fault due to an attempt to free a NULL pointer.
76846
76847 2001-11-01  Jim Meyering  <meyering@lucent.com>
76848
76849         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76850         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76851
76852 2001-11-01  Jim Meyering  <meyering@lucent.com>
76853
76854         * lib/dirfd.c, lib/dirfd.h: New files.
76855         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76856
76857         * lib/hash.c (hash_print) [TESTING]: Clean up.
76858
76859 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76860
76861         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76862         to avoid a warning if -Wall.
76863
76864 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76865
76866         * README: New file
76867         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76868         (per RMS's instructions, this is now the canonical source)
76869         * lgpl/, gpl/: New directories.
76870
76871 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76872
76873         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76874
76875 2001-10-21  Jim Meyering  <meyering@lucent.com>
76876
76877         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76878         this code would end up calling gettext even in packages built
76879         with --disable-nls.
76880         * lib/getopt.c (_): Likewise.
76881         * lib/regex.c (_): Likewise.
76882
76883 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76884
76885         * m4/error.m4 (jm_PREREQ_ERROR):
76886         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76887         AC_FUNC_STRERROR_R does that.
76888         Check for strerror declaration.
76889
76890         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76891         are supposed to have them these days.
76892         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76893         Merge changes from latest Autoconf CVS.
76894         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76895         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76896         POSIX decided to standardize on the int flavor of strerror_r.
76897
76898 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76899
76900         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76901         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76902         Use strerror_r that is only a macro, even if it is not a function.
76903         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76904         (private_strerror): Use prototypes, not old-style function definition.
76905         (print_errno_message): New function.
76906         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76907         char*-flavored one.
76908         (error_tail, error, error_at_line): Use it.
76909
76910 2001-10-11  Jim Meyering  <meyering@lucent.com>
76911
76912         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76913         and quote_n (1, ... to avoid clobbering a buffer.
76914
76915 2001-10-05  Jim Meyering  <meyering@lucent.com>
76916
76917         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76918         hash-pjw.h.
76919         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76920         * lib/hash-pjw.h: New file.
76921
76922 2001-09-30  Jim Meyering  <meyering@lucent.com>
76923
76924         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76925         `struct fsstat' has the `f_fstypename' member.
76926         Use that to define FS_TYPE, which is now used to make
76927         the getfsstat link test tighter.
76928
76929 2001-09-30  Jim Meyering  <meyering@lucent.com>
76930
76931         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76932         Include <sys/ucred.h>, for Apple Darwin.
76933         Include sys/mount.h and sys/fs_types.h only if available.
76934         (FS_TYPE): Define.
76935         (read_filesystem_list): Use FS_TYPE.
76936
76937 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76938
76939         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76940         a boolean context.
76941
76942 2001-09-29  Jim Meyering  <meyering@lucent.com>
76943
76944         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76945         [one-argument getmntent function]): Include stdio.h before mntent.h.
76946         SunOS 4.1.x needs it for the declaration of `FILE'.
76947         Patch by Volker Borchert.
76948
76949         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76950         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76951         sys/fs_types.h, and make the link-test for getfsstat guard #include
76952         directives with appropriate #if HAVE_*_H tests so that we can
76953         detect getfsstat on Apple Darwin1.3.7 systems.
76954         Reported by Nelson Beebe.
76955         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76956
76957 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76958
76959         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76960         #defines strtoimax.  Also treat the other strto* functions
76961         like strtoimax.
76962
76963         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76964         Check for strtoul and strtoumax,
76965         as those declarations are made even in the signed case.
76966         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76967         Likewise, for strtol and strtoimax.
76968
76969 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76970
76971         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76972         #defines strtoimax.  Also treat the other strto* functions
76973         like strtoimax.
76974
76975         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76976         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76977         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76978
76979 2001-09-26  Jim Meyering  <meyering@lucent.com>
76980
76981         Most macros in unlocked-io.h had the wrong number of arguments.
76982         * lib/gen-uio: New script.
76983         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76984         * lib/unlocked-io.hin: Remove file.
76985         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76986         rather than trying to embed it here.
76987         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76988         Reported by Padraig Brady.
76989
76990 2001-09-25  Volker Borchert  <bt@teknon.de>
76991
76992         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76993         `result'.
76994
76995 2001-09-24  Jim Meyering  <meyering@lucent.com>
76996
76997         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76998
76999 2001-09-23  Jim Meyering  <meyering@lucent.com>
77000
77001         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77002         instead of the mere test for existence of mntent.h.  The latter
77003         would get a false-positive on AIX 3.4 systems.
77004         In the outer getmntent if-block, don't die if neither of the getmntent
77005         tests succeeds.  Instead, just fall through and continue with the
77006         remaining tests.
77007
77008 2001-09-23  Jim Meyering  <meyering@lucent.com>
77009
77010         * lib/mountlist.c: Remove useless parentheses in #if directives.
77011         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77012         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77013
77014 2001-09-22  Jim Meyering  <meyering@lucent.com>
77015
77016         * m4/gettext.m4: New file.  From gettext.
77017         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77018         * m4/progtest.m4: Likewise
77019         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77020         * m4/glibc21.m4: Likewise.
77021
77022         * m4/libintl.m4: Remove.  No longer used.
77023
77024 2001-09-22  Jim Meyering  <meyering@lucent.com>
77025
77026         * lib/localcharset.c: Update from latest gettext.
77027         * lib/config.charset: Likewise.
77028
77029 2001-09-20  Jim Meyering  <meyering@lucent.com>
77030
77031         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77032         strtoimax.
77033         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77034         strtoumax.
77035
77036 2001-09-20  Jim Meyering  <meyering@lucent.com>
77037
77038         * lib/xstrtol.c (strtoimax): Guard declaration with
77039         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77040         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77041         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77042         (strtoumax): Likewise, for completeness (it wasn't necessary).
77043
77044 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77045
77046         * lib/strtoimax.c (HAVE_LONG_LONG):
77047         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77048         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77049         to work around bug in IBM C compiler.
77050
77051 2001-09-17  Jim Meyering  <meyering@lucent.com>
77052
77053         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77054         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77055         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77056         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77057         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77058         whenever the right hand side need not be expanded by the shell.
77059
77060 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77061
77062         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77063         library.  It's not correct, as some older glibcs are buggy.
77064         fnmatch wasn't fixed until glibc 2.2.
77065
77066         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77067         special shell magic here.
77068
77069 2001-09-16  Jim Meyering  <meyering@lucent.com>
77070
77071         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77072         * m4/jm-macros.m4: Require it.
77073
77074 2001-09-16  Jim Meyering  <meyering@lucent.com>
77075
77076         * lib/mkdir.c: New file.
77077
77078 2001-09-15  Jim Meyering  <meyering@lucent.com>
77079
77080         * m4/jm-macros.m4: Check for help2man.
77081
77082 2001-09-11  Jim Meyering  <meyering@lucent.com>
77083
77084         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77085         The body, by Paul Eggert, was moved here from configure.in.
77086         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77087
77088 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77089
77090         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77091         (jm_PREREQ): Use it.
77092
77093 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77094
77095         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77096         Use ssize_t, not int, to store result of readlink.
77097         Check for ssize_t overflow as well as size_t overflow,
77098         as POSIX says the result of readlink is implementation-defined
77099         when ssize_t overflows.
77100         Remove unnecessary cast to char*.
77101         Use free+malloc instead of realloc, as the storage doesn't need
77102         to be preserved and it's clearer and can be more efficient that way.
77103         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77104         * lib/xreadlink.h (xreadlink): Update prototype.
77105
77106 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77107
77108         * lib/xgetcwd.c: Revert some of the previous change; intead,
77109         fix the HAVE_GETCWD_NULL code to behave more like the
77110         !HAVE_GETCWD_NULL code used to.
77111
77112         Include "xalloc.h".
77113         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77114         invoke xalloc_die.
77115
77116 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77117
77118         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77119         sys/param.h, as pathmax.h includes them.
77120
77121 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77122
77123         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77124         (jm_PREREQ_XGETCWD): New macro.
77125
77126         * m4/getcwd.m4: New file.
77127
77128 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77129
77130         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77131         like the HAVE_GETCWD_NULL code.
77132         Include pathmax.h if not HAVE_GETCWD.
77133         Do not include xalloc.h.
77134         (INITIAL_BUFFER_SIZE): New symbol.
77135         Do not use xmalloc / xrealloc, since the caller is responsible for
77136         handling errors.  Preserve errno around `free' during failure.
77137         Do not overrun buffer when using getwd.
77138
77139 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77140
77141         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77142         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77143         getcwd (NULL, 0).
77144
77145 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77146
77147         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77148         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77149         spotted by Jim Meyering.
77150
77151 2001-09-03  Jim Meyering  <meyering@lucent.com>
77152
77153         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77154         failure.
77155
77156 2001-09-02  Jim Meyering  <meyering@lucent.com>
77157
77158         * lib/error.c: Update from GNU libc.
77159
77160 2001-09-01  Jim Meyering  <meyering@lucent.com>
77161
77162         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77163         Used by df.
77164
77165 2001-09-01  Jim Meyering  <meyering@lucent.com>
77166
77167         * lib/xreadlink.c: New file.
77168         * lib/xreadlink.h: New file.
77169         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77170         xreadlink.h.
77171
77172         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77173         doesn't conflict with sparc Solaris 7's definition in
77174         /usr/include/sys/int_types.h.
77175
77176         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77177         files.
77178         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77179         and strncasecmp as r-values.  Unixware didn't have declarations.
77180
77181 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77182
77183         * lib/xstrtol.h: Add copyright notice.
77184         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77185         LONGINT_INVALID_SUFFIX_CHAR.
77186
77187 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77188
77189         * lib/xstrtol.c (strtoimax): New decl.
77190
77191 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77192
77193         * lib/xgetcwd.c: Don't include pathmax.h.
77194         Include stdlib.h and unistd.h if available.
77195         Include xalloc.h.
77196         (xmalloc, xstrdup, free): Remove decls.
77197         (xgetcwd): Don't assume sizes fit in unsigned.
77198         Check for overflow when computing sizes.
77199         Simplify reallocation code.
77200
77201 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77202
77203         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77204         a directory's st_size can have an arbitrary value, so the old
77205         usage could waste an arbitrary amount of memory.  All uses
77206         changed.
77207         * lib/savedir.h: Update prototype.
77208
77209 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77210
77211         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77212
77213         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77214         old strtoimax.c.
77215
77216         Also, make the following further changes to make this file's
77217         configuration more similar to that of strtol.c:
77218         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77219         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77220         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77221         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77222         changed to signed values.
77223
77224         And make the following changes as well:
77225         Fix copyright notice, as 1999 was missing.
77226         (verify): New macro.
77227         (strtoimax): Check sizes at compile-time, not run-time.
77228         Prefer strtol to strtoll if both work.
77229         (main): Remove; it was not that useful and was a pain to maintain.
77230
77231         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77232
77233 2001-08-31  Jim Meyering  <meyering@lucent.com>
77234
77235         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77236         Use an initial, malloc'd, buffer of length 128 rather than
77237         a statically allocated one of length 1024.
77238
77239 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77240
77241         Simplify code, partly by assuming autoconf 2.52 semantics.
77242
77243         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77244
77245         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77246         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77247         All uses removed.
77248         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77249         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77250         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77251         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77252         jm_AC_HEADER_INTTYPES_H.
77253         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77254
77255         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77256
77257         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77258         Quote first arg of AC_DEFUN.
77259         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77260         since they are needed to parse the include file even if we need
77261         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77262         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77263         but with opposite signedness.
77264
77265 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77266
77267         Merge 'exclude' changes from tar 1.13.22.
77268         This fixes one or two unlikely storage allocation overflow bugs,
77269         but doesn't change user-visible behavior otherwise.
77270
77271 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77272
77273         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77274         (jm_PREREQ_EXCLUDE): New macro.
77275
77276 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77277
77278         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77279         tm to be declared.
77280
77281 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77282
77283         * lib/hash.c: Remove '2001' from copyright notice.
77284
77285 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77286
77287         * lib/full-write.h: New file.
77288         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77289         * lib/full-write.c: Correct credits, as cccp.c no longer
77290         exists and anyway it was so heavily changed from the old cccp
77291         code as to be unrecognizable.  Include full-write.h.
77292         (full_write): Return size_t, with short writes meaning failure.
77293         All callers changed.  This fixes a bug with large buffers
77294         on 64-bit hosts.
77295         * lib/utime.c: Include full-write.h.
77296
77297 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77298
77299         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77300         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77301         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77302         Include if available.
77303         (<xalloc.h>): Include
77304         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77305         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77306         collide with FNM macros.
77307         (struct patopts): New struct.
77308         (struct exclude): Use it, as exclude patterns now come with options.
77309         (new_exclude): Support above changes.
77310         (new_exclude, add_exclude_file):
77311         Initial size must now be a power of two to simplify overflow checking.
77312         (free_exclude, fnmatch_no_wildcards): New function.
77313         (excluded_filename): No longer requires options arg, as the options
77314         are determined by add_exclude.  Now returns bool, not int.
77315         (excluded_filename, add_exclude):
77316         Add support for the fancy new exclusion options.
77317         (add_exclude, add_exclude_file): Now takes int options arg.
77318         Check for arithmetic overflow when computing sizes.
77319         (add_exclude_file): xrealloc might modify errno, so don't
77320         realloc until after errno might be used.
77321
77322         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77323         New macros.
77324         (free_exclude): New decl.
77325         (add_exclude, add_exclude_file): Now takes int options arg.
77326         (excluded_filename): No longer requires options arg, as the options
77327         are determined by add_exclude.  Now returns bool, not int.
77328
77329 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77330
77331         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77332
77333 2001-08-27  Jim Meyering  <meyering@lucent.com>
77334
77335         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77336
77337         * lib/version-etc.c (N_): Remove definition.
77338         Revert most of last change.
77339         Instead, simply don't mark the `Copyright...' string for translation.
77340         Based on advice from Paul Eggert.
77341
77342         * lib/strtoxmax.c: Tweak comment.
77343
77344 2001-08-26  Jim Meyering  <meyering@lucent.com>
77345
77346         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77347
77348         * m4/xstrtoimax.m4: New file.
77349         * m4/xstrtoumax.m4: Add comments explaining why we
77350         AC_REPLACE_FUNCS(strtol).
77351
77352 2001-08-26  Jim Meyering  <meyering@lucent.com>
77353
77354         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77355         of copyright with `%s' so translators don't get an untranslated
77356         message in 2002.
77357         (COPYRIGHT_YEAR): Define.
77358         (version_etc): Use fprintf rather than fputs.
77359         Suggestion from Ulrich Drepper.
77360
77361         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77362
77363         * lib/strtoll.c: New file, from GNU libc.
77364         * lib/xstrtoimax.c: New file.
77365
77366         * lib/xstrtol.h: Add xstrtoimax.
77367         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77368         * lib/strtoimax.c: New file.  Likewise, but first define
77369         STRTOUXMAX_SIGNED.
77370
77371         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77372         ...
77373         * lib/strtoxmax.c: ... then renamed to this.
77374
77375 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77376
77377         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77378         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77379         (jm_AC_TYPE_INTMAX_T): New macro.
77380         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77381
77382         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77383
77384         * m4/longlong.m4: Renamed from ulonglong.m4.
77385         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77386         * m4/uintmax_t.m4: Removed.
77387
77388 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77389
77390         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77391         Port to Solaris 8, where 'sed' requires a space after the 'r'
77392         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77393         Redirect output to $tmp just once.
77394
77395 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77396
77397         * lib/addext.c (<errno.h>): Include.
77398         (errno): Declare if not defined.
77399         (addext): Work correctly when pathconf returns -1 and leaves
77400         errno alone because there is no limit.  Also, work even if
77401         pathconf returns a value greater than SIZE_MAX.
77402
77403 2001-08-12  Jim Meyering  <meyering@lucent.com>
77404
77405         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77406         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77407         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77408         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77409         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77410         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77411         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77412         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77413         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77414         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77415         utime.m4, utimes.m4, xstrtoumax.m4:
77416         Quote the first argument in each use of AC_DEFUN.
77417
77418 2001-08-12  Jim Meyering  <meyering@lucent.com>
77419
77420         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77421         Simply `return getcwd (NULL, 0);'.
77422         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77423         Use 1300 as initial value for length, not PATH_MAX.
77424
77425         * lib/pathmax.h: Clean up cpp syntax.
77426
77427 2001-08-12  Jim Meyering  <meyering@lucent.com>
77428
77429         * lib/gettimeofday.c: New file.
77430         * lib/gtod.h: New file.
77431         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77432
77433 2001-08-05  Jim Meyering  <meyering@lucent.com>
77434
77435         * m4/jm-macros.m4: Require autoconf-2.52.
77436
77437 2001-08-04  Jim Meyering  <meyering@lucent.com>
77438
77439         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77440         stmt, to get in sync with glibc.
77441
77442 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77443
77444         The following changes are from gettext 0.10.39 as maintained by
77445         Bruno Haible.
77446
77447         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77448         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77449         with inverted sense.  All uses changed.
77450
77451         * lib/mbswidth.c: Don't include <limits.h>.
77452         Include <stdlib.h> and <string.h> unconditionally.
77453         (iswcntrl, mbsinit, ISCNTRL): New macros.
77454         (mbsnwidth): Use K&R style function declarations.
77455         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77456         can optimize it when MB_CUR_MAX == 1.
77457         The width of control characters is zero, not 1.
77458
77459 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77460
77461         The following changes are from gettext 0.10.39 as maintained by
77462         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77463
77464         * m4/codeset.m4: Upgrade to serial AM1.
77465         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77466         all uses changed.  Quote first arg of AC_DEFUN.
77467         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77468
77469         * m4/iconv.m4: Upgrade to serial AM2.
77470         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77471         Add --with-libconv-prefix.
77472         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77473         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77474         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77475         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77476         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77477
77478         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77479         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77480         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77481         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77482         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77483         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77484         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77485         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77486         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77487
77488         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77489         string.h any more.
77490
77491         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77492         not the default value.
77493
77494         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77495         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77496         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77497         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77498         Also check for iswcntrl, used for wcwidth fallback.
77499         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77500         to Autoconf 2.13.
77501
77502 2001-08-03  Jim Meyering  <meyering@lucent.com>
77503
77504         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77505         as it was in the original.  Reported by Paul Eggert.
77506
77507 2001-07-16  Jim Meyering  <meyering@lucent.com>
77508
77509         * m4/gettimeofday.m4: New file.
77510         Prompted by a report from Bernhard Baehr.
77511
77512 2001-07-15  Jim Meyering  <meyering@lucent.com>
77513
77514         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77515         stuff. Now it's in ../Makefile.cfg.
77516
77517 2001-07-15  Jim Meyering  <meyering@lucent.com>
77518
77519         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77520         (BUILT_SOURCES): Add unlocked-io.h.
77521         (io_functions): Define.
77522         (unlocked-io.h): New rule.
77523         (DISTCLEANFILES): Add unlocked-io.h.
77524         (all-local): Depend on unlocked-io.h, to ensure it is created.
77525
77526         * lib/unlocked-io.hin: New file
77527
77528         * lib/regex.c: Update from glibc.
77529
77530 2001-07-05  Jim Meyering  <meyering@lucent.com>
77531
77532         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77533         recommendation.
77534         (libfetish_a_SOURCES): Put all .h files here instead.
77535         Remove a thus-exposed (better checks in automake) duplicate and
77536         two unnecessary .h files.
77537
77538 2001-07-04  Jim Meyering  <meyering@lucent.com>
77539
77540         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77541         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77542         distcheck failure.
77543
77544 2001-07-02  Jim Meyering  <meyering@lucent.com>
77545
77546         The following changes were prompted by suggestions from Bruno Haible.
77547
77548         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77549         is now generated.
77550         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77551         definition of EXTRA_DIST.
77552         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77553         ensure that the generated file is created/updated whenever the list
77554         of $(unlocked_functions) is changed.
77555         (jm-glibc-io.m4): New rule.
77556         (unlocked-io.h): New rule -- currently unused.
77557
77558 2001-06-24  Jim Meyering  <meyering@lucent.com>
77559
77560         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77561         unmatched right bracket, rather than kludging it with an extra,
77562         falsely-matching quote in a comment.  Patch by Akim Demaille.
77563
77564 2001-06-11  Jim Meyering  <meyering@lucent.com>
77565
77566         * lib/regex.c: Update from GNU libc.
77567
77568 2001-05-27  Jim Meyering  <meyering@lucent.com>
77569
77570         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77571         Check for ut_type in struct utmp.
77572
77573 2001-05-27  Jim Meyering  <meyering@lucent.com>
77574
77575         * lib/readutmp.h (UT_TYPE): Define.
77576
77577 2001-05-24  Jim Meyering  <meyering@lucent.com>
77578
77579         * lib/argmatch.c: Include "quote.h".
77580         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77581         quote function.  Reported by Göran Uddeborg.
77582
77583 2001-05-22  Jim Meyering  <meyering@lucent.com>
77584
77585         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77586         now that we use the package-supplied version unconditionally.
77587         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77588
77589 2001-05-21  Jim Meyering  <meyering@lucent.com>
77590
77591         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77592         shell syntax errors.
77593
77594 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77595
77596         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77597
77598 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77599
77600         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77601         Don't bother to check library strftime, since
77602         we'll be using our own my_strftime function anyway.
77603         Define my_strftime instead of strftime.
77604
77605 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77606
77607         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77608         which is not yet declared.
77609
77610 2001-05-15  Jim Meyering  <meyering@lucent.com>
77611
77612         * m4/regex.m4: Use proper quoting so brackets appear in the test
77613         program.
77614         Reported by, and with help from, Bruno Haible.
77615
77616 2001-05-13  Jim Meyering  <meyering@lucent.com>
77617
77618         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77619         undefined.
77620
77621 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77622
77623         dirname code cleanup.  base_name now behaves more compatibly
77624         with POSIX basename when given file names that have trailing
77625         slashes, and similarly for dir_name.  Add new primitives
77626         base_len and dir_len.  Put the directory-name-related decls
77627         into dirname.h.
77628
77629         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77630         * lib/backupfile.c (base_name): Likewise.
77631         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77632         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77633         * lib/makepath.c (strip_trailing_slashes): Likewise.
77634         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77635         ISSLASH): Likewise.
77636         * lib/rename.c (strip_trailing_slashes): Likewise.
77637         * lib/same.c (base_name): Likewise.
77638         * lib/stripslash.c (ISSLASH): Likewise.
77639
77640         * lib/addext.c: Include <dirname.h> after size_t is defined.
77641         * lib/backupfile.c: Likewise.
77642
77643         * lib/addext.c (addext): Use base_len to trim redundant
77644         trailing slashes instead of doing it ourselves.
77645         But do not trim the last slash if it is not redundant.
77646
77647         * lib/backupfile.c (find_backup_file_name,
77648         max_backup_version): Use base_len instead of rolling it ourselves.
77649         Handle the case of "" and (on DOS) "C:" correctly.
77650
77651         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77652         needed. Include <string.h>, <dirname.h>.
77653         (base_name): Allow file names ending in slashes, other than names
77654         that are all slashes.  In this case, return the basename followed
77655         by the slashes.  This is more general, and can be used in places
77656         where the original base_name purposely had an assertion failure.
77657         (base_len): New function.
77658
77659         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77660         Do not include <assert.h>; no longer needed.
77661         Include xalloc.h.
77662         (memrchr): Remove decl.
77663         (dir_name_r): Remove.
77664         (dir_len): Renamed from dirlen.  All callers changed.
77665         Rewrite in terms of base_name, for simplicity and consistency.
77666         (dir_name): Never return NULL.  All callers changed.
77667         Do not include <stdlib.h> in test program; no longer needed.
77668         return 0; is fine for test program.
77669
77670         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77671         New macros.
77672         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77673
77674         * lib/path-concat.c (path_concat): Use base_len to compute
77675         base length, not strlen; this means we cannot rely on memcpy
77676         to null-terminate.
77677
77678         * lib/same.c (STREQ): Remove.
77679         (same_name): Handle the case where the basename ends in trailing '/'.
77680
77681         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77682         a slash was stripped.  Do not strip the last slash after a
77683         file system prefix.
77684
77685 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77686
77687         * lib/Makefile.am (libfetish_a_SOURCES):
77688         Add strftime.c, since we now compile it on all hosts.
77689
77690         * lib/strftime.c (my_strftime):
77691         Define to nstrftime if emacs, but only if my_strftime is not defined.
77692         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77693         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77694         Add one more extra argument: a nanoseconds value.
77695         All uses changed.
77696         (ns): New macro.
77697         (my_strftime function): Add %N format.
77698         (emacs_strftimeu): Renamed from emacs_strftime,
77699         with extra ut argument.
77700
77701 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77702
77703         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77704
77705 2001-04-21  Jim Meyering  <meyering@lucent.com>
77706
77707         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77708         doesn't interfere.
77709
77710 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77711
77712         * m4/ftruncate.m4: Check for chsize.
77713         Link with ftruncate.o unconditionally if ftruncate is missing.
77714         This was required when cross-compiling to i586-mingw32msvc.
77715
77716 2001-04-08  Jim Meyering  <meyering@lucent.com>
77717
77718         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77719         recomputed; that's necessary when the offset spans a DST transition.
77720         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77721
77722 2001-04-02  Jim Meyering  <meyering@lucent.com>
77723
77724         * lib/regex.h, regex.c: Update from GNU libc.
77725
77726 2001-03-24  Jim Meyering  <meyering@lucent.com>
77727
77728         * m4/jm-macros.m4: Require autoconf-2.49d.
77729
77730 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77731
77732         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77733
77734 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77735
77736         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77737
77738 2001-03-17  Jim Meyering  <meyering@lucent.com>
77739
77740         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77741         now that the version in autoconf is equivalent.
77742         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77743
77744         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77745         Suggestion from Akim Demaille.
77746
77747         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77748         (jm_PREREQ_TEMPNAME): New function.
77749
77750 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77751
77752         * lib/tempname.c (uint64_t): Define to uintmax_t if
77753         not defined, and if UINT64_MAX is not defined.
77754         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77755         Reported by John David Anglin.
77756
77757 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77758
77759         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77760         resolve alias if codeset is empty.
77761         * lib/config.charset (BeOS): Use wildcard syntax.
77762
77763 2001-03-13  Jim Meyering  <meyering@lucent.com>
77764
77765         * lib/path-concat.c (path_concat)
77766         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77767         concatenating e.g., `C:' and `foo'.
77768         From Bruno Haible.
77769
77770 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77771
77772         * lib/localcharset.c (locale_charset): Don't use
77773         setlocale(LC_CTYPE,NULL). Don't return NULL.
77774         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77775
77776 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77777
77778         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77779         support for DOS/DJGPP.
77780
77781 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77782
77783         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77784         lacks mkstemp.  Compile our own tempname.c if we compile our own
77785         mkstemp.c, as mkstemp relies on tempname.
77786
77787 2001-03-01  Jim Meyering  <meyering@lucent.com>
77788
77789         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77790         AH_VERBATIM really does output its argument verbatim.
77791
77792 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77793
77794         * lib/Makefile.am (libfetish_a_SOURCES):
77795         Add dup-safer.c, fopen-safer.c.
77796         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77797
77798         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77799         * lib/unistd-safer.h: New files.
77800
77801 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77802
77803         The mkstemp replacement is taken from glibc 2.2.2, with some
77804         portability fixes for use outside glibc, as follows:
77805
77806         * lib/tempname.c (struct_stat64): New macro.
77807         (direxists, __gen_tempname): Use it.
77808         This avoids a portability problem with Solaris 8.
77809
77810         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77811         (<stddef.h>, <stdint.h>, <string.h>):
77812         Include only if STDC_HEADERS || _LIBC.
77813         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77814         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77815         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77816         (__set_errno): Define this macro if <errno.h> doesn't.
77817         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77818         Define these macros if <stdio.h> doesn't.
77819         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77820         Define these macros if <sys/stat.h>
77821         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77822         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77823         __xstat64): Define if not _LIBC.
77824         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77825         (__gen_tempname): Invoke gettimeofday only if
77826         HAVE_GETTIMEOFDAY || _LIBC;
77827         otherwise, fall back on plain "time".
77828         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77829
77830         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77831
77832         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77833
77834 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77835
77836         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77837
77838 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77839
77840         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77841         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77842         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77843         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77844
77845 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77846
77847         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77848         Remove workaround macros for hosts that have mbrtowc but not
77849         mbstate_t, as we now insist on proper declarations for both
77850         before using mbrtowc.
77851
77852 2001-02-17  Jim Meyering  <meyering@lucent.com>
77853
77854         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77855         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77856         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77857         UnixWare 7.1.1.
77858
77859         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77860         rather than AC_CACHE_VAL.
77861
77862 2001-02-17  Jim Meyering  <meyering@lucent.com>
77863
77864         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77865         around included file name.
77866
77867         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77868
77869         * lib/strftime.c: Update from GNU libc (the only changes were to
77870         comments).
77871
77872 2001-02-17  Jim Meyering  <meyering@lucent.com>
77873
77874         * lib/regex.c: Update from libc.
77875
77876 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77877
77878         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77879         clash.
77880
77881 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77882
77883         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77884         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77885         Reported by Mark Hounschell via Paul Eggert.
77886
77887 2001-02-07  Jim Meyering  <meyering@lucent.com>
77888
77889         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77890
77891 2001-02-05  Jim Meyering  <meyering@lucent.com>
77892
77893         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77894         it includes the patch required for `large file' support with at least
77895         HP-UX's 10.20 /bin/cc.
77896
77897 2001-02-03  Jim Meyering  <meyering@lucent.com>
77898
77899         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77900         AS_IF, now that it works once again (mysteriously).
77901         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77902
77903 2001-01-30  Jim Meyering  <meyering@lucent.com>
77904
77905         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77906         * m4/chown.m4: Rename conftestchown to conftest.chown.
77907         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77908         s/conftestdir2/conftest.d2/.
77909         * m4/utimes.m4: s/conftestdata/conftest.data/
77910         Inspired by Pavel Roskin's change in autoconf.
77911
77912 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77913
77914         * lib/config.charset: Update for FreeBSD 4.2.
77915
77916 2001-01-27  Jim Meyering  <meyering@lucent.com>
77917
77918         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77919         a use of AS_IF.
77920         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77921
77922 2001-01-26  Jim Meyering  <meyering@lucent.com>
77923
77924         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77925         quotearg.c includes it.
77926
77927 2001-01-26  Jim Meyering  <meyering@lucent.com>
77928
77929         * lib/quotearg.c: Include stddef.h.
77930         * lib/quote.c: Include stddef.h.
77931         Reported by Axel Kittenberger.
77932
77933         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77934         line in double quotes so that it evokes a better diagnostic.
77935         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77936         Reported by Axel Kittenberger.
77937
77938 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77939
77940         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77941         as if it was a `charset'.
77942
77943 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77944
77945         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77946         has const.
77947
77948 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77949
77950         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77951         to avoid a warning.  Add back 'const' to inptr.
77952
77953 2001-01-20  Jim Meyering  <meyering@lucent.com>
77954
77955         Be sure that headers are checked before used in code compiled
77956         for the type checks.
77957         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77958         In place of that, invoke jm_CHECK_ALL_TYPES.
77959         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77960         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77961         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77962         The check for ssize_t was mistakenly run before the test for unistd.h.
77963
77964         The configure-time check for stdbool.h was missing.
77965         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77966         (jm_PREREQ_HASH): New function.
77967
77968 2001-01-17  Jim Meyering  <meyering@lucent.com>
77969
77970         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77971         for autoconf-2.49c.
77972         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77973
77974 2001-01-16  Jim Meyering  <meyering@lucent.com>
77975
77976         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77977         From Bruno Haible.
77978
77979 2001-01-14  Jim Meyering  <meyering@lucent.com>
77980
77981         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77982         foo and bar.  Create conftestdir/ in the script, not in the C code.
77983         Remove directories in the script, not in the C code.
77984         Remove conftestdir{,2} before trying to create the directory.
77985         Make the entire configure script fail if the mkdir fails.
77986
77987 2001-01-14  Jim Meyering  <meyering@lucent.com>
77988
77989         * lib/rename.c: New file.  From Volker Borchert.
77990         Include stdlib.h, string.h or strings.h, and xalloc.h.
77991         Use strip_trailing_slashes rather than open-coding it.
77992
77993 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77994
77995         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77996
77997 2001-01-03  Jim Meyering  <meyering@lucent.com>
77998
77999         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78000         of local `inptr' to avoid warning with some system declarations of
78001         iconv.
78002
78003 2001-01-02  Volker Borchert  <bt@teknon.de>
78004
78005         * m4/rename.m4: New file.
78006         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78007
78008 2001-01-01  Jim Meyering  <meyering@lucent.com>
78009
78010         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78011         even on systems with utmpx.h.  It's necessary for the declaration of
78012         utmp's ut_user member.  Reported by Andreas Jaeger.
78013
78014         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78015         available. They are required for the declarations of getgrgid and
78016         getpwuid resp.
78017         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78018         Reported by Andreas Jaeger.
78019
78020 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78021
78022         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78023         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78024         so `make install' also works in VPATH builds.
78025
78026 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78027
78028         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78029         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78030         can be used in subdirectories.
78031
78032 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78033
78034         * lib/modechange.c: Do not assume that mode_t uses the
78035         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78036         the other-execute bit of FOO even if S_IXOTH != 1.
78037
78038         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78039         WOTH, XOTH, ALLM): New macros.
78040         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78041          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78042         Use them.
78043         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78044         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78045         (mode_compile):
78046         No need to use uintmax_t; unsigned long is long enough.
78047         Don't bother to get suffix since we don't use it.
78048
78049 2000-12-26  Jim Meyering  <meyering@lucent.com>
78050
78051         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78052         better with autoheader.
78053
78054 2000-12-24  Jim Meyering  <meyering@lucent.com>
78055
78056         * lib/hash.c (is_prime): Return explicit boolean values.
78057         (hash_get_first): Return NULL to appease Irix5.6's 89.
78058         Reported by Nelson Beebe.
78059
78060 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78061
78062         * lib/localcharset.c (locale_charset): Add support for Win32.
78063
78064 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78065
78066         * lib/physmem.h, lib/physmem.c: New files.
78067
78068         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78069         (noinst_HEADERS): Add physmem.h.
78070
78071         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78072         't' for compatibility with Solaris 8 sort.
78073
78074 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78075
78076         * lib/config.charset: Add support for BeOS.
78077
78078 2000-12-17  Jim Meyering  <meyering@lucent.com>
78079
78080         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78081         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78082
78083 2000-12-16  Jim Meyering  <meyering@lucent.com>
78084
78085         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78086         N and M) would have treated it like `chown N:N FILE'.
78087
78088         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78089
78090 2000-12-16  Jim Meyering  <meyering@lucent.com>
78091
78092         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78093         SHELLS_FILE to a file name that's useful on djgpp systems.
78094         Include stdlib.h.
78095         (ADDITIONAL_DEFAULT_SHELLS): Define.
78096         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78097         Based mostly on a patch from Prashant TR.
78098
78099 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78100
78101         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78102         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78103         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78104
78105 2000-12-08  Andreas Schwab  <schwab@suse.de>
78106
78107         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78108         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78109
78110 2000-12-07  Jim Meyering  <meyering@lucent.com>
78111
78112         * lib/stripslash.c (ISSLASH): Define.
78113         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78114         `/'.
78115         From Prashant TR.
78116
78117         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78118         (dir_name_r): Declare this function as static.
78119         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78120         manifest itself on a name containing a mix of slashes and
78121         backslashes.
78122         Make this function work with names starting with a DOS-style
78123         drive letter and colon prefix.
78124         (dir_name): Append `.' if necessary.
78125         Based mostly on patches from Prashant TR and Eli Zaretskii.
78126
78127         * lib/dirname.h (dir_name_r): Remove prototype.
78128
78129 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78130
78131         * m4/off_t-format.m4: Remove this file.
78132         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78133
78134 2000-12-06  Jim Meyering  <meyering@lucent.com>
78135
78136         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78137         replacement strtoull, we may well need the replacement strtoul, too.
78138         Check for declarations of strtoul and strtoull.
78139         Check for strtol.  Mainly as a cue to cause automake to include
78140         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78141         Check for limits.h -- strtol.c needs it.
78142
78143 2000-12-05  Jim Meyering  <meyering@lucent.com>
78144
78145         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78146
78147 2000-12-04  Jim Meyering  <meyering@lucent.com>
78148
78149         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78150         Also include memory.h, stdlib.h, unistd.h if appropriate.
78151         Reported by Andreas Jaeger (conflicting declaration of malloc).
78152
78153 2000-12-02  Jim Meyering  <meyering@lucent.com>
78154
78155         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78156         * m4/jm-macros.m4 (jm_MACROS): require it.
78157
78158 2000-12-02  Jim Meyering  <meyering@lucent.com>
78159
78160         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78161
78162 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78163
78164         * lib/memrchr.c: Include <config.h> before any system include file.
78165
78166 2000-11-30  Jim Meyering  <meyering@lucent.com>
78167
78168         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78169
78170 2000-11-30  Jim Meyering  <meyering@lucent.com>
78171
78172         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78173
78174 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78175
78176         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78177
78178 2000-11-26  Jim Meyering  <meyering@lucent.com>
78179
78180         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78181
78182 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78183
78184         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78185         size of (size_t) -1; it's not portable.
78186
78187 2000-11-17  Jim Meyering  <meyering@lucent.com>
78188
78189         * lib/strstr.c: Update from GNU libc.
78190
78191 2000-11-17  Akim Demaille  <akim@epita.fr>
78192
78193         * lib/obstack.h: Formatting changes.
78194         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78195         prevent type checking.
78196         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78197         cast the value to (void *): assigning a `foo *' to a `void *'
78198         variable is valid.
78199         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78200
78201 2000-11-16  Jim Meyering  <meyering@lucent.com>
78202
78203         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78204
78205 2000-11-11  Jim Meyering  <meyering@lucent.com>
78206
78207         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78208
78209 2000-11-10  Jim Meyering  <meyering@lucent.com>
78210
78211         * lib/obstack.h: Update from GNU libc.
78212         * lib/obstack.c: Likewise.
78213
78214 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78215
78216         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78217
78218 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78219
78220         * lib/getusershell.c (setusershell): Use rewind rather than
78221         fseek/fseeko, to avoid configuration hassles with fseeko.
78222         Don't bother opening SHELLS_FILE if shellstream is NULL;
78223         it's not necessary.
78224
78225 2000-11-05  Jim Meyering  <meyering@lucent.com>
78226
78227         * lib/makepath.h (make_dir): Declare.
78228         * lib/makepath.c (make_dir): Remove `static' attribute.
78229         Tweak a comment.
78230
78231 2000-11-04  Jim Meyering  <meyering@lucent.com>
78232
78233         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78234
78235 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78236
78237         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78238         last one in a bucket, advance to the next bucket.
78239
78240 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78241
78242         * lib/fnmatch.c: Do not comment out all the code if we are using
78243         the GNU C library, because in some cases we are replacing buggy
78244         code in the GNU C library itself.
78245
78246 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78247
78248         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78249         (regex_compile): Catch bogus \(\1\).
78250
78251 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78252
78253         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78254         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78255         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78256
78257 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78258
78259         * lib/error.h, getline.h, modechange.h:
78260         Remove "2000" from Copyright line, as the file hasn't been
78261         changed this year other than in the copyright notice.
78262
78263         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78264         was changed this year.
78265
78266 2000-10-29  Jim Meyering  <meyering@lucent.com>
78267
78268         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78269         renaming.
78270         * m4/ls-mntd-fs.m4: Likewise
78271
78272 2000-10-29  Jim Meyering  <meyering@lucent.com>
78273
78274         * lib/xstat.in: Fix grammar in comment.
78275
78276 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78277
78278         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78279         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78280         doesn't define __restrict_arr.
78281
78282 2000-10-28  Jim Meyering  <meyering@lucent.com>
78283
78284         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78285         (jm_PREREQ_MEMCHR): New function.
78286
78287 2000-10-28  Jim Meyering  <meyering@lucent.com>
78288
78289         * lib/memchr.c: Update from libc.
78290         Adjust for portability:
78291         [HAVE_STDLIB_H]: Include stdlib.h.
78292         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78293         Undef __memchr, too.
78294         [!weak_alias]: Define __memchr to memchr.
78295
78296         * lib/regex.c: Update from libc.
78297         * lib/regex.h: Likewise.
78298         * lib/getopt1.c: Likewise.
78299         * lib/memcmp.c: Likewise.
78300
78301         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78302         Avoid using fseek, when possible -- it's broken by design.
78303         Patch by Ulrich Drepper.
78304
78305 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78306
78307         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78308         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78309         Giving in to popular pressure to shut up the compiler with casts.
78310
78311 2000-10-26  Jim Meyering  <meyering@lucent.com>
78312
78313         * lib/strftime.c: Update from libc.
78314
78315 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78316
78317         * regex.c: More `unsigned char' -> `re_char' changes.
78318         Also change several `int' into `re_wchar_t'.
78319         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78320         (PUSH_FAILURE_POINTER): Don't cast any more.
78321         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78322         We want GCC to complain, since this piece of code makes
78323         re_match non-reentrant, which *should* be fixed.
78324         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78325         (EXTEND_BUFFER): Use RETALLOC.
78326         (SET_LIST_BIT): Don't cast.
78327         (re_wchar_t): New type.
78328         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78329         that those two functions will always properly return.
78330         (IMMEDIATE_QUIT_CHECK): Cast to void.
78331         (analyse_first): Use recursion rather than an explicit stack.
78332         (re_compile_fastmap): Can't fail anymore.
78333         (re_search_2): Don't check re_compile_fastmap for failure.
78334         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78335         Now also sets the new value (passed in a new argument).
78336         (re_match_2_internal): Use it.
78337         Also, use a new var `reg' of type size_t when looping through regs
78338         rather than reuse the inappropriate `mcnt'.
78339
78340 2000-10-25  Jim Meyering  <meyering@lucent.com>
78341
78342         * lib/obstack.c: Update from libc.
78343
78344 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78345
78346         * regex.c (regex_compile): Change the way of handling a range from
78347         a char less than 256 to a char not less than 256.
78348
78349 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78350
78351         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78352         NT-Emacs only.
78353         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78354         so that re_search functions only quit when callers expect them to.
78355
78356 2000-10-23  Jim Meyering  <meyering@lucent.com>
78357
78358         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78359         wrong.  That set_locale call must not have any side effects.
78360         From Paul Eggert.
78361
78362 2000-10-22  Jim Meyering  <meyering@lucent.com>
78363
78364         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78365         [CYCLIC]: Remove now-unused definition.
78366
78367         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78368         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78369         Suggestion from Ulrich Drepper.
78370
78371 2000-10-21  Jim Meyering  <meyering@lucent.com>
78372
78373         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78374         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78375         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78376
78377 2000-10-21  Jim Meyering  <meyering@lucent.com>
78378
78379         * lib/dirname.c (memrchr): Declare if necessary.
78380         (dir_name): Remove the restriction that there be no
78381         trailing slashes.  Now, this code skips past them, effectively
78382         ignoring them.
78383         [TEST_DIRNAME] (main): New unit tests.
78384
78385         * lib/memrchr.c: New file from GNU libc.
78386         Undef __memrchr, too.
78387         [!weak_alias]: Define __memrchr to memrchr.
78388         Guard weak_alias use with `#ifdef weak_alias'.
78389
78390 2000-10-21  Jim Meyering  <meyering@lucent.com>
78391
78392         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78393         (dir_name): Use dir_name_r.
78394         * lib/dirname.h (dir_name_r): Declare it.
78395
78396 2000-10-17  Jim Meyering  <meyering@lucent.com>
78397
78398         * lib/quote.h (PARAMS): Define and use.
78399         Reported by Akim Demaille.
78400
78401         * lib/getopt.c: Update from libc.
78402
78403 2000-10-16  Jim Meyering  <meyering@lucent.com>
78404
78405         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78406         setlocale.
78407         From Jan Fedak.
78408
78409 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78410
78411         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78412
78413 2000-09-25  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/md5.h (rol): Define (from GnuPG).
78416
78417         * lib/sha.c: Give credit (GnuPG) where due.
78418         (M): Use rol rather than open-coding it.
78419         Add a FIXME comment.
78420
78421 2000-09-21  Jim Meyering  <meyering@lucent.com>
78422
78423         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78424         Reported by Michael Stone.
78425
78426 2000-09-20  Jim Meyering  <meyering@lucent.com>
78427
78428         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78429         (noinst_HEADERS): Add sha.h.
78430         Based on code from Scott G. Miller and from GnuPG.
78431
78432 2000-09-18  Jim Meyering  <meyering@lucent.com>
78433
78434         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78435         LIBS. Otherwise, everyone ends up linking with -lelf for some
78436         configurations.
78437         Reported by Mike Stone.
78438
78439 2000-09-15  Jim Meyering  <meyering@lucent.com>
78440
78441         * lib/regex.c: Update from libc.
78442
78443 2000-09-10  Jim Meyering  <meyering@lucent.com>
78444
78445         * lib/getopt.c (_getopt_internal): Update from glibc.
78446
78447 2000-09-09  Jim Meyering  <meyering@lucent.com>
78448
78449         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78450         think it should be used as a general replacement for isascii.
78451         * lib/fnmatch.c: Likewise.
78452         * lib/mbswidth.c: Likewise
78453         * lib/regex.c: Likewise.
78454
78455         Don't use atoi.
78456         * lib/userspec.c: Include sys/param.h and limits.h.
78457         Include xstrtol.h.
78458         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78459         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78460         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78461         UID, GID.  Check range.
78462
78463 2000-09-06  Jim Meyering  <meyering@lucent.com>
78464
78465         * lib/getopt.c (_getopt_internal): Update from glibc.
78466
78467 2000-08-30  Jim Meyering  <meyering@lucent.com>
78468
78469         * lib/strftime.c: Merge in changes from GNU libc.
78470
78471 2000-08-26  Jim Meyering  <meyering@lucent.com>
78472
78473         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78474         * m4/fpending.m4: New file.
78475
78476 2000-08-26  Jim Meyering  <meyering@lucent.com>
78477
78478         * lib/closeout.c: Include "__fpending.h".
78479         (close_stdout_status): Return right away if there's nothing to flush.
78480
78481         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78482         * lib/__fpending.c: New file.
78483         * lib/__fpending.h: New file.
78484
78485 2000-08-20  Jim Meyering  <meyering@lucent.com>
78486
78487         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78488         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78489         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78490
78491 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78492
78493         Improve fileutils installation on systems where running
78494         programs (like install) can't be unlinked.
78495         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78496         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78497
78498 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78499
78500         Standardize on "memory exhausted" instead of "Memory exhausted"
78501         or "virtual memory exhausted".
78502         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78503         "virtual memory exhausted".
78504         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78505         our own message.
78506         * lib/userspec.c (parse_user_spec): Likewise.
78507         * lib/bumpalloc.h: comment fix
78508         * lib/same.c, userspec.c: Include xalloc.h.
78509
78510         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78511         not char *const and pointing to a constant array.
78512         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78513         (xrealloc): Comment fix.
78514
78515         * lib/userspec.c (parse_user_spec):
78516         Don't translate a message until just before returning,
78517         to avoid unnecessary translation.
78518
78519 2000-08-07  Jim Meyering  <meyering@lucent.com>
78520
78521         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78522         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78523         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78524         getgroups.c, gethostname.c, getopt.h, group-member.c,
78525         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78526         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78527         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78528         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78529         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78530         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78531         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78532         yesno.c: Back out Copyright date changes for each file with no change
78533         this year.  This eases coordination with other programs using the same
78534         source code modules.  From Paul Eggert.
78535
78536 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78537
78538         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78539         not char, for compatibility with glibc 2.1.3 strftime.c.
78540
78541 2000-08-03  Greg McGary  <greg@mcgary.org>
78542
78543         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78544         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78545         (EXTEND_BUFFER): Use them.
78546
78547 2000-08-01  Jim Meyering  <meyering@lucent.com>
78548
78549         * lib/dirname.c (ISSLASH): Define.
78550         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78551         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78552         both `\' and `/' may be use as path separators.
78553         Based on a patch from Prashant TR.
78554
78555 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78556
78557         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78558         slot vector a constant, since it might get modified.
78559
78560 2000-07-31  Jim Meyering  <meyering@lucent.com>
78561
78562         * lib/xmalloc.c: Use `virtual memory exhausted', not
78563         `Memory exhausted'.
78564         * lib/obstack.c (print_and_abort): Likewise.
78565
78566 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78567
78568         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78569         buffer, so that the caller can always quote one small
78570         component of a "memory exhausted" message in slot 0.
78571         From a suggestion by Jim Meyering.
78572
78573 2000-07-30  Jim Meyering  <meyering@lucent.com>
78574
78575         * lib/makepath.c (make_path): Quote the other instance, too.
78576
78577         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78578         (STATIC_BUF_SIZE): Define.
78579         (quotearg_n_options): Use only statically allocated storage when
78580         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78581         than STATIC_BUF_SIZE.
78582
78583 2000-07-29  Jim Meyering  <meyering@lucent.com>
78584
78585         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78586         * lib/dirname.c (dir_name): Likewise.
78587
78588         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78589         `/'.
78590
78591         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78592         (dir_name): Assert that there are no trailing slashes.
78593
78594 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78595
78596         * lib/mbswidth.h (mbswidth): Add a flags argument.
78597         (mbswidth): New declaration.
78598         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78599         * lib/mbswidth.c (mbswidth): Add a flags argument.
78600         (mbsnwidth): New function.
78601
78602 2000-07-24  Jim Meyering  <meyering@lucent.com>
78603
78604         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78605
78606 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78607
78608         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78609
78610 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78611
78612         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78613         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78614         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78615         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78616         invoke multibyte primitives.
78617
78618 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78619
78620         * lib/quotearg.c:
78621         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78622         so that mbstate_t is always defined.
78623
78624         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78625         be 1 in at least one GCC installation, and this configuration
78626         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78627         performance on hosts that have mbrtowc but have only unibyte
78628         locales, but I assume these hosts are rare.
78629
78630 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78631
78632         * lib/mbswidth.c (_XOPEN_SOURCE):
78633         Don't define; this causes problems on Solaris 7.
78634         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78635
78636 2000-07-23  Jim Meyering  <meyering@lucent.com>
78637
78638         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78639         too: getgrgid, getpwuid, getuid.
78640
78641 2000-07-23  Jim Meyering  <meyering@lucent.com>
78642
78643         * lib/basename.c (base_name): Add an assertion.
78644
78645 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78646
78647         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78648         shadow its mbsinit function.
78649
78650 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78651
78652         * lib/mbswidth.h: New file.
78653         * lib/mbswidth.c: New file.
78654         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78655         (noinst_HEADERS): Add mbswidth.h.
78656
78657 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78658
78659         * lib/config.charset: Add support for FreeBSD. Improve support for
78660         HP-UX and IRIX 6.
78661
78662 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78663
78664         * m4/mbswidth.m4: New file.
78665         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78666
78667 2000-07-15  Jim Meyering  <meyering@lucent.com>
78668
78669         * lib/makepath.c: Include quote.h.
78670         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78671         corresponding argument in a `quote (...)' call.
78672         Give better diagnostics.
78673
78674         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78675         (noinst_HEADERS): Add quote.h.
78676
78677         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78678         from tar's src/misc.c.
78679         * lib/quote.h: New file.  Prototypes for same.
78680
78681 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78682
78683         From a suggestion by Bruno Haible.
78684         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78685         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78686         to decide whether to define the BeOS workaround macro;
78687         this adjusts to the change to AC_MBSTATE_T.
78688
78689 2000-07-14  Jim Meyering  <meyering@lucent.com>
78690
78691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78692         jm_AC_TYPE_UINTMAX_T.
78693
78694 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78695
78696         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78697
78698         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78699         quotearg_buffer_restyled): Add support for
78700         clocale_quoting_style.  Undo previous change to
78701         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78702         and "{RIGHT QUOTATION MARK}" msgids.
78703
78704 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78705
78706         From a suggestion by Bruno Haible.
78707         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78708         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78709         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78710         and mbstate_t, to a single-part test that simply defines mbstate_t.
78711         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78712         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78713
78714 2000-07-10  Jim Meyering  <meyering@lucent.com>
78715
78716         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78717
78718         * m4/gnu-source.m4: Output to confdefs.h directly.
78719         Suggestion from Akim Demaille.
78720
78721 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78722
78723         The old behavior of quoting `like this' doesn't look good with
78724         newer, ISO-style fonts.  See:
78725         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78726
78727         Instead, quote "like this" by default.  Let the translator
78728         tailor the locale-specific quoting behavior by providing
78729         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78730
78731         * lib/quotearg.c (N_): New macro.
78732         (gettext_default): New function.
78733         (quotearg_buffer_restyled): Use
78734         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78735         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78736
78737 2000-07-09  Jim Meyering  <meyering@lucent.com>
78738
78739         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78740         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78741
78742         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78743         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78744
78745 2000-07-09  Jim Meyering  <meyering@lucent.com>
78746
78747         * lib/Most files: Update copyright dates to include 2000.
78748
78749 2000-07-08  Jim Meyering  <meyering@lucent.com>
78750
78751         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78752         if not defined.
78753         (xgethostname): Remove now-unnecessary #ifdef.
78754         Move declaration of `err' into loop where it's used.
78755
78756 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78757         and Bruno Haible  <haible@clisp.cons.org>
78758
78759         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78760         only if the test for an object-type mbstate_t fails.  This
78761         prevents us from mistakenly reporting that mbstate_t is a
78762         system object type after we "#define mbstate_t int" to work
78763         around its lack.
78764
78765 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78766         and Bruno Haible  <haible@clisp.cons.org>
78767
78768         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78769
78770 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78771
78772         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78773         to strerror_r.
78774         Include <ctype.h> for use of isalpha.
78775
78776 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78777
78778         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78779         by allocating a larger buffer. Test the gethostname return value for
78780         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78781         returns an error and ENAMETOOLONG isn't defined.
78782
78783 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78784
78785         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78786         dimension.
78787
78788 2000-07-04  Jim Meyering  <meyering@lucent.com>
78789
78790         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78791         of the deprecated AC_CHECKING.
78792
78793 2000-07-04  Jim Meyering  <meyering@lucent.com>
78794
78795         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78796         Reported by Bruno Haible.
78797
78798 2000-07-04  Jim Meyering  <meyering@lucent.com>
78799
78800         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78801         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78802         lacks mbrtowc.
78803
78804 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78805
78806         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78807         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78808
78809 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78810         and Bruno Haible  <haible@clisp.cons.org>
78811
78812         * lib/quotearg.c (mbrtowc):
78813         Assign to *pwc, and return 1 only if result is nonzero.
78814         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78815
78816 2000-07-03  Jim Meyering  <meyering@lucent.com>
78817
78818         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78819
78820 2000-07-03  Jim Meyering  <meyering@lucent.com>
78821
78822         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78823         This is necessary to get a definition of e.g., UTMP_FILE on
78824         HP-UX 10.20.
78825         From Bob Proulx.
78826
78827 2000-07-02  Jim Meyering  <meyering@lucent.com>
78828
78829         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78830
78831         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78832         AC_LIBOBJ(function_name).
78833         * m4/chown.m4: Likewise.
78834         * m4/fnmatch.m4: Likewise.
78835         * m4/ftruncate.m4: Likewise.
78836         * m4/getgroups.m4: Likewise.
78837         * m4/getline.m4: Likewise.
78838         * m4/group-member.m4: Likewise.
78839         * m4/jm-macros.m4: Likewise.
78840         * m4/lstat.m4: Likewise.
78841         * m4/malloc.m4: Likewise.
78842         * m4/memcmp.m4: Likewise.
78843         * m4/nanosleep.m4: Likewise.
78844         * m4/putenv.m4: Likewise.
78845         * m4/realloc.m4: Likewise.
78846         * m4/regex.m4: Likewise.
78847         * m4/stat.m4: Likewise.
78848         * m4/strftime.m4: Likewise.
78849
78850 2000-07-02  Jim Meyering  <meyering@lucent.com>
78851
78852         * lib/quotearg.c (mbstate_t): Don't define here.
78853
78854 2000-07-02  Jim Meyering  <meyering@lucent.com>
78855
78856         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78857
78858 2000-07-01  Jim Meyering  <meyering@lucent.com>
78859
78860         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78861
78862 2000-07-01  Jim Meyering  <meyering@lucent.com>
78863
78864         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78865         problem.
78866
78867 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78868
78869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78870         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78871
78872 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78873
78874         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78875         per change in ../m4/ls-mntd-fs.m4.
78876         (read_filesystem_list): Ignore symbolic links.
78877
78878 2000-06-29  Jim Meyering  <meyering@lucent.com>
78879
78880         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78881         for declaration of strcmp.
78882
78883         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78884
78885         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78886         Avoid warning by casting result to `char *' to remove `const'.
78887
78888 2000-06-28  Jim Meyering  <meyering@lucent.com>
78889
78890         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78891         included by quotearg.c, for which we perform this test.  From
78892         Bruno Haible.
78893
78894 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78895
78896         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78897         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78898         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78899
78900 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78901
78902         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78903
78904 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78905
78906         savedir now sets errno on failure and invokes xmalloc to get memory.
78907         Fix a couple of other minor bugs while we're at it.
78908
78909         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78910         (NAMLEN): Remove macro.
78911         (malloc, realloc): Remove decls.
78912         (stpcpy): Likewise.
78913         ("xalloc.h"): Include.
78914         (NAME_SIZE_DEFAULT): New macro.
78915         (savedir): Use xmalloc / xrealloc to allocate memory.
78916         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78917         Skip "" directory entries.
78918         Use strlen to calculate directory entry length, since the old method
78919         is rarely used these days and isn't worth supporting.
78920         Don't use a pointer after freeing it.
78921         Check for integer overflow when calculating allocation size.
78922         Use memcpy to copy entries, instead of stpcpy.
78923         Set errno properly when returning NULL.
78924         Check for readdir error.
78925
78926 2000-06-26  Jim Meyering  <meyering@lucent.com>
78927
78928         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78929
78930 2000-06-25  Jim Meyering  <meyering@lucent.com>
78931
78932         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78933         Linux header bug when _XOPEN_SOURCE is defined to 500.
78934
78935 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78936
78937         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78938         deficiency.
78939
78940 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78941
78942         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78943         Include xalloc.h.
78944         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78945
78946 2000-06-24  Jim Meyering  <meyering@lucent.com>
78947
78948         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78949         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78950         for which strerror does return char*, but which lacks a conveniently
78951         accessible declaration of the function.  If the compile-test says
78952         strerror_r doesn't work, then resort to a `run'-test that works on
78953         BeOS and segfaults on DEC Unix.
78954
78955 2000-06-24  Jim Meyering  <meyering@lucent.com>
78956
78957         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78958
78959 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78960
78961         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78962         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78963
78964 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78965
78966         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78967         (mbrtowc, mbstate_t): Define substitutes if
78968         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78969         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78970         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78971
78972 2000-06-23  Jim Meyering  <meyering@lucent.com>
78973
78974         * m4/afs.m4: Add missing AC_MSG_RESULT.
78975         Reported by Bruno Haible.
78976
78977         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78978         Suggestion from Bruno Haible.
78979
78980 2000-06-23  Jim Meyering  <meyering@lucent.com>
78981
78982         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78983
78984 2000-06-21  Jim Meyering  <meyering@lucent.com>
78985
78986         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78987
78988 2000-06-21  Jim Meyering  <meyering@lucent.com>
78989
78990         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78991         (noinst_HEADERS): Add getstr.h.
78992
78993         * lib/getline.c (getstr): Move into a separate file.
78994         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78995         the following changes: new parameter, delim2; both delim[12]
78996         parameters have type `int', not `char'.  The latter would lose
78997         with 8-bit delimiters.
78998         * lib/getstr.h: New file.
78999
79000 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79001
79002         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79003         than 1024, return a memory chunk of least possible size, instead
79004         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79005         Use free/xmalloc instead of xrealloc to avoid copying for very long
79006         paths.
79007
79008 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79009
79010         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79011         the empty string.
79012
79013 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79014
79015         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79016         address, not strdup.  Include <stdlib.h> and don't declare free().
79017
79018 2000-06-19  Jim Meyering  <meyering@lucent.com>
79019
79020         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79021
79022 2000-06-18  Jim Meyering  <meyering@lucent.com>
79023
79024         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79025
79026         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79027         `checking whether...' message to be consistent with that of the
79028         lstat test.
79029
79030 2000-06-18  Jim Meyering  <meyering@lucent.com>
79031
79032         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79033         Besides, these days every porting target provides a mkdir function.
79034
79035         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79036         needed. (this snippet comes from src/system.h).
79037
79038 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79039
79040         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79041
79042 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79043
79044         * lib/human.c (adjust_value): New function.
79045         (human_readable_inexact): Apply rounding style even when
79046         printing approximate values.
79047
79048 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79049
79050         * lib/human.c (human_readable_inexact): Allow an input block
79051         size that is not a multiple of the output block size, and vice versa.
79052         Reported by Piergiorgio Sartor.
79053
79054 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79055
79056         * lib/getdate.y (get_date): Apply relative times after time
79057         zone indicator, not before.  Reported by Todd A. Jacobs.
79058
79059 2000-06-13  Jim Meyering  <meyering@lucent.com>
79060
79061         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79062
79063         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79064
79065 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79066
79067         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79068
79069 2000-06-12  Jim Meyering  <meyering@lucent.com>
79070
79071         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79072         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79073         optional argument.
79074         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79075         the optional argument, `lib'.
79076
79077 2000-06-08  Jim Meyering  <meyering@lucent.com>
79078
79079         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79080
79081 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79082
79083         Rewrite largefile configuration so that we don't need to run
79084         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79085         AC_CANONICAL_HOST in configure.in -- jmm]
79086
79087         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79088         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79089         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79090         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79091         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79092         All uses changed.
79093         Instead of inspecting the output of getconf, try to compile the
79094         test program without and with the macro definition.
79095         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79096         for getconf.  Instead, check for the needed flags by compiling
79097         test programs.
79098
79099 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79100
79101         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79102
79103 2000-06-04  Jim Meyering  <meyering@lucent.com>
79104
79105         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79106         SunOS 4.1.4 for which gid_t is an unsigned type.
79107
79108 2000-06-03  Jim Meyering  <meyering@lucent.com>
79109
79110         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79111         now that autoconf requires that.
79112
79113         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79114         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79115         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79116
79117 2000-06-03  Jim Meyering  <meyering@lucent.com>
79118
79119         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79120
79121 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79122
79123         * m4/glibc21.m4: New file.
79124         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79125
79126 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79127
79128         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79129         newer, don't install charset.alias.
79130         * lib/config.charset: Change the Linux/glibc rules so they become empty
79131         on glibc-2.1 or newer.
79132
79133 2000-06-02  Jim Meyering  <meyering@lucent.com>
79134
79135         * lib/mountlist.c: Back out last change.  Instead, do this...
79136         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79137         me_dummy member using the same `ignore'-testing code.
79138         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79139         fs_type strings.
79140         From Mark D. Roth.
79141
79142 2000-05-29  Jim Meyering  <meyering@lucent.com>
79143
79144         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79145         mounts with the `ignore' attribute.  Based on a patch from
79146         Mark D. Roth.
79147
79148 2000-05-28  Jim Meyering  <meyering@lucent.com>
79149
79150         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79151         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79152         * m4/stat.m4: Likewise.
79153         * m4/lstat.m4: Likewise.
79154         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79155
79156         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79157         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79158
79159 2000-05-26  Jim Meyering  <meyering@lucent.com>
79160
79161         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79162
79163 2000-05-24  Jim Meyering  <meyering@lucent.com>
79164
79165         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79166         autoconf requires that.
79167         * m4/lib-check.m4: Likewise.
79168         * m4/jm-macros.m4: Likewise.
79169         * m4/strftime.m4: Likewise.
79170
79171         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79172         AC_CHECK_DECLS, now that autoconf requires that.
79173
79174 2000-05-22  Jim Meyering  <meyering@lucent.com>
79175
79176         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79177         * m4/lstat.m4: Likewise.
79178
79179 2000-05-22  Jim Meyering  <meyering@lucent.com>
79180
79181         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79182
79183 2000-05-20  Jim Meyering  <meyering@lucent.com>
79184
79185         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79186         (jm_PREREQ): Use it.
79187
79188 2000-05-18  Jim Meyering  <meyering@lucent.com>
79189
79190         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79191         back, too, since it may have been modified by allocate_entry.
79192         (hash_delete): Rewrite to use neither the assignment operator
79193         nor the comma operator in an if-expression.
79194
79195 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79196
79197         * lib/closeout.c:
79198         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79199         Remove; no longer needed.
79200         "quotearg.h": Add include.
79201         (file_name): Do not bother to explicitly initialize to NULL; it's less
79202         efficient on some hosts.
79203         (close_stdout_status): Remove test as to whether stdout was already
79204         closed; it breaks for the case "echo x | sort >&-".
79205         Quote file name colons.
79206         Do not assume that _("write error") lacks format strings.
79207
79208 2000-05-15  Jim Meyering  <meyering@lucent.com>
79209
79210         * lib/version-etc.c (version_etc_copyright): Update the copyright
79211         string used in all --version output.
79212
79213 2000-05-14  Jim Meyering  <meyering@lucent.com>
79214
79215         * lib/closeout.c (close_stdout_set_file_name): New function.
79216         (close_stdout_status): Use new file-scoped global.
79217         Return right away if fstat says the stdout file descriptor is invalid.
79218         * lib/closeout.h (close_stdout_set_file_name): Declare.
79219
79220 2000-05-10  Jim Meyering  <meyering@lucent.com>
79221
79222         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79223         (close_stdout_set_status): New function.
79224         * lib/closeout.h (close_stdout_set_status): Declare.
79225
79226 2000-05-09  Jim Meyering  <meyering@lucent.com>
79227
79228         * m4/gettext.m4: Rename this...
79229         * m4/libintl.m4: ...to this.
79230
79231 2000-05-08  Jim Meyering  <meyering@lucent.com>
79232
79233         * lib/long-options.c: Don't include closeout.h.
79234         (parse_long_options): Don't call close_stdout for --version.
79235
79236 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79237
79238         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79239         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79240         2.1.3 bug.  This avoids a clash when files like regex.c define
79241         _GNU_SOURCE.
79242
79243 2000-05-06  Jim Meyering  <meyering@lucent.com>
79244
79245         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79246         (AC_REPLACE_FUNCS): Add strnlen.
79247
79248         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79249         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79250
79251         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79252         AC_SEARCH_LIBS call for nanosleep.
79253         (LIB_NANOSLEEP): Set and AC_SUBST.
79254
79255 2000-05-06  Jim Meyering  <meyering@lucent.com>
79256
79257         * lib/strnlen.c: Undefine __strnlen and strnlen.
79258         [!weak_alias]: Define __strnlen to strnlen.
79259
79260         * lib/atexit.c: New file, from libiberty.
79261
79262 2000-05-06  Jim Meyering  <meyering@lucent.com>
79263
79264         * lib/closeout.c (close_stdout_status): Also check for errors on the
79265         stderr stream.
79266
79267 2000-05-05  Jim Meyering  <meyering@lucent.com>
79268
79269         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79270         AC_SEARCH_LIBS call for clock_gettime.
79271         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79272
79273         * m4/search-libs.m4: Update from autoconf.
79274
79275         su doesn't work on Solaris 2.6.
79276         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79277         <shadow.h>.  Reported by Dragos Harabor.
79278
79279 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79280
79281         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79282         memcpy instead of xmalloc, xrealloc, path_concat.
79283         (locale_charset): Treat empty environment variables as absent.
79284         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79285
79286 2000-05-04  Jim Meyering  <meyering@lucent.com>
79287
79288         * lib/getopt.c: Update from glibc.
79289         * lib/obstack.c: Likewise.
79290         * lib/obstack.h: Likewise.
79291         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79292         file
79293
79294         * lib/regex.h: Likewise.
79295         * lib/strndup.c: Likewise.
79296         * lib/strnlen.c: New file, from glibc.
79297
79298 2000-05-03  Jim Meyering  <meyering@lucent.com>
79299
79300         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79301
79302 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79303
79304         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79305         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79306         compile-time test, rather than inspecting host and OS, to
79307         decide whether to define _LARGEFILE_SOURCE.
79308
79309 2000-05-01  Jim Meyering  <meyering@lucent.com>
79310
79311         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79312
79313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79314         Based on a patch from Bruno Haible.
79315
79316 2000-05-01  Jim Meyering  <meyering@lucent.com>
79317
79318         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79319
79320 2000-04-29  Jim Meyering  <meyering@lucent.com>
79321
79322         * lib/path-concat.c: Declare strdup only if it's not defined.
79323         * lib/canon-host.c: Likewise.
79324
79325 2000-04-28  Jim Meyering  <meyering@lucent.com>
79326
79327         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79328         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79329         is included first, then limits.h is included by locale.h by libintl.h.
79330         From John David Anglin.
79331
79332 2000-04-25  Jim Meyering  <meyering@lucent.com>
79333
79334         * lib/makepath.c (S_IRWXUGO): Define.
79335         (make_path): Always perform explicit chmod if MODE specifies any
79336         of the `special' permission bits.  Prompted by a bug report against
79337         install from Mate Wierdl and Joost van Baal.
79338
79339 2000-04-18  Jim Meyering  <meyering@lucent.com>
79340
79341         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79342         (jm_PREREQ): Use it.
79343
79344 2000-04-18  Jim Meyering  <meyering@lucent.com>
79345
79346         * lib/README: New file.
79347
79348         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79349         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79350
79351 2000-04-17  Jim Meyering  <meyering@lucent.com>
79352
79353         Get it right :-)
79354         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79355         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79356         Suggestion from Akim Demaille.
79357
79358 2000-04-17  Jim Meyering  <meyering@lucent.com>
79359
79360         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79361         the definition of it to rpl_strftime also defined-away the system's
79362         declaration.
79363
79364 2000-04-15  Jim Meyering  <meyering@lucent.com>
79365
79366         Use `C' to denote so-called `contiguous' files, the same way
79367         that tar does.
79368         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79369         (ftypelet): Use S_ISCTG.
79370         From Michael Deutschmann.
79371
79372 2000-04-14  Jim Meyering  <meyering@lucent.com>
79373
79374         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79375         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79376         clobbered.
79377
79378 2000-04-14  Jim Meyering  <meyering@lucent.com>
79379
79380         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79381
79382 2000-04-13  Jim Meyering  <meyering@lucent.com>
79383
79384         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79385         AH_VERBATIM to insert required #ifndef into config.h.in.
79386         Suggestion from Akim Demaille.
79387
79388 2000-04-12  Jim Meyering  <meyering@lucent.com>
79389
79390         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79391         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79392         Christian Krackowizer.
79393
79394         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79395         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79396         (AC_SYS_LARGEFILE): Require.
79397         (AM_C_PROTOTYPES): Require.
79398
79399 2000-04-08  Jim Meyering  <meyering@lucent.com>
79400
79401         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79402         names don't conflict.  Reported by Eli Zaretskii.
79403
79404 2000-04-07  Jim Meyering  <meyering@lucent.com>
79405
79406         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79407         sys/types.h, to work around system header problems on AIX 3.2.5.
79408         From Bruno Haible.
79409
79410 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79411
79412         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79413         bug.  Deal with the different error behavior of Irix iconv.
79414
79415 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79416
79417         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79418         IRIX if the installer said otherwise.
79419
79420 2000-04-05  Jim Meyering  <meyering@lucent.com>
79421
79422         Portability tweaks required for ultrix4.3.
79423         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79424         (jm_CHECK_DECLS): Add getutent to the list of functions.
79425         (_jm_DECL_HEADERS): Add utmpx.h.
79426         From John David Anglin.
79427
79428         * m4/strftime.m4: Back out the 2000-04-02 change.
79429         Instead of that change, simply undefine putenv in the test program.
79430
79431 2000-04-05  Jim Meyering  <meyering@lucent.com>
79432
79433         Portability tweaks required for ultrix4.3.
79434         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79435         getutent.
79436         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79437         * lib/canon-host.c: Declare strdup.
79438         * lib/path-concat.c: Likewise.
79439         From John David Anglin.
79440
79441 2000-04-04  Jim Meyering  <meyering@lucent.com>
79442
79443         Be more DOS 8.3-friendly.
79444         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79445         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79446         * lib/Makefile.am: Reflect renaming.
79447         Reported by Eli Zaretskii.
79448
79449         Use a temporary file name that won't clash with `charset.alias'
79450         in the DOS 8.3 name space.
79451         * lib/Makefile.am (charset_tmp): Define.
79452         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79453         (uninstall-local): Likewise.
79454         Reported by Eli Zaretskii.
79455
79456 2000-04-03  Jim Meyering  <meyering@lucent.com>
79457
79458         * m4/gettext.m4: Fix typo in comment.
79459
79460         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79461         textutils/configure.in).  Suggestion from Paul Eggert.
79462         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79463
79464 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79465
79466         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79467         variable in the shell rather than using putenv, which isn't
79468         portable.  This avoids the configure-time inter-test dependency
79469         on the potentially-renamed putenv function.
79470
79471 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79472
79473         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79474         before checking struct stat.st_blksize, so that
79475         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79476
79477 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79478
79479         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79480         since strftime.c uses HAVE_STRFTIME to decide whether to use
79481         the underlying strftime.
79482
79483 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79484
79485         * lib/time/strftime.c (my_strftime): Make sure we call the system
79486         strftime, not ourselves, when invoking the underlying strftime.
79487
79488 2000-03-24  Jim Meyering  <meyering@lucent.com>
79489
79490         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79491         (charset_alias): Define.
79492         (install-exec-local): Factor out common code.
79493         (uninstall-local): Split lines longer than 80.
79494         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79495         (SUFFIXES): Define.
79496         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79497         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79498
79499 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79500
79501         * lib/config.charset: Output a line containing "Packages using this
79502         file".
79503         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79504         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79505         ref-del.sed): New rules.
79506
79507 2000-03-17  Jim Meyering  <meyering@lucent.com>
79508
79509         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79510         Otherwise, include <strings.h>
79511
79512 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79513
79514         * lib/unicodeio.c (utf8_wctomb): New function.
79515         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79516         format instead of in UCS-4 with platform dependent endianness.
79517
79518 2000-03-10  Jim Meyering  <meyering@lucent.com>
79519
79520         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79521         From Marco Franzen.
79522
79523 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79524
79525         * lib/savedir.c (savedir): Work even if directory size is
79526         negative; this can happen with some screwy NFS configurations.
79527
79528 2000-03-06  Jim Meyering  <meyering@lucent.com>
79529
79530         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79531         if it's NULL (because we ran out of memory).  From Bruno Haible.
79532
79533 2000-03-05  Jim Meyering  <meyering@lucent.com>
79534
79535         * lib/localcharset.c ("path-concat.h"): Include.
79536         (get_charset_aliases): Use path_concat instead of ANSI string
79537         concatenation.
79538
79539         * lib/unicodeio.h (PARAMS): Define.
79540         Use it to guard prototype.
79541
79542 2000-03-04  Jim Meyering  <meyering@lucent.com>
79543
79544         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79545         for lib/localcharset.c.
79546
79547 2000-03-04  Jim Meyering  <meyering@lucent.com>
79548
79549         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79550         installing into it.
79551         (uninstall-local): Uncomment this rule so `make distcheck' works
79552         once again.
79553
79554         * lib/unicodeio.c (<errno.h>): Include it.
79555         (errno): Declare if not defined.
79556
79557         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79558
79559         * lib/config.charset: New version, incorporating remarks from a linux
79560         i18n mailing list.  From Bruno Haible.
79561
79562 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79563
79564         * m4/codeset.m4: New file.
79565         * m4/iconv.m4: New file.
79566         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79567
79568 2000-03-03  Jim Meyering  <meyering@lucent.com>
79569
79570         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79571
79572 2000-03-02  Jim Meyering  <meyering@lucent.com>
79573
79574         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79575         the messages come out on separate lines.
79576
79577         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79578         rather than jm_CHECK_DECLARATIONS.
79579         * m4/decl.m4: Remove now-unused file.
79580
79581         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79582         geteuid.
79583
79584 2000-03-02  Jim Meyering  <meyering@lucent.com>
79585
79586         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79587
79588 2000-03-01  Jim Meyering  <meyering@lucent.com>
79589
79590         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79591         * lib/unicodeio.c: Likewise.
79592
79593 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79594
79595         * lib/config.charset: New file.
79596         * lib/localcharset.c: New file.
79597         * lib/unicodeio.h, lib/unicodeio.c: New files.
79598         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79599         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79600         (noinst_HEADERS): Add unicodeio.h.
79601         (all-local, install-exec-local, charset.alias): New targets.
79602
79603 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79604
79605         * lib/quotearg.c (ALERT_CHAR): New macro.
79606         (quotearg_buffer_restyled): Use it.
79607
79608 2000-02-27  Jim Meyering  <meyering@lucent.com>
79609
79610         * m4/check-decl.m4: Add getenv to the list.
79611
79612 2000-02-27  Jim Meyering  <meyering@lucent.com>
79613
79614         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79615         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79616
79617         * lib/backupfile.c: Guard inclusion of stdlib.h with
79618         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79619         Declare malloc if needed.
79620
79621         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79622         `#ifndef HAVE_DECL..'
79623         now that autoconf always defines the HAVE_DECL_ symbols.
79624         * lib/human.c: Likewise.
79625         * lib/same.c: Likewise.
79626         * lib/strtoumax.c: Likewise.
79627
79628         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79629         declaration check was not run.
79630         * lib/hash.c: Likewise.
79631         * lib/human.c: Likewise.
79632         * lib/same.c: Likewise.
79633         * lib/strtoumax.c: Likewise.
79634
79635         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79636         `.', then first look up the entire `.'-containing string as a login
79637         name.
79638
79639 2000-02-23  Jim Meyering  <meyering@lucent.com>
79640
79641         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79642         in place of my hack.
79643
79644 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79645
79646         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79647         (textint): New typedef.
79648         (parser_control): Member year changed from int to textint.
79649         All uses changed.
79650         (YYSTYPE): Removed; replaced by %union with int and textint members.
79651         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79652         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79653         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79654         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79655         (date, number, to_year): Use width of number in digits, not its value,
79656         to determine whether it's a 2-digit year, or a 2-digit time.
79657         (yylex): Store number of digits of numeric tokens.
79658         Reported by John Kendall.
79659
79660         (parser_control): Changed from struct parser_control to typedef (for
79661         consistency).  All uses changed.
79662
79663         (tID): Removed; not used.
79664         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79665
79666 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79667
79668         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79669         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79670
79671 2000-02-12  Jim Meyering  <meyering@lucent.com>
79672
79673         * lib/userspec.c (ISDIGIT): Define it.
79674         (isdigit): Remove definition.
79675         (is_number): Use ISDIGIT, not isdigit.
79676         <libintl.h>: Include.
79677         (_ and N_): Define.
79678         (parse_user_spec): Mark translatable strings.
79679
79680 2000-02-10  Jim Meyering  <meyering@lucent.com>
79681
79682         With these changes, nanosleep.[ch] are finally enough like the other
79683         lib/* replacement files to compile on a few more losing systems.
79684
79685         * lib/nanosleep.h: Don't include config.h.
79686         Remove prototype from declaration of nanosleep.
79687         (PARAMS): Remove now-unneeded definition.
79688         * lib/nanosleep.c: #undef nanosleep.
79689         (rpl_nanosleep): Rename from nanosleep.
79690
79691 2000-02-10  Jim Meyering  <meyering@lucent.com>
79692
79693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79694         gnu_nanosleep to rpl_nanosleep.
79695
79696 2000-02-09  Jim Meyering  <meyering@lucent.com>
79697
79698         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79699         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79700
79701 2000-02-08  Akim Demaille  <akim@epita.fr>
79702
79703         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79704         `[' and `]' and remove uses of `changequote'.
79705         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79706         (AC_SYS_LARGEFILE): Likewise.
79707         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79708         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79709         of changequote.
79710         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79711         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79712         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79713         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79714
79715 2000-02-05  Jim Meyering  <meyering@lucent.com>
79716
79717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79718         Remove explicit use of AC_HEADER_TIME.  It is required by
79719         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79720         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79721         in autoconf whereby the expansion of the latter ended up preceding
79722         the expansion of its prerequisite, AC_HEADER_TIME.
79723         Reported by Volker Borchert.
79724
79725 2000-02-03  Jim Meyering  <meyering@lucent.com>
79726
79727         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79728
79729 2000-02-03  Jim Meyering  <meyering@lucent.com>
79730
79731         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79732         rather than with `#if HAVE_UTMPNAME'.
79733
79734 2000-02-02  Jim Meyering  <meyering@lucent.com>
79735
79736         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79737         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79738         Reported by Eli Zaretskii.
79739
79740 2000-02-01  Jim Meyering  <meyering@lucent.com>
79741
79742         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79743
79744 2000-01-31  Jim Meyering  <meyering@lucent.com>
79745
79746         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79747         functions.  Add the time.h and sys/time.h headers along with the
79748         AC_REQUIRE'ment of AC_HEADER_TIME.
79749
79750 2000-01-31  Jim Meyering  <meyering@lucent.com>
79751
79752         * lib/nanosleep.h (nanosleep): Guard declaration with
79753         `#if ! HAVE_DECL_NANOSLEEP'.
79754         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79755         the declaration in that vendor's sys/timers.h.
79756         Reported by Christian Krackowizer.
79757
79758         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79759         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79760         (ISPRINT): Likewise.
79761         Reported by Tom Tromey.
79762
79763 2000-01-30  Jim Meyering  <meyering@lucent.com>
79764
79765         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79766
79767         * m4/prereq.m4 (utmp_includes): Define.
79768         Check for ut_user and ut_name members in both struct utmpx
79769         and struct utmp.
79770
79771 2000-01-30  Jim Meyering  <meyering@lucent.com>
79772
79773         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79774         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79775         header files where only utmpx.ut_user is declared.
79776
79777         * lib/readutmp.h (UT_USER): Define.
79778
79779 2000-01-29  Jim Meyering  <meyering@lucent.com>
79780
79781         * m4/lib-check.m4: New file containing library-related checks from
79782         fileutils and sh-utils (textutils had none).
79783
79784 2000-01-28  Jim Meyering  <meyering@lucent.com>
79785
79786         * m4/perl.m4: Change format of warning message to look more like that
79787         from the missing script.  Suggestion from François Pinard.
79788
79789 2000-01-25  Jim Meyering  <meyering@lucent.com>
79790
79791         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79792         well as time.h in the compile check.
79793         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79794         Fix typo in cross-compiling case: s/yes/no/.
79795
79796 2000-01-23  Jim Meyering  <meyering@lucent.com>
79797
79798         * m4/jm-macros.m4: Move df-related tests here from
79799         fileutils/configure.in
79800
79801         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79802         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79803
79804         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79805         s/space/ac_fsusage_space/.
79806         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79807
79808         * m4/ftruncate.m4: New file (derived from part of
79809         fileutils/configure.in).
79810         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79811         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79812
79813         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79814         AC_SUBST these here, rather than just in sh-util/configure.in, so
79815         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79816         all the same.
79817         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79818         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79819         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79820         (AC_SUBST(POW_LIBM)): Likewise.
79821         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79822
79823 2000-01-23  Jim Meyering  <meyering@lucent.com>
79824
79825         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79826         obstack.c.
79827
79828 2000-01-22  Jim Meyering  <meyering@lucent.com>
79829
79830         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79831
79832         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79833
79834         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79835         configure.in
79836         (AC_CHECK_HEADERS): Likewise for sh-utils.
79837         (AC_CHECK_HEADERS): Likewise for textutils.
79838         Merge the three lists of headers.
79839
79840         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79841         from fileutils' configure.in.
79842
79843         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79844         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79845         check-decl.m4.
79846
79847         * m4/check-decl.m4: Use #if rather than #ifdef.
79848         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79849         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79850         (_jm_DECL_HEADERS): Define new function.
79851         (jm_CHECK_DECLARATIONS): Require it.
79852
79853 2000-01-22  Jim Meyering  <meyering@lucent.com>
79854
79855         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79856         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79857         Required for some AIX systems.  Reported by Christian Krackowizer.
79858         [TESTING] (main): New function.
79859
79860         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79861         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79862         letters.
79863
79864         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79865         iswprint.
79866
79867         * lib/strverscmp.c (ISDIGIT): Define.
79868         (strverscmp): Use ISDIGIT, not isdigit.
79869
79870 2000-01-19  Jim Meyering  <meyering@lucent.com>
79871
79872         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79873         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79874         defines `struct timespec' in <sys/time.h>
79875
79876         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79877         Thanks to Akim for explaining.
79878
79879 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79880
79881         * lib/nanosleep.c (nanosleep):
79882         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79883         POSIX.1 doesn't require SA_INTERRUPT and some systems
79884         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79885         it's been part of POSIX.1 since day 1 (in 1988).
79886
79887 2000-01-17  Jim Meyering  <meyering@lucent.com>
79888
79889         * lib/interlock: Remove unused file.  Reported by François Pinard.
79890
79891 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79892
79893         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79894         alert, backslash, formfeed, and vertical tab unnecessarily in
79895         shell quoting style.
79896
79897 2000-01-16  Jim Meyering  <meyering@lucent.com>
79898
79899         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79900         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79901         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79902         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79903
79904 2000-01-16  Jim Meyering  <meyering@lucent.com>
79905
79906         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79907         because the latter didn't work.
79908
79909 2000-01-15  Jim Meyering  <meyering@lucent.com>
79910
79911         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79912         (AC_REPLACE_FUNCS): Add memcpy and memset.
79913         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79914         Add strpbrk.
79915         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79916
79917 2000-01-12  Jim Meyering  <meyering@lucent.com>
79918
79919         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79920         (jm_PREREQ): Use it.
79921         (jm_PREREQ_READUTMP): New macro.
79922         (jm_PREREQ): Use it.
79923
79924 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79925
79926         Quote multibyte characters correctly.
79927         * m4/c-bs-a.m4: New file.
79928         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79929         (jm_PREREQ): Use it.
79930
79931 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79932
79933         * m4/uintmax_t.m4: Port to autoconf 2.13.
79934
79935 2000-01-08  Jim Meyering  <meyering@ascend.com>
79936
79937         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79938         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79939
79940 2000-01-04  Jim Meyering  <meyering@ascend.com>
79941
79942         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79943         jm_STRUCT_DIRENT_D_TYPE.
79944         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79945         jm_STRUCT_DIRENT_D_INO.
79946         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79947         jm_STRUCT_UTIMBUF.
79948         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79949         renamings.
79950         * m4/utime.m4: Likewise.
79951
79952         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79953         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79954
79955 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79956
79957         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79958         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79959
79960 2000-01-02  Jim Meyering  <meyering@ascend.com>
79961
79962         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79963         remember if this is necessary.
79964
79965 1999-12-26  Jim Meyering  <meyering@ascend.com>
79966
79967         * m4/jm-macros.m4: Use it here.
79968         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79969
79970 1999-12-23  Jim Meyering  <meyering@ascend.com>
79971
79972         * m4/jm-macros.m4: Check for clock_gettime (moved from
79973         fileutils/configure.in)
79974         Check for gettimeofday.
79975
79976 1999-12-20  Jim Meyering  <meyering@ascend.com>
79977
79978         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79979         autoconf-2.14a-1999-12-20.
79980
79981 1999-12-19  Jim Meyering  <meyering@ascend.com>
79982
79983         * m4/lstat-slash.m4: New file.
79984         * m4/jm-macros.m4: Use the new macro:
79985         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79986
79987 1999-12-07  Jim Meyering  <meyering@ascend.com>
79988
79989         * m4/perl.m4: Require that File::Compare be available, too.
79990         Too many systems seem to lack it.
79991
79992         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79993         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79994
79995 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79996
79997         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79998         problem with the QNX 4.25 shell, which doesn't propagate exit
79999         status of failed commands inside shell assignments.
80000
80001 1999-11-17  Jim Meyering  <meyering@ascend.com>
80002
80003         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80004
80005 1999-11-07  Jim Meyering  <meyering@ascend.com>
80006
80007         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80008
80009 1999-11-06  Jim Meyering  <meyering@ascend.com>
80010
80011         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80012         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80013
80014 1999-11-05  Jim Meyering  <meyering@ascend.com>
80015
80016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80017         configure.in of textutils, fileutils, and sh-utils into this one
80018         (shared between those packages) file.
80019         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80020         AC_STRUCT_ST_BLKSIZE.
80021
80022 1999-11-03  Jim Meyering  <meyering@ascend.com>
80023
80024         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80025         of AC_CHECK_TYPE checks includes unistd.h.
80026         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80027         Suggestion from Akim Demaille.
80028
80029 1999-10-30  Jim Meyering  <meyering@ascend.com>
80030
80031         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80032         m4-quoted string.
80033         * m4/ls-mntd-fs.m4: Likewise.
80034         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80035         * m4/jm-winsz1.m4: Likewise.
80036
80037         * m4/const.m4: Remove file, since the fix made it into the experimental
80038         version of autoconf.
80039         * m4/mktime.m4: Likewise.
80040
80041         * m4/check-type.m4: Remove file, now that the latest version of
80042         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80043
80044         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80045         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80046         AC_CHECK_TYPE.
80047
80048 1999-10-04  Jim Meyering  <meyering@ascend.com>
80049
80050         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80051
80052 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80053
80054         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80055         2.95.1 bug with HP-UX 10.20.
80056
80057 1999-09-17  Jim Meyering  <meyering@ascend.com>
80058
80059         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80060         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80061         due to missing strdup (against sh-utils-2.0).
80062
80063 1999-08-29  Jim Meyering  <meyering@ascend.com>
80064
80065         * m4/jm-macros.m4: Require jm_BISON.
80066         * m4/bison.m4: New file.
80067
80068 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80069
80070         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80071         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80072
80073 1999-08-05  Jim Meyering  <meyering@ascend.com>
80074
80075         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80076         to avoid conflicts with `conftest' on 8+3 filesystems.
80077         Suggestion from Eli Zaretskii.
80078
80079 1999-08-04  Jim Meyering  <meyering@ascend.com>
80080
80081         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80082         fileutils and sh-utils (textutils's getline test was inadequate).
80083         (AM_FUNC_GETLINE): Run this test.
80084         (AC_CHECK_FUNCS): Check for getdelim.
80085         Reported by Bob Proulx.
80086
80087 1999-08-02  Jim Meyering  <meyering@ascend.com>
80088
80089         * m4/jm-macros.m4: Add a comment.
80090
80091 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80092
80093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80094         <inttypes.h> defines strtoumax as a macro (and not as a
80095         function).
80096
80097 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80098
80099         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80100         that we can shift, multiply and divide unsigned long long
80101         values; Ultrix cc can't do it.
80102
80103 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80104
80105         * m4/mktime.m4: New file, which is a preview of what should appear
80106         in the next public autoconf release.
80107
80108 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80109
80110         * m4/lfs.m4: Remove this file.
80111         * m4/largefile.m4: New file.  It contains the old contents of
80112         lfs.m4, except that all names with prefix AC_LFS have been
80113         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80114         compatible with future autoconf versions.  Also, some minor m4
80115         quoting problems have been fixed.
80116
80117 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80118
80119         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80120         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80121         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80122         and simplify the shell code.
80123
80124 1999-08-01  Jim Meyering  <meyering@ascend.com>
80125
80126         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80127         m4.
80128
80129 1999-07-20  Jim Meyering  <meyering@ascend.com>
80130
80131         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80132
80133 1999-07-15  Jim Meyering  <meyering@ascend.com>
80134
80135         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80136
80137 1999-05-22  Jim Meyering  <meyering@ascend.com>
80138
80139         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80140
80141 1999-05-20  Jim Meyering  <meyering@ascend.com>
80142
80143         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80144         Add a colon after each `then' in case $4 is empty.
80145
80146 1999-05-16  Jim Meyering  <meyering@ascend.com>
80147
80148         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80149
80150 1999-05-10  Jim Meyering  <meyering@ascend.com>
80151
80152         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80153
80154         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80155         AC_FUNC_MKTIME.
80156
80157 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80158
80159         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80160
80161 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80162
80163         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80164         not CPPFLAGS, so that linking works correctly in IRIX.
80165
80166 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80167
80168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80169
80170 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80171
80172         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80173         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80175         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80176         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80177
80178         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80179
80180 1999-04-20  Jim Meyering  <meyering@ascend.com>
80181
80182         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80183         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80184         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80185
80186 1999-04-18  Jim Meyering  <meyering@ascend.com>
80187
80188         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80189         * m4/jm-macros.m4: Use it.
80190
80191 1999-04-06  Jim Meyering  <meyering@ascend.com>
80192
80193         * m4/strftime.m4: Remove test for %f.
80194
80195 1999-03-29  Jim Meyering  <meyering@ascend.com>
80196
80197         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80198         superset of the AC_TYPE_* checks in the textutils, fileutils,
80199         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80200         AC_TYPE_PID_T.
80201
80202 1999-03-28  Jim Meyering  <meyering@ascend.com>
80203
80204         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80205         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80206         replaced e.g., in the *.sh files of the sh-utils.
80207
80208 1999-03-20  Jim Meyering  <meyering@ascend.com>
80209
80210         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80211         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80212         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80213
80214 1999-03-19  Jim Meyering  <meyering@ascend.com>
80215
80216         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80217
80218 1999-03-12  Jim Meyering  <meyering@ascend.com>
80219
80220         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80221
80222 1999-03-07  Jim Meyering  <meyering@ascend.com>
80223
80224         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80225         declared.
80226
80227 1999-02-17  Jim Meyering  <meyering@ascend.com>
80228
80229         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80230         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80231
80232 1999-02-07  Jim Meyering  <meyering@ascend.com>
80233
80234         * m4/group-member.m4: New file -- extracted from sh-utils'
80235         configure.in.
80236
80237         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80238         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80239
80240 1999-02-06  Jim Meyering  <meyering@ascend.com>
80241
80242         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80243         * m4/fnmatch.m4: Likewise.
80244         * m4/getgroups.m4: Likewise.
80245         * m4/lstat.m4: Likewise.
80246         * m4/malloc.m4: Likewise.
80247         * m4/putenv.m4: Likewise.
80248         * m4/realloc.m4: Likewise.
80249         * m4/regex.m4: Likewise.
80250         * m4/stat.m4: Likewise.
80251         * m4/strftime.m4: Likewise.
80252         Suggestion from Alain Magloire.
80253
80254         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80255         * m4/fnmatch.m4: Likewise.
80256         * m4/getgroups.m4: Likewise.
80257         * m4/getline.m4: Likewise.
80258         * m4/lstat.m4: Likewise.
80259         * m4/malloc.m4: Likewise.
80260         * m4/memcmp.m4: Likewise.
80261         * m4/putenv.m4: Likewise.
80262         * m4/realloc.m4: Likewise.
80263         * m4/regex.m4: Likewise.
80264         * m4/stat.m4: Likewise.
80265         * m4/strftime.m4: Likewise.
80266         Suggestion from Alain Magloire.
80267
80268         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80269         an argument.
80270
80271         * m4/regex.m4: Add a run-time Test for proper operation of
80272         re_compile_pattern.
80273
80274 1999-01-31  Jim Meyering  <meyering@ascend.com>
80275
80276         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80277
80278 1999-01-30  Jim Meyering  <meyering@ascend.com>
80279
80280         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80281
80282         * m4/jm-mktime.m4: Make this a wrapper around the official
80283         AM_FUNC_MKTIME rather than my private copy, now that the official one
80284         is up to date.
80285         * m4/mktime.m4: Remove file.
80286
80287         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80288         * m4/uptime.m4: Likewise.
80289         * m4/uintmax_t.m4: Likewise.
80290
80291 1999-01-28  Jim Meyering  <meyering@ascend.com>
80292
80293         * m4/jm-macros.m4: Use jm_AFS.
80294         * m4/afs.m4: New file (from fileutils' configure.in).
80295
80296         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80297         * m4/chown.m4: Likewise.
80298         * m4/d-ino.m4: Likewise.
80299         * m4/d-type.m4: Likewise.
80300         * m4/fnmatch.m4: Likewise.
80301         * m4/getgroups.m4: Likewise.
80302         * m4/gettext.m4: Likewise.
80303         * m4/jm-mktime.m4: Likewise.
80304         * m4/jm-winsz2.m4: Likewise.
80305         * m4/lcmessage.m4: Likewise.
80306         * m4/ls-mntd-fs.m4: Likewise.
80307         * m4/malloc.m4: Likewise.
80308         * m4/memcmp.m4: Likewise.
80309         * m4/putenv.m4: Likewise.
80310         * m4/realloc.m4: Likewise.
80311         * m4/st_mtim.m4: Likewise.
80312         * m4/strftime.m4: Likewise.
80313
80314 1999-01-16  Jim Meyering  <meyering@ascend.com>
80315
80316         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80317         (ARGMATCH_DIE_DECL): Define.
80318
80319 1999-01-12  Jim Meyering  <meyering@ascend.com>
80320
80321         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80322         Reported by Lars Hecking.
80323
80324 1999-01-10  Jim Meyering  <meyering@ascend.com>
80325
80326         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80327         gross kludge.
80328         * m4/inttypes_h.m4: Likewise.
80329         * m4/lstat.m4: Likewise.
80330         * m4/malloc.m4: Likewise.
80331         * m4/readdir.m4: Likewise.
80332         * m4/realloc.m4: Likewise.
80333         * m4/st_dm_mode.m4: Likewise.
80334         * m4/stat.m4: Likewise.
80335         * m4/utimbuf.m4: Likewise.
80336         * m4/utimes.m4: Likewise.
80337
80338         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80339         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80340         comments in config.h.in are meaningful.
80341
80342         * m4/jm-macros.m4: Require autoconf-2.13 here.
80343
80344         * m4/regex.m4: By default, don't use the included regex.c on systems
80345         with glibc 2.  Suggestion from Uli Drepper.
80346
80347 1999-01-02  Jim Meyering  <meyering@ascend.com>
80348
80349         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80350
80351 1998-12-18  Jim Meyering  <meyering@ascend.com>
80352
80353         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80354         Based on a suggestion from Lars Hecking.
80355
80356 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80357
80358         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80359
80360 1998-11-16  Jim Meyering  <meyering@ascend.com>
80361
80362         * m4/lfs.m4: Double-quote the `uname...` expression.
80363
80364 1998-11-14  Jim Meyering  <meyering@ascend.com>
80365
80366         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80367         * m4/stat.m4: Likewise.
80368
80369 1998-11-03  Jim Meyering  <meyering@ascend.com>
80370
80371         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80372         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80373
80374 1998-10-18  Jim Meyering  <meyering@ascend.com>
80375
80376         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80377
80378 1998-10-17  Jim Meyering  <meyering@ascend.com>
80379
80380         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80381         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80382         calls for those previously hard-coded headers.  Instead, take a new
80383         parameter.
80384         (jm_CHECK_DECLARATIONS): Reflect interface change.
80385         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80386         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80387
80388         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80389
80390 1998-10-14  Jim Meyering  <meyering@ascend.com>
80391
80392         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80393         instead of "TZ=America/Vancouver".  From Paul Eggert.
80394
80395 1998-10-11  Jim Meyering  <meyering@ascend.com>
80396
80397         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80398         This adds a test for a recently added compatibility fix for mktime.c.
80399         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80400
80401 1998-09-27  Jim Meyering  <meyering@ascend.com>
80402
80403         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80404
80405         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80406         ../configure.in, including a change from Gordon Matzigkeit to allow
80407         cross-compiling for the Hurd.
80408
80409         * m4/glibc.m4: New file/macro to test for the GNU C Library
80410         versions 1 and 2.  From Gordon Matzigkeit.
80411         Indent.
80412
80413 1998-09-21  Jim Meyering  <meyering@ascend.com>
80414
80415         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80416
80417 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80418
80419         Port nanosecond-resolution times to UnixWare 2.1.2 and
80420         pedantic Solaris 2.6.
80421
80422         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80423         AC_STRUCT_ST_MTIM.
80424         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80425         Generate name of ns member, instead of just 1 or undef.
80426         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80427
80428 1998-08-15  Jim Meyering  <meyering@ascend.com>
80429
80430         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80431         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80432         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80433         instead of jm_TYPE_SSIZE_T.
80434
80435 1998-08-12  Jim Meyering  <meyering@ascend.com>
80436
80437         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80438
80439 1998-08-02  Jim Meyering  <meyering@ascend.com>
80440
80441         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80442         in acconfig.h manually.
80443
80444 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80445
80446         * m4/st_mtim.m4: New file.
80447
80448 1998-07-28  Jim Meyering  <meyering@ascend.com>
80449
80450         * m4/utimes.m4: Undef stat.
80451
80452 1998-07-25  Jim Meyering  <meyering@ascend.com>
80453
80454         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80455         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80456
80457 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80458
80459         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80460         uid and gid actually remain unchanged.
80461
80462 1998-07-07  Jim Meyering  <meyering@ascend.com>
80463
80464         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80465
80466 1998-07-04  Jim Meyering  <meyering@ascend.com>
80467
80468         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80469         to prove that this macro can be used in packages without regex.c.
80470
80471 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80472
80473         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80474         is to be used.
80475
80476 1998-07-03  Jim Meyering  <meyering@ascend.com>
80477
80478         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80479
80480         * m4/gettext.m4: New file -- from gettext-0.10.35.
80481         * m4/lcmessage.m4: Likewise.
80482         * m4/progtest.m4: Likewise.
80483
80484         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80485         * m4/jm-macros.m4: Require the new macro.
80486
80487 1998-06-29  Jim Meyering  <meyering@ascend.com>
80488
80489         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80490         for the definition of NGROUPS (used in a system header included
80491         by sys/mount.h).
80492
80493 1998-06-28  Jim Meyering  <meyering@ascend.com>
80494
80495         * m4/ls-mntd-fs.m4: New file.
80496         * m4/fstypename.m4: New file.
80497
80498         * m4/jm-macros.m4: Require the new macro.
80499         * m4/jm-glibc-io.m4: New file.
80500
80501 1998-05-19  Jim Meyering  <meyering@ascend.com>
80502
80503         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80504         * m4/lchown.m4: New file.
80505
80506         * m4/Makefile.am.in: New file.
80507         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80508
80509 1998-05-14  Jim Meyering  <meyering@ascend.com>
80510
80511         * m4/Makefile.am (EXTRA_DIST): Add them.
80512         * m4/jm-macros.m4: New file.
80513         * m4/utimbuf.m4: New file.
80514
80515 1998-05-12  Jim Meyering  <meyering@ascend.com>
80516
80517         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80518
80519 1998-05-11  Jim Meyering  <meyering@ascend.com>
80520
80521         * m4/isc-posix.m4: New file.
80522
80523 1998-05-10  Jim Meyering  <meyering@ascend.com>
80524
80525         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80526
80527 1998-05-09  Jim Meyering  <meyering@ascend.com>
80528
80529         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80530         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80531         with automake.
80532
80533         * m4/ssize_t.m4: New file.
80534         * m4/mktime.m4: Remove file -- the new automake has this now.
80535
80536 1998-04-26  Jim Meyering  <meyering@ascend.com>
80537
80538         * m4/assert.m4: New file.
80539         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80540
80541 1998-04-05  Jim Meyering  <meyering@ascend.com>
80542
80543         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80544         (jm_PREREQ): Use it here.
80545
80546 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80547
80548         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80549         in acconfig.h.
80550
80551 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80552
80553         * m4/prereq.m4: New file.
80554         * m4/error.m4: New file.
80555         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80556
80557 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80558
80559         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80560         cache-check for the same variable -- that defeated the purpose of
80561         the test; the test program was never run.  This was a problem only
80562         on systems with losing getline functions -- HP-UX 10.20 is one.
80563         Reported by Bjorn Helgaas.
80564
80565 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80566
80567         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80568
80569 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80570
80571         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80572
80573         * m4/const.m4: New file.  Use an initializer in this declaration
80574         typedef int charset[2]; const charset x;
80575         Reported by Bob Glickstein.
80576
80577 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80578
80579         * m4/chown.m4: Fix reversed types on -1 args to chown.
80580         From Kaveh Ghazi.
80581
80582 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80583
80584         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80585         Add lseek and memchr.
80586
80587         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80588         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80589         have a 20-character limit on names.
80590
80591 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80592
80593         * m4/inttypes_h.m4: New file.
80594         * m4/uintmax_t.m4: New file.
80595         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80596
80597
80598         -----
80599
80600         Local Variables:
80601         coding: utf-8
80602         End:
80603
80604         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80605
80606         Copying and distribution of this file, with or without
80607         modification, are permitted provided the copyright notice
80608         and this notice are preserved.