016a558690b289c59949ab2e8c479c97f23127ef
[gnulib.git] / ChangeLog
1 2011-06-09  Bruno Haible  <bruno@clisp.org>
2
3         spawn-pipe tests: Avoid test failure on HP-UX 11.
4         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5         is closed.
6
7 2011-06-09  Bruno Haible  <bruno@clisp.org>
8
9         acl tests: Fix compilation error on HP-UX 11.
10         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11
12 2011-06-09  Bruno Haible  <bruno@clisp.org>
13
14         rmdir: Avoid test failure on HP-UX 10.20.
15         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16         EEXIST.
17
18 2011-06-08  Eric Blake  <eblake@redhat.com>
19
20         perror: fix test on mingw
21         * modules/perror-tests (Depends-on): Add dup2.
22
23         strerror_r-posix: fix on MacOS
24         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
25         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
26         logic bug.
27         * lib/strerror_r.c (strerror_r): Fix the bug.
28         * lib/strerror.c (strerror): Likewise.
29         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
30         problem.
31         * doc/posix-functions/strerror.texi (strerror): Likewise.
32         * doc/posix-functions/perror.texi (perror): Likewise.
33         * tests/test-strerror.c (main): Enhance test.
34         * tests/test-strerror_r.c (main): Likewise.
35
36 2011-06-08  Bruno Haible  <bruno@clisp.org>
37
38         gnulib-tool: Better isolation between different gnulib-tool invocations.
39         * gnulib-tool: New option --witness-c-macro.
40         (witness_c_macro): New variable.
41         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
42         AM_CPPFLAGS define it as a C macro.
43         (func_emit_tests_Makefile_am): Likewise.
44         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
45         read it from there.
46         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
47         m4_define, not AC_DEFUN.
48         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
49         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
50         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
51         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
52         s|...|...|, to substitute the values of the GNULIB_* module indicator
53         variables.
54         * modules/dirent (Makefile.am): Likewise.
55         * modules/fcntl-h (Makefile.am): Likewise.
56         * modules/iconv-h (Makefile.am): Likewise.
57         * modules/langinfo (Makefile.am): Likewise.
58         * modules/locale (Makefile.am): Likewise.
59         * modules/math (Makefile.am): Likewise.
60         * modules/netdb (Makefile.am): Likewise.
61         * modules/poll-h (Makefile.am): Likewise.
62         * modules/pty (Makefile.am): Likewise.
63         * modules/search (Makefile.am): Likewise.
64         * modules/signal (Makefile.am): Likewise.
65         * modules/spawn (Makefile.am): Likewise.
66         * modules/stdio (Makefile.am): Likewise.
67         * modules/stdlib (Makefile.am): Likewise.
68         * modules/string (Makefile.am): Likewise.
69         * modules/sys_ioctl (Makefile.am): Likewise.
70         * modules/sys_select (Makefile.am): Likewise.
71         * modules/sys_socket (Makefile.am): Likewise.
72         * modules/sys_stat (Makefile.am): Likewise.
73         * modules/sys_times (Makefile.am): Likewise.
74         * modules/sys_utsname (Makefile.am): Likewise.
75         * modules/sys_wait (Makefile.am): Likewise.
76         * modules/termios (Makefile.am): Likewise.
77         * modules/time (Makefile.am): Likewise.
78         * modules/unistd (Makefile.am): Likewise.
79         * modules/wchar (Makefile.am): Likewise.
80
81 2011-06-08  Eric Blake  <eblake@redhat.com>
82
83         strerror: simplify replacement
84         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
85         * modules/strerror (configure.ac): No prereqs needed here...
86         * modules/strerror-override (configure.ac): ...but this needs it.
87         (Files): Add file for needed prereq macro.
88
89 2011-06-08  Bruno Haible  <bruno@clisp.org>
90
91         strerror_r-posix: Tweaks.
92         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
93         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
94         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
95         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
96         (gl_FUNC_STRERROR_R): ... to here.
97         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
98
99 2011-06-07  Eric Blake  <eblake@redhat.com>
100
101         perror: document fixed bugs
102         * doc/posix-functions/perror.texi (perror): Document recent
103         patches.
104
105 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
106
107         stat-time: get_stat_birthtime failure is better-defined
108         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
109         return a timestamp whose tv_sec and tv_nsec values are both -1.
110         Previously, the spec said only that the tv_nsec value was negative.
111         This upward-compatible change simplifies GNU tar a bit.
112
113 2011-06-07  Eric Blake  <eblake@redhat.com>
114
115         strerror_r-posix: work around cygwin 1.7.9
116         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
117         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
118         bug without replacing strerror_r.
119         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
120         strerror_r is buggy, but without requiring strerror_r compilation.
121         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
122
123         test-perror: relax test to ignore cygwin bug
124         * tests/test-perror2.c (main): Relax test on requiring detection
125         of stream errors, and use unbuffered stream.
126         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
127         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
128         * doc/posix-functions/fputc.texi (fputc): Likewise.
129         * doc/posix-functions/fputs.texi (fputs): Likewise.
130         * doc/posix-functions/fputws.texi (fputws): Likewise.
131         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
132         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
133         * doc/posix-functions/getopt.texi (getopt): Likewise.
134         * doc/posix-functions/perror.texi (perror): Likewise.
135         * doc/posix-functions/printf.texi (printf): Likewise.
136         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
137         * doc/posix-functions/psignal.texi (psignal): Likewise.
138         * doc/posix-functions/putc.texi (putc): Likewise.
139         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
140         Likewise.
141         * doc/posix-functions/putchar.texi (putchar): Likewise.
142         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
143         Likewise.
144         * doc/posix-functions/puts.texi (puts): Likewise.
145         * doc/posix-functions/putwc.texi (putwc): Likewise.
146         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
147         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
148         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
149         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
150         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
151         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
152         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
153         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
154
155 2011-05-22  Bruno Haible  <bruno@clisp.org>
156
157         strerror: Move AC_LIBOBJ invocations to module description.
158         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
159         gl_PREREQ_STRERROR invocations from here...
160         * modules/strerror (configure.ac): ... to here.
161
162 2011-05-21  Bruno Haible  <bruno@clisp.org>
163
164         perror: Use common idiom.
165         * modules/perror (configure.ac): Reorder statements.
166
167 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
168
169         tests: fix usage message in 'mktempd_'
170         * tests/init.sh (mktempd_): In the usage message, use literal
171         'mktempd_', not '$ME' (which is even undefined), as the name of
172         the subroutine.
173
174 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
175
176         tests init: new function 'fatal_', for hard errors
177         Before this patch, the only way offered by tests/init.sh to
178         properly signal a hard error was the `framework_failure_'
179         function.  But the error message issued by that function,
180         as its name would suggest, refers to a set-up failure in the
181         testsuite, while hard errors can obviously also be due to
182         other reasons.  The best way to fix this inconsistency is to
183         introduce a new function with a more general error message.
184         * tests/init.sh (fatal_): New function.
185
186 2011-06-06  Eric Blake  <eblake@redhat.com>
187
188         canonicalize-lgpl: use common idiom
189         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
190         over newer POSIX -Rf.
191         Reported by Bruno Haible.
192
193         canonicalize-lgpl: work around AIX realpath bug
194         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
195         * doc/posix-functions/realpath.texi (realpath): Document it.
196         Reported by Bruno Haible.
197
198         strerror: work around FreeBSD bug
199         * lib/strerror.c (strerror): Special case 0.
200         Reported by Bruno Haible.
201
202         strerror-override: avoid bloating errno module
203         * modules/errno (Files, configure.ac): Move replacement strings...
204         * modules/strerror-override: ...to new module.
205         * modules/strerror (Depends-on): Add strerror-override.
206         * modules/strerror_r-posix (Depends-on): Likewise.
207         * MODULES.html.sh: Document new module.
208         Reported by Bruno Haible.
209
210 2011-06-06  Bruno Haible  <bruno@clisp.org>
211
212         spawn-pipe tests: Rename program.
213         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
214         * tests/test-spawn-pipe-child.c: Update comment.
215         * tests/test-spawn-pipe.sh: Update.
216         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
217
218         spawn-pipe tests: Link the child program only against libc.
219         * tests/test-spawn-pipe-child.c: New file, extracted from
220         tests/test-spawn-pipe.c.
221         (main): Expect only one argument.
222         (is_open): New function, copied from tests/test-pipe.c.
223         * tests/test-spawn-pipe.c: Don't include <errno.h>.
224         (child_main): Remove function.
225         (test_pipe): Pass only one argument to the child program.
226         (main): Remove child process code. Expect the child program's name as
227         first argument.
228         * tests/test-spawn-pipe.sh: Pass the child program's name as first
229         argument.
230         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
231         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
232         test-spawn-pipe-child against no libraries.
233
234 2011-06-06  Bruno Haible  <bruno@clisp.org>
235
236         careadlinkat: Avoid mismatch between ssize_t and int.
237         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
238         * lib/careadlinkat.c (careadlinkatcwd): Define always.
239
240 2011-06-06  Jim Meyering  <meyering@redhat.com>
241
242         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
243         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
244         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
245
246 2011-06-05  Bruno Haible  <bruno@clisp.org>
247
248         ansi-c++-opt: Interoperability with libtool.
249         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
250         set the variable to "no", not to ":".
251         * NEWS: Mention the change.
252
253 2011-06-05  Bruno Haible  <bruno@clisp.org>
254
255         acl: Fix test failure on AIX 7.
256         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
257         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
258
259 2011-06-05  Bruno Haible  <bruno@clisp.org>
260
261         pipe-filter-ii: Fix test failure on AIX and IRIX.
262         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
263         with EAGAIN, retry with a smaller buffer size.
264
265 2011-06-05  Bruno Haible  <bruno@clisp.org>
266
267         localename: Fix link dependencies.
268         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
269         * modules/localename-tests (Makefile.am): Link test-localename with
270         $(LIBTHREAD).
271
272 2011-06-05  Bruno Haible  <bruno@clisp.org>
273
274         error: Avoid gcc warning.
275         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
276
277 2011-06-05  Bruno Haible  <bruno@clisp.org>
278
279         unsetenv: Avoid gcc warning.
280         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
281
282 2011-06-05  Bruno Haible  <bruno@clisp.org>
283
284         setenv: Avoid gcc warning.
285         * lib/setenv.c (setenv): Provide declaration if system lacks it.
286
287 2011-06-05  Bruno Haible  <bruno@clisp.org>
288
289         sys_select: Ensure memset is declared also on AIX 7.
290         * lib/sys_select.in.h: Include <string.h> also on AIX.
291         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
292         self-contained also on AIX 7.1.
293
294 2011-06-04  Jim Meyering  <meyering@redhat.com>
295
296         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
297         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
298         function name, "error".
299         (_gl_translatable_diag_func_re): New configurable variable.
300
301 2011-06-04  Bruno Haible  <bruno@clisp.org>
302
303         getopt: Avoid gcc warning.
304         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
305
306 2011-06-04  Bruno Haible  <bruno@clisp.org>
307
308         strerror_r: Fix comments.
309         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
310         commit.
311
312 2011-06-04  Bruno Haible  <bruno@clisp.org>
313
314         perror: Fix compilation error.
315         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
316         Undefine fprintf, not sprintf.
317         * modules/perror (Depends-on): Remove intprops, verify.
318
319 2011-06-04  Bruno Haible  <bruno@clisp.org>
320
321         setlocale: Enable replacement on Cygwin 1.5.
322         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
323         Cygwin 1.5.x.
324         * doc/posix-functions/setlocale.texi: Mention that the problem with the
325         LC_CTYPE category also exists on Cygwin 1.5.x.
326
327 2011-06-04  Bruno Haible  <bruno@clisp.org>
328
329         strerror-override: Don't disable symbol renamings.
330         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
331         * lib/strerror-override.c: Include config.h.
332         (strerror_override): Don't undefine.
333
334 2011-06-03  Bruno Haible  <bruno@clisp.org>
335
336         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
337         * lib/localename.h: Update copyright header.
338         * lib/localename.c: Likewise.
339         * lib/relocatable.h: Likewise.
340         * lib/relocatable.c: Likewise.
341
342 2011-06-02  Bruno Haible  <bruno@clisp.org>
343
344         doc: Fix a module name.
345         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
346
347 2011-06-02  Bruno Haible  <bruno@clisp.org>
348
349         pipe2: Remove dependency on 'nonblocking' module.
350         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
351         O_NONBLOCK is defined by gnulib.
352         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
353         is zero.
354         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
355         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
356         defined by gnulib.
357         (get_nonblocking_flag): New function.
358         (main): Test O_NONBLOCK flag only if it is nonzero.
359         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
360
361 2011-06-03  Jim Meyering  <meyering@redhat.com>
362
363         maint: three new prohibit-header-without-use rules
364         Prohibit use of cloexec.h, posixver.h, same.h without use.
365         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
366         (sc_prohibit_posixver_without_use): Likewise.
367         (sc_prohibit_same_without_use): Likewise.
368
369 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
370
371         allocator: 'die' routine is now given requested size
372         * lib/allocator.h (struct allocator.die): New size arg.
373         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
374         If the actual problem is an ssize_t limitation, not a size_t or
375         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
376
377 2011-06-01  Eric Blake  <eblake@redhat.com>
378
379         strerror: drop strerror_r dependency
380         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
381         * lib/strerror-override.c (strerror_override): ...to new file.
382         * lib/strerror-override.h: Add prototype.
383         * lib/strerror-impl.h: Delete.
384         * lib/strerror.c (strerror): New implementation.
385         * modules/errno (Files): Add new files.
386         (configure.ac): Compile new file as appropriate.
387         * modules/strerror (Files): Drop unused file.
388         (Depends-on): Drop strerror_r-posix.
389         * MODULES.html.sh: Document strerror_r-posix.
390         Requested by Sam Steingold.
391
392         perror: call strerror_r directly
393         * modules/perror (Files): Drop strerror-impl.h.
394         * lib/perror.c (perror): Use our own stack buffer, rather than
395         calling a wrapper that uses static storage.
396         * doc/posix-functions/perror.texi (perror): Document a limitation
397         of our replacement.
398
399         strerror_r: fix includes for FreeBSD
400         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
401         since we use abort on some platforms.
402         Reported by Matthias Bolte.
403
404 2011-05-31  Bruno Haible  <bruno@clisp.org>
405
406         Fix link errors in tests: openat-die uses gettext-h.
407         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
408         against $(LIBINTL).
409         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
410         against $(LIBINTL).
411         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
412         $(LIBINTL).
413         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
414         against $(LIBINTL).
415         * modules/linkat-tests (Makefile.am): Link test-linkat against
416         $(LIBINTL).
417         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
418         $(LIBINTL).
419         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
420         against $(LIBINTL).
421         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
422         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
423         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
424         $(LIBINTL).
425         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
426         $(LIBINTL).
427         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
428         $(LIBINTL).
429         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
430
431 2011-05-31  Bruno Haible  <bruno@clisp.org>
432
433         Fix link errors in tests: wait-process uses gettext-h.
434         * modules/nonblocking-pipe-tests (Makefile.am): Set
435         test_nonblocking_pipe_main_LDADD.
436         * modules/nonblocking-socket-tests (Makefile.am): Link
437         test-nonblocking-socket-main against $(LIBINTL).
438         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
439
440 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
441
442         assert-h: work around 'verify' incompatibility
443         * lib/verify.h: Use @...@ directives, not ifdef.
444         * modules/assert-h (assert.h): Implement the directives.
445         (assert.h): Substitute the symbol-prefix more consistently.
446
447 2011-05-29  Jim Meyering  <meyering@redhat.com>
448
449         trim: remove three superfluous assignments
450         * lib/trim.c (trim2): Remove three superfluous assignments
451         and correct brace positioning.
452
453 2011-05-29  Bruno Haible  <bruno@clisp.org>
454
455         wctype-h: Avoid namespace pollution on Solaris 2.6.
456         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
457         identifiers.
458         * doc/posix-headers/wctype.texi: Mention the problem.
459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
460
461 2011-05-28  Jim Meyering  <meyering@redhat.com>
462
463         parse-datetime.y: accommodate -Wstrict-overflow
464         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
465         placate -Wstrict-overflow.
466
467         trim: avoid a warning from -O2 -Wstrict-overflow
468         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
469
470 2011-05-29  Bruno Haible  <bruno@clisp.org>
471
472         gnulib-tool: Fix bug in yesterday's commit.
473         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
474         twice.
475
476 2011-05-29  Bruno Haible  <bruno@clisp.org>
477
478         Allow multiple gnulib generated include files to be combined.
479         * gnulib-tool (func_compute_include_guard_prefix): New function.
480         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
481         ${gl_include_guard_prefix} references.
482         (func_import, func_create_testdir): Invoke
483         func_compute_include_guard_prefix.
484         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
485         * lib/ctype.in.h: Likewise.
486         * lib/dirent.in.h: Likewise.
487         * lib/errno.in.h: Likewise.
488         * lib/fcntl.in.h: Likewise.
489         * lib/float.in.h: Likewise.
490         * lib/getopt.in.h: Likewise.
491         * lib/iconv.in.h: Likewise.
492         * lib/langinfo.in.h: Likewise.
493         * lib/locale.in.h: Likewise.
494         * lib/math.in.h: Likewise.
495         * lib/netdb.in.h: Likewise.
496         * lib/netinet_in.in.h: Likewise.
497         * lib/poll.in.h: Likewise.
498         * lib/pthread.in.h: Likewise.
499         * lib/pty.in.h: Likewise.
500         * lib/sched.in.h: Likewise.
501         * lib/se-selinux.in.h: Likewise.
502         * lib/search.in.h: Likewise.
503         * lib/signal.in.h: Likewise.
504         * lib/spawn.in.h: Likewise.
505         * lib/stdarg.in.h: Likewise.
506         * lib/stddef.in.h: Likewise.
507         * lib/stdint.in.h: Likewise.
508         * lib/stdio.in.h: Likewise.
509         * lib/stdlib.in.h: Likewise.
510         * lib/string.in.h: Likewise.
511         * lib/strings.in.h: Likewise.
512         * lib/sys_file.in.h: Likewise.
513         * lib/sys_ioctl.in.h: Likewise.
514         * lib/sys_select.in.h: Likewise.
515         * lib/sys_socket.in.h: Likewise.
516         * lib/sys_stat.in.h: Likewise.
517         * lib/sys_time.in.h: Likewise.
518         * lib/sys_times.in.h: Likewise.
519         * lib/sys_uio.in.h: Likewise.
520         * lib/sys_utsname.in.h: Likewise.
521         * lib/sys_wait.in.h: Likewise.
522         * lib/sysexits.in.h: Likewise.
523         * lib/termios.in.h: Likewise.
524         * lib/time.in.h: Likewise.
525         * lib/unistd.in.h: Likewise.
526         * lib/wchar.in.h: Likewise.
527         * lib/wctype.in.h: Likewise.
528         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
529         * modules/ctype (Makefile.am): Likewise.
530         * modules/dirent (Makefile.am): Likewise.
531         * modules/errno (Makefile.am): Likewise.
532         * modules/fcntl-h (Makefile.am): Likewise.
533         * modules/float (Makefile.am): Likewise.
534         * modules/getopt-posix (Makefile.am): Likewise.
535         * modules/iconv-h (Makefile.am): Likewise.
536         * modules/langinfo (Makefile.am): Likewise.
537         * modules/locale (Makefile.am): Likewise.
538         * modules/math (Makefile.am): Likewise.
539         * modules/netdb (Makefile.am): Likewise.
540         * modules/netinet_in (Makefile.am): Likewise.
541         * modules/poll-h (Makefile.am): Likewise.
542         * modules/pthread (Makefile.am): Likewise.
543         * modules/pty (Makefile.am): Likewise.
544         * modules/sched (Makefile.am): Likewise.
545         * modules/search (Makefile.am): Likewise.
546         * modules/selinux-h (Makefile.am): Likewise.
547         * modules/signal (Makefile.am): Likewise.
548         * modules/spawn (Makefile.am): Likewise.
549         * modules/stdarg (Makefile.am): Likewise.
550         * modules/stddef (Makefile.am): Likewise.
551         * modules/stdint (Makefile.am): Likewise.
552         * modules/stdio (Makefile.am): Likewise.
553         * modules/stdlib (Makefile.am): Likewise.
554         * modules/string (Makefile.am): Likewise.
555         * modules/strings (Makefile.am): Likewise.
556         * modules/sys_file (Makefile.am): Likewise.
557         * modules/sys_ioctl (Makefile.am): Likewise.
558         * modules/sys_select (Makefile.am): Likewise.
559         * modules/sys_socket (Makefile.am): Likewise.
560         * modules/sys_stat (Makefile.am): Likewise.
561         * modules/sys_time (Makefile.am): Likewise.
562         * modules/sys_times (Makefile.am): Likewise.
563         * modules/sys_uio (Makefile.am): Likewise.
564         * modules/sys_utsname (Makefile.am): Likewise.
565         * modules/sys_wait (Makefile.am): Likewise.
566         * modules/sysexits (Makefile.am): Likewise.
567         * modules/termios (Makefile.am): Likewise.
568         * modules/time (Makefile.am): Likewise.
569         * modules/unistd (Makefile.am): Likewise.
570         * modules/wchar (Makefile.am): Likewise.
571         * modules/wctype-h (Makefile.am): Likewise.
572         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
573
574 2011-05-29  Bruno Haible  <bruno@clisp.org>
575
576         assert-h: Allow multiple gnulib generated replacements to coexist.
577         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
578
579 2011-05-29  Bruno Haible  <bruno@clisp.org>
580
581         argp: Allow coexistence with strerror_r-posix module.
582         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
583         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
584         by gnulib's <string.h> replacement), assume it has the POSIX signature,
585         not the glibc signature.
586
587 2011-05-28  Bruno Haible  <bruno@clisp.org>
588
589         gnulib-tool: Alternative structure of testdirs, similar to --import.
590         * gnulib-tool: New option --single-configure.
591         (func_usage): Document it.
592         (single_configure): New variable.
593         (func_modules_transitive_closure_separately,
594         func_modules_transitive_closure_separately,
595         func_determine_use_libtests, func_modules_add_dummy_separately,
596         func_modules_to_filelist_separately): New functions, extracted from
597         func_import.
598         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
599         (func_import): Use the new functions.
600         (func_create_testdir): Set final_modules. Handle $single_configure =
601         true case.
602
603 2011-05-28  Bruno Haible  <bruno@clisp.org>
604
605         getloadavg: Remove an unreliable safety check.
606         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
607         getloadavg.c is in place.
608         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
609         Reported by Sam Steingold <sds@gnu.org>.
610
611 2011-05-28  Bruno Haible  <bruno@clisp.org>
612
613         doc: Cleanup yet another file produced by texinfo.tex.
614         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
615
616 2011-05-28  Bruno Haible  <bruno@clisp.org>
617
618         Finish the conditional dependencies mechanism.
619         * gnulib-tool: New option --no-conditional-dependencies.
620         (func_usage): Document it. Don't mark --conditional-dependencies as
621         experimental.
622         (cond_dependencies): The possible values can now be true, false, empty.
623         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
624         (func_import): Store setting in gnulib-cache.m4 and read it from there.
625         * doc/gnulib-tool.texi (Conditional dependencies): New section.
626
627 2011-05-28  Bruno Haible  <bruno@clisp.org>
628
629         doc: Use a recent texinfo.tex.
630         * doc/Makefile (tex_opts): New variable.
631         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
632
633 2011-05-28  Jim Meyering  <meyering@redhat.com>
634
635         intprops.h: adjust comment to match code change
636         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
637         only once, it *may* have side effects.  Also fix an unrelated typo.
638         (_GL_INT_SIGNED): Likewise.
639
640 2011-05-26  Simon Josefsson  <simon@josefsson.org>
641
642         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
643
644 2011-05-26  Bruno Haible  <bruno@clisp.org>
645
646         mbsrchr: Avoid collision with system function on Interix.
647         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
648         Reported by Markus Duft <mduft@gentoo.org>.
649
650 2011-05-15  James Youngman  <jay@gnu.org>
651
652         getopt: for ambiguous options, enumerate the possibilities.
653         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
654         the ambiguous options when an ambiguous prefix is given. This was
655         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
656         glibc change was
657         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
658
659 2011-05-25  Eric Blake  <eblake@redhat.com>
660
661         getcwd: work around mingw bug
662         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
663         * doc/posix-functions/getcwd.texi (getcwd): Document it.
664         Reported by Matthias Bolte.
665
666 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
667
668         test-intprops: disable -Wtype-limits diagnostics
669         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
670         diagnostics.  Otherwise, the integer overflow macros generate many
671         diagnostics.  Reported by Jim Meyering in
672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
673
674         intprops: shorten, to pacify gcc -Woverlength-strings
675         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
676         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
677         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
678         likely to run afoul of C compiler limits for string constant lengths.
679         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
680
681 2011-05-24  Eric Blake  <eblake@redhat.com>
682
683         docs: document recently fixed glibc printf bug
684         * doc/posix-functions/fprintf.texi (fprintf): Document it.
685         * doc/posix-functions/printf.texi (printf): Likewise.
686         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
687         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
688
689         closein-tests: convert to init.sh
690         * modules/closein-tests (Files): Add init.sh
691         * tests/test-closein.sh Use it.
692
693         yesno-tests: convert to init.sh
694         * modules/yesno-tests (Files): Add init.sh.
695         * tests/test-yesno.sh: Use it.
696
697         atexit-tests: ensure reliable exit status
698         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
699         Reported by Bruno Haible.
700
701 2011-05-24  Bruno Haible  <bruno@clisp.org>
702
703         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
704         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
705         gl_PREREQ_STRERROR_R invocations from here...
706         * modules/strerror_r-posix (configure.ac): ... to here.
707
708 2011-05-24  Eric Blake  <eblake@redhat.com>
709
710         strerror_r: fix missing header
711         * lib/strerror_r.c: Avoid compiler warning about snprintf.
712
713         strerror_r: fix AIX test failures
714         * lib/strerror_r.c (strerror_r): Convert silent truncation to
715         ERANGE failure.
716
717         strerror_r: fix Solaris test failures
718         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
719         failures.
720         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
721
722         strerror_r: enforce POSIX recommendations
723         * lib/strerror_r.c (safe_copy): New helper method.
724         (strerror_r): Guarantee a non-empty string.
725         * tests/test-strerror_r.c (main): Enhance tests to incorporate
726         recent POSIX rulings and to match our strerror guarantees.
727         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
728
729 2011-05-24  Jim Meyering  <meyering@redhat.com>
730
731         test-perror2.c: avoid warning about unused variable
732         * tests/test-perror2.c (main): Remove declaration of unused "fp".
733
734 2011-05-24  Eric Blake  <eblake@redhat.com>
735
736         perror: avoid spurious test failure on HP-UX
737         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
738
739         tests: fix logic bug in init.sh
740         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
741         shell.
742
743 2011-05-24  Jim Meyering  <meyering@redhat.com>
744
745         utimensat: do not reference an out-of-scope buffer
746         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
747         declared in an inner scope, yet "times" would be dereferenced outside
748         the scope in which "ts" was valid.
749         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
750         of ts[2] "out/up", so that the use of aliased "times" (via
751         "times = ts;") does not end up referencing an out-of-scope "ts"
752
753         opendir-safer.c: don't clobber errno; don't close negative FD
754         * lib/opendir-safer.c (opendir_safer):
755         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
756         file descriptor, and more importantly, don't clobber the
757         offending errno value with EINVAL.  Before, upon failure
758         of dup_safer, we would pass the negative file descriptor to
759         fdopendir, which would clobber errno.
760
761 2011-05-23  Bruno Haible  <bruno@clisp.org>
762
763         idcache: Fix module description.
764         * modules/idcache (Include): Set to "idcache.h".
765
766 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
767
768         gnulib-tool: fix portability problem with MacOS sed
769         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
770         before the "}".  Problem reported by Leo in
771         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
772         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
773         sed_extract_condition1, sed_extract_condition2.
774
775 2011-05-23  Bruno Haible  <bruno@clisp.org>
776
777         hash: Simplify autoconf macro.
778         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
779
780 2011-05-23  Bruno Haible  <bruno@clisp.org>
781
782         getugroups: Fix module description.
783         * modules/getugroups (Include): Set to "getugroups.h".
784
785 2011-05-23  Bruno Haible  <bruno@clisp.org>
786
787         linkat: Simplify autoconf macro.
788         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
789
790 2011-05-23  Bruno Haible  <bruno@clisp.org>
791             Eric Blake  <eblake@redhat.com>
792
793         linkat, renameat: Update dependencies.
794         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
795         * modules/linkat (Depends-on): Likewise. Remove also readlink,
796         symlinkat.
797
798 2011-05-23  Jim Meyering  <meyering@redhat.com>
799
800         maint.mk: more tight_scope improvements
801         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
802         (_gl_TS_headers): Define only in if-0'd block.
803         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
804         sometimes we must *not* use it.  Adjust uses accordingly.
805         (sc_tight_scope): Use much simpler grep-based test to determine
806         whether we skip this rule.
807
808         maint.mk: generalize/improve the tight-scope rule
809         * top/maint.mk: Emit a warning when the test is skipped.
810         (_gl_TS_dir): Add $(srcdir)/ prefix.
811         (_gl_TS_function_match): Simplify, rather than trying
812         to enumerate common types.  Otherwise, it would fail to match an
813         "extern unsigned char const *" declaration in idutils.
814         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
815         a way to support use of that type of macro.
816         (_gl_TS_var_match): Simplify regexp.
817         (_gl_TS_obj_files): New configurable variable.
818         (_gl_TS_headers): Likewise.
819
820 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
821
822         verify: fix bug when gnulib <assert.h> is also included
823         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
824         is defined, not if _GL_STATIC_ASSERT_H is not defined.
825         Perhaps there's a better way, but this fixes the immediate problem.
826         Problem reported by Bruno Haible in
827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
828
829 2011-05-22  Bruno Haible  <bruno@clisp.org>
830
831         xgetcwd: Simplify autoconf macro.
832         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
833
834 2011-05-22  Bruno Haible  <bruno@clisp.org>
835
836         New module 'mktime-internal'.
837         * modules/mktime-internal: New file.
838         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
839         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
840         mktime_internal as a C macro if libc has __mktime_internal.
841         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
842         conditions.
843         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
844
845 2011-05-22  Bruno Haible  <bruno@clisp.org>
846
847         timegm: Correct mktime replacement statements.
848         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
849         defining mktime as a C macro. This completes a 2009-07-28 commit.
850
851 2011-05-22  Bruno Haible  <bruno@clisp.org>
852
853         timegm: Simplify autoconf macro.
854         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
855
856 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
857
858         clock-time: change to LGPLv2+.
859         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
860         BSD-like but we have no mark for that; this is good enough for now.
861
862 2011-05-21  Bruno Haible  <bruno@clisp.org>
863
864         strerror_r: Fix comments.
865         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
866
867 2011-05-21  Bruno Haible  <bruno@clisp.org>
868
869         relocatable-prog-wrapper: Fix possible link error.
870         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
871         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
872         (gl_FUNC_SETENV): ... to here.
873         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
874         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
875
876 2011-05-21  Bruno Haible  <bruno@clisp.org>
877
878         relocatable-prog-wrapper: Assume strerror() exists.
879         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
880         m4/strerror.m4.
881         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
882         * lib/relocwrapper.c: Remove mention of strerror module.
883         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
884         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
885         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
886         C macro.
887
888 2011-05-21  Bruno Haible  <bruno@clisp.org>
889
890         select: Simplify replacement idiom.
891         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
892         Win32 platforms.
893         * lib/sys_select.in.h (select): Simplify accordingly.
894         * modules/select (Depends-on): Likewise.
895
896 2011-05-21  Bruno Haible  <bruno@clisp.org>
897
898         mkdir-p: Simplify autoconf macro.
899         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
900         gl_FUNC_LCHOWN.
901
902 2011-05-21  Eric Blake  <eblake@redhat.com>
903
904         strerror_r: avoid clobbering strerror on cygwin
905         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
906         fall back instead to sys_errlist.
907         * modules/strerror (configure.ac): Add witness.
908         * tests/test-strerror_r.c (main): Enhance test.
909         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
910         * tests/test-perror2.c (main): Free memory before exit.
911
912 2011-05-21  Bruno Haible  <bruno@clisp.org>
913
914         mkdtemp: Use gnulib naming conventions.
915         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
916         * modules/mkdtemp (configure.ac): Update.
917
918 2011-05-20  Eric Blake  <eblake@redhat.com>
919
920         strerror_r: avoid corrupting errno on Solaris
921         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
922         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
923
924         strerror_r: avoid compiler warning
925         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
926
927         strerror_r: simplify AIX code
928         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
929
930         test-perror: avoid spurious failure on FreeBSD
931         * modules/perror-tests (Depends-on): Add strerror, now that
932         strerror_r no longer pulls it in.
933
934 2011-05-20  Bruno Haible  <bruno@clisp.org>
935
936         strerror_r-posix: Remove unused dependencies.
937         * modules/strerror_r-posix (Depends-on): Remove strerror.
938         Reported by Eric Blake.
939
940 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
941
942         intprops: remove assumption about A|B representation
943         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
944         is a valid integer if both A and B are.  Although this is true for
945         all known practical hosts, the C standard doesn't guarantee it,
946         and the code need not assume it.  Also, this change may work around
947         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
949
950 2011-05-20  Eric Blake  <eblake@redhat.com>
951
952         perror: work around FreeBSD bug
953         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
954         is broken.  Move AC_LIBOBJ...
955         * modules/perror (configure.ac): Here.
956         * doc/posix-functions/perror.texi (perror): Document this.
957         * tests/test-perror2.c (main): Enhance test.
958
959         test-perror: check for strerror interactions
960         * tests/macros.h (STREQ): Add macro.
961         * modules/perror-tests (Files): Add second test.
962         * tests/test-perror2.c (main): New file.
963         * doc/posix-functions/perror.texi (perror): Document glibc bug.
964
965         test-perror: rewrite to use init script
966         * modules/perror-tests (Files): Add init.sh.
967         * tests/test-perror.sh: Use temporary directory.
968
969 2011-05-20  Jim Meyering  <meyering@redhat.com>
970
971         maint: replace misused "a" with "an"
972         * doc/intprops.texi: "a integer"
973         * doc/regex.texi: "a explanation"
974         * lib/alignof.h: "a object"
975         * lib/argmatch.h: "a explanation"
976         * lib/argp-help.c: "a option" and "a OPTION_DOC"
977         * lib/stdint.in.h: "a integer"
978         * lib/userspec.c: "a owner"
979         * doc/gnulib.texi: Fix "a idea", and reword.
980
981 2011-05-19  Jim Meyering  <meyering@redhat.com>
982
983         maint: correct misuse of "a" and "an"
984         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
985         * lib/argp-help.c: "an docum...": s/an/a/
986         * lib/argp-parse.c: "An vector": s/An/A/
987         * lib/execute.c: "an native": s/an/a/
988         * lib/spawn-pipe.c: Likewise.
989         * lib/gc.h: "an Gc_rc": s/an/a/
990         * lib/unigbrk.in.h: "an grapheme": s/an/a/
991         * lib/fts.c: "an stat.st_dev": s/an/a/
992
993 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
994
995         intprops-tests: work around HP-UX 11.23 cc bug with constants
996         * tests/test-intprops.c (VERIFY): New macro.
997         (main): Use it, instead of verify, to work around the compiler bug; see
998         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
999
1000         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1001         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1002         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1003         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1004         (_GL_REMAINDER_OVERFLOW): Use it.
1005
1006         intprops-tests: revert unsigned part of previous change
1007         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1008         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1009         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1011
1012 2011-05-19  Bruno Haible  <bruno@clisp.org>
1013
1014         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1015         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1016         strerror_r() returned without filling the buffer.
1017         Reported by Eric Blake.
1018
1019 2011-05-19  Eric Blake  <eblake@redhat.com>
1020
1021         strerror_r: guarantee unchanged errno
1022         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1023         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1024         failure.
1025         * tests/test-strerror_r.c (main): Enhance test.
1026
1027 2011-05-19  Bruno Haible  <bruno@clisp.org>
1028
1029         strerror_r: Reorder #if blocks.
1030         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1031         for consistency with the previous commit.
1032
1033 2011-05-19  Bruno Haible  <bruno@clisp.org>
1034
1035         perror: Avoid clobbering the strerror buffer when possible.
1036         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1037         * lib/strerror.c: Include it.
1038         * modules/strerror (Files): Add lib/strerror-impl.h.
1039         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1040         (my_strerror): New function, defined through lib/strerror-impl.h.
1041         (perror): Use it instead of strerror.
1042         * modules/perror (Files): Add lib/strerror-impl.h.
1043         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1044
1045 2011-05-19  Eric Blake  <eblake@redhat.com>
1046
1047         strerror_r: fix on newer cygwin
1048         * lib/strerror_r.c (strerror_r): Cygwin now has
1049         __xpg_strerror_r, use it.
1050
1051 2011-05-19  Bruno Haible  <bruno@clisp.org>
1052
1053         strerror_r: Avoid clobbering the strerror buffer when possible.
1054         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1055         (sys_nerr, sys_errlist): New declarations.
1056         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1057         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1058         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1059
1060 2011-05-19  Bruno Haible  <bruno@clisp.org>
1061
1062         strerror_r: Fix test failure on mingw.
1063         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1064         EXTEND_STRERROR_R.
1065         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1066         macros from errno.in.h instead.
1067
1068 2011-05-19  Eric Blake  <eblake@redhat.com>
1069
1070         strerror: relax test for Solaris
1071         * tests/test-strerror.c (main): Permit Solaris behavior.
1072         * tests/test-strerror_r.c (main): Likewise.
1073
1074         strerror: enforce POSIX ruling on strerror(0)
1075         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1076         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1077         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1078         * doc/posix-functions/strerror.texi (strerror): Document it.
1079         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1080         * tests/test-strerror.c (main): Strengthen test.
1081         * tests/test-strerror_r.c (main): Likewise.
1082
1083 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         intprop-tests: port to older and more-pedantic compilers
1086         * modules/intprops-tests (Files): Add tests/macros.h.
1087         * tests/test-intprops.c: Include macros.h.
1088         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1089         it's no longer documented to expand to an integer constant expression.
1090         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1091         argument is floating point, as it's no longer documented to expand
1092         to an integer constant expression in that case.
1093         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1094         compiler bugs reported by Bruno Haible.  See
1095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1096         (U0, U1): New constants, to work around the same bugs.  Also,
1097         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1098
1099         intprops: work around C compiler bugs
1100         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1101         bug in Sun C 5.11 2010/08/13 and other compilers; see
1102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1103
1104         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1105         * doc/intprops.texi (Integer Type Determination): Fix
1106         documentation for TYPE_IS_INTEGER: it returns an constant
1107         expression, not an integer constant expression.  Fix doc for
1108         TYPE_SIGNED: it returns an integer constant expression only if its
1109         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1110         hardly worth documented that way....)
1111
1112 2011-05-18  Bruno Haible  <bruno@clisp.org>
1113
1114         strerror_r: Avoid clobbering the strerror buffer when possible.
1115         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1116         Handle gnulib defined errno values here. When strerror() returns NULL
1117         or an empty string, return EINVAL.
1118         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1119         gnulib defined errno values here.
1120         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1121
1122 2011-05-18  Eric Blake  <eblake@redhat.com>
1123
1124         fnmatch: avoid compiler warning
1125         * lib/fnmatch_loop.c (FCT): Use correct type.
1126         Reported by Matthias Bolte.
1127
1128 2011-05-13  Jim Meyering  <meyering@redhat.com>
1129
1130         maint.mk: three new prohibit_<HDR>_without_use rules
1131         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1132         (sc_prohibit_stdio-safer_without_use): Likewise.
1133         (sc_prohibit_xfreopen_without_use): Likewise.
1134
1135 2011-05-17  Jim Meyering  <meyering@redhat.com>
1136
1137         announce-gen: fail if the NEWS delta is empty
1138         If there's nothing noteworthy in NEWS, then either you forgot
1139         or you shouldn't be releasing.
1140         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1141
1142 2011-05-17  Pádraig Brady <P@draigBrady.com>
1143
1144         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1145         reserved symbols starting with double underscore from the check.
1146
1147 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1148
1149         intprops: add doc
1150         * doc/intprops.texi: New file, documenting intprops.
1151         * doc/gnulib.texi (Particular Modules): Include it.
1152
1153         verify: add doc to gnulib manual and fix example
1154         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1155         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1156         (Compile-time Assertions): Fix example so it can't overflow.
1157
1158 2011-05-17  Jim Meyering  <meyering@redhat.com>
1159
1160         warnings.m4: don't usurp save_CPPFLAGS variable name
1161         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1162
1163         doc: fix typo
1164         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1165
1166 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1167             Bruno Haible  <bruno@clisp.org>
1168
1169         doc: Tweak recent change.
1170         * README (Portability guidelines): Tweak new text.
1171         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1172         Interix 6.1.
1173
1174 2011-05-16  Eric Blake  <eblake@redhat.com>
1175
1176         inttypes: avoid autoconf warning
1177         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1178         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1179
1180 2011-05-16  Sam Steingold <sds@gnu.org>
1181         and Eric Blake  <eblake@redhat.com>
1182
1183         vc-list-files: accept multiple directory operands
1184         * build-aux/vc-list-files: Iterate over all remaining operands.
1185
1186 2011-05-16  Bruno Haible  <bruno@clisp.org>
1187
1188         Fix confusion regarding deprecated modules.
1189         * modules/calloc (Status, Notice): Mark module as deprecated, not
1190         obsolete.
1191         * modules/fnmatch-posix (Status, Notice): Likewise.
1192         * modules/getdate (Status, Notice): Likewise.
1193         * modules/getopt (Status, Notice): Likewise.
1194         * modules/malloc (Status, Notice): Likewise.
1195         * modules/pipe (Status, Notice): Likewise.
1196         * modules/realloc (Status, Notice): Likewise.
1197         * modules/rename-dest-slash (Status, Notice): Likewise.
1198         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1199         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1200         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1201         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1202         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1203
1204 2011-05-16  Bruno Haible  <bruno@clisp.org>
1205
1206         doc: List the target platforms.
1207         * doc/gnulib-intro.texi (Target Platforms): New section.
1208         * doc/gnulib.texi (Introduction): Update menu.
1209         * README (Portability guidelines): Refer to the new section. Update
1210         statement about oldest supported environment. Remove rationale why
1211         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1212         unportable C89 function.
1213         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1214         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1215
1216 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1217
1218         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1219
1220 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1221
1222         intprops-tests: new module
1223         * modules/intprops-tests, tests/test-intprops.c: New files.
1224
1225         intprops: add safe, portable integer overflow checking
1226         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1227         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1228         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1229         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1230         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1231         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1232         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1233         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1234         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1235         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1236         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1237
1238 2011-05-12  James Youngman  <jay@gnu.org>
1239
1240         Add a test for glibc's Bugzilla bug #12378.
1241         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1242         doesn't allow the literal matching of a lone "[" (which is
1243         required by POSIX).
1244         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1245
1246 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1247
1248         Sync glibc change fixing Bugzilla bug #12378.
1249         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1250         beginning and fall back to matching as normal character if the
1251         string ends before the matching ']' is found.  This is what POSIX
1252         requires.
1253
1254 2011-05-13  Eric Blake  <eblake@redhat.com>
1255
1256         getcwd-lgpl: relax test for FreeBSD
1257         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1258         issue.
1259         * tests/test-getcwd-lgpl.c (main): Relax test.
1260         Reported by Matthias Bolte.
1261
1262 2011-05-11  Eric Blake  <eblake@redhat.com>
1263
1264         test-fflush: silence compiler warning
1265         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1266
1267 2011-05-11  Bruno Haible  <bruno@clisp.org>
1268
1269         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1270         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1271         * modules/canonicalize (Depends-on): Add 'nocrash'.
1272         * modules/canonicalize-lgpl (Depends-on): Likewise.
1273         * doc/posix-functions/realpath.texi: Update platforms list.
1274         Reported by Ryan Schmidt <ryandesign@macports.org>.
1275
1276 2011-05-11  Bruno Haible  <bruno@clisp.org>
1277
1278         group-member: Declare function in <unistd.h>.
1279         * lib/unistd.in.h (group_member): New declaration.
1280         * lib/group-member.h: Remove file.
1281         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1282         * tests/test-unistd-c++.cc: Check signature of group_member.
1283         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1284         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1285         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1286         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1287         HAVE_GROUP_MEMBER.
1288         * modules/group-member (Files): Remove lib/group-member.h.
1289         (Depends-on): Add unistd. Specify conditions.
1290         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1291         (Include): Change to <unistd.h>.
1292         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1293         HAVE_GROUP_MEMBER.
1294         * NEWS: Mention the change.
1295         * lib/euidaccess.c: Don't include group-member.h.
1296
1297 2011-05-11  Bruno Haible  <bruno@clisp.org>
1298
1299         group-member: Document module.
1300         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1301         module.
1302
1303 2011-05-11  Bruno Haible  <bruno@clisp.org>
1304
1305         fclose: Fix mistake earlier today.
1306         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1307
1308 2011-05-11  Eric Blake  <eblake@redhat.com>
1309
1310         fclose: preserve fflush errors
1311         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1312         Reported by Jim Meyering.
1313
1314         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1315         * build-aux/bootstrap (check_versions): When no specific version
1316         is required, merely check that the app produces an exit status
1317         that indicates its existence.
1318
1319         maint.mk: drop redundant check
1320         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1321         the same but better.
1322
1323 2011-05-11  Bruno Haible  <bruno@clisp.org>
1324
1325         fclose: Fix possible link error.
1326         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1327         unregister_shadow_fd. Improve comments.
1328         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1329         Eric Blake.
1330
1331 2011-05-11  Jim Meyering  <meyering@redhat.com>
1332
1333         maint.mk: improve "can not" detection and generalize rule name
1334         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1335         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1336         Use the same technique as in sc_prohibit_doubled_word, so that
1337         we recognize "can not" also when the words are separated by a newline.
1338         Suggested by Eric Blake.
1339         (perl_filename_lineno_text_): Define.  Factored out of...
1340         (prohibit_doubled_word_): ...here.  Use the new definition.
1341         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1342         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1343         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1344
1345 2011-05-10  Eric Blake  <eblake@redhat.com>
1346
1347         fclose: avoid double close race when possible
1348         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1349         all but WINDOWS_SOCKETS.
1350
1351 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1352
1353         openat: correct new comment
1354         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1355
1356 2011-05-10  Jim Meyering  <meyering@redhat.com>
1357
1358         openat: add comments
1359         * lib/openat-proc.c (openat_proc_name): Add comments,
1360         mostly from Eric Blake.
1361
1362 2011-05-09  Eric Blake  <eblake@redhat.com>
1363
1364         openat: reduce syscalls in first probe of /proc
1365         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1366         be a directory.  Simplify the probe for .. bugs.
1367         * modules/openat (Depends-on): Drop same-inode.
1368         Reported by Bastien ROUCARIES.
1369
1370 2011-05-09  Jim Meyering  <meyering@redhat.com>
1371
1372         maint.mk: change semantics/name of tight_scope variables
1373         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1374         Rename variables to align with semantics that make them more useful.
1375
1376         maint.mk: tweak new rule's name not to impinge
1377         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1378         (sc_tight_scope): Use new rule name rather than $@-0.
1379
1380         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1381         * top/maint.mk (sc_tight_scope): New rule.
1382         (sc_tight_scope-0): New rule, ifdef'd out.
1383         (_gl_TS_dir): Default.
1384         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1385         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1386
1387 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1388
1389         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1390         Haible <bruno@clisp.org>.
1391
1392 2011-05-08  Bruno Haible  <bruno@clisp.org>
1393
1394         Comments.
1395         * m4/isnanf.m4: Add comment.
1396         * m4/isnanl.m4: Likewise.
1397
1398 2011-05-08  Bruno Haible  <bruno@clisp.org>
1399
1400         glob: Remove obsolete macro.
1401         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1402
1403 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1404
1405         intprops: Sun C 5.11 supports __typeof__
1406         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1407         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1408         which is new.
1409         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1410
1411         intprops: switch to usual gnulib indenting and naming
1412         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1413         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1414
1415         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1416
1417 2011-05-08  Jim Meyering  <meyering@redhat.com>
1418
1419         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1420         * top/maint.mk (release-prep): Use make's --no-print-directory
1421         option when generating the announcement.  This eliminates the
1422         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1423         generated announcement template.
1424
1425 2011-05-08  Bruno Haible  <bruno@clisp.org>
1426
1427         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1428         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1429         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1430
1431 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1432
1433         ignore-value, verify: Omit include files from lib_SOURCES.
1434         * modules/ignore-value, modules/verify (Makefile.am):
1435         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1436         that leads Automake to duplicate use of am__objects_... variables
1437         in Makefile.in.  See
1438         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1439
1440 2011-05-07  Bruno Haible  <bruno@clisp.org>
1441
1442         fclose: Simplify autoconf macro.
1443         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1444         defined.
1445
1446 2011-05-07  Bruno Haible  <bruno@clisp.org>
1447
1448         canonicalize-lgpl: Fix autoconf macro ordering bug.
1449         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1450         gl_STDLIB_H_DEFAULTS.
1451
1452 2011-05-06  Eric Blake  <eblake@redhat.com>
1453
1454         maintainer-makefile: make sc_po_check easier to tune
1455         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1456         to probe for strings, such as an alternate location for gnulib.
1457
1458         fclose: guarantee behavior on seekable stdin
1459         * modules/fclose (Depends-on): Add fflush.
1460         * doc/posix-functions/fclose.texi (fclose): Document this.
1461         * tests/test-fclose.c (main): Make test for this unconditional.
1462
1463 2011-05-06  Bruno Haible  <bruno@clisp.org>
1464
1465         fflush, fpurge: Relicense under LGPLv2+.
1466         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1467         * modules/fpurge (License): Likewise.
1468         With permission from Eric Blake and Jim Meyering.
1469         Suggested by Eric Blake.
1470
1471 2011-05-06  Karl Berry  <karl@gnu.org>
1472
1473         * MODULES.html.sh (func_all_modules): remove exit.
1474
1475 2011-05-06  Jim Meyering  <meyering@redhat.com>
1476
1477         maint.mk: use info-gnu@ as the default only for a stable release
1478         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1479         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1480         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1482
1483 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1484
1485         assert-h: new module, which supports C1X-style static_assert
1486         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1487         * lib/verify.h: Revamp so that this can be copied into assert.h,
1488         while retaining the ability to use it standalone as before.
1489         Rename private identifiers so as not to encroach on the
1490         standard C namespace, since this is now used by assert.h.
1491         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1492         the old verify_true.
1493         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1494         the old verify_true.  Use _GL_VERIFY_TYPE.
1495         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1496         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1497         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1498         defined when this file is copied into the replacement assert.h.
1499         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1500         and _Static_assert is not built in.
1501         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1502         defined, and use the new macros mentioned above.
1503         * doc/posix-headers/assert.texi: Document this.
1504
1505 2011-05-05  Bruno Haible  <bruno@clisp.org>
1506
1507         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1508         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1509         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1510         gl_REPLACE_FCLOSE here.
1511         * modules/fflush (Depends-on): Remove fclose.
1512         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1513         combination with module 'fclose'.
1514
1515 2011-05-05  Bruno Haible  <bruno@clisp.org>
1516
1517         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1518         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1519         gl_FUNC_FFLUSH.
1520         (gl_FUNC_FFLUSH): Use it.
1521         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1522         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1523         gl_REPLACE_FSEEKO here.
1524
1525 2011-05-05  Bruno Haible  <bruno@clisp.org>
1526
1527         tzset: Relicense under LGPL.
1528         * modules/tzset (License): Change to LGPL.
1529         No agreement needed; it's a no-op.
1530
1531         strtoimax, strtoumax: Relicense under LGPL.
1532         * modules/strtoimax (License): Change to LGPL.
1533         * modules/strtoumax (License): Likewise.
1534         With permission from Jim Meyering, Paul Eggert:
1535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1536         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1537
1538         getgroups: Relicense under LGPL.
1539         * modules/getgroups (License): Change to LGPL.
1540         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1544
1545         nanosleep: Relicense under LGPL.
1546         * modules/nanosleep (License): Change to LGPL.
1547         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
1548         Haible:
1549         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
1550         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
1551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1553
1554         futimens: Relicense under LGPL.
1555         * modules/futimens (License): Change to LGPL.
1556         With permission from Eric Blake:
1557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1558
1559         fflush: Relicense under LGPL.
1560         * modules/fflush (License): Change to LGPL.
1561         With permission from Eric Blake, Bruno Haible, Jim Meyering:
1562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
1563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
1564         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
1565
1566         tmpfile: Relicense under LGPL.
1567         * modules/tmpfile (License): Change to LGPL.
1568         With permission from Ben Pfaff:
1569         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1570
1571         isfinite: Relicense under LGPL.
1572         * modules/isfinite (License): Change to LGPL.
1573         With permission from Ben Pfaff, Bruno Haible:
1574         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
1575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
1576
1577         acosl..tanl: Relicense under LGPL.
1578         * modules/acosl (License): Change to LGPL.
1579         * modules/asinl (License): Likewise.
1580         * modules/atanl (License): Likewise.
1581         * modules/cosl (License): Likewise.
1582         * modules/expl (License): Likewise.
1583         * modules/logl (License): Likewise.
1584         * modules/sinl (License): Likewise.
1585         * modules/sqrtl (License): Likewise.
1586         * modules/tanl (License): Likewise.
1587         Source code originally from glibc and Paolo Bonzini. Agreements:
1588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
1589         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
1590
1591 2011-05-05  Bruno Haible  <bruno@clisp.org>
1592
1593         signal: Define sighandler_t.
1594         * lib/signal.in.h (sighandler_t): New type.
1595         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
1596         whether sighandler_t is defined.
1597         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
1598         * modules/signal (Depends-on): Add extensions.
1599         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
1600         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
1601         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
1602
1603 2011-05-05  Eric Blake  <eblake@redhat.com>
1604
1605         maint: remove useless REPLACE_*_H macros
1606         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
1607         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
1608         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
1609         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
1610         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
1611         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
1612         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
1613         * m4/btowc.m4: Update callers.
1614         * m4/dirfd.m4: Likewise.
1615         * m4/duplocale.m4: Likewise.
1616         * m4/fchdir.m4: Likewise.
1617         * m4/fdopendir.m4: Likewise.
1618         * m4/inet_ntop.m4: Likewise.
1619         * m4/inet_pton.m4: Likewise.
1620         * m4/ioctl.m4: Likewise.
1621         * m4/mbrlen.m4: Likewise.
1622         * m4/mbrtowc.m4: Likewise.
1623         * m4/mbsinit.m4: Likewise.
1624         * m4/mbsnrtowcs.m4: Likewise.
1625         * m4/mbsrtowcs.m4: Likewise.
1626         * m4/poll.m4: Likewise.
1627         * m4/setlocale.m4: Likewise.
1628         * m4/wcrtomb.m4: Likewise.
1629         * m4/wcsnrtombs.m4: Likewise.
1630         * m4/wcsrtombs.m4: Likewise.
1631         * m4/wctob.m4: Likewise.
1632         * m4/wcwidth.m4: Likewise.
1633         * modules/posix_spawn: Likewise.
1634         * modules/posix_spawn_file_actions_addclose: Likewise.
1635         * modules/posix_spawn_file_actions_adddup2: Likewise.
1636         * modules/posix_spawn_file_actions_addopen: Likewise.
1637         * modules/posix_spawn_file_actions_destroy: Likewise.
1638         * modules/posix_spawn_file_actions_init: Likewise.
1639         * modules/posix_spawnattr_destroy: Likewise.
1640         * modules/posix_spawnattr_getflags: Likewise.
1641         * modules/posix_spawnattr_getpgroup: Likewise.
1642         * modules/posix_spawnattr_getschedparam: Likewise.
1643         * modules/posix_spawnattr_getschedpolicy: Likewise.
1644         * modules/posix_spawnattr_getsigdefault: Likewise.
1645         * modules/posix_spawnattr_getsigmask: Likewise.
1646         * modules/posix_spawnattr_init: Likewise.
1647         * modules/posix_spawnattr_setflags: Likewise.
1648         * modules/posix_spawnattr_setpgroup: Likewise.
1649         * modules/posix_spawnattr_setschedparam: Likewise.
1650         * modules/posix_spawnattr_setschedpolicy: Likewise.
1651         * modules/posix_spawnattr_setsigdefault: Likewise.
1652         * modules/posix_spawnattr_setsigmask: Likewise.
1653         * modules/posix_spawnp: Likewise.
1654
1655 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
1656
1657         Add option to do-release-commit-and-tag to specify branch.
1658         * build-aux/do-release-commit-and-tag: Add --branch.
1659
1660 2011-05-03  Bruno Haible  <bruno@clisp.org>
1661
1662         Avoid unnecessary compilation units, through conditional dependencies.
1663         * modules/accept (Depends-on): Add conditions to the dependencies.
1664         * modules/acosl (Depends-on): Likewise.
1665         * modules/argz (Depends-on): Likewise.
1666         * modules/asinl (Depends-on): Likewise.
1667         * modules/atanl (Depends-on): Likewise.
1668         * modules/atoll (Depends-on): Likewise.
1669         * modules/bind (Depends-on): Likewise.
1670         * modules/btowc (Depends-on): Likewise.
1671         * modules/canonicalize-lgpl (Depends-on): Likewise.
1672         * modules/ceil (Depends-on): Likewise.
1673         * modules/ceilf (Depends-on): Likewise.
1674         * modules/ceill (Depends-on): Likewise.
1675         * modules/chdir-long (Depends-on): Likewise.
1676         * modules/chown (Depends-on): Likewise.
1677         * modules/close (Depends-on): Likewise.
1678         * modules/connect (Depends-on): Likewise.
1679         * modules/cosl (Depends-on): Likewise.
1680         * modules/dirfd (Depends-on): Likewise.
1681         * modules/dprintf (Depends-on): Likewise.
1682         * modules/dprintf-posix (Depends-on): Likewise.
1683         * modules/error (Depends-on): Likewise.
1684         * modules/euidaccess (Depends-on): Likewise.
1685         * modules/expl (Depends-on): Likewise.
1686         * modules/faccessat (Depends-on): Likewise.
1687         * modules/fchdir (Depends-on): Likewise.
1688         * modules/fclose (Depends-on): Likewise.
1689         * modules/fcntl (Depends-on): Likewise.
1690         * modules/fdopendir (Depends-on): Likewise.
1691         * modules/fflush (Depends-on): Likewise.
1692         * modules/floor (Depends-on): Likewise.
1693         * modules/floorf (Depends-on): Likewise.
1694         * modules/floorl (Depends-on): Likewise.
1695         * modules/fnmatch (Depends-on): Likewise.
1696         * modules/fopen (Depends-on): Likewise.
1697         * modules/fprintf-posix (Depends-on): Likewise.
1698         * modules/frexp (Depends-on): Likewise.
1699         * modules/frexp-nolibm (Depends-on): Likewise.
1700         * modules/frexpl (Depends-on): Likewise.
1701         * modules/frexpl-nolibm (Depends-on): Likewise.
1702         * modules/fseek (Depends-on): Likewise.
1703         * modules/fsusage (Depends-on): Likewise.
1704         * modules/ftell (Depends-on): Likewise.
1705         * modules/ftello (Depends-on): Likewise.
1706         * modules/futimens (Depends-on): Likewise.
1707         * modules/getcwd (Depends-on): Likewise.
1708         * modules/getcwd-lgpl (Depends-on): Likewise.
1709         * modules/getdelim (Depends-on): Likewise.
1710         * modules/getdomainname (Depends-on): Likewise.
1711         * modules/getgroups (Depends-on): Likewise.
1712         * modules/gethostname (Depends-on): Likewise.
1713         * modules/getline (Depends-on): Likewise.
1714         * modules/getlogin_r (Depends-on): Likewise.
1715         * modules/getopt-posix (Depends-on): Likewise.
1716         * modules/getpeername (Depends-on): Likewise.
1717         * modules/getsockname (Depends-on): Likewise.
1718         * modules/getsockopt (Depends-on): Likewise.
1719         * modules/getsubopt (Depends-on): Likewise.
1720         * modules/getusershell (Depends-on): Likewise.
1721         * modules/glob (Depends-on): Likewise.
1722         * modules/grantpt (Depends-on): Likewise.
1723         * modules/iconv_open (Depends-on): Likewise.
1724         * modules/iconv_open-utf (Depends-on): Likewise.
1725         * modules/inet_ntop (Depends-on): Likewise.
1726         * modules/inet_pton (Depends-on): Likewise.
1727         * modules/ioctl (Depends-on): Likewise.
1728         * modules/isapipe (Depends-on): Likewise.
1729         * modules/isfinite (Depends-on): Likewise.
1730         * modules/isinf (Depends-on): Likewise.
1731         * modules/lchown (Depends-on): Likewise.
1732         * modules/ldexpl (Depends-on): Likewise.
1733         * modules/link (Depends-on): Likewise.
1734         * modules/linkat (Depends-on): Likewise.
1735         * modules/listen (Depends-on): Likewise.
1736         * modules/logl (Depends-on): Likewise.
1737         * modules/lstat (Depends-on): Likewise.
1738         * modules/mbrlen (Depends-on): Likewise.
1739         * modules/mbrtowc (Depends-on): Likewise.
1740         * modules/mbsinit (Depends-on): Likewise.
1741         * modules/mbsnrtowcs (Depends-on): Likewise.
1742         * modules/mbsrtowcs (Depends-on): Likewise.
1743         * modules/mbtowc (Depends-on): Likewise.
1744         * modules/memcmp (Depends-on): Likewise.
1745         * modules/mkdir (Depends-on): Likewise.
1746         * modules/mkdtemp (Depends-on): Likewise.
1747         * modules/mkfifo (Depends-on): Likewise.
1748         * modules/mkfifoat (Depends-on): Likewise.
1749         * modules/mknod (Depends-on): Likewise.
1750         * modules/mkostemp (Depends-on): Likewise.
1751         * modules/mkostemps (Depends-on): Likewise.
1752         * modules/mkstemp (Depends-on): Likewise.
1753         * modules/mkstemps (Depends-on): Likewise.
1754         * modules/mktime (Depends-on): Likewise.
1755         * modules/nanosleep (Depends-on): Likewise.
1756         * modules/open (Depends-on): Likewise.
1757         * modules/openat (Depends-on): Likewise.
1758         * modules/perror (Depends-on): Likewise.
1759         * modules/poll (Depends-on): Likewise.
1760         * modules/popen (Depends-on): Likewise.
1761         * modules/posix_spawn (Depends-on): Likewise.
1762         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
1763         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1764         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1765         * modules/posix_spawnp (Depends-on): Likewise.
1766         * modules/pread (Depends-on): Likewise.
1767         * modules/printf-posix (Depends-on): Likewise.
1768         * modules/ptsname (Depends-on): Likewise.
1769         * modules/putenv (Depends-on): Likewise.
1770         * modules/pwrite (Depends-on): Likewise.
1771         * modules/readline (Depends-on): Likewise.
1772         * modules/readlink (Depends-on): Likewise.
1773         * modules/readlinkat (Depends-on): Likewise.
1774         * modules/recv (Depends-on): Likewise.
1775         * modules/recvfrom (Depends-on): Likewise.
1776         * modules/regex (Depends-on): Likewise.
1777         * modules/remove (Depends-on): Likewise.
1778         * modules/rename (Depends-on): Likewise.
1779         * modules/renameat (Depends-on): Likewise.
1780         * modules/rmdir (Depends-on): Likewise.
1781         * modules/round (Depends-on): Likewise.
1782         * modules/roundf (Depends-on): Likewise.
1783         * modules/roundl (Depends-on): Likewise.
1784         * modules/rpmatch (Depends-on): Likewise.
1785         * modules/select (Depends-on): Likewise.
1786         * modules/send (Depends-on): Likewise.
1787         * modules/sendto (Depends-on): Likewise.
1788         * modules/setenv (Depends-on): Likewise.
1789         * modules/setlocale (Depends-on): Likewise.
1790         * modules/setsockopt (Depends-on): Likewise.
1791         * modules/shutdown (Depends-on): Likewise.
1792         * modules/sigaction (Depends-on): Likewise.
1793         * modules/signbit (Depends-on): Likewise.
1794         * modules/sigprocmask (Depends-on): Likewise.
1795         * modules/sinl (Depends-on): Likewise.
1796         * modules/sleep (Depends-on): Likewise.
1797         * modules/snprintf (Depends-on): Likewise.
1798         * modules/snprintf-posix (Depends-on): Likewise.
1799         * modules/socket (Depends-on): Likewise.
1800         * modules/sprintf-posix (Depends-on): Likewise.
1801         * modules/sqrtl (Depends-on): Likewise.
1802         * modules/stat (Depends-on): Likewise.
1803         * modules/strchrnul (Depends-on): Likewise.
1804         * modules/strdup-posix (Depends-on): Likewise.
1805         * modules/strerror (Depends-on): Likewise.
1806         * modules/strerror_r-posix (Depends-on): Likewise.
1807         * modules/strndup (Depends-on): Likewise.
1808         * modules/strnlen (Depends-on): Likewise.
1809         * modules/strptime (Depends-on): Likewise.
1810         * modules/strsep (Depends-on): Likewise.
1811         * modules/strsignal (Depends-on): Likewise.
1812         * modules/strstr-simple (Depends-on): Likewise.
1813         * modules/strtod (Depends-on): Likewise.
1814         * modules/strtoimax (Depends-on): Likewise.
1815         * modules/strtok_r (Depends-on): Likewise.
1816         * modules/strtoumax (Depends-on): Likewise.
1817         * modules/symlink (Depends-on): Likewise.
1818         * modules/symlinkat (Depends-on): Likewise.
1819         * modules/tanl (Depends-on): Likewise.
1820         * modules/tcgetsid (Depends-on): Likewise.
1821         * modules/tmpfile (Depends-on): Likewise.
1822         * modules/trunc (Depends-on): Likewise.
1823         * modules/truncf (Depends-on): Likewise.
1824         * modules/truncl (Depends-on): Likewise.
1825         * modules/uname (Depends-on): Likewise.
1826         * modules/unlink (Depends-on): Likewise.
1827         * modules/unlockpt (Depends-on): Likewise.
1828         * modules/unsetenv (Depends-on): Likewise.
1829         * modules/usleep (Depends-on): Likewise.
1830         * modules/utimensat (Depends-on): Likewise.
1831         * modules/vasprintf (Depends-on): Likewise.
1832         * modules/vdprintf (Depends-on): Likewise.
1833         * modules/vdprintf-posix (Depends-on): Likewise.
1834         * modules/vfprintf-posix (Depends-on): Likewise.
1835         * modules/vprintf-posix (Depends-on): Likewise.
1836         * modules/vsnprintf (Depends-on): Likewise.
1837         * modules/vsnprintf-posix (Depends-on): Likewise.
1838         * modules/vsprintf-posix (Depends-on): Likewise.
1839         * modules/wcrtomb (Depends-on): Likewise.
1840         * modules/wcscasecmp (Depends-on): Likewise.
1841         * modules/wcscspn (Depends-on): Likewise.
1842         * modules/wcsdup (Depends-on): Likewise.
1843         * modules/wcsncasecmp (Depends-on): Likewise.
1844         * modules/wcsnrtombs (Depends-on): Likewise.
1845         * modules/wcspbrk (Depends-on): Likewise.
1846         * modules/wcsrtombs (Depends-on): Likewise.
1847         * modules/wcsspn (Depends-on): Likewise.
1848         * modules/wcsstr (Depends-on): Likewise.
1849         * modules/wcstok (Depends-on): Likewise.
1850         * modules/wcswidth (Depends-on): Likewise.
1851         * modules/wctob (Depends-on): Likewise.
1852         * modules/wctomb (Depends-on): Likewise.
1853         * modules/wctype (Depends-on): Likewise.
1854         * modules/wcwidth (Depends-on): Likewise.
1855         * modules/write (Depends-on): Likewise.
1856
1857 2011-05-03  Bruno Haible  <bruno@clisp.org>
1858
1859         Support for conditional dependencies.
1860         * doc/gnulib.texi (Module description): Document the syntax of
1861         conditional dependencies.
1862         * gnulib-tool: New option --conditional-dependencies.
1863         (func_usage): Document it.
1864         (cond_dependencies): New variable.
1865         (func_get_automake_snippet_conditional,
1866         func_get_automake_snippet_unconditional): New functions, extracted from
1867         func_get_automake_snippet.
1868         (func_get_automake_snippet): Use them.
1869         (sed_first_32_chars): New variable.
1870         (func_module_shellfunc_name): New function.
1871         (func_module_shellvar_name): New function.
1872         (func_module_conditional_name): New function.
1873         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1874         func_cond_module_condition): New functions.
1875         (func_modules_transitive_closure): Add support for conditional
1876         dependencies.
1877         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1878         conditional automake snippet in an automake conditional.
1879         (func_emit_autoconf_snippets): Emit shell functions that contain the
1880         code for conditional modules.
1881         (func_import, func_create_testdir): Update specification.
1882
1883 2011-05-03  Eric Blake  <eblake@redhat.com>
1884
1885         test-getaddrinfo: report error information
1886         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1887
1888 2011-05-03  Jim Meyering  <meyering@redhat.com>
1889
1890         bootstrap: avoid build failure when $GZIP is set
1891         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1892         program name.  If defined at all, it is supposed to list gzip options.
1893         Reported by Alan Curry in http://debbugs.gnu.org/8609
1894
1895 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1896
1897         readme-release: new module with release instructions
1898         * modules/readme-release: New module.
1899         * top/README-release: New file, from coreutils, grep, diffutils.
1900         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1901
1902 2011-05-02  Eric Blake  <eblake@redhat.com>
1903
1904         fflush: also replace fclose when fixing fflush
1905         * modules/fflush (Depends-on): Add fclose.
1906         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1907         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1908         memstreams with no backing fd.
1909         * doc/posix-functions/fclose.texi (fclose): Document the use of
1910         fflush module to fix the bug.
1911         * tests/test-fclose.c (main): Relax test when fclose is used in
1912         isolation.
1913
1914         fclose: add some tests
1915         * modules/fclose-tests: New test module.
1916         * tests/test-fclose.c: New file.
1917         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1918
1919         fclose: reduced dependencies
1920         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1921         simpler lseek.
1922         * lib/fclose.c (rpl_fclose): Likewise.
1923         Reported by Simon Josefsson.
1924
1925         exit: drop remaining clients
1926         * modules/argmatch (Depends-on): Replace exit with stdlib.
1927         * modules/copy-file (Depends-on): Likewise.
1928         * modules/execute (Depends-on): Likewise.
1929         * modules/exitfail (Depends-on): Likewise.
1930         * modules/obstack (Depends-on): Likewise.
1931         * modules/pagealign_alloc (Depends-on): Likewise.
1932         * modules/pipe-filter-gi (Depends-on): Likewise.
1933         * modules/pipe-filter-ii (Depends-on): Likewise.
1934         * modules/savewd (Depends-on): Likewise.
1935         * modules/spawn-pipe (Depends-on): Likewise.
1936         * modules/wait-process (Depends-on): Likewise.
1937         * modules/xsetenv (Depends-on): Likewise.
1938         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1939         * modules/git-merge-changelog (Depends-on): Likewise.
1940         * modules/long-options (Depends-on): Likewise.
1941         * modules/pt_chown (Depends-on): Likewise.
1942         * modules/sysexits (Depends-on): Likewise.
1943
1944         freading: relax license from LGPLv3+ to LGPLv2+
1945         * modules/freading (License): Relax LGPL version.
1946
1947 2011-05-02  Bruno Haible  <bruno@clisp.org>
1948
1949         fchdir: Remove unused dependencies.
1950         * modules/fchdir (Depends-on): Remove include_next.
1951
1952 2011-05-02  Bruno Haible  <bruno@clisp.org>
1953
1954         gnulib-tool: Refactor.
1955         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1956         from func_emit_autoconf_snippets.
1957         (func_emit_autoconf_snippets): Use it.
1958
1959 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1960
1961         * NEWS: Document removal of 'exit'.
1962         * modules/exit: Remove file.
1963
1964 2011-05-01  Bruno Haible  <bruno@clisp.org>
1965
1966         Update DEPENDENCIES.
1967         * DEPENDENCIES (gettext): Recommend the newest release.
1968         Reported by Simon Josefsson.
1969
1970 2011-05-01  Bruno Haible  <bruno@clisp.org>
1971
1972         gnulib-tool: Reduce code duplication.
1973         * gnulib-tool (func_emit_autoconf_snippets): New function.
1974         (func_import, func_create_testdir): Use it.
1975
1976 2011-04-30  Eric Blake  <eblake@redhat.com>
1977
1978         fclose: don't fail on non-seekable input stream
1979         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1980         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1981         since fflush is allowed to fail in that case.
1982
1983 2011-04-30  Bruno Haible  <bruno@clisp.org>
1984
1985         dup3: cleanup
1986         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1987
1988 2011-04-30  Bruno Haible  <bruno@clisp.org>
1989
1990         netdb: Make it work in C++ mode.
1991         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1992         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1993         module.
1994         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1995         gl_MODULE_INDICATOR_FOR_TESTS.
1996         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1997         * modules/netdb-c++-tests: New file.
1998         * tests/test-netdb-c++.cc: New file.
1999
2000 2011-04-30  Bruno Haible  <bruno@clisp.org>
2001
2002         New modules 'vfscanf', 'vscanf'.
2003         * modules/vfscanf: New file.
2004         * modules/vscanf: New file.
2005         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2006         here.
2007         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2008         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2009
2010 2011-04-30  Bruno Haible  <bruno@clisp.org>
2011
2012         passfd: Add comments.
2013         * lib/passfd.c: Add comments about platforms.
2014
2015 2011-04-30  Bruno Haible  <bruno@clisp.org>
2016
2017         sys_uio: Make <sys/uio.h> self-contained.
2018         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2019         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2020
2021 2011-04-30  Bruno Haible  <bruno@clisp.org>
2022
2023         sys_socket: Ensure 'struct iovec' definition.
2024         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2025         <sys/socket.h>.
2026         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2027
2028 2011-04-30  Bruno Haible  <bruno@clisp.org>
2029
2030         sys_uio: Protect definition of 'struct iovec'.
2031         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2032         it as a C struct.
2033
2034 2011-04-30  Bruno Haible  <bruno@clisp.org>
2035
2036         manywarnings: fix indentation
2037         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2038
2039 2011-04-30  Pádraig Brady <P@draigBrady.com>
2040
2041         manywarnings: add -Wno-missing-field-initializers if needed.
2042         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2043         option if it's needed to allow initialization with { 0, }
2044
2045 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2046
2047         announce-gen: cosmetic improvement
2048         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2049
2050 2011-04-29  Jim Meyering  <meyering@redhat.com>
2051
2052         vc-list-files: indent with spaces, not TABs
2053         * build-aux/vc-list-files: Convert leading TABs to spaces,
2054         to match the style of most other files in gnulib.
2055
2056         announce-gen: indent with spaces, not TABs
2057         * build-aux/announce-gen: Convert all TABs to spaces, to match
2058         the style of most other files in gnulib.
2059
2060 2011-04-29  Eric Blake  <eblake@redhat.com>
2061
2062         quotearg: avoid uninitialized variable use
2063         * lib/quotearg.c (quoting_options_from_style): Initialize
2064         remaining fields, and ensure that custom styles are only used via
2065         quoting_options rather than quoting_style.
2066
2067 2011-04-29  Jim Meyering  <meyering@redhat.com>
2068
2069         maint.mk: remove unused VC-tag variable
2070         * top/maint.mk (VC-tag): Remove unused variable.
2071
2072 2011-04-29  Bruno Haible  <bruno@clisp.org>
2073
2074         netdb: fix gai_strerror replacements
2075         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2076         * modules/netdb: Substitute it.
2077
2078 2011-04-29  Jim Meyering  <meyering@redhat.com>
2079
2080         test-getcwd.c: avoid new set-but-not-used warning
2081         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2082         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2083         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2084         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2085
2086         test-hash.c: avoid a new shadowing warning
2087         * tests/test-hash.c (main): Don't shadow "dup".
2088
2089 2011-04-28  Eric Blake  <eblake@redhat.com>
2090
2091         getaddrinfo: fix gai_strerror signature
2092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2093         and work around mingw with UNICODE defined.
2094         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2095         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2096         * modules/netdb (Makefile.am): Substitute it.
2097         * lib/netdb.in.h (gai_strerror): Declare replacement.
2098         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2099         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2100         the fix.
2101
2102         getsockopt: avoid compiler warning
2103         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2104         Reported by Matthias Bolte.
2105
2106         tests: drop unused link dependency
2107         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2108         * modules/dirent-safer-tests (Makefile.am): Likewise.
2109         * modules/fdopendir-tests (Makefile.am): Likewise.
2110         * modules/mkfifoat-tests (Makefile.am): Likewise.
2111         * modules/openat-safer-tests (Makefile.am): Likewise.
2112         * modules/openat-tests (Makefile.am): Likewise.
2113         * modules/readlinkat-tests (Makefile.am): Likewise.
2114         * modules/symlinkat-tests (Makefile.am): Likewise.
2115         * modules/linkat-tests (Makefile.am): Likewise.
2116         (Depends-on): Switch to filenamecat-lgpl.
2117         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2118         LIBINTL.
2119         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2120         * tests/test-linkat.c (main): Don't require xalloc.
2121
2122         hash, mgetgroups: drop xalloc dependency
2123         * lib/hash.c (includes): Adjust includes.
2124         * lib/mgetgroups.c (includes): Likewise.
2125         (xgetgroups): Move...
2126         * lib/xgetgroups.c: ...to new file.
2127         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2128         * modules/xgetgroups: New file, split from...
2129         * modules/mgetgroups: ...here.
2130         (Depends-on): Add xalloc-oversized.
2131         * modules/hash (Depends-on): Likewise.
2132         * modules/hash-tests (Depends-on): Drop xalloc.
2133         (test_hash_LDADD): Drop unused library.
2134         * tests/test-hash.c (main): Break xalloc dependency.
2135         (includes): Drop unused include.
2136
2137         xalloc-oversized: new module
2138         * modules/xalloc-oversized: New module.
2139         * modules/xalloc (Depends-on): Add it.
2140         * lib/xalloc.h (xalloc_oversized): Move...
2141         * lib/xalloc-oversized.h: ...into new file.
2142
2143         utimecmp: drop dependency on xmalloc
2144         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2145         due to memory pressure.
2146         * modules/utimecmp (Depends-on): Drop xalloc.
2147
2148 2011-04-27  Eric Blake  <eblake@redhat.com>
2149
2150         getcwd: fix mingw bugs
2151         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2152         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2153         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2154
2155 2011-04-27  Bruno Haible  <bruno@clisp.org>
2156
2157         mkstemps: Ensure declaration on MacOS X 10.5.
2158         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2159         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2160         MacOS X.
2161
2162 2011-04-27  Bruno Haible  <bruno@clisp.org>
2163
2164         mkstemp: More documentation.
2165         * doc/posix-functions/mkstemp.texi: Document header file problem on
2166         MacOS X.
2167
2168 2011-04-27  Bruno Haible  <bruno@clisp.org>
2169
2170         mkstemp: Tweak configure message when cross-compiling.
2171         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2172         result as a guess.
2173
2174 2011-04-27  Bruno Haible  <bruno@clisp.org>
2175
2176         clean-temp: Clarify what it does.
2177         * lib/clean-temp.h: Add more comments.
2178         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2179         module.
2180         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2181         * doc/glibc-functions/mkstemps.texi: Likewise.
2182         * doc/glibc-functions/mkostemps.texi: Likewise.
2183
2184 2011-04-27  Eric Blake  <eblake@redhat.com>
2185
2186         fchdir: avoid extra chdir and fix test
2187         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2188         getcwd-lgpl.
2189         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2190         have to be canonical.
2191         (canonicalize_file_name): Drop unused macro.
2192         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2193
2194         filenamecat-lgpl: fix licence
2195         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2196         when it was first created.
2197
2198         linkat, renameat: add missing dependency
2199         * modules/linkat (Depends-on): Require getcwd-lgpl.
2200         * modules/renameat (Depends-on): Likewise.
2201
2202         tests: reduce dependencies
2203         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2204         * tests/test-renameat.c (main): Likewise.
2205         * modules/linkat-tests (Depends-on): Relax dependency.
2206         * modules/renameat-tests (Depends-on): Likewise.
2207         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2208         dependency explicit.
2209
2210         save-cwd: reduce default dependency
2211         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2212         * lib/save-cwd.c: Update comments.
2213         * NEWS: Document the semantic change.
2214
2215         getcwd: enhance tests
2216         * tests/test-getcwd-lgpl.c: New file, taken from...
2217         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2218         repeat long path stress tests from m4 probe.
2219         * modules/getcwd-lgpl-tests: New module.
2220         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2221         * m4/getcwd-abort-bug.m4: Update comment.
2222         * m4/getcwd-path-max.m4: Likewise.
2223
2224         getcwd-lgpl: new module
2225         * modules/getcwd-lgpl: New module.
2226         * lib/getcwd-lgpl.c: New file.
2227         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2228         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2229         * modules/getcwd (configure.ac): Set C witness.
2230         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2231
2232         getcwd: tweak comments
2233         * m4/getcwd-abort-bug.m4: Fix comments.
2234         * m4/getcwd-path-max.m4: Likewise.
2235         * m4/getcwd.m4: Likewise.
2236
2237 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2238         and Eric Blake  <eblake@redhat.com>
2239
2240         mkstemp: replace if system version uses wrong permissions
2241         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2242         read/write mode bits set in file created by mkstemp.
2243         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2244
2245 2011-04-27  Eric Blake  <eblake@redhat.com>
2246
2247         passfd: avoid compiler warning
2248         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2249         Reported by Laine Stump.
2250
2251 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2252
2253         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2254         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2255
2256 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2257         and Eric Blake  <eblake@redhat.com>
2258
2259         mkstemp: mention clean-temp module
2260         * lib/mkstemp.c: Add comment.
2261         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2262
2263 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2264
2265         inttypes: also provide default values for 32-bit tests
2266         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2267         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2268
2269 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2270
2271         strtoumax: remove dependency on strtoimax
2272         This is like the strtoull change of yesterday.
2273         * modules/strtoumax (Files): Add lib/strtoimax.c.
2274         (Depends-on): Remove strtoimax and add verify.
2275
2276         inttypes-incomplete: new module
2277         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2278         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2279         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2280         of gl_INTTYPES_H.
2281         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2282         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2283         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2284         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2285         * modules/strtoumax, modules/xstrtol (Depends-on):
2286         Depend on inttypes-incomplete, not inttypes.
2287         * modules/inttypes-incomplete: New module, containing the contents
2288         of the old modules/inttypes module, except that the Files: section
2289         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2290         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2291         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2292         (Depends-on): Depend only on inttypes-incomplete.
2293         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2294
2295         inttypes: omit now-redundant strtoimax and strtoumax work
2296         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2297         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2298
2299         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2300         This supports apps that need pointers to strtoimax and strtoumax,
2301         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2302         nonexistent functions.  See
2303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2304         et seq.
2305         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2306         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2307         a macro.
2308         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2309
2310 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2311
2312         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2313
2314 2011-04-25  Bruno Haible  <bruno@clisp.org>
2315
2316         strtol, strtoul: Mark modules as obsolete.
2317         * modules/strtol (Status, Notice): New sections.
2318         * modules/strtoul (Status, Notice): New sections.
2319
2320 2011-04-25  Bruno Haible  <bruno@clisp.org>
2321
2322         strtod: Remove check for strtod, unless supporting old platforms.
2323         * modules/strtod-obsolete: New file.
2324         * m4/strtod-obsolete.m4: New file.
2325         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2326         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2327         * modules/strtod (Depends-on): Add strtod-obsolete.
2328         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2329
2330 2011-04-25  Bruno Haible  <bruno@clisp.org>
2331
2332         strcase: Make module obsolete.
2333         * modules/strcase (Status, Notice): New sections.
2334
2335 2011-04-25  Bruno Haible  <bruno@clisp.org>
2336
2337         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2338         * modules/dup2-obsolete: New file.
2339         * m4/dup2-obsolete.m4: New file.
2340         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2341         gl_FUNC_DUP2_OBSOLETE is not also defined.
2342         * modules/dup2 (Depends-on): Add dup2-obsolete.
2343         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2344
2345 2011-04-25  Bruno Haible  <bruno@clisp.org>
2346
2347         strnlen: Avoid memchr related link error on old obsolete platforms.
2348         * modules/memchr-obsolete: New file.
2349         * m4/memchr-obsolete.m4: New file.
2350         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2351         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2352         * modules/memchr (Depends-on): Add memchr-obsolete.
2353         * modules/strnlen (Depends-on): Likewise.
2354         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2355
2356 2011-04-25  Jim Meyering  <meyering@redhat.com>
2357
2358         maint.mk: makefile_at_at_check extend and clean up
2359         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2360         in addition to */Makefile.am.
2361         Exempt legitimate uses of @VAR@ notation, e.g.,
2362         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2363         Remove obsolete coreutils-specific comment.
2364         Prompted by discussion here:
2365         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2366
2367 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2368
2369         strtoul: remove dependency on strtol
2370         This is so that 'configure' need not check for strtol merely because
2371         the application needs strtoul.
2372         * modules/strtoul (Files): Add lib/strtol.c.
2373         (Depends-on): Remove strtol.
2374
2375         strtoull: remove dependency on strtoul
2376         This is like the strtoll change.
2377         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2378         (Depends-on): Remove strtoul.
2379
2380         strtoll: remove dependency on strtol
2381         This is so that 'configure' need not check for strtol merely because
2382         the application needs strtoll.
2383         * modules/strtoll (Files): Add lib/strtol.c.
2384         (Depends-on): Remove strtol.
2385
2386 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2387
2388         inttypes: Move some configure check to module 'imaxdiv'.
2389         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2390         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2391         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2392
2393 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2394
2395         inttypes: Move some configure check to module 'imaxabs'.
2396         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2397         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2398         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2399
2400 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2401
2402         inttypes: Remove configure tests that are not needed since 2009-12-31.
2403         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2404         gl_cv_header_working_inttypes_h.
2405
2406 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2407
2408         * modules/strnlen (Depends-on): Remove memchr.
2409         The strnlen implementation doesn't need the memchr module's fixes; see
2410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2411
2412         strtol: remove dependency on wchar
2413         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2414         * modules/strtol (Depends-on): Remove wchar.
2415
2416 2011-04-21  Eric Blake  <eblake@redhat.com>
2417
2418         passfd: fix test regression on Linux
2419         * modules/passfd-tests (configure.ac): Correct socketpair check.
2420
2421         passfd: speed up configure and drop unused code
2422         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2423         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2424         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2425         Instead of probing at configure for unix_scm_rights_bsd44_way,
2426         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2427         check to a struct member probe.
2428         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2429         (sendfd, recvfd): Update preprocessor checks.
2430         * modules/passfd (Files): Reflect rename, and drop unused file.
2431         (Depends-on): Drop unused dependency.
2432
2433         passfd: allow compilation on mingw
2434         * modules/sys_socket (Depends-on): Add sys_uio.
2435         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2436         iovec and a minimal struct msghdr.
2437         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2438         * tests/test-sys_socket.c (main): Enhance test.
2439         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2440         guaranteed to provide what we need.
2441         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2442         * modules/passfd-tests (Depends-on): Add sys_wait.
2443         * tests/test-passfd.c (main): Skip test on mingw, for now.
2444         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2445         partial 'struct msghdr' implementation.
2446
2447         sys_uio: new module
2448         * modules/sys_uio: New module.
2449         * modules/sys_uio-tests: Likewise.
2450         * lib/sys_uio.in.h: New file.
2451         * m4/sys_uio_h.m4: Likewise.
2452         * tests/test-sys_uio.c: Likewise.
2453         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2454         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2455
2456 2011-04-20  Jim Meyering  <meyering@redhat.com>
2457
2458         useless-if-before-free: avoid false-positive
2459         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2460         disjunct so that it too requires a terminating ";".  Without that,
2461         this script would identify as useless one statement from gcc that
2462         was not:
2463           if (aligned_ptr)
2464             free (((void **) aligned_ptr) [-1]);
2465
2466 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2467
2468         doc: update users.txt.
2469         * users.txt: Add barcode.
2470
2471 2011-04-19  Bruno Haible  <bruno@clisp.org>
2472
2473         ioctl: Remove link dependency on native Windows.
2474         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2475         (gl_close_fn, gl_ioctl_fn): New types.
2476         (struct fd_hook): Renamed from struct close_hook. Change type of
2477         private_close_fn field. Add private_ioctl_fn field.
2478         (close_hook_fn): Add parameter for primary close method.
2479         (execute_close_hooks, execute_all_close_hooks): Likewise.
2480         (ioctl_hook_fn): New type.
2481         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2482         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2483         argument.
2484         (unregister_fd_hook): Renamed from unregister_close_hook.
2485         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2486         Don't include <unistd.h>.
2487         (close): Remove undef.
2488         (anchor): Update.
2489         (execute_close_hooks): Add argument for primary close method.
2490         (execute_all_close_hooks): Likewise.
2491         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2492         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2493         argument. Allow each argument to be NULL.
2494         (unregister_fd_hook): Renamed from unregister_close_hook.
2495         * lib/close.c (rpl_close): Pass 'close' function pointer to
2496         execute_all_close_hooks.
2497         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2498         (primary_ioctl): New function.
2499         (ioctl): Don't call ioctlsocket here. Instead, call
2500         execute_all_ioctl_hooks.
2501         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2502         close method.
2503         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2504         (fd_sockets_hook): Renamed from close_sockets_hook.
2505         (gl_sockets_startup, gl_sockets_cleanup): Update.
2506         * modules/fd-hook: Renamed from modules/close-hook. Update.
2507         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2508         * modules/sockets (Depends-on): Likewise.
2509         * modules/ioctl (Depends-on): Add fd-hook.
2510         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2511         GNULIB_SOCKET.
2512
2513 2011-04-19  Bruno Haible  <bruno@clisp.org>
2514
2515         Move the support of O_NONBLOCK in open() to the 'open' module.
2516         * modules/nonblocking (Depends-on): Remove 'open'.
2517         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2518         gl_cv_have_open_O_NONBLOCK.
2519         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2520         O_NONBLOCK support.
2521         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2522
2523 2011-04-17  Bruno Haible  <bruno@clisp.org>
2524
2525         pipe2: Simplify code.
2526         * lib/pipe2.c (pipe2): Reduce code duplication.
2527
2528 2011-04-17  Bruno Haible  <bruno@clisp.org>
2529
2530         nonblocking: Add comment.
2531         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2532
2533 2011-04-17  Bruno Haible  <bruno@clisp.org>
2534
2535         nonblocking: Add tests for sockets.
2536         * tests/test-nonblocking-socket.sh: New file.
2537         * tests/test-nonblocking-socket-main.c: New file.
2538         * tests/test-nonblocking-socket-child.c: New file.
2539         * tests/test-nonblocking-socket.h: New file.
2540         * tests/socket-server.h: New file.
2541         * tests/socket-client.h: New file.
2542         * modules/nonblocking-socket-tests: New file.
2543         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
2544
2545 2011-04-17  Bruno Haible  <bruno@clisp.org>
2546
2547         nonblocking: Add tests for pipes.
2548         * tests/test-nonblocking-pipe.sh: New file.
2549         * tests/test-nonblocking-pipe-main.c: New file.
2550         * tests/test-nonblocking-pipe-child.c: New file.
2551         * tests/test-nonblocking-pipe.h: New file.
2552         * tests/test-nonblocking-writer.h: New file.
2553         * tests/test-nonblocking-reader.h: New file.
2554         * tests/test-nonblocking-misc.h: New file.
2555         * modules/nonblocking-pipe-tests: New file.
2556         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
2557
2558 2011-04-16  Bruno Haible  <bruno@clisp.org>
2559
2560         gettext: Clarify the needed programmer actions.
2561         * modules/gettext (Notice): New field.
2562         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2563
2564 2011-04-16  Bruno Haible  <bruno@clisp.org>
2565
2566         strchrnul: Tweak last commit.
2567         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
2568         bug.
2569         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
2570         as in _GL_FUNCDECL_SYS.
2571         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
2572         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
2573
2574 2011-04-15  Eric Blake  <eblake@redhat.com>
2575
2576         strchrnul: work around cygwin bug
2577         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
2578         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
2579         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
2580         * modules/string (Makefile.am): Substitute it.
2581         * lib/string.in.h (strchrnul): Use it.
2582
2583 2011-04-15  Bruno Haible  <bruno@clisp.org>
2584
2585         Don't require lib/stdio-write.c when only module 'stdio' is used.
2586         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
2587         invocation.
2588         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
2589
2590 2011-04-14  Bruno Haible  <bruno@clisp.org>
2591
2592         Support non-blocking pipe I/O in read() on native Windows.
2593         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
2594         (read): New declaration.
2595         * lib/read.c: New file.
2596         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
2597         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
2598         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
2599         vscanf): New declarations.
2600         * lib/stdio-read.c: New file.
2601         * m4/read.m4: New file.
2602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
2603         REPLACE_READ.
2604         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
2605         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2606         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
2607         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
2608         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
2609         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
2610         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
2611         * modules/read: New file.
2612         * modules/nonblocking (Files): Add lib/stdio-read.c.
2613         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
2614         * modules/stdio (Makefile.am): Substitute 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/pread (Depends-on): Add read.
2618         * modules/safe-read (Depends-on): Likewise.
2619         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
2620         gets, scanf, vfscanf, vscanf): Verify signatures.
2621         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
2622         problem with non-blocking pipes.
2623         * doc/posix-functions/fgetc.texi: Likewise.
2624         * doc/posix-functions/fgets.texi: Likewise.
2625         * doc/posix-functions/fread.texi: Likewise.
2626         * doc/posix-functions/fscanf.texi: Likewise.
2627         * doc/posix-functions/getc.texi: Likewise.
2628         * doc/posix-functions/getchar.texi: Likewise.
2629         * doc/posix-functions/gets.texi: Likewise.
2630         * doc/posix-functions/scanf.texi: Likewise.
2631         * doc/posix-functions/vfscanf.texi: Likewise.
2632         * doc/posix-functions/vscanf.texi: Likewise.
2633
2634 2011-04-14  Bruno Haible  <bruno@clisp.org>
2635
2636         Support non-blocking pipe I/O in write() on native Windows.
2637         * lib/write.c (rpl_write): Split a write request that failed merely
2638         because the byte count was larger than the pipe buffer's size.
2639         * doc/posix-functions/write.texi: Mention the problem with large byte
2640         counts.
2641
2642 2011-04-14  Bruno Haible  <bruno@clisp.org>
2643
2644         wchar: Ensure that wchar_t gets defined on uClibc.
2645         * lib/wchar.in.h: On uClibc, include <stddef.h>.
2646         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
2647
2648 2011-04-13  Bruno Haible  <bruno@clisp.org>
2649
2650         safe-write, full-read: Avoid unnecessary compilation units.
2651         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
2652         (Depends-on): Remove safe-read. Add ssize_t.
2653         * modules/full-read (Files): Add lib/full-write.c.
2654         (Depends-on): Add full-write.
2655
2656 2011-04-13  Bruno Haible  <bruno@clisp.org>
2657
2658         Support non-blocking pipe I/O and SIGPIPE in pwrite().
2659         * modules/pwrite (Depends-on): Add 'write'.
2660
2661 2011-04-13  Bruno Haible  <bruno@clisp.org>
2662
2663         Support non-blocking pipe I/O in write() on native Windows.
2664         * lib/unistd.in.h (write): Enable replacement also if
2665         GNULIB_UNISTD_H_NONBLOCKING is 1.
2666         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
2667         (rpl_write): When failing to write on a non-blocking pipe, change
2668         errno from ENOSPC to EAGAIN.
2669         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
2670         putchar, puts, vfprintf, vprintf): Enable replacement also if
2671         GNULIB_STDIO_H_NONBLOCKING is 1.
2672         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
2673         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
2674         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
2675         CALL_WITH_SIGPIPE_EMULATION.
2676         (CALL_WITH_SIGPIPE_EMULATION): Use them.
2677         * m4/nonblocking.m4: New file.
2678         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
2679         for non-blocking I/O support.
2680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2681         GNULIB_UNISTD_H_NONBLOCKING.
2682         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
2683         required for non-blocking I/O support.
2684         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
2685         * modules/nonblocking (Files): Add m4/nonblocking.m4,
2686         lib/stdio-write.c, m4/asm-underscore.m4.
2687         (Depends-on): Add stdio, unistd.
2688         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
2689         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
2690         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
2691         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
2692         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
2693         problem with non-blocking pipes.
2694         * doc/posix-functions/fputc.texi: Likewise.
2695         * doc/posix-functions/fputs.texi: Likewise.
2696         * doc/posix-functions/fwrite.texi: Likewise.
2697         * doc/posix-functions/printf.texi: Likewise.
2698         * doc/posix-functions/putc.texi: Likewise.
2699         * doc/posix-functions/putchar.texi: Likewise.
2700         * doc/posix-functions/puts.texi: Likewise.
2701         * doc/posix-functions/vfprintf.texi: Likewise.
2702         * doc/posix-functions/vprintf.texi: Likewise.
2703         * doc/posix-functions/write.texi: Likewise.
2704
2705 2011-04-10  Jim Meyering  <meyering@redhat.com>
2706
2707         maint.mk: prohibit doubled words
2708         Detect them also when they're separated by a newline.
2709         There are 3 ways to customize it:
2710           - disable the test on a per file basis, as usual with rules using
2711             $(VC_LIST_EXCEPT)
2712           - replace the default doubled-word-selecting regexp (affects all files)
2713           - ignore a particular file-vs-doubled-word match
2714         I nearly used that last one to ignore the "is is" match in
2715         coreutils' NEWS file, since the text was "ls -is is ..."
2716         To do that, I would have added this line to cfg.mk:
2717           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
2718         but it would have ignored any "is is" match in NEWS.
2719         Low probability, but still...
2720         Instead, I changed the text, slightly:
2721           -  ls -is is now consistent with ls -lis in ignoring values returned
2722           +  "ls -is" is now consistent with ls -lis in ignoring values returned
2723         * top/maint.mk (prohibit_double_word_RE_): Provide default.
2724         (prohibit_doubled_word_): Define.
2725         (sc_prohibit_doubled_word): New rule.
2726         (sc_prohibit_the_the): Remove.  Subsumed by the above.
2727
2728 2011-04-10  Jim Meyering  <meyering@redhat.com>
2729
2730         maint: fix doubled-word typo in comment
2731         * m4/gethostname.m4: s/is is/it is/
2732         * m4/getdomainname.m4: Likewise.
2733
2734 2011-04-10  Jim Meyering  <meyering@redhat.com>
2735
2736         maint: remove doubled word: s/it it/it/
2737         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
2738
2739 2011-04-10  Jim Meyering  <meyering@redhat.com>
2740
2741         maint.mk: remove useless semicolon and backslash
2742         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
2743         semicolon and backslash.
2744
2745 2011-04-10  Bruno Haible  <bruno@clisp.org>
2746
2747         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
2748         * modules/stdint-tests (Depends-on): Add wchar.
2749
2750 2011-04-10  Jim Meyering  <meyering@redhat.com>
2751
2752         maint: remove doubled words in comments, e.g., s/a a/a/
2753         * lib/strptime.c (day_of_the_week): s/the the/the/
2754         * tests/test-chown.h (test_chown): s/a a/a/
2755
2756         test-chown.h: correct a cast
2757         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
2758         when the destination is a stat.st_gid.
2759
2760 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
2761
2762         getaddrinfo: Fix test for sa_len member.
2763         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
2764         include <sys/types.h> before <sys/socket.h>.
2765
2766 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
2767
2768         maint: change "can not" to "cannot"
2769         * doc/posix-functions/iconv.texi (iconv): This one crossed line
2770         boundaries.
2771
2772 2011-04-09  Jim Meyering  <meyering@redhat.com>
2773
2774         maint: change "a a" to "a"
2775         * tests/test-lchown.h (test_lchown): s/a a/a/
2776
2777         maint.mk: prohibit \<the the\>
2778         * top/maint.mk (sc_prohibit_the_the): New rule.
2779
2780         maint: fix "the the" in comment
2781         * lib/count-one-bits.h: s/the the/the/
2782
2783         maint: change "can not" to "cannot"
2784         But do not change the occurrences in maintain.texi or in
2785         build-aux/po/Makefile.in.in, which I presume comes from gettext.
2786         * doc/gnulib-tool.texi: s/can not/cannot/
2787         * doc/posix-functions/accept.texi (accept): Likewise.
2788         * doc/posix-functions/socket.texi (socket): Likewise.
2789         * lib/mbrtowc.c: Likewise.
2790
2791         maint.mk: prohibit use of "can not"
2792         * top/maint.mk (sc_prohibit_can_not): New rule.
2793         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
2794
2795 2011-04-09  Bruno Haible  <bruno@clisp.org>
2796
2797         careadlinkat: Guard against misuse of careadlinkatcwd.
2798         * lib/careadlinkat.c: Include <stdlib.h>.
2799         (careadlinkatcwd): Check that the fd argument is as expected.
2800
2801 2011-04-09  Bruno Haible  <bruno@clisp.org>
2802
2803         careadlinkat: Use common coding style.
2804         * lib/careadlinkat.c: Move gnulib includes after system includes.
2805
2806 2011-04-09  Bruno Haible  <bruno@clisp.org>
2807
2808         careadlinkat: Clarify specification.
2809         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
2810         (careadlinkatcwd): Add comment.
2811         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2812
2813 2011-04-09  Bruno Haible  <bruno@clisp.org>
2814
2815         areadlinkat: Avoid link error on many platforms.
2816         * modules/areadlinkat (Depends-on): Add areadlink.
2817
2818 2011-04-09  Bruno Haible  <bruno@clisp.org>
2819
2820         allocator, careadlinkat: Fix double-inclusion guard.
2821         * lib/allocator.h: Fix double-inclusion guard.
2822         * lib/careadlinkat.h: Likewise.
2823
2824 2011-04-09  Bruno Haible  <bruno@clisp.org>
2825
2826         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2827         * lib/relocwrapper.c: Update dependencies hierarchy.
2828         * build-aux/install-reloc: Update list of files to be compiled.
2829         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2830         lib/allocator.[hc].
2831
2832 2011-04-08  Eric Blake  <eblake@redhat.com>
2833
2834         strftime: silence gnulib-tool warning
2835         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2836
2837 2011-04-08  Bruno Haible  <bruno@clisp.org>
2838
2839         verify: Fix syntax error with GCC 4.6 in C++ mode.
2840         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2841         (HAVE_STATIC_ASSERT): New macro.
2842         (verify_true, verify): Use 'static_assert' if it is supported and
2843         '_Static_assert' is not supported.
2844
2845 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2846
2847         allocator: New module.
2848         * modules/allocator, lib/allocator.c: New files.
2849         * lib/allocator.h (stdlib_allocator): New decl.
2850         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2851         Remove.  Do not include <stdlib.h>.
2852         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2853         * modules/careadlinkat (Files): Remove lib/allocator.h.
2854         (Depends-on): Add allocator.
2855
2856         stdlib: let modules use system malloc, realloc
2857         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2858         if !_GL_USE_STDLIB_ALLOC.
2859         (malloc, realloc): Limit this change to a smaller scope.
2860
2861         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2862         (malloc, realloc): Don't #undef; no longer needed.
2863         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2864         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2865         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2866         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2867         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2868         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2869         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2870         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2871
2872         careadlinkat: rename members to avoid problem
2873         * lib/allocator.h (struct allocator): Rename members from
2874         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2875         and realloc are #define'd.  Reported by Eric Blake in
2876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2877         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2878
2879 2011-04-08  Eric Blake  <eblake@redhat.com>
2880
2881         nonblocking: reduce dependency
2882         * tests/test-nonblocking.c: Only test sockets when in use.
2883         * modules/nonblocking-tests (Depends-on): Drop socket.
2884         (Makefile.am): Link even if sockets are not present.
2885         * modules/pipe2-tests (Makefile.am): Likewise.
2886         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2887
2888         pipe2: fix O_NONBLOCK support on mingw
2889         * modules/pipe2 (Depends-on): Add nonblocking.
2890         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2891         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2892         * tests/test-nonblocking.c (main): Likewise.
2893         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2894
2895         fcntl-h: fix O_ACCMODE on cygwin
2896         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2897         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2898
2899         pipe-filter: drop O_NONBLOCK workarounds
2900         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2901         * modules/pipe-filter-ii (Depends-on): Likewise.
2902         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2903
2904         nonblocking: provide O_NONBLOCK for mingw
2905         * modules/nonblocking (Depends-on): Add open.
2906         (configure.ac): Set new witness macro.
2907         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2908         * modules/fcntl-h (Makefile.am): Substitute it.
2909         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2910         nonblocking module is in use.
2911         * lib/nonblocking.c: Adjust portability test.
2912         * lib/open.c (open): Don't let native open see gnulib flag.
2913         * tests/test-fcntl-h.c (main): Enhance test.
2914         * tests/test-open.h (test_open): Likewise.
2915         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2916
2917         careadlinkat: fix compilation error on mingw
2918         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2919         within struct allocator.
2920
2921 2011-04-06  Eric Blake  <eblake@redhat.com>
2922
2923         binary-io: relicense under LGPLv2+
2924         * modules/binary-io (License): Relax to LGPLv2+.
2925         Requested for libvirt, and required by pipe2.
2926
2927 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2928
2929         verify: use _Static_assert if available
2930         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2931         (verify_true, verify): Use it if available.  This generates better
2932         diagnostics with GCC 4.6.0 and later.
2933
2934 2011-04-05  Bruno Haible  <bruno@clisp.org>
2935
2936         Remove leftover generated .h files after config.status changed.
2937
2938         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2939         GL_GENERATE_ALLOCA_H.
2940         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2941         GL_GENERATE_ALLOCA_H evaluates to false.
2942
2943         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2944         GL_GENERATE_ARGZ_H.
2945         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2946         evaluates to false.
2947
2948         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2949         GL_GENERATE_BYTESWAP_H.
2950         * modules/byteswap (Makefile.am): Remove byteswap.h if
2951         GL_GENERATE_BYTESWAP_H evaluates to false.
2952
2953         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2954         GL_GENERATE_ERRNO_H.
2955         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2956         evaluates to false.
2957
2958         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2959         GL_GENERATE_FLOAT_H.
2960         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2961         evaluates to false.
2962
2963         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2964         GL_GENERATE_FNMATCH_H.
2965         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2966         GL_GENERATE_FNMATCH_H evaluates to false.
2967
2968         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2969         GL_GENERATE_GLOB_H.
2970         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2971         evaluates to false.
2972
2973         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2974         automake conditional GL_GENERATE_ICONV_H.
2975         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2976         evaluates to false.
2977
2978         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2979         GL_GENERATE_NETINET_IN_H.
2980         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2981         GL_GENERATE_NETINET_IN_H evaluates to false.
2982
2983         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2984         conditional GL_GENERATE_PTHREAD_H.
2985         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2986         * modules/pthread (Makefile.am): Remove pthread.h if
2987         GL_GENERATE_PTHREAD_H evaluates to false.
2988
2989         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2990         GL_GENERATE_SCHED_H.
2991         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2992         evaluates to false.
2993
2994         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2995         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2996         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2997         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2998
2999         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3000         GL_GENERATE_STDARG_H.
3001         * modules/stdarg (Makefile.am): Remove stdarg.h if
3002         GL_GENERATE_STDARG_H evaluates to false.
3003
3004         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3005         GL_GENERATE_STDBOOL_H.
3006         * modules/stdbool (Makefile.am): Remove stdbool.h if
3007         GL_GENERATE_STDBOOL_H evaluates to false.
3008
3009         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3010         conditional GL_GENERATE_STDDEF_H.
3011         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3012         * modules/stddef (Makefile.am): Remove stddef.h if
3013         GL_GENERATE_STDDEF_H evaluates to false.
3014
3015         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3016         GL_GENERATE_STDINT_H.
3017         * modules/stdint (Makefile.am): Remove stdint.h if
3018         GL_GENERATE_STDINT_H evaluates to false.
3019
3020         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3021         GL_GENERATE_SYSEXITS_H.
3022         * modules/sysexits (Makefile.am): Remove sysexits.h if
3023         GL_GENERATE_SYSEXITS_H evaluates to false.
3024
3025         Reported by Karl Berry and Ralf Wildenhues.
3026
3027 2011-04-05  Bruno Haible  <bruno@clisp.org>
3028
3029         Ensure to rebuild generated .h files when config.status has changed.
3030         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3031         config.status.
3032         * modules/ctype (Makefile.am): Likewise.
3033         * modules/dirent (Makefile.am): Likewise.
3034         * modules/errno (Makefile.am): Likewise.
3035         * modules/fcntl-h (Makefile.am): Likewise.
3036         * modules/float (Makefile.am): Likewise.
3037         * modules/getopt-posix (Makefile.am): Likewise.
3038         * modules/glob (Makefile.am): Likewise.
3039         * modules/iconv-h (Makefile.am): Likewise.
3040         * modules/inttypes (Makefile.am): Likewise.
3041         * modules/langinfo (Makefile.am): Likewise.
3042         * modules/locale (Makefile.am): Likewise.
3043         * modules/math (Makefile.am): Likewise.
3044         * modules/netdb (Makefile.am): Likewise.
3045         * modules/netinet_in (Makefile.am): Likewise.
3046         * modules/poll-h (Makefile.am): Likewise.
3047         * modules/pthread (Makefile.am): Likewise.
3048         * modules/pty (Makefile.am): Likewise.
3049         * modules/sched (Makefile.am): Likewise.
3050         * modules/search (Makefile.am): Likewise.
3051         * modules/selinux-h (Makefile.am): Likewise.
3052         * modules/signal (Makefile.am): Likewise.
3053         * modules/spawn (Makefile.am): Likewise.
3054         * modules/stdarg (Makefile.am): Likewise.
3055         * modules/stdbool (Makefile.am): Likewise.
3056         * modules/stddef (Makefile.am): Likewise.
3057         * modules/stdint (Makefile.am): Likewise.
3058         * modules/stdio (Makefile.am): Likewise.
3059         * modules/stdlib (Makefile.am): Likewise.
3060         * modules/string (Makefile.am): Likewise.
3061         * modules/strings (Makefile.am): Likewise.
3062         * modules/sys_file (Makefile.am): Likewise.
3063         * modules/sys_ioctl (Makefile.am): Likewise.
3064         * modules/sys_select (Makefile.am): Likewise.
3065         * modules/sys_socket (Makefile.am): Likewise.
3066         * modules/sys_stat (Makefile.am): Likewise.
3067         * modules/sys_time (Makefile.am): Likewise.
3068         * modules/sys_times (Makefile.am): Likewise.
3069         * modules/sys_utsname (Makefile.am): Likewise.
3070         * modules/sys_wait (Makefile.am): Likewise.
3071         * modules/sysexits (Makefile.am): Likewise.
3072         * modules/termios (Makefile.am): Likewise.
3073         * modules/time (Makefile.am): Likewise.
3074         * modules/unistd (Makefile.am): Likewise.
3075         * modules/wchar (Makefile.am): Likewise.
3076         * modules/wctype-h (Makefile.am): Likewise.
3077         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3078
3079 2011-04-05  Bruno Haible  <bruno@clisp.org>
3080
3081         pipe2: Relicense under LGPLv2+.
3082         * modules/pipe2 (License): Change to LGPLv2+.
3083         Requested by Eric Blake, for libvirt.
3084
3085 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3086
3087         bootstrap: compute gnulib_extra_files after updating build_aux
3088         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3089         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3090
3091 2011-04-05  Eric Blake  <eblake@redhat.com>
3092
3093         bootstrap: preserve git whitelist item sorting
3094         * build-aux/bootstrap (sort_patterns): New function.
3095         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3096
3097 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3098
3099         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3100         sc_space_tab check.
3101
3102 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3103
3104         areadlink, areadlinkat: rewrite in terms of careadlinkat
3105         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3106         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3107         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3108         (malloc, realloc): Remove #undefs.
3109         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3110         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3111         readlink, ssize_t, stdint, unistd.
3112         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3113         areadlink, stdint.
3114
3115         careadlinkat: new module
3116         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3117         * modules/careadlinkat: New files, written by me with
3118         a review and feedback from Ben Pfaff in
3119         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3120
3121 2011-04-01  Bruno Haible  <bruno@clisp.org>
3122
3123         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3124         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3125         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3126         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3127         Reported by Bruce Korb <bruce.korb@gmail.com>.
3128
3129 2011-04-01  Bruno Haible  <bruno@clisp.org>
3130
3131         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3132         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3133         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3134         * modules/wcpcpy (Depends-on): Add extensions.
3135         * modules/wcpncpy (Depends-on): Likewise.
3136         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3137         systems.
3138         * doc/posix-functions/wcpncpy.texi: Likewise.
3139         * doc/posix-functions/wcwidth.texi: Likewise.
3140
3141 2011-03-31  Eric Blake  <eblake@redhat.com>
3142
3143         nonblocking: fix mingw test failures
3144         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3145         non-blocking flag on regular file.
3146         (get_nonblocking_flag): Set errno on invalid fd.
3147         * tests/test-nonblocking.c (main): Avoid test failure on
3148         directories if fchdir is not active.
3149         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3150
3151 2011-03-31  Bruno Haible  <bruno@clisp.org>
3152
3153         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3154         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3155         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3156         Reported by Simon Josefsson <simon@josefsson.org>.
3157
3158 2011-03-31  Bruno Haible  <bruno@clisp.org>
3159         and Eric Blake  <eblake@redhat.com>
3160
3161         nonblocking: new module
3162         * modules/nonblocking: New module.
3163         * modules/nonblocking-tests: Likewise.
3164         * lib/nonblocking.h: New file.
3165         * lib/nonblocking.c: Likewise.
3166         * tests/test-nonblocking.c: New test.
3167         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3168
3169 2011-03-30  Bruno Haible  <bruno@clisp.org>
3170
3171         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3172         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3173         instead of 'printf' format for GCC >= 4.4.
3174         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3175         (fprintf, printf, vfprintf, vprintf): Declare with
3176         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3177         the system's vfprintf() function.
3178         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3179
3180 2011-03-30  Eric Blake  <eblake@redhat.com>
3181
3182         passfd: fix scoping bug
3183         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3184         before sendmsg/recvmsg.
3185
3186         passfd: standardize coding conventions
3187         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3188         can be learned at compile time.
3189         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3190         ifdefs.
3191         (sendfd, recvfd): Follow gnulib code conventions.
3192
3193         passfd: fix incorrect sendmsg arguments
3194         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3195         incorrect msg_controllen value.
3196         * modules/passfd-tests (Depends-on): Check for alarm.
3197         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3198         Reported by Bastien ROUCARIES.
3199
3200 2011-03-30  Bruno Haible  <bruno@clisp.org>
3201
3202         c-strcasestr: Relicense under LGPLv2+.
3203         * modules/c-strcasestr (License): Change to LGPLv2+.
3204         Requested by Eric Blake, for libvirt.
3205
3206 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3207
3208         * users.txt: Add libidn2.  Fix libtasn1 link.
3209
3210 2011-03-30  Jim Meyering  <meyering@redhat.com>
3211
3212         tests: readlink* ("",... fails with EINVAL on newer kernels
3213         readlink and readlinkat have typically failed with ENOENT for
3214         the invalid, empty file name,  "".  However, with the advent
3215         of linux-2.6.39, they fail with EINVAL.
3216         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3217         when operating on the empty file name.
3218         * tests/test-readlink.h (test_readlink): Likewise.
3219
3220 2011-03-29  Bruno Haible  <bruno@clisp.org>
3221
3222         Relicense some modules under LGPLv2+, for libidn2.
3223         * modules/array-mergesort (License): Change to LGPLv2+.
3224         * modules/c-strcaseeq (License): Likewise.
3225         * modules/striconveh (License): Likewise.
3226         * modules/striconveha (License): Likewise.
3227         * modules/uniconv/base (License): Likewise.
3228         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3229         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3230         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3231         * modules/unictype/base (License): Likewise.
3232         * modules/unictype/bidiclass-of (License): Likewise.
3233         * modules/unictype/category-M (License): Likewise.
3234         * modules/unictype/category-none (License): Likewise.
3235         * modules/unictype/category-of (License): Likewise.
3236         * modules/unictype/category-test (License): Likewise.
3237         * modules/unictype/category-test-withtable (License): Likewise.
3238         * modules/unictype/combining-class (License): Likewise.
3239         * modules/unictype/joiningtype-of (License): Likewise.
3240         * modules/unictype/scripts (License): Likewise.
3241         * modules/uninorm/base (License): Likewise.
3242         * modules/uninorm/canonical-decomposition (License): Likewise.
3243         * modules/uninorm/composition (License): Likewise.
3244         * modules/uninorm/decompose-internal (License): Likewise.
3245         * modules/uninorm/decomposition-table (License): Likewise.
3246         * modules/uninorm/nfc (License): Likewise.
3247         * modules/uninorm/nfd (License): Likewise.
3248         * modules/uninorm/u32-normalize (License): Likewise.
3249         * modules/unistr/base (License): Likewise.
3250         * modules/unistr/u32-cpy (License): Likewise.
3251         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3252         * modules/unistr/u32-to-u8 (License): Likewise.
3253         * modules/unistr/u32-uctomb (License): Likewise.
3254         * modules/unistr/u8-check (License): Likewise.
3255         * modules/unistr/u8-mblen (License): Likewise.
3256         * modules/unistr/u8-mbtouc (License): Likewise.
3257         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3258         * modules/unistr/u8-mbtoucr (License): Likewise.
3259         * modules/unistr/u8-prev (License): Likewise.
3260         * modules/unistr/u8-strlen (License): Likewise.
3261         * modules/unistr/u8-to-u32 (License): Likewise.
3262         * modules/unistr/u8-uctomb (License): Likewise.
3263         * modules/unitypes (License): Likewise.
3264         Requested by Simon Josefsson.
3265
3266 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3267
3268         lib-symbol-visibility: Add a notice.
3269         * modules/lib-symbol-visibility (Notice): New field.
3270
3271 2011-03-29  Bruno Haible  <bruno@clisp.org>
3272
3273         getaddrinfo: Doc fix.
3274         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3275         section "fixed in Gnulib".
3276
3277 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3278
3279         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3280         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3281
3282 2011-03-26  Bruno Haible  <bruno@clisp.org>
3283
3284         unictype/property-byname: Reduce the number of load-time relocations.
3285         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3286         (UC_PROPERTY_INDEX_*): New enumeration values.
3287         (uc_property_byname): Convert an index from the lookup table to an
3288         uc_property_t.
3289         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3290         values.
3291
3292 2011-03-26  Bruno Haible  <bruno@clisp.org>
3293
3294         unictype/property-byname: Allow omitted word separators and aliases.
3295         * lib/unictype/pr_byname.gperf: Add property names without word
3296         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3297         for 'space'.
3298
3299 2011-03-26  Bruno Haible  <bruno@clisp.org>
3300
3301         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3302         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3303         also hyphens to space.
3304         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3305         without spaces.
3306         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3307
3308 2011-03-26  Bruno Haible  <bruno@clisp.org>
3309
3310         unictype/joiningtype-byname: Recognize long names as well.
3311         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3312         a long name.
3313         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3314         unictype/joiningtype_byname.h.
3315         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3316         * lib/unictype/joiningtype_byname.gperf: New file.
3317         * modules/unictype/joiningtype-byname (Files): Add
3318         lib/unictype/joiningtype_byname.gperf.
3319         (Depends-on): Add gperf.
3320         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3321         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3322         long names.
3323
3324         Tests for module 'unictype/joiningtype-longname'.
3325         * modules/unictype/joiningtype-longname-tests: New file.
3326         * tests/unictype/test-joiningtype_longname.c: New file.
3327
3328         New module 'unictype/joiningtype-longname'.
3329         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3330         * lib/unictype/joiningtype_longname.c: New file.
3331         * modules/unictype/joiningtype-longname: New file.
3332         * modules/unictype/joiningtype-all (Depends-on): Add
3333         unictype/joiningtype-longname.
3334
3335 2011-03-26  Bruno Haible  <bruno@clisp.org>
3336
3337         unictype/bidiclass-byname: Recognize long names as well.
3338         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3339         name.
3340         * lib/unictype/bidi_byname.c: Include <string.h>,
3341         unictype/bidi_byname.h.
3342         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3343         * lib/unictype/bidi_byname.gperf: New file.
3344         * modules/unictype/bidiclass-byname (Files): Add
3345         lib/unictype/bidi_byname.gperf.
3346         (Depends-on): Add gperf.
3347         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3348         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3349         long names.
3350
3351         Tests for module 'unictype/bidiclass-longname'.
3352         * modules/unictype/bidiclass-longname-tests: New file.
3353         * tests/unictype/test-bidi_longname.c: New file.
3354
3355         New module 'unictype/bidiclass-longname'.
3356         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3357         * lib/unictype/bidi_longname.c: New file.
3358         * modules/unictype/bidiclass-longname: New file.
3359         * modules/unictype/bidiclass-all (Depends-on): Add
3360         unictype/bidiclass-longname.
3361
3362 2011-03-26  Bruno Haible  <bruno@clisp.org>
3363
3364         unictype/bidi*: Rename modules.
3365         * modules/unictype/bidiclass-all: Renamed from
3366         modules/unictype/bidicategory-all.
3367         * modules/unictype/bidiclass-name: Renamed from
3368         modules/unictype/bidiclass-name.
3369         (Description): Update.
3370         * modules/unictype/bidiclass-name-tests: Renamed from
3371         modules/unictype/bidicategory-name-tests.
3372         * modules/unictype/bidiclass-byname: Renamed from
3373         modules/unictype/bidicategory-byname.
3374         (Description): Update.
3375         * modules/unictype/bidiclass-byname-tests: Renamed from
3376         modules/unictype/bidicategory-byname-tests.
3377         * modules/unictype/bidiclass-of: Renamed from
3378         modules/unictype/bidicategory-of.
3379         (Description): Update.
3380         * modules/unictype/bidiclass-of-tests: Renamed from
3381         modules/unictype/bidicategory-of-tests.
3382         * modules/unictype/bidiclass-test: Renamed from
3383         modules/unictype/bidicategory-test.
3384         (Description): Update.
3385         * modules/unictype/bidiclass-test-tests: Renamed from
3386         modules/unictype/bidicategory-test-tests.
3387         * modules/unictype/bidicategory-all: New file, a simple redirection.
3388         * modules/unictype/bidicategory-name: Likewise.
3389         * modules/unictype/bidicategory-byname: Likewise.
3390         * modules/unictype/bidicategory-of: Likewise.
3391         * modules/unictype/bidicategory-test: Likewise.
3392         * modules/unictype/property-bidi-* (Dependencies): Update.
3393         * lib/unictype/bidi_*.c: Update comment.
3394
3395 2011-03-26  Bruno Haible  <bruno@clisp.org>
3396
3397         unictype/bidi*: Rename functions, part 2.
3398         * modules/unictype/bidicategory-name (configure.ac): Update required
3399         libunistring version.
3400         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3401
3402 2011-03-25  Bruno Haible  <bruno@clisp.org>
3403
3404         New module 'unictype/combining-class-all'.
3405         * modules/unictype/combining-class-all: New file.
3406
3407         Tests for module 'unictype/combining-class-byname'.
3408         * modules/unictype/combining-class-byname-tests: New file.
3409         * tests/unictype/test-combiningclass_byname.c: New file.
3410
3411         New module 'unictype/combining-class-byname'.
3412         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3413         * lib/unictype/combiningclass_byname.c: New file.
3414         * lib/unictype/combiningclass_byname.gperf: New file.
3415         * modules/unictype/combining-class-byname: New file.
3416
3417         Tests for module 'unictype/combining-class-longname'.
3418         * modules/unictype/combining-class-longname-tests: New file.
3419         * tests/unictype/test-combiningclass_longname.c: New file.
3420
3421         New module 'unictype/combining-class-longname'.
3422         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3423         * lib/unictype/combiningclass_longname.c: New file.
3424         * modules/unictype/combining-class-longname: New file.
3425
3426         Tests for module 'unictype/combining-class-name'.
3427         * modules/unictype/combining-class-name-tests: New file.
3428         * tests/unictype/test-combiningclass_name.c: New file.
3429
3430         New module 'unictype/combining-class-name'.
3431         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3432         * lib/unictype/combiningclass_name.c: New file.
3433         * modules/unictype/combining-class-name: New file.
3434
3435 2011-03-25  Bruno Haible  <bruno@clisp.org>
3436
3437         unictype/combining-class: Rename source files.
3438         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3439         of unictype/combining.h.
3440         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3441         Update.
3442         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3443         * modules/unictype/combining-class (Description): Fix.
3444         (Files, Makefile.am): Update.
3445         * tests/unictype/test-combiningclass.c: Renamed from
3446         tests/unictype/test-combining.c.
3447         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3448
3449 2011-03-25  Bruno Haible  <bruno@clisp.org>
3450
3451         unictype: Update list of canonical combining classes.
3452         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3453
3454 2011-03-25  Bruno Haible  <bruno@clisp.org>
3455
3456         unictype/category-byname: Recognize long names as well.
3457         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3458         a long name.
3459         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3460         unictype/categ_byname.h.
3461         (UC_CATEGORY_INDEX_*): New enumeration values.
3462         (uc_general_category_byname): Use uc_general_category_lookup and
3463         convert from index to value.
3464         * lib/unictype/categ_byname.gperf: New file.
3465         * modules/unictype/category-byname (Files): Add
3466         lib/unictype/categ_byname.gperf.
3467         (Depends-on): Add gperf.
3468         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3469         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3470         long names.
3471
3472         Tests for module 'unictype/category-longname'.
3473         * modules/unictype/category-longname-tests: New file.
3474         * tests/unictype/test-categ_longname.c: New file.
3475
3476         New module 'unictype/category-longname'.
3477         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3478         * lib/unictype/categ_longname.c: New file.
3479         * modules/unictype/category-longname: New file.
3480         * modules/unictype/category-all (Depends-on): Add it.
3481
3482 2011-03-25  Bruno Haible  <bruno@clisp.org>
3483
3484         Tests for module 'unictype/category-LC'.
3485         * modules/unictype/category-LC-tests: New file.
3486         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3487
3488         New module 'unictype/category-LC'.
3489         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3490         (UC_CATEGORY_LC): New declaration.
3491         (UC_CASED_LETTER): New macro.
3492         * lib/gen-uni-tables.c (is_category_LC): New function.
3493         (output_categories): Also handle category LC.
3494         (UC_CATEGORY_MASK_LC): New enumeration value.
3495         (general_category_byname): Also handle category LC.
3496         * lib/unictype/categ_LC.c: New file.
3497         * lib/unictype/categ_LC.h: New file, automatically generated.
3498         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3499         category LC.
3500         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3501         * modules/unictype/category-LC: New file.
3502         * modules/unictype/category-byname (Depends-on): Add
3503         unictype/category-LC.
3504         * modules/unictype/category-all (Depends-on): Likewise.
3505
3506 2011-03-25  Eric Blake  <eblake@redhat.com>
3507
3508         xmalloc: revert yesterday's regression
3509         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3510         realloc's underlying behavior (allowing allocation of zero-size
3511         objects, especially if malloc-gnu is also in use).
3512
3513 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3514
3515         maint.mk: add missing version to VC-tag
3516         * top/maint.mk: git tag was missing actual tag name; add it.
3517
3518         valgrind: do leak checking, and exit with code 1 on error (not 0)
3519         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3520         to VALGRIND.
3521
3522 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3523
3524         posix-modules: say what it does.
3525         * posix-modules: Add a line to the --help output saying what it does.
3526
3527 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3528
3529         xmalloc: Do not leak if underlying realloc is C99 compatible.
3530         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3531         This avoids a leak on C99-based systems.  See
3532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3533
3534 2011-03-24  Eric Blake  <eblake@redhat.com>
3535
3536         realloc: document portability problem
3537         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3538         passing 0 size to realloc.
3539
3540 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3541
3542         doc: update users.txt
3543         * users.txt: Add cvsps, tmpwatch
3544
3545 2011-03-23  Matt Rice  <ratmice@gmail.com>
3546
3547         doc: update users.txt
3548         * users.txt: Add gdb.
3549
3550 2011-03-23  Jim Meyering  <meyering@redhat.com>
3551
3552         doc: update users.txt
3553         Looking through matches up to the following URL (there are still
3554         several more pages), I found several projects that use gnulib:
3555         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
3556         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
3557         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
3558
3559 2011-03-22  Bruno Haible  <bruno@clisp.org>
3560
3561         unictype/bidi*: Rename functions.
3562         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
3563         uc_bidi_class, uc_is_bidi_class): New declarations.
3564         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
3565         uc_bidi_category_byname.
3566         (uc_bidi_category_byname): New function.
3567         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
3568         u_bidi_category_name.
3569         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
3570         (uc_bidi_category_name): New function.
3571         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
3572         uc_bidi_category.
3573         (uc_bidi_category): New function.
3574         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
3575         uc_is_bidi_category. Invoke uc_bidi_class.
3576         (uc_is_bidi_category): New function.
3577         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
3578         instead of uc_bidi_category_byname.
3579         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
3580         instead of uc_bidi_category_name.
3581         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
3582         uc_bidi_category.
3583         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
3584         instead of uc_is_bidi_category.
3585
3586 2011-03-21  Bruno Haible  <bruno@clisp.org>
3587
3588         New module 'unictype/joininggroup-all'.
3589         * modules/unictype/joininggroup-all: New file.
3590
3591         Tests for module 'unictype/joininggroup-of'.
3592         * modules/unictype/joininggroup-of-tests: New file.
3593         * tests/unictype/test-joininggroup_of.c: New file.
3594         * tests/unictype/test-joininggroup_of.h: New file, automatically
3595         generated by gen-uni-tables.
3596
3597         New module 'unictype/joininggroup-of'.
3598         * modules/unictype/joininggroup-of: New file.
3599         * lib/unictype/joininggroup_of.c: New file.
3600         * lib/unictype/joininggroup_of.h: New file, automatically generated by
3601         gen-uni-tables.
3602
3603         Tests for module 'unictype/joininggroup-byname'.
3604         * modules/unictype/joininggroup-byname-tests: New file.
3605         * tests/unictype/test-joininggroup_byname.c: New file.
3606
3607         New module 'unictype/joininggroup-byname'.
3608         * modules/unictype/joininggroup-byname: New file.
3609         * lib/unictype/joininggroup_byname.c: New file.
3610         * lib/unictype/joininggroup_byname.gperf: New file.
3611
3612         Tests for module 'unictype/joininggroup-name'.
3613         * modules/unictype/joininggroup-name-tests: New file.
3614         * tests/unictype/test-joininggroup_name.c: New file.
3615
3616         New module 'unictype/joininggroup-name'.
3617         * modules/unictype/joininggroup-name: New file.
3618         * lib/unictype/joininggroup_name.c: New file.
3619         * lib/unictype/joininggroup_name.h: New file.
3620
3621         New module 'unictype/joiningtype-all'.
3622         * modules/unictype/joiningtype-all: New file.
3623
3624         Tests for module 'unictype/joiningtype-of'.
3625         * modules/unictype/joiningtype-of-tests: New file.
3626         * tests/unictype/test-joiningtype_of.c: New file.
3627         * tests/unictype/test-joiningtype_of.h: New file, automatically
3628         generated by gen-uni-tables.
3629
3630         New module 'unictype/joiningtype-of'.
3631         * modules/unictype/joiningtype-of: New file.
3632         * lib/unictype/joiningtype_of.c: New file.
3633         * lib/unictype/joiningtype_of.h: New file, automatically generated by
3634         gen-uni-tables.
3635
3636         Tests for module 'unictype/joiningtype-byname'.
3637         * modules/unictype/joiningtype-byname-tests: New file.
3638         * tests/unictype/test-joiningtype_byname.c: New file.
3639
3640         New module 'unictype/joiningtype-byname'.
3641         * modules/unictype/joiningtype-byname: New file.
3642         * lib/unictype/joiningtype_byname.c: New file.
3643
3644         Tests for module 'unictype/joiningtype-name'.
3645         * modules/unictype/joiningtype-name-tests: New file.
3646         * tests/unictype/test-joiningtype_name.c: New file.
3647
3648         New module 'unictype/joiningtype-name'.
3649         * modules/unictype/joiningtype-name: New file.
3650         * lib/unictype/joiningtype_name.c: New file.
3651
3652         unictype: Add support for Arabic shaping properties.
3653         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
3654         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
3655         declarations.
3656         (UC_JOINING_GROUP_*): New enumeration values.
3657         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
3658         declarations.
3659         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
3660         (unicode_joining_type): New variable.
3661         (UC_JOINING_GROUP_*): New enumeration values.
3662         (unicode_joining_group): New variable.
3663         (fill_arabicshaping, joining_type_as_c_identifier,
3664         output_joining_type_test, output_joining_type,
3665         joining_group_as_c_identifier, output_joining_group_test,
3666         output_joining_group): New functions.
3667         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
3668         fill_arabicshaping and output_joining_type_test, output_joining_type,
3669         output_joining_group_test, output_joining_group.
3670         Reported by Simon Josefsson.
3671
3672 2011-03-21  Jim Meyering  <meyering@redhat.com>
3673
3674         strftime: fix a bug in yesterday's change
3675         * lib/strftime.c (add): Accommodate width's initial value of -1.
3676         Otherwise, nstrftime would copy uninitialized data into
3677         the result buffer.
3678
3679 2011-03-21  Jim Meyering  <meyering@redhat.com>
3680
3681         tests: add strftime-tests module
3682         * tests/test-strftime.c: New file.
3683         * modules/strftime-tests: New module.
3684
3685 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3686
3687         strftime: don't assume a byte count fits in 'int'
3688         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
3689         found this problem by static analysis, using gcc -Wstrict-overflow
3690         (GCC 4.5.2, x86-64).  This reported an optimization that depended
3691         on an integer overflow having undefined behavior, but it turns out
3692         that the argument is a size, which might not fit in 'int' anyway,
3693
3694 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3695
3696         stdio: don't require ignore_value around fwrite
3697
3698         This patch works around libc bug 11959
3699         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
3700         Without this patch, applications must often write
3701         ignore_value (fwrite (...)) even though the ignore_value is
3702         not helpful here.  It's common to write many objects, using
3703         fwrite/printf/etc., and then use ferror to detect output error.
3704
3705         I considered making this patch optional, but decided against it,
3706         because libc is obviously being inconsistent here: there is no
3707         reason libc should insist that user code must inspect fwrite
3708         return's value without also insisting that it inspect printf's,
3709         putchar's, etc.  If user code wants to have a strict style where
3710         all these functions' values are checked (so that ferror need not
3711         be checked), we could add support for that style in a new gnulib
3712         module, but in the meantime it's better to be consistent and to
3713         support common usage.
3714
3715         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
3716         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
3717         that we are compiling in checking mode, and if not C++, and
3718         if not already wrapping fwrite for some other reason.
3719         (fwrite): #define to rpl_fwrite if the latter is defined.
3720
3721 2011-03-20  Bruno Haible  <bruno@clisp.org>
3722
3723         verror: Fix compilation error introduced on 2011-02-13.
3724         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
3725         instead of __attribute__.
3726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3727
3728 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
3729             Bruno Haible  <bruno@clisp.org>
3730
3731         socklen: do not depend on sys_socket
3732         While trying to modify Emacs to use gnulib's socklen module,
3733         I discovered a circular dependency: socklen depends on sys_socket
3734         and vice versa.  Emacs can use socklen, but it does not need
3735         sys_socket because it has its own substitute for sys/socket.h.
3736         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
3737         gl_TYPE_SOCKLEN_T.
3738         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
3739         gl_PREREQ_SYS_H_SOCKET.
3740         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
3741         gl_PREREQ_SYS_H_SOCKET.
3742         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
3743         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
3744         * modules/socklen (Depends-on): Do not depend on sys_socket.
3745         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
3746
3747 2011-03-20  Jim Meyering  <meyering@redhat.com>
3748
3749         maint.mk: sort file names *after* new transformation
3750         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
3751         prefix would have led to an unwarranted failure in GNU parted.
3752         Sort after that transformation.
3753
3754 2011-03-19  Jim Meyering  <meyering@redhat.com>
3755
3756         maint.mk: fix po-file syntax-check rule
3757         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
3758         Patch by Bruno Haible.
3759
3760 2011-03-19  Bruno Haible  <bruno@clisp.org>
3761
3762         socklen: Update comment.
3763         * m4/socklen.m4: Update comment about platforms.
3764
3765 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3766             Bruno Haible  <bruno@clisp.org>
3767
3768         inet_ntop, inet_pton: Simplify.
3769         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
3770         documented to provide socklen_t and we already depend on sys_socket.
3771         * modules/inet_pton (Depends-on): Likewise.
3772         * lib/arpa_inet.in.h: Adjust comment.
3773
3774 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
3775             Bruno Haible  <bruno@clisp.org>
3776
3777         netdb: Simplify.
3778         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
3779         documented to provide socklen_t and we already depend on sys_socket.
3780         * lib/netdb.in.h: Adjust comment.
3781
3782 2011-03-19  Bruno Haible  <bruno@clisp.org>
3783
3784         sys_socket, netdb: Document problem with socklen_t.
3785         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
3786         platforms.
3787         * doc/posix-headers/netdb.texi: Likewise.
3788
3789 2011-03-18  Eric Blake  <eblake@redhat.com>
3790
3791         maint.mk: let po check work in VPATH build
3792         * top/maint.mk (po_file): Allow cfg.mk override.
3793         (sc_po_check): Allow VPATH use.
3794         Reported by Jiri Denemark.
3795
3796 2011-03-16  Jim Meyering  <meyering@redhat.com>
3797
3798         maint.mk: allow fine-grained syntax-check exclusion via Make variables
3799         Before, you would have had to create one .x-sc_ file per rule in order
3800         to exempt offending files.  Now, you may instead use a Make variable --
3801         usually defined in cfg.mk -- whose name identifies the affected rule.
3802         * top/maint.mk (_sc_excl): Define.
3803         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
3804         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
3805
3806 2011-03-13  Bruno Haible  <bruno@clisp.org>
3807
3808         ignore-value tests: Avoid warnings.
3809         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
3810         empty for gcc < 3.4.
3811
3812 2011-03-13  Bruno Haible  <bruno@clisp.org>
3813
3814         passfd: Fix link error on Solaris.
3815         * modules/passfd (Description): Correct.
3816         (Depends-on): Add socketlib.
3817         (Link): New section.
3818         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3819
3820 2011-03-13  Bruno Haible  <bruno@clisp.org>
3821
3822         passfd: Fix link error on AIX 5.2.
3823         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3824
3825 2011-03-13  Bruno Haible  <bruno@clisp.org>
3826
3827         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3828         * lib/sys_socket.in.h: Include <stddef.h>.
3829         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3830         CMSG_FIRSTHDR. Remove unused variable.
3831
3832 2011-03-13  Bruno Haible  <bruno@clisp.org>
3833
3834         passfd: Fix compilation error on OpenBSD.
3835         * lib/passfd.c: Include <sys/uio.h>.
3836
3837 2011-03-13  Bruno Haible  <bruno@clisp.org>
3838
3839         passfd test: Fix warnings.
3840         * tests/test-passfd.c: Include <sys/wait.h>.
3841         (main): Fix typo.
3842
3843 2011-03-13  Bruno Haible  <bruno@clisp.org>
3844
3845         passfd module, part 4, tweaks.
3846         * tests/test-passfd.c: Reorder includes.
3847         (main): Fix perror and printf calls.
3848
3849 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3850
3851         passfd module, part 4.
3852         * modules/passfd-tests: New file.
3853         * tests/test-passfd.c: New file.
3854
3855 2011-03-13  Jim Meyering  <meyering@redhat.com>
3856
3857         Makefile: rely on GNU make; derive syntax-check rule names
3858         Rather than requiring that each sc_ rule be listed as a dependent
3859         of "check", use features of GNU make to derive the list.
3860         * Makefile (syntax-check-rules): Define.
3861         (check): Depend on the new variable, not the hard-coded list.
3862
3863 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3864             Bruno Haible  <bruno@clisp.org>
3865
3866         passfd module, part 3.
3867         * lib/passfd.h (recvfd): Add a flags argument.
3868         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3869         (recvfd): Add a flags argument.
3870         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3871         exists.
3872         * modules/passfd (Depends-on): Add cloexec.
3873         Suggested by Eric Blake.
3874
3875 2011-03-13  Bruno Haible  <bruno@clisp.org>
3876
3877         passfd module, part 2, tweaks.
3878         * modules/passfd (Files): Reorder.
3879         (Depends-on): Remove errno.
3880         (Include): Remove <sys/socket.h>, <sys/un.h>.
3881         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3882         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3883         specification header. Include <sys/socket.h> always. Don't include
3884         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3885         (sendfd): Clarify that it sets errno when it fails.
3886         (recvfd): Fix specification.
3887
3888 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3889
3890         passfd module, part 2.
3891         * modules/passfd: New file.
3892         * lib/passfd.h: New file.
3893         * lib/passfd.c: New file.
3894
3895 2011-03-12  Bruno Haible  <bruno@clisp.org>
3896
3897         wcswidth, mbswidth: Avoid integer overflow.
3898         * lib/wcswidth.c: Include <limits.h>.
3899         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3900         * lib/mbswidth.c: Include <limits.h>.
3901         (mbsnwidth): Avoid 'int' overflow.
3902         Reported by Jim Meyering.
3903
3904 2011-03-12  Bruno Haible  <bruno@clisp.org>
3905
3906         futimens, utimensat: Avoid endless recursion on Solaris 10.
3907         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3908         Solaris.
3909         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3910         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3911
3912 2011-03-11  Jim Meyering  <meyering@redhat.com>
3913
3914         maint.mk: relax a regexp to accommodate other formatting styles
3915         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3916         between "ngettext" and the following "(".
3917
3918 2011-03-11  Pádraig Brady <P@draigBrady.com>
3919
3920         maint.mk: suppress a false positive warning
3921         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3922         diagnostics are marked with ngettext.
3923
3924 2011-03-10  Eric Blake  <eblake@redhat.com>
3925
3926         wchar: add explicit dependencies, for Tru64
3927         * modules/mbmemcasecoll (Depends-on): Add wchar.
3928         * modules/mbtowc (Depends-on): Likewise.
3929         * modules/vasnprintf (Depends-on): Likewise.
3930         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3931         * modules/wctomb (Depends-on): Likewise.
3932         Reported by Peter O'Gorman.
3933
3934 2011-03-08  Bruno Haible  <bruno@clisp.org>
3935
3936         passfd module, part 1, tweaks.
3937         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3938         Improve indentation. Improve AC_MSG_CHECKING messages.
3939         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3940         gl_SOCKET_FAMILIES.
3941
3942 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3943
3944         passfd module, part 1.
3945         * m4/afunix.m4: New file.
3946         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3947         sockets.
3948
3949 2011-03-08  Bruno Haible  <bruno@clisp.org>
3950
3951         regex-quote: New API.
3952         * lib/regex-quote.h: Include <stdbool.h>.
3953         (struct regex_quote_spec): New type.
3954         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3955         New declarations.
3956         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3957         'const struct regex_quote_spec *' argument.
3958         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3959         (pcre_special): New constant.
3960         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3961         New functions.
3962         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3963         'const struct regex_quote_spec *' argument.
3964         * modules/regex-quote (Depends-on): Add stdbool.
3965         * tests/test-regex-quote.c (check): Update for new API. Add test for
3966         anchored results.
3967         * NEWS: Mention the API change.
3968         Reported by Reuben Thomas and Eric Blake.
3969
3970 2011-03-06  Bruno Haible  <bruno@clisp.org>
3971
3972         regex-quote: Fix creation of POSIX extended regular expressions.
3973         * lib/regex-quote.c (ere_special): Add grouping and alternation
3974         operators.
3975
3976 2011-03-05  Bruno Haible  <bruno@clisp.org>
3977
3978         doc: Improve doc regarding autopoint vs. gnulib.
3979         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3980         disable autopoint while running autoreconf.
3981         Suggested by Ralf Wildenhues.
3982
3983 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3984
3985         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3986         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3987
3988 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3989
3990         parse-duration: remove xalloc.h dependency
3991         * lib/parse-duration.c (parse_period): handle NULL return from
3992         strdup instead of calling xstrdup().
3993         * modules/parse-duration: remove "xalloc" dependency
3994
3995 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3996
3997         bootstrap: honor m4_base when running aclocal
3998         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3999
4000 2011-03-02  Jim Meyering  <meyering@redhat.com>
4001
4002         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4003         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4004         on request from Matt Booth.
4005
4006 2011-03-01  Eric Blake  <eblake@redhat.com>
4007
4008         test-link: work on Hurd
4009         * tests/test-link.h (test_link): Hurd rejects linking directories
4010         with EISDIR instead of the POSIX-mandated EPERM.
4011
4012 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4013
4014         stdio: simplify by moving files to printf-posix, sigpipe
4015         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4016         since this symbol is needed only if printf is replaced.
4017         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4018         Require gl_ASM_SYMBOL_PREFIX.
4019         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4020         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4021         (Depends-on): Add 'raise'.
4022         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4023         * modules/stdio (Files): Remove lib/stdio-write.c,
4024         m4/asm-underscore.m4.
4025         (Depends-on): Remove 'raise'.
4026
4027         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4028         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4029         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4030         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4031
4032 2011-02-28  Bruno Haible  <bruno@clisp.org>
4033
4034         localcharset: Assume ANSI C behaviour of free().
4035         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4036         calling free().
4037         Suggested by Simon Josefsson <simon@josefsson.org>.
4038
4039 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4040             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4041             Bruno Haible  <bruno@clisp.org>  (tiny change)
4042
4043         On Cygwin, use /proc file system instead of win32 API.
4044         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4045         Win32 file names.
4046         (DllMain): Simplify by removing Cygwin specific code.
4047         (find_shared_library_fullname): Use Linux specific implementation also
4048         for Cygwin.
4049         (get_shared_library_fullname): Update accordingly.
4050         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4051         Win32 file names.
4052         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4053         Cygwin specific code.
4054
4055 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4056             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4057
4058         Fix OpenMP flag detection for various Fortran compilers.
4059         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4060         OpenMP-conditional compilation construct, to force compile
4061         failure with missing OpenMP flag.
4062         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4063
4064 2011-02-25  Eric Blake  <eblake@redhat.com>
4065
4066         strstr: expand test coverage
4067         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4068         compilation.
4069         * tests/test-memmem.c (main): Duplicate tests.
4070         * tests/test-strcasestr.c (main): Likewise.
4071         * tests/test-c-strcasestr.c (main): Likewise.
4072
4073 2011-02-25  Jim Meyering  <meyering@redhat.com>
4074
4075         maint.mk: detect missing-NL-at-EOF, too
4076         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4077         it also detects when a file lacks a newline at EOF.
4078         (require_exactly_one_NL_at_EOF_): Renamed from
4079         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4080         since people may well have .x-sc_... file names tied to the
4081         existing name.  Suggested by Eric Blake.
4082
4083 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4084
4085         dirname: move m4/dos.m4 functionality into lib/dosname.h
4086
4087         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4088         extracts symbols from it, puts them into config.h; but it's much
4089         easier to use the symbols directly.  filename.h already does this,
4090         but it disagrees with dos.m4 in some respects.  This patch
4091         introduces a different include file dosname.h that packages up
4092         dos.m4, and then later we can work on merging filename.h and
4093         dosname.h.  Applications that need only the easy-to-configure
4094         symbols should consider including dosname.h rather than dirname.h.
4095         * NEWS: Mention incompatible changes.
4096         * m4/dos.m4: Remove.
4097         * lib/dosname.h, modules/dosname: New files.
4098         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4099         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4100         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4101         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4102         Include dosname.h, not dirname.h.
4103         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4104         Include dosname.h, for definitions of symbols like ISSLASH
4105         that used to be in config.h.
4106         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4107         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4108         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4109         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4110         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4111         * modules/rmdir (Files): Likewise.
4112         * modules/stat (Files): Likewise.
4113         * modules/unlink (Files): Likewise.
4114         * modules/dirname-lgpl (Depends-on): Add dosname.
4115         * modules/lstat (Depends-on): Likewise.
4116         * modules/openat (Depends-on): Likewise.
4117         * modules/rmdir (Depends-on): Likewise.
4118         * modules/savewd (Depends-on): Likewise.
4119         * modules/stat (Depends-on): Likewise.
4120         * modules/unlink (Depends-on): Likewise.
4121         * modules/openat (Depends-on): Remove dirname-lgpl.
4122         * modules/savewd (Depends-on): Likewise.
4123         * tests/test-dirname.c: Do not use removed symbols like
4124         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4125         the remaining symbols, e.g., ISSLASH ('\\').
4126
4127 2011-02-25  Eric Blake  <eblake@redhat.com>
4128
4129         strstr: revert patches that introduced bug and pessimization
4130         * lib/str-two-way.h: Add another reference.
4131         (two_way_short_needle, two_way_long_needle): Revert changes from
4132         2011-02-24; they pessimize search speed.
4133         (critical_factorization): Partially revert changes from
4134         2010-06-22; they violate the requirement that the left half of the
4135         needle be smaller than the period of the needle.
4136
4137 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4138
4139         filenamecat: remove unnecessary dependency on dirname-lgpl
4140         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4141         is no direct dependency, just an indirect one via filenamecat-lgpl.
4142
4143         remove: remove unnecessary use of m4/dos.m4
4144         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4145         * modules/remove (FILES): Remove m4/dos.m4.
4146
4147         * lib/openat-proc.c: Don't include dirname.h; not needed.
4148
4149         backupfile: remove unnecessary use of m4/dos.m4
4150         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4151         of its symbols are used by the backupfile code.  backupfile.c does
4152         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4153         for the rare case of programs that want all their backup file
4154         names to live within 8+3 limits, and dos.m4 doesn't address that.
4155         * modules/backupfile (Files): Remove m4/dos.m4.
4156
4157 2011-02-24  Jim Meyering  <meyering@redhat.com>
4158
4159         strstr: fix a bug whereby strstr would mistakenly return NULL
4160         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4161         in period calculation.
4162         (two_way_long_needle): Likewise.
4163         The original problem was reported by Mike Stump in
4164         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4165         Ralf Wildenhues provided the short needle and haystack.
4166         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4167         Add a more involved test to trigger the bug in two_way_long_needle.
4168
4169 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4170
4171         gnulib-tool: remove use of bold display in help screen
4172         * gnulib-tool (func_usage): Do not use bold display anymore in the
4173         help screen.  That was just meant to be a temporary emphasis for a
4174         backward-incompatible change.
4175
4176 2011-02-23  Bruno Haible  <bruno@clisp.org>
4177
4178         Fix misindentation of preprocessor directives.
4179         * lib/argp-namefrob.h: Reindent preprocessor directives.
4180         * lib/getopt_int.h (struct _getopt_data): Likewise.
4181         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4182         * lib/vasnprintf.c (decode_long_double): Likewise.
4183         * tests/test-argmatch.c: Insert blank lines, for clarity.
4184         * tests/test-exclude.c: Likewise.
4185
4186 2011-02-22  Bruno Haible  <bruno@clisp.org>
4187
4188         ioctl: Fix for MacOS X in 64-bit mode.
4189         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4190         value.
4191         Suggested by Eric Blake.
4192         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4193
4194 2011-02-22  Jim Meyering  <meyering@redhat.com>
4195
4196         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4197         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4198         in lib/.
4199
4200 2011-02-22  Eric Blake  <eblake@redhat.com>
4201
4202         maint: avoid any CDPATH issue
4203         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4204
4205         maint: adjust cpp indentation for my modules, as well
4206         * Makefile (sc_cpp_indent_check): Add my name.
4207         * lib/fbufmode.c: Filter through cppi.
4208         * lib/fpurge.c: Likewise.
4209         * lib/freadable.c: Likewise.
4210         * lib/freading.c: Likewise.
4211         * lib/fwritable.c: Likewise.
4212         * lib/fwriting.c: Likewise.
4213         * lib/sigaction.c: Likewise.
4214
4215 2011-02-22  Jim Meyering  <meyering@redhat.com>
4216
4217         maint: adjust cpp indentation to reflect nesting depth
4218         I.e., in a block of code that begins with an unnested "#if",
4219         put one space between the "#" in column 1 and following token.
4220         For example,
4221         -#include <sys/vfs.h>
4222         +# include <sys/vfs.h>
4223         Do this only in .c files that are part of a module I maintain.
4224         * lib/linkat.c: Filter through cppi.
4225         * lib/nanosleep.c: Likewise.
4226         * lib/openat.c: Likewise.
4227         * lib/openat-die.c: Likewise.
4228         * lib/dup3.c: Likewise.
4229         * lib/fchownat.c: Likewise.
4230         * lib/flock.c: Likewise.
4231         * lib/fsync.c: Likewise.
4232         * lib/fts.c: Likewise.
4233         * lib/getpass.c: Likewise.
4234         * lib/gettimeofday.c: Likewise.
4235         * lib/userspec.c: Likewise.
4236         * Makefile (sc_cpp_indent_check): New rule, to check this.
4237
4238 2011-02-22  Bruno Haible  <bruno@clisp.org>
4239
4240         New module 'wctomb'.
4241         * lib/stdlib.in.h (wctomb): New declaration.
4242         * lib/wctomb.c: New file.
4243         * lib/wctomb-impl.h: New file.
4244         * m4/wctomb.m4: New file.
4245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4246         REPLACE_WCTOMB.
4247         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4248         REPLACE_WCTOMB.
4249         * modules/wctomb: New file.
4250         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4251         * doc/posix-functions/wctomb.texi: Mention the new module.
4252         * modules/wctob (Depends-on): Add wctomb.
4253
4254 2011-02-22  Bruno Haible  <bruno@clisp.org>
4255
4256         New module 'mbtowc'.
4257         * lib/stdlib.in.h (mbtowc): New declaration.
4258         * lib/mbtowc.c: New file.
4259         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4260         * m4/mbtowc.m4: New file.
4261         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4262         REPLACE_MBTOWC.
4263         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4264         REPLACE_MBTOWC.
4265         * modules/mbtowc: New file.
4266         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4267         * doc/posix-functions/mbtowc.texi: Mention the new module.
4268         * modules/btowc (Depends-on): Add mbtowc.
4269
4270 2011-02-22  Bruno Haible  <bruno@clisp.org>
4271
4272         wcrtomb: Add more tests for native Windows platforms.
4273         * tests/test-wcrtomb-w32-1.sh: New file.
4274         * tests/test-wcrtomb-w32-2.sh: New file.
4275         * tests/test-wcrtomb-w32-3.sh: New file.
4276         * tests/test-wcrtomb-w32-4.sh: New file.
4277         * tests/test-wcrtomb-w32-5.sh: New file.
4278         * tests/test-wcrtomb-w32.c: New file.
4279         * modules/wcrtomb-tests (Files): Add them.
4280         (Makefile.am): Arrange to run these tests.
4281         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4282         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4283
4284 2011-02-20  Bruno Haible  <bruno@clisp.org>
4285
4286         wcrtomb: Enhance test.
4287         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4288
4289 2011-02-20  Bruno Haible  <bruno@clisp.org>
4290
4291         mbrtowc: Tiny optimization.
4292         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4293
4294 2011-02-20  Jim Meyering  <meyering@redhat.com>
4295
4296         test-exclude.c: remove unmatched #endif
4297         * tests/test-exclude.c: Remove stray #endif, left over from
4298         the change of a week ago.
4299
4300 2011-02-19  Jim Meyering  <meyering@redhat.com>
4301
4302         git-version-gen: skip "-dirty" check when appropriate
4303         * build-aux/git-version-gen: Don't run any git commands when the
4304         version string comes from .tarball-version.  Prior to this, we
4305         would run git update-index --refresh even from a just-unpacked
4306         tarball directory, and that could affect a .git/ directory in a
4307         parent of the build directory.  Reported by Mike Frysinger.
4308
4309 2011-02-19  Bruno Haible  <bruno@clisp.org>
4310
4311         unictype/property-byname: Reduce the size of the 'data' segment.
4312         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4313
4314 2011-02-19  Bruno Haible  <bruno@clisp.org>
4315
4316         unictype/scripts: Reduce the size of the 'data' segment.
4317         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4318         '%pic'.
4319         * lib/unictype/scripts_byname.gperf: Regenerated.
4320
4321 2011-02-19  Bruno Haible  <bruno@clisp.org>
4322
4323         stdint: Update documentation.
4324         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4325
4326 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4327
4328         stdint: omit redundant check for wchar.h
4329         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4330         always tests whether wchar.h exists, so remove the now-redundant test.
4331
4332 2011-02-18  Bruno Haible  <bruno@clisp.org>
4333
4334         stdint: Cut dependency to module 'wchar'.
4335         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4336         include the necessary prerequisites.
4337         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4338         * modules/stdint (Depends-on): Remove wchar.
4339         (Makefile.am): Substitute HAVE_WCHAR_H.
4340         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4341
4342 2011-02-18  Eric Blake  <eblake@redhat.com>
4343
4344         longlong: skip, rather than fail, on cross-compilation
4345         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4346         when cross-compiling; regression from 2011-02-16.
4347
4348 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4349
4350         * NEWS: Mention 2011-02-08 change to stdlib.
4351
4352 2011-02-17  Bruno Haible  <bruno@clisp.org>
4353
4354         getloadavg: Add comments about platforms.
4355         * m4/getloadavg.m4: Add comment.
4356         * lib/getloadavg.c: Likewise.
4357
4358 2011-02-17  Bruno Haible  <bruno@clisp.org>
4359
4360         getloadavg: Fix link error on Solaris 2.6.
4361         * modules/getloadavg (Link): New section.
4362         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4363         linking test-getloadavg.
4364         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4365         getloadavg.
4366
4367 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4368
4369         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4370         It was 'int', but this doesn't match the IRIX 6.5 manual.
4371         Suggested by Bruno Haible in
4372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4373
4374 2011-02-17  Bruno Haible  <bruno@clisp.org>
4375
4376         havelib: Fix comments.
4377         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4378         change.
4379
4380 2011-02-17  Bruno Haible  <bruno@clisp.org>
4381
4382         havelib: Update config.rpath.
4383         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4384
4385 2011-02-17  Bruno Haible  <bruno@clisp.org>
4386
4387         getloadavg test: Add some plausibility checks.
4388         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4389         is improbable.
4390
4391 2011-02-16  Eric Blake  <eblake@redhat.com>
4392
4393         maintainer-makefile: make syntax-check a no-op from tarballs
4394         * top/maint.mk (no-vc-detected): New rule.
4395         (local-checks-available): Use it to avoid hanging if someone tries
4396         'make syntax-check' from a tarball.  Also append to any non-syntax
4397         checks already defined in cfg.mk.
4398
4399 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4400
4401         longlong: tune, particularly for common case of c99
4402
4403         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4404         or running anything if c99, or if unsigned long long int does not
4405         work.  In either case, we know the answer without further tests.
4406         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4407         it at most once, and use its results for both long long int and
4408         unsigned long long int.  This is more likely to be efficient in
4409         the common case where the program wants to check for both long
4410         long int and unsigned long long int.
4411         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4412         since the answer is already known.
4413
4414 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4415
4416         getloadavg: set errno
4417         * lib/getloadavg.c: Set errno when returning -1.  If no other
4418         error number looks appropriate, set it to ENOSYS if the getloadavg
4419         looks like it can't possibly ever work, ENOTSUP otherwise.
4420         Suggested by Bruno Haible in
4421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4422
4423         getloadavg: trim unused parts and speed up 'configure'
4424         * NEWS: Document this.
4425         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4426         always compiled if getloadavg is absent.
4427         Move test code to ...
4428         * tests/test-getloadavg.c: New file, containing previous
4429         contents of test from lib/getloadavg.c.  It also contains
4430         suggestions by Bruno Haible in
4431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4432         * modules/getloadavg-tests: New file.
4433         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4434         Do tests in the same order as they're needed for getloadavg.c.
4435         Omit setgid-related tests that generate symbols KMEM_GROUP,
4436         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4437         Do only the tests that are needed to see whether the system has
4438         getloadavg, moving the other tests into ...
4439         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4440         NLIST_NAME_UNION; nobody should be using it.  Do not define
4441         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4442         relevant, as the user of this module shouldn't care how getloadavg
4443         is implemented.
4444
4445         getloadavg: omit unused var
4446         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4447
4448 2011-02-15  Jim Meyering  <meyering@redhat.com>
4449
4450         doc: update users.txt
4451         * users.txt: Update iwhd's URL.
4452
4453 2011-02-13  Bruno Haible  <bruno@clisp.org>
4454
4455         Consistent macro naming for macros that use GCC __attribute__.
4456         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4457         _ATTRIBUTE_NONNULL_.
4458         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4459         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4460         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4461         ATTRIBUTE_DEPRECATED.
4462         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4463         ATTRIBUTE_NORETURN.
4464         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4465         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4466         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4467         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4468         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4469         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4470         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4471         ATTRIBUTE_SENTINEL.
4472         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4473         ATTRIBUTE_RETURN_CHECK.
4474         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4475         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4476         ATTRIBUTE_NORETURN.
4477         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4478         Reported by Paul Eggert.
4479
4480 2011-02-13  Bruno Haible  <bruno@clisp.org>
4481
4482         Don't interfere with a program's definition of __attribute__.
4483         * lib/argp.h (__attribute__): Remove definition.
4484         (_GL_ATTRIBUTE_FORMAT): New macro.
4485         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4486         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4487         (_GL_ATTRIBUTE_FORMAT): New macro.
4488         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4489         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4490         GCC 3 or newer.
4491         * lib/error.h (__attribute__): Remove definition.
4492         (_GL_ATTRIBUTE_FORMAT): New macro.
4493         (error, error_at_line): Use it.
4494         * lib/hash.h (__attribute__): Remove definition.
4495         (ATTRIBUTE_WUR): Update definition. Define always.
4496         * lib/openat.h (__attribute__): Remove definition.
4497         (ATTRIBUTE_NORETURN): Update definition. Define always.
4498         * lib/sigpipe-die.h (__attribute__): Remove definition.
4499         (ATTRIBUTE_NORETURN): Update definition. Define always.
4500         * lib/vasnprintf.h (__attribute__): Remove definition.
4501         (_GL_ATTRIBUTE_FORMAT): New macro.
4502         (asnprintf, vasnprintf): Use it.
4503         * lib/xalloc.h (__attribute__): Remove definition.
4504         (ATTRIBUTE_NORETURN): Update definition. Define always.
4505         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4506         * lib/xmemdup0.h (__attribute__): Remove definition.
4507         (ATTRIBUTE_NORETURN): Update definition. Define always.
4508         * lib/xprintf.h (__attribute__): Remove definition.
4509         (_GL_ATTRIBUTE_FORMAT): New macro.
4510         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4511         * lib/xstrtol.h (__attribute__): Remove definition.
4512         (ATTRIBUTE_NORETURN): Update definition. Define always.
4513         * lib/xvasprintf.h (__attribute__): Remove definition.
4514         (_GL_ATTRIBUTE_FORMAT): New macro.
4515         (xasprintf, xvasprintf): Use it.
4516         * tests/test-argmatch.c (__attribute__): Remove definition.
4517         (ATTRIBUTE_NORETURN): Update definition. Define always.
4518         * tests/test-exclude.c (__attribute__): Remove definition.
4519         (ATTRIBUTE_NORETURN): Update definition. Define always.
4520         Reported by Paul Eggert.
4521
4522 2011-02-13  Bruno Haible  <bruno@clisp.org>
4523
4524         mbrtowc: Add more tests for native Windows platforms.
4525         * tests/test-mbrtowc-w32-1.sh: New file.
4526         * tests/test-mbrtowc-w32-2.sh: New file.
4527         * tests/test-mbrtowc-w32-3.sh: New file.
4528         * tests/test-mbrtowc-w32-4.sh: New file.
4529         * tests/test-mbrtowc-w32-5.sh: New file.
4530         * tests/test-mbrtowc-w32.c: New file.
4531         * modules/mbrtowc-tests (Files): Add them.
4532         (Makefile.am): Arrange to run these tests.
4533         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4534         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4535
4536 2011-02-13  Bruno Haible  <bruno@clisp.org>
4537
4538         mbrtowc: Work around native Windows bug.
4539         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4540         guess when no suitable locale for testing was found.
4541         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
4542
4543 2011-02-13  Bruno Haible  <bruno@clisp.org>
4544
4545         mbsinit: Work around mingw bug.
4546         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
4547         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
4548         Windows.
4549         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
4550
4551 2011-02-13  Bruno Haible  <bruno@clisp.org>
4552
4553         mbsinit: Don't crash for a NULL argument.
4554         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
4555         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
4556
4557 2011-02-13  Bruno Haible  <bruno@clisp.org>
4558
4559         Don't interfere with a program's definition of __attribute__.
4560         * lib/stdio.in.h (__attribute__): Remove definition.
4561         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
4562         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
4563         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
4564         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
4565         * lib/string.in.h (__attribute__): Remove definition.
4566         Reported by Paul Eggert.
4567
4568 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4569
4570         stdlib: don't get in the way of non-GCC __attribute__
4571         See thread starting at
4572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
4573         Revert previous stdlib change, installing the following instead:
4574         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
4575         to get in the way of a non-GCC compiler that supports __attribute__.
4576         (_GL_ATTRIBUTE_RETURN): New macro.
4577         (_Exit): Use it instead of __attribute__.
4578
4579 2011-02-12  Bruno Haible  <bruno@clisp.org>
4580
4581         quotearg test: Avoid test failure on mingw.
4582         * tests/test-quotearg.sh: Convert the locale identifier from native
4583         Windows syntax to Unix syntax.
4584
4585 2011-02-12  Bruno Haible  <bruno@clisp.org>
4586
4587         setlocale: Prefer gnulib's override over libintl's override.
4588         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
4589         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
4590         GNULIB_defined_setlocale is set.
4591
4592 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4593
4594         stdlib: support non-GCC __attribute__
4595
4596         Fix a serious and tricky problem encountered when attempting to
4597         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
4598         5.5, but it crashed due to memory corruption on Solaris 10 with
4599         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
4600         bits that are otherwise zero.  This tagging is optional inside
4601         Emacs but is preferred and is used when __attribute__ ((__aligned
4602         (8))) works, as it does with both recent-enough GCC and with Sun C
4603         5.11.  However, Sun C 5.11 is not GCC and does not #define
4604         __GNUC__ and __GNUC_MINOR__.
4605
4606         When I added the getloadavg module to Emacs, it brought in
4607         stdlib.in.h, which contained this fragment:
4608
4609            #ifndef __attribute__
4610            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
4611            #  define __attribute__(Spec)   /* empty */
4612            # endif
4613            #endif
4614
4615         When files that include <stdlib.h> were compiled with Sun C 5.11,
4616         the above code disabled __attribute__ ((__aligned (8))), which
4617         caused variables to not be properly aligned, which eventually led
4618         to the pointer corruption mentioned above.  (This was a bit hard
4619         to diagnose, unfortunately.)
4620
4621         Several "#define __attribute__(X) /* empty */" code snippets need
4622         to be eradicated from Gnulib to work with non-GCC compilers that
4623         support __attribute__.  The Autoconf way to do this is to test for
4624         each kind of attribute that we want support for, and selectively
4625         enable that in source code.
4626
4627         Fix this problem just for stdlib.h, by adding a test for the
4628         __noreturn__ attribute, and change stdlib.in.h to use that test
4629         when needed.  This technique can be easily generalized to the
4630         other *.in.h files and attributes, and a similar technique can be
4631         used for *.h and *.c files.  This patch is enough to solve the
4632         problem for Emacs + getloadavg, and I thought I'd publish it for
4633         feedback before undertaking further, similar fixes in other
4634         modules.
4635
4636         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
4637         because it's not needed for stdlib.h.  It merely substitutes the
4638         value directly into stdlib.h.  We may well need to #define it, or
4639         similar symbols, for other modules, but it's nice to also have an
4640         option to not #define it for applications like Emacs that do not
4641         need it.
4642
4643         * lib/stdlib.in.h (__attribute__): Do not #define.
4644         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
4645         be defined only if the _Exit module is also used.
4646         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
4647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
4648         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
4649         platforms.
4650         * modules/_Exit (Files): Add m4/attribute.m4.
4651         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
4652         * m4/attribute.m4: New file.
4653
4654 2011-02-12  Bruno Haible  <bruno@clisp.org>
4655
4656         wcsrtombs: Work around bug on native Windows.
4657         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
4658         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
4659         instead of len.
4660         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
4661
4662 2011-02-12  Bruno Haible  <bruno@clisp.org>
4663
4664         mbsrtowcs: Work around bug on native Windows.
4665         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
4666         against mingw bug.
4667         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
4668
4669 2011-02-12  Bruno Haible  <bruno@clisp.org>
4670
4671         Avoid setlocale bugs in tests.
4672         * modules/btowc (Dependencies): Add setlocale.
4673         * modules/c-strcase (Dependencies): Likewise.
4674         * modules/mbmemcasecmp (Dependencies): Likewise.
4675         * modules/mbmemcasecoll (Dependencies): Likewise.
4676         * modules/mbrtowc (Dependencies): Likewise.
4677         * modules/mbscasecmp (Dependencies): Likewise.
4678         * modules/mbscasestr (Dependencies): Likewise.
4679         * modules/mbschr (Dependencies): Likewise.
4680         * modules/mbscspn (Dependencies): Likewise.
4681         * modules/mbsinit (Dependencies): Likewise.
4682         * modules/mbsncasecmp (Dependencies): Likewise.
4683         * modules/mbsnrtowcs (Dependencies): Likewise.
4684         * modules/mbspbrk (Dependencies): Likewise.
4685         * modules/mbspcasecmp (Dependencies): Likewise.
4686         * modules/mbsrchr (Dependencies): Likewise.
4687         * modules/mbsrtowcs (Dependencies): Likewise.
4688         * modules/mbsspn (Dependencies): Likewise.
4689         * modules/mbsstr (Dependencies): Likewise.
4690         * modules/nl_langinfo (Dependencies): Likewise.
4691         * modules/quotearg (Dependencies): Likewise.
4692         * modules/unicase/locale-language (Dependencies): Likewise.
4693         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
4694         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
4695         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
4696         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
4697         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
4698         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
4699         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
4700         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
4701         * modules/vasnprintf-posix (Dependencies): Likewise.
4702         * modules/wcrtomb (Dependencies): Likewise.
4703         * modules/wcsnrtombs (Dependencies): Likewise.
4704         * modules/wcsrtombs (Dependencies): Likewise.
4705
4706 2011-02-12  Bruno Haible  <bruno@clisp.org>
4707
4708         setlocale: Workaround native Windows bug.
4709         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
4710         succeeds but sets LC_CTYPE to "C", report a failure.
4711         * tests/test-setlocale2.sh: New file.
4712         * tests/test-setlocale2.c: New file.
4713         * modules/setlocale-tests (Files): Add the new files.
4714         (Makefile.am): Enable test-setlocale2.sh test.
4715         * doc/posix-functions/setlocale.texi: Mention workaround.
4716
4717 2011-02-11  Bruno Haible  <bruno@clisp.org>
4718
4719         Tests for module 'setlocale'.
4720         * modules/setlocale-tests: New file.
4721         * tests/test-setlocale1.sh: New file.
4722         * tests/test-setlocale1.c: New file.
4723
4724         New module 'setlocale'.
4725         * lib/locale.in.h (setlocale): New declaration.
4726         * lib/setlocale.c: New file, based on
4727         gettext/gettext-runtime/intl/setlocale.c.
4728         * m4/setlocale.m4: New file.
4729         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
4730         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
4731         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
4732         REPLACE_SETLOCALE.
4733         * modules/setlocale: New file.
4734         * tests/test-locale-c++.cc: Test the declaration of setlocale.
4735         * doc/posix-functions/setlocale.texi: Mention the new module.
4736
4737 2011-02-11  Bruno Haible  <bruno@clisp.org>
4738
4739         Prepare for locale dependent tests on mingw.
4740         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
4741         because it has the wrong locale encoding.
4742         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
4743         French_France.1252 instead of "fr".
4744         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
4745         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
4746         because it has the wrong locale encoding.
4747         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
4748         native Windows, try Turkish_Turkey.65001.
4749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
4750         Chinese_China.54936.
4751
4752         Prepare for locale dependent tests on mingw.
4753         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
4754         differently.
4755         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4756         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4757         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4758         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4759
4760 2011-02-11  Eric Blake  <eblake@redhat.com>
4761
4762         strptime: avoid compiler warnings
4763         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
4764         compiler warnings about dead code.
4765         Reported by Daniel P. Berrange.
4766
4767 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
4768
4769         doc: update users.txt
4770         * users.txt: Add rcs.
4771
4772 2011-02-10  John W. Eaton  <jwe@gnu.org>
4773
4774         doc: update users.txt
4775         * users.txt: Add octave.
4776
4777 2011-02-10  Jim Meyering  <meyering@redhat.com>
4778
4779         doc: update users.txt
4780         * users.txt: Add iwhd.
4781
4782 2011-02-09  Bruno Haible  <bruno@clisp.org>
4783
4784         gnulib-tool: Make copyright notice adjustment more robust.
4785         * gnulib-tool (func_import): In sed_transform_main_lib_file,
4786         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
4787         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
4788         License".
4789         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
4790
4791 2011-02-06  Bruno Haible  <bruno@clisp.org>
4792
4793         New module 'towctrans'.
4794         * modules/towctrans: New file.
4795         * lib/wctype.in.h (towctrans): New declaration.
4796         * lib/towctrans.c: New file.
4797         * lib/towctrans-impl.h: New file.
4798         * m4/towctrans.m4: New file.
4799         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
4800         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
4801         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
4802         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
4803         * doc/posix-functions/towctrans.texi: Mention the new module.
4804
4805 2011-02-06  Bruno Haible  <bruno@clisp.org>
4806
4807         New module 'wctrans'.
4808         * modules/wctrans: New file.
4809         * lib/wctype.in.h (wctrans): New declaration.
4810         * lib/wctrans.c: New file.
4811         * lib/wctrans-impl.h: New file.
4812         * m4/wctrans.m4: New file.
4813         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4814         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4815         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4816         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4817         * doc/posix-functions/wctrans.texi: Mention the new module.
4818
4819 2011-02-06  Bruno Haible  <bruno@clisp.org>
4820
4821         New module 'iswctype'.
4822         * modules/iswctype: New file.
4823         * lib/wctype.in.h (iswctype): New declaration.
4824         * lib/iswctype.c: New file.
4825         * lib/iswctype-impl.h: New file.
4826         * m4/iswctype.m4: New file.
4827         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4828         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4829         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4830         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4831         * doc/posix-functions/iswctype.texi: Mention the new module and the
4832         HP-UX 11.00 problem.
4833
4834 2011-02-06  Bruno Haible  <bruno@clisp.org>
4835
4836         New module 'wctype'.
4837         * modules/wctype: Change to represent the wctype() substitute.
4838         * lib/wctype.in.h (wctype): New declaration.
4839         * lib/wctype.c: New file.
4840         * lib/wctype-impl.h: New file.
4841         * m4/wctype.m4: New file.
4842         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4843         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4844         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4845         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4846         * doc/posix-functions/wctype.texi: Mention the new module and the
4847         HP-UX 11.00 problem.
4848
4849 2011-02-06  Bruno Haible  <bruno@clisp.org>
4850
4851         wctype-h: Ensure wctype_t and wctrans_t are defined.
4852         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4853         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4854         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4855         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4856         HAVE_WCTRANS_T.
4857         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4858
4859 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4860
4861         flock: fix license typo
4862
4863         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4864         omitted.
4865
4866 2011-02-08  Bruno Haible  <bruno@clisp.org>
4867
4868         Split large sed scripts, for HP-UX sed.
4869         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4870         to avoid HP-UX limit of 99 commands, in the near future.
4871         * modules/stdlib (Makefile.am): Likewise.
4872         * modules/unistd (Makefile.am): Likewise.
4873         * modules/wchar (Makefile.am): Likewise.
4874         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4875         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4876         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4877
4878 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4879             Bruno Haible  <bruno@clisp.org>
4880
4881         stdlib: improve random_r modularization
4882         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4883         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4884         you also need the random_r module to get this material right.
4885         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4886         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4887         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4888
4889 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4890
4891         stdlib: don't depend on stdint
4892         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4893         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4894         be independent of whether stdint.h is needed.
4895         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4896         here, instead of ...
4897         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4898         struct random_data should be using the random_r module, not just
4899         the stdlib module (which wouldn't make sense: what package needs
4900         just struct random_data without also needing random_r?).
4901         * modules/stdlib (Depends-on): Remove stdint.
4902
4903         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4904         See the thread rooted at
4905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4906         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4907         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4908         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4909         __VMS)); previously it was always included (via fcntl--.h).
4910         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4911         hand; this is good enough for load averages.  Also, do not use
4912         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4913         flags directly if available and don't bother otherwise.  (Packages
4914         that need the extra reliability should use the modules that define
4915         these flags on older platforms that lack them.)
4916         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4917         fcntl-safer.
4918
4919 2011-02-08  Jim Meyering  <meyering@redhat.com>
4920
4921         di-set.h, ino-map.h: add multiple-inclusion guard
4922         Technically, the guard is required only for ino-map.h, due to its
4923         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4924         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4925         * lib/ino-map.h: Likewise.
4926
4927 2011-02-06  Bruno Haible  <bruno@clisp.org>
4928
4929         iswblank: Ensure declaration on glibc systems.
4930         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4931         * modules/iswblank (Dependencies): Add 'extensions'.
4932         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4933
4934 2011-02-06  Bruno Haible  <bruno@clisp.org>
4935
4936         New module 'iswblank'.
4937         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4938         * modules/iswblank: New file.
4939         * modules/wctype-h (Files): Remove lib/iswblank.c.
4940         (Makefile.am): Substitute GNULIB_ISWBLANK.
4941         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4942         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4943         (gl_WCTYPE_H_DEFAULTS): New macro.
4944         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4945         * modules/iswblank-tests: New file.
4946         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4947         * tests/test-wctype-h.c (main): Remove iswblank tests.
4948         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4949         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4950         of 'wctype-h'.
4951         * NEWS: Mention the change.
4952         * modules/mbchar (Depends-on): Add iswblank.
4953
4954 2011-02-08  Bruno Haible  <bruno@clisp.org>
4955
4956         di-set tests: Refactor.
4957         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4958         unnecessary includes.
4959         (ASSERT): Remove macro.
4960         (main): Make C90 compliant by avoiding variable declaration after
4961         statement.
4962         * modules/di-set-tests (Files): Add tests/macros.h.
4963
4964 2011-02-08  Bruno Haible  <bruno@clisp.org>
4965
4966         ino-map tests: Refactor.
4967         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4968         unnecessary includes.
4969         (ASSERT): Remove macro.
4970         (main): Make C90 compliant by avoiding variable declaration after
4971         statement.
4972         * modules/ino-map-tests (Files): Add tests/macros.h.
4973
4974 2011-02-08  Jim Meyering  <meyering@redhat.com>
4975
4976         di-set: add "const" to a cast
4977         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4978         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4979
4980 2011-02-06  Bruno Haible  <bruno@clisp.org>
4981
4982         Rename module 'wctype' to 'wctype-h'.
4983         * modules/wctype-h: Renamed from modules/wctype.
4984         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4985         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4986         (Files, Depends-on, Makefile.am): Update.
4987         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4988         (Files, Makefile.am): Update.
4989         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4990         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4991         * doc/posix-headers/wctype.texi: Update.
4992         * doc/posix-functions/iswalnum.texi: Update.
4993         * doc/posix-functions/iswalpha.texi: Update.
4994         * doc/posix-functions/iswblank.texi: Update.
4995         * doc/posix-functions/iswcntrl.texi: Update.
4996         * doc/posix-functions/iswdigit.texi: Update.
4997         * doc/posix-functions/iswgraph.texi: Update.
4998         * doc/posix-functions/iswlower.texi: Update.
4999         * doc/posix-functions/iswprint.texi: Update.
5000         * doc/posix-functions/iswpunct.texi: Update.
5001         * doc/posix-functions/iswspace.texi: Update.
5002         * doc/posix-functions/iswupper.texi: Update.
5003         * doc/posix-functions/iswxdigit.texi: Update.
5004         * doc/posix-functions/towlower.texi: Update.
5005         * doc/posix-functions/towupper.texi: Update.
5006         * NEWS: Mention the change.
5007         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5008         * modules/mbchar (Dependencies): Likewise.
5009         * modules/mbswidth (Dependencies): Likewise.
5010         * modules/quotearg (Dependencies): Likewise.
5011         * modules/regex (Dependencies): Likewise.
5012         * modules/wcscasecmp (Dependencies): Likewise.
5013         * modules/wcsncasecmp (Dependencies): Likewise.
5014         * modules/wcwidth (Dependencies): Likewise.
5015
5016 2011-02-06  Bruno Haible  <bruno@clisp.org>
5017
5018         New module 'wcswidth'.
5019         * modules/wcswidth: New file.
5020         * lib/wchar.in.h (wcswidth): New declaration.
5021         * lib/wcswidth.c: New file.
5022         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5023         * m4/wcswidth.m4: New file.
5024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5026         REPLACE_WCSWIDTH.
5027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5028         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5029         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5030         * doc/posix-functions/wcswidth.texi: Mention the new module.
5031
5032 2011-02-06  Bruno Haible  <bruno@clisp.org>
5033
5034         New module 'wcstok'.
5035         * modules/wcstok: New file.
5036         * lib/wchar.in.h (wcstok): New declaration.
5037         * lib/wcstok.c: New file.
5038         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5039         * m4/wcstok.m4: New file.
5040         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5041         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5042         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5043         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5044         * doc/posix-functions/wcstok.texi: Mention the new module.
5045
5046 2011-02-06  Bruno Haible  <bruno@clisp.org>
5047
5048         New module 'wcsstr'.
5049         * modules/wcsstr: New file.
5050         * lib/wchar.in.h (wcsstr): New declaration.
5051         * lib/wcsstr.c: New file.
5052         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5053         * m4/wcsstr.m4: New file.
5054         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5055         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5056         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5057         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5058         * doc/posix-functions/wcsstr.texi: Mention the new module.
5059
5060 2011-02-06  Bruno Haible  <bruno@clisp.org>
5061
5062         New module 'wcspbrk'.
5063         * modules/wcspbrk: New file.
5064         * lib/wchar.in.h (wcspbrk): New declaration.
5065         * lib/wcspbrk.c: New file.
5066         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5067         * m4/wcspbrk.m4: New file.
5068         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5069         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5070         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5071         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5072         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5073
5074 2011-02-06  Bruno Haible  <bruno@clisp.org>
5075
5076         New module 'wcsspn'.
5077         * modules/wcsspn: New file.
5078         * lib/wchar.in.h (wcsspn): New declaration.
5079         * lib/wcsspn.c: New file.
5080         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5081         * m4/wcsspn.m4: New file.
5082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5084         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5085         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5086         * doc/posix-functions/wcsspn.texi: Mention the new module.
5087
5088 2011-02-06  Bruno Haible  <bruno@clisp.org>
5089
5090         New module 'wcscspn'.
5091         * modules/wcscspn: New file.
5092         * lib/wchar.in.h (wcscspn): New declaration.
5093         * lib/wcscspn.c: New file.
5094         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5095         * m4/wcscspn.m4: New file.
5096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5098         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5099         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5100         * doc/posix-functions/wcscspn.texi: Mention the new module.
5101
5102 2011-02-06  Bruno Haible  <bruno@clisp.org>
5103
5104         New module 'wcsrchr'.
5105         * modules/wcsrchr: New file.
5106         * lib/wchar.in.h (wcsrchr): New declaration.
5107         * lib/wcsrchr.c: New file.
5108         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5109         * m4/wcsrchr.m4: New file.
5110         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5111         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5112         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5113         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5114         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5115
5116 2011-02-06  Bruno Haible  <bruno@clisp.org>
5117
5118         New module 'wcschr'.
5119         * modules/wcschr: New file.
5120         * lib/wchar.in.h (wcschr): New declaration.
5121         * lib/wcschr.c: New file.
5122         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5123         * m4/wcschr.m4: New file.
5124         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5125         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5126         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5127         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5128         * doc/posix-functions/wcschr.texi: Mention the new module.
5129
5130 2011-02-06  Bruno Haible  <bruno@clisp.org>
5131
5132         New module 'wcsdup'.
5133         * modules/wcsdup: New file.
5134         * lib/wchar.in.h (wcsdup): New declaration.
5135         * lib/wcsdup.c: New file.
5136         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5137         * m4/wcsdup.m4: New file.
5138         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5139         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5140         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5141         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5142         * doc/posix-functions/wcsdup.texi: Mention the new module.
5143
5144 2011-02-06  Bruno Haible  <bruno@clisp.org>
5145
5146         New module 'wcsxfrm'.
5147         * modules/wcsxfrm: New file.
5148         * lib/wchar.in.h (wcsxfrm): New declaration.
5149         * lib/wcsxfrm.c: New file.
5150         * lib/wcsxfrm-impl.h: New file.
5151         * m4/wcsxfrm.m4: New file.
5152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5154         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5155         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5156         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5157
5158 2011-02-06  Bruno Haible  <bruno@clisp.org>
5159
5160         New module 'wcscoll'.
5161         * modules/wcscoll: New file.
5162         * lib/wchar.in.h (wcscoll): New declaration.
5163         * lib/wcscoll.c: New file.
5164         * lib/wcscoll-impl.h: New file.
5165         * m4/wcscoll.m4: New file.
5166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5169         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5170         * doc/posix-functions/wcscoll.texi: Mention the new module.
5171
5172 2011-02-06  Bruno Haible  <bruno@clisp.org>
5173
5174         New module 'wcsncasecmp'.
5175         * modules/wcsncasecmp: New file.
5176         * lib/wchar.in.h (wcsncasecmp): New declaration.
5177         * lib/wcsncasecmp.c: New file.
5178         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5179         * m4/wcsncasecmp.m4: New file.
5180         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5181         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5182         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5183         HAVE_WCSNCASECMP.
5184         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5185         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5186
5187 2011-02-06  Bruno Haible  <bruno@clisp.org>
5188
5189         New module 'wcscasecmp'.
5190         * modules/wcscasecmp: New file.
5191         * lib/wchar.in.h (wcscasecmp): New declaration.
5192         * lib/wcscasecmp.c: New file.
5193         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5194         * m4/wcscasecmp.m4: New file.
5195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5198         HAVE_WCSCASECMP.
5199         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5200         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5201
5202 2011-02-05  Bruno Haible  <bruno@clisp.org>
5203
5204         New module 'wcsncmp'.
5205         * modules/wcsncmp: New file.
5206         * lib/wchar.in.h (wcsncmp): New declaration.
5207         * lib/wcsncmp.c: New file.
5208         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5209         * m4/wcsncmp.m4: New file.
5210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5212         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5213         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5214         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5215
5216 2011-02-05  Bruno Haible  <bruno@clisp.org>
5217
5218         New module 'wcscmp'.
5219         * modules/wcscmp: New file.
5220         * lib/wchar.in.h (wcscmp): New declaration.
5221         * lib/wcscmp.c: New file.
5222         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5223         * m4/wcscmp.m4: New file.
5224         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5225         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5227         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5228         * doc/posix-functions/wcscmp.texi: Mention the new module.
5229
5230 2011-02-05  Bruno Haible  <bruno@clisp.org>
5231
5232         New module 'wcsncat'.
5233         * modules/wcsncat: New file.
5234         * lib/wchar.in.h (wcsncat): New declaration.
5235         * lib/wcsncat.c: New file.
5236         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5237         * m4/wcsncat.m4: New file.
5238         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5239         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5240         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5241         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5242         * doc/posix-functions/wcsncat.texi: Mention the new module.
5243
5244 2011-02-05  Bruno Haible  <bruno@clisp.org>
5245
5246         New module 'wcscat'.
5247         * modules/wcscat: New file.
5248         * lib/wchar.in.h (wcscat): New declaration.
5249         * lib/wcscat.c: New file.
5250         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5251         * m4/wcscat.m4: New file.
5252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5255         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5256         * doc/posix-functions/wcscat.texi: Mention the new module.
5257
5258 2011-02-05  Bruno Haible  <bruno@clisp.org>
5259
5260         New module 'wcpncpy'.
5261         * modules/wcpncpy: New file.
5262         * lib/wchar.in.h (wcpncpy): New declaration.
5263         * lib/wcpncpy.c: New file.
5264         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5265         * m4/wcpncpy.m4: New file.
5266         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5267         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5268         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5269         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5270         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5271
5272 2011-02-05  Bruno Haible  <bruno@clisp.org>
5273
5274         New module 'wcsncpy'.
5275         * modules/wcsncpy: New file.
5276         * lib/wchar.in.h (wcsncpy): New declaration.
5277         * lib/wcsncpy.c: New file.
5278         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5279         * m4/wcsncpy.m4: New file.
5280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5283         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5284         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5285
5286 2011-02-05  Bruno Haible  <bruno@clisp.org>
5287
5288         New module 'wcpcpy'.
5289         * modules/wcpcpy: New file.
5290         * lib/wchar.in.h (wcpcpy): New declaration.
5291         * lib/wcpcpy.c: New file.
5292         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5293         * m4/wcpcpy.m4: New file.
5294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5296         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5297         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5298         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5299
5300 2011-02-05  Bruno Haible  <bruno@clisp.org>
5301
5302         New module 'wcscpy'.
5303         * modules/wcscpy: New file.
5304         * lib/wchar.in.h (wcscpy): New declaration.
5305         * lib/wcscpy.c: New file.
5306         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5307         * m4/wcscpy.m4: New file.
5308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5311         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5312         * doc/posix-functions/wcscpy.texi: Mention the new module.
5313
5314 2011-02-05  Bruno Haible  <bruno@clisp.org>
5315
5316         New module 'wcsnlen'.
5317         * modules/wcsnlen: New file.
5318         * lib/wchar.in.h (wcsnlen): New declaration.
5319         * lib/wcsnlen.c: New file.
5320         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5321         * m4/wcsnlen.m4: New file.
5322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5325         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5326         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5327
5328 2011-02-05  Bruno Haible  <bruno@clisp.org>
5329
5330         New module 'wcslen'.
5331         * modules/wcslen: New file.
5332         * lib/wchar.in.h (wcslen): New declaration.
5333         * lib/wcslen.c: New file.
5334         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5335         * m4/wcslen.m4: New file.
5336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5339         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5340         * doc/posix-functions/wcslen.texi: Mention the new module.
5341
5342 2011-02-05  Bruno Haible  <bruno@clisp.org>
5343
5344         New module 'wmemset'.
5345         * modules/wmemset: New file.
5346         * lib/wchar.in.h (wmemset): New declaration.
5347         * lib/wmemset.c: New file.
5348         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5349         * m4/wmemset.m4: New file.
5350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5352         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5353         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5354         * doc/posix-functions/wmemset.texi: Mention the new module.
5355
5356 2011-02-05  Bruno Haible  <bruno@clisp.org>
5357
5358         New module 'wmemmove'.
5359         * modules/wmemmove: New file.
5360         * lib/wchar.in.h (wmemmove): New declaration.
5361         * lib/wmemmove.c: New file.
5362         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5363         * m4/wmemmove.m4: New file.
5364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5366         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5367         HAVE_WMEMMOVE.
5368         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5369         * doc/posix-functions/wmemmove.texi: Mention the new module.
5370
5371 2011-02-05  Bruno Haible  <bruno@clisp.org>
5372
5373         New module 'wmemcpy'.
5374         * modules/wmemcpy: New file.
5375         * lib/wchar.in.h (wmemcpy): New declaration.
5376         * lib/wmemcpy.c: New file.
5377         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5378         * m4/wmemcpy.m4: New file.
5379         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5380         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5381         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5382         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5383         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5384
5385 2011-02-05  Bruno Haible  <bruno@clisp.org>
5386
5387         New module 'wmemcmp'.
5388         * modules/wmemcmp: New file.
5389         * lib/wchar.in.h (wmemcmp): New declaration.
5390         * lib/wmemcmp.c: New file.
5391         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5392         * m4/wmemcmp.m4: New file.
5393         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5394         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5395         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5396         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5397         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5398
5399 2011-02-07  Jim Meyering  <meyering@redhat.com>
5400
5401         di-set, ino-map: new modules, from coreutils
5402         * lib/di-set.c: New file.
5403         * lib/di-set.h: Likewise.
5404         * lib/ino-map.c: Likewise.
5405         * lib/ino-map.h: Likewise.
5406         * modules/di-set: Likewise.
5407         * modules/di-set-tests: Likewise.
5408         * modules/ino-map: Likewise.
5409         * modules/ino-map-tests: Likewise.
5410         * tests/test-di-set.c: Likewise.
5411         * tests/test-ino-map.c: Likewise.
5412
5413 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5414
5415         getloadavg: merge minor changes from Emacs
5416
5417         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5418         (getloadavg): Use memset, not bzero.
5419
5420         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5421         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5422         clash (bug#86).
5423
5424 2010-11-14  Bruno Haible  <bruno@clisp.org>
5425
5426         Allow multiple gnulib generated replacements to coexist.
5427         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5428         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5429         * lib/langinfo.in.h (nl_item): Likewise.
5430         * lib/math.in.h (_NaN, NAN): Likewise.
5431         * lib/netdb.in.h (struct addrinfo): Likewise.
5432         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5433         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5434         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5435         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5436         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5437         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5438         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5439         pthread_mutexattr_init, pthread_mutexattr_settype,
5440         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5441         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5442         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5443         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5444         * lib/sched.in.h (struct sched_param): Likewise.
5445         * lib/se-selinux.in.h (security_class_t, security_context_t,
5446         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5447         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5448         lsetfilecon, fsetfilecon, security_check_context,
5449         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5450         Likewise.
5451         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5452         Likewise.
5453         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5454         _gl_function_taking_int_returning_void_t, union sigval,
5455         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5456         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5457         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5458         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5459         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5460         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5461         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5462         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5463         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5464         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5465         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5466         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5467         socklen_t, rpl_fd_isset): Likewise.
5468         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5469         * lib/sys_time.in.h (struct timeval): Likewise.
5470         * lib/sys_times.in.h (struct tms): Likewise.
5471         * lib/sys_utsname.in.h (struct utsname):
5472         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5473         * lib/unistd.in.h (getpagesize): Likewise.
5474         * lib/wchar.in.h (mbstate_t): Likewise.
5475         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5476         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5477         towlower, towupper): Likewise.
5478         Reported by Sam Steingold <sds@gnu.org>.
5479
5480 2011-02-05  Eric Blake  <eblake@redhat.com>
5481
5482         unsetenv: work around Haiku issues
5483         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5484         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5485
5486 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5487
5488         libposix: avoid calling error() within libposix
5489         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5490         is defined.
5491
5492 2011-02-05  Eric Blake  <eblake@redhat.com>
5493
5494         strerror_r-posix: port to cygwin
5495         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5496         implementation.
5497         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5498         * tests/test-strerror_r.c (main): Fix test.
5499         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5500         issue.
5501
5502 2011-02-05  Bruno Haible  <bruno@clisp.org>
5503
5504         New module 'wmemchr'.
5505         * modules/wmemchr: New file.
5506         * lib/wchar.in.h (wmemchr): New declaration.
5507         * lib/wmemchr.c: New file.
5508         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5509         * m4/wmemchr.m4: New file.
5510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5512         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5513         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5514         * doc/posix-functions/wmemchr.texi: Mention the new module.
5515
5516 2011-02-04  Eric Blake  <eblake@redhat.com>
5517
5518         fdopendir: detect FreeBSD bug
5519         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5520         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5521
5522 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5523
5524         stdbool: do not define HAVE_STDBOOL_H
5525         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5526         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5527         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5528         imported from the latest Autoconf git.  It was motivated by Emacs,
5529         which uses gnulib but does not need HAVE_STDBOOL_H.
5530
5531 2011-02-04  Bruno Haible  <bruno@clisp.org>
5532
5533         wcsnrtombs: Prepare for new module wwcsnrtombs.
5534         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5535         * lib/wcsnrtombs.c: Include it.
5536         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5537
5538         wcsrtombs: Prepare for new module wwcsrtombs.
5539         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5540         * lib/wcsrtombs.c: Include it.
5541         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
5542
5543         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
5544         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
5545         * lib/mbsnrtowcs.c: Include it.
5546         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
5547
5548         mbsrtowcs: Prepare for new module mbsrtowwcs.
5549         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
5550         * lib/mbsrtowcs.c: Include it.
5551         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
5552
5553 2011-02-04  Bruno Haible  <bruno@clisp.org>
5554
5555         vasnprintf: Reduce use of malloc for small format strings.
5556         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
5557         (arguments): Add room for the first 7 arguments.
5558         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
5559         (char_directives, u8_directives, u16_directives, u32_directives): Add
5560         room for the first 7 directives.
5561         * lib/printf-parse.c: Include <string.h>.
5562         (PRINTF_PARSE): Change memory handling code so that it uses the first
5563         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
5564         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
5565         Reported by Pádraig Brady <P@draigbrady.com>.
5566
5567 2011-01-31  Eric Blake  <eblake@redhat.com>
5568
5569         dup2: work around Haiku bug
5570         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
5571         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
5572         * doc/posix-functions/dup2.texi (dup2): Document the bug.
5573         * tests/test-dup2.c (main): Enhance test.
5574
5575 2011-01-31  Simon Josefsson  <simon@josefsson.org>
5576
5577         doc: off_t is not available in eglibc 2.11.2 stdio.h.
5578         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
5579         declared by eglibc 2.11.2.
5580         * lib/stdio.in.h: Likewise.
5581
5582 2011-01-31  Eric Blake  <eblake@redhat.com>
5583
5584         ignore-value: add missing test dependency
5585         * tests/test-ignore-value.c: Revert previous change; stdio.h
5586         provides off_t.
5587         * modules/ignore-value-tests (Depends-on): Add missing dependency.
5588
5589 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
5590
5591         mktime: clarify long_int width checking
5592         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
5593         the top level, to make it clearer that the assumption about
5594         long_int width is being checked.  See
5595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
5596
5597 2011-01-30  Simon Josefsson  <simon@josefsson.org>
5598
5599         ignore-value: Fix self-test.
5600         * tests/test-ignore-value.c: Include sys/types.h for off_t.
5601
5602 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5603
5604         TYPE_MAXIMUM: avoid theoretically undefined behavior
5605         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
5606         negative number, which the C Standard says has undefined behavior.
5607         In practice this is not a problem, but might as well do it by the book.
5608         Reported by Rich Felker and Eric Blake; see
5609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
5610         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
5611         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5613         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
5614         * m4/stdint.m4 (gl_STDINT_H): Likewise.
5615         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
5616
5617         mktime: #undef mktime before #defining it
5618         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
5619
5620         mktime: systematically normalize tm_isdst comparisons
5621         * lib/mktime.c (isdst_differ): New function.
5622         (__mktime_internal): Use it systematically for all isdst comparisons.
5623         This completes the fix for libc BZ #6723, and removes the need for
5624         normalizing tm_isdst.  See
5625         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
5626         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
5627
5628         mktime: fix some integer overflow issues and sidestep the rest
5629
5630         This was prompted by a bug report by Benjamin Lindner for MinGW
5631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
5632         His bug is due to signed integer overflow (0 - INT_MIN), and I
5633         I scanned through mktime.c looking for other integer overflow
5634         problems, fixing all the bugs I found.
5635
5636         Although the C Standard says the resulting code is still not safe
5637         in the presence of integer overflow, in practice it should be good
5638         enough for all real-world two's-complement implementations, except
5639         for debugging environments that deliberately trap on integer
5640         overflow (e.g., gcc -ftrapv).
5641
5642         * lib/mktime.c (WRAPV): New macro.
5643         (SHR): Also check that long_int and time_t shift right in the
5644         usual way, before using the fast-but-unportable method.
5645         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
5646         used.  The code already assumed two's complement, so there's
5647         no need to test for alternatives.  All uses removed.
5648         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
5649         the C standard.  Problem reported by Rich Felker in
5650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
5651         (twos_complement_arithmetic): Also check long_int and time_t.
5652         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
5653         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
5654         (__mktime_internal): Avoid integer overflow with unary subtraction
5655         in two instances where -1 - X is an adequate replacement for -X,
5656         since the calculations are approximate.
5657
5658 2011-01-29  Eric Blake  <eblake@redhat.com>
5659
5660         mktime: avoid infinite loop
5661         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
5662         type; behavior is still undefined but portable to all known targets.
5663         Reported by Rich Felker.
5664
5665 2011-01-29  Simon Josefsson  <simon@josefsson.org>
5666
5667         rename, unlink, same-inode: Relicense.
5668         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
5669         * modules/unlink (License): Likewise.
5670         * modules/same-inode (License): Likewise.
5671
5672 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5673
5674         mktime: avoid problems on NetBSD 5 / i386
5675         * lib/mktime.c (long_int): New type.  This works around a problem
5676         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
5677         but time_t is 64 bits, and where I expect the existing code is
5678         wrong in some cases.
5679         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
5680         (ydhms_diff): Bring back the compile-time check for wide-enough
5681         year and yday.
5682
5683         mktime: fix misspelling in comment
5684         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
5685         This merges all recent glibc changes of importance.
5686
5687 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5688
5689         move-if-change: cope with concurrent mv of identical file.
5690         * build-aux/move-if-change (CMPPROG): Accept environment
5691         variable as an override for `cmp'.
5692         (usage): Document CMPPROG.
5693         Adjust comparison to drop stdout.  Cope with failure of mv if
5694         the target file exists and is identical to the source, for
5695         parallel builds.
5696         Report from H.J. Lu against binutils in PR binutils/12283.
5697
5698 2011-01-28  Bruce Korb  <bkorb@gnu.org>
5699
5700         * users.txt: Mention sharutils.
5701
5702 2011-01-28  Simon Josefsson  <simon@josefsson.org>
5703
5704         * users.txt: Mention OATH Toolkit.
5705
5706 2011-01-27  Bruno Haible  <bruno@clisp.org>
5707
5708         Prepare for supporting FreeBSD 10.
5709         * build-aux/config.libpath: Remove handling of freebsd1*.
5710
5711 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
5712
5713         Prepare for supporting FreeBSD 10.
5714         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
5715         match FreeBSD 10.0.
5716
5717 2011-01-27  Bruno Haible  <bruno@clisp.org>
5718
5719         vma-iter, get-rusage-as: Add OpenBSD support.
5720         * modules/vma-iter (configure.ac): Test for mquery.
5721         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
5722         * lib/vma-iter.c: Include <sys/mman.h>.
5723         (vma_iterate): Add an implementation based on mquery().
5724         * lib/resource-ext.h (get_rusage_as): Update comments.
5725         * lib/get-rusage-as.c: Likewise.
5726         * lib/get-rusage-data.c: Likewise.
5727
5728 2011-01-26  Karl Berry  <karl@gnu.org>
5729
5730         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
5731         variables to make it easier to override the makeinfo program used.
5732
5733 2011-01-26  Eric Blake  <eblake@redhat.com>
5734
5735         fcntl: work around Haiku F_DUPFD bugs
5736         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
5737         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
5738         cloexec bit on duplication.
5739         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
5740
5741 2011-01-26  Bruno Haible  <bruno@clisp.org>
5742
5743         Enable memory leak tests on AIX.
5744         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
5745         * tests/test-fprintf-posix3.c (main): Likewise.
5746
5747 2011-01-26  Bruno Haible  <bruno@clisp.org>
5748
5749         Tests for module 'get-rusage-data'.
5750         * modules/get-rusage-data-tests: New file.
5751         * tests/test-get-rusage-data.c: New file.
5752
5753         New module 'get-rusage-data'.
5754         * lib/resource-ext.h (get_rusage_data): New declaration.
5755         * lib/get-rusage-data.c: New file.
5756         * modules/get-rusage-data: New file.
5757
5758 2011-01-25  Bruno Haible  <bruno@clisp.org>
5759
5760         get-rusage-as: Allow for easier testing.
5761         * lib/resource-ext.h (get_rusage_as): Add comment.
5762         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
5763         (main): New function for interactive testing.
5764
5765 2011-01-25  Bruno Haible  <bruno@clisp.org>
5766
5767         vma-iter: Treat Haiku like BeOS.
5768         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
5769         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
5770
5771 2011-01-25  Eric Blake  <eblake@redhat.com>
5772
5773         c-stack: fix regression on cygwin when libsigsegv is present
5774         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
5775
5776 2011-01-24  Bruno Haible  <bruno@clisp.org>
5777
5778         vma-iter: Avoid empty intervals.
5779         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
5780         on an empty interval.
5781
5782 2011-01-24  Jim Meyering  <meyering@redhat.com>
5783
5784         u64: remove unnecessary #include
5785         * lib/u64.h: Don't include <stddef.h>.  It was not used.
5786
5787 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5788
5789         Allow the user to avoid the HAVE_RAW_DECL_* macros.
5790         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
5791
5792 2011-01-23  Bruno Haible  <bruno@clisp.org>
5793
5794         New module 'vma-iter'.
5795         * lib/vma-iter.h: New file.
5796         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
5797         * modules/vma-iter: New file.
5798         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
5799         for get_rusage_as_via_iterator.
5800         (vma_iterate_callback): New function.
5801         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
5802         * modules/get-rusage-as (Depends-on): Add vma-iter.
5803
5804 2011-01-23  Bruno Haible  <bruno@clisp.org>
5805
5806         uninorm: Tweak includes.
5807         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
5808         Reported by Jim Meyering.
5809
5810 2011-01-23  Bruno Haible  <bruno@clisp.org>
5811
5812         get-rusage-as: Improve on NetBSD.
5813         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5814         /proc, like on FreeBSD.
5815
5816 2011-01-23  Jim Meyering  <meyering@redhat.com>
5817
5818         xreadlink.h: remove unnecessary #include
5819         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5820
5821         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5822         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5823
5824 2011-01-23  Bruno Haible  <bruno@clisp.org>
5825
5826         get-rusage-as: Fix bug.
5827         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5828         original limit when aborting the first loop.
5829
5830 2011-01-23  Bruno Haible  <bruno@clisp.org>
5831
5832         wctype: Ensure valid C syntax.
5833         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5834         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5835
5836 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5837
5838         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5839         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5840         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5841         as they are needed only for configure's test case.
5842         This removes two unnecessary symbols from config.h.
5843
5844         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5845         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5846         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5847         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5848         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5849         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5850         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5851         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5852         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5853         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5854         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5855         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5856         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5857         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5858         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5859         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5860         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5861         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5862
5863 2011-01-21  Eric Blake  <eblake@redhat.com>
5864
5865         maintainer-makefile: work with older git for submodule check
5866         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5867         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5868         Reported by Matthias Bolte.
5869
5870         bootstrap: minor portability fixes
5871         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5872         (usage): Omit leading capital and trailing . on help phrases, per
5873         GNU Coding Standards.
5874         (check_versions, top level): Prefix messages with script name.
5875
5876 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5877
5878         bootstrap: support --no-git option
5879         * build-aux/bootstrap: Add --no-git option, to be used when
5880         --gnulib-srcdir points to the exact desired checkout.
5881
5882 2011-01-21  Eric Blake  <eblake@redhat.com>
5883
5884         strerror_r-posix: work with glibc 2.13
5885         * lib/strerror_r.c (strerror_r): Fix return type.
5886
5887 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5888             Bruno Haible  <bruno@clisp.org>
5889
5890         uN_strstr: New unit tests.
5891         * modules/unistr/u8-strstr-tests: New file.
5892         * modules/unistr/u16-strstr-tests: New file.
5893         * modules/unistr/u32-strstr-tests: New file.
5894         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5895         * tests/unistr/test-u8-strstr.c: New file.
5896         * tests/unistr/test-u16-strstr.c: New file.
5897         * tests/unistr/test-u32-strstr.c: New file.
5898
5899 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5900             Bruno Haible  <bruno@clisp.org>
5901
5902         Make uN_strstr functions O(n) worst-case.
5903         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5904         16-bit and 32-bit unit cases, use the unibyte algorithm from
5905         lib/mbsstr.c.
5906         * lib/unistr/u8-strstr.c: Include <string.h>.
5907         (UNIT_IS_UINT8_T): New macro.
5908         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5909         (U_STRLEN, U_STRNLEN): New macros.
5910         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5911         (U_STRLEN, U_STRNLEN): New macros.
5912         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5913         (configure.ac): Update required libunistring version.
5914         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5915         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5916         malloca.
5917         (configure.ac): Update required libunistring version.
5918         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5919         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5920         malloca.
5921         (configure.ac): Update required libunistring version.
5922
5923 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5924             Bruno Haible  <bruno@clisp.org>
5925
5926         Prepare for faster uN_strstr functions.
5927         * lib/str-kmp.h: Support definable UNITs.
5928         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5929         needle_len argument.
5930         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5931         * lib/mbscasestr.c (mbscasestr): Likewise.
5932
5933 2011-01-21  Pádraig Brady <P@draigBrady.com>
5934
5935         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5936         * tests/test-malloca.c (main): Unset the environment variable
5937         to greatly speed up the test.
5938         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5939         * modules/malloca-tests: Depend on unsetenv.
5940
5941 2011-01-21  Pádraig Brady <P@draigBrady.com>
5942
5943         ignore-value: remove stdint dependency
5944         * lib/ignore-value.h: Remove <stdint.h>
5945         * modules/ignore-value: Remove stdint dependency.
5946
5947 2011-01-21  Jim Meyering  <meyering@redhat.com>
5948
5949         maint.mk: adjust variable name to be consistent with other gl_ vars
5950         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5951         to be lower case.
5952
5953 2011-01-20  Jim Meyering  <meyering@redhat.com>
5954
5955         maint.mk: make "check" depend on public-submodule-commit by default
5956         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5957
5958 2011-01-20  Bruno Haible  <bruno@clisp.org>
5959
5960         mbfile, mbiter: Complete change from 2008-12-21.
5961         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5962         * m4/mbiter.m4 (gl_MBITER): Likewise.
5963
5964 2011-01-20  Jim Meyering  <meyering@redhat.com>
5965
5966         init.sh: insert space between each function name and "()"
5967         * tests/init.sh: Make it a little easier to see that a function's
5968         name is "warn_", and not "warn" when looking at the first part of
5969         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5970
5971 2011-01-20  Jim Meyering  <meyering@redhat.com>
5972
5973         mountlist: clean up code formatting
5974         * lib/mountlist.c (read_file_system_list): Split a long line,
5975         correct bracing style, use NULL in place of "(struct statfs *)0",
5976         don't parenthesize return value, add spaces around "=" and after
5977         ";-in-for-stmt".
5978
5979 2011-01-14  Markus Duft <mduft@gentoo.org>
5980
5981         mountlist: add support for Interix
5982         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5983         Apply statvfs to all entries of /dev/fs.
5984         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5985         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5986
5987 2011-01-20  Jim Meyering  <meyering@redhat.com>
5988
5989         maint.mk: improve the public-submodule-commit rule
5990         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5991         to suppress printing of its commands... unless V=1.
5992         Add git submodule's --quiet option to suppress printing of e.g.,
5993         "Entering gnulib" output.
5994         "cd" into $(srcdir) before running git submodule.
5995
5996 2011-01-20  Bruno Haible  <bruno@clisp.org>
5997
5998         include_next: Fix bug introduced on 2011-01-18.
5999         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6000         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6001         ac_cv_header_... variable if the second argument is not 'check'.
6002         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6003         gl_NEXT_HEADERS_INTERNAL.
6004
6005 2011-01-20  Bruno Haible  <bruno@clisp.org>
6006
6007         Allow the user to avoid the GNULIB_TEST_* macros.
6008         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6009         Suggested by Paul Eggert.
6010
6011 2011-01-14  Jim Meyering  <meyering@redhat.com>
6012
6013         bootstrap: avoid failure when there is no .gitmodules file
6014         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6015         has been assigned to, even when its value is the empty string.
6016         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6017         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6018         Reported by John W. Eaton <jwe@gnu.org>.
6019
6020 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6021
6022         assume <ctype.h>, ..., <time.h> exist
6023         For years gnulib has been assuming the existence of the headers
6024         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6025         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6026         them, since they don't appear to be needed.
6027         * README (Portability guidelines): Document this.
6028         * lib/flock.c: Assume <fcntl.h> exists.
6029         * lib/regex_internal.h: Assume <locale.h> exists.
6030         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6031         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6032         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6033         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6034         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6035         * m4/regex.m4 (gl_REGEX): Likewise.
6036         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6037         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6038         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6039         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6040         * tests/test-argp.c: Likewise.
6041         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6042
6043         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6044         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6045         AA_APPLE_UNIVERSAL_BUILD.  See
6046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6047         * NEWS: Document this.
6048
6049 2011-01-19  Eric Blake  <eblake@redhat.com>
6050
6051         c-stack: assume stack overflow if SA_SIGINFO unsupported
6052         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6053         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6054         sigaction will work.
6055         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6056         behavior match Linux.
6057         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6058
6059         stdbool-tests: accomodate Haiku
6060         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6061
6062         binary-io: fix O_TEXT on Haiku
6063         * modules/binary-io (Depends-on): Add fcntl-h.
6064         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6065         than blindly undefining O_TEXT.
6066         Reported by Scott McCreary.
6067
6068 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6069
6070         include_next: do not check for standard headers like stddef.h
6071
6072         I found this problem when modifying Emacs to use gnulib.
6073         I noticed that it added HAVE_STDDEF_H to config.h, even though
6074         gnulib always assumes <stddef.h> exists as per README and this
6075         symbol is unnecessary.
6076         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6077         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6078         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6079         faster for headers like stddef.h that are known to exist.
6080         (gl_CHECK_NEXT_HEADERS): Use it.
6081         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6082         rather than gl_CHECK_NEXT_HEADERS.
6083         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6084         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6085
6086 2011-01-18  Eric Blake  <eblake@redhat.com>
6087
6088         ansi-c++-opt: skip C++ dependency style if C++ is unused
6089         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6090         tests when we know C++ compilation is not desired.
6091         Reported by Scott McCreary.
6092
6093 2011-01-18  Bruno Haible  <bruno@clisp.org>
6094
6095         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6096         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6097         (main): Perform test also when getrlimit and setrlimit don't exist or
6098         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6099         limiting the address space size using setrlimit, compare the address
6100         space size before and after the the test.
6101         * tests/test-dprintf-posix2.c: Likewise.
6102         * tests/test-fprintf-posix3.sh: Update skip messages.
6103         * tests/test-dprintf-posix2.sh: Likewise.
6104         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6105         * modules/dprintf-posix-tests (Depends-on): Likewise.
6106         Reported by Bruce Korb <bkorb@gnu.org> and
6107         Gary V. Vaughan <gary@gnu.org>.
6108
6109 2011-01-18  Bruno Haible  <bruno@clisp.org>
6110
6111         get-rusage-as: Improvement for Cygwin.
6112         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6113         areas that are merely reserved.
6114
6115 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6116
6117         strftime: remove dependencies on multibyte modules
6118
6119         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6120         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6121         only if __osf__ is defined, and I suspect OSF doesn't need these
6122         other modules.  If my guess is wrong, we'll need to come up with a
6123         variant of strftime that doesn't need the multibyte modules.
6124
6125         I discovered this problem when attempting modify Emacs to use the
6126         strftime module.  With the previous gnulib, this caused Emacs to
6127         need 31 new files, ranging from lib/config.charset to
6128         m4/wint_t.m4.  This was overkill and I expect would be offputting
6129         to the Emacs maintainers.  After this change, only 6 new files are
6130         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6131         stdbool.m4, and tm_gmtoff.m4.
6132
6133         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6134         Suggested by Bruno Haible in
6135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6136         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6137         and do not check for wchar.h.
6138         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6139         (Depends-on): Remove mbrlen, mbsinit, wchar.
6140
6141 2011-01-18  Bruno Haible  <bruno@clisp.org>
6142
6143         Tests for module 'get-rusage-as'.
6144         * modules/get-rusage-as-tests: New file.
6145         * tests/test-get-rusage-as.c: New file.
6146
6147         New module 'get-rusage-as'.
6148         * modules/get-rusage-as: New file.
6149         * lib/resource-ext.h: New file.
6150         * lib/get-rusage-as.c: New file.
6151
6152 2011-01-17  Eric Blake  <eblake@redhat.com>
6153
6154         sigaction: relax license from LGPLv3+ to LGPLv2+
6155         * modules/sigaction (License): Relax to LGPLv2+.
6156
6157 2011-01-14  Bruno Haible  <bruno@clisp.org>
6158
6159         filemode: Make function declarations usable in C++ mode.
6160         * lib/filemode.h: Enclose function declarations in extern "C" block.
6161         Reported by John W. Eaton <jwe@gnu.org>.
6162
6163 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6164
6165         save-cwd: no longer include "xgetcwd.h"
6166         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6167         This avoids a compilation failure in projects that use save-cwd
6168         without also using the xgetcwd module.
6169
6170 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6171
6172         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6173         This is so that a program like Emacs, which needs only dtoastr,
6174         does not have to bother with distributing and compiling ftoastr
6175         and ldtoastr.
6176         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6177         * modules/dtoastr, modules/ldtoastr: New files.
6178         * modules/ftoastr: Now works just for 'float'.
6179         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6180         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6181         dtoastr.c, ldtoastr.c.
6182
6183 2011-01-11  Jim Meyering  <meyering@redhat.com>
6184
6185         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6186         There is no need to work around the lack of the fchdir function,
6187         since gnulib can now provide a replacement when required.
6188         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6189         * modules/save-cwd (Depends-on): Add fchdir.
6190
6191 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6192
6193         openat, save-cwd: avoid xmalloc
6194
6195         This removes a direct (but undocumented) dependency of openat on
6196         xalloc, along with an indirect dependency via save-cwd.  It also
6197         removes a dependency of save-cwd on xgetcwd, and thereby
6198         indirectly on xalloc.  This change causes the openat substitute
6199         to fall back on save_cwd when memory is tight, and for save_cwd to
6200         fail instead of dying when memory is tight, but that's good enough.
6201         Problem and initial idea for fix reported by Bastien Roucaries in
6202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6203
6204         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6205         xalloc.h (for xmalloc).
6206         (openat_proc_name): Use malloc, not xmalloc.
6207         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6208         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6209
6210         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6211         This avoids heap allocation for file names whose lengths are in
6212         the range 512..1023, with the upper bound increasing to at most
6213         4031 depending on the platform's PATH_MAX.  (We do not want
6214         pathmax.h here as it might supply a non-constant PATH_MAX.)
6215         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6216         Perhaps they should be moved to malloca.h?
6217         (OPENAT_BUFFER_SIZE): Use them.
6218
6219 2011-01-10  Bruno Haible  <bruno@clisp.org>
6220
6221         doc: Update users.txt.
6222         * users.txt: Add recutils.
6223
6224 2011-01-09  Karl Berry  <karl@gnu.org>
6225
6226         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6227
6228         * doc/configmake.texi: New file.
6229         * doc/gnulib.texi: Include it.
6230         * modules/configmake: Move documentation from here.
6231
6232 2011-01-09  Bruno Haible  <bruno@clisp.org>
6233
6234         Update to Unicode 6.0.0.
6235         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6236         (get_lbp): Update for Unicode 6.0.0.
6237         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6238         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6239         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6240         U+11001, U+11038..U+11046. Remove U+06DE.
6241         (uc_width): Fix bounds of planes.
6242         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6243         lib/uniwidth/width.c.
6244         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6245         trailing whitespace removed.
6246         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6247         without comments, but with the original copyright notice.
6248         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6249         * lib/unicase/ignorable.h: Likewise.
6250         * lib/unicase/tocasefold.h: Likewise.
6251         * lib/unicase/tolower.h: Likewise.
6252         * lib/unicase/totitle.h: Likewise.
6253         * lib/unicase/toupper.h: Likewise.
6254         * lib/unictype/bidi_of.h: Likewise.
6255         * lib/unictype/blocks.h: Likewise.
6256         * lib/unictype/categ_C.h: Likewise.
6257         * lib/unictype/categ_Cn.h: Likewise.
6258         * lib/unictype/categ_L.h: Likewise.
6259         * lib/unictype/categ_Ll.h: Likewise.
6260         * lib/unictype/categ_Lm.h: Likewise.
6261         * lib/unictype/categ_Lo.h: Likewise.
6262         * lib/unictype/categ_Lu.h: Likewise.
6263         * lib/unictype/categ_M.h: Likewise.
6264         * lib/unictype/categ_Mc.h: Likewise.
6265         * lib/unictype/categ_Me.h: Likewise.
6266         * lib/unictype/categ_Mn.h: Likewise.
6267         * lib/unictype/categ_N.h: Likewise.
6268         * lib/unictype/categ_Nd.h: Likewise.
6269         * lib/unictype/categ_No.h: Likewise.
6270         * lib/unictype/categ_P.h: Likewise.
6271         * lib/unictype/categ_Po.h: Likewise.
6272         * lib/unictype/categ_S.h: Likewise.
6273         * lib/unictype/categ_Sc.h: Likewise.
6274         * lib/unictype/categ_Sk.h: Likewise.
6275         * lib/unictype/categ_Sm.h: Likewise.
6276         * lib/unictype/categ_So.h: Likewise.
6277         * lib/unictype/categ_of.h: Likewise.
6278         * lib/unictype/combining.h: Likewise.
6279         * lib/unictype/ctype_alnum.h: Likewise.
6280         * lib/unictype/ctype_alpha.h: Likewise.
6281         * lib/unictype/ctype_graph.h: Likewise.
6282         * lib/unictype/ctype_lower.h: Likewise.
6283         * lib/unictype/ctype_print.h: Likewise.
6284         * lib/unictype/ctype_punct.h: Likewise.
6285         * lib/unictype/ctype_upper.h: Likewise.
6286         * lib/unictype/decdigit.h: Likewise.
6287         * lib/unictype/digit.h: Likewise.
6288         * lib/unictype/numeric.h: Likewise.
6289         * lib/unictype/pr_alphabetic.h: Likewise.
6290         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6291         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6292         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6293         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6294         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6295         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6296         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6297         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6298         * lib/unictype/pr_case_ignorable.h: Likewise.
6299         * lib/unictype/pr_cased.h: Likewise.
6300         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6301         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6302         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6303         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6304         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6305         * lib/unictype/pr_combining.h: Likewise.
6306         * lib/unictype/pr_composite.h: Likewise.
6307         * lib/unictype/pr_currency_symbol.h: Likewise.
6308         * lib/unictype/pr_decimal_digit.h: Likewise.
6309         * lib/unictype/pr_deprecated.h: Likewise.
6310         * lib/unictype/pr_format_control.h: Likewise.
6311         * lib/unictype/pr_grapheme_base.h: Likewise.
6312         * lib/unictype/pr_grapheme_extend.h: Likewise.
6313         * lib/unictype/pr_grapheme_link.h: Likewise.
6314         * lib/unictype/pr_id_continue.h: Likewise.
6315         * lib/unictype/pr_id_start.h: Likewise.
6316         * lib/unictype/pr_ideographic.h: Likewise.
6317         * lib/unictype/pr_lowercase.h: Likewise.
6318         * lib/unictype/pr_math.h: Likewise.
6319         * lib/unictype/pr_numeric.h: Likewise.
6320         * lib/unictype/pr_other_alphabetic.h: Likewise.
6321         * lib/unictype/pr_other_id_continue.h: Likewise.
6322         * lib/unictype/pr_other_math.h: Likewise.
6323         * lib/unictype/pr_punctuation.h: Likewise.
6324         * lib/unictype/pr_sentence_terminal.h: Likewise.
6325         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6326         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6327         * lib/unictype/pr_unified_ideograph.h: Likewise.
6328         * lib/unictype/pr_uppercase.h: Likewise.
6329         * lib/unictype/pr_xid_continue.h: Likewise.
6330         * lib/unictype/pr_xid_start.h: Likewise.
6331         * lib/unictype/scripts.h: Likewise.
6332         * lib/unictype/scripts_byname.gperf: Likewise.
6333         * lib/unictype/sy_java_ident.h: Likewise.
6334         * lib/unigbrk/gbrkprop.h: Likewise.
6335         * lib/unilbrk/lbrkprop1.h: Likewise.
6336         * lib/unilbrk/lbrkprop2.h: Likewise.
6337         * lib/uninorm/decomposition-table2.h: Likewise.
6338         * lib/uniwbrk/wbrkprop.h: Likewise.
6339         * tests/unicase/test-cased.c: Likewise.
6340         * tests/unicase/test-ignorable.c: Likewise.
6341         * tests/unicase/test-uc_tolower.c: Likewise.
6342         * tests/unicase/test-uc_totitle.c: Likewise.
6343         * tests/unicase/test-uc_toupper.c: Likewise.
6344         * tests/unictype/test-categ_C.c: Likewise.
6345         * tests/unictype/test-categ_Cn.c: Likewise.
6346         * tests/unictype/test-categ_L.c: Likewise.
6347         * tests/unictype/test-categ_Ll.c: Likewise.
6348         * tests/unictype/test-categ_Lm.c: Likewise.
6349         * tests/unictype/test-categ_Lo.c: Likewise.
6350         * tests/unictype/test-categ_Lu.c: Likewise.
6351         * tests/unictype/test-categ_M.c: Likewise.
6352         * tests/unictype/test-categ_Mc.c: Likewise.
6353         * tests/unictype/test-categ_Me.c: Likewise.
6354         * tests/unictype/test-categ_Mn.c: Likewise.
6355         * tests/unictype/test-categ_N.c: Likewise.
6356         * tests/unictype/test-categ_Nd.c: Likewise.
6357         * tests/unictype/test-categ_No.c: Likewise.
6358         * tests/unictype/test-categ_P.c: Likewise.
6359         * tests/unictype/test-categ_Po.c: Likewise.
6360         * tests/unictype/test-categ_S.c: Likewise.
6361         * tests/unictype/test-categ_Sc.c: Likewise.
6362         * tests/unictype/test-categ_Sk.c: Likewise.
6363         * tests/unictype/test-categ_Sm.c: Likewise.
6364         * tests/unictype/test-categ_So.c: Likewise.
6365         * tests/unictype/test-ctype_alnum.c: Likewise.
6366         * tests/unictype/test-ctype_alpha.c: Likewise.
6367         * tests/unictype/test-ctype_graph.c: Likewise.
6368         * tests/unictype/test-ctype_lower.c: Likewise.
6369         * tests/unictype/test-ctype_print.c: Likewise.
6370         * tests/unictype/test-ctype_punct.c: Likewise.
6371         * tests/unictype/test-ctype_upper.c: Likewise.
6372         * tests/unictype/test-decdigit.h: Likewise.
6373         * tests/unictype/test-digit.h: Likewise.
6374         * tests/unictype/test-numeric.h: Likewise.
6375         * tests/unictype/test-pr_alphabetic.c: Likewise.
6376         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6377         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6378         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6379         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6380         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6381         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6382         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6383         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6384         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6385         * tests/unictype/test-pr_cased.c: Likewise.
6386         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6387         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6388         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6389         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6390         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6391         * tests/unictype/test-pr_combining.c: Likewise.
6392         * tests/unictype/test-pr_composite.c: Likewise.
6393         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6394         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6395         * tests/unictype/test-pr_deprecated.c: Likewise.
6396         * tests/unictype/test-pr_format_control.c: Likewise.
6397         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6398         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6399         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6400         * tests/unictype/test-pr_id_continue.c: Likewise.
6401         * tests/unictype/test-pr_id_start.c: Likewise.
6402         * tests/unictype/test-pr_ideographic.c: Likewise.
6403         * tests/unictype/test-pr_lowercase.c: Likewise.
6404         * tests/unictype/test-pr_math.c: Likewise.
6405         * tests/unictype/test-pr_numeric.c: Likewise.
6406         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6407         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6408         * tests/unictype/test-pr_other_math.c: Likewise.
6409         * tests/unictype/test-pr_punctuation.c: Likewise.
6410         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6411         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6412         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6413         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6414         * tests/unictype/test-pr_uppercase.c: Likewise.
6415         * tests/unictype/test-pr_xid_continue.c: Likewise.
6416         * tests/unictype/test-pr_xid_start.c: Likewise.
6417         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6418         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6419         changes.
6420         * lib/unictype/categ_Cc.h: Likewise.
6421         * lib/unictype/categ_Cf.h: Likewise.
6422         * lib/unictype/categ_Co.h: Likewise.
6423         * lib/unictype/categ_Cs.h: Likewise.
6424         * lib/unictype/categ_Lt.h: Likewise.
6425         * lib/unictype/categ_Nl.h: Likewise.
6426         * lib/unictype/categ_Pc.h: Likewise.
6427         * lib/unictype/categ_Pd.h: Likewise.
6428         * lib/unictype/categ_Pe.h: Likewise.
6429         * lib/unictype/categ_Pf.h: Likewise.
6430         * lib/unictype/categ_Pi.h: Likewise.
6431         * lib/unictype/categ_Ps.h: Likewise.
6432         * lib/unictype/categ_Z.h: Likewise.
6433         * lib/unictype/categ_Zl.h: Likewise.
6434         * lib/unictype/categ_Zp.h: Likewise.
6435         * lib/unictype/categ_Zs.h: Likewise.
6436         * lib/unictype/ctype_blank.h: Likewise.
6437         * lib/unictype/ctype_cntrl.h: Likewise.
6438         * lib/unictype/ctype_digit.h: Likewise.
6439         * lib/unictype/ctype_space.h: Likewise.
6440         * lib/unictype/ctype_xdigit.h: Likewise.
6441         * lib/unictype/mirror.h: Likewise.
6442         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6443         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6444         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6445         * lib/unictype/pr_bidi_control.h: Likewise.
6446         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6447         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6448         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6449         * lib/unictype/pr_bidi_pdf.h: Likewise.
6450         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6451         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6452         * lib/unictype/pr_dash.h: Likewise.
6453         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6454         * lib/unictype/pr_diacritic.h: Likewise.
6455         * lib/unictype/pr_extender.h: Likewise.
6456         * lib/unictype/pr_hex_digit.h: Likewise.
6457         * lib/unictype/pr_hyphen.h: Likewise.
6458         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6459         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6460         * lib/unictype/pr_ignorable_control.h: Likewise.
6461         * lib/unictype/pr_iso_control.h: Likewise.
6462         * lib/unictype/pr_join_control.h: Likewise.
6463         * lib/unictype/pr_left_of_pair.h: Likewise.
6464         * lib/unictype/pr_line_separator.h: Likewise.
6465         * lib/unictype/pr_logical_order_exception.h: Likewise.
6466         * lib/unictype/pr_non_break.h: Likewise.
6467         * lib/unictype/pr_not_a_character.h: Likewise.
6468         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6469         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6470         * lib/unictype/pr_other_id_start.h: Likewise.
6471         * lib/unictype/pr_other_lowercase.h: Likewise.
6472         * lib/unictype/pr_other_uppercase.h: Likewise.
6473         * lib/unictype/pr_paired_punctuation.h: Likewise.
6474         * lib/unictype/pr_paragraph_separator.h: Likewise.
6475         * lib/unictype/pr_pattern_syntax.h: Likewise.
6476         * lib/unictype/pr_pattern_white_space.h: Likewise.
6477         * lib/unictype/pr_private_use.h: Likewise.
6478         * lib/unictype/pr_quotation_mark.h: Likewise.
6479         * lib/unictype/pr_radical.h: Likewise.
6480         * lib/unictype/pr_soft_dotted.h: Likewise.
6481         * lib/unictype/pr_space.h: Likewise.
6482         * lib/unictype/pr_titlecase.h: Likewise.
6483         * lib/unictype/pr_variation_selector.h: Likewise.
6484         * lib/unictype/pr_white_space.h: Likewise.
6485         * lib/unictype/pr_zero_width.h: Likewise.
6486         * lib/unictype/sy_c_ident.h: Likewise.
6487         * lib/unictype/sy_c_whitespace.h: Likewise.
6488         * lib/unictype/sy_java_whitespace.h: Likewise.
6489         * lib/uninorm/composition-table.gperf: Likewise.
6490         * lib/uninorm/decomposition-table1.h: Likewise.
6491         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6492         LB8.
6493         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6494         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6495         * modules/unictype/*: Bump version number of expected libunistring
6496         version.
6497
6498 2011-01-09  Bruno Haible  <bruno@clisp.org>
6499
6500         Update to Unicode 5.2.0.
6501         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6502         trailing whitespace removed.
6503
6504 2011-01-09  Bruno Haible  <bruno@clisp.org>
6505
6506         New Unicode character properties, from Unicode 5.2.0.
6507         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6508         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6509         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6510         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6511         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6512         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6513         uc_is_property_cased, uc_is_property_case_ignorable,
6514         uc_is_property_changes_when_lowercased,
6515         uc_is_property_changes_when_uppercased,
6516         uc_is_property_changes_when_titlecased,
6517         uc_is_property_changes_when_casefolded,
6518         uc_is_property_changes_when_casemapped): New declarations.
6519         * lib/unictype/pr_byname.gperf: Add the new properties.
6520         * modules/unictype/property-byname (Depends-on): Depend on the new
6521         properties modules.
6522         * modules/unictype/property-all (Depends-on): Likewise.
6523         * MODULES.html.sh (Unicode string functions): Add
6524         unictype/property-case-ignorable, unictype/property-cased,
6525         unictype/property-changes-when-casefolded,
6526         unictype/property-changes-when-casemapped,
6527         unictype/property-changes-when-lowercased,
6528         unictype/property-changes-when-titlecased,
6529         unictype/property-changes-when-uppercased.
6530
6531         New module 'unictype/property-changes-when-casemapped'.
6532         * modules/unictype/property-changes-when-casemapped: New file.
6533         * lib/unictype/pr_changes_when_casemapped.c: New file.
6534         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6535         generated by gen-uni-tables.
6536         * modules/unictype/property-changes-when-casemapped-tests: New file.
6537         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6538         automatically generated by gen-uni-tables.
6539
6540         New module 'unictype/property-changes-when-casefolded'.
6541         * modules/unictype/property-changes-when-casefolded: New file.
6542         * lib/unictype/pr_changes_when_casefolded.c: New file.
6543         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
6544         generated by gen-uni-tables.
6545         * modules/unictype/property-changes-when-casefolded-tests: New file.
6546         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
6547         automatically generated by gen-uni-tables.
6548
6549         New module 'unictype/property-changes-when-titlecased'.
6550         * modules/unictype/property-changes-when-titlecased: New file.
6551         * lib/unictype/pr_changes_when_titlecased.c: New file.
6552         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
6553         generated by gen-uni-tables.
6554         * modules/unictype/property-changes-when-titlecased-tests: New file.
6555         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
6556         automatically generated by gen-uni-tables.
6557
6558         New module 'unictype/property-changes-when-uppercased'.
6559         * modules/unictype/property-changes-when-uppercased: New file.
6560         * lib/unictype/pr_changes_when_uppercased.c: New file.
6561         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
6562         generated by gen-uni-tables.
6563         * modules/unictype/property-changes-when-uppercased-tests: New file.
6564         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
6565         automatically generated by gen-uni-tables.
6566
6567         New module 'unictype/property-changes-when-lowercased'.
6568         * modules/unictype/property-changes-when-lowercased: New file.
6569         * lib/unictype/pr_changes_when_lowercased.c: New file.
6570         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
6571         generated by gen-uni-tables.
6572         * modules/unictype/property-changes-when-lowercased-tests: New file.
6573         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
6574         automatically generated by gen-uni-tables.
6575
6576         New module 'unictype/property-case-ignorable'.
6577         * modules/unictype/property-case-ignorable: New file.
6578         * lib/unictype/pr_case_ignorable.c: New file.
6579         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
6580         by gen-uni-tables.
6581         * modules/unictype/property-case-ignorable-tests: New file.
6582         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
6583         generated by gen-uni-tables.
6584
6585         New module 'unictype/property-cased'.
6586         * modules/unictype/property-cased: New file.
6587         * lib/unictype/pr_cased.c: New file.
6588         * lib/unictype/pr_cased.h: New file, automatically generated by
6589         gen-uni-tables.
6590         * modules/unictype/property-cased-tests: New file.
6591         * tests/unictype/test-pr_cased.c: New file, automatically generated by
6592         gen-uni-tables.
6593
6594 2011-01-09  Bruno Haible  <bruno@clisp.org>
6595
6596         Update to Unicode 5.2.0.
6597         * lib/gen-uni-tables.c (output_predicate, output_category,
6598         output_combclass, output_bidi_category, output_decimal_digit_test,
6599         output_decimal_digit, output_digit_test, output_digit,
6600         output_numeric_test, output_numeric, output_mirror, output_scripts,
6601         output_scripts_byname, output_blocks, output_ident_category): Fix
6602         comment header.
6603         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
6604         get_wbp.
6605         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
6606         items.
6607         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
6608         Changes_When_Lowercased, Changes_When_Uppercased,
6609         Changes_When_Titlecased, Changes_When_Casefolded,
6610         Changes_When_Casemapped.
6611         (is_property_alphabetic, is_property_default_ignorable_code_point):
6612         Update for Unicode 5.2.0.
6613         (is_property_cased, is_property_case_ignorable,
6614         is_property_changes_when_lowercased,
6615         is_property_changes_when_uppercased,
6616         is_property_changes_when_titlecased,
6617         is_property_changes_when_casefolded,
6618         is_property_changes_when_casemapped): New functions.
6619         (output_properties): Output also the properties cased, case_ignorable,
6620         changes_when_lowercased, changes_when_uppercased,
6621         changes_when_titlecased, changes_when_casefolded,
6622         changes_when_casemapped.
6623         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
6624         Unicode TR#11 revision 17 -> 19.
6625         (LBP_CP): New enumeration value.
6626         (LBP_*): Adjust values accordingly.
6627         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6628         TR#14 revision 22 -> 24.
6629         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
6630         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
6631         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
6632         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
6633         is_WBP_MIDLETTER.
6634         (output_composition_tables): Allow for 24 bits instead of 16 bits in
6635         the code1 and code2 of each composition rule.
6636         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
6637         * lib/unicase/ignorable.h: Likewise.
6638         * lib/unicase/tocasefold.h: Likewise.
6639         * lib/unicase/tolower.h: Likewise.
6640         * lib/unicase/totitle.h: Likewise.
6641         * lib/unicase/toupper.h: Likewise.
6642         * lib/unictype/bidi_of.h: Likewise.
6643         * lib/unictype/blocks.h: Likewise.
6644         * lib/unictype/categ_C.h: Likewise.
6645         * lib/unictype/categ_Cf.h: Likewise.
6646         * lib/unictype/categ_Cn.h: Likewise.
6647         * lib/unictype/categ_L.h: Likewise.
6648         * lib/unictype/categ_Ll.h: Likewise.
6649         * lib/unictype/categ_Lm.h: Likewise.
6650         * lib/unictype/categ_Lo.h: Likewise.
6651         * lib/unictype/categ_Lu.h: Likewise.
6652         * lib/unictype/categ_M.h: Likewise.
6653         * lib/unictype/categ_Mc.h: Likewise.
6654         * lib/unictype/categ_Mn.h: Likewise.
6655         * lib/unictype/categ_N.h: Likewise.
6656         * lib/unictype/categ_Nd.h: Likewise.
6657         * lib/unictype/categ_Nl.h: Likewise.
6658         * lib/unictype/categ_No.h: Likewise.
6659         * lib/unictype/categ_P.h: Likewise.
6660         * lib/unictype/categ_Pd.h: Likewise.
6661         * lib/unictype/categ_Po.h: Likewise.
6662         * lib/unictype/categ_S.h: Likewise.
6663         * lib/unictype/categ_Sc.h: Likewise.
6664         * lib/unictype/categ_So.h: Likewise.
6665         * lib/unictype/categ_of.h: Likewise.
6666         * lib/unictype/combining.h: Likewise.
6667         * lib/unictype/ctype_alnum.h: Likewise.
6668         * lib/unictype/ctype_alpha.h: Likewise.
6669         * lib/unictype/ctype_graph.h: Likewise.
6670         * lib/unictype/ctype_lower.h: Likewise.
6671         * lib/unictype/ctype_print.h: Likewise.
6672         * lib/unictype/ctype_punct.h: Likewise.
6673         * lib/unictype/ctype_upper.h: Likewise.
6674         * lib/unictype/decdigit.h: Likewise.
6675         * lib/unictype/digit.h: Likewise.
6676         * lib/unictype/numeric.h: Likewise.
6677         * lib/unictype/pr_alphabetic.h: Likewise.
6678         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6679         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6680         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6681         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6682         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6683         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6684         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6685         * lib/unictype/pr_combining.h: Likewise.
6686         * lib/unictype/pr_composite.h: Likewise.
6687         * lib/unictype/pr_currency_symbol.h: Likewise.
6688         * lib/unictype/pr_dash.h: Likewise.
6689         * lib/unictype/pr_decimal_digit.h: Likewise.
6690         * lib/unictype/pr_deprecated.h: Likewise.
6691         * lib/unictype/pr_diacritic.h: Likewise.
6692         * lib/unictype/pr_extender.h: Likewise.
6693         * lib/unictype/pr_grapheme_base.h: Likewise.
6694         * lib/unictype/pr_grapheme_extend.h: Likewise.
6695         * lib/unictype/pr_grapheme_link.h: Likewise.
6696         * lib/unictype/pr_id_continue.h: Likewise.
6697         * lib/unictype/pr_id_start.h: Likewise.
6698         * lib/unictype/pr_ideographic.h: Likewise.
6699         * lib/unictype/pr_ignorable_control.h: Likewise.
6700         * lib/unictype/pr_logical_order_exception.h: Likewise.
6701         * lib/unictype/pr_lowercase.h: Likewise.
6702         * lib/unictype/pr_numeric.h: Likewise.
6703         * lib/unictype/pr_other_alphabetic.h: Likewise.
6704         * lib/unictype/pr_punctuation.h: Likewise.
6705         * lib/unictype/pr_sentence_terminal.h: Likewise.
6706         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6707         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6708         * lib/unictype/pr_unified_ideograph.h: Likewise.
6709         * lib/unictype/pr_uppercase.h: Likewise.
6710         * lib/unictype/pr_xid_continue.h: Likewise.
6711         * lib/unictype/pr_xid_start.h: Likewise.
6712         * lib/unictype/pr_zero_width.h: Likewise.
6713         * lib/unictype/scripts.h: Likewise.
6714         * lib/unictype/scripts_byname.gperf: Likewise.
6715         * lib/unictype/sy_java_ident.h: Likewise.
6716         * lib/unigbrk/gbrkprop.h: Likewise.
6717         * lib/unilbrk/lbrkprop1.h: Likewise.
6718         * lib/unilbrk/lbrkprop2.h: Likewise.
6719         * lib/unilbrk/lbrktables.h: Likewise.
6720         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
6721         LBP_CP. Implement rule LB30.
6722         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
6723         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
6724         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
6725         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
6726         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
6727         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
6728         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
6729         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
6730         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
6731         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
6732         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
6733         bits instead of 16 bits in the code1 and code2 of each composition
6734         rule.
6735         (uc_composition): Update for Unicode 5.2.0.
6736         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
6737         * lib/uninorm/decomposition-table2.h: Likewise.
6738         * lib/uniwbrk/wbrkprop.h: Likewise.
6739         * tests/unicase/test-cased.c: Likewise.
6740         * tests/unicase/test-ignorable.c: Likewise.
6741         * tests/unicase/test-uc_tolower.c: Likewise.
6742         * tests/unicase/test-uc_totitle.c: Likewise.
6743         * tests/unicase/test-uc_toupper.c: Likewise.
6744         * tests/unictype/test-categ_C.c: Likewise.
6745         * tests/unictype/test-categ_Cf.c: Likewise.
6746         * tests/unictype/test-categ_Cn.c: Likewise.
6747         * tests/unictype/test-categ_L.c: Likewise.
6748         * tests/unictype/test-categ_Ll.c: Likewise.
6749         * tests/unictype/test-categ_Lm.c: Likewise.
6750         * tests/unictype/test-categ_Lo.c: Likewise.
6751         * tests/unictype/test-categ_Lu.c: Likewise.
6752         * tests/unictype/test-categ_M.c: Likewise.
6753         * tests/unictype/test-categ_Mc.c: Likewise.
6754         * tests/unictype/test-categ_Mn.c: Likewise.
6755         * tests/unictype/test-categ_N.c: Likewise.
6756         * tests/unictype/test-categ_Nd.c: Likewise.
6757         * tests/unictype/test-categ_Nl.c: Likewise.
6758         * tests/unictype/test-categ_No.c: Likewise.
6759         * tests/unictype/test-categ_P.c: Likewise.
6760         * tests/unictype/test-categ_Pd.c: Likewise.
6761         * tests/unictype/test-categ_Po.c: Likewise.
6762         * tests/unictype/test-categ_S.c: Likewise.
6763         * tests/unictype/test-categ_Sc.c: Likewise.
6764         * tests/unictype/test-categ_So.c: Likewise.
6765         * tests/unictype/test-ctype_alnum.c: Likewise.
6766         * tests/unictype/test-ctype_alpha.c: Likewise.
6767         * tests/unictype/test-ctype_graph.c: Likewise.
6768         * tests/unictype/test-ctype_lower.c: Likewise.
6769         * tests/unictype/test-ctype_print.c: Likewise.
6770         * tests/unictype/test-ctype_punct.c: Likewise.
6771         * tests/unictype/test-ctype_upper.c: Likewise.
6772         * tests/unictype/test-decdigit.h: Likewise.
6773         * tests/unictype/test-digit.h: Likewise.
6774         * tests/unictype/test-numeric.h: Likewise.
6775         * tests/unictype/test-pr_alphabetic.c: Likewise.
6776         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6777         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6778         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
6779         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6780         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6781         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6782         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6783         * tests/unictype/test-pr_combining.c: Likewise.
6784         * tests/unictype/test-pr_composite.c: Likewise.
6785         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6786         * tests/unictype/test-pr_dash.c: Likewise.
6787         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6788         * tests/unictype/test-pr_deprecated.c: Likewise.
6789         * tests/unictype/test-pr_diacritic.c: Likewise.
6790         * tests/unictype/test-pr_extender.c: Likewise.
6791         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6792         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6793         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6794         * tests/unictype/test-pr_id_continue.c: Likewise.
6795         * tests/unictype/test-pr_id_start.c: Likewise.
6796         * tests/unictype/test-pr_ideographic.c: Likewise.
6797         * tests/unictype/test-pr_ignorable_control.c: Likewise.
6798         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
6799         * tests/unictype/test-pr_lowercase.c: Likewise.
6800         * tests/unictype/test-pr_numeric.c: Likewise.
6801         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6802         * tests/unictype/test-pr_punctuation.c: Likewise.
6803         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6804         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6805         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6806         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6807         * tests/unictype/test-pr_uppercase.c: Likewise.
6808         * tests/unictype/test-pr_xid_continue.c: Likewise.
6809         * tests/unictype/test-pr_xid_start.c: Likewise.
6810         * tests/unictype/test-pr_zero_width.c: Likewise.
6811         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6812         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6813         changed behaviour: line breaking is now disallowed between a letter
6814         or '=' and '('.
6815         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6816         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6817         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6818         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6819         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6820         lib/uniwidth/width.c.
6821         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6822         without comments, but with the original copyright notice.
6823         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6824         changes.
6825         * lib/unictype/categ_Cc.h: Likewise.
6826         * lib/unictype/categ_Co.h: Likewise.
6827         * lib/unictype/categ_Cs.h: Likewise.
6828         * lib/unictype/categ_Lt.h: Likewise.
6829         * lib/unictype/categ_Me.h: Likewise.
6830         * lib/unictype/categ_Pc.h: Likewise.
6831         * lib/unictype/categ_Pe.h: Likewise.
6832         * lib/unictype/categ_Pf.h: Likewise.
6833         * lib/unictype/categ_Pi.h: Likewise.
6834         * lib/unictype/categ_Ps.h: Likewise.
6835         * lib/unictype/categ_Sk.h: Likewise.
6836         * lib/unictype/categ_Sm.h: Likewise.
6837         * lib/unictype/categ_Z.h: Likewise.
6838         * lib/unictype/categ_Zl.h: Likewise.
6839         * lib/unictype/categ_Zp.h: Likewise.
6840         * lib/unictype/categ_Zs.h: Likewise.
6841         * lib/unictype/ctype_blank.h: Likewise.
6842         * lib/unictype/ctype_cntrl.h: Likewise.
6843         * lib/unictype/ctype_digit.h: Likewise.
6844         * lib/unictype/ctype_space.h: Likewise.
6845         * lib/unictype/ctype_xdigit.h: Likewise.
6846         * lib/unictype/mirror.h: Likewise.
6847         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6848         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6849         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6850         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6851         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6852         * lib/unictype/pr_bidi_control.h: Likewise.
6853         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6854         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6855         * lib/unictype/pr_bidi_pdf.h: Likewise.
6856         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6857         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6858         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6859         * lib/unictype/pr_format_control.h: Likewise.
6860         * lib/unictype/pr_hex_digit.h: Likewise.
6861         * lib/unictype/pr_hyphen.h: Likewise.
6862         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6863         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6864         * lib/unictype/pr_iso_control.h: Likewise.
6865         * lib/unictype/pr_join_control.h: Likewise.
6866         * lib/unictype/pr_left_of_pair.h: Likewise.
6867         * lib/unictype/pr_line_separator.h: Likewise.
6868         * lib/unictype/pr_math.h: Likewise.
6869         * lib/unictype/pr_non_break.h: Likewise.
6870         * lib/unictype/pr_not_a_character.h: Likewise.
6871         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6872         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6873         * lib/unictype/pr_other_id_continue.h: Likewise.
6874         * lib/unictype/pr_other_id_start.h: Likewise.
6875         * lib/unictype/pr_other_lowercase.h: Likewise.
6876         * lib/unictype/pr_other_math.h: Likewise.
6877         * lib/unictype/pr_other_uppercase.h: Likewise.
6878         * lib/unictype/pr_paired_punctuation.h: Likewise.
6879         * lib/unictype/pr_paragraph_separator.h: Likewise.
6880         * lib/unictype/pr_pattern_syntax.h: Likewise.
6881         * lib/unictype/pr_pattern_white_space.h: Likewise.
6882         * lib/unictype/pr_private_use.h: Likewise.
6883         * lib/unictype/pr_quotation_mark.h: Likewise.
6884         * lib/unictype/pr_radical.h: Likewise.
6885         * lib/unictype/pr_soft_dotted.h: Likewise.
6886         * lib/unictype/pr_space.h: Likewise.
6887         * lib/unictype/pr_titlecase.h: Likewise.
6888         * lib/unictype/pr_variation_selector.h: Likewise.
6889         * lib/unictype/pr_white_space.h: Likewise.
6890         * lib/unictype/sy_c_ident.h: Likewise.
6891         * lib/unictype/sy_c_whitespace.h: Likewise.
6892         * lib/unictype/sy_java_whitespace.h: Likewise.
6893         * modules/uni*/*: Bump version number of expected libunistring version.
6894         Reported by Simon Josefsson.
6895
6896 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6897
6898         useless-if-before-free: fix typo in --help and make the internal,
6899         automatic version date update process work once again.
6900         --help output contained a NUL character instead of the
6901         backslash-zero that was intended.  Also, the "must lie within
6902         the first 8 lines" line is on line 9, and hence not getting
6903         automatically updated.
6904         * build-aux/useless-if-before-free: Fix the former by adding a
6905         backslash, and the latter by condensing the three lines of what-it-does
6906         to a single line, leaving one line of slack for the future.
6907
6908 2011-01-09  Bruno Haible  <bruno@clisp.org>
6909
6910         uniwidth/width: Fix width of U+1D173..U+1D17A.
6911         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6912         symbolic_width, output_width_property_test): New functions.
6913         (main): Invoke output_nonspacing_property, output_width_property_test.
6914         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6915         U+1D173..U+1D17A.
6916         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6917         1.
6918         * modules/uniwidth/*: Bump version number of expected libunistring
6919         version.
6920         * modules/unilbrk/*: Likewise.
6921
6922 2011-01-08  Bruno Haible  <bruno@clisp.org>
6923
6924         uninorm tests: Preserve copyright of Unicode data file.
6925         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6926         Mention modifications.
6927
6928 2011-01-08  Bruno Haible  <bruno@clisp.org>
6929
6930         gen-uni-tables: Prepare for Unicode 5.2.0.
6931         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6932         (debug_output_lbp, output_lbp): Update.
6933
6934 2011-01-08  Bruno Haible  <bruno@clisp.org>
6935
6936         unilbrk: Clarify gen-uni-tables.c code.
6937         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6938         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6939         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6940
6941 2011-01-07  Bruno Haible  <bruno@clisp.org>
6942
6943         strtod: Restore errno when successfully parsing Infinity or NaN.
6944         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6945         restore the original errno.
6946
6947 2011-01-07  Bruno Haible  <bruno@clisp.org>
6948
6949         remove test: Avoid failure on HP-UX 11.
6950         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6951
6952 2011-01-07  Bruno Haible  <bruno@clisp.org>
6953
6954         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6955         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6956         error code.
6957
6958 2011-01-07  Pádraig Brady <P@draigBrady.com>
6959
6960         ignore-value: fixup comments, and add Eric Blake
6961         as an author since he rewrote the macros.
6962         * lib/ignore-value.h (ignore_value):  State that
6963         we now support aggregates.  Also specify exactly
6964         when the GCC warn_unused_result feature was added.
6965
6966 2011-01-06  Eric Blake  <eblake@redhat.com>
6967
6968         ignore-value: support aggregate types
6969         * lib/ignore-value.h (ignore_value): Provide separate gcc
6970         definition.
6971         * modules/ignore-value-tests: New test module.
6972         * tests/test-ignore-value.c: New test.
6973
6974         maint.mk: improve sc_prohibit_strcmp regex
6975         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6976         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6977         definition of STRNEQ.
6978
6979         signal: work around Haiku issue with SIGBUS
6980         * lib/siglist.h: Add comment.
6981         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6982         strsignal's favoring of SIGSEGV.
6983         * tests/test-signal.c (main): Avoid test failure.
6984         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6985         Reported by Scott McCreary.
6986
6987         maint.mk: add pre-release check to ensure submodule commits are public
6988         * top/maint.mk (public-submodule-commit): New rule.
6989         (submodule-checks): New variable.
6990         (alpha beta stable): Depend on the variable.
6991
6992 2011-01-05  Pádraig Brady <P@draigBrady.com>
6993         and Jim Meyering  <meyering@redhat.com>
6994
6995         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6996         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6997         (ATTRIBUTE_DEPRECATED): Define.
6998         (_ignore_case): New function.
6999         (ignore_value): New macro, to replace the old function.
7000         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7001         * modules/ignore-value (Depends-on): Add stdint.
7002
7003 2011-01-04  Eric Blake  <eblake@redhat.com>
7004
7005         doc: regenerate INSTALL
7006         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7007         @firstparagraphindent support, now that autoconf dropped it.
7008         (INSTALL_PRELUDE): Reinstate old macro.
7009         * doc/install.texi: Resync from autoconf.
7010         * doc/INSTALL: Reflect recent autoconf update.
7011         * doc/INSTALL.ISO: Likewise.
7012         * doc/INSTALL.UTF-8: Likewise.
7013         Reported by Karl Berry.
7014
7015 2011-01-04  Bruce Korb  <address@hidden>
7016
7017         git-version-gen: avoid a sub-shell
7018         * build-aux/git-version-gen: Redirect stderr in `...` via
7019         "exec 2>...", rather than via an added sub-shell.
7020
7021 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7022
7023         git-version-gen: use (...) rather than sh -c '...'
7024         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7025         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7026
7027 2011-01-03  Jim Meyering  <meyering@redhat.com>
7028
7029         git-version-gen: convert leading TABs to spaces
7030         * build-aux/git-version-gen: Expand leading TABs.
7031
7032         git-version-gen: handle failed "git rev-list"
7033         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7034         from git and proceeding as if it had succeeded but printed no SHA1
7035         checksums, suppress the diagnostic and handle the failure.
7036         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7037
7038         git-version-gen: include command name in one more diagnostic
7039         * build-aux/git-version-gen: When the required .tarball-version file
7040         was missing or unreadable, you might see the diagnostic from "cat",
7041         but no trace of the name of the invoking script.  Now, you still see
7042         the diagnostic from cat, but also get one from "git-version-gen: ".
7043         Inspired by a patch from Bruce Korb.
7044
7045         update-copyright: adjust test to match changed code
7046         * tests/test-update-copyright.sh: Change test's expected output
7047         to match new actual output.
7048
7049 2011-01-02  Bruno Haible  <bruno@clisp.org>
7050
7051         getlogin_r: Avoid test failure on HP-UX 11.
7052         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7053         ERANGE when the second argument is zero.
7054         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7055         portability problem.
7056
7057 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7058
7059         * build-aux/update-copyright: doc Simon's changes
7060
7061 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7062
7063         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7064         environment variable.
7065
7066 2011-01-02  Bruno Haible  <bruno@clisp.org>
7067
7068         unigbrk: Avoid gcc warnings.
7069         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7070         unused variable.
7071         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7072         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7073         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7074         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7075         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7076         Change type of first argument to 'const char *'.
7077         (main): Remove unused variable.
7078         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7079         type of first argument to 'const char *'.
7080         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7081         Likewise.
7082         (main): Change type of variable 's'.
7083         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7084         to 'int'.
7085
7086 2011-01-02  Bruno Haible  <bruno@clisp.org>
7087
7088         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7089         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7090         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7091         bug.
7092         * lib/pwrite.c: Undo 2010-12-31 patch.
7093         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7094
7095 2011-01-02  Bruno Haible  <bruno@clisp.org>
7096
7097         pread: Fix test whether it works.
7098         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7099
7100 2011-01-02  Bruno Haible  <bruno@clisp.org>
7101
7102         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7103         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7104         ends in "6". Don't require a specific month name. Try also the locale
7105         names found on HP-UX 11 and Solaris 7.
7106
7107 2011-01-02  Bruno Haible  <bruno@clisp.org>
7108
7109         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7110         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7111         C linkage.
7112         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7113
7114 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7115
7116         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7117         for consistency, since the "cluster" term is not used elsewhere.
7118         * lib/unigbrk.in.h: Update name.
7119         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7120         * lib/unigbrk/u16-grapheme-next.c: Update name.
7121         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7122         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7123         * lib/unigbrk/u32-grapheme-next.c: Update name.
7124         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7125         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7126         * lib/unigbrk/u8-grapheme-next.c: Update name.
7127         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7128         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7129         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7130         Suggested by Bruno Haible.
7131
7132 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7133
7134         Remove module 'u8-grapheme-len' as too redundant with
7135         'u8-grapheme-next'.
7136         * modules/unigbrk/u8-grapheme-len: Delete file.
7137         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7138         * lib/unigbrk.in.h: Remove prototype for deleted function.
7139         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7140         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7141
7142         Remove module 'u16-grapheme-len' as too redundant with
7143         'u16-grapheme-next'.
7144         * modules/unigbrk/u16-grapheme-len: Delete file.
7145         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7146         * lib/unigbrk.in.h: Remove prototype for deleted function.
7147         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7148         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7149
7150         Remove module 'u32-grapheme-len' as too redundant with
7151         'u32-grapheme-next'.
7152         * modules/unigbrk/u32-grapheme-len: Delete file.
7153         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7154         * lib/unigbrk.in.h: Remove prototype for deleted function.
7155         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7156         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7157
7158         Suggested by Bruno Haible.
7159
7160 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7161
7162         * unigbrk.in.h: Fix typo: "ben" => "been".
7163         Reported by Bruno Haible.
7164
7165 2011-01-01  Jim Meyering  <meyering@redhat.com>
7166
7167         maint: update almost all copyright ranges to include 2011
7168         Run the new "make update-copyright" rule.
7169
7170 2011-01-01  Jim Meyering  <meyering@redhat.com>
7171
7172         maint: update-copyright: exempt doc/INSTALL*
7173         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7174         since they are generated.  Suggested by Bruno Haible.
7175
7176 2011-01-01  Jim Meyering  <meyering@redhat.com>
7177
7178         maint: refine the update-copyright rule
7179         * Makefile (update-copyright): Also exclude any file that includes
7180         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7181         code that merely generates the comment.
7182
7183 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7184
7185         New module 'u8-grapheme-len'.
7186         * modules/unigbrk/u8-grapheme-len: New file.
7187         * modules/unigbrk/u8-grapheme-len-tests: New file.
7188         * lib/unigbrk.in.h: Add prototype for new function.
7189         * lib/unigbrk/u8-grapheme-len.c: New file.
7190         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7191
7192         New module 'u16-grapheme-len'.
7193         * modules/unigbrk/u16-grapheme-len: New file.
7194         * modules/unigbrk/u16-grapheme-len-tests: New file.
7195         * lib/unigbrk.in.h: Add prototype for new function.
7196         * lib/unigbrk/u16-grapheme-len.c: New file.
7197         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7198
7199         New module 'u32-grapheme-len'.
7200         * modules/unigbrk/u32-grapheme-len: New file.
7201         * modules/unigbrk/u32-grapheme-len-tests: New file.
7202         * lib/unigbrk.in.h: Add prototype for new function.
7203         * lib/unigbrk/u32-grapheme-len.c: New file.
7204         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7205
7206         New module 'u8-grapheme-next'.
7207         * modules/unigbrk/u8-grapheme-next: New file.
7208         * modules/unigbrk/u8-grapheme-next-tests: New file.
7209         * lib/unigbrk.in.h: Add prototype for new function.
7210         * lib/unigbrk/u8-grapheme-next.c: New file.
7211         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7212
7213         New module 'u16-grapheme-next'.
7214         * modules/unigbrk/u16-grapheme-next: New file.
7215         * modules/unigbrk/u16-grapheme-next-tests: New file.
7216         * lib/unigbrk.in.h: Add prototype for new function.
7217         * lib/unigbrk/u16-grapheme-next.c: New file.
7218         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7219
7220         New module 'u32-grapheme-next'.
7221         * modules/unigbrk/u32-grapheme-next: New file.
7222         * modules/unigbrk/u32-grapheme-next-tests: New file.
7223         * lib/unigbrk.in.h: Add prototype for new function.
7224         * lib/unigbrk/u32-grapheme-next.c: New file.
7225         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7226
7227         New module 'u8-grapheme-prev'.
7228         * modules/unigbrk/u8-grapheme-prev: New file.
7229         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7230         * lib/unigbrk.in.h: Add prototype for new function.
7231         * lib/unigbrk/u8-grapheme-prev.c: New file.
7232         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7233
7234         New module 'u16-grapheme-prev'.
7235         * modules/unigbrk/u16-grapheme-prev: New file.
7236         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7237         * lib/unigbrk.in.h: Add prototype for new function.
7238         * lib/unigbrk/u16-grapheme-prev.c: New file.
7239         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7240
7241         New module 'u32-grapheme-prev'.
7242         * modules/unigbrk/u32-grapheme-prev: New file.
7243         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7244         * lib/unigbrk.in.h: Add prototype for new function.
7245         * lib/unigbrk/u32-grapheme-prev.c: New file.
7246         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7247
7248         New module 'u8-grapheme-breaks'.
7249         * modules/unigbrk/u8-grapheme-breaks: New file.
7250         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7251         * lib/unigbrk.in.h: Add prototype for new function.
7252         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7253         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7254
7255         New module 'u16-grapheme-breaks'.
7256         * modules/unigbrk/u16-grapheme-breaks: New file.
7257         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7258         * lib/unigbrk.in.h: Add prototype for new function.
7259         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7260         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7261
7262         New module 'u32-grapheme-breaks'.
7263         * modules/unigbrk/u32-grapheme-breaks: New file.
7264         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7265         * lib/unigbrk.in.h: Add prototype for new function.
7266         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7267         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7268
7269         New module 'ulc-grapheme-breaks'.
7270         * modules/unigbrk/ulc-grapheme-breaks: New file.
7271         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7272         * m4/locale-ar.m4: New file.
7273         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7274         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7275         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7276
7277 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7278
7279         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7280         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7281         modified how this file was generated before I initially submitted
7282         the module, but failed to regenerate it.  This meant that several
7283         of the level2 entries were wrong.
7284         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7285         Remove the division-by-2 that is folded into the table now that
7286         gbrkprop.h has been regenerated properly.  Now -1 entries are
7287         handled correctly.
7288
7289         New module 'unigbrk/uc-gbrk-prop-tests'.
7290         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7291         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7292         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7293         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7294
7295 2011-01-01  Bruno Haible  <bruno@clisp.org>
7296
7297         Avoid use of hexadecimal escapes.
7298         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7299         instead of hexadecimal escapes.
7300
7301 2011-01-01  Jim Meyering  <meyering@redhat.com>
7302
7303         maint: new rule to update copyright year ranges
7304         * Makefile (update-copyright): New rule.
7305
7306         maint: indent with TABs in Makefile
7307         * Makefile: Expand leading sequences of spaces to TABs
7308
7309         version-etc: update the copyright year it reports
7310         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7311
7312 2010-12-31  Bruno Haible  <bruno@clisp.org>
7313
7314         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7315         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7316         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7317         zero.
7318
7319 2010-12-31  Bruno Haible  <bruno@clisp.org>
7320
7321         pwrite: Work around HP-UX 11.11 bug.
7322         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7323         works and set REPLACE_PWRITE if not.
7324         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7325         function.
7326         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7327
7328 2010-12-31  Bruno Haible  <bruno@clisp.org>
7329
7330         pread: Work around HP-UX 11 bugs.
7331         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7332         and set REPLACE_PREAD if not.
7333         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7334
7335 2010-12-31  Eric Blake  <eblake@redhat.com>
7336
7337         nl_langinfo: fix YESEXPR on Irix 6.5
7338         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7339         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7340         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7341         it.
7342
7343 2010-12-31  Bruno Haible  <bruno@clisp.org>
7344
7345         iconv: Document HP-UX 11 bug.
7346         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7347
7348 2010-12-31  Bruno Haible  <bruno@clisp.org>
7349
7350         ldexpl: Fix link error on HP-UX 11.
7351         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7352         LDEXPL_LIBM, using $ISNANL_LIBM.
7353
7354 2010-12-31  Eric Blake  <eblake@redhat.com>
7355
7356         ftello: avoid compilation failure with SunStudio c89
7357         * lib/ftello.c (ftello): Use lseek, not llseek.
7358
7359         tests: avoid failing coreutils tests on cygwin
7360         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7361         (create_exe_shims_): Return 0 when skipping.
7362
7363 2010-12-31  Bruno Haible  <bruno@clisp.org>
7364
7365         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7366         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7367
7368 2010-12-31  Bruno Haible  <bruno@clisp.org>
7369
7370         waitpid: Fix link error in C++ mode.
7371         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7372
7373 2010-12-31  Bruno Haible  <bruno@clisp.org>
7374
7375         isnan: Use GCC built-ins when possible.
7376         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7377         __builtin_isnan.
7378         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7379         (isnan): Define using GCC built-ins for GCC >= 4.0.
7380
7381 2010-12-31  Bruno Haible  <bruno@clisp.org>
7382
7383         isnand: Fix mistake.
7384         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7385         __builtin_isnand.
7386
7387 2010-12-31  Bruno Haible  <bruno@clisp.org>
7388
7389         open: Avoid C++ error on HP-UX 11.
7390         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7391
7392 2010-12-31  Bruno Haible  <bruno@clisp.org>
7393
7394         time_r: Add missing declarations on HP-UX 11.
7395         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7396         instead of HAVE_LOCALTIME_R.
7397         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7398         HAVE_LOCALTIME_R always.
7399         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7400         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7401         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7402         HAVE_LOCALTIME_R.
7403         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7404         * doc/posix-functions/localtime_r.texi: Likewise.
7405
7406 2010-12-29  Eric Blake  <eblake@redhat.com>
7407
7408         mountlist: tweak previous commit
7409         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7410         Reported by Paul Eggert.
7411
7412         mountlist: fix local drive detection on cygwin
7413         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7414         that works for cygwin.
7415
7416 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7417
7418         ftoastr, snprintf: ftoastr + snprintf module
7419         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7420         since the snprintf module now should be good enough here.
7421         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7422         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7423         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7424         GNULIB_SNPRINTF only for the test directory, and the latter
7425         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7426         seems to suffice by itself.
7427
7428 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7429
7430         alloca: one step towards thread-safety
7431         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7432         need for a static variable.  All callers changed.  This does not
7433         make the alloca replacement thread-safe, but it's one step.
7434
7435         tests: minor indenting change
7436         * tests/init.sh: Sync from coreutils housekeeping patch
7437         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7438         to keep lines within 80 columns.
7439
7440 2010-12-28  Jim Meyering  <meyering@redhat.com>
7441
7442         regex: don't infloop on persistent failing calloc
7443         * lib/regexec.c (build_trtable): Return failure indication upon
7444         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7445         In glibc, this was fixed for version 2.13:
7446         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7447
7448 2010-12-28  Bruno Haible  <bruno@clisp.org>
7449             Paul Eggert <eggert@cs.ucla.edu>
7450
7451         linkat: Make implementation robust against system behaviour variations.
7452         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7453         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7454         way, and to -2 if it needs a generic runtime test.
7455         * lib/linkat.c (solaris_optimized_link_immediate,
7456         solaris_optimized_link_follow): New functions.
7457         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7458         (check_same_link): Use it.
7459
7460 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7461
7462         New module 'unigbrk/base'.
7463         * modules/unigbrk/base: New file.
7464         * lib/unigbrk.in.h: New file.
7465
7466         New module 'unigbrk/uc-gbrk-prop'.
7467         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7468         * modules/unigbrk/uc-gbrk-prop: New file.
7469         * lib/unigbrk/gbrkprop.h: New file.
7470         * lib/unigbrk/uc-gbrk-prop.c: New file.
7471
7472         New module 'unigbrk/uc-is-grapheme-break'.
7473         * modules/unigbrk/uc-is-grapheme-break: New file.
7474         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7475         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7476         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7477         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7478         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7479
7480         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7481
7482 2010-12-27  Bruno Haible  <bruno@clisp.org>
7483
7484         linkat test: Avoid failure on Solaris 11 2010-11.
7485         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7486
7487 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7488
7489         utimens: work around glibc rounding bug on more platforms
7490         * lib/utimens.c (fdutimens): Work around rounding bug even if
7491         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7492         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7493
7494 2010-12-27  Bruno Haible  <bruno@clisp.org>
7495
7496         select tests: Improve comments.
7497         * tests/test-select.c (do_select): Add comments.
7498
7499 2010-12-27  Bruno Haible  <bruno@clisp.org>
7500
7501         select tests: Safer way of handling timeout.
7502         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7503         at every invocation.
7504
7505 2010-12-27  Bruno Haible  <bruno@clisp.org>
7506
7507         select tests: Use 'bool' where appropriate.
7508         * tests/test-select.c (connect_to_socket): Change argument type to
7509         'bool'.
7510
7511 2010-12-27  Bruno Haible  <bruno@clisp.org>
7512
7513         select tests: Use existing modules.
7514         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7515         (configure.ac): Don't test for unistd.h.
7516         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7517         declared in <unistd.h>.
7518
7519 2010-12-27  Bruno Haible  <bruno@clisp.org>
7520
7521         mbrtowc: Work around a Solaris 7 bug.
7522         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7523         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7524         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7525         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7526         MBRTOWC_NULL_ARG1_BUG.
7527         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7528         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7529         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7530         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7531
7532 2010-12-27  Jim Meyering  <meyering@redhat.com>
7533
7534         read-file.c: tweak syntax
7535         * lib/read-file.c (fread_file): Remove space after "*" in function
7536         definitions.
7537
7538 2010-12-27  Bruno Haible  <bruno@clisp.org>
7539
7540         times test: Avoid gcc warnings on OSF/1.
7541         * tests/test-times.c (main): Cast printf arguments from clock_t to
7542         'long int'.
7543
7544 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7545
7546         utimens: work around glibc rounding bug on older Linux kernels
7547         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
7548         on Linux with a glibc whose utimes might not work, then work
7549         around a longstanding glibc bug involving rounding rather than
7550         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
7551         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7552
7553 2010-12-26  Bruno Haible  <bruno@clisp.org>
7554
7555         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
7556         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
7557         _GL_CXXALIAS_SYS.
7558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7559
7560 2010-12-26  Bruno Haible  <bruno@clisp.org>
7561
7562         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
7563         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
7564         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
7565         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
7566         looking for the declaration.
7567         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
7568         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
7569         problem.
7570         * doc/posix-functions/inet_pton.texi: Likewise.
7571
7572 2010-12-26  Bruno Haible  <bruno@clisp.org>
7573
7574         arpa_inet: Use the common idioms with C++ support.
7575         * lib/arpa_inet.in.h: Include c++defs.h.
7576         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
7577         support.
7578         * modules/arpa_inet (Depends-on): Add c++defs.
7579         (Makefile.am): Substitute the contents of c++defs.h.
7580         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
7581         * modules/arpa_inet-c++-tests: New file.
7582         * tests/test-arpa_inet-c++.cc: New file.
7583
7584 2010-12-25  Bruno Haible  <bruno@clisp.org>
7585
7586         Fix more C++ link errors on Solaris 8.
7587         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
7588         $(LIB_EACCESS).
7589         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
7590         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
7591         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
7592         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
7593         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
7594
7595 2010-12-25  Bruno Haible  <bruno@clisp.org>
7596
7597         printf-posix: Fix link error when a non-GCC compiler is used.
7598         * lib/stdio.in.h (printf): When not using GCC, override printf
7599         correctly.
7600         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7601
7602 2010-12-25  Bruno Haible  <bruno@clisp.org>
7603
7604         strerror_r-posix: Update doc.
7605         * doc/posix-functions/strerror_r.texi: Update doc about the return
7606         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
7607
7608 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7609
7610         utimens: simplify the logic of the previous change
7611         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
7612         This should not affect whether the test succeeds or fails.
7613
7614         utimens: configure better on hosts with NFS clock skew
7615         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
7616         uses the clock of the local host.  It might use the clock of the
7617         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
7618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
7619
7620 2010-12-25  Bruno Haible  <bruno@clisp.org>
7621
7622         ptsname test: Avoid failure on Solaris.
7623         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
7624         open a pseudo-terminal; don't use BSD-style ptys.
7625         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
7626
7627 2010-12-25  Bruno Haible  <bruno@clisp.org>
7628
7629         ptsname: Avoid ERANGE failure on some systems.
7630         * lib/ptsname.c (buffer): Increase size.
7631
7632 2010-12-25  Bruno Haible  <bruno@clisp.org>
7633
7634         rename, renameat: Avoid test failures at NFS mounted locations.
7635         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
7636         so that subsequent mkdir calls succeed.
7637
7638 2010-12-25  Bruno Haible  <bruno@clisp.org>
7639
7640         iswblank: Fix C++ link error on Solaris 8.
7641         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
7642         _GL_FUNCDECL_SYS.
7643
7644 2010-12-25  Bruno Haible  <bruno@clisp.org>
7645
7646         unistd: Fix C++ link error on Solaris 8.
7647         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
7648
7649 2010-12-25  Bruno Haible  <bruno@clisp.org>
7650
7651         readlink doc: Mention an old glibc bug.
7652         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
7653
7654 2010-12-25  Bruno Haible  <bruno@clisp.org>
7655
7656         fcntl-h: Fix for use of C++ on glibc systems.
7657         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
7658         also on glibc systems in C++ mode.
7659         Reported by Gary V. Vaughan <gary@gnu.org>.
7660
7661 2010-12-25  Bruno Haible  <bruno@clisp.org>
7662
7663         roundl-ieee: Make it work on OSF/1 5.1 with cc.
7664         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
7665
7666 2010-12-25  Bruno Haible  <bruno@clisp.org>
7667
7668         truncl-ieee: Make it work on OSF/1 5.1 with cc.
7669         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
7670         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
7671         test whether truncl works according to ISO C 99 with IEC 60559.
7672         * m4/truncl-ieee.m4: New file.
7673         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
7674         m4/signbit.m4.
7675         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
7676
7677 2010-12-25  Bruno Haible  <bruno@clisp.org>
7678
7679         ceill-ieee: Make it work on OSF/1 5.1 with cc.
7680         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
7681         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
7682         test whether ceill works according to ISO C 99 with IEC 60559.
7683         * m4/ceill-ieee.m4: New file.
7684         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
7685         m4/signbit.m4.
7686         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
7687
7688 2010-12-25  Bruno Haible  <bruno@clisp.org>
7689
7690         Ensure all prerequisites of <wchar.h> are included.
7691         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
7692         before <wchar.h>.
7693         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7694         gl_MBRLEN_NUL_RETVAL): Likewise.
7695         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
7696         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
7697         AC_FUNC_MBRTOWC): Likewise.
7698         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7699         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
7700         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7701         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7702         Likewise.
7703         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7704         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
7705         (gl_WCHAR_H): Improve comments.
7706         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
7707
7708 2010-12-25  Bruno Haible  <bruno@clisp.org>
7709
7710         strtok_r: Fix C syntax error in autoconf macro.
7711         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
7712         characters in test program.
7713
7714 2010-12-24  Bruno Haible  <bruno@clisp.org>
7715
7716         ceil, trunc, round: Fix gcc warnings.
7717         * lib/ceil.c (MIN): Undefine before redefining.
7718         * lib/trunc.c (MIN): Likewise.
7719         * lib/round.c (MIN): Likewise.
7720         Include <math.h> first.
7721
7722 2010-12-24  Bruno Haible  <bruno@clisp.org>
7723
7724         select tests: Avoid failures on OSF/1 5.1.
7725         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
7726         failure of closing the last socket; it may fail with ECONNRESET.
7727
7728 2010-12-24  Eric Blake  <eblake@redhat.com>
7729
7730         stdint: avoid HP-UX 10.20 preprocessor bug
7731         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
7732         than #if.
7733         * tests/test-floor2.c (main): Likewise.
7734         Reported by Peter O'Gorman.
7735
7736         pipe: make obsoletion transition easier
7737         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
7738         * modules/pipe (Files): Include revived file.
7739         (Include): Drop reference, to mirror getdate's behavior.
7740
7741 2010-12-24  Bruno Haible  <bruno@clisp.org>
7742
7743         sys_socket: Hide mismatch of declarations on NonStop Kernel.
7744         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
7745         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7746         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7747
7748 2010-12-24  Bruno Haible  <bruno@clisp.org>
7749
7750         gethostname: Ensure declaration on NonStop Kernel.
7751         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
7752         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7753
7754 2010-12-24  Bruno Haible  <bruno@clisp.org>
7755
7756         sys_select: Ensure all necessary types on NonStop Kernel.
7757         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
7758         include <sys/time.h>.
7759         * doc/posix-headers/sys_select.texi: Mention that it's missing on
7760         NonStop Kernel.
7761         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7762
7763 2010-12-24  Bruno Haible  <bruno@clisp.org>
7764
7765         sys_select: Remove unneeded include.
7766         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
7767         have <sys/select.h>.
7768
7769 2010-12-24  Bruno Haible  <bruno@clisp.org>
7770
7771         gethostname: Provide a fallback for HOST_NAME_MAX.
7772         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
7773         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
7774         instead.
7775         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7776
7777 2010-12-24  Bruno Haible  <bruno@clisp.org>
7778
7779         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
7780         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
7781         (SA_RESTART): Likewise.
7782         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7783
7784 2010-12-24  Bruno Haible  <bruno@clisp.org>
7785
7786         signal: Define NSIG.
7787         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
7788         * tests/test-signal.c (nsig): New variable.
7789         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7790
7791 2010-12-24  Bruno Haible  <bruno@clisp.org>
7792
7793         rename, renameat: Avoid test failures on OSF/1 5.1.
7794         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
7795         alternative error codes.
7796         * tests/test-renameat.c (main): Likewise.
7797
7798 2010-12-24  Bruno Haible  <bruno@clisp.org>
7799
7800         *printf: Detect large precisions bug on Solaris 10/SPARC.
7801         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
7802         by Paul Eggert.
7803         * tests/test-snprintf-posix.h (test_function): Add this test code here
7804         too.
7805         * tests/test-sprintf-posix.h (test_function): Likewise.
7806         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7807         * tests/test-vasprintf-posix.c (test_function): Likewise.
7808         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
7809         around by gnulib.
7810         * doc/posix-functions/printf.texi: Likewise.
7811         * doc/posix-functions/snprintf.texi: Likewise.
7812         * doc/posix-functions/sprintf.texi: Likewise.
7813         * doc/posix-functions/vfprintf.texi: Likewise.
7814         * doc/posix-functions/vprintf.texi: Likewise.
7815         * doc/posix-functions/vsnprintf.texi: Likewise.
7816         * doc/posix-functions/vsprintf.texi: Likewise.
7817         * doc/posix-functions/dprintf.texi: Undo last commit.
7818         * doc/posix-functions/vdprintf.texi: Likewise.
7819
7820 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7821
7822         tests: port test-fdutimensat.c to Solaris 8
7823         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7824         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7825         On Solaris 8, it fails with errno == ENOSYS, because there is no
7826         futimens (so it can't use the fd), and there is no lutimens (so it
7827         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7828
7829         vsnprintf: make more consistent with snprintf; doc fixes
7830
7831         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7832         the byte count return problem was promoted from the snprintf-posix
7833         to the snprintf module.
7834         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7835         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7836         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7837         * tests/test-snprintf.c (main): Check the byte count returned.
7838         * tests/test-vsnprintf.c (main): Likewise.
7839
7840 2010-12-23  Eric Blake  <eblake@redhat.com>
7841
7842         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7843         * modules/sigpipe (License): Relax license.
7844
7845 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7846
7847         doc: document Solaris printf bug with large float precisions
7848         * doc/posix-functions/dprintf.texi (dprintf):
7849         * doc/posix-functions/fprintf.texi (fprintf):
7850         * doc/posix-functions/printf.texi (printf):
7851         * doc/posix-functions/snprintf.texi (snprintf):
7852         * doc/posix-functions/sprintf.texi (sprintf):
7853         * doc/posix-functions/vdprintf.texi (vdprintf):
7854         * doc/posix-functions/vfprintf.texi (vfprintf):
7855         * doc/posix-functions/vprintf.texi (vprintf):
7856         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7857         * doc/posix-functions/vsprintf.texi (vsprintf):
7858         Mention that these functions mishandle large floating point
7859         precisions on Solaris 10.  The same bug is also present in Solaris
7860         8, and I assume earlier.  This causes "cd gnulib-tests; make
7861         check" to fail on Solaris 8 (and I assume, later) when building
7862         the latest coreutils, in test-vasprintf-posix's call to
7863         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7864         the wide flavors (e.g., wprintf) so this patch just updates the
7865         documentation for the narrow ones.
7866
7867         test-posixtm.c: add two tests
7868         * tests/test-posixtm.c: Add two tests, to highlight the
7869         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7870         around this bug; this is merely to document it.
7871
7872 2010-12-22  Bruno Haible  <bruno@clisp.org>
7873
7874         getlogin_r: Work around portability problem on OSF/1.
7875         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7876         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7877         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7878         test for a truncated result.
7879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7880         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7881         * modules/getlogin_r (Depends-on): Add memchr.
7882         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7883
7884 2010-12-22  Bruno Haible  <bruno@clisp.org>
7885
7886         ptsname: Avoid test failure on OSF/1 5.1.
7887         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7888         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7889         (same_slave): New function.
7890         (main): Use it to compare ptsname's result with the expected file name.
7891
7892 2010-12-22  Bruno Haible  <bruno@clisp.org>
7893
7894         Port extended stdio modules to HP NonStop Kernel.
7895         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7896         macros.
7897         * lib/fbufmode.c: Update comments.
7898         * lib/fflush.c: Likewise.
7899         * lib/fpurge.c: Likewise.
7900         * lib/freadable.c: Likewise.
7901         * lib/freadahead.c: Likewise.
7902         * lib/freading.c: Likewise.
7903         * lib/freadptr.c: Likewise.
7904         * lib/freadseek.c: Likewise.
7905         * lib/fseeko.c: Likewise.
7906         * lib/fseterr.c: Likewise.
7907         * lib/fwritable.c: Likewise.
7908         * lib/fwriting.c: Likewise.
7909         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7910
7911 2010-12-22  Bruno Haible  <bruno@clisp.org>
7912
7913         ttyname_r: Work around bug on OSF/1 5.1.
7914         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7915         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7916         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7917         present.
7918         * lib/ttyname_r.c (ttyname_r): Update comments.
7919
7920 2010-12-22  Bruno Haible  <bruno@clisp.org>
7921
7922         round: Implement result sign according to IEEE 754.
7923         * lib/round.c (MIN, MINUS_ZERO): New macros.
7924         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7925         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7926         * tests/test-round-ieee.c (main): Likewise.
7927         * tests/test-roundl-ieee.c (main): Likewise.
7928
7929         trunc: Implement result sign according to IEEE 754.
7930         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7931         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7932         * tests/test-trunc2.c: Include minus-zero.h.
7933         (MINUS_ZERO): New macro.
7934         (trunc_reference): Keep in sync with lib/trunc.c.
7935         * tests/test-truncf2.c: Include minus-zero.h.
7936         (MINUS_ZERO): New macro.
7937         (truncf_reference): Keep in sync with lib/trunc.c.
7938         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7939         * tests/test-trunc-ieee.c (main): Likewise.
7940         * tests/test-truncl-ieee.c (main): Likewise.
7941
7942         ceil: Implement result sign according to IEEE 754.
7943         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7944         (FUNC): Return -0.0 for -1 < x < 0.
7945         * tests/test-ceil2.c: Include minus-zero.h.
7946         (MINUS_ZERO): New macro.
7947         (ceil_reference): Keep in sync with lib/ceil.c.
7948         * tests/test-ceilf2.c: Include minus-zero.h.
7949         (MINUS_ZERO): New macro.
7950         (ceilf_reference): Keep in sync with lib/ceil.c.
7951         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7952         * tests/test-ceil-ieee.c (main): Likewise.
7953         * tests/test-ceill-ieee.c (main): Likewise.
7954
7955         floor: Implement result sign according to IEEE 754.
7956         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7957         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7958         * tests/test-floorf2.c (floorf_reference): Likewise.
7959         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7960         * tests/test-floor-ieee.c (main): Likewise.
7961         * tests/test-floorl-ieee.c (main): Likewise.
7962
7963 2010-12-22  Bruno Haible  <bruno@clisp.org>
7964
7965         getaddrinfo: Update doc.
7966         * doc/posix-functions/gai_strerror.texi: Return type is also different
7967         on AIX and HP-UX.
7968
7969 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7970
7971         getaddrinfo, inet_ntop: Update doc for Solaris.
7972         * doc/posix-functions/gai_strerror.texi: Return type is also an
7973         issue on Solaris 9 and earlier.
7974         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7975         on Solaris 10 and earlier.
7976
7977 2010-12-21  Bruno Haible  <bruno@clisp.org>
7978
7979         New module 'roundl-ieee'.
7980         * modules/roundl-ieee: New file.
7981         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7982         test whether roundl works according to ISO C 99 with IEC 60559.
7983         * m4/roundl-ieee.m4: New file.
7984         * modules/roundl-ieee-tests: New file.
7985         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7986         * tests/test-roundl.c (main): Remove signbit tests.
7987         * modules/roundl-tests (Depends-on): Remove signbit.
7988         * doc/posix-functions/roundl.texi: Mention the new module.
7989
7990 2010-12-21  Bruno Haible  <bruno@clisp.org>
7991
7992         New module 'truncl-ieee'.
7993         * modules/truncl-ieee: New file.
7994         * modules/truncl-ieee-tests: New file.
7995         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7996         * tests/test-truncl.c (main): Remove signbit tests.
7997         * modules/truncl-tests (Depends-on): Remove signbit.
7998         * doc/posix-functions/truncl.texi: Mention the new module.
7999
8000 2010-12-21  Bruno Haible  <bruno@clisp.org>
8001
8002         New module 'ceill-ieee'.
8003         * modules/ceill-ieee: New file.
8004         * modules/ceill-ieee-tests: New file.
8005         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8006         * tests/test-ceill.c (main): Remove signbit tests.
8007         * modules/ceill-tests (Depends-on): Remove signbit.
8008         * doc/posix-functions/ceill.texi: Mention the new module.
8009
8010 2010-12-21  Bruno Haible  <bruno@clisp.org>
8011
8012         New module 'floorl-ieee'.
8013         * modules/floorl-ieee: New file.
8014         * modules/floorl-ieee-tests: New file.
8015         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8016         * tests/test-floorl.c (main): Remove signbit tests.
8017         * modules/floorl-tests (Depends-on): Remove signbit.
8018         * doc/posix-functions/floorl.texi: Mention the new module.
8019
8020 2010-12-21  Bruno Haible  <bruno@clisp.org>
8021
8022         New module 'round-ieee'.
8023         * modules/round-ieee: New file.
8024         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8025         whether round works according to ISO C 99 with IEC 60559.
8026         * m4/round-ieee.m4: New file.
8027         * modules/round-ieee-tests: New file.
8028         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8029         * tests/test-round1.c (main): Remove signbit tests.
8030         * modules/round-tests (Depends-on): Remove 'signbit'.
8031         * doc/posix-functions/round.texi: Mention the new module.
8032
8033 2010-12-21  Bruno Haible  <bruno@clisp.org>
8034
8035         New module 'trunc-ieee'.
8036         * modules/trunc-ieee: New file.
8037         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8038         whether trunc works according to ISO C 99 with IEC 60559.
8039         * m4/trunc-ieee.m4: New file.
8040         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8042         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8043         * modules/trunc-ieee-tests: New file.
8044         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8045         * tests/test-trunc1.c (main): Remove signbit tests.
8046         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8047         * doc/posix-functions/trunc.texi: Mention the new module.
8048
8049 2010-12-21  Bruno Haible  <bruno@clisp.org>
8050
8051         New module 'ceil-ieee'.
8052         * modules/ceil-ieee: New file.
8053         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8054         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8055         ISO C 99 with IEC 60559.
8056         * m4/ceil-ieee.m4: New file.
8057         * modules/ceil (Files): Add lib/ceil.c.
8058         (Depends-on): Add 'float'.
8059         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8060         * lib/math.in.h (ceil): New declaration.
8061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8062         REPLACE_CEIL.
8063         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8064         * modules/ceil-ieee-tests: New file.
8065         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8066         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8067         * doc/posix-functions/ceil.texi: Mention the new module.
8068
8069 2010-12-21  Bruno Haible  <bruno@clisp.org>
8070
8071         New module 'floor-ieee'.
8072         * modules/floor-ieee: New file.
8073         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8074         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8075         ISO C 99 with IEC 60559.
8076         * m4/floor-ieee.m4: New file.
8077         * modules/floor (Files): Add lib/floor.c.
8078         (Depends-on): Add 'float'.
8079         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8080         * lib/math.in.h (floor): New declaration.
8081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8082         REPLACE_FLOOR.
8083         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8084         * modules/floor-ieee-tests: New file.
8085         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8086         * tests/test-math-c++.cc: Check the signature of 'floor'.
8087         * doc/posix-functions/floor.texi: Mention the new module.
8088
8089 2010-12-21  Bruno Haible  <bruno@clisp.org>
8090
8091         New module 'roundf-ieee'.
8092         * modules/roundf-ieee: New file.
8093         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8094         test whether roundf works according to ISO C 99 with IEC 60559.
8095         * m4/roundf-ieee.m4: New file.
8096         * modules/roundf-ieee-tests: New file.
8097         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8098         * tests/test-roundf1.c (main): Remove signbit tests.
8099         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8100         * doc/posix-functions/roundf.texi: Mention the new module.
8101
8102 2010-12-21  Bruno Haible  <bruno@clisp.org>
8103
8104         New module 'truncf-ieee'.
8105         * modules/truncf-ieee: New file.
8106         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8107         test whether truncf works according to ISO C 99 with IEC 60559.
8108         * m4/truncf-ieee.m4: New file.
8109         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8111         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8112         * modules/truncf-ieee-tests: New file.
8113         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8114         * tests/test-truncf1.c (main): Remove signbit tests.
8115         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8116         * doc/posix-functions/truncf.texi: Mention the new module.
8117
8118 2010-12-21  Bruno Haible  <bruno@clisp.org>
8119
8120         New module 'ceilf-ieee'.
8121         * modules/ceilf-ieee: New file.
8122         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8123         test whether ceilf works according to ISO C 99 with IEC 60559.
8124         * m4/ceilf-ieee.m4: New file.
8125         * modules/ceilf-ieee-tests: New file.
8126         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8127         * tests/test-ceilf1.c (main): Remove signbit tests.
8128         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8129         * doc/posix-functions/ceilf.texi: Mention the new module.
8130
8131 2010-12-21  Bruno Haible  <bruno@clisp.org>
8132
8133         New module 'floorf-ieee'.
8134         * modules/floorf-ieee: New file.
8135         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8136         test whether floorf works according to ISO C 99 with IEC 60559.
8137         * m4/floorf-ieee.m4: New file.
8138         * modules/floorf-ieee-tests: New file.
8139         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8140         * tests/test-floorf1.c (main): Remove signbit tests.
8141         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8142         * doc/posix-functions/floorf.texi: Mention the new module.
8143
8144 2010-12-21  Bruno Haible  <bruno@clisp.org>
8145
8146         Support for minus zero in autoconf macros.
8147         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8148         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8149         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8150         * tests/minus-zero.h: Update comments.
8151
8152 2010-12-21  Bruno Haible  <bruno@clisp.org>
8153
8154         Tests for module 'ceil'.
8155         * modules/ceil-tests: New file.
8156         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8157         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8158
8159 2010-12-21  Bruno Haible  <bruno@clisp.org>
8160
8161         Tests for module 'floor'.
8162         * modules/floor-tests: New file.
8163         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8164         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8165
8166 2010-12-21  Bruno Haible  <bruno@clisp.org>
8167
8168         math: Fix indentation.
8169         * lib/math.in.h (floorf): Fix indentation.
8170
8171 2010-12-21  Bruno Haible  <bruno@clisp.org>
8172
8173         Fix cross-compilation guesses on Solaris.
8174         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8175         not match "solaris2.10".
8176         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8177         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8178         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8179
8180 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8181
8182         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8183         This fixes a problem observed with the latest coreutils snapshot
8184         that caused a test to fail on Solaris 8.  src/csplit.c's call
8185         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8186         earlier, instead of returning the number of bytes that would have
8187         been generated; this causes csplit to incorrectly report memory
8188         exhaustion.
8189         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8190         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8191         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8192         comments to match.
8193         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8194         Fix typo in matching older versions of Solaris: "solaris2.10"
8195         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8196         only for guessing while cross-compiling.
8197         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8198
8199 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8200
8201         ftoastr: fix comment again
8202         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8203         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8204         Also, simplify example a bit by using flags = 0.
8205
8206 2010-12-20  Bruno Haible  <bruno@clisp.org>
8207
8208         round*, trunc*: Update documentation regarding glibc.
8209         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8210         * doc/posix-functions/round.texi: Likewise.
8211         * doc/posix-functions/roundl.texi: Likewise.
8212         * doc/posix-functions/truncf.texi: Likewise.
8213         * doc/posix-functions/trunc.texi: Likewise.
8214         * doc/posix-functions/truncl.texi: Likewise.
8215
8216 2010-12-20  Bruno Haible  <bruno@clisp.org>
8217
8218         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8219         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8220         * doc/posix-functions/round.texi: Likewise.
8221         * doc/posix-functions/roundl.texi: Likewise.
8222
8223 2010-12-20  Bruno Haible  <bruno@clisp.org>
8224
8225         ttyname_r: Add missing declaration on HP-UX 11.
8226         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8227         HAVE_TTYNAME_R.
8228         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8229         declared. Set HAVE_TTYNAME_R always.
8230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8231         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8232         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8233         HAVE_TTYNAME_R.
8234         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8235
8236 2010-12-20  Bruno Haible  <bruno@clisp.org>
8237
8238         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8239         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8240         * doc/posix-functions/getlogin_r.texi: Likewise.
8241         * tests/test-getlogin.c: Include <errno.h>.
8242         (main): Avoid test failure on HP-UX 11.11.
8243         * tests/test-getlogin_r.c (main): Likewise.
8244
8245 2010-12-20  Bruno Haible  <bruno@clisp.org>
8246
8247         getlogin_r: Add missing declaration on HP-UX 11.
8248         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8249         declared also when it exists as a function.
8250         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8251
8252 2010-12-20  Bruno Haible  <bruno@clisp.org>
8253
8254         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8255         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8256         through wcrtomb.
8257
8258 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8259
8260         ftoastr: fix comment
8261         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8262         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8263
8264 2010-12-19  Bruno Haible  <bruno@clisp.org>
8265
8266         isnan: Ensure it is a macro.
8267         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8268         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8269         Solaris.
8270
8271 2010-12-19  Bruno Haible  <bruno@clisp.org>
8272
8273         ldexpl test: Fix link error on OSF/1 5.1.
8274         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8275
8276 2010-12-19  Bruno Haible  <bruno@clisp.org>
8277
8278         wctype: Make it work in C++ mode on OSF/1 5.1.
8279         * lib/wctype.in.h (iswblank): Declare but not define here.
8280         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8281         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8282         * modules/wctype (Files): Add lib/iswblank.c.
8283
8284 2010-12-19  Bruno Haible  <bruno@clisp.org>
8285
8286         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8287         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8288         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8289
8290 2010-12-19  Bruno Haible  <bruno@clisp.org>
8291
8292         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8293         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8294         _POSIX_PII_SOCKET.
8295         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8296         * doc/posix-functions/recvfrom.texi: Likewise.
8297         * doc/posix-functions/send.texi: Likewise.
8298         * doc/posix-functions/sendto.texi: Likewise.
8299
8300 2010-12-19  Bruno Haible  <bruno@clisp.org>
8301
8302         tcgetsid: Add missing declaration on OSF/1 5.1.
8303         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8304         HAVE_TCGETSID.
8305         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8306         Don't set HAVE_TCGETSID.
8307         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8308         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8309         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8310         HAVE_TCGETSID.
8311         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8312
8313 2010-12-19  Bruno Haible  <bruno@clisp.org>
8314
8315         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8316         * lib/stdio.in.h: During the include_next statement, let recursive
8317         includes of this file include only the system header file.
8318
8319 2010-12-19  Bruno Haible  <bruno@clisp.org>
8320
8321         iconv_open: Fix regression from 2010-12-04.
8322         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8323         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8324
8325 2010-12-19  Bruno Haible  <bruno@clisp.org>
8326
8327         stdbool test: Avoid a gcc warning.
8328         * tests/test-stdbool.c (main): Fail if e1 is false.
8329         Reported by Jim Meyering.
8330
8331 2010-12-19  Jim Meyering  <meyering@redhat.com>
8332
8333         setenv: restore to working order
8334         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8335         mistakenly removed.
8336         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8337         HAVE_SETENV.
8338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8339         HAVE_SETENV.
8340
8341 2010-12-19  Bruno Haible  <bruno@clisp.org>
8342
8343         Document some different function declarations on OSF/1 5.1.
8344         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8345         * doc/posix-functions/inet_ntop.texi: Likewise.
8346         * doc/posix-functions/gethostname.texi: Likewise.
8347         * lib/unistd.in.h (gethostname): Update comment.
8348
8349 2010-12-19  Bruno Haible  <bruno@clisp.org>
8350
8351         doc: Mention vasprintf-posix module.
8352         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8353         the 'vasprintf-posix' module.
8354         * doc/glibc-functions/vasprintf.texi: Likewise.
8355
8356 2010-12-19  Bruno Haible  <bruno@clisp.org>
8357
8358         unsetenv: Add missing declaration on OSF/1 5.1.
8359         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8360         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8361         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8363         not HAVE_UNSETENV.
8364         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8365         HAVE_UNSETENV.
8366         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8367
8368 2010-12-19  Bruno Haible  <bruno@clisp.org>
8369
8370         setenv: Add missing declaration on OSF/1 5.1.
8371         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8372         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8373         declared. Don't set HAVE_SETENV.
8374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8375         not HAVE_SETENV.
8376         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8377         HAVE_SETENV.
8378         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8379
8380 2010-12-19  Bruno Haible  <bruno@clisp.org>
8381
8382         nl_langinfo tests: Avoid gcc warning.
8383         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8384
8385 2010-12-19  Bruno Haible  <bruno@clisp.org>
8386
8387         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8388         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8389         _GL_CXXALIAS_SYS.
8390
8391 2010-12-19  Bruno Haible  <bruno@clisp.org>
8392
8393         stdbool: Relax test.
8394         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8395         address to 'bool' work in static initializer, for compilers other than
8396         GCC.
8397
8398 2010-12-19  Bruno Haible  <bruno@clisp.org>
8399
8400         ftello: Add missing declaration on OSF/1 5.1.
8401         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8402         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8404         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8405         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8406
8407 2010-12-19  Bruno Haible  <bruno@clisp.org>
8408
8409         fseeko: Add missing declaration on OSF/1 5.1.
8410         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8411         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8413         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8414         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8415
8416 2010-12-19  Bruno Haible  <bruno@clisp.org>
8417
8418         fchdir: Add missing declaration on OSF/1 5.1.
8419         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8420         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8422         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8423         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8424
8425 2010-12-19  Bruno Haible  <bruno@clisp.org>
8426
8427         relocatable-prog-wrapper: Separate from relocatable-prog.
8428         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8429         uninstall-relocwrapper rule here.
8430         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8431         Reported by Ian Beckwith <ianb@erislabs.net>.
8432
8433 2010-12-19  Bruno Haible  <bruno@clisp.org>
8434
8435         unistr/u8-mbsnlen: Add missing dependency.
8436         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8437         Reported by Ian Beckwith <ianb@erislabs.net>.
8438
8439 2010-12-19  Bruno Haible  <bruno@clisp.org>
8440
8441         iconv: Make it possible again to use this module without 'iconv-h'.
8442         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8443         if it is not defined.
8444         Reported by Ian Beckwith <ianb@erislabs.net>.
8445
8446 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8447
8448         acl: port to Solaris 8 when copying from tmpfs to ufs
8449         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8450         error number.  Problem observed on Solaris 8 with latest
8451         coreutils, with "mv A B", where A is on a tmpfs file system and B
8452         is on a ufs file system.  This caused coreutils' mv/part-symlink
8453         test to fail.
8454
8455         tests: set fail=0 at start
8456         * tests/init.sh (setup_): Move fail=0 initialization here ...
8457         (mktempd_): ... from here, so that tests can rely on fail being
8458         set to 0 initially.  This fixes a problem in coreutils; see:
8459         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8460
8461 2010-12-18  Bruno Haible  <bruno@clisp.org>
8462
8463         memmem-simple: Stylistic changes.
8464         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8465         Fix preprocessor directive indentation.
8466
8467 2010-12-15  Pádraig Brady <P@draigBrady.com>
8468
8469         memmem, memmem-simple: reorganize and expand empty needle check
8470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8471         functional checks to memmem-simple so that one has a fully functional
8472         memmem by using just this module.
8473         Restrict the performance only check to the memmem module.
8474         Also expand the empty needle check to ensure the correct
8475         pointer is returned, not just a non NULL pointer.
8476         * doc/glibc-functions/memmem.texi: Rearrange the portability
8477         documentation to correlate with the rearranged checks.
8478         Clarify exactly how the memmem and memmem-simple modules
8479         relate to each other.
8480
8481 2010-12-15  Pádraig Brady <P@draigBrady.com>
8482             Bruno Haible  <bruno@clisp.org>
8483
8484         Improve cross-compilation guesses for uClibc.
8485         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8486         that uClibc does not have the glibc bug.
8487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8488         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8489
8490 2010-12-14  Eric Blake  <eblake@redhat.com>
8491
8492         configmake: provide fallbacks for oldest supported autotools
8493         * m4/configmake.m4: New file.
8494         * modules/configmake (Files): Ship it.
8495         (configure.ac): Use it to guarantee fallbacks.
8496
8497 2010-12-13  Pádraig Brady <P@draigBrady.com>
8498
8499         read-file: Improve handling of large files
8500         * lib/read-file.c (fread_file): Minimize realloc()s
8501         for regular files, and better manage sizes around SIZE_MAX.
8502
8503 2010-12-13  Eric Blake  <eblake@redhat.com>
8504
8505         cloexec, fcntl: relax license
8506         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8507         consent from all contributors.
8508         * modules/fcntl (License): Likewise.
8509
8510 2010-12-10  Bruno Haible  <bruno@clisp.org>
8511
8512         Tests for module 'pipe-posix'.
8513         * modules/pipe-posix-tests: New file.
8514         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8515
8516 2010-12-10  Bruno Haible  <bruno@clisp.org>
8517
8518         pipe-posix: Make it work in C++ mode.
8519         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8520         (pipe): Use common idiom, not a macro definition.
8521         * lib/pipe.c: New file.
8522         * m4/pipe.m4: New file.
8523         * modules/pipe-posix (Description): Enhance.
8524         (Files): Add lib/pipe.c, m4/pipe.m4.
8525         (configure.ac): Invoke gl_FUNC_PIPE.
8526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8527         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8528         * tests/test-unistd-c++.cc: Check the signature of pipe.
8529
8530 2010-12-10  Bruno Haible  <bruno@clisp.org>
8531
8532         Rename module 'pipe' to 'spawn-pipe'.
8533         * modules/spawn-pipe: New file, renamed from modules/pipe.
8534         (Files, configure.ac, Makefile.am): Update.
8535         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8536         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8537         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8538         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8539         "spawn-pipe.h" instead of "pipe.h".
8540         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8541         to gl_SPAWN_PIPE.
8542         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
8543         (Files, Makefile.am): Update.
8544         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
8545         Update.
8546         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
8547         Include "spawn-pipe.h" instead of "pipe.h".
8548         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
8549         * lib/javacomp.c: Likewise.
8550         * lib/javaversion.c: Likewise.
8551         * lib/pipe-filter-gi.c: Likewise.
8552         * lib/pipe-filter-ii.c: Likewise.
8553         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
8554         * modules/javacomp (Depends-on): Likewise.
8555         * modules/javaversion (Depends-on): Likewise.
8556         * modules/pipe-filter-gi (Depends-on): Likewise.
8557         * modules/pipe-filter-ii (Depends-on): Likewise.
8558         * MODULES.html.sh (Executing programs): Update.
8559         * NEWS: Mention the change.
8560
8561 2010-12-10  Eric Blake  <eblake@redhat.com>
8562
8563         pipe-posix: new module
8564         * modules/pipe-posix: New file.
8565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
8566         (gl_UNISTD_H): Check for declaration.
8567         * modules/unistd (Makefile.am): Substitute it.
8568         * lib/unistd.in.h (pipe): Provide it for mingw.
8569         * doc/posix-functions/pipe.texi (pipe): Update documentation.
8570         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
8571
8572 2010-12-07  Bruno Haible  <bruno@clisp.org>
8573
8574         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
8575         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
8576         u8_strcmp_gnu.
8577         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
8578
8579 2010-12-06  Bruno Haible  <bruno@clisp.org>
8580
8581         Update internal documentation.
8582         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
8583
8584 2010-12-04  Bruno Haible  <bruno@clisp.org>
8585
8586         Put more information about failed tests into the test return codes.
8587         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
8588         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
8589         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
8590         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8591         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
8592         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8593         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8594         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8595         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
8596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8597         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
8598         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8599         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8600         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8601         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
8602         returns a bit mask.
8603         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
8604         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
8605         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
8606         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
8607         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
8608         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
8609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
8610         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8611         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
8612         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
8613         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8614         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
8615         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8616         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
8617         * m4/link.m4 (gl_FUNC_LINK): Likewise.
8618         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8619         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
8620         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
8621         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8622         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
8623         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
8624         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
8625         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
8626         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
8627         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8628         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8629         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
8630         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
8631         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
8632         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
8633         gl_PRINTF_PRECISION): Likewise.
8634         * m4/regex.m4 (gl_REGEX): Likewise.
8635         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
8636         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
8637         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
8638         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8639         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
8640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
8641         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8642         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
8643         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
8644         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8645         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8646         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8647         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
8648         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
8649         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8650         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8651         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
8652         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8653         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8654         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
8655         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
8656         enumerated value.
8657         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
8658
8659 2010-12-04  Bruno Haible  <bruno@clisp.org>
8660
8661         Update for Solaris 11 2010-11.
8662         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
8663         Express, released in November 2010.
8664
8665 2010-12-04  Bruno Haible  <bruno@clisp.org>
8666
8667         nproc: Relax license.
8668         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
8669         and Paul Eggert.
8670         Requested by Ludovic Courtès <ludo@gnu.org>.
8671
8672 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
8673
8674         utimecmp: fine-grained src to nearby coarse-grained dest
8675
8676         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
8677         and the source is on a file system with higher-resolution time
8678         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
8679         not work, and the time stamps are close together, the algorithm to
8680         determine the exact resolution from the read-back mtime was buggy:
8681         it had a "!=" where it should have had an "==".  This bug has been
8682         in the code ever since it was introduced to gnulib.
8683         Problem reported by Dan Jacobson in
8684         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
8685
8686 2010-11-30  Bruno Haible  <bruno@clisp.org>
8687
8688         strerror_r-posix: Fix autoconf test.
8689         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
8690
8691 2010-11-28  Bruno Haible  <bruno@clisp.org>
8692             Paul Eggert  <eggert@cs.ucla.edu>
8693
8694         Tests for module 'getdomainname'.
8695         * modules/getdomainname-tests: New file.
8696         * tests/test-getdomainname.c: New file, based on
8697         tests/test-gethostname.c.
8698
8699 2010-11-28  Bruno Haible  <bruno@clisp.org>
8700             Paul Eggert  <eggert@cs.ucla.edu>
8701
8702         getdomainname: Use the system function when possible.
8703         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
8704         (getdomainname): Replace if needed. Provide the declaration if it is
8705         missing. Don't use _GL_CXXALIAS_SYS_CAST.
8706         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
8707         (getdomainname): When the system has getdomainname, call the system
8708         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
8709         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
8710         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
8711         found in libnsl. Look for the declaration also in <netdb.h>. Replace
8712         the function if its second argument is of type 'int' or if it is found
8713         in libnsl.
8714         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
8715         <sys/systeminfo.h> and sysinfo().
8716         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
8717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8718         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
8719         HAVE_GETDOMAINNAME.
8720         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
8721         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
8722         * doc/glibc-functions/getdomainname.texi: Document the problems with
8723         the getdomainname declaration.
8724
8725 2010-11-28  Bruno Haible  <bruno@clisp.org>
8726
8727         sys_socket: Ensure ss_family field on AIX.
8728         * lib/sys_socket.in.h (ss_family): New macro definition.
8729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
8730         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
8731         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
8732         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8733         * modules/sys_socket (Makefile.am): Substitute
8734         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
8735         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
8736
8737 2010-11-27  Bruno Haible  <bruno@clisp.org>
8738
8739         readline: Improve configure output.
8740         * m4/readline.m4 (gl_FUNC_READLINE): Make the
8741         "checking for readline..." result understandable.
8742
8743 2010-11-27  Bruno Haible  <bruno@clisp.org>
8744
8745         *printf-posix: Detect a bug on Solaris 10/x86.
8746         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
8747         for floating-point output.
8748         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
8749         directive.
8750         * tests/test-snprintf-posix.h (test_function): Likewise.
8751         * tests/test-sprintf-posix.h (test_function): Likewise.
8752         * tests/test-vasprintf-posix.c (test_function): Likewise.
8753         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
8754         * doc/posix-functions/printf.texi: Likewise.
8755         * doc/posix-functions/snprintf.texi: Likewise.
8756         * doc/posix-functions/sprintf.texi: Likewise.
8757         * doc/posix-functions/vfprintf.texi: Likewise.
8758         * doc/posix-functions/vprintf.texi: Likewise.
8759         * doc/posix-functions/vsnprintf.texi: Likewise.
8760         * doc/posix-functions/vsprintf.texi: Likewise.
8761         * doc/glibc-functions/obstack_printf.texi: Likewise.
8762         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8763
8764 2010-11-27  Bruno Haible  <bruno@clisp.org>
8765
8766         Fix link error when module libunistring-optional is in use.
8767         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
8768         * modules/striconveha-tests (Makefile.am): Likewise.
8769
8770 2010-11-27  Bruno Haible  <bruno@clisp.org>
8771
8772         regex: Mention link dependencies.
8773         * modules/regex (Link): New section.
8774         * modules/rpmatch (Link): Likewise.
8775         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
8776
8777 2010-11-27  Bruno Haible  <bruno@clisp.org>
8778
8779         ftoastr: Fix compilation error on Solaris.
8780         * lib/ftoastr.c: Include <config.h>.
8781
8782 2010-11-27  Bruno Haible  <bruno@clisp.org>
8783
8784         getloadavg: Update documentation.
8785         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
8786
8787 2010-11-27  Bruno Haible  <bruno@clisp.org>
8788
8789         sys_socket: Fix test whether the functions are declared.
8790         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
8791         not <sys/select.h>.
8792
8793 2010-11-27  Bruno Haible  <bruno@clisp.org>
8794
8795         getpass: Make sure to get system declaration on some platforms.
8796         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
8797         gl_USE_SYSTEM_EXTENSIONS.
8798         * modules/getpass (Depends-on): Add extensions.
8799
8800 2010-11-26  Bruno Haible  <bruno@clisp.org>
8801
8802         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
8803         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
8804         'iconv' module is present.
8805         (ICONV_CONST): New macro.
8806         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
8807         ICONV_CONST.
8808         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
8809         set ICONV_CONST.
8810         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8811         here.
8812         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8813         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8814         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8815         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8816         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8817         present.
8818
8819 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8820
8821         ftoastr: comment fix
8822         * lib/ftoastr.c: "little" -> "little or no" in comment
8823
8824 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8825
8826         stdint: port to GCC 4.3 + OSX + Octave
8827         On this platform, stdint.h is buggy and defines int64_t to long
8828         long int.  The replacement defined it to long int, causing
8829         problems with C++ style name mangling.  Instead, trust the system
8830         definition if INT64_MAX is defined, and likewise for the unsigned
8831         variant.   Problem reported by Jarno Rajahalme in
8832         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8833         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8834         and don't mess with int64_t and INT64_MAX in this case.
8835         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8836
8837 2010-11-24  Bruno Haible  <bruno@clisp.org>
8838
8839         doc: Corrections regarding MacOS X 10.4 and 10.5.
8840         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8841         MacOS X.
8842         Reported by Simon Josefsson.
8843
8844 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8845
8846         Uninstall ".bin" files installed by relocwrapper.
8847         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8848         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8849         unless it is already there.
8850
8851 2010-11-21  Bruno Haible  <bruno@clisp.org>
8852
8853         Update for NetBSD 5.0.
8854         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8855         NetBSD; the test fails on NetBSD 5.0.
8856         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8857         about NetBSD.
8858
8859 2010-11-21  Bruno Haible  <bruno@clisp.org>
8860
8861         Update for HP-UX 11.23 and HP-UX 11.31.
8862         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8863         HP-UX.
8864
8865 2010-11-21  Bruno Haible  <bruno@clisp.org>
8866
8867         Update for MacOS X 10.5.
8868         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8869         MacOS X; the test fails on MacOS X 10.5.8.
8870         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8871         about MacOS X.
8872
8873 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8874
8875         bootstrap: add bootstrap_sync option.
8876         See discussion at
8877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8878         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8879         * build-aux/bootstrap: Accept --bootstrap-sync to update
8880         bootstrap if it is not identical to the local gnulib's
8881         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8882         enable this by default.  Accept --no-bootstrap-sync to disable
8883         it.
8884
8885 2010-11-20  Bruno Haible  <bruno@clisp.org>
8886
8887         Ensure that <features.h> is included before __GLIBC__ is tested.
8888         * lib/printf-parse.h: Include <features.h>.
8889         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8890         Reported by Mike Frysinger <vapier@gentoo.org>.
8891
8892         Ensure that <features.h> is included before __GLIBC__ is tested.
8893         * lib/wchar.in.h: Include <features.h>.
8894         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8895         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8896         Reported by Mike Frysinger <vapier@gentoo.org>.
8897
8898         Ensure that <features.h> is included before __GLIBC__ is tested.
8899         * lib/arpa_inet.in.h: Include <features.h>.
8900         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8901         * modules/arpa_inet (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         * build-aux/link-warning.h: Include <features.h>.
8906         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8907         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8908         Reported by Mike Frysinger <vapier@gentoo.org>.
8909
8910         Ensure that <features.h> is included before __GLIBC__ is tested.
8911         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8912         Reported by Mike Frysinger <vapier@gentoo.org>.
8913
8914 2010-11-20  Bruno Haible  <bruno@clisp.org>
8915
8916         memmem: Fix autoconf test.
8917         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8918
8919 2010-11-20  Bruno Haible  <bruno@clisp.org>
8920
8921         Port to uClibc.
8922         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8923         * lib/fcntl.in.h: Likewise.
8924         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8925         * lib/mbrtowc.c (mbrtowc): Likewise.
8926         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8927         * lib/strerror_r.c: Likewise.
8928         * lib/unistr/u8-strnlen.c: Likewise.
8929         * lib/vasnprintf.c (decimal_point_char): Likewise.
8930         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8931         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8932         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8933         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8934         * tests/test-sigaction.c (handler, main): Likewise.
8935         * lib/freading.h: Treat uClibc like a non-glibc platform.
8936         * lib/freading.c: Likewise.
8937         * lib/gettext.h: Likewise.
8938         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8939         Likewise.
8940         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8941         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8942         * lib/propername.c (proper_name_utf8): Likewise.
8943         * lib/spawn.in.h: Likewise.
8944         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8945         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8946         mem_cd_iconveh_internal): Likewise.
8947         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8948         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8949         strstr, strcasestr): Likewise.
8950         * lib/unicodeio.c (unicode_to_mb): Likewise.
8951         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8952         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8953         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8954         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8955         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8956         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8957         * lib/unistr/u8-stpncpy.c: Likewise.
8958         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8959         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8960         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8961         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8962         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8963         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8964         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8965         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8967         Likewise.
8968         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8969         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8970         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8971         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8973         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8974         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8975         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8976         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8977         * tests/test-striconveha.c (main): Likewise.
8978         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8979         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8980         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8981         * doc/posix-functions/getline.texi: Likewise.
8982         Reported by Mike Frysinger <vapier@gentoo.org>.
8983
8984 2010-11-20  Bruno Haible  <bruno@clisp.org>
8985
8986         nproc: Fix condition.
8987         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8988         HAVE_PTHREAD_AFFINITY_NP.
8989
8990 2010-11-20  Bruno Haible  <bruno@clisp.org>
8991
8992         Fix a comment.
8993         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8994
8995 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8996
8997         ftoastr: don't assume snprintf
8998         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8999         Implement a subset of snprintf here, by using sprintf safely.
9000         * modules/ftoastr (Depends-on): Remove snprintf.
9001
9002 2010-11-19  Jim Meyering  <meyering@redhat.com>
9003
9004         test-rename.h: fix compilation failure
9005         * tests/test-rename.h (test_rename): Add omitted "}".
9006
9007 2010-11-17  Jim Meyering  <meyering@redhat.com>
9008
9009         maint.mk: add a URL discussing the no-@acronym policy
9010         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9011
9012 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9013
9014         ftoastr: depend on snprintf, improve comments
9015         * lib/ftoastr.c: Also mention Loitsch's draft.
9016         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9017         needed in the current implementation, but it might simplify
9018         speeding up the code later.
9019         * modules/ftoastr: Depend on snprintf; this improves portability.
9020         Suggested by Bruno Haible in the same email.
9021
9022         ftoastr: port to hosts lacking strtof and strtold
9023         Problem reported by Bruno Haible in
9024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9025         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9026         environment and strtold (and presumably strtof) are not available.
9027         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9028         (configure.ac): Require gl_C99_STRTOLD.
9029
9030 2010-11-18  Bruno Haible  <bruno@clisp.org>
9031
9032         c-strtold: Avoid link error on AIX 7.
9033         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9034         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9035         (gl_C_STRTOLD): Test whether strtold_l exists.
9036         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9037
9038 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9039
9040         intprops: new macro INT_BITS_STRLEN_BOUND
9041         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9042         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9043         not exposed.  Also, it uses a slightly tighter bound than before;
9044         though this makes no practical difference, we might as well be as
9045         tight as we easily can.
9046
9047         ftoastr: new module, for lossless conversion of floats to short strings
9048         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9049         * modules/ftoastr: New files.
9050
9051 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9052
9053         bootstrap: port to Solaris sed
9054         * build-aux/bootstrap (get_version): Port to Solaris sed.
9055         See Ralf Wildenhues's note in
9056         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9057
9058 2010-11-14  Jim Meyering  <meyering@redhat.com>
9059
9060         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9061         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9062         and move definition closer to sole use.
9063
9064 2010-11-13  Jim Meyering  <meyering@redhat.com>
9065
9066         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9067         Now we require at least autoconf-2.59, which means the work-around
9068         is no longer needed.
9069         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9070         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9071         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9072         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9073         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9074
9075 2010-11-13  Bruno Haible  <bruno@clisp.org>
9076
9077         rename, renameat: Avoid test failures at NFS mounted locations.
9078         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9079         functions.
9080         (test_rename): Use assert_nonexistent.
9081         * tests/test-rename.c: Include <dirent.h>.
9082         * tests/test-renameat.c: Likewise.
9083         Reported by Gary V. Vaughan <gary@gnu.org>.
9084
9085         rename, renameat: Document Linux bug with NFS
9086         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9087         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9088         * doc/posix-functions/renameat.texi: Likewise.
9089         Suggested by Eric Blake.
9090
9091 2010-11-13  Bruno Haible  <bruno@clisp.org>
9092
9093         rename test: Add comments.
9094         * tests/test-rename.h (test_rename): Add structure and comments.
9095
9096 2010-11-13  Eric Blake  <eblake@redhat.com>
9097
9098         maintainer-makefile: cover a few more files
9099         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9100         scripts generated within C files, for libvirt.
9101
9102 2010-11-13  Bruno Haible  <bruno@clisp.org>
9103
9104         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9105         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9106         character, return the number of bytes that belong together, not always
9107         1.
9108         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9109         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9110         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9111         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9112         number of bytes of an invalid character.
9113         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9114         (main): Invoke it.
9115         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9116         results.
9117         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9118         malformed byte sequences.
9119         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9120         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9121         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9122         Reported by Ben Pfaff and Paolo Bonzini.
9123
9124 2010-11-13  Bruno Haible  <bruno@clisp.org>
9125
9126         openat: Work around glibc bug with fchownat() and empty file names.
9127         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9128         (gl_FUNC_FCHOWNAT): Invoke it.
9129         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9130         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9131         Reported by Gary V. Vaughan <gary@gnu.org>.
9132
9133 2010-11-13  Bruno Haible  <bruno@clisp.org>
9134
9135         openat: Ensure autoconf macro ordering.
9136         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9137         gl_USE_SYSTEM_EXTENSIONS.
9138         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9139
9140 2010-11-13  Bruno Haible  <bruno@clisp.org>
9141
9142         Update comments.
9143         * lib/unistr/u8-check.c: Update file name in comments.
9144         * lib/unistr/u8-mblen.c: Likewise.
9145         * lib/unistr/u8-prev.c: Likewise.
9146         * lib/unistr/u8-strmblen.c: Likewise.
9147         * lib/unistr/u8-strmbtouc.c: Likewise.
9148
9149 2010-11-13  Jim Meyering  <meyering@redhat.com>
9150
9151         tests: avoid test failure on Solaris 10 due to lack of PATH export
9152         * tests/test-update-copyright.sh: Don't forget to export PATH.
9153
9154         init.sh: ensure that IFS is defined, just in case...
9155         * tests/init.sh (setup_): Ensure that IFS is defined,
9156         so that saving and restoring it works as expected.  This
9157         appears to be useful at least for an old version of dash
9158         from a long time ago (RH 6).  See here for details:
9159         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9160
9161         maint.mk: tighten "test a == b" check
9162         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9163         test to files that contain something like #!/bin/sh.
9164         Without this, coreutils would get two false positives in
9165         the comments of C source files.
9166
9167 2010-11-12  Eric Blake  <eblake@redhat.com>
9168
9169         bootstrap: fix typo in previous attempt
9170         * build-aux/bootstrap (buildreq): Correct the grouping.
9171         Reported by Paul Eggert.
9172
9173         maintainer-makefile: prohibit test x == x
9174         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9175         Based on a report by Matthias Bolte.
9176
9177         bootstrap: allow FreeBSD gzip
9178         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9179         which has no '.' and goes to stderr.
9180         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9181         Reported by Matthias Bolte.
9182
9183         maintainer-makefile: check for i18n setup
9184         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9185         will likely work.
9186
9187 2010-11-12  Bruno Haible  <bruno@clisp.org>
9188
9189         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9190         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9191         * lib/nanosleep.c (nanosleep): Likewise.
9192
9193 2010-11-11  Bruno Haible  <bruno@clisp.org>
9194
9195         fcntl-h: Fix for use of C++ on glibc systems.
9196         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9197         also on glibc systems in C++ mode.
9198         Reported by Gary V. Vaughan <gary@gnu.org>.
9199
9200 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9201
9202         mknod: avoid false failure with dash
9203         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9204
9205 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9206
9207         unlink: Fix "is it should" typo in diagnostic.
9208         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9209         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9210
9211 2010-11-11  Bruno Haible  <bruno@clisp.org>
9212
9213         Tests for module 'strerror_r-posix'.
9214         * modules/strerror_r-posix-tests: New file.
9215         * tests/test-strerror_r.c: New file.
9216         * tests/test-string-c++.cc: Check the signature of strerror_r.
9217
9218         New module 'strerror_r-posix'.
9219         * lib/string.in.h (strerror_r): New declaration.
9220         * lib/strerror_r.c: New file.
9221         * m4/strerror_r.m4: New file.
9222         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9223         of strerror_r.
9224         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9225         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9226         * modules/strerror_r-posix: New file.
9227         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9228         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9229         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9230         portability problems.
9231
9232 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9233
9234         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9235         line is also considered for output. Quoted function name in shell
9236         command, so temporary files for functions like MyClass::operator()
9237         are removed correctly without errors.
9238
9239 2010-11-09  Bruno Haible  <bruno@clisp.org>
9240
9241         * doc/posix-functions/strerror.texi: List more failing platforms.
9242
9243         * doc/posix-functions/strerror.texi: Add a comment.
9244
9245 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9246
9247         fdopendir: fix bug on MacOS X when low on file descriptors
9248
9249         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9250         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9251         All callers changed.
9252         (fdopendir): Invoke save_cwd at the top level, not after using
9253         multiple dup() calls to use up file descriptors.  Then retry
9254         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9255         less than the maximum number of open file descriptors, because
9256         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9257         on Mac OS X 10.6.4 for tar 1.24
9258         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9259         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9260         and for tar 1.25
9261         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9262
9263 2010-11-07  Bruno Haible  <bruno@clisp.org>
9264
9265         vasnprintf: Support I flag on glibc systems.
9266         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9267         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9268         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9269         snprintf function.
9270         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9271         glibc systems.
9272         * tests/test-vasnprintf-posix3.c: New file.
9273         * modules/vasnprintf-posix-tests (Files): Add it.
9274         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9275
9276 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9277
9278         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9279         * MODULES.html.sh: For compiler warnings, use name
9280         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9281
9282 2010-11-05  Eric Blake  <eblake@redhat.com>
9283
9284         ceil, floor: avoid spurious failure with icc
9285         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9286         [denormals-as-zero] when optimizing without -mieee-fp option.
9287         * tests/test-floorf2.c (floorf_reference): Likewise.
9288         * tests/test-ceilf1.c (dummy): New function.
9289         (main): Use it to outsmart icc's optimization.
9290         * tests/test-floorf1.c (dummy, main): Likewise.
9291
9292         tests: require working signbit
9293         * modules/ceilf-tests (Depends-on): Add signbit.
9294         * modules/ceill-tests (Depends-on): Likewise.
9295         * modules/floorf-tests (Depends-on): Likewise.
9296         * modules/floorl-tests (Depends-on): Likewise.
9297         * modules/round-tests (Depends-on): Likewise.
9298         * modules/roundf-tests (Depends-on): Likewise.
9299         * modules/roundl-tests (Depends-on): Likewise.
9300         * modules/trunc-tests (Depends-on): Likewise.
9301         * modules/truncf-tests (Depends-on): Likewise.
9302         * modules/truncl-tests (Depends-on): Likewise.
9303
9304         strtod: work around icc bug
9305         * lib/strtod.c (minus_zero): Define to working value.
9306         (strtod): Use it to avoid icc bug.
9307
9308         copysign: enhance tests
9309         * modules/copysign-tests (Files): Add minus-zero.h.
9310         * tests/test-copysign.c (main): Also test zeros.
9311
9312 2010-11-04  Eric Blake  <eblake@redhat.com>
9313
9314         ceil, floor, round, trunc: enhance tests of -0
9315         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9316         * tests/test-ceill.c (main): Likewise.
9317         * tests/test-floorf1.c (main): Likewise.
9318         * tests/test-floorl.c (main): Likewise.
9319         * tests/test-round1.c (main): Likewise.
9320         * tests/test-roundf1.c (main): Likewise.
9321         * tests/test-roundl.c (main): Likewise.
9322         * tests/test-trunc1.c (main): Likewise.
9323         * tests/test-truncf1.c (main): Likewise.
9324         * tests/test-truncl.c (main): Likewise.
9325
9326 2010-11-04  Eric Blake  <eblake@redhat.com>
9327
9328         frexp, tests: work around ICC bug with -zero
9329         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9330         works with more compilers.
9331         * tests/minus-zero.h: New file.
9332         * modules/ceilf-tests (Files): Include it.
9333         * modules/ceill-tests (Files): Likewise.
9334         * modules/floorf-tests (Files): Likewise.
9335         * modules/floorl-tests (Files): Likewise.
9336         * modules/frexp-nolibm-tests (Files): Likewise.
9337         * modules/frexp-tests (Files): Likewise.
9338         * modules/frexpl-nolibm-tests (Files): Likewise.
9339         * modules/frexpl-tests (Files): Likewise.
9340         * modules/isnan-tests (Files): Likewise.
9341         * modules/isnand-nolibm-tests (Files): Likewise.
9342         * modules/isnand-tests (Files): Likewise.
9343         * modules/isnanf-nolibm-tests (Files): Likewise.
9344         * modules/isnanf-tests (Files): Likewise.
9345         * modules/isnanl-nolibm-tests (Files): Likewise.
9346         * modules/isnanl-tests (Files): Likewise.
9347         * modules/round-tests (Files): Likewise.
9348         * modules/roundf-tests (Files): Likewise.
9349         * modules/roundl-tests (Files): Likewise.
9350         * modules/ldexpl-tests (Files): Likewise.
9351         * modules/signbit-tests (Files): Likewise.
9352         * modules/snprintf-posix-tests (Files): Likewise.
9353         * modules/sprintf-posix-tests (Files): Likewise.
9354         * modules/strtod-tests (Files): Likewise.
9355         * modules/trunc-tests (Files): Likewise.
9356         * modules/truncf-tests (Files): Likewise.
9357         * modules/truncl-tests (Files): Likewise.
9358         * modules/vsnprintf-posix-tests (Files): Likewise.
9359         * modules/vsprintf-posix-tests (Files): Likewise.
9360         * modules/vasnprintf-posix-tests (Files): Likewise.
9361         * modules/vasprintf-posix-tests (Files): Likewise.
9362         * tests/test-ceilf1.c (main): Use it.
9363         * tests/test-ceill.c (main): Likewise.
9364         * tests/test-floorf1.c (main): Likewise.
9365         * tests/test-floorl.c (main): Likewise.
9366         * tests/test-frexp.c (main): Likewise.
9367         * tests/test-frexpl.c (main): Likewise.
9368         * tests/test-isnan.c (main): Likewise.
9369         * tests/test-isnand.h (main): Likewise.
9370         * tests/test-isnanf.h (main): Likewise.
9371         * tests/test-isnanl.h (main): Likewise.
9372         * tests/test-ldexpl.c (main): Likewise.
9373         * tests/test-round.c (main): Likewise.
9374         * tests/test-roundf.c (main): Likewise.
9375         * tests/test-roundl.c (main): Likewise.
9376         * tests/test-signbit.c (test_signbitf, test_signbitd)
9377         (test_signbitl): Likewise.
9378         * tests/test-snprintf-posix.h (test_function): Likewise.
9379         * tests/test-sprintf-posix.h (test_function): Likewise.
9380         * tests/test-strtod.c (main): Likewise.
9381         * tests/test-trunc1.c (main): Likewise.
9382         * tests/test-truncf1.c (main): Likewise.
9383         * tests/test-truncl.c (main): Likewise.
9384
9385         isnanl: work around icc bug
9386         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9387
9388 2010-11-03  Eric Blake  <eblake@redhat.com>
9389
9390         tests: fix compiler warnings
9391         * tests/test-getopt.h (test_getopt): Fix condition.
9392         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9393         * tests/test-pipe2.c (main): Likewise.
9394         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9395
9396         utimens: fix broken m4 test
9397         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9398
9399 2010-10-28  Bruno Haible  <bruno@clisp.org>
9400
9401         posix_spawn*, getdtablesize: Relax license.
9402         * modules/posix_spawn (License): Change to LGPLv2+.
9403         * modules/posix_spawnp (License): Likewise.
9404         * modules/posix_spawn-internal (License): Likewise.
9405         * modules/posix_spawnattr_init (License): Likewise.
9406         * modules/posix_spawnattr_getflags (License): Likewise.
9407         * modules/posix_spawnattr_setflags (License): Likewise.
9408         * modules/posix_spawnattr_getpgroup (License): Likewise.
9409         * modules/posix_spawnattr_setpgroup (License): Likewise.
9410         * modules/posix_spawnattr_getschedparam (License): Likewise.
9411         * modules/posix_spawnattr_setschedparam (License): Likewise.
9412         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9413         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9414         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9415         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9416         * modules/posix_spawnattr_getsigmask (License): Likewise.
9417         * modules/posix_spawnattr_setsigmask (License): Likewise.
9418         * modules/posix_spawnattr_destroy (License): Likewise.
9419         * modules/posix_spawn_file_actions_init (License): Likewise.
9420         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9421         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9422         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9423         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9424         * modules/getdtablesize (License): Likewise.
9425         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9426
9427 2010-10-26  Bruno Haible  <bruno@clisp.org>
9428
9429         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9430         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9431         Cygwin and mingw.
9432         Suggested by Eric Blake.
9433
9434 2010-10-26  Bruno Haible  <bruno@clisp.org>
9435
9436         stdio: Work around compilation error due to renameat() on Solaris 10.
9437         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9438         * lib/renameat.c: Don't include <unistd.h> here.
9439         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9440         Reported by Paul Eggert and Eric Blake.
9441
9442 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9443
9444         renameat: port to Solaris 10, which declares renameat in unistd.h
9445
9446         * lib/renameat.c: Include unistd.h before stdio.h, because
9447         Solaris 10 declares renameat in unistd.h.  Problem encountered
9448         when building GNU tar 1.24 on Solaris 10.
9449
9450 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9451
9452         fdopendir: fix C89 compilation
9453         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9454         compilers.
9455
9456 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9457
9458         inttostr: simplify by removing unnecessary redundancy
9459         * lib/anytostr.c: Don't include verify.h.
9460         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9461         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9462         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9463         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9464         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9465         Likewise.
9466         * modules/inttostr (Depends-on): Remove 'verify'.
9467
9468 2010-10-23  Bruno Haible  <bruno@clisp.org>
9469
9470         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9471         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9472         Reported by Eric Blake.
9473
9474 2010-10-23  Bruno Haible  <bruno@clisp.org>
9475
9476         Tests: Fix LOCALE_JA on MirBSD 10.
9477         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9478         to an UTF-8 locale.
9479         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9480         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9481         Reported by Eric Blake.
9482
9483 2010-10-21  Bruno Haible  <bruno@clisp.org>
9484
9485         nl_langinfo test: Avoid test failure on NetBSD 5.
9486         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9487         Reported by Eric Blake.
9488
9489 2010-10-21  Eric Blake  <eblake@redhat.com>
9490
9491         c-stack: work around libsigsegv 2.8 bug
9492         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9493         overflow on at least PowerPC64.
9494
9495 2010-10-17  Bruno Haible  <bruno@clisp.org>
9496
9497         userspec: Drop redundant file.
9498         * modules/userspec (Files): Remove lib/inttostr.h.
9499
9500 2010-10-17  Bruno Haible  <bruno@clisp.org>
9501
9502         nl_langinfo tests: Silence some warnings.
9503         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9504         Reported by Jim Meyering.
9505
9506 2010-10-17  Bruno Haible  <bruno@clisp.org>
9507
9508         Make use of GCC's attribute __alloc_size__.
9509         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9510         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9511         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9512         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9513         __alloc_size__.
9514         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9515         Suggested by Jim Meyering.
9516
9517 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9518
9519         bootstrap: anchor .gitignore entries.
9520         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9521         with...
9522         (insert_vc_ignore): ... this new function, which prepends `/' to
9523         all .gitignore entries before passing them to
9524         insert_sorted_if_absent.
9525
9526 2010-10-16  Bruno Haible  <bruno@clisp.org>
9527
9528         nextafter: Fix configure check.
9529         * modules/nextafter (configure.ac): Correct expected prototype.
9530
9531 2010-10-16  Bruno Haible  <bruno@clisp.org>
9532
9533         termios: Update documentation.
9534         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9535
9536 2010-10-16  Bruno Haible  <bruno@clisp.org>
9537
9538         tests: Make them compile with TinyCC.
9539         * tests/test-strstr.c (main): Remove parentheses around array
9540         initializer.
9541
9542 2010-10-15  Eric Blake  <eblake@redhat.com>
9543
9544         ignore-value: make header idempotent
9545         * lib/ignore-value.h: Add double-inclusion guards.
9546         Reported by Stefan Berger.
9547
9548 2010-10-15  Jim Meyering  <meyering@redhat.com>
9549
9550         GNUmakefile: handle "stable" target, not "major"
9551         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
9552         lists in maint.mk and announce-gen.  Without this, "make stable"
9553         would fail to ensure that $(VERSION) is up to date.
9554
9555 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
9556
9557         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
9558         & co.
9559
9560 2010-10-14  Bruno Haible  <bruno@clisp.org>
9561
9562         vasnprintf: Don't set errno to 0.
9563         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
9564         block that sets it to 0.
9565         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
9566
9567 2010-10-14  Bruno Haible  <bruno@clisp.org>
9568
9569         socketlib: Fix.
9570         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
9571         gl_PREREQ_SYS_H_WINSOCK2.
9572         Reported by Ian Beckwith <ianb@erislabs.net>.
9573
9574 2010-10-13  Jim Meyering  <meyering@redhat.com>
9575
9576         test-select-stdin.c: avoid warn_unused_result warnings
9577         * tests/test-select-stdin.c: Include "macros.h".
9578         ASSERT that read and fflush succeed.
9579
9580 2010-10-13  Jim Meyering  <meyering@redhat.com>
9581
9582         git-version-gen: do require git-VC'd files in cwd
9583         * build-aux/git-version-gen: Reject a git version string
9584         if there are no commits associated with the current directory.
9585         This avoids an unlikely false-positive (unrelated dir whose parent
9586         repository also contains a tag matching v*), as pointed out
9587         by Giuseppe Scrivano in
9588         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
9589
9590 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9591
9592         argv-iter: omit nonconforming declaration
9593         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
9594         enum arg_iter_err declaration, which doesn't conform to C99.
9595         Solaris 10 cc warns about this.
9596
9597 2010-10-13  Eric Blake  <eblake@redhat.com>
9598
9599         termios: fix compilation on mingw
9600         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
9601         (gl_TERMIOS_H): Adjust it on mingw.
9602         * modules/termios (Makefile.am): Substitute new key.
9603         * lib/termios.in.h (includes): Make include_next conditional.
9604         * doc/posix-headers/termios.texi (termios.h): Update
9605         documentation.
9606         Reported by Daniel P. Berrange.
9607
9608 2010-10-13  Jim Meyering  <meyering@redhat.com>
9609
9610         git-version-gen: don't require that .git/ be in the current dir
9611         * build-aux/git-version-gen: Adjust this script so that it works
9612         when run from any working directory beneath the top-level .git/-
9613         containing directory.  Inspired by a patch from Giuseppe Scrivano,
9614         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
9615
9616         test-select: avoid warn_unused_result warnings
9617         * tests/test-select.c: Include "macros.h".
9618         ASSERT that each call to read, write, and pipe succeeds.
9619         While not technically required, also check each "close".
9620         * modules/select-tests (Files): Add tests/macros.h.
9621
9622         test-symlinkat: remove declaration of unused local
9623         * tests/test-symlinkat.c (main): Remove unused local, "buf".
9624
9625         test-inttostr: avoid shadowing warnings
9626         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
9627         and use malloc rather than the stack for the same reason as
9628         mentioned in the comment justifying the other allocation.
9629
9630 2010-10-11  Bruno Haible  <bruno@clisp.org>
9631
9632         stdlib: Allow multiple gnulib generated replacements to coexist.
9633         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
9634         Reported by Sam Steingold <sds@gnu.org>.
9635
9636 2010-10-11  Jim Meyering  <meyering@redhat.com>
9637
9638         fix a documentation typo
9639         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
9640
9641 2010-10-11  Eric Blake  <eblake@redhat.com>
9642
9643         futimens: work around Solaris 11 bug
9644         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
9645         * tests/test-futimens.h (test_futimens): Enhance, rather than
9646         weaken test.
9647         * doc/posix-functions/futimens.texi (futimens): Document the bug.
9648
9649 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
9650
9651         Indentation.
9652         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
9653         higher-level operators more to the left.
9654
9655 2010-10-11  Jim Meyering  <meyering@redhat.com>
9656
9657         test-futimens: avoid unwarranted test failure on Solaris 5.11
9658         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
9659         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
9660         because it tries to dereference the NULL name argument.
9661
9662 2010-10-11  Bruno Haible  <bruno@clisp.org>
9663
9664         Indentation.
9665         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
9666         indentation.
9667
9668 2010-10-11  Jim Meyering  <meyering@redhat.com>
9669
9670         spawn.in.h: make indentation consistent with parentheses
9671         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
9672         Make indentation consistent with parentheses.
9673
9674 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
9675
9676         Fix mismatched parens in previous commit
9677         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
9678         parens.
9679
9680 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
9681
9682         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
9683
9684         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
9685         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
9686         * lib/malloca.c: Include "verify.h".
9687         (verify1): Remove, replacing with a verify call.
9688         * lib/relocwrapper.c (verify1): Likewise.
9689         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
9690         Likewise.
9691         * modules/malloca (Depends-on): Add 'verify'.
9692         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
9693         * modules/vasnprintf (Depends-on): Add 'verify'.
9694         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9695         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9696         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9697         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9698         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9699         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9700         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9701
9702         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
9703
9704         Formerly the style was sometimes 2*X - 1, because the C standard
9705         was wrongly thought to disallow ?: in integral constant expressions.
9706         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
9707         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
9708         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
9709         * lib/stdint.in.h (_verify_intmax_size): Likewise.
9710         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
9711         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
9712         verify that time_t cannot be floating.
9713
9714 2010-10-08  Eric Blake  <eblake@redhat.com>
9715
9716         time: enforce recent POSIX ruling that time_t is integral
9717         * lib/time.in.h (__time_t_must_be_integral): Detect any
9718         problematic systems, allowing the rest of gnulib to assume POSIX.
9719
9720 2010-10-08  Jim Meyering  <meyering@redhat.com>
9721
9722         fdopendir: fix a bug on systems lacking openat and /proc support
9723         OpenBSD 4.7 is one such system.  The most noticeable effect was
9724         failure of any application making nontrivial use of fts: rm, du,
9725         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
9726           ./rm: traversal failed: `a': Bad file descriptor
9727         Debugging that, you see that even though FD 6 was closed just
9728         prior to the opendir call in fd_clone_opendir, its resulting
9729         dir->dd_fd was 8, rather than the expected value of 6:
9730
9731         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
9732         93                close (fd);
9733         (gdb) n
9734         94                dir = fd_clone_opendir (dupfd);
9735         (gdb) n
9736         95                saved_errno = errno;
9737         (gdb) p dir->dd_fd
9738         $11 = 8
9739
9740         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
9741         The problem is that on OpenBSD, fd_clone_opendir has to resort
9742         to using the old-style save/restore CWD mechanism, due to its
9743         lack of openat/proc support, and *that* would steal the FD (6)
9744         that opendir was supposed to use.
9745
9746         The fix is to squirrel away the desired FD so that save_cwd uses a
9747         different one, and then free the dest FD right before calling opendir.
9748         That guarantees opendir will use the required file descriptor.
9749
9750         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
9751
9752 2010-10-08  Bruno Haible  <bruno@clisp.org>
9753
9754         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
9755         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
9756
9757 2010-10-08  Bruno Haible  <bruno@clisp.org>
9758
9759         nanosleep: Make replacement POSIX compliant.
9760         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
9761         is out of range.
9762         Reported by Jim Meyering.
9763
9764 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
9765
9766         bootstrap: add hook for altering gnulib.mk, for Bison
9767         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
9768         the Bison bootstrapping process can rewrite file names and variables
9769         in this file before later parts of 'bootstrap' use the file.
9770         Bison wants to include lib/gnulib.mk from the top-level makefile,
9771         so it needs the file names in this file to be relative to the top
9772         level, not relative to lib; plus it needs variable names to be
9773         rewritten.
9774         (slurp): Use the new function.
9775
9776         bootstrap: reformat for readability
9777         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
9778
9779 2010-10-08  Eric Blake  <eblake@redhat.com>
9780
9781         docs: update cygwin progress
9782         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
9783         1.7.7.
9784         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
9785         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
9786         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
9787         * doc/posix-functions/carg.texi (carg): Likewise.
9788         * doc/posix-functions/cargf.texi (cargf): Likewise.
9789         * doc/posix-functions/casin.texi (casin): Likewise.
9790         * doc/posix-functions/casinf.texi (casinf): Likewise.
9791         * doc/posix-functions/casinh.texi (casinh): Likewise.
9792         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
9793         * doc/posix-functions/catan.texi (catan): Likewise.
9794         * doc/posix-functions/catanf.texi (catanf): Likewise.
9795         * doc/posix-functions/catanh.texi (catanh): Likewise.
9796         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
9797         * doc/posix-functions/ccos.texi (ccos): Likewise.
9798         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
9799         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
9800         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
9801         * doc/posix-functions/cexp.texi (cexp): Likewise.
9802         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
9803         * doc/posix-functions/cimag.texi (cimag): Likewise.
9804         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
9805         * doc/posix-functions/clog.texi (clog): Likewise.
9806         * doc/posix-functions/clogf.texi (clogf): Likewise.
9807         * doc/posix-functions/conj.texi (conj): Likewise.
9808         * doc/posix-functions/conjf.texi (conjf): Likewise.
9809         * doc/posix-functions/cpow.texi (cpow): Likewise.
9810         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9811         * doc/posix-functions/cproj.texi (cproj): Likewise.
9812         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9813         * doc/posix-functions/creal.texi (creal): Likewise.
9814         * doc/posix-functions/crealf.texi (crealf): Likewise.
9815         * doc/posix-functions/csin.texi (csin): Likewise.
9816         * doc/posix-functions/csinf.texi (csinf): Likewise.
9817         * doc/posix-functions/csinh.texi (csinh): Likewise.
9818         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9819         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9820         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9821         * doc/posix-functions/ctan.texi (ctan): Likewise.
9822         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9823         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9824         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9825         * doc/posix-headers/complex.texi (complex.h): Likewise.
9826
9827 2010-10-07  Jim Meyering  <meyering@redhat.com>
9828
9829         parse-datetime: avoid compilation failure on OpenBSD 4.7
9830         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9831         This works around a compilation failure on OpenBSD 4.7:
9832         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9833
9834 2010-10-07  Eric Blake  <eblake@redhat.com>
9835
9836         docs: update cygwin progress
9837         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9838         1.7.6.
9839         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9840         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9841         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9842         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9843         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9844         Likewise.
9845         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9846         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9847         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9848         Likewise.
9849         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9850         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9851         Likewise.
9852         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9853         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9854         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9855         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9856         Likewise.
9857         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9858         Likewise.
9859         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9860
9861         docs: update parse-datetime history
9862         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9863         documentation of this function's history and alternatives.
9864
9865         cygwin: use more robust version check
9866         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9867         exclude an eventual cygwin 1.9.1.
9868         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9870         (gl_FUNC_STRCASESTR): Likewise.
9871         Reported by Bruno Haible.
9872
9873 2010-10-06  Bruno Haible  <bruno@clisp.org>
9874
9875         string, sys_select: Avoid #including large headers unless necessary.
9876         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9877         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9878         OSF/1, BeOS, Haiku.
9879         Reported by Jim Meyering.
9880
9881 2010-10-05  Eric Blake  <eblake@redhat.com>
9882
9883         memmem, strstr, strcasestr: fix bug with long periodic needle
9884         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9885         periodic needle having false positive.
9886         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9887         and cygwin 1.7.7.
9888         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9889         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9890         (gl_FUNC_STRCASESTR): Likewise.
9891         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9892         * tests/test-memmem.c (main): Expose the bug.
9893         * tests/test-strcasestr.c (main): Likewise.
9894         * tests/test-strstr.c (main): Likewise.
9895         * tests/test-c-strcasestr.c (main): Likewise.
9896         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9897         * doc/posix-functions/strstr.texi (strstr): Likewise.
9898         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9899         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9900
9901 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9902
9903         parse-datetime: do some more renaming
9904         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9905         parse_datetime, not get_date.  Mention the renaming.
9906         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9907         in comments.
9908         * m4/bison.m4: Likewise.
9909
9910 2010-10-05  Eric Blake  <eblake@redhat.com>
9911
9912         parse-datetime: better name than get_date
9913         * NEWS: Reword the deprecation notice.
9914         * modules/get_date: Rename to modules/parse-datetime.
9915         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9916         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9917         * lib/get_date.y: Rename to lib/parse-datetime.y.
9918         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9919         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9920         * doc/getdate.texi: Provide fallback wrapper.
9921         * lib/getdate.h: Move guts, and wrap...
9922         * lib/parse-datetime.h: ...new file.
9923         * lib/parse-datetime.y (get_date): Rename...
9924         (parse_datetime): ...to this.
9925         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9926         (gl_PARSE_DATETIME): ...to this.
9927         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9928         documentation.
9929         * modules/getdate (Files): Provide fallback docs and header.
9930         (Notice, Depends-on): Update references.
9931         * tests/test-parse-datetime.c: Likewise.
9932         * DEPENDENCIES: Likewise.
9933         * MODULES.html.sh (Date and time <time.h>): Likewise.
9934         * doc/parse-datetime.texi (Date input formats)
9935         (Authors of parse_datetime): Likewise.
9936         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9937         (Include): Likewise.
9938         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9939         * gnulib-tool: Likewise.
9940         * m4/bison.m4 (gl_BISON): Likewise.
9941         Suggested by Bruno Haible.
9942
9943 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9944
9945         more ports to Solaris tr, which needs [] around ranges
9946         * gnulib-tool: Solaris tr needs [] around ranges.
9947         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9948         * tests/test-pipe-filter-gi1.c (main): Likewise.
9949         * tests/test-pipe-filter-ii1.c (main): Likewise.
9950
9951 2010-10-05  Eric Blake  <eblake@redhat.com>
9952
9953         bootstrap: fix Solaris regression
9954         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9955         around ranges.
9956         Reported by Pádraig Brady.
9957
9958         bootstrap: work with pkg-config
9959         * build-aux/bootstrap (check_versions): Also transliterate - in
9960         prerequisite name.
9961         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9962         prerequisites that were already found, to avoid confusion.
9963         Reported by Justin Clift.
9964
9965         faccessat: remove unused wrappers
9966         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9967         presence of these wrappers dragged in -lgen on Solaris.
9968         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9969
9970 2010-10-05  Jim Meyering  <meyering@redhat.com>
9971
9972         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9973         * Makefile (sc_pragma_columns): New syntax-check rule.
9974
9975 2010-10-04  Bruno Haible  <bruno@clisp.org>
9976
9977         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9978         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9979         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9980         Reported by Bruce Korb and Eric Blake.
9981
9982 2010-10-04  Bruno Haible  <bruno@clisp.org>
9983
9984         threadlib: Make option --with-libpth-prefix work.
9985         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9986         use $LIBPTH, not just -lpth.
9987
9988 2010-10-04  Bruno Haible  <bruno@clisp.org>
9989
9990         Avoid line length limitation from HP NonStop system header files.
9991         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9992         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9993         * lib/ctype.in.h: Likewise.
9994         * lib/dirent.in.h: Likewise.
9995         * lib/errno.in.h: Likewise.
9996         * lib/fcntl.in.h: Likewise.
9997         * lib/float.in.h: Likewise.
9998         * lib/getopt.in.h: Likewise.
9999         * lib/iconv.in.h: Likewise.
10000         * lib/inttypes.in.h: Likewise.
10001         * lib/langinfo.in.h: Likewise.
10002         * lib/locale.in.h: Likewise.
10003         * lib/math.in.h: Likewise.
10004         * lib/netdb.in.h: Likewise.
10005         * lib/netinet_in.in.h: Likewise.
10006         * lib/poll.in.h: Likewise.
10007         * lib/pthread.in.h: Likewise.
10008         * lib/pty.in.h: Likewise.
10009         * lib/sched.in.h: Likewise.
10010         * lib/se-selinux.in.h: Likewise.
10011         * lib/search.in.h: Likewise.
10012         * lib/signal.in.h: Likewise.
10013         * lib/spawn.in.h: Likewise.
10014         * lib/stdarg.in.h: Likewise.
10015         * lib/stddef.in.h: Likewise.
10016         * lib/stdint.in.h: Likewise.
10017         * lib/stdio.in.h: Likewise.
10018         * lib/stdlib.in.h: Likewise.
10019         * lib/string.in.h: Likewise.
10020         * lib/strings.in.h: Likewise.
10021         * lib/sys_file.in.h: Likewise.
10022         * lib/sys_ioctl.in.h: Likewise.
10023         * lib/sys_select.in.h: Likewise.
10024         * lib/sys_socket.in.h: Likewise.
10025         * lib/sys_stat.in.h: Likewise.
10026         * lib/sys_time.in.h: Likewise.
10027         * lib/sys_times.in.h: Likewise.
10028         * lib/sys_utsname.in.h: Likewise.
10029         * lib/sys_wait.in.h: Likewise.
10030         * lib/sysexits.in.h: Likewise.
10031         * lib/termios.in.h: Likewise.
10032         * lib/time.in.h: Likewise.
10033         * lib/unistd.in.h: Likewise.
10034         * lib/wchar.in.h: Likewise.
10035         * lib/wctype.in.h: Likewise.
10036         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10037         * modules/ctype (Makefile.am): Likewise.
10038         * modules/dirent (Makefile.am): Likewise.
10039         * modules/errno (Makefile.am): Likewise.
10040         * modules/fcntl-h (Makefile.am): Likewise.
10041         * modules/float (Makefile.am): Likewise.
10042         * modules/getopt-posix (Makefile.am): Likewise.
10043         * modules/iconv-h (Makefile.am): Likewise.
10044         * modules/inttypes (Makefile.am): Likewise.
10045         * modules/langinfo (Makefile.am): Likewise.
10046         * modules/locale (Makefile.am): Likewise.
10047         * modules/math (Makefile.am): Likewise.
10048         * modules/netdb (Makefile.am): Likewise.
10049         * modules/netinet_in (Makefile.am): Likewise.
10050         * modules/poll-h (Makefile.am): Likewise.
10051         * modules/pthread (Makefile.am): Likewise.
10052         * modules/pty (Makefile.am): Likewise.
10053         * modules/sched (Makefile.am): Likewise.
10054         * modules/search (Makefile.am): Likewise.
10055         * modules/selinux-h (Makefile.am): Likewise.
10056         * modules/signal (Makefile.am): Likewise.
10057         * modules/spawn (Makefile.am): Likewise.
10058         * modules/stdarg (Makefile.am): Likewise.
10059         * modules/stddef (Makefile.am): Likewise.
10060         * modules/stdint (Makefile.am): Likewise.
10061         * modules/stdio (Makefile.am): Likewise.
10062         * modules/stdlib (Makefile.am): Likewise.
10063         * modules/string (Makefile.am): Likewise.
10064         * modules/strings (Makefile.am): Likewise.
10065         * modules/sys_file (Makefile.am): Likewise.
10066         * modules/sys_ioctl (Makefile.am): Likewise.
10067         * modules/sys_select (Makefile.am): Likewise.
10068         * modules/sys_socket (Makefile.am): Likewise.
10069         * modules/sys_stat (Makefile.am): Likewise.
10070         * modules/sys_time (Makefile.am): Likewise.
10071         * modules/sys_times (Makefile.am): Likewise.
10072         * modules/sys_utsname (Makefile.am): Likewise.
10073         * modules/sys_wait (Makefile.am): Likewise.
10074         * modules/sysexits (Makefile.am): Likewise.
10075         * modules/termios (Makefile.am): Likewise.
10076         * modules/time (Makefile.am): Likewise.
10077         * modules/unistd (Makefile.am): Likewise.
10078         * modules/wchar (Makefile.am): Likewise.
10079         * modules/wctype (Makefile.am): Likewise.
10080
10081 2010-10-04  Bruno Haible  <bruno@clisp.org>
10082
10083         read-file tests: Avoid a test failure on NonStop Kernel.
10084         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10085         a regular file.
10086         Reported by Joachim Schmitz <schmitz@hp.com>.
10087
10088 2010-10-03  Bruno Haible  <bruno@clisp.org>
10089
10090         gnulib-tool: Fixes for --create-testdir with --libtool.
10091         * gnulib-tool (func_get_automake_snippet): Don't augment
10092         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10093         an executable.
10094         (func_create_testdir): Handle module 'alloca' like func_import.
10095         Reported by Bruce Korb <bruce.korb@gmail.com>.
10096
10097 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10098
10099         Avoid some lines longer than 80 characters.
10100         * lib/stdint.in.h: Break long comment lines.
10101         * lib/math.in.h: Likewise.
10102         (_GL_NUM_UINT_WORDS): New macro, for readability.
10103         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10104         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10105         * lib/stdlib.in.h: Likewise.
10106         * lib/spawn.in.h: Likewise.
10107         * lib/sys_socket.in.h: Update an URL.
10108         * lib/sys_stat.in.h: Break long line.
10109
10110 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10111
10112         Improve pmccabe2html.
10113         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10114         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10115         when the sources change. Remove the line in the HTML about "Used
10116         ranges" (which implied that there might be other unused ranges),
10117         rename "Resume" to "Summary" (easier to understand for more users).
10118         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10119         styles, and some unnecessary blank lines.
10120
10121 2010-10-03  Bruno Haible  <bruno@clisp.org>
10122             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10123
10124         acl: Add support for ACLs on NonStop Kernel.
10125         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10126         Check whether the function aclsort() exists.
10127         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10128         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10129         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10130         (acl_nontrivial [HAVE_ACLSORT]: New function.
10131         (file_has_acl): Implement for NonStop Kernel.
10132         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10133         (qset_acl): Implement for NonStop Kernel.
10134         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10135         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10136         (main): Implement for NonStop Kernel.
10137         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10138         Kernel. Handle this flavor.
10139         * tests/test-set-mode-acl.sh: Likewise.
10140         * tests/test-copy-acl.sh: Likewise.
10141         * tests/test-copy-file.sh: Likewise.
10142
10143 2010-10-03  Bruno Haible  <bruno@clisp.org>
10144
10145         Info about ACLs on NonStop Kernel.
10146         * doc/acl-resources.txt: Add info about NonStop Kernel.
10147         References by Joachim Schmitz <schmitz@hp.com>.
10148
10149 2010-10-02  Bruno Haible  <bruno@clisp.org>
10150
10151         Define missing EDQUOT on NonStop Kernel.
10152         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10153         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10154         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10155         missing.
10156         * doc/posix-headers/errno.texi: Mention the NSK bug.
10157         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10158         Reported by Joachim Schmitz <schmitz@hp.com>.
10159
10160 2010-10-02  Bruno Haible  <bruno@clisp.org>
10161
10162         Update doc for POSIX:2008.
10163         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10164         Update URL of POSIX specification.
10165
10166 2010-10-02  Bruno Haible  <bruno@clisp.org>
10167
10168         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10169         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10170         from gnulib, not from Automake.
10171
10172 2010-10-02  Bruno Haible  <bruno@clisp.org>
10173
10174         New module 'system-posix'.
10175         * modules/system-posix: New file.
10176         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10177         module is present.
10178         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10179         GNULIB_SYSTEM_POSIX.
10180         * modules/stdlib (Depends-on): Remove sys_wait.
10181         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10182         * doc/posix-functions/system.texi: Mention the new module.
10183         * doc/posix-headers/stdlib.texi: Likewise.
10184         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10185         define test_sys_wait_macros to a no-op.
10186         Reported by Sam Steingold <sds@gnu.org>.
10187
10188 2010-09-30  Bruno Haible  <bruno@clisp.org>
10189
10190         More renaming from 'getdate' to 'get_date'.
10191         * doc/get_date.texi: Renamed from doc/getdate.texi.
10192         * modules/get_date (Files): Update.
10193         * MODULES.html.sh (Date and time <time.h>): Update.
10194         * DEPENDENCIES: Update.
10195         * gnulib-tool: Update comment.
10196         * m4/bison.m4 (gl_BISON): Likewise.
10197         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10198
10199 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10200
10201         bootstrap: support ACLOCAL_FLAGS during aclocal
10202         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10203         can add additional -I dir for third-party .m4 files.
10204
10205 2010-09-30  Eric Blake  <eblake@redhat.com>
10206
10207         bootstrap: use glibtoolize on MacOS
10208         * build-aux/bootstrap (check_versions): Convert libtool into
10209         libtoolize.
10210         (tool search): Move libtool check earlier, and look for
10211         glibtoolize for MacOS.
10212         (gnulib_tool_options): Auto-add --libtool when appropriate.
10213         Reported by Justin Clift.
10214
10215         poll: fix typo that broke test on MacOS
10216         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10217         Reported by Justin Clift.
10218
10219         getdate: rename to get_date
10220         Note: getdate.h is not renamed, to minimize client impact.
10221         * modules/getdate: Mark obsolete.  Move old contents...
10222         * modules/get_date: ...to new module name.
10223         * modules/getdate-tests: Move...
10224         * modules/get_date-tests: ...here.
10225         * m4/getdate.m4: Move...
10226         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10227         * lib/getdate.y: Move...
10228         * lib/get_date.y: ...here.
10229         * tests/test-getdate.c: Move...
10230         * tests/test-get_date.c: ...here.
10231         * doc/posix-functions/getdate.texi (getdate): Update name.
10232         * NEWS: Mention the change.
10233
10234 2010-09-29  Bruno Haible  <bruno@clisp.org>
10235
10236         Separate the module 'waitpid' from the module 'sys_wait'.
10237         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10238         present.
10239         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10240         gl_MODULE_INDICATOR_FOR_TESTS.
10241         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10242         * modules/sys_wait (Depends-on): Remove waitpid.
10243         (Makefile.am): Substitute GNULIB_WAITPID.
10244         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10245         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10246         signature only if the 'waitpid' module is present.
10247         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10248         * NEWS: Mention the change.
10249         * modules/grantpt (Depends-on): Add waitpid.
10250         * modules/wait-process (Depends-on): Likewise.
10251
10252 2010-09-29  Bruno Haible  <bruno@clisp.org>
10253
10254         More tests for module 'sys_wait'.
10255         * modules/sys_wait-c++-tests: New file.
10256         * tests/test-sys_wait-c++.cc: New file.
10257         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10258         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10259
10260 2010-09-29  Bruno Haible  <bruno@clisp.org>
10261
10262         New module 'waitpid'.
10263         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10264         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10265         Don't include <process.h>.
10266         (waitpid): Declare only, using modern idiom.
10267         * m4/waitpid.m4: New file.
10268         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10269         * modules/waitpid: New file.
10270         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10271         (Makefile.am): Update.
10272         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10273
10274 2010-09-28  Bruno Haible  <bruno@clisp.org>
10275
10276         poll: Assume ANSI C.
10277         * lib/poll.c (poll): Use an ANSI C declaration.
10278
10279 2010-09-28  Bruno Haible  <bruno@clisp.org>
10280
10281         poll-h: Create poll.h on all platforms.
10282         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10283         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10284         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10285         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10286         (gl_REPLACE_POLL_H): Don't set POLL_H.
10287         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10288         * modules/poll-h (Depends-on): Add include_next.
10289         (Makefile.am): Create poll.h unconditionally. Substitute also
10290         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10291
10292 2010-09-28  Bruno Haible  <bruno@clisp.org>
10293
10294         Tests for module 'poll-h'.
10295         * modules/poll-h-c++-tests: New file.
10296         * tests/test-poll-h-c++.cc: New file.
10297
10298         Tests for module 'poll-h'.
10299         * modules/poll-h-tests: New file.
10300         * tests/test-poll-h.c: New file.
10301
10302 2010-09-28  Bruno Haible  <bruno@clisp.org>
10303
10304         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10305         * modules/poll-h (Depends-on): Add 'extensions'.
10306
10307 2010-09-28  Bruno Haible  <bruno@clisp.org>
10308
10309         New module 'poll-h'.
10310         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10311         (poll): Use modern idiom.
10312         * modules/poll-h: New file.
10313         * modules/poll (Files): Remove lib/poll.in.h.
10314         (Depends-on): Add poll-h.
10315         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10316         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10317         * m4/poll_h.m4: New file.
10318         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10319         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10320         and invoke gl_REPLACE_POLL_H.
10321         * lib/poll.c: Use common idiom.
10322         * tests/test-poll.c: Likewise.
10323         * doc/posix-headers/poll.texi: Mention the poll-h module.
10324         Suggested by Eric Blake.
10325
10326 2010-09-26  Bruno Haible  <bruno@clisp.org>
10327
10328         sys_wait: Implement WSTOPSIG.
10329         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10330         Reported by Simon Josefsson.
10331
10332 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10333
10334         stdlib, sys_wait: Avoid compilation error on mingw.
10335         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10336
10337 2010-09-26  Bruno Haible  <bruno@clisp.org>
10338
10339         stdlib tests: Avoid code duplication.
10340         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10341         * modules/sys_wait-tests (Files): Likewise.
10342         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10343         * tests/test-stdlib.c: Include test-sys_wait.h.
10344         (main): Invoke test_sys_wait_macros.
10345         * tests/test-sys_wait.c: Include test-sys_wait.h.
10346         (main): Invoke test_sys_wait_macros.
10347
10348 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10349
10350         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10351         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10352         sure Windows sockets are working before calling getaddrinfo.
10353         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10354         * doc/gnulib.texi (Windows sockets): Fix typo.
10355
10356 2010-09-25  Bruno Haible  <bruno@clisp.org>
10357
10358         Tests for module 'regex-quote'.
10359         * modules/regex-quote-tests: New file.
10360         * tests/test-regex-quote.c: New file.
10361
10362         New module 'regex-quote'.
10363         * lib/regex-quote.h: New file.
10364         * lib/regex-quote.c: New file.
10365         * modules/regex-quote: New file.
10366         Suggested by Reuben Thomas <rrt@sc3d.org>.
10367
10368 2010-09-24  Bruno Haible  <bruno@clisp.org>
10369
10370         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10371         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10372
10373 2010-09-23  Bruno Haible  <bruno@clisp.org>
10374
10375         setenv: Relax license.
10376         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10377         Blake.
10378         Requested by Eric Blake.
10379
10380 2010-09-22  Bruno Haible  <bruno@clisp.org>
10381
10382         termios: Relax license.
10383         * modules/termios (License): Change to LGPLv2+.
10384         Requested by Eric Blake.
10385
10386 2010-09-22  Bruno Haible  <bruno@clisp.org>
10387
10388         threadlib: Allow the package to change the default to 'no'.
10389         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10390         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10391         Reported by Paul Eggert.
10392
10393 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10394             Bruno Haible  <bruno@clisp.org>
10395
10396         Fix endless loop in mbmemcasecoll.
10397         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10398         byte.
10399         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10400
10401 2010-09-22  Bruno Haible  <bruno@clisp.org>
10402
10403         Tests for module 'memcoll'.
10404         * modules/memcoll-tests: New file.
10405         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10406
10407         memcoll, xmemcoll: Clarify size vs. length.
10408         * modules/memcoll.c (memcoll0): Clarify specification.
10409         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10410         passed to collate_error.
10411
10412 2010-09-22  Bruno Haible  <bruno@clisp.org>
10413
10414         Tests for module 'memcasecmp'.
10415         * modules/memcasecmp-tests: New file.
10416         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10417
10418 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10419
10420         * lib/pthread.in.h: Add split double-inclusion guard, and include
10421         system <pthread.h> if there is one.  Use @@-style as in other
10422         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10423         pthread.h doesn't.
10424         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10425         (pthread_mutexattr_settype, pthread_mutex_trylock):
10426         New static inline functions, if there's no system <pthread.h>.
10427         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10428         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10429         Approximate with mutexes if the system lacks spinlocks, as in
10430         MacOS.
10431         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10432         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10433         @@-style.  Check for spinlocks separately.
10434         (gl_PTHREAD_DEFAULTS): New macro.
10435         * modules/pthread: Redo to use a more typical style for in.h files.
10436
10437 2010-09-21  Eric Blake  <eblake@redhat.com>
10438
10439         net_if: enhance tests
10440         * tests/test-net_if.c (main): Move signature checks earlier.
10441         Print failures to stderr.
10442         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10443         Document the bug that we do not yet fix.
10444
10445 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10446
10447         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10448         about gnulib, not GSS.
10449
10450 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10451
10452         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10453         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10454         for Emacs.
10455         * build-aux/pmccabe2html: Make Makefile.am example code more
10456         cut-and-paste friendly.
10457
10458 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10459
10460         * tests/test-net_if.c: New file.
10461         * modules/net_if-tests: New file.
10462
10463 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10464
10465         pthread: add pthread_spin_destroy
10466         * lib/pthread.in.h (pthread_spin_destroy): New function.
10467
10468 2010-09-19  Bruno Haible  <bruno@clisp.org>
10469
10470         gnulib-tool: Fix --help output.
10471         * gnulib-tool (func_usage): Fix help message.
10472         Reported by Reuben Thomas <rrt@sc3d.org>.
10473
10474 2010-09-18  Jim Meyering  <meyering@redhat.com>
10475
10476         maint.mk: avoid unexpanded \n in two diagnostics
10477         * top/maint.mk (sc_prohibit_always_true_header_tests):
10478         Don't use a literal \n in a halt=... assignment.  It would not be
10479         expanded, and the two \n bytes would appear in the diagnostic output
10480         rather than the desired newline.  Use halt=$$(printf ... instead.
10481         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10482
10483 2010-09-18  Bruno Haible  <bruno@clisp.org>
10484
10485         netinet_in: Doc tweak.
10486         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10487         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10488
10489 2010-09-18  Jim Meyering  <meyering@redhat.com>
10490
10491         init.sh: correct an outdated comment
10492         * tests/init.sh (create_exe_shims_):  s/function/alias/
10493
10494         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10495         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10496         a file named "*.exe" is removed between the glob expansion and the
10497         processing of that oddly named file.
10498
10499 2010-09-17  Eric Blake  <eblake@redhat.com>
10500
10501         mirbsd: add some more support
10502         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10503         in BSD family.
10504         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10505         devices as OpenBSD.
10506         * m4/host-os.m4 (mirbsd): Add MirBSD.
10507
10508         tests: fix unportable assumption on sys/wait.h
10509         * tests/test-sys_wait.c (main): Relax test.
10510         * tests/test-stdlib.c (main): Likewise.
10511
10512         init.sh: accomodate directory with no .exes
10513         * tests/init.sh: Accomodate directory containing only scripts.
10514
10515         tests: avoid compiler warning
10516         * tests/test-stdlib.c (main): Use the variable.
10517
10518         fdutimens, fdutimensat: update signature, again
10519         * lib/utimens.h (gl_futimens): Delete, and move signature...
10520         (fdutimens): ...here.
10521         (fdutimensat): Rearrange signature.
10522         (lutimensat): Rename variable for clarity.
10523         * lib/fdutimensat.c (fdutimensat): Update signature.
10524         * lib/utimens.c (fdutimens): Likewise.
10525         (gl_futimens): Delete.
10526         (utimens, lutimens): Update callers.
10527         * lib/futimens.c (futimens): Likewise.
10528         * tests/test-fdutimensat.c: Likewise.
10529         * tests/test-utimens.c: Likewise.
10530         * tests/test-futimens.h: Update comment.
10531         * NEWS: Mention this.
10532         Suggested by Paul Eggert.
10533
10534 2010-09-17  Bruno Haible  <bruno@clisp.org>
10535
10536         Take over the maintenance of some older macros from Autoconf.
10537         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10538         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10539         GNU Autoconf.
10540         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10541         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
10542
10543 2010-09-17  Eric Blake  <eblake@redhat.com>
10544
10545         fdutimensat: drop atflag validation
10546         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
10547         with valid fd, to close a race scenario where futimens is
10548         unsupported and FILE was replaced by a symlink.
10549         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
10550         accordingly.
10551         Suggested by Paul Eggert.
10552
10553 2010-09-16  Bruno Haible  <bruno@clisp.org>
10554
10555         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
10556         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
10557
10558 2010-09-16  Bruno Haible  <bruno@clisp.org>
10559
10560         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
10561         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
10562         login_tty exists.
10563         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10564
10565 2010-09-16  Bruno Haible  <bruno@clisp.org>
10566
10567         login_tty: Make the replacement code work on BSD systems.
10568         * lib/login_tty.c: Include <sys/ioctl.h>.
10569         (login_tty): Use ioctl TIOCSCTTY when available.
10570         * modules/login_tty (Depends-on): Add sys_ioctl.
10571         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10572
10573 2010-09-16  Bruno Haible  <bruno@clisp.org>
10574
10575         login_tty: Stricter unit test.
10576         * modules/login_tty-tests (Depends-on): Add tcgetsid.
10577         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
10578         and tcgetsid() after login_tty.
10579         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10580
10581 2010-09-16  Bruno Haible  <bruno@clisp.org>
10582
10583         New module 'tcgetsid'.
10584         * lib/tcgetsid.c: New file.
10585         * m4/tcgetsid.m4: New file.
10586         * modules/tcgetsid: New file.
10587         * modules/termios (Depends-on): Add c++defs, warn-on-use.
10588         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
10589         GNULIB_TCGETSID, HAVE_TCGETSID.
10590         * lib/termios.in.h: Include <sys/types.h>.
10591         (tcgetsid): New declaration.
10592         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
10593         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
10594         * doc/posix-functions/tcgetsid.texi: Mention the new module.
10595         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
10596
10597 2010-09-16  Bruno Haible  <bruno@clisp.org>
10598
10599         Tests for module 'termios'.
10600         * modules/termios-c++-tests: New file.
10601         * modules/termios-tests: New file.
10602         * tests/test-termios-c++.cc: New file.
10603         * tests/test-termios.c: New file.
10604
10605         New module 'termios'.
10606         * modules/termios: New file.
10607         * lib/termios.in.h: New file.
10608         * m4/termios_h.m4: New file.
10609         * doc/posix-headers/termios.texi: Mention the new module.
10610
10611 2010-09-16  Eric Blake  <eblake@redhat.com>
10612
10613         fdutimensat: add an atflag parameter
10614         * lib/fdutimensat.c (fdutimensat): Add new parameter.
10615         * lib/utimens.h (fdutimensat): Update prototype.
10616         * tests/test-fdutimensat.c: Adjust test to match.
10617         * NEWS: Document the change.
10618         Suggested by Paul Eggert.
10619
10620 2010-09-16  Bruno Haible  <bruno@clisp.org>
10621
10622         Fix typos in comments.
10623         * lib/striconveh.h: Fix typo in comment.
10624         * lib/login_tty.c (login_tty): Likewise.
10625
10626 2010-09-15  Bruno Haible  <bruno@clisp.org>
10627
10628         stdlib: clarify MirBSD WEXITSTATUS bug
10629         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
10630         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10631
10632 2010-09-15  Eric Blake  <eblake@redhat.com>
10633
10634         stdlib: work around MirBSD WEXITSTATUS bug
10635         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
10636         * modules/stdlib (Depends-on): Add sys_wait.
10637         * tests/test-sys_wait.c (main): Enhance test.
10638         * tests/test-stdlib.c (main): Likewise.
10639         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
10640
10641         docs: mention MacOS issue with WEXITSTATUS(constant)
10642         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
10643         issue.
10644         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10645
10646         strnlen: add tests
10647         * modules/strnlen-tests: New file.
10648         * tests/test-strnlen.c: Likewise.
10649
10650 2010-09-14  Bruno Haible  <bruno@clisp.org>
10651
10652         unistr/base: Avoid link errors when module 'libunistring' is also used.
10653         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
10654         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
10655         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
10656         Declare also when HAVE_LIBUNISTRING is set.
10657         Reported by Pádraig Brady <P@draigbrady.com>.
10658
10659 2010-09-14  Eric Blake  <eblake@redhat.com>
10660
10661         test-rawmemchr: make more robust
10662         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
10663         (Depends-on, configure.ac): Add needed prerequisites to use it.
10664         * modules/memchr-tests (Files, Depends-on, configure.ac):
10665         Likewise, to avoid implicit reliance on memchr module prereqs.
10666         * tests/test-memchr.c (main): Ensure proper masking.
10667         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
10668         reads.
10669
10670         memchr: detect glibc Alpha bug
10671         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
10672         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
10673         Alpha.
10674         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
10675         * tests/test-memchr.c (main): Enhance test.
10676         Reported by Nelson H. F. Beebe.
10677
10678 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10679
10680         fts, getcwd, glob: audit for dirfd returning -1
10681         * lib/fts.c (opendir): Remove #define; no longer used.
10682         (opendirat): New arg PDIR_FD.  All callers changed.
10683         (fts_build, _opendir2): Use new opendirat to avoid the need for
10684         dirfd, or for checking whether dirfd returns a negative value.
10685         Don't use opendir; always use openat followed by fdopendir.
10686         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
10687         it.
10688         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
10689         returns -1 here.
10690         * modules/fts (Depends-on): Remove dirfd.
10691         * modules/getcwd (Depends-on): Likewise.
10692
10693 2010-09-13  Eric Blake  <eblake@redhat.com>
10694
10695         float: fix broken MirBSD header
10696         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
10697         * doc/posix-headers/float.texi (float.h): Document it.
10698
10699 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
10700
10701         fts: use O_NOFOLLOW to avoid race condition when opening a directory
10702         * lib/fts.c (opendirat): New arg extra_flags.
10703         (__opendir2): Use it to avoid following symlinks when opening
10704         a directory, if symlinks are not supposed to be followed.  See
10705         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
10706
10707         fdopendir: preserve argument fd before returning
10708         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
10709         (fdopendir_with_dup, fd_clone_opendir): New static functions.
10710         (fdopendir): Use them, arranging for FD to be open to the same
10711         directory that it was when it started.  (It might be temporarily
10712         closed while fdopendir is running, so this not thread- or
10713         signal-safe.)  Be careful to do the right thing even when file
10714         descriptors are scarce and dup fails with errno == EMFILE.  See
10715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
10716
10717 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
10718
10719         regex: Pass the system regex if its only problem is 32-bit regoff_t.
10720         * NEWS: Document change.
10721         * m4/regex.m4: Disable test for regoff_t size.
10722
10723 2010-09-13  Jim Meyering  <meyering@redhat.com>
10724
10725         fts: don't operate on an invalid file descriptor after failed dup
10726         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
10727         negative file descriptor.
10728
10729 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
10730
10731         savedir: add streamsavedir, deprecate fdsavedir
10732         * NEWS: Mention deprecation of fdsavedir.
10733         * lib/savedir.c (streamsavedir): New extern function, whose name
10734         ends in "savedir" to be consistent with the others.  This differs
10735         from savedirstream in that it doesn't close its argument.  The
10736         next version of GNU tar will use this instead of fdsavedir, to
10737         avoid some race conditions and conserve file descriptors.
10738         (savedirstream): Reimplement as a wrapper around streamsavedir.
10739         (fdsavedir): Add a comment deprecating this function.  As far as
10740         I know, only GNU tar used it, and GNU tar doesn't need it any more.
10741         * lib/savedir.h (streamsavedir): New decl.
10742         (fdsavedir): Add a comment deprecating this.
10743
10744 2010-09-10  Bruno Haible  <bruno@clisp.org>
10745
10746         langinfo: Fix last commit.
10747         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
10748         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
10749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10750
10751 2010-09-10  Bruno Haible  <bruno@clisp.org>
10752
10753         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
10754         * lib/progreloc.c (O_EXEC): Define fallback.
10755
10756 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
10757
10758         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
10759         * NEWS: Document recent changes to fcntl-h.
10760         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
10761         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
10762         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
10763         Similarly for O_SEARCH; this last was already true, but not documented.
10764         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
10765         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
10766         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
10767         Likewise.
10768         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
10769         is zero, not whether it is defined.
10770         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
10771         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
10772         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
10773
10774 2010-09-10  Bruno Haible  <bruno@clisp.org>
10775
10776         langinfo, nl_langinfo: Fix for IRIX 5.3.
10777         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
10778         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
10779         HAVE_LANGINFO_YESEXPR.
10780         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
10781         HAVE_LANGINFO_YESEXPR.
10782         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
10783         HAVE_LANGINFO_T_FMT_AMPM is 0.
10784         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
10785         HAVE_LANGINFO_YESEXPR is 0.
10786         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
10787         NOEXPR.
10788         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
10789         * doc/posix-functions/nl_langinfo.texi: Likewise.
10790         Reported by Eric Blake.
10791
10792 2010-09-10  Bruno Haible  <bruno@clisp.org>
10793
10794         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
10795         * doc/glibc-functions/login_tty.texi: Mention the include file problem
10796         on FreeBSD 8.0 and OpenBSD 4.6.
10797         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
10798         * m4/pty_h.m4 (gl_PTY_H): Likewise.
10799         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
10800         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
10801         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
10802         ac_includes_default.
10803         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10804
10805 2010-09-09  Eric Blake  <eblake@redhat.com>
10806
10807         strsignal: work around NetBSD bug
10808         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
10809         * lib/string.in.h (includes): Likewise.
10810         * doc/posix-functions/strsignal.texi (strsignal): Document the
10811         bug.
10812         Reported by Nelson H. F. Beebe.
10813
10814         gnulib-tool: work with NetBSD /bin/sh
10815         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10816         (func_get_description, func_get_comment, func_get_status)
10817         (func_get_notice, func_get_applicability, func_get_filelist)
10818         (func_get_dependencies, func_get_autoconf_early_snippet)
10819         (func_get_autoconf_snippet, func_get_automake_snippet)
10820         (func_get_include_directive, func_get_link_directive)
10821         (func_get_license, func_get_maintainer, func_import): Avoid
10822         shell syntax errors from parsing syntax extensions.
10823
10824 2010-09-09  Bruno Haible  <bruno@clisp.org>
10825
10826         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10827         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10828         a reliable way to determine whether the 'alias' command works.
10829
10830 2010-09-08  Jim Meyering  <meyering@redhat.com>
10831
10832         init.sh: penalize a set-x-impaired shell; don't disqualify it
10833         * tests/init.sh: Too many shells corrupt application stderr when
10834         you set -x, so we can't afford to disqualify them, since at least
10835         on Irix-6.5, that would disqualify all bourne shells.
10836         Instead, use a two-pass approach.
10837         On the first pass, try to find a shell that meets the stricter
10838         condition that set -x does not corrupt stderr.
10839         If no shell meets the stricter condition, retest each candidate
10840         shell, but without that extra condition.  Finally, when
10841         VERBOSE=yes is requested and set -x might cause trouble, simply
10842         issue a warning and refrain from enabling debug output.
10843
10844 2010-09-08  Eric Blake  <eblake@redhat.com>
10845
10846         unsetenv: fix OpenBSD bug
10847         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10848         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10849         documentation.
10850         Reported by Jim Meyering.
10851
10852         strtod: work around IRIX 6.5 bug
10853         * lib/strtod.c (strtod): Reparse number on shorter string if
10854         exponent parse was invalid.
10855         * tests/test-strtod.c (main): Add check for "0x1p 2".
10856         Reported by Tom G. Christensen.
10857
10858         getopt: optimize previous patch
10859         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10860         empty variable.  Speed up awk script.
10861         Reported by Paolo Bonzini.
10862
10863 2010-09-08  Jim Meyering  <meyering@redhat.com>
10864
10865         test.sh: disqualify shells for which set -x corrupts stderr
10866         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10867         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10868         appear in stderr output.  For example, this command:
10869             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10870         prints "P=1" on those two systems:
10871
10872 2010-09-08  Bruno Haible  <bruno@clisp.org>
10873
10874         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10875         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10876         commands, because some shells ignore redirections when there is an
10877         error in the command lookup.
10878         Reported by Eric Blake.
10879
10880 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10881
10882         * lib/regex.h: Fix a mention of `regex_compile' (should be
10883         `re_compile_pattern').
10884         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10885         (re_set_registers): Correct name of parameter in comment.
10886
10887         * doc/regex.texi: Add documentation for missing syntax flags.
10888         Remove commented-out documentation of defunct syntax option
10889         RE_NO_EMPTY_ALTS.
10890         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10891         Add documentation of re_set_registers.
10892         Document trick to re-use a pattern buffer by setting fastmap manually.
10893         Update documentation of struct re_pattern_buffer per public members.
10894         Uncomment documentation of equivalence class operators and
10895         collating symbol operators, since they are now implemented,
10896         Explain leftmost-longest matching in relation to alternatives.
10897         Tidy documentation of substring matching.
10898         Remove POSIX documentation, which is done better in
10899         glibc, and refer the reader there. Keep BSD API documentation, as
10900         that is not readily available elsewhere.
10901
10902 2010-09-07  Eric Blake  <eblake@redhat.com>
10903
10904         getopt: handle POSIXLY_CORRECT set but not exported
10905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10906         export state of POSIXLY_CORRECT, due to bash set -o posix.
10907         Reported by Dustin J. Mitchell.
10908
10909 2010-09-05  Bruno Haible  <bruno@clisp.org>
10910
10911         gnulib-tool: Highlight the changed options.
10912         * gnulib-tool (func_usage): Display the --import, --add-import,
10913         --remove-import explanations in bold font.
10914
10915 2010-09-06  Karl Berry  <karl@gnu.org>
10916
10917         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10918
10919 2010-09-05  Bruno Haible  <bruno@clisp.org>
10920
10921         uniwidth/width: Update comment.
10922         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10923         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10924
10925 2010-09-05  Bruno Haible  <bruno@clisp.org>
10926
10927         isinf, isnan: Relax license.
10928         * modules/isinf (License): Change from GPL to LGPL, with consent from
10929         Ben Pfaff.
10930         * modules/isnan (License): Likewise.
10931         Requested by Ludovic Courtès.
10932
10933 2010-09-04  Bruno Haible  <bruno@clisp.org>
10934
10935         gnulib-tool: Help migration from --import to --add-import or --update.
10936         * gnulib-tool: Emit a verbose error message when --import is used
10937         without any module name.
10938
10939 2010-09-04  Bruno Haible  <bruno@clisp.org>
10940
10941         Update doc about gnulib-tool.
10942         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10943         'gnulib-tool --update' in more detail.
10944         Reported by Eric Blake.
10945
10946 2010-09-04  Bruno Haible  <bruno@clisp.org>
10947
10948         gnulib-tool: Change --import. New options --add/remove-import.
10949         * gnulib-tool: New options --add-import, --remove-import.
10950         (func_usage): Document them.
10951         (have_associative): Define always.
10952         (func_import): In import mode, don't merge the specified settings with
10953         the cached settings. Implement remove-import mode.
10954         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10955         Explain when to use them versus --import.
10956         (Simple update): Use --add-import instead of --import.
10957         * NEWS: Mention the change.
10958
10959 2010-09-04  Bruno Haible  <bruno@clisp.org>
10960
10961         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10962         separate gnulib.mk.
10963
10964 2010-09-04  Bruno Haible  <bruno@clisp.org>
10965
10966         gnulib-tool: Don't talk about CVS any more.
10967         * gnulib-tool (func_usage, func_import): Write "version control"
10968         instead of CVS.
10969
10970 2010-09-04  Jim Meyering  <meyering@redhat.com>
10971
10972         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10973         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10974         false positives (whose names may be ill-chosen) when searching
10975         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10976         would cause a false-positive.
10977
10978         avoid coreutils "make distcheck" failure
10979         Coreutils tests with an absolute build directory name that contains
10980         a space.  Not quoting this directory name caused a failure.
10981         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10982         * tests/test-vc-list-files-cvs.sh: Likewise.
10983
10984 2010-09-04  Bruno Haible  <bruno@clisp.org>
10985
10986         gnulib-tool: Avoid error when run in a package without Makefile.am.
10987         * gnulib-tool: When collecting the m4dirs in a package that does not
10988         have a Makefile.am, eliminate those directories that contain no
10989         gnulib-cache.m4. Fix expression that counts these directories.
10990
10991 2010-09-04  Bruno Haible  <bruno@clisp.org>
10992
10993         update-copyright test: Improve output when perl is missing or too old.
10994         * tests/test-update-copyright.sh: Move test of Perl version down after
10995         the test whether Perl exists. Provide an explanation relating Perl's
10996         error message to Automake's SKIP: message.
10997
10998 2010-09-04  Bruno Haible  <bruno@clisp.org>
10999
11000         Don't augment PATH in TESTS_ENVIRONMENT.
11001         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11002         set abs_aux_dir instead of augmenting PATH.
11003         * modules/vc-list-files-tests (Makefile.am): Likewise.
11004         * tests/test-update-copyright.sh: Augment PATH here.
11005         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11006         path_prepend_.
11007         * tests/test-vc-list-files-git.sh: Likewise.
11008
11009 2010-09-04  Jim Meyering  <meyering@redhat.com>
11010
11011         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11012         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11013
11014 2010-09-04  Bruno Haible  <bruno@clisp.org>
11015
11016         strdup: Fix compilation error in C++ mode.
11017         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11018         the macro.
11019
11020 2010-09-04  Bruno Haible  <bruno@clisp.org>
11021
11022         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11023         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11024         macro into a function.
11025         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11026
11027 2010-09-04  Bruno Haible  <bruno@clisp.org>
11028
11029         Set PATH_SEPARATOR the same way autoconf does.
11030         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11031         the value of PATH_SEPARATOR the same way autoconf-generated configure
11032         scripts do.
11033         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11034         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11035
11036 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11037
11038         Set PATH_SEPARATOR the same way autoconf does.
11039         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11040         the same way autoconf-generated configure scripts do.
11041         * posix-modules: Likewise.
11042
11043 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11044
11045         hash: fix safe_hasher const typo
11046         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11047         const; otherwise, there is a type error later.
11048
11049 2010-09-02  Jim Meyering  <meyering@redhat.com>
11050
11051         test-update-copyright.sh: require perl 5.8.0
11052         * tests/test-update-copyright.sh: Require 5.8.0,
11053         which Tom G. Christensen has confirmed is adequate,
11054         while 5.6.1 is not.
11055
11056 2010-09-02  Eric Blake  <eblake@redhat.com>
11057
11058         tests: init.sh improvements for re-exec'ing with zsh
11059         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11060         -vx through shell re-exec.
11061         Reported by Tom G. Christensen.
11062
11063         wctype: fix typo in previous commit
11064         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11065         Reported by Ludovic Courtès.
11066
11067 2010-09-02  Jim Meyering  <meyering@redhat.com>
11068
11069         test-update-copyright.sh: skip test if Perl is too old
11070         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11071         Reported by Tom G. Christensen.
11072
11073 2010-09-02  Bruno Haible  <bruno@clisp.org>
11074
11075         wctype: Avoid compilation error on IRIX 6.5.30.
11076         * lib/wctype.in.h (iswblank): Declare with a replacement if
11077         REPLACE_ISWBLANK is set.
11078         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11079         declared. Set REPLACE_ISWBLANK.
11080         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11081         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11082         * doc/posix-headers/wctype.texi: Likewise.
11083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11084
11085 2010-09-01  Bruno Haible  <bruno@clisp.org>
11086
11087         New module 'socketlib'.
11088         * modules/socketlib: New file.
11089         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11090         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11091         * modules/sockets (Depends-on): Add socketlib.
11092         Suggested by Sam Steingold <sds@gnu.org>.
11093
11094 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11095
11096         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11097
11098         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11099         when one needs search access to a directory but not read access.
11100         On systems where it is available, it works in some cases where
11101         O_RDONLY does not, namely on directories that are searchable but
11102         not readable, and which need only to be searchable.  If O_SEARCH
11103         is not available, fall back to the traditional method of using
11104         O_RDONLY.
11105
11106         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11107         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11108         when opening a directory that needs only to be searchable.
11109         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11110         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11111         * lib/openat-proc.c (openat_proc_name): Likewise.
11112         * lib/openat.c (openat_needs_fchdir): Likewise.
11113         * lib/save-cwd.c (save_cwd): Likewise.
11114         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11115
11116 2010-08-28  Bruno Haible  <bruno@clisp.org>
11117
11118         New module 'host-cpu-c-abi'.
11119         * modules/host-cpu-c-abi: New file.
11120         * m4/host-cpu-c-abi.m4: New file, based on part of
11121         clisp/src/m4/general.m4.
11122         Requested by Sam Steingold <sds@gnu.org>.
11123
11124 2010-08-31  Eric Blake  <eblake@redhat.com>
11125         and Jim Meyering  <meyering@redhat.com>
11126
11127         hash: factor, and guard against misbehaving hasher function
11128         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11129         of table->hasher's return value.  Also protect against a hash value
11130         so large that adding it to table->bucket results in a NULL pointer.
11131         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11132         Use it in place of open-coded check-and-abort.
11133
11134 2010-08-30  Bruno Haible  <bruno@clisp.org>
11135
11136         hash: silence spurious clang warning
11137         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11138         Reported by Eric Blake.
11139
11140 2010-08-30  Eric Blake  <eblake@redhat.com>
11141
11142         strstr, memmem, strcasestr: avoid leaked shell message
11143         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11144         FreeBSD.
11145         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11146         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11147
11148         tests: silence clang warning
11149         * tests/test-malloca.c (do_allocation): Avoid dead store.
11150
11151 2010-08-29  Bruno Haible  <bruno@clisp.org>
11152
11153         gettext: Fix recent mistake.
11154         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11155
11156 2010-08-29  Bruno Haible  <bruno@clisp.org>
11157
11158         selinux-h: Offer a --without-selinux option.
11159         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11160         --without-selinux was specified, skip all tests and define
11161         HAVE_SELINUX_SELINUX_H to 0.
11162         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11163         set LIB_SELINUX to empty.
11164         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11165         gl_LIBSELINUX. If --without-selinux was specified, replace
11166         selinux/context.h.
11167         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11168
11169 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11170             Bruno Haible  <bruno@clisp.org>
11171
11172         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11173         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11174         of HAVE_REALLOC.
11175         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11176         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11177         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11178         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11179
11180 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11181             Bruno Haible  <bruno@clisp.org>
11182
11183         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11184         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11185         HAVE_CALLOC.
11186         * lib/xmalloc.c: Update accordingly.
11187         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11188         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11189         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11190
11191 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11192             Bruno Haible  <bruno@clisp.org>
11193
11194         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11195         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11196         HAVE_MALLOC.
11197         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11198         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11199         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11200
11201 2010-08-29  Bruno Haible  <bruno@clisp.org>
11202
11203         Update modules list.
11204         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11205         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11206         (String handling <string.h>): Add astrxfrm.
11207         (File system functions): Add readlinkat.
11208
11209 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11210
11211         Tests for module 'realloc-gnu'.
11212         * modules/realloc-gnu-tests: New file.
11213         * tests/test-realloc-gnu.c: New file.
11214
11215         Tests for module 'calloc-gnu'.
11216         * modules/calloc-gnu-tests: New file.
11217         * tests/test-calloc-gnu.c: New file.
11218
11219         Tests for module 'malloc-gnu'.
11220         * modules/malloc-gnu-tests: New file.
11221         * tests/test-malloc-gnu.c: New file.
11222
11223 2010-08-28  Bruno Haible  <bruno@clisp.org>
11224
11225         Rename module 'realloc' -> 'realloc-gnu'.
11226         * modules/realloc-gnu: New file, copied from modules/realloc.
11227         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11228         obsolete.
11229         * modules/mgetgroups (Depends-on): Update.
11230         * doc/posix-functions/realloc.texi: Update.
11231         * NEWS: Mention the change.
11232
11233         Rename module 'calloc' -> 'calloc-gnu'.
11234         * modules/calloc-gnu: New file, copied from modules/calloc.
11235         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11236         obsolete.
11237         * doc/posix-functions/calloc.texi: Update.
11238         * NEWS: Mention the change.
11239
11240         Rename module 'malloc' -> 'malloc-gnu'.
11241         * modules/malloc-gnu: New file, copied from modules/malloc.
11242         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11243         obsolete.
11244         * modules/argp (Depends-on): Update.
11245         * modules/regex (Depends-on): Update.
11246         * doc/posix-functions/malloc.texi: Update.
11247         * NEWS: Mention the change.
11248
11249 2010-08-28  Eric Blake  <eblake@redhat.com>
11250
11251         pread, pwrite: add missing dependency
11252         * modules/pread (Depends-on): Add extensions.
11253         * modules/pwrite (Depends-on): Likewise.
11254
11255 2010-08-28  Bruno Haible  <bruno@clisp.org>
11256
11257         unistr/u*-strchr: Fix tests dependencies.
11258         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11259         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11260         Reported by Ian Beckwith <ianb@erislabs.net>.
11261
11262 2010-08-28  Bruno Haible  <bruno@clisp.org>
11263
11264         read-file: Don't occupy too much unused memory.
11265         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11266
11267 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11268             Eric Blake  <eblake@redhat.com>
11269             Bruno Haible  <bruno@clisp.org>
11270
11271         read-file: Avoid memory reallocations with regular files.
11272         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11273         (fread_file): With regular files, use the remaining length as the
11274         initial buffer size.  Check against overflow.
11275         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11276         sys_stat.
11277
11278 2010-08-28  Bruno Haible  <bruno@clisp.org>
11279
11280         ftello: Relax license.
11281         * modules/ftello (License): Relax to LGPLv2+.
11282         Reported by Eric Blake.
11283
11284 2010-08-28  Bruno Haible  <bruno@clisp.org>
11285
11286         Avoid relocwrapper link errors due to gnulib replacement functions.
11287         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11288         function.
11289         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11290
11291 2010-08-28  Bruno Haible  <bruno@clisp.org>
11292
11293         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11294         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11295         defined.
11296         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11297         Suggested by Eric Blake.
11298
11299 2010-08-28  Bruno Haible  <bruno@clisp.org>
11300
11301         sys_socket, netdb: Ensure socklen_t gets defined.
11302         * modules/sys_socket (Depends-on): Add socklen.
11303         * modules/netdb (Depends-on): Likewise.
11304         * modules/getaddrinfo (Depends-on): Remove socklen.
11305         * modules/getsockopt (Depends-on): Likewise.
11306         * modules/setsockopt (Depends-on): Likewise.
11307         * tests/test-sys_socket.c: Check that socklen_t is defined.
11308         * tests/test-netdb.c: Likewise.
11309         * m4/socklen.m4: Update comments.
11310         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11311
11312 2010-08-27  Eric Blake  <eblake@redhat.com>
11313
11314         login_tty: add missing dependency
11315         * modules/login_tty (Depends-on): Add pty.
11316
11317 2010-08-26  Eric Blake  <eblake@redhat.com>
11318
11319         lib-symbol-versions: fix m4 quoting
11320         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11321         format for AC_LINK_IFELSE.
11322
11323         glob: fix compile test
11324         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11325
11326         btowc: fix missing file
11327         * modules/btowc (Files): Also ship locale-fr.m4.
11328
11329         lseek: fix link test
11330         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11331         AC_LINK_IFELSE.
11332
11333         include_next: silence autoconf 2.68 warning
11334         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11335         AC_COMPILE_IFELSE as special.
11336         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11337         autoconf < 2.68.
11338
11339         acl: fix compilation test
11340         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11341         AC_COMPILE_IFELSE.
11342
11343 2010-08-26  Bruno Haible  <bruno@clisp.org>
11344
11345         Modernize AC_TRY_RUN invocations.
11346         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11347         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11348         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11349         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11350         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11351         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11352         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11353         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11354         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11355         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11356         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11357         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11358         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11359         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11360         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11361         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11362         gl_MBRLEN_NUL_RETVAL): Likewise.
11363         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11364         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11365         Likewise.
11366         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11367         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11368         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11369         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11370         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11371         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11372         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11373         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11374         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11375         Likewise.
11376         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11377         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11378         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11379         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11380         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11381         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11382         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11383         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11384         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11386
11387 2010-08-26  Bruno Haible  <bruno@clisp.org>
11388
11389         Modernize AC_TRY_LINK invocations.
11390         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11391         AC_TRY_LINK.
11392         * m4/argp.m4 (gl_ARGP): Likewise.
11393         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11394         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11395         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11396         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11397         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11398         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11399         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11400         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11401         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11402         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11403         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11404         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11405         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11406         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11407         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11408         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11409         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11410         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11411         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11412         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11413         Likewise.
11414         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11415         Likewise.
11416         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11417         Likewise.
11418         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11420         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11421         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11422         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11423         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11424         * m4/servent.m4 (gl_SERVENT): Likewise.
11425         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11426         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11427         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11428         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11429         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11430         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11431         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11432         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11433         * modules/tsearch-tests (configure.ac): Likewise.
11434
11435 2010-08-26  Bruno Haible  <bruno@clisp.org>
11436
11437         Modernize AC_TRY_COMPILE invocations.
11438         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11439         AC_TRY_COMPILE.
11440         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11441         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11442         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11443         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11444         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11445         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11446         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11447         * m4/lock.m4 (gl_LOCK): Likewise.
11448         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11449         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11450         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11451         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11452         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11453         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11454         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11455         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11456         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11457         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11458         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11459         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11460         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11461         extraneous semicolon.
11462
11463 2010-08-26  Jim Meyering  <meyering@redhat.com>
11464
11465         stat-time: relax license LGPL
11466         * modules/stat-time (License): Change from GPL to LGPL,
11467         with consent from all contributors, for use in libguile.
11468         Requested by Ludovic Courtès.
11469
11470 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11471
11472         poll: return immediately on POLLHUP.
11473         * lib/poll.c (poll): Always set timeout before wait_timeout is
11474         computed.
11475
11476 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11477
11478         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11479         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11480         rmdir ("dir/.//"), unlinkat.
11481
11482 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11483
11484         stdbool: avoid spurious failure with modern xlc
11485         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11486
11487 2010-08-24  Bruno Haible  <bruno@clisp.org>
11488
11489         getloadavg: simplify code
11490         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11491         gl_have_func. Update comments.
11492
11493 2010-08-24  Eric Blake  <eblake@redhat.com>
11494
11495         getloadavg: don't define SVR4 on cygwin
11496         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11497         only define SVR4 when -lkvm is required.
11498         Reported by Yaakov Selkowitz.
11499
11500 2010-08-24  Bruno Haible  <bruno@clisp.org>
11501
11502         priv-set: fix comment
11503         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11504
11505 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11506
11507         priv-set: fix comments
11508         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11509         to match code, as suggested by David Bartley in:
11510         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11511
11512 2010-08-23  Eric Blake  <eblake@redhat.com>
11513
11514         stdbool: avoid rejecting clang
11515         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11516         * tests/test-stdbool.c: Enable more tests if using the system
11517         <stdbool.h> instead of the gnulib replacement.
11518         (main): Move xlc bug test to a runtime test for all compilers.
11519         Reported by Anders Kaseorg.
11520
11521         argz: fix shell quoting issue
11522         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11523         Reported by Charles Wilson.
11524
11525 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11526             Erik Faye-Lund <kusmabite@gmail.com>
11527
11528         poll, select: handle ERROR_BROKEN_PIPE.
11529         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11530         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11531         * lib/select.c (win32_compute_revents): Do not mark a pipe
11532         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11533
11534 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11535
11536         fts: allow compilation with C++
11537         * lib/fts_.h: Specify extern "C" linkage with C++.
11538
11539 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11540
11541         Fix gnulib-tool sed script de-commentation for AIX sed.
11542         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
11543         sed.
11544
11545 2010-08-17  Eric Blake  <eblake@redhat.com>
11546
11547         test-stddef: test for (some) offsetof bugs
11548         * tests/test-stddef.c: Enhance test to ensure correct type of
11549         offsetof.
11550         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
11551         that we are not fixing at this time.
11552
11553 2010-08-15  Bruno Haible  <bruno@clisp.org>
11554
11555         stpncpy: Allow stpncpy to be defined as a macro.
11556         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
11557         if it's already correctly declared.
11558         * lib/string.in.h (stpncpy): Undefine before redefining.
11559         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
11560
11561 2010-08-14  Bruno Haible  <bruno@clisp.org>
11562
11563         Rename module 'memxfrm' to 'amemxfrm'.
11564         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
11565         (amemxfrm): Renamed from memxfrm.
11566         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
11567         (amemxfrm): Renamed from memxfrm.
11568         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
11569         * NEWS: Mention the change.
11570         * MODULES.html.sh (String handling <string.h>): Update.
11571         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
11572         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
11573         * lib/unicase/u16-casexfrm.c: Likewise.
11574         * lib/unicase/u32-casexfrm.c: Likewise.
11575         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
11576         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
11577         * lib/uninorm/u16-normxfrm.c: Likewise.
11578         * lib/uninorm/u32-normxfrm.c: Likewise.
11579         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
11580         memxfrm.
11581         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
11582         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
11583         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
11584         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
11585         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
11586         Suggested by Paul Eggert.
11587
11588 2010-08-14  Bruno Haible  <bruno@clisp.org>
11589
11590         Tests for module 'astrxfrm'.
11591         * modules/astrxfrm-tests: New file.
11592         * tests/test-astrxfrm.c: New file.
11593
11594         New module 'astrxfrm'.
11595         * lib/astrxfrm.h: New file.
11596         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
11597         * modules/astrxfrm: New file.
11598
11599 2010-08-14  Reuben Thomas <rrt@sc3d.org>
11600
11601         regex: Tweak doc.
11602         * doc/regex.texi (Overview): Don't mention regex.c.
11603         (GNU Regular Expression Compiling): Likewise.
11604         (Match-end-of-line Operator): Mention 'not_eol'.
11605
11606 2010-08-14  Brian Gough  <bjg@gnu.org>
11607             Bruno Haible  <bruno@clisp.org>
11608
11609         git-merge-changelog: add doc relating to use with bzr and hg.
11610         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
11611
11612 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
11613
11614         pthread: fix pthread.h creation for srcdir != builddir
11615         * modules/pthread (Makefile.am): Fix the rule to work also in a
11616         non-srcdir build.
11617
11618 2010-08-13  Karl Berry  <karl@gnu.org>
11619
11620         * doc/regex.texi (Predefined Syntaxes): @smallexample.
11621         * doc/posix-*/*: force line break before @url of POSIX
11622         specifications.
11623         Suggested by Werner Lemberg.
11624
11625 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11626
11627         strtod: fix const diagnostic
11628         * lib/strtod.c (strtod): Don't assign const char * to char *,
11629         as this elicits a warning from GCC when warnings are enabled.
11630
11631 2010-08-10  Pádraig Brady <P@draigbrady.com>
11632         and Eric Blake  <eblake@redhat.com>
11633
11634         copy-acl: ignore ENOTSUP on HP-UX
11635         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
11636         so that it is available for HP-UX.
11637         * lib/copy-acl.c (qcopy_acl): Use it.
11638         Reported by Patrick M. Callahan.
11639
11640 2010-08-10  Eric Blake  <eblake@redhat.com>
11641
11642         open, chown: relax license
11643         * modules/open (License): Change to LGPLv2+, with consent by all
11644         authors, for use in augeas.
11645         * modules/chown (License): Likewise.
11646         * modules/lchown (Likewise): Likewise.
11647         Requested by Adam Stokes.
11648
11649 2010-08-09  Karl Berry  <karl@gnu.org>
11650
11651         * build-aux/ar-lib: new file, import from Automake.
11652         * config/srclist.txt: autocheck for updates.
11653
11654 2010-08-09  Eric Blake  <eblake@redhat.com>
11655
11656         readlinkat: adjust client modules
11657         * modules/areadlinkat (Depends-on): Use readlinkat, not
11658         symlinkat.
11659         * modules/areadlinkat-with-size (Depends-on): Likewise.
11660
11661         mknod: be more vocal about danger of running tests as root
11662         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
11663         root, since that is just asking for problems.
11664         Suggested by Bruno Haible, based on a report by Rainer Tammer.
11665
11666         readlinkat: split into its own module
11667         * modules/symlinkat: Split readlinkat...
11668         * modules/readlinkat: ...into separate module.
11669         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
11670         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
11671         * lib/symlinkat.c (readlinkat): Move...
11672         * lib/readlinkat.c: ...into new file.
11673         * modules/symlinkat-tests: Split readlinkat test...
11674         * modules/readlinkat-tests: ...into separate module.
11675         * tests/test-symlinkat.c: Split...
11676         * tests/test-readlinkat.c: ...into new file.
11677         * NEWS: Document the split.
11678         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11679         * lib/unistd.in.h (readlinkat): Likewise.
11680         Suggested by Bruno Haible.
11681
11682 2010-08-08  Bruno Haible  <bruno@clisp.org>
11683
11684         memxfrm: Speed up.
11685         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
11686         that usually only one call to strxfrm is necessary for each string
11687         part.
11688         Reported by Paul Eggert <eggert@cs.ucla.edu>.
11689
11690 2010-08-07  Karl Berry  <karl@gnu.org>
11691
11692         * doc/posix-headers/limits.texi,
11693         * doc/posix-functions/malloc.texi,
11694         * doc/posix-functions/strsignal.texi: missing @item.
11695         * doc/ld-version-script.texi: spurious leading i.
11696         * doc/regex.texi (Interval Operators): no commas inside @var.
11697
11698 2010-08-01  Bruno Haible  <bruno@clisp.org>
11699
11700         Integrate the regex documentation.
11701         * doc/gnulib.texi: Define 'cn' index.
11702         (Regular expressions): New a chapter that includes regex.texi and
11703         regexprops-generic.texi.
11704         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
11705         syntax.
11706
11707         Whitespace cleanup.
11708         * doc/regex.texi: Remove trailing spaces.
11709
11710         Add regex documentation.
11711         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
11712         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
11713         Written by Kathy A. Hargreaves and Karl Berry.
11714
11715 2010-08-01  Bruno Haible  <bruno@clisp.org>
11716
11717         link: Update documentation.
11718         * doc/posix-functions/link.texi: Update regarding Solaris.
11719
11720 2010-07-31  Bruno Haible  <bruno@clisp.org>
11721
11722         Update modules list.
11723         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
11724         (String handling <string.h>): Add memcmp2, memxfrm.
11725         (Container data structures): Add xlist, xsublist, xoset.
11726         (Core language properties): Add alignof, unused-parameter.
11727         (Process control, Numeric conversion functions <stdlib.h>): Renamed
11728         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
11729         (Unibyte characters <ctype.h>): New section.
11730         (String handling <string.h>): New section.
11731         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
11732         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
11733         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
11734         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
11735         tan, tanh, tanl, y0, y1, yn.
11736         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
11737         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
11738         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
11739         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
11740         unlockpt, vdprintf, vdprintf-posix.
11741         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
11742         (File system functions): Add concat-filename, sys_file, sys_ioctl,
11743         xconcat-filename.
11744         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
11745         getdtablesize, pipe2, pipe2-safer.
11746         (Security): New section.
11747         (Networking functions): Add accept4.
11748         (Signal handling): Add sigpipe.
11749         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
11750         mbmemcasecoll.
11751         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
11752         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
11753         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
11754         pipe-filter-ii.
11755         (Misc): Add argp-version-etc, login_tty, parse-duration.
11756
11757 2010-07-31  Bruno Haible  <bruno@clisp.org>
11758
11759         Improve doc in MODULES.html.
11760         * modules/linkat (Description): Add the word "function".
11761         * modules/mkfifo (Description): Likewise.
11762         * modules/mknod (Description): Likewise.
11763         * modules/remove (Description): Likewise.
11764         * modules/renameat (Description): Likewise.
11765         * modules/stat (Description): Likewise.
11766         * modules/symlink (Description): Likewise.
11767         * modules/unlink (Description): Likewise.
11768
11769 2010-07-31  Bruno Haible  <bruno@clisp.org>
11770
11771         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
11772         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
11773         option --enable/disable-c++ instead of --enable/disable-cxx.
11774         * NEWS: Mention the change.
11775
11776 2010-07-31  Bruno Haible  <bruno@clisp.org>
11777
11778         readlink, areadlink: Relax test a bit.
11779         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
11780         alternative to ENOTDIR.
11781         * tests/test-areadlink.h (test_areadlink): Likewise.
11782         Reported by Rainer Tammer.
11783
11784 2010-07-31  Bruno Haible  <bruno@clisp.org>
11785
11786         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
11787         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
11788         character, perform the search using U_STRCHR.
11789         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
11790         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
11791         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
11792         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
11793         Suggested by Paolo Bonzini.
11794
11795 2010-07-31  Bruno Haible  <bruno@clisp.org>
11796
11797         unistr/u*-strstr: Fix dependencies.
11798         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
11799         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
11800         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
11801
11802 2010-07-31  Bruno Haible  <bruno@clisp.org>
11803
11804         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
11805         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
11806         the beginning of the loop.
11807         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
11808         cases in 'switch' statement.
11809
11810         unistr/u8-strchr: Fix several bugs.
11811         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11812         the string. When not found, return NULL, not a pointer near the end.
11813
11814         More tests for unistr/u8-strchr.
11815         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11816         that the function does not read past the first occurrence of the byte
11817         being searched.
11818         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11819         * tests/unistr/test-u16-strchr.c (main): New function.
11820         * tests/unistr/test-u32-strchr.c (main): New function.
11821
11822 2010-07-31  Bruno Haible  <bruno@clisp.org>
11823
11824         posix-modules: Ignore backup files of documentation files.
11825         * posix-modules: grep only through files named *.texi.
11826
11827 2010-07-31  Bruno Haible  <bruno@clisp.org>
11828
11829         symlinkat: Fix documentation.
11830         * doc/posix-functions/readlinkat.texi: Fix module name.
11831
11832 2010-07-31  Bruno Haible  <bruno@clisp.org>
11833
11834         fchownat: Replace also when chown has the trailing slash bug.
11835         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11836         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11837         introduced on 2010-04-10.
11838         Reported by Rainer Tammer.
11839
11840 2010-07-31  Bruno Haible  <bruno@clisp.org>
11841
11842         linkat: Work around AIX 7.1 bug.
11843         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11844         whether linkat handles trailing slash correctly. If not, replace linkat
11845         and define LINKAT_TRAILING_SLASH_BUG.
11846         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11847         check whether (fd1,file1) points to a directory if file1 or file2 ends
11848         in a slash. Code taken from lib/link.c.
11849         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11850         Reported by Rainer Tammer.
11851
11852 2010-07-31  Bruno Haible  <bruno@clisp.org>
11853
11854         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11855         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11856         This disables an xlc optimization that was causing wrong test results.
11857         Reported by Rainer Tammer.
11858
11859 2010-07-31  Bruno Haible  <bruno@clisp.org>
11860
11861         iconv: Work around AIX 6.1..7.1 bug.
11862         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11863         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11864         cross-compiling, guess no on all versions of AIX.
11865         Reported by Rainer Tammer.
11866
11867 2010-07-31  Bruno Haible  <bruno@clisp.org>
11868
11869         readlink: Relax test a bit.
11870         * tests/test-readlink.h (test_readlink): Allow different errno value
11871         when readlink is called with a file name that ends in / and refers to
11872         a file.
11873         Suggested by Eric Blake.
11874         Reported by Rainer Tammer.
11875
11876 2010-07-31  Bruno Haible  <bruno@clisp.org>
11877
11878         copysign: Does not require -lm on glibc systems.
11879         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11880         gl_COMMON_DOUBLE_MATHFUNC.
11881         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11882
11883 2010-07-31  Bruno Haible  <bruno@clisp.org>
11884
11885         duplocale: Work around AIX 7.1 bug.
11886         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11887         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11888         * lib/duplocale.c (rpl_duplocale): Update comment.
11889         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11890         Reported by Rainer Tammer.
11891
11892 2010-07-30  Bruno Haible  <bruno@clisp.org>
11893
11894         dirfd: Avoid link error on AIX 7.1.
11895         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11896         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11897         exist, set REPLACE_DIRFD.
11898         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11899         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11900         * doc/posix-functions/dirfd.texi: Update.
11901         Reported by Rainer Tammer.
11902
11903 2010-07-30  Eric Blake  <eblake@redhat.com>
11904
11905         strtod: next round of AIX fixes
11906         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11907         exponent.
11908         * tests/test-strtod.c (main): Enhance tests.
11909         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11910         Reported by Rainer Tammer.
11911
11912         futimens: fix configure check
11913         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11914         Reported by Bruno Haible.
11915
11916 2010-07-30  Bruno Haible  <bruno@clisp.org>
11917
11918         getline: Update regarding AIX.
11919         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11920         Reported by Rainer Tammer.
11921
11922 2010-07-30  Bruno Haible  <bruno@clisp.org>
11923
11924         wcwidth: Drop replacement on AIX 7.
11925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11926         AIX 7.
11927         Reported by Rainer Tammer.
11928
11929 2010-07-30  Bruno Haible  <bruno@clisp.org>
11930
11931         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11932         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11933         a 'char *'.
11934         Reported by Rainer Tammer.
11935
11936 2010-07-30  Bruno Haible  <bruno@clisp.org>
11937
11938         unlink: Update regarding AIX.
11939         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11940         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11941         Reported by Rainer Tammer.
11942
11943 2010-07-30  Bruno Haible  <bruno@clisp.org>
11944
11945         symlink: Update regarding AIX.
11946         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11947         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11948         Reported by Rainer Tammer.
11949
11950 2010-07-30  Bruno Haible  <bruno@clisp.org>
11951
11952         strndup: Update regarding AIX.
11953         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11954         AIX 7.
11955         Reported by Rainer Tammer.
11956
11957 2010-07-30  Bruno Haible  <bruno@clisp.org>
11958
11959         stat: Update regarding AIX.
11960         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11961         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11962         Reported by Rainer Tammer.
11963
11964 2010-07-30  Bruno Haible  <bruno@clisp.org>
11965
11966         truncl: Fix autoconf test.
11967         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11968         whether truncl works.
11969         Reported by Rainer Tammer.
11970
11971 2010-07-30  Bruno Haible  <bruno@clisp.org>
11972
11973         round: Update regarding AIX.
11974         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11975         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11976         Reported by Rainer Tammer.
11977
11978 2010-07-30  Bruno Haible  <bruno@clisp.org>
11979
11980         rename: Update regarding AIX.
11981         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11982         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11983         Reported by Rainer Tammer.
11984
11985 2010-07-30  Bruno Haible  <bruno@clisp.org>
11986
11987         printf.m4: Update regarding AIX.
11988         * m4/printf.m4: Update comments regarding AIX.
11989         Reported by Rainer Tammer.
11990
11991 2010-07-30  Bruno Haible  <bruno@clisp.org>
11992
11993         iconv: Update regarding AIX.
11994         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11995         AIX 7.
11996         Reported by Rainer Tammer.
11997
11998 2010-07-30  Bruno Haible  <bruno@clisp.org>
11999
12000         getopt: Update regarding AIX.
12001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12002         no on AIX.
12003         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12004         Reported by Rainer Tammer.
12005
12006 2010-07-30  Bruno Haible  <bruno@clisp.org>
12007
12008         ldexpl; Update regarding AIX.
12009         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12010         on AIX 7.
12011         Reported by Rainer Tammer.
12012
12013 2010-07-30  Bruno Haible  <bruno@clisp.org>
12014
12015         frexpl: Update regarding AIX.
12016         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12017         on AIX 7.
12018         Reported by Rainer Tammer.
12019
12020 2010-07-30  Bruno Haible  <bruno@clisp.org>
12021
12022         open, fopen: Update regarding AIX.
12023         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12024         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12025         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12026         * doc/posix-functions/fopen.texi: Likewise.
12027         Reported by Rainer Tammer.
12028
12029 2010-07-30  Bruno Haible  <bruno@clisp.org>
12030
12031         chown: Update doc regarding AIX.
12032         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12033         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12034         Reported by Rainer Tammer.
12035
12036 2010-07-30  Eric Blake  <eblake@redhat.com>
12037
12038         strtod: fix bug in replacement function on AIX
12039         * lib/strtod.c (strtod): Special case broken "0x" parse in
12040         underlying strtod.
12041         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12042         * doc/posix-functions/strtod.texi (strtod): Likewise.
12043         Reported by Rainer Tammer.
12044
12045 2010-07-30  Bruno Haible  <bruno@clisp.org>
12046
12047         mbrlen: Fix cross-compilation guess for AIX.
12048         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12049         guess. Leftover from 2008-12-22.
12050
12051 2010-07-30  Bruno Haible  <bruno@clisp.org>
12052
12053         mbrtowc: Fix cross-compilation guess for AIX.
12054         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12055         guess. Leftover from 2008-12-21.
12056
12057 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12058
12059         init.sh: work around trap limitation of some shells
12060         * tests/init.sh (setup_): Move exit trap outside of shell function.
12061
12062 2010-07-29  Eric Blake  <eblake@redhat.com>
12063
12064         strtod: aid debugging
12065         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12066         understanding why strtod is rejected.
12067
12068 2010-07-28  Bruno Haible  <bruno@clisp.org>
12069
12070         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12071         * lib/unistr/u8-chr.c: Include <string.h>.
12072         * tests/unistr/test-u8-chr.c: Likewise.
12073         * tests/unistr/test-u16-chr.c: Likewise.
12074         * tests/unistr/test-u32-chr.c: Likewise.
12075         * tests/unistr/test-u8-strchr.c: Likewise.
12076         * tests/unistr/test-u16-strchr.c: Likewise.
12077         * tests/unistr/test-u32-strchr.c: Likewise.
12078         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12079         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12080         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12081         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12082
12083 2010-07-28  Bruno Haible  <bruno@clisp.org>
12084
12085         Use spaces for indentation, not tabs.
12086         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12087
12088 2010-07-27  Bruno Haible  <bruno@clisp.org>
12089
12090         mbspcasecmp: Fix function specification.
12091         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12092         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12093         Reported by Eric Blake <eblake@redhat.com>.
12094
12095 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12096
12097         timespec: use cast and not conditional, as truncation isn't possible
12098         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12099         instead of a conditional.  Comment about the situation in more detail.
12100         This undoes most of the 2009-10-29 patch.
12101
12102 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12103
12104         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12105         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12106         * lib/unistr/u8-strchr.c: Likewise.
12107         * modules/unistr/u8-chr: Depend on memchr.
12108
12109         unistr/u*-strchr: add tests
12110         * modules/unistr/u8-strchr-tests: New file.
12111         * modules/unistr/u16-strchr-tests: New file.
12112         * modules/unistr/u32-strchr-tests: New file.
12113         * tests/unistr/test-strchr.h: New file.
12114         * tests/unistr/test-u8-strchr.c: New file.
12115         * tests/unistr/test-u16-strchr.c: New file.
12116         * tests/unistr/test-u32-strchr.c: New file.
12117
12118         unistr/u*-chr: test multibyte sequences more
12119         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12120         test vector.
12121         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12122         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12123         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12124
12125         unistr/u*-chr: test multibyte sequences
12126         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12127
12128         unistr/u*-chr: prepare for multibyte tests
12129         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12130         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12131         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12132         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12133         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12134         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12135
12136 2010-07-18  Bruno Haible  <bruno@clisp.org>
12137
12138         unistr/u8-strchr: Optimize non-ASCII argument case.
12139         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12140         because the first byte often matches anyway.
12141         Reported by Pádraig Brady <P@draigbrady.com>.
12142
12143 2010-07-15  Karl Berry  <karl@gnu.org>
12144
12145         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12146
12147 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12148
12149         getcwd: on Solaris, work better if ancestors are inaccessible
12150         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12151         buffer and size, try again with a large buffer.  This works better
12152         on Solaris, since its getcwd succeeds even if the path to the root
12153         is inaccessible, and this is helpful in common cases such as .zfs
12154         hidden directories.  Problem reported by J Chapman Flack in
12155         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12156         Use system getcwd if it's declared, not merely if it's partly
12157         working; use the partly-working test only to avoid needless effort
12158         if the system getcwd fails.
12159         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12160         comment that was already obsolete and is now even more obsolete.
12161         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12162         now might call strdup.
12163
12164 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12165
12166         pthread: Add enough so that coreutils/src/sort.c compiles.
12167         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12168         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12169         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12170         Include <sys/types.h>, in case it defines pthread_t.
12171         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12172         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12173         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12174         (pthread_rwlockattr_t, pthread_spinlock_t):
12175         New typedefs, if HAVE_PTHREAD_T is not defined.
12176         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12177         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12178         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12179         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12180         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12181         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12182         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12183         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12184         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12185         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12186         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12187         New macros.
12188         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12189         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12190         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12191         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12192         (pthread_spin_unlock): New dummy functions.
12193         (pthread_create): Return EAGAIN; don't set errno.
12194         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12195         require AC_C_INLINE.
12196         * modules/pthread (Depends-on): Add sched, time.
12197         (pthread.h): Use AM_V_GEN.
12198
12199 2010-07-13  Bruno Haible  <bruno@clisp.org>
12200
12201         striconveh: Don't malloc memory if the result buffer is sufficient.
12202         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12203         buffer if its size is sufficient.
12204         Reported by Ludovic Courtès <ludo@gnu.org>.
12205
12206 2010-07-13  Bruno Haible  <bruno@clisp.org>
12207
12208         strtod: Add safety check.
12209         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12210
12211 2010-07-12  Bruno Haible  <bruno@clisp.org>
12212
12213         Unify tests that set gl_cv_func_ldexpl_no_libm.
12214         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12215         gl_FUNC_LDEXPL.
12216         (gl_FUNC_LDEXPL): Invoke it.
12217         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12218
12219 2010-07-12  Bruno Haible  <bruno@clisp.org>
12220
12221         Unify tests that set gl_cv_func_ldexp_no_libm.
12222         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12223         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12224         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12225         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12226         * modules/strtod (Files): Add m4/ldexp.m4.
12227
12228 2010-07-12  Bruno Haible  <bruno@clisp.org>
12229
12230         Unify tests that set gl_cv_func_frexpl_no_libm.
12231         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12232         gl_FUNC_FREXPL_NO_LIBM.
12233         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12234         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12235
12236 2010-07-12  Bruno Haible  <bruno@clisp.org>
12237
12238         Unify tests that set gl_cv_func_frexp_no_libm.
12239         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12240         gl_FUNC_FREXP_NO_LIBM.
12241         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12242         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12243
12244 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12245
12246         memcoll: clarify sizes versus lengths, document better, and tweak perf
12247         * lib/memcoll.c (strcoll_loop, memcoll0):
12248         Improve quality of descriptive comments.  Name variables
12249         consistently as to whether they are lengths (which do not include
12250         terminating null) versus sizes (which do).
12251         * lib/xmemcoll.c (xmemcoll0): Likewise.
12252         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12253         returned when s1size == 0; this is easier to compile and saves
12254         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12255
12256 2010-07-12  Bruno Haible  <bruno@clisp.org>
12257
12258         Tests for module '_Exit'.
12259         * modules/_Exit-tests: New file.
12260         * tests/test-_Exit.sh: New file.
12261         * tests/test-_Exit.c: New file.
12262
12263         New module '_Exit'.
12264         * lib/stdlib.in.h (__attribute__): New macro.
12265         (_Exit): New declaration.
12266         * lib/_Exit.c: New file.
12267         * m4/_Exit.m4: New file.
12268         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12269         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12270         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12271         * modules/_Exit: New file.
12272         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12273         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12274
12275 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12276
12277         strtod: make it more-accurate typically, and don't require libm
12278         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12279         Include limits.h.  Don't include string.h.
12280         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12281         (locale_isspace): New function, so that no casts are needed to
12282         check whether *s is a space.
12283         (ldexp): Provide an unused dummy if not available.
12284         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12285         (strtod): Use them.  This implementation prefers to use the
12286         underlying strtod if available, falling back on our own code
12287         only to fix known bugs.  This is more likely to produce an
12288         accurate result.  Also, it avoids the use of libm functions.
12289         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12290         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12291         was absent, but it caused a test failure with coreutils.
12292         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12293         with libm.
12294         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12295         * modules/strtod-tests (Makefile.am): Likewise.
12296
12297 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12298             Bruno Haible  <bruno@clisp.org>
12299
12300         unistr/u8-strchr: Optimize ASCII argument case.
12301         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12302
12303 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12304
12305         (x)memcoll: minor tweaks
12306         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12307         is after the type that it qualifies.
12308         (memcoll0): Likewise.
12309         * lib/memcoll.h (memcoll0): Likewise.
12310         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12311         * lib/xmemcoll.h (xmemcoll0): Likewise.
12312         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12313         differs from memcoll in that the NUL byte is part of the argument.
12314         Omit the abort-checks, as performance is a real issue here.  Plus,
12315         the checks were wrong anyway (an off-by-one error).  Omit local
12316         variable 'diff', as it's a bit clearer that way.
12317         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12318         no longer needed.
12319
12320 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12321
12322         (x)memcoll: speedup when input is known to be NUL delimited
12323         * lib/memcoll.c: Include stdlib.
12324         (memcoll0): New function.
12325         (strcoll_loop): New function, refactored for use in both memcoll
12326         and memcoll0.
12327         * lib/memcoll.h (memcoll0): Add prototype.
12328         * lib/xmemcoll.c (xmemcoll0): New function.
12329         (collate_error): New function, refactored for use in both xmemcoll
12330         and xmemcoll0.
12331         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12332         * m4/memcoll.m4: add inline invocation.
12333
12334 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12335
12336         * build-aux/bootstrap: Remove any local translations
12337         from the translation project synchronization directory,
12338         so that local only translations are not distributed.
12339
12340 2010-07-04  Bruno Haible  <bruno@clisp.org>
12341
12342         fsusage: Clarify which code applies to which platforms.
12343         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12344         platform.
12345         * lib/fsusage.c (get_fs_usage): Likewise.
12346
12347 2010-07-04  Bruno Haible  <bruno@clisp.org>
12348
12349         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12350         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12351         Reported by Martin Lambers <marlam@marlam.de>.
12352
12353 2010-07-04  Jim Meyering  <meyering@redhat.com>
12354
12355         hash: once again explicitly disallow insertion of NULL
12356         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12357         inserting a NULL pointer cannot work with these functions.
12358         Add a comment with details.
12359         This reverts part of the 2010-07-01 commit, 5bef1a35
12360         "hash: extend module to deal with non-pointer keys".
12361
12362 2010-07-01  Bruno Haible  <bruno@clisp.org>
12363
12364         stdbool: Update doc.
12365         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12366         Info from Christian Weisgerber <naddy@mips.inka.de>.
12367
12368 2010-07-01  Jim Meyering  <meyering@redhat.com>
12369
12370         hash: extend module to deal with non-pointer keys
12371         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12372         but that allows insertion of non-pointer entries.
12373         Do not disallow an ENTRY value of NULL.
12374         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12375         * lib/hash.h (hash_insert0): Declare.
12376
12377 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12378
12379         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12380         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12381         not present (i.e. with autoconf 2.59 and when using gettextize, not
12382         gnulib), require AC_GNU_SOURCE instead.
12383
12384 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12385
12386         idpriv-drop: Fix tests.
12387         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12388         not to the test-idpriv-droptemp program.
12389
12390 2010-06-29  Bruno Haible  <bruno@clisp.org>
12391
12392         string: Fix syntax error with g++ 2.96.
12393         * lib/string.in.h (__pure__): Remove definition.
12394         (_GL_ATTRIBUTE_PURE): New macro.
12395         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12396         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12397         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12398
12399 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12400
12401         unitypes: Fix bug introduced on 2010-05-18.
12402         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12403
12404 2010-06-22  Eric Blake  <eblake@redhat.com>
12405
12406         memmem: slight optimization
12407         * lib/str-two-way.h (critical_factorization): Update comments.
12408         Reduce work during factorization phase.
12409         Reported by Carlos Bueno <carlos@bueno.org>.
12410
12411 2010-06-21  Bruno Haible  <bruno@clisp.org>
12412
12413         Fix HAVE_CALLOC_POSIX misnomer.
12414         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12415         !HAVE_CALLOC_POSIX.
12416         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12417         HAVE_CALLOC_POSIX.
12418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12419         instead of HAVE_CALLOC_POSIX.
12420         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12421         HAVE_CALLOC_POSIX.
12422
12423         Use modern idiom for calloc() replacement.
12424         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12425         AC_FUNC_CALLOC.
12426         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12427         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12428         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12429         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12430         (gl_REPLACE_CALLOC): New macro.
12431
12432 2010-06-21  Bruno Haible  <bruno@clisp.org>
12433
12434         Fix HAVE_REALLOC_POSIX misnomer.
12435         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12436         !HAVE_REALLOC_POSIX.
12437         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12438         HAVE_REALLOC_POSIX.
12439         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12440         instead of HAVE_REALLOC_POSIX.
12441         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12442         HAVE_REALLOC_POSIX.
12443
12444         Use modern idiom for realloc() replacement.
12445         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12446         AC_FUNC_REALLOC.
12447         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12448         Autoconf's AC_FUNC_REALLOC.
12449         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12450         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12451         (gl_REPLACE_REALLOC): New macro.
12452         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12453
12454 2010-06-21  Bruno Haible  <bruno@clisp.org>
12455
12456         Fix HAVE_MALLOC_POSIX misnomer.
12457         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12458         !HAVE_MALLOC_POSIX.
12459         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12460         HAVE_MALLOC_POSIX.
12461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12462         instead of HAVE_MALLOC_POSIX.
12463         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12464         HAVE_MALLOC_POSIX.
12465
12466         Use modern idiom for malloc() replacement.
12467         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12468         AC_FUNC_MALLOC.
12469         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12470         Autoconf's AC_FUNC_MALLOC.
12471         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12472         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12473         (gl_REPLACE_MALLOC): New macro.
12474         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12475
12476 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12477
12478         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12479         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12480         This macro takes 3 arguments, not 4.
12481
12482 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12483
12484         ipv6: fix detection under mingw
12485         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12486         in6_addr.
12487
12488 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12489
12490         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12491         that strtod() works when cross-compiling to a glibc version known
12492         to work.
12493
12494 2010-06-15  Bruno Haible  <bruno@clisp.org>
12495
12496         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12497
12498 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12499
12500         select: Correct timeout.
12501         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12502
12503 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12504
12505         git-version-gen: init shell var to avoid env var influence
12506         * build-aux/git-version-gen (v): Init shell var to empty.
12507
12508 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12509
12510         priv-set: Don't assume that priv.h exists merely because getppriv does.
12511         See Jan Andersen's bug report about AIX 5L in
12512         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12513         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12514         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12515         * lib/priv-set.h: Likewise.
12516         * tests/test-priv-set.c: Likewise.
12517
12518 2010-06-13  Bruno Haible  <bruno@clisp.org>
12519
12520         relocatable: Make it easier to test whether to install wrappers.
12521         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12522         RELOCATABLE_VIA_WRAPPER.
12523
12524 2010-06-13  Bruno Haible  <bruno@clisp.org>
12525
12526         gnulib-tool: Display specified modules and dependencies differently.
12527         * gnulib-tool (func_show_module_list): New function.
12528         (func_import, func_create_testdir): Invoke it.
12529         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12530
12531 2010-06-13  Bruno Haible  <bruno@clisp.org>
12532
12533         gnulib-tool: Align code of func_import and func_create_testdir.
12534         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12535         specified_modules.
12536
12537 2010-06-12  Jim Meyering  <meyering@redhat.com>
12538
12539         test-inttostr: avoid spurious failure on Solaris 9
12540         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12541         to accept "%ju".  Reported by Bruno Haible.
12542
12543 2010-06-11  Jim Meyering  <meyering@redhat.com>
12544
12545         test-sys_socket: mark variables as used more readably
12546         * tests/test-sys_socket.c (main): Mark otherwise unused variables
12547         as "used" explicitly via (void) statement casts.  This is more
12548         readable than using them in an artificial return expression.
12549         Suggestion from Bruno Haible.
12550
12551 2010-06-11  Bruno Haible  <bruno@clisp.org>
12552
12553         Avoid some more warnings from "gcc -Wwrite-strings".
12554         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
12555         to 'const char *'.
12556         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
12557         * tests/test-c-strcasestr.c (main): Likewise.
12558         * tests/test-mbscasestr1.c (main): Likewise.
12559         * tests/test-mbscasestr2.c (main): Likewise.
12560         * tests/test-memmem.c (main): Likewise.
12561         * tests/test-strstr.c (main): Likewise.
12562         * tests/test-strcasestr.c (main): Likewise.
12563
12564 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12565
12566         init.sh: change framework_failure_ to fail with status 99, not 1
12567         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
12568         automake's parallel-tests rule that this is an unexpected failure,
12569         even if the test is listed in XFAIL_TESTS.
12570
12571 2010-06-11  Jim Meyering  <meyering@redhat.com>
12572
12573         test-inttostr: avoid warnings about 4-6KB literal strings
12574         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
12575         Include "macros.h", for its definition of ASSERT.
12576         (CK): s/assert/ASSERT/
12577         * modules/inttostr-tests (Files): Add macros.h.
12578
12579         init.sh: don't use $ME_ or skip_ before they are defined
12580         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
12581         their first uses.  Also hoist their companions: warn_, fail_,
12582         framework_failure_, $stderr_fileno.  Prompted by a patch from
12583         Stefano Lattarini.
12584
12585         test-sys_socket: avoid set-but-not-used warnings from gcc
12586         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
12587         avoid warning about set-but-not-used variables.
12588
12589         test-xvasprintf: avoid 'const' discard warnings
12590         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
12591         "const" when assigning from literal strings.
12592         (test_xasprintf): Add "void" in function argument list to placate
12593         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
12594
12595         tests: avoid compilation warnings in argmatch and exclude tests...
12596         in packages that define ARGMATCH_DIE_DECL, like coreutils.
12597         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
12598         Since it always exits, declare with the "noreturn" attribute.
12599         * tests/test-argmatch.c: Likewise.
12600
12601         tests: avoid 'const' discard warnings in mbsstr tests
12602         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
12603         * tests/test-mbsstr2.c (main): Likewise.
12604
12605         test-verify: avoid warning from gcc's -Wmissing-declarations
12606         * tests/test-verify.c (function): Declare to be static.
12607
12608         test-inttostr.c: include <string.h> for use of strcmp
12609         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
12610
12611         test-linkat: avoid failed assertion on "other" architectures
12612         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
12613         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
12614         sparc: https://bugs.launchpad.net/bugs/591968
12615
12616 2010-06-11  Jim Meyering  <meyering@redhat.com>
12617
12618         printf.m4: avoid autoconf's "Expanded Before Required" warning
12619         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
12620         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
12621         autoconf warning.
12622
12623 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
12624
12625         Replacement header templates are now named with ".in", not "_".
12626         * doc/gnulib-intro.texi: Correct.
12627
12628 2010-06-10  Jim Meyering  <meyering@redhat.com>
12629
12630         inttostr-tests: depend on snprintf, not snprintf-posix
12631         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
12632         snprintf-posix, to avoid this aclocal failure:
12633           missing file gnulib-tests/vasnprintf.c
12634           configure.ac:45: error: expected source file, required through \
12635           AC_LIBSOURCES, not found
12636
12637 2010-06-10  Jim Meyering  <meyering@redhat.com>
12638
12639         inttostr: add a new function, inttostr, and tests
12640         The namesake function was not available.  The existence of the
12641         template file, inttostr.c makes its addition nontrivial.
12642         * lib/anytostr.c: Rename from inttostr.c.
12643         (anytostr): Rename from inttostr.
12644         * lib/inttostr.c: New file.
12645         * modules/inttostr (Files): Add anytostr.c.
12646         (Makefile.am): Set lib_SOURCES instead of ...
12647         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
12648         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
12649         * lib/offtostr.c: Likewise.
12650         * lib/uinttostr.c: Likewise.
12651         * lib/umaxtostr.c: Likewise.
12652         * modules/inttostr-tests: New file.
12653         * tests/test-inttostr.c: New file.  Test these functions.
12654
12655 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
12656             Bruno Haible  <bruno@clisp.org>
12657
12658         Add "Extending Gnulib" chapter to manual.
12659         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
12660         chapter.
12661         (Extending Gnulib): New chapter.
12662         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
12663         chapter.
12664
12665 2010-06-09  Bruno Haible  <bruno@clisp.org>
12666
12667         Avoid relocwrapper link errors due to gnulib replacement functions.
12668         * lib/areadlink.c: Use the system's malloc, realloc functions.
12669         (areadlink): Set errno to ENOMEM explicitly.
12670         * modules/areadlink (Depends-on): Remove malloc-posix.
12671         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12672
12673 2010-06-09  Bruno Haible  <bruno@clisp.org>
12674
12675         Avoid relocwrapper link errors due to gnulib replacement functions.
12676         * lib/canonicalize-lgpl.c: Use the system's malloc function.
12677         * lib/malloca.c: Likewise.
12678         * lib/relocatable.c: Likewise.
12679         * lib/progreloc.c: Use the system's malloc, sprintf functions.
12680         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
12681         * lib/setenv.c: Use the system's malloc, realloc functions.
12682         * lib/strerror.c: Use the system's sprintf function.
12683         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12684
12685 2010-06-04  Bruno Haible  <bruno@clisp.org>
12686
12687         Prefer documented low-level autoconf macro names.
12688         * m4/lib-link.m4: Use m4_translit instead of translit.
12689         * m4/environ.m4: Likewise.
12690         * m4/mathfunc.m4: Likewise.
12691         * m4/onceonly.m4: Likewise.
12692         * m4/stdint.m4: Likewise.
12693         Suggested by Eric Blake.
12694
12695 2010-06-04  Martin Lambers  <marlam@marlam.de>
12696             Bruno Haible  <bruno@clisp.org>
12697
12698         havelib: Allow library names with '+' characters.
12699         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
12700         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
12701
12702 2010-06-09  Bruno Haible  <bruno@clisp.org>
12703
12704         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
12705         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
12706         realloc failed.
12707
12708 2010-06-08  Peter Simons  <simons@cryp.to>
12709
12710         maint.mk: make the news-check rule more configurable
12711         * top/maint.mk (news-check-lines-spec): New variable.
12712         (news-check): Use "sed -n 1,10p" in place of "head".
12713
12714 2010-06-07  Jim Meyering  <meyering@redhat.com>
12715
12716         do-release-commit-and-tag: fix typo in --help
12717         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
12718
12719         regex: avoid new dead-code warning with gcc-4.6.0
12720         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
12721         if-block containing a while-loop.  It's been unused for at least
12722         5 years.
12723
12724 2010-06-05  Bruno Haible  <bruno@clisp.org>
12725
12726         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
12727         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
12728
12729 2010-06-04  Bruno Haible  <bruno@clisp.org>
12730
12731         Update to GNU gettext 0.18.1.
12732         * modules/gettext (configure.ac): Require gettext infrastructure from
12733         version 0.18.1.
12734
12735 2010-06-03  Bruno Haible  <bruno@clisp.org>
12736
12737         Don't use AC_LIBOBJ with file names in subdirectories.
12738         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
12739         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
12740         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
12741         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
12742         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
12743         gl_LIBUNISTRING_LIBSOURCE.
12744         (Makefile.am): Augment lib_SOURCES here, conditionally.
12745         * NEWS: Drop requirement for Automake option 'subdir-objects'.
12746
12747 2010-06-03  Bruno Haible  <bruno@clisp.org>
12748
12749         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
12750         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
12751         expansion does not end with a newline.
12752         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
12753         unnecessary newline.
12754
12755 2010-06-03  Bruno Haible  <bruno@clisp.org>
12756
12757         Reduce dependencies.
12758         * tests/test-quotearg.h: New file, extracted from
12759         tests/test-quotearg.c.
12760         * tests/test-quotearg-simple.c: New file, extracted from
12761         tests/test-quotearg.c.
12762         * tests/test-quotearg.c: Don't include <ctype.h>.
12763         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
12764         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
12765         use_quote_double_quotes, use_quotearg_colon): Moved to
12766         tests/test-quotearg.h.
12767         (results_g, flag_results, custom_quotes, custom_results): Moved
12768         to tests/test-quotearg-simple.c.
12769         (main): Moved the part that does not depend on gettext to
12770         tests/test-quotearg-simple.c. Return 77 if the test cannot be
12771         performed.
12772         * modules/quotearg-simple: New file.
12773         * modules/quotearg-simple-tests: New file.
12774         * modules/quotearg (Depends-on): Add quotearg-simple.
12775         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
12776         (Files): Add tests/test-quotearg.h.
12777         Reported by Paolo Bonzini.
12778
12779 2010-06-03  Bruno Haible  <bruno@clisp.org>
12780
12781         Reduce dependencies.
12782         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
12783
12784 2010-06-03  Bruno Haible  <bruno@clisp.org>
12785
12786         time: Undefine more broken macros.
12787         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
12788         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
12789         Reported by Eric Blake.
12790
12791 2010-06-03  Bruno Haible  <bruno@clisp.org>
12792
12793         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
12794         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
12795         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
12796         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
12797         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
12798         Reported by Ludovic Courtès <ludo@gnu.org>.
12799
12800 2010-06-02  Eric Blake  <eblake@redhat.com>
12801
12802         time: work with mingw + pthreads-win32 library
12803         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
12804         if timespec is defined only in pthread.h.
12805         * modules/time (Makefile.am): Substitute it.
12806         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
12807         <pthread.h>, when needed.
12808         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
12809         from the library.
12810
12811 2010-05-31  Bruno Haible  <bruno@clisp.org>
12812
12813         Avoid expanding two macros in the wrong order.
12814         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12815         gl_LIBUNISTRING if it is defined.
12816         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12817         autoconf >= 2.64.
12818         Reported by Ludovic Courtès <ludo@gnu.org>.
12819
12820 2010-05-27  Jim Meyering  <meyering@redhat.com>
12821
12822         maint.mk: also prohibit "#undef" of always-defined symbols
12823         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12824         Allow more than one space before the symbol name.
12825         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12826         the regexp uses alternation.
12827
12828 2010-05-26  Eric Blake  <eblake@redhat.com>
12829
12830         maint.mk: avoid echo -e
12831         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12832         Convert all uses of echo -* to printf.
12833         Reported by Matthias Bolte.
12834
12835 2010-05-25  Bruno Haible  <bruno@clisp.org>
12836
12837         Update to GNU gettext 0.18, part 2.
12838         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12839         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12840
12841 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12842
12843         Add missing include in test-pwrite.c.
12844         * tests/test-pwrite.c: Include string.h, for strcmp.
12845
12846 2010-05-24  Bruno Haible  <bruno@clisp.org>
12847
12848         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12849
12850 2010-05-24  Bruno Haible  <bruno@clisp.org>
12851
12852         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12853         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12854         iconveh_error argument.
12855         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12856         U_STRCONV_TO_LOCALE.
12857         * lib/unistr/u16-strcoll.c: Likewise.
12858         * lib/unistr/u32-strcoll.c: Likewise.
12859         * modules/unistr/u8-strcoll (Depends-on): Add
12860         uniconv/u8-strconv-to-enc, localcharset. Remove
12861         uniconv/u8-strconv-to-locale.
12862         (configure.ac): Bump version number.
12863         * modules/unistr/u16-strcoll (Depends-on): Add
12864         uniconv/u16-strconv-to-enc, localcharset. Remove
12865         uniconv/u16-strconv-to-locale.
12866         (configure.ac): Bump version number.
12867         * modules/unistr/u32-strcoll (Depends-on): Add
12868         uniconv/u32-strconv-to-enc, localcharset. Remove
12869         uniconv/u32-strconv-to-locale.
12870         (configure.ac): Bump version number.
12871
12872 2010-05-24  Bruno Haible  <bruno@clisp.org>
12873
12874         Avoid a test failure on NetBSD 5.0.
12875         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12876         an iconv() bug.
12877
12878 2010-05-24  Bruno Haible  <bruno@clisp.org>
12879
12880         Adjust #include directive style.
12881         * modules/regex (Includes): Recommend to write <regex.h>.
12882
12883 2010-05-24  Bruno Haible  <bruno@clisp.org>
12884
12885         regex: Don't require alloca.
12886         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12887         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12888         only inside if (0).
12889
12890 2010-05-23  Jim Meyering  <meyering@redhat.com>
12891
12892         test-renameat.c: include <sys/stat.h>
12893         * tests/test-renameat.c: Include <sys/stat.h>; required for
12894         definition of S_IS* macros.
12895
12896 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12897
12898         Update maintainer documentation for 'relocatable-prog' module.
12899         * doc/relocatable-maint.texi: Update.
12900         Comments by Bruno Haible.
12901
12902 2010-05-23  Bruno Haible  <bruno@clisp.org>
12903
12904         git-merge-changelog: Enable --split-merged-entry by default.
12905         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12906         (usage): Don't mention this option any more.
12907         Reported by Ralf Wildenhues.
12908
12909 2010-05-23  Jim Meyering  <meyering@redhat.com>
12910
12911         test-pwrite: do not leave behind a test file named "out"
12912         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12913         The trivial-looking use of init.sh is really necessary.
12914         It ensures that the temporary file, "out", is created in
12915         a temporary directory, and removed upon termination.
12916         * tests/test-pwrite.sh: Re-add file.
12917         * modules/pwrite-tests: Reference it.
12918
12919 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12920
12921         Fix output redirection buglet in init.sh.
12922         * tests/init.sh: Fix redirection of stderr.
12923
12924 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12925
12926         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12927
12928 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12929
12930         * modules/valgrind-tests: New file.
12931         * m4/valgrind-tests.m4: New file.
12932         * doc/valgrind-tests.texi: New file.
12933         * doc/gnulib.texi (Running self-tests under valgrind): New
12934         section.
12935
12936 2010-05-19  Bruno Haible  <bruno@clisp.org>
12937
12938         Clean up dead code in recent commit.
12939         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12940         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12941         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12942         Suggested by Paolo Bonzini.
12943
12944 2010-05-19  Bruno Haible  <bruno@clisp.org>
12945
12946         Avoid valgrind error reports from libunistring.
12947         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12948         * modules/libunistring (Files): Add it.
12949         * modules/libunistring-optional (Files): Likewise.
12950
12951 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12952             Bruno Haible  <bruno@clisp.org>
12953
12954         New module 'libunistring-optional'.
12955         * modules/libunistring-optional: New file.
12956         * m4/libunistring-base.m4: New file.
12957         * m4/libunistring-optional.m4: New file.
12958         * lib/unicase.in.h: Renamed from lib/unicase.h.
12959         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12960         * lib/unictype.in.h: Renamed from lib/unictype.h.
12961         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12962         * lib/uniname.in.h: Renamed from lib/uniname.h.
12963         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12964         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12965         * lib/unistr.in.h: Renamed from lib/unistr.h.
12966         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12967         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12968         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12969         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12970         gl_LIBUNISTRING. If the library was found, determine the installed
12971         version and set LIBUNISTRING_VERSION.
12972         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12973         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12974         handle a configuration option --with-included-libunistring.
12975         * modules/libunistring (Files): Add m4/absolute-header.m4.
12976         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12977         Add m4/libunistring-base.m4.
12978         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12979         (Makefile.am): Build unicase.h from unicase.in.h.
12980         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12981         Add m4/libunistring-base.m4.
12982         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12983         (Makefile.am): Build uniconv.h from uniconv.in.h.
12984         * modules/unictype/base (Files): Use unictype.in.h instead of
12985         unictype.h. Add m4/libunistring-base.m4.
12986         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12987         (Makefile.am): Build unictype.h from unictype.in.h.
12988         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12989         Add m4/libunistring-base.m4.
12990         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12991         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12992         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12993         Add m4/libunistring-base.m4.
12994         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12995         (Makefile.am): Build uniname.h from uniname.in.h.
12996         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12997         Add m4/libunistring-base.m4.
12998         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12999         (Makefile.am): Build uninorm.h from uninorm.in.h.
13000         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13001         unistdio.h. Add m4/libunistring-base.m4.
13002         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13003         (Makefile.am): Build unistdio.h from unistdio.in.h.
13004         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13005         Add m4/libunistring-base.m4.
13006         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13007         (Makefile.am): Build unistr.h from unistr.in.h.
13008         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13009         Add m4/libunistring-base.m4.
13010         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13011         (Makefile.am): Build unitypes.h from unitypes.in.h.
13012         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13013         Add m4/libunistring-base.m4.
13014         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13015         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13016         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13017         uniwidth.h. Add m4/libunistring-base.m4.
13018         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13019         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13020         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13021         instead of augmenting lib_SOURCES.
13022         * modules/unicase/empty-suffix-context: Likewise.
13023         * modules/unicase/locale-language: Likewise.
13024         * modules/unicase/tolower: Likewise.
13025         * modules/unicase/totitle: Likewise.
13026         * modules/unicase/toupper: Likewise.
13027         * modules/unicase/u8-casecmp: Likewise.
13028         * modules/unicase/u8-casecoll: Likewise.
13029         * modules/unicase/u8-casefold: Likewise.
13030         * modules/unicase/u8-casexfrm: Likewise.
13031         * modules/unicase/u8-ct-casefold: Likewise.
13032         * modules/unicase/u8-ct-tolower: Likewise.
13033         * modules/unicase/u8-ct-totitle: Likewise.
13034         * modules/unicase/u8-ct-toupper: Likewise.
13035         * modules/unicase/u8-is-cased: Likewise.
13036         * modules/unicase/u8-is-casefolded: Likewise.
13037         * modules/unicase/u8-is-lowercase: Likewise.
13038         * modules/unicase/u8-is-titlecase: Likewise.
13039         * modules/unicase/u8-is-uppercase: Likewise.
13040         * modules/unicase/u8-prefix-context: Likewise.
13041         * modules/unicase/u8-suffix-context: Likewise.
13042         * modules/unicase/u8-tolower: Likewise.
13043         * modules/unicase/u8-totitle: Likewise.
13044         * modules/unicase/u8-toupper: Likewise.
13045         * modules/unicase/u16-casecmp: Likewise.
13046         * modules/unicase/u16-casecoll: Likewise.
13047         * modules/unicase/u16-casefold: Likewise.
13048         * modules/unicase/u16-casexfrm: Likewise.
13049         * modules/unicase/u16-ct-casefold: Likewise.
13050         * modules/unicase/u16-ct-tolower: Likewise.
13051         * modules/unicase/u16-ct-totitle: Likewise.
13052         * modules/unicase/u16-ct-toupper: Likewise.
13053         * modules/unicase/u16-is-cased: Likewise.
13054         * modules/unicase/u16-is-casefolded: Likewise.
13055         * modules/unicase/u16-is-lowercase: Likewise.
13056         * modules/unicase/u16-is-titlecase: Likewise.
13057         * modules/unicase/u16-is-uppercase: Likewise.
13058         * modules/unicase/u16-prefix-context: Likewise.
13059         * modules/unicase/u16-suffix-context: Likewise.
13060         * modules/unicase/u16-tolower: Likewise.
13061         * modules/unicase/u16-totitle: Likewise.
13062         * modules/unicase/u16-toupper: Likewise.
13063         * modules/unicase/u32-casecmp: Likewise.
13064         * modules/unicase/u32-casecoll: Likewise.
13065         * modules/unicase/u32-casefold: Likewise.
13066         * modules/unicase/u32-casexfrm: Likewise.
13067         * modules/unicase/u32-ct-casefold: Likewise.
13068         * modules/unicase/u32-ct-tolower: Likewise.
13069         * modules/unicase/u32-ct-totitle: Likewise.
13070         * modules/unicase/u32-ct-toupper: Likewise.
13071         * modules/unicase/u32-is-cased: Likewise.
13072         * modules/unicase/u32-is-casefolded: Likewise.
13073         * modules/unicase/u32-is-lowercase: Likewise.
13074         * modules/unicase/u32-is-titlecase: Likewise.
13075         * modules/unicase/u32-is-uppercase: Likewise.
13076         * modules/unicase/u32-prefix-context: Likewise.
13077         * modules/unicase/u32-suffix-context: Likewise.
13078         * modules/unicase/u32-tolower: Likewise.
13079         * modules/unicase/u32-totitle: Likewise.
13080         * modules/unicase/u32-toupper: Likewise.
13081         * modules/unicase/ulc-casecmp: Likewise.
13082         * modules/unicase/ulc-casecoll: Likewise.
13083         * modules/unicase/ulc-casexfrm: Likewise.
13084         * modules/uniconv/u8-conv-from-enc: Likewise.
13085         * modules/uniconv/u8-conv-to-enc: Likewise.
13086         * modules/uniconv/u8-strconv-from-enc: Likewise.
13087         * modules/uniconv/u8-strconv-from-locale: Likewise.
13088         * modules/uniconv/u8-strconv-to-enc: Likewise.
13089         * modules/uniconv/u8-strconv-to-locale: Likewise.
13090         * modules/uniconv/u16-conv-from-enc: Likewise.
13091         * modules/uniconv/u16-conv-to-enc: Likewise.
13092         * modules/uniconv/u16-strconv-from-enc: Likewise.
13093         * modules/uniconv/u16-strconv-from-locale: Likewise.
13094         * modules/uniconv/u16-strconv-to-enc: Likewise.
13095         * modules/uniconv/u16-strconv-to-locale: Likewise.
13096         * modules/uniconv/u32-conv-from-enc: Likewise.
13097         * modules/uniconv/u32-conv-to-enc: Likewise.
13098         * modules/uniconv/u32-strconv-from-enc: Likewise.
13099         * modules/uniconv/u32-strconv-from-locale: Likewise.
13100         * modules/uniconv/u32-strconv-to-enc: Likewise.
13101         * modules/uniconv/u32-strconv-to-locale: Likewise.
13102         * modules/unictype/bidicategory-byname: Likewise.
13103         * modules/unictype/bidicategory-name: Likewise.
13104         * modules/unictype/bidicategory-of: Likewise.
13105         * modules/unictype/bidicategory-test: Likewise.
13106         * modules/unictype/block-list: Likewise.
13107         * modules/unictype/block-test: Likewise.
13108         * modules/unictype/category-C: Likewise.
13109         * modules/unictype/category-Cc: Likewise.
13110         * modules/unictype/category-Cf: Likewise.
13111         * modules/unictype/category-Cn: Likewise.
13112         * modules/unictype/category-Co: Likewise.
13113         * modules/unictype/category-Cs: Likewise.
13114         * modules/unictype/category-L: Likewise.
13115         * modules/unictype/category-Ll: Likewise.
13116         * modules/unictype/category-Lm: Likewise.
13117         * modules/unictype/category-Lo: Likewise.
13118         * modules/unictype/category-Lt: Likewise.
13119         * modules/unictype/category-Lu: Likewise.
13120         * modules/unictype/category-M: Likewise.
13121         * modules/unictype/category-Mc: Likewise.
13122         * modules/unictype/category-Me: Likewise.
13123         * modules/unictype/category-Mn: Likewise.
13124         * modules/unictype/category-N: Likewise.
13125         * modules/unictype/category-Nd: Likewise.
13126         * modules/unictype/category-Nl: Likewise.
13127         * modules/unictype/category-No: Likewise.
13128         * modules/unictype/category-P: Likewise.
13129         * modules/unictype/category-Pc: Likewise.
13130         * modules/unictype/category-Pd: Likewise.
13131         * modules/unictype/category-Pe: Likewise.
13132         * modules/unictype/category-Pf: Likewise.
13133         * modules/unictype/category-Pi: Likewise.
13134         * modules/unictype/category-Po: Likewise.
13135         * modules/unictype/category-Ps: Likewise.
13136         * modules/unictype/category-S: Likewise.
13137         * modules/unictype/category-Sc: Likewise.
13138         * modules/unictype/category-Sk: Likewise.
13139         * modules/unictype/category-Sm: Likewise.
13140         * modules/unictype/category-So: Likewise.
13141         * modules/unictype/category-Z: Likewise.
13142         * modules/unictype/category-Zl: Likewise.
13143         * modules/unictype/category-Zp: Likewise.
13144         * modules/unictype/category-Zs: Likewise.
13145         * modules/unictype/category-and: Likewise.
13146         * modules/unictype/category-and-not: Likewise.
13147         * modules/unictype/category-byname: Likewise.
13148         * modules/unictype/category-name: Likewise.
13149         * modules/unictype/category-none: Likewise.
13150         * modules/unictype/category-of: Likewise.
13151         * modules/unictype/category-or: Likewise.
13152         * modules/unictype/category-test: Likewise.
13153         * modules/unictype/combining-class: Likewise.
13154         * modules/unictype/ctype-alnum: Likewise.
13155         * modules/unictype/ctype-alpha: Likewise.
13156         * modules/unictype/ctype-blank: Likewise.
13157         * modules/unictype/ctype-cntrl: Likewise.
13158         * modules/unictype/ctype-digit: Likewise.
13159         * modules/unictype/ctype-graph: Likewise.
13160         * modules/unictype/ctype-lower: Likewise.
13161         * modules/unictype/ctype-print: Likewise.
13162         * modules/unictype/ctype-punct: Likewise.
13163         * modules/unictype/ctype-space: Likewise.
13164         * modules/unictype/ctype-upper: Likewise.
13165         * modules/unictype/ctype-xdigit: Likewise.
13166         * modules/unictype/decimal-digit: Likewise.
13167         * modules/unictype/digit: Likewise.
13168         * modules/unictype/mirror: Likewise.
13169         * modules/unictype/numeric: Likewise.
13170         * modules/unictype/property-alphabetic: Likewise.
13171         * modules/unictype/property-ascii-hex-digit: Likewise.
13172         * modules/unictype/property-bidi-arabic-digit: Likewise.
13173         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13174         * modules/unictype/property-bidi-block-separator: Likewise.
13175         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13176         * modules/unictype/property-bidi-common-separator: Likewise.
13177         * modules/unictype/property-bidi-control: Likewise.
13178         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13179         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13180         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13181         * modules/unictype/property-bidi-european-digit: Likewise.
13182         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13183         * modules/unictype/property-bidi-left-to-right: Likewise.
13184         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13185         * modules/unictype/property-bidi-other-neutral: Likewise.
13186         * modules/unictype/property-bidi-pdf: Likewise.
13187         * modules/unictype/property-bidi-segment-separator: Likewise.
13188         * modules/unictype/property-bidi-whitespace: Likewise.
13189         * modules/unictype/property-byname: Likewise.
13190         * modules/unictype/property-combining: Likewise.
13191         * modules/unictype/property-composite: Likewise.
13192         * modules/unictype/property-currency-symbol: Likewise.
13193         * modules/unictype/property-dash: Likewise.
13194         * modules/unictype/property-decimal-digit: Likewise.
13195         * modules/unictype/property-default-ignorable-code-point: Likewise.
13196         * modules/unictype/property-deprecated: Likewise.
13197         * modules/unictype/property-diacritic: Likewise.
13198         * modules/unictype/property-extender: Likewise.
13199         * modules/unictype/property-format-control: Likewise.
13200         * modules/unictype/property-grapheme-base: Likewise.
13201         * modules/unictype/property-grapheme-extend: Likewise.
13202         * modules/unictype/property-grapheme-link: Likewise.
13203         * modules/unictype/property-hex-digit: Likewise.
13204         * modules/unictype/property-hyphen: Likewise.
13205         * modules/unictype/property-id-continue: Likewise.
13206         * modules/unictype/property-id-start: Likewise.
13207         * modules/unictype/property-ideographic: Likewise.
13208         * modules/unictype/property-ids-binary-operator: Likewise.
13209         * modules/unictype/property-ids-trinary-operator: Likewise.
13210         * modules/unictype/property-ignorable-control: Likewise.
13211         * modules/unictype/property-iso-control: Likewise.
13212         * modules/unictype/property-join-control: Likewise.
13213         * modules/unictype/property-left-of-pair: Likewise.
13214         * modules/unictype/property-line-separator: Likewise.
13215         * modules/unictype/property-logical-order-exception: Likewise.
13216         * modules/unictype/property-lowercase: Likewise.
13217         * modules/unictype/property-math: Likewise.
13218         * modules/unictype/property-non-break: Likewise.
13219         * modules/unictype/property-not-a-character: Likewise.
13220         * modules/unictype/property-numeric: Likewise.
13221         * modules/unictype/property-other-alphabetic: Likewise.
13222         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13223         * modules/unictype/property-other-grapheme-extend: Likewise.
13224         * modules/unictype/property-other-id-continue: Likewise.
13225         * modules/unictype/property-other-id-start: Likewise.
13226         * modules/unictype/property-other-lowercase: Likewise.
13227         * modules/unictype/property-other-math: Likewise.
13228         * modules/unictype/property-other-uppercase: Likewise.
13229         * modules/unictype/property-paired-punctuation: Likewise.
13230         * modules/unictype/property-paragraph-separator: Likewise.
13231         * modules/unictype/property-pattern-syntax: Likewise.
13232         * modules/unictype/property-pattern-white-space: Likewise.
13233         * modules/unictype/property-private-use: Likewise.
13234         * modules/unictype/property-punctuation: Likewise.
13235         * modules/unictype/property-quotation-mark: Likewise.
13236         * modules/unictype/property-radical: Likewise.
13237         * modules/unictype/property-sentence-terminal: Likewise.
13238         * modules/unictype/property-soft-dotted: Likewise.
13239         * modules/unictype/property-space: Likewise.
13240         * modules/unictype/property-terminal-punctuation: Likewise.
13241         * modules/unictype/property-test: Likewise.
13242         * modules/unictype/property-titlecase: Likewise.
13243         * modules/unictype/property-unassigned-code-value: Likewise.
13244         * modules/unictype/property-unified-ideograph: Likewise.
13245         * modules/unictype/property-uppercase: Likewise.
13246         * modules/unictype/property-variation-selector: Likewise.
13247         * modules/unictype/property-white-space: Likewise.
13248         * modules/unictype/property-xid-continue: Likewise.
13249         * modules/unictype/property-xid-start: Likewise.
13250         * modules/unictype/property-zero-width: Likewise.
13251         * modules/unictype/scripts: Likewise.
13252         * modules/unictype/syntax-c-ident: Likewise.
13253         * modules/unictype/syntax-c-whitespace: Likewise.
13254         * modules/unictype/syntax-java-ident: Likewise.
13255         * modules/unictype/syntax-java-whitespace: Likewise.
13256         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13257         * modules/unilbrk/u8-width-linebreaks: Likewise.
13258         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13259         * modules/unilbrk/u16-width-linebreaks: Likewise.
13260         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13261         * modules/unilbrk/u32-width-linebreaks: Likewise.
13262         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13263         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13264         * modules/uniname/uniname: Likewise.
13265         * modules/uninorm/canonical-decomposition: Likewise.
13266         * modules/uninorm/composition: Likewise.
13267         * modules/uninorm/decomposing-form: Likewise.
13268         * modules/uninorm/decomposition: Likewise.
13269         * modules/uninorm/filter: Likewise.
13270         * modules/uninorm/nfc: Likewise.
13271         * modules/uninorm/nfd: Likewise.
13272         * modules/uninorm/nfkc: Likewise.
13273         * modules/uninorm/nfkd: Likewise.
13274         * modules/uninorm/u8-normalize: Likewise.
13275         * modules/uninorm/u8-normcmp: Likewise.
13276         * modules/uninorm/u8-normcoll: Likewise.
13277         * modules/uninorm/u8-normxfrm: Likewise.
13278         * modules/uninorm/u16-normalize: Likewise.
13279         * modules/uninorm/u16-normcmp: Likewise.
13280         * modules/uninorm/u16-normcoll: Likewise.
13281         * modules/uninorm/u16-normxfrm: Likewise.
13282         * modules/uninorm/u32-normalize: Likewise.
13283         * modules/uninorm/u32-normcmp: Likewise.
13284         * modules/uninorm/u32-normcoll: Likewise.
13285         * modules/uninorm/u32-normxfrm: Likewise.
13286         * modules/unistdio/u8-asnprintf: Likewise.
13287         * modules/unistdio/u8-asprintf: Likewise.
13288         * modules/unistdio/u8-snprintf: Likewise.
13289         * modules/unistdio/u8-sprintf: Likewise.
13290         * modules/unistdio/u8-u8-asnprintf: Likewise.
13291         * modules/unistdio/u8-u8-asprintf: Likewise.
13292         * modules/unistdio/u8-u8-snprintf: Likewise.
13293         * modules/unistdio/u8-u8-sprintf: Likewise.
13294         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13295         * modules/unistdio/u8-u8-vasprintf: Likewise.
13296         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13297         * modules/unistdio/u8-u8-vsprintf: Likewise.
13298         * modules/unistdio/u8-vasnprintf: Likewise.
13299         * modules/unistdio/u8-vasprintf: Likewise.
13300         * modules/unistdio/u8-vsnprintf: Likewise.
13301         * modules/unistdio/u8-vsprintf: Likewise.
13302         * modules/unistdio/u16-asnprintf: Likewise.
13303         * modules/unistdio/u16-asprintf: Likewise.
13304         * modules/unistdio/u16-snprintf: Likewise.
13305         * modules/unistdio/u16-sprintf: Likewise.
13306         * modules/unistdio/u16-u16-asnprintf: Likewise.
13307         * modules/unistdio/u16-u16-asprintf: Likewise.
13308         * modules/unistdio/u16-u16-snprintf: Likewise.
13309         * modules/unistdio/u16-u16-sprintf: Likewise.
13310         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13311         * modules/unistdio/u16-u16-vasprintf: Likewise.
13312         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13313         * modules/unistdio/u16-u16-vsprintf: Likewise.
13314         * modules/unistdio/u16-vasnprintf: Likewise.
13315         * modules/unistdio/u16-vasprintf: Likewise.
13316         * modules/unistdio/u16-vsnprintf: Likewise.
13317         * modules/unistdio/u16-vsprintf: Likewise.
13318         * modules/unistdio/u32-asnprintf: Likewise.
13319         * modules/unistdio/u32-asprintf: Likewise.
13320         * modules/unistdio/u32-snprintf: Likewise.
13321         * modules/unistdio/u32-sprintf: Likewise.
13322         * modules/unistdio/u32-u32-asnprintf: Likewise.
13323         * modules/unistdio/u32-u32-asprintf: Likewise.
13324         * modules/unistdio/u32-u32-snprintf: Likewise.
13325         * modules/unistdio/u32-u32-sprintf: Likewise.
13326         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13327         * modules/unistdio/u32-u32-vasprintf: Likewise.
13328         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13329         * modules/unistdio/u32-u32-vsprintf: Likewise.
13330         * modules/unistdio/u32-vasnprintf: Likewise.
13331         * modules/unistdio/u32-vasprintf: Likewise.
13332         * modules/unistdio/u32-vsnprintf: Likewise.
13333         * modules/unistdio/u32-vsprintf: Likewise.
13334         * modules/unistdio/ulc-asnprintf: Likewise.
13335         * modules/unistdio/ulc-asprintf: Likewise.
13336         * modules/unistdio/ulc-fprintf: Likewise.
13337         * modules/unistdio/ulc-snprintf: Likewise.
13338         * modules/unistdio/ulc-sprintf: Likewise.
13339         * modules/unistdio/ulc-vasnprintf: Likewise.
13340         * modules/unistdio/ulc-vasprintf: Likewise.
13341         * modules/unistdio/ulc-vfprintf: Likewise.
13342         * modules/unistdio/ulc-vsnprintf: Likewise.
13343         * modules/unistdio/ulc-vsprintf: Likewise.
13344         * modules/unistr/u8-check: Likewise.
13345         * modules/unistr/u8-chr: Likewise.
13346         * modules/unistr/u8-cmp: Likewise.
13347         * modules/unistr/u8-cmp2: Likewise.
13348         * modules/unistr/u8-cpy: Likewise.
13349         * modules/unistr/u8-cpy-alloc: Likewise.
13350         * modules/unistr/u8-endswith: Likewise.
13351         * modules/unistr/u8-mblen: Likewise.
13352         * modules/unistr/u8-mbsnlen: Likewise.
13353         * modules/unistr/u8-mbtouc: Likewise.
13354         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13355         * modules/unistr/u8-mbtoucr: Likewise.
13356         * modules/unistr/u8-move: Likewise.
13357         * modules/unistr/u8-next: Likewise.
13358         * modules/unistr/u8-prev: Likewise.
13359         * modules/unistr/u8-set: Likewise.
13360         * modules/unistr/u8-startswith: Likewise.
13361         * modules/unistr/u8-stpcpy: Likewise.
13362         * modules/unistr/u8-stpncpy: Likewise.
13363         * modules/unistr/u8-strcat: Likewise.
13364         * modules/unistr/u8-strchr: Likewise.
13365         * modules/unistr/u8-strcmp: Likewise.
13366         * modules/unistr/u8-strcoll: Likewise.
13367         * modules/unistr/u8-strcpy: Likewise.
13368         * modules/unistr/u8-strcspn: Likewise.
13369         * modules/unistr/u8-strdup: Likewise.
13370         * modules/unistr/u8-strlen: Likewise.
13371         * modules/unistr/u8-strmblen: Likewise.
13372         * modules/unistr/u8-strmbtouc: Likewise.
13373         * modules/unistr/u8-strncat: Likewise.
13374         * modules/unistr/u8-strncmp: Likewise.
13375         * modules/unistr/u8-strncpy: Likewise.
13376         * modules/unistr/u8-strnlen: Likewise.
13377         * modules/unistr/u8-strpbrk: Likewise.
13378         * modules/unistr/u8-strrchr: Likewise.
13379         * modules/unistr/u8-strspn: Likewise.
13380         * modules/unistr/u8-strstr: Likewise.
13381         * modules/unistr/u8-strtok: Likewise.
13382         * modules/unistr/u8-to-u16: Likewise.
13383         * modules/unistr/u8-to-u32: Likewise.
13384         * modules/unistr/u8-uctomb: Likewise.
13385         * modules/unistr/u16-check: Likewise.
13386         * modules/unistr/u16-chr: Likewise.
13387         * modules/unistr/u16-cmp: Likewise.
13388         * modules/unistr/u16-cmp2: Likewise.
13389         * modules/unistr/u16-cpy: Likewise.
13390         * modules/unistr/u16-cpy-alloc: Likewise.
13391         * modules/unistr/u16-endswith: Likewise.
13392         * modules/unistr/u16-mblen: Likewise.
13393         * modules/unistr/u16-mbsnlen: Likewise.
13394         * modules/unistr/u16-mbtouc: Likewise.
13395         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13396         * modules/unistr/u16-mbtoucr: Likewise.
13397         * modules/unistr/u16-move: Likewise.
13398         * modules/unistr/u16-next: Likewise.
13399         * modules/unistr/u16-prev: Likewise.
13400         * modules/unistr/u16-set: Likewise.
13401         * modules/unistr/u16-startswith: Likewise.
13402         * modules/unistr/u16-stpcpy: Likewise.
13403         * modules/unistr/u16-stpncpy: Likewise.
13404         * modules/unistr/u16-strcat: Likewise.
13405         * modules/unistr/u16-strchr: Likewise.
13406         * modules/unistr/u16-strcmp: Likewise.
13407         * modules/unistr/u16-strcoll: Likewise.
13408         * modules/unistr/u16-strcpy: Likewise.
13409         * modules/unistr/u16-strcspn: Likewise.
13410         * modules/unistr/u16-strdup: Likewise.
13411         * modules/unistr/u16-strlen: Likewise.
13412         * modules/unistr/u16-strmblen: Likewise.
13413         * modules/unistr/u16-strmbtouc: Likewise.
13414         * modules/unistr/u16-strncat: Likewise.
13415         * modules/unistr/u16-strncmp: Likewise.
13416         * modules/unistr/u16-strncpy: Likewise.
13417         * modules/unistr/u16-strnlen: Likewise.
13418         * modules/unistr/u16-strpbrk: Likewise.
13419         * modules/unistr/u16-strrchr: Likewise.
13420         * modules/unistr/u16-strspn: Likewise.
13421         * modules/unistr/u16-strstr: Likewise.
13422         * modules/unistr/u16-strtok: Likewise.
13423         * modules/unistr/u16-to-u32: Likewise.
13424         * modules/unistr/u16-to-u8: Likewise.
13425         * modules/unistr/u16-uctomb: Likewise.
13426         * modules/unistr/u32-check: Likewise.
13427         * modules/unistr/u32-chr: Likewise.
13428         * modules/unistr/u32-cmp: Likewise.
13429         * modules/unistr/u32-cmp2: Likewise.
13430         * modules/unistr/u32-cpy: Likewise.
13431         * modules/unistr/u32-cpy-alloc: Likewise.
13432         * modules/unistr/u32-endswith: Likewise.
13433         * modules/unistr/u32-mblen: Likewise.
13434         * modules/unistr/u32-mbsnlen: Likewise.
13435         * modules/unistr/u32-mbtouc: Likewise.
13436         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13437         * modules/unistr/u32-mbtoucr: Likewise.
13438         * modules/unistr/u32-move: Likewise.
13439         * modules/unistr/u32-next: Likewise.
13440         * modules/unistr/u32-prev: Likewise.
13441         * modules/unistr/u32-set: Likewise.
13442         * modules/unistr/u32-startswith: Likewise.
13443         * modules/unistr/u32-stpcpy: Likewise.
13444         * modules/unistr/u32-stpncpy: Likewise.
13445         * modules/unistr/u32-strcat: Likewise.
13446         * modules/unistr/u32-strchr: Likewise.
13447         * modules/unistr/u32-strcmp: Likewise.
13448         * modules/unistr/u32-strcoll: Likewise.
13449         * modules/unistr/u32-strcpy: Likewise.
13450         * modules/unistr/u32-strcspn: Likewise.
13451         * modules/unistr/u32-strdup: Likewise.
13452         * modules/unistr/u32-strlen: Likewise.
13453         * modules/unistr/u32-strmblen: Likewise.
13454         * modules/unistr/u32-strmbtouc: Likewise.
13455         * modules/unistr/u32-strncat: Likewise.
13456         * modules/unistr/u32-strncmp: Likewise.
13457         * modules/unistr/u32-strncpy: Likewise.
13458         * modules/unistr/u32-strnlen: Likewise.
13459         * modules/unistr/u32-strpbrk: Likewise.
13460         * modules/unistr/u32-strrchr: Likewise.
13461         * modules/unistr/u32-strspn: Likewise.
13462         * modules/unistr/u32-strstr: Likewise.
13463         * modules/unistr/u32-strtok: Likewise.
13464         * modules/unistr/u32-to-u16: Likewise.
13465         * modules/unistr/u32-to-u8: Likewise.
13466         * modules/unistr/u32-uctomb: Likewise.
13467         * modules/uniwbrk/u8-wordbreaks: Likewise.
13468         * modules/uniwbrk/u16-wordbreaks: Likewise.
13469         * modules/uniwbrk/u32-wordbreaks: Likewise.
13470         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13471         * modules/uniwbrk/wordbreak-property: Likewise.
13472         * modules/uniwidth/u8-strwidth: Likewise.
13473         * modules/uniwidth/u8-width: Likewise.
13474         * modules/uniwidth/u16-strwidth: Likewise.
13475         * modules/uniwidth/u16-width: Likewise.
13476         * modules/uniwidth/u32-strwidth: Likewise.
13477         * modules/uniwidth/u32-width: Likewise.
13478         * modules/uniwidth/width: Likewise.
13479         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13480         with $(LIBUNISTRING).
13481         * modules/unicase/ignorable-tests: Likewise.
13482         * modules/unicase/locale-language-tests: Likewise.
13483         * modules/unicase/tolower-tests: Likewise.
13484         * modules/unicase/totitle-tests: Likewise.
13485         * modules/unicase/toupper-tests: Likewise.
13486         * modules/unicase/u8-casecmp-tests: Likewise.
13487         * modules/unicase/u8-casecoll-tests: Likewise.
13488         * modules/unicase/u8-casefold-tests: Likewise.
13489         * modules/unicase/u8-is-cased-tests: Likewise.
13490         * modules/unicase/u8-is-casefolded-tests: Likewise.
13491         * modules/unicase/u8-is-lowercase-tests: Likewise.
13492         * modules/unicase/u8-is-titlecase-tests: Likewise.
13493         * modules/unicase/u8-is-uppercase-tests: Likewise.
13494         * modules/unicase/u8-tolower-tests: Likewise.
13495         * modules/unicase/u8-totitle-tests: Likewise.
13496         * modules/unicase/u8-toupper-tests: Likewise.
13497         * modules/unicase/u16-casecmp-tests: Likewise.
13498         * modules/unicase/u16-casecoll-tests: Likewise.
13499         * modules/unicase/u16-casefold-tests: Likewise.
13500         * modules/unicase/u16-is-cased-tests: Likewise.
13501         * modules/unicase/u16-is-casefolded-tests: Likewise.
13502         * modules/unicase/u16-is-lowercase-tests: Likewise.
13503         * modules/unicase/u16-is-titlecase-tests: Likewise.
13504         * modules/unicase/u16-is-uppercase-tests: Likewise.
13505         * modules/unicase/u16-tolower-tests: Likewise.
13506         * modules/unicase/u16-totitle-tests: Likewise.
13507         * modules/unicase/u16-toupper-tests: Likewise.
13508         * modules/unicase/u32-casecmp-tests: Likewise.
13509         * modules/unicase/u32-casecoll-tests: Likewise.
13510         * modules/unicase/u32-casefold-tests: Likewise.
13511         * modules/unicase/u32-is-cased-tests: Likewise.
13512         * modules/unicase/u32-is-casefolded-tests: Likewise.
13513         * modules/unicase/u32-is-lowercase-tests: Likewise.
13514         * modules/unicase/u32-is-titlecase-tests: Likewise.
13515         * modules/unicase/u32-is-uppercase-tests: Likewise.
13516         * modules/unicase/u32-tolower-tests: Likewise.
13517         * modules/unicase/u32-totitle-tests: Likewise.
13518         * modules/unicase/u32-toupper-tests: Likewise.
13519         * modules/unicase/ulc-casecmp-tests: Likewise.
13520         * modules/unicase/ulc-casecoll-tests: Likewise.
13521         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13522         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13523         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13524         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13525         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13526         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13527         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13528         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13529         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13530         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13531         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13532         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13533         * modules/unictype/bidicategory-byname-tests: Likewise.
13534         * modules/unictype/bidicategory-name-tests: Likewise.
13535         * modules/unictype/bidicategory-of-tests: Likewise.
13536         * modules/unictype/bidicategory-test-tests: Likewise.
13537         * modules/unictype/block-list-tests: Likewise.
13538         * modules/unictype/block-of-tests: Likewise.
13539         * modules/unictype/block-test-tests: Likewise.
13540         * modules/unictype/category-C-tests: Likewise.
13541         * modules/unictype/category-Cc-tests: Likewise.
13542         * modules/unictype/category-Cf-tests: Likewise.
13543         * modules/unictype/category-Cn-tests: Likewise.
13544         * modules/unictype/category-Co-tests: Likewise.
13545         * modules/unictype/category-Cs-tests: Likewise.
13546         * modules/unictype/category-L-tests: Likewise.
13547         * modules/unictype/category-Ll-tests: Likewise.
13548         * modules/unictype/category-Lm-tests: Likewise.
13549         * modules/unictype/category-Lo-tests: Likewise.
13550         * modules/unictype/category-Lt-tests: Likewise.
13551         * modules/unictype/category-Lu-tests: Likewise.
13552         * modules/unictype/category-M-tests: Likewise.
13553         * modules/unictype/category-Mc-tests: Likewise.
13554         * modules/unictype/category-Me-tests: Likewise.
13555         * modules/unictype/category-Mn-tests: Likewise.
13556         * modules/unictype/category-N-tests: Likewise.
13557         * modules/unictype/category-Nd-tests: Likewise.
13558         * modules/unictype/category-Nl-tests: Likewise.
13559         * modules/unictype/category-No-tests: Likewise.
13560         * modules/unictype/category-P-tests: Likewise.
13561         * modules/unictype/category-Pc-tests: Likewise.
13562         * modules/unictype/category-Pd-tests: Likewise.
13563         * modules/unictype/category-Pe-tests: Likewise.
13564         * modules/unictype/category-Pf-tests: Likewise.
13565         * modules/unictype/category-Pi-tests: Likewise.
13566         * modules/unictype/category-Po-tests: Likewise.
13567         * modules/unictype/category-Ps-tests: Likewise.
13568         * modules/unictype/category-S-tests: Likewise.
13569         * modules/unictype/category-Sc-tests: Likewise.
13570         * modules/unictype/category-Sk-tests: Likewise.
13571         * modules/unictype/category-Sm-tests: Likewise.
13572         * modules/unictype/category-So-tests: Likewise.
13573         * modules/unictype/category-Z-tests: Likewise.
13574         * modules/unictype/category-Zl-tests: Likewise.
13575         * modules/unictype/category-Zp-tests: Likewise.
13576         * modules/unictype/category-Zs-tests: Likewise.
13577         * modules/unictype/category-and-not-tests: Likewise.
13578         * modules/unictype/category-and-tests: Likewise.
13579         * modules/unictype/category-byname-tests: Likewise.
13580         * modules/unictype/category-name-tests: Likewise.
13581         * modules/unictype/category-none-tests: Likewise.
13582         * modules/unictype/category-of-tests: Likewise.
13583         * modules/unictype/category-or-tests: Likewise.
13584         * modules/unictype/category-test-withtable-tests: Likewise.
13585         * modules/unictype/combining-class-tests: Likewise.
13586         * modules/unictype/ctype-alnum-tests: Likewise.
13587         * modules/unictype/ctype-alpha-tests: Likewise.
13588         * modules/unictype/ctype-blank-tests: Likewise.
13589         * modules/unictype/ctype-cntrl-tests: Likewise.
13590         * modules/unictype/ctype-digit-tests: Likewise.
13591         * modules/unictype/ctype-graph-tests: Likewise.
13592         * modules/unictype/ctype-lower-tests: Likewise.
13593         * modules/unictype/ctype-print-tests: Likewise.
13594         * modules/unictype/ctype-punct-tests: Likewise.
13595         * modules/unictype/ctype-space-tests: Likewise.
13596         * modules/unictype/ctype-upper-tests: Likewise.
13597         * modules/unictype/ctype-xdigit-tests: Likewise.
13598         * modules/unictype/decimal-digit-tests: Likewise.
13599         * modules/unictype/digit-tests: Likewise.
13600         * modules/unictype/mirror-tests: Likewise.
13601         * modules/unictype/numeric-tests: Likewise.
13602         * modules/unictype/property-alphabetic-tests: Likewise.
13603         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
13604         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
13605         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
13606         * modules/unictype/property-bidi-block-separator-tests: Likewise.
13607         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
13608         * modules/unictype/property-bidi-common-separator-tests: Likewise.
13609         * modules/unictype/property-bidi-control-tests: Likewise.
13610         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
13611         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
13612         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
13613         * modules/unictype/property-bidi-european-digit-tests: Likewise.
13614         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
13615         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
13616         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
13617         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
13618         * modules/unictype/property-bidi-pdf-tests: Likewise.
13619         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
13620         * modules/unictype/property-bidi-whitespace-tests: Likewise.
13621         * modules/unictype/property-byname-tests: Likewise.
13622         * modules/unictype/property-combining-tests: Likewise.
13623         * modules/unictype/property-composite-tests: Likewise.
13624         * modules/unictype/property-currency-symbol-tests: Likewise.
13625         * modules/unictype/property-dash-tests: Likewise.
13626         * modules/unictype/property-decimal-digit-tests: Likewise.
13627         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
13628         * modules/unictype/property-deprecated-tests: Likewise.
13629         * modules/unictype/property-diacritic-tests: Likewise.
13630         * modules/unictype/property-extender-tests: Likewise.
13631         * modules/unictype/property-format-control-tests: Likewise.
13632         * modules/unictype/property-grapheme-base-tests: Likewise.
13633         * modules/unictype/property-grapheme-extend-tests: Likewise.
13634         * modules/unictype/property-grapheme-link-tests: Likewise.
13635         * modules/unictype/property-hex-digit-tests: Likewise.
13636         * modules/unictype/property-hyphen-tests: Likewise.
13637         * modules/unictype/property-id-continue-tests: Likewise.
13638         * modules/unictype/property-id-start-tests: Likewise.
13639         * modules/unictype/property-ideographic-tests: Likewise.
13640         * modules/unictype/property-ids-binary-operator-tests: Likewise.
13641         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
13642         * modules/unictype/property-ignorable-control-tests: Likewise.
13643         * modules/unictype/property-iso-control-tests: Likewise.
13644         * modules/unictype/property-join-control-tests: Likewise.
13645         * modules/unictype/property-left-of-pair-tests: Likewise.
13646         * modules/unictype/property-line-separator-tests: Likewise.
13647         * modules/unictype/property-logical-order-exception-tests: Likewise.
13648         * modules/unictype/property-lowercase-tests: Likewise.
13649         * modules/unictype/property-math-tests: Likewise.
13650         * modules/unictype/property-non-break-tests: Likewise.
13651         * modules/unictype/property-not-a-character-tests: Likewise.
13652         * modules/unictype/property-numeric-tests: Likewise.
13653         * modules/unictype/property-other-alphabetic-tests: Likewise.
13654         * modules/unictype/property-other-default-ignorable-code-point-tests:
13655         Likewise.
13656         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
13657         * modules/unictype/property-other-id-continue-tests: Likewise.
13658         * modules/unictype/property-other-id-start-tests: Likewise.
13659         * modules/unictype/property-other-lowercase-tests: Likewise.
13660         * modules/unictype/property-other-math-tests: Likewise.
13661         * modules/unictype/property-other-uppercase-tests: Likewise.
13662         * modules/unictype/property-paired-punctuation-tests: Likewise.
13663         * modules/unictype/property-paragraph-separator-tests: Likewise.
13664         * modules/unictype/property-pattern-syntax-tests: Likewise.
13665         * modules/unictype/property-pattern-white-space-tests: Likewise.
13666         * modules/unictype/property-private-use-tests: Likewise.
13667         * modules/unictype/property-punctuation-tests: Likewise.
13668         * modules/unictype/property-quotation-mark-tests: Likewise.
13669         * modules/unictype/property-radical-tests: Likewise.
13670         * modules/unictype/property-sentence-terminal-tests: Likewise.
13671         * modules/unictype/property-soft-dotted-tests: Likewise.
13672         * modules/unictype/property-space-tests: Likewise.
13673         * modules/unictype/property-terminal-punctuation-tests: Likewise.
13674         * modules/unictype/property-test-tests: Likewise.
13675         * modules/unictype/property-titlecase-tests: Likewise.
13676         * modules/unictype/property-unassigned-code-value-tests: Likewise.
13677         * modules/unictype/property-unified-ideograph-tests: Likewise.
13678         * modules/unictype/property-uppercase-tests: Likewise.
13679         * modules/unictype/property-variation-selector-tests: Likewise.
13680         * modules/unictype/property-white-space-tests: Likewise.
13681         * modules/unictype/property-xid-continue-tests: Likewise.
13682         * modules/unictype/property-xid-start-tests: Likewise.
13683         * modules/unictype/property-zero-width-tests: Likewise.
13684         * modules/unictype/scripts-tests: Likewise.
13685         * modules/unictype/syntax-c-ident-tests: Likewise.
13686         * modules/unictype/syntax-c-whitespace-tests: Likewise.
13687         * modules/unictype/syntax-java-ident-tests: Likewise.
13688         * modules/unictype/syntax-java-whitespace-tests: Likewise.
13689         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
13690         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
13691         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
13692         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
13693         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
13694         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
13695         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
13696         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
13697         * modules/uniname/uniname-tests: Likewise.
13698         * modules/uninorm/canonical-decomposition-tests: Likewise.
13699         * modules/uninorm/compat-decomposition-tests: Likewise.
13700         * modules/uninorm/composition-tests: Likewise.
13701         * modules/uninorm/decomposing-form-tests: Likewise.
13702         * modules/uninorm/decomposition-tests: Likewise.
13703         * modules/uninorm/filter-tests: Likewise.
13704         * modules/uninorm/nfc-tests: Likewise.
13705         * modules/uninorm/nfd-tests: Likewise.
13706         * modules/uninorm/nfkc-tests: Likewise.
13707         * modules/uninorm/nfkd-tests: Likewise.
13708         * modules/uninorm/u8-normcmp-tests: Likewise.
13709         * modules/uninorm/u8-normcoll-tests: Likewise.
13710         * modules/uninorm/u16-normcmp-tests: Likewise.
13711         * modules/uninorm/u16-normcoll-tests: Likewise.
13712         * modules/uninorm/u32-normcmp-tests: Likewise.
13713         * modules/uninorm/u32-normcoll-tests: Likewise.
13714         * modules/unistdio/u8-asnprintf-tests: Likewise.
13715         * modules/unistdio/u8-vasnprintf-tests: Likewise.
13716         * modules/unistdio/u8-vasprintf-tests: Likewise.
13717         * modules/unistdio/u8-vsnprintf-tests: Likewise.
13718         * modules/unistdio/u8-vsprintf-tests: Likewise.
13719         * modules/unistdio/u16-asnprintf-tests: Likewise.
13720         * modules/unistdio/u16-vasnprintf-tests: Likewise.
13721         * modules/unistdio/u16-vasprintf-tests: Likewise.
13722         * modules/unistdio/u16-vsnprintf-tests: Likewise.
13723         * modules/unistdio/u16-vsprintf-tests: Likewise.
13724         * modules/unistdio/u32-asnprintf-tests: Likewise.
13725         * modules/unistdio/u32-vasnprintf-tests: Likewise.
13726         * modules/unistdio/u32-vasprintf-tests: Likewise.
13727         * modules/unistdio/u32-vsnprintf-tests: Likewise.
13728         * modules/unistdio/u32-vsprintf-tests: Likewise.
13729         * modules/unistdio/ulc-asnprintf-tests: Likewise.
13730         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
13731         * modules/unistdio/ulc-vasprintf-tests: Likewise.
13732         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
13733         * modules/unistdio/ulc-vsprintf-tests: Likewise.
13734         * modules/unistr/u8-check-tests: Likewise.
13735         * modules/unistr/u8-chr-tests: Likewise.
13736         * modules/unistr/u8-cmp-tests: Likewise.
13737         * modules/unistr/u8-cmp2-tests: Likewise.
13738         * modules/unistr/u8-cpy-alloc-tests: Likewise.
13739         * modules/unistr/u8-cpy-tests: Likewise.
13740         * modules/unistr/u8-mblen-tests: Likewise.
13741         * modules/unistr/u8-mbsnlen-tests: Likewise.
13742         * modules/unistr/u8-mbtouc-tests: Likewise.
13743         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
13744         * modules/unistr/u8-mbtoucr-tests: Likewise.
13745         * modules/unistr/u8-move-tests: Likewise.
13746         * modules/unistr/u8-next-tests: Likewise.
13747         * modules/unistr/u8-prev-tests: Likewise.
13748         * modules/unistr/u8-set-tests: Likewise.
13749         * modules/unistr/u8-stpcpy-tests: Likewise.
13750         * modules/unistr/u8-stpncpy-tests: Likewise.
13751         * modules/unistr/u8-strcat-tests: Likewise.
13752         * modules/unistr/u8-strcmp-tests: Likewise.
13753         * modules/unistr/u8-strcoll-tests: Likewise.
13754         * modules/unistr/u8-strcpy-tests: Likewise.
13755         * modules/unistr/u8-strdup-tests: Likewise.
13756         * modules/unistr/u8-strlen-tests: Likewise.
13757         * modules/unistr/u8-strmblen-tests: Likewise.
13758         * modules/unistr/u8-strmbtouc-tests: Likewise.
13759         * modules/unistr/u8-strncat-tests: Likewise.
13760         * modules/unistr/u8-strncmp-tests: Likewise.
13761         * modules/unistr/u8-strncpy-tests: Likewise.
13762         * modules/unistr/u8-strnlen-tests: Likewise.
13763         * modules/unistr/u8-to-u16-tests: Likewise.
13764         * modules/unistr/u8-to-u32-tests: Likewise.
13765         * modules/unistr/u8-uctomb-tests: Likewise.
13766         * modules/unistr/u16-check-tests: Likewise.
13767         * modules/unistr/u16-chr-tests: Likewise.
13768         * modules/unistr/u16-cmp-tests: Likewise.
13769         * modules/unistr/u16-cmp2-tests: Likewise.
13770         * modules/unistr/u16-cpy-alloc-tests: Likewise.
13771         * modules/unistr/u16-cpy-tests: Likewise.
13772         * modules/unistr/u16-mblen-tests: Likewise.
13773         * modules/unistr/u16-mbsnlen-tests: Likewise.
13774         * modules/unistr/u16-mbtouc-tests: Likewise.
13775         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
13776         * modules/unistr/u16-mbtoucr-tests: Likewise.
13777         * modules/unistr/u16-move-tests: Likewise.
13778         * modules/unistr/u16-next-tests: Likewise.
13779         * modules/unistr/u16-prev-tests: Likewise.
13780         * modules/unistr/u16-set-tests: Likewise.
13781         * modules/unistr/u16-stpcpy-tests: Likewise.
13782         * modules/unistr/u16-stpncpy-tests: Likewise.
13783         * modules/unistr/u16-strcat-tests: Likewise.
13784         * modules/unistr/u16-strcmp-tests: Likewise.
13785         * modules/unistr/u16-strcoll-tests: Likewise.
13786         * modules/unistr/u16-strcpy-tests: Likewise.
13787         * modules/unistr/u16-strdup-tests: Likewise.
13788         * modules/unistr/u16-strlen-tests: Likewise.
13789         * modules/unistr/u16-strmblen-tests: Likewise.
13790         * modules/unistr/u16-strmbtouc-tests: Likewise.
13791         * modules/unistr/u16-strncat-tests: Likewise.
13792         * modules/unistr/u16-strncmp-tests: Likewise.
13793         * modules/unistr/u16-strncpy-tests: Likewise.
13794         * modules/unistr/u16-strnlen-tests: Likewise.
13795         * modules/unistr/u16-to-u32-tests: Likewise.
13796         * modules/unistr/u16-to-u8-tests: Likewise.
13797         * modules/unistr/u16-uctomb-tests: Likewise.
13798         * modules/unistr/u32-check-tests: Likewise.
13799         * modules/unistr/u32-chr-tests: Likewise.
13800         * modules/unistr/u32-cmp-tests: Likewise.
13801         * modules/unistr/u32-cmp2-tests: Likewise.
13802         * modules/unistr/u32-cpy-alloc-tests: Likewise.
13803         * modules/unistr/u32-cpy-tests: Likewise.
13804         * modules/unistr/u32-mblen-tests: Likewise.
13805         * modules/unistr/u32-mbsnlen-tests: Likewise.
13806         * modules/unistr/u32-mbtouc-tests: Likewise.
13807         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
13808         * modules/unistr/u32-mbtoucr-tests: Likewise.
13809         * modules/unistr/u32-move-tests: Likewise.
13810         * modules/unistr/u32-next-tests: Likewise.
13811         * modules/unistr/u32-prev-tests: Likewise.
13812         * modules/unistr/u32-set-tests: Likewise.
13813         * modules/unistr/u32-stpcpy-tests: Likewise.
13814         * modules/unistr/u32-stpncpy-tests: Likewise.
13815         * modules/unistr/u32-strcat-tests: Likewise.
13816         * modules/unistr/u32-strcmp-tests: Likewise.
13817         * modules/unistr/u32-strcoll-tests: Likewise.
13818         * modules/unistr/u32-strcpy-tests: Likewise.
13819         * modules/unistr/u32-strdup-tests: Likewise.
13820         * modules/unistr/u32-strlen-tests: Likewise.
13821         * modules/unistr/u32-strmblen-tests: Likewise.
13822         * modules/unistr/u32-strmbtouc-tests: Likewise.
13823         * modules/unistr/u32-strncat-tests: Likewise.
13824         * modules/unistr/u32-strncmp-tests: Likewise.
13825         * modules/unistr/u32-strncpy-tests: Likewise.
13826         * modules/unistr/u32-strnlen-tests: Likewise.
13827         * modules/unistr/u32-to-u16-tests: Likewise.
13828         * modules/unistr/u32-to-u8-tests: Likewise.
13829         * modules/unistr/u32-uctomb-tests: Likewise.
13830         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13831         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13832         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13833         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13834         * modules/uniwidth/u8-strwidth-tests: Likewise.
13835         * modules/uniwidth/u8-width-tests: Likewise.
13836         * modules/uniwidth/u16-strwidth-tests: Likewise.
13837         * modules/uniwidth/u16-width-tests: Likewise.
13838         * modules/uniwidth/u32-strwidth-tests: Likewise.
13839         * modules/uniwidth/u32-width-tests: Likewise.
13840         * modules/uniwidth/width-tests: Likewise.
13841
13842 2010-05-18  Richard Jones  <rjones@redhat.com>
13843
13844         doc: users.txt: list hivex
13845         * users.txt: Add hivex.
13846
13847 2010-05-18  Richard Jones  <rjones@redhat.com>
13848
13849         doc: users.txt: list febootstrap
13850         * users.txt: Add febootstrap.
13851
13852 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13853
13854         bootstrap: fix an error when gnulib is not used as a git submodule
13855         * build-aux/bootstrap (gnulib_path): If its length is zero then
13856         assign "gnulib" to it.
13857         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13858
13859 2010-05-16  Bruno Haible  <bruno@clisp.org>
13860
13861         Avoid autoconf warnings about AM_ICONV.
13862         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13863         2.64.
13864
13865 2010-05-16  Bruno Haible  <bruno@clisp.org>
13866
13867         absolute-header: Make the macro usable in more situations.
13868         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13869         from gl_ABSOLUTE_HEADER.
13870         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13871
13872 2010-05-16  James Youngman  <jay@gnu.org>
13873
13874         doc: update users.txt
13875         * users.txt: Add CSSC.
13876
13877 2010-05-16  Jim Meyering  <meyering@redhat.com>
13878
13879         init.sh: fix an error in the previous change; add more comments
13880         * tests/init.sh: Compare exit code in loop against 9, not 2.
13881         Patch by Bruno Haible.
13882         Make the two tests more similar by adding an empty "then" clause.
13883         Add comments.
13884
13885         init.sh: avoid unnecessary shell re-exec
13886         * tests/init.sh: Improve the re-exec-required check to first test the
13887         current shell.  If it passes the test, do not search for a shell that
13888         does pass, and do not re-exec.  This test is particularly contorted to
13889         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13890         of $(...) evokes a syntax error and causes immediate shell exit with
13891         status 2.  Bruno Haible reported that the re-exec made it impossible
13892         to single-step through any init.sh-using script.
13893
13894 2010-05-16  Bruno Haible  <bruno@clisp.org>
13895
13896         Fix collision between gnulib's and libintl's printf replacements.
13897         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13898         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13899         (printf): When using GNU C, map the __printf__ function to rpl_printf
13900         via __asm__. When not using GNU C, define rpl_printf instead of
13901         __printf__.
13902         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13903         commit.
13904         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13905         commit.
13906         * m4/asm-underscore.m4: New file.
13907         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13908         * modules/stdio (Files): Add m4/asm-underscore.m4.
13909         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13910         Reported by Ben Pfaff.
13911
13912 2010-05-16  Bruno Haible  <bruno@clisp.org>
13913
13914         verify: Avoid skipping the test on openSUSE 11.0.
13915         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13916
13917 2010-05-13  Bruno Haible  <bruno@clisp.org>
13918
13919         Avoid useless warnings from G++.
13920         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13921         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13922         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13923
13924 2010-05-11  Jim Meyering  <meyering@redhat.com>
13925
13926         maint.mk: tweak preceding change
13927         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13928         regexps tighter by anchoring at EOL, and make the new group "shy"
13929         for slightly decreased overhead.
13930
13931 2010-05-11  Eric Blake  <eblake@redhat.com>
13932
13933         maint.mk: gnulib doesn't guarantee NSIG
13934         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13935
13936 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13937
13938         test-pwrite.c: Remove unused variable declaration.
13939         * tests/test-pwrite.c (main): Remove read_buf declaration.
13940
13941         Remove useless test-pwrite.sh file.
13942         * tests/test-pwrite.sh: Delete file.
13943         * modules/pwrite-tests: Remove references.
13944         Reported by Bruno Haible.
13945
13946 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13947
13948         init.sh: fix a typo
13949         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13950
13951 2010-05-10  Jim Meyering  <meyering@redhat.com>
13952
13953         maint.mk: avoid using a temporary file in the always-defined-macros check
13954         * top/maint.mk (.re-defmac): Remove rule.
13955         (gl_trap_): Remove definition.
13956         (sc_prohibit_always-defined_macros): Rewrite not to create and
13957         depend on a temporary file.  Instead, depend on GNU grep's ability
13958         to read a list of regular expressions from stdin when given "-f -".
13959
13960 2010-05-09  Bruno Haible  <bruno@clisp.org>
13961
13962         Update to GNU gettext 0.18, part 1.
13963         * m4/gettext.m4: Update to GNU gettext 0.18.
13964         * m4/intl.m4: Likewise.
13965         * m4/po.m4: Likewise.
13966         * modules/gettext (Files): Add m4/fcntl-o.m4.
13967         (configure.ac): Require gettext infrastructure from version 0.18.
13968
13969 2010-05-09  Jim Meyering  <meyering@redhat.com>
13970
13971         init.sh: enable MALLOC_PERTURB_
13972         * tests/init.sh: Enable glibc's malloc-perturbing option.
13973
13974         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13975         With my recent change in init.sh from the two-line form:
13976             -#   : ${srcdir=.}
13977             -#   . "$srcdir/init.sh"; path_prepend_ .
13978             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13979         I noticed that using the one-line form would cause this test
13980         to fail with a false-positive, or to stop working altogether,
13981         depending on whether help-version changed or all the tests did.
13982         * top/maint.mk (_hv_regex): Remove this definition.
13983         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13984         (_hv_regex_strong): Use a stronger regex to check for conformance.
13985         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13986         Give a separate diagnostic for lack of conforming use.
13987
13988         maint.mk: prohibit definition of symbols defined by gnulib
13989         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13990         definition of symbols defined by gnulib.
13991
13992 2010-05-09  Bruno Haible  <bruno@clisp.org>
13993
13994         acl: Avoid test failure on Cygwin-hosted mingw.
13995         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13996
13997 2010-05-09  Bruno Haible  <bruno@clisp.org>
13998
13999         error: Use system's fcntl function.
14000         * lib/error.c (fcntl): Undefine.
14001
14002 2010-05-09  Jim Meyering  <meyering@redhat.com>
14003
14004         verify: adjust formatting to be more consistent
14005         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14006         argument-list '('s, and after one comma.
14007
14008 2010-05-09  Bruno Haible  <bruno@clisp.org>
14009
14010         error: More reliable output on mingw.
14011         * lib/error.c: Include <windows.h>.
14012         (is_open): New function.
14013         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14014         defined.
14015
14016 2010-05-09  Bruno Haible  <bruno@clisp.org>
14017
14018         vasnprintf: Fix syntax errors in libintl build on mingw.
14019         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14020         pad_ourselves and prec_ourselves after use.
14021
14022 2010-05-08  Bruno Haible  <bruno@clisp.org>
14023
14024         * lib/config.charset: Update comments for Cygwin 1.7.
14025         * lib/localcharset.c: Likewise.
14026
14027 2010-05-07  Jim Meyering  <meyering@redhat.com>
14028
14029         init.sh: improve comments
14030         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14031         . "${srcdir=.}/init.sh"; path_prepend_ .
14032         Add a note about path_prepend_ and the alternative of using
14033         TESTS_ENVIRONMENT.
14034
14035 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14036
14037         exclude: Unescape hashed patterns in wildcard mode.
14038         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14039         to the hash list.
14040         * tests/test-exclude8.sh: New test case.
14041         * modules/exclude-tests: Add new test.
14042
14043 2010-05-05  Eric Blake  <eblake@redhat.com>
14044
14045         verify: automate tests
14046         * modules/verify-tests: New module.
14047         * tests/test-verify.sh: New file.
14048         * tests/test-verify.c: Guard each negative test with a unique id.
14049         Also avoid warning about unused left hand of comma expressions.
14050
14051 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14052
14053         Further improvements to verify.h, suggested by Eric Blake.
14054         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14055         the GL_* versions, to avoid collision with OpenGL.
14056         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14057         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14058         than testing merely whether it's defined.
14059
14060         Modify verify.h to pacify gcc -Wredundant_decls.
14061         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14062         These use the prefix "GL_" since they're likely to be useful elsewhere.
14063         We may need to break them out into a different .h file.
14064         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14065         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14066         of verify_function__.
14067
14068 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14069
14070         Tests for module pwrite.
14071         * modules/pwrite-tests: New file.
14072         * tests/test-pwrite.sh: New file.
14073         * tests/test-pwrite.c: New file.
14074
14075         New module pwrite.
14076         * lib/unistd.in.h (pwrite): New declaration.
14077         * lib/pwrite.c: New file, from glibc with modifications.
14078         * m4/pwrite.m4: New file.
14079         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14080         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14081         REPLACE_PWRITE.
14082         * modules/pwrite: New file.
14083         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14084         REPLACE_PWRITE.
14085         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14086         * doc/posix-functions/pwrite.texi: Mention the new module.
14087
14088 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14089
14090         pread: Update documentation.
14091         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14092
14093 2010-05-04  Eric Blake  <eblake@redhat.com>
14094
14095         docs: update cygwin progress
14096         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14097         this bug.
14098         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14099         Added in cygwin 1.7.2.
14100         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14101         Likewise.
14102         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14103         Likewise.
14104         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14105         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14106         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14107         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14108         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14109         Mention nproc module.
14110         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14111         bug in cygwin 1.7.5 addition.
14112         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14113         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14114         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14115         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14116         1.7.5.
14117         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14118         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14119         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14120         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14121         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14122         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14123         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14124         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14125         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14126         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14127         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14128         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14129         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14130         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14131         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14132         Likewise.
14133         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14134         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14135         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14136         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14137         Likewise.
14138         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14139         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14140         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14141         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14142         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14143         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14144         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14145         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14146         Likewise.
14147         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14148         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14149         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14150         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14151         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14152         Likewise.
14153         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14154         Likewise.
14155         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14156         Likewise.
14157         * doc/glibc-functions/xdrrec_endofrecord.texi
14158         (xdrrec_endofrecord): Likewise.
14159         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14160         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14161         Likewise.
14162         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14163         Likewise.
14164
14165 2010-05-04  Jim Meyering  <meyering@redhat.com>
14166
14167         gendocs.sh: make its "-s FILE" option more useful
14168         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14169         $PACKAGE to reflect the probably-different basename of "FILE".
14170
14171 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14172
14173         bootstrap: don't ignore download_po_files failure
14174         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14175         failure.
14176
14177 2010-05-03  Jim Meyering  <meyering@redhat.com>
14178
14179         maint.mk: allow to pass options to gendocs.sh
14180         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14181         (gendocs_options_): New overridable variable.
14182
14183         gnu-web-doc-update: don't ignore configure or build failure
14184         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14185
14186         announce-gen: backslash-escape '@'s in --help output
14187         * build-aux/announce-gen: Fix syntax errors.
14188
14189         maint.mk, announce-gen: allow project-specific announcement mail headers
14190         * top/maint.mk (translation_project_): Define default.
14191         (announcement_Cc_, announcement_mail_headers_): Likewise.
14192         (announcement): Invoke announce-gen with new --mail-headers option.
14193         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14194
14195         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14196         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14197         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14198         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14199         line in the "err2" output file when running "make check" in verbose
14200         mode (i.e., with set -x enabled).
14201
14202 2010-05-03  Bruno Haible  <bruno@clisp.org>
14203
14204         wctob: Fix for weird platforms.
14205         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14206         argument value.
14207
14208 2010-05-03  Jim Meyering  <meyering@redhat.com>
14209
14210         maint.mk: prohibit unwarranted use of <strings.h>
14211         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14212         strings.h in a file that does not also use strcasecmp, strncasecmp,
14213         ffs or ffsll.
14214
14215         maint.mk: remove obsolete comments
14216         * top/maint.mk: Remove stale, commented-out rules.
14217
14218 2010-05-02  Bruno Haible  <bruno@clisp.org>
14219
14220         wcwidth: Declare also when it's aliased.
14221         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14222         macro.
14223
14224 2010-05-02  Bruno Haible  <bruno@clisp.org>
14225
14226         Fix regression from 2010-04-25.
14227         * gnulib-tool (func_modules_transitive_closure): Check the status of
14228         all modules, not only of the tests that are of the form foo-tests where
14229         foo is a module.
14230
14231 2010-05-02  Bruno Haible  <bruno@clisp.org>
14232
14233         wctob: Work around nasty Cygwin 1.7.2 bug.
14234         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14235         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14236
14237 2010-05-01  Bruno Haible  <bruno@clisp.org>
14238
14239         fpurge: Sharper test.
14240         * tests/test-fpurge.c (main): Add one more ftell check.
14241         * modules/fpurge-tests (Depends-on): Add ftell.
14242         Suggested by Eric Blake.
14243
14244 2010-05-01  Bruno Haible  <bruno@clisp.org>
14245
14246         ftello: Another test.
14247         * tests/test-ftello3.c: New file.
14248         * modules/ftello-tests (Files): Add it.
14249         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14250         MOSTLYCLEANFILES.
14251
14252         ftell: Another test.
14253         * tests/test-ftell3.c: New file.
14254         * modules/ftell-tests (Files): Add it.
14255         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14256         MOSTLYCLEANFILES.
14257
14258 2010-05-01  Bruno Haible  <bruno@clisp.org>
14259
14260         ftell, ftello: Work around Solaris bug.
14261         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14262         * lib/ftello.c: Include stdio-impl.h.
14263         (ftello): On Solaris, when _IOWRT is set, compute the result without
14264         looking at _IOREAD.
14265         * modules/ftello (Files): Add lib/stdio-impl.h.
14266         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14267         * doc/posix-functions/ftello.texi: Likewise.
14268         Reported by Eric Blake.
14269
14270 2010-05-01  Bruno Haible  <bruno@clisp.org>
14271
14272         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14273         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14274         the _IOWRT flag is also set.
14275
14276 2010-05-01  Bruno Haible  <bruno@clisp.org>
14277
14278         Fix doc about a HP-UX stdio bug.
14279         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14280         * doc/posix-functions/ftello.texi: Likewise.
14281
14282 2010-05-01  Bruno Haible  <bruno@clisp.org>
14283
14284         lseek test: Fix failure on Solaris.
14285         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14286         output.
14287
14288 2010-04-30  Jim Meyering  <meyering@redhat.com>
14289
14290         bootstrap: don't ignore failure to generate po*/Makevars
14291         * build-aux/bootstrap (with_gettext): Don't ignore failure
14292         to create po/Makevars or runtime-po/Makevars.
14293
14294 2010-04-29  Eric Blake  <eblake@redhat.com>
14295
14296         headers: relax license to LGPLv2+
14297         * modules/fcntl-h (License): Relax license.
14298         * modules/getopt-posix (License): Likewise.
14299         * modules/locale (License): Likewise.
14300         * modules/math (License): Likewise.
14301         * modules/pty (License): Likewise.
14302         * modules/sched (License): Likewise.
14303         * modules/search (License): Likewise.
14304         * modules/spawn (License): Likewise.
14305         * modules/stdarg (License): Likewise.
14306         * modules/sysexits (License): Likewise.
14307
14308 2010-04-29  Jim Meyering  <meyering@redhat.com>
14309
14310         inttypes: relax license to LGPLv2+
14311         * modules/inttypes (License): Relax license.
14312
14313 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14314
14315         * top/maint.mk (indent): Run twice to produce idempotent results.
14316
14317 2010-04-28  Bruno Haible  <bruno@clisp.org>
14318
14319         getdate: Generate getdate.c in the source directory.
14320         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14321         MOSTLYCLEANFILES.
14322         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14323
14324 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14325
14326         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14327         is not declared as a const *; avoid warnings in that case.
14328
14329 2010-04-28  Eric Blake  <eblake@redhat.com>
14330
14331         canonicalize-lgpl: avoid compiler warning
14332         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14333         declaration' / 'extraneous semicolon' warning with some compilers.
14334         Reported by Andreas Gruenbacher.
14335
14336 2010-04-28  Jim Meyering  <meyering@redhat.com>
14337
14338         init.sh: ensure a more reliable exit status when exiting via trap
14339         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14340         Inspired by patches from Dmitry V. Levin.
14341         Also trap on signal 3 (SIGQUIT).
14342
14343 2010-04-27  Bruno Haible  <bruno@clisp.org>
14344
14345         Update doc about utimes().
14346         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14347         'utimens' module.
14348         Reported by Andreas Gruenbacher <agruen@suse.de>.
14349
14350 2010-04-27  Eric Blake  <eblake@redhat.com>
14351
14352         full-read, full-write: relax license
14353         * modules/full-read (License): Drop to LGPLv2+.
14354         * modules/full-write (License): Likewise.
14355         * modules/safe-read (License): Likewise.
14356         * modules/safe-write (License): Likewise.
14357
14358         pthread: mention library for linking
14359         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14360
14361 2010-04-27  Jim Meyering  <meyering@redhat.com>
14362
14363         maint.mk: fix a bug introduced in last change
14364         * top/maint.mk (gl_assured_headers_): Now that all names are on
14365         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14366         is not anchored to end of word, it should be adequate.
14367
14368         maint.mk: avoid side-effect in latest syntax-check
14369         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14370         to run commands via $(shell...), and hence to incur cost only when
14371         the new rule is actually run.
14372
14373         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14374         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14375         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14376         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14377         (gl_assured_headers_, az_, AZ_): Define.
14378         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14379
14380 2010-04-26  Jim Meyering  <jim@meyering.net>
14381             Bruno Haible  <bruno@clisp.org>
14382
14383         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14384         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14385         Prompted by an exchange with Gilles Espinasse.
14386
14387 2010-04-26  Jim Meyering  <meyering@redhat.com>
14388
14389         git-version-gen: aesthetic tweak
14390         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14391         so that the command remains on a single line.
14392
14393 2010-04-26  Eric Blake  <eblake@redhat.com>
14394
14395         git-version-gen: allow use on EBCDIC hosts
14396         * build-aux/git-version-gen (dirty): Use literal rather than tying
14397         ourselves to ascii.
14398         Reported by Steve Goetze.
14399
14400 2010-04-25  Bruno Haible  <bruno@clisp.org>
14401
14402         netdb: Add support for GNULIB_POSIXCHECK.
14403         * lib/netdb.in.h: Include warn-on-use.h.
14404         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14405         functions are used when GNULIB_POSIXCHECK is defined and the
14406         getaddrinfo module is not in use.
14407         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14408         freeaddrinfo, gai_strerror, getnameinfo are declared.
14409         * modules/netdb (Depends-on): Add warn-on-use.
14410         (Makefile.am): Include warn-on-use.h in netdb.h.
14411
14412 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14413
14414         build: avoid "make check" failure without .git/ directory
14415         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14416         there is no .git/ directory.
14417
14418 2010-04-25  Bruno Haible  <bruno@clisp.org>
14419
14420         ptsname: Fix misuse of ttyname_r.
14421         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14422         of errno.
14423
14424 2010-04-25  Bruno Haible  <bruno@clisp.org>
14425
14426         ttyname_r: Make it work on Solaris 10.
14427         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14428         if the system function has the POSIX declaration. Test whether the
14429         function fails if the buffer is less than 128 bytes large.
14430         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14431         system's ttyname_r function. Provide a reasonably large buffer.
14432         * modules/ttyname_r (Depends-on): Add extensions.
14433         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14434
14435 2010-04-25  Bruno Haible  <bruno@clisp.org>
14436
14437         Use the 'extensions' module for some more functions on Solaris.
14438         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14439         module.
14440         * doc/posix-functions/ctime_r.texi: Likewise.
14441         * doc/posix-functions/getgrgid_r.texi: Likewise.
14442         * doc/posix-functions/getgrnam_r.texi: Likewise.
14443         * doc/posix-functions/getpwnam_r.texi: Likewise.
14444         * doc/posix-functions/getpwuid_r.texi: Likewise.
14445         * doc/posix-functions/readdir_r.texi: Likewise.
14446         * doc/posix-functions/sigwait.texi: Likewise.
14447         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14448         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14449
14450 2010-04-25  Bruno Haible  <bruno@clisp.org>
14451
14452         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14453         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14454         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14455         * lib/ttyname_r.c: Include <limits.h>.
14456         (ttyname_r): Define using the system's ttyname_r function, if it exists
14457         and not on Solaris.
14458         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14459         set.
14460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14461         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14462         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14463         Reported by Simon Josefsson.
14464
14465 2010-04-25  Bruno Haible  <bruno@clisp.org>
14466
14467         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14468         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14469         * doc/posix-functions/ctime_r.texi: Likewise.
14470         * doc/posix-functions/getgrgid_r.texi: Likewise.
14471         * doc/posix-functions/getgrnam_r.texi: Likewise.
14472         * doc/posix-functions/getlogin_r.texi: Likewise.
14473         * doc/posix-functions/getpwnam_r.texi: Likewise.
14474         * doc/posix-functions/getpwuid_r.texi: Likewise.
14475         * doc/posix-functions/readdir_r.texi: Likewise.
14476         * doc/posix-functions/sigwait.texi: Likewise.
14477         * doc/posix-functions/ttyname_r.texi: Likewise.
14478         Reported by Simon Josefsson.
14479
14480 2010-04-25  Bruno Haible  <bruno@clisp.org>
14481
14482         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14483         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14484         also to --create-testdir.
14485         (func_acceptable): Don't consider the status of *-tests modules here.
14486         (func_modules_transitive_closure): Consider it here, before including a
14487         test module.
14488         (func_import, func_create_testdir): Set inc_all_direct_tests,
14489         inc_all_indirect_tests.
14490         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14491         --create-testdir and --create-megatestdir.
14492
14493 2010-04-25  Bruno Haible  <bruno@clisp.org>
14494
14495         gnulib-tool: Add --without-*-tests options.
14496         * gnulib-tool (func_usage): Document the --without-*-tests options.
14497         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14498         excl_unportable_tests): New variables.
14499         Fail if they are specified with --import or --update.
14500         (func_acceptable): Respect the excl_*_tests variables.
14501         (func_import): Set the excl_*_tests variables to empty.
14502
14503 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14504             Bruno Haible  <bruno@clisp.org>
14505
14506         Work around a MacOS X 10.4 bug with openpty.
14507         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14508         * tests/test-openpty.c (main): Close the master side explicitly.
14509
14510 2010-04-25  Bruno Haible  <bruno@clisp.org>
14511
14512         strnlen: Fix a C++ test error on MacOS X and Solaris.
14513         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14514         the function is not declared.
14515         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14516         Simon Josefsson.
14517
14518 2010-04-24  Bruno Haible  <bruno@clisp.org>
14519
14520         Avoid a gcc warning.
14521         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14522         of correct type for %08lx directive.
14523         Reported by Eric Blake.
14524
14525 2010-04-24  Bruno Haible  <bruno@clisp.org>
14526
14527         vasnprintf: Correct errno value in case of out-of-memory.
14528         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14529         or sprintf. Use the errno value from SNPRINTF or sprintf.
14530         Reported by Ian Beckwith <ianb@erislabs.net>.
14531
14532 2010-04-24  Bruno Haible  <bruno@clisp.org>
14533
14534         ansi-c++-opt: Find correct compiler when cross-compiling.
14535         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14536         AC_CHECK_PROGS.
14537         Reported by Simon Josefsson.
14538
14539 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14540
14541         vc-list-files: Add support for subversion
14542         * build-aux/vc-list-files: Use "svn list" to generate the list of
14543         files controlled by subversion.
14544
14545 2010-04-23  Jim Meyering  <meyering@redhat.com>
14546
14547         vc-list-files tests: convert to use init.sh
14548         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
14549         path_prepend_.
14550         Use Exit, not exit.
14551         Use skip_ rather than open coding it.
14552         Remove trap set-up and compare definitions.
14553         * tests/test-vc-list-files-git.sh: Likewise.
14554         * modules/vc-list-files-tests (Files): Add tests/init.sh.
14555
14556 2010-04-22  Simon Josefsson  <simon@josefsson.org>
14557
14558         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
14559         backup files.
14560
14561 2010-04-21  Simon Josefsson  <simon@josefsson.org>
14562
14563         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
14564
14565 2010-04-20  Eric Blake  <eblake@redhat.com>
14566
14567         tests: be robust to ignored SIGPIPE
14568         * tests/test-select-in.sh: Consume all output.
14569         * tests/test-lseek.sh: Check correct exit status, while avoiding
14570         EPIPE.
14571
14572 2010-04-20  Simon Josefsson  <simon@josefsson.org>
14573             Bruno Haible  <bruno@clisp.org>
14574
14575         visibility: Don't use -fvisibility if it leads to a warning.
14576         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
14577         yes, don't pretend that visibility works if it leads to a warning.
14578         Reported by Mike Gran <spk121@yahoo.com>.
14579
14580 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
14581
14582         * build-aux/bootstrap: Use "git -h" for testing for supported options
14583         instead of "git --help".  The short-form option only shows a summary,
14584         and doesn't layout the full man page.  Grep for the full option name
14585         in the summary, too.
14586
14587 2010-04-19  Bruno Haible  <bruno@clisp.org>
14588
14589         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
14590         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
14591         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
14592         mention of RELOCATABLE_STRIP.
14593         Reported by Sylvain Beucler <beuc@beuc.net>.
14594
14595 2010-04-19  Bruno Haible  <bruno@clisp.org>
14596
14597         * lib/diffseq.h: Fix typo in comment.
14598         Reported by Eric Blake.
14599
14600 2010-04-19  Bruno Haible  <bruno@clisp.org>
14601
14602         ioctl: Move autoconf macro to a .m4 file.
14603         * m4/ioctl.m4: New file, extracted from modules/ioctl.
14604         * modules/ioctl (Files): Add it.
14605         (configure.ac): Simply invoke gl_FUNC_IOCTL.
14606         Reported by Ian Beckwith <ianb@erislabs.net>.
14607
14608 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
14609             Bruno Haible  <bruno@clisp.org>
14610
14611         diffseq: Accommodate use-case with abstract arrays.
14612         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
14613         is not defined.
14614         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
14615         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
14616
14617 2010-04-18  Bruno Haible  <bruno@clisp.org>
14618
14619         * doc/posix-headers/stdbool.texi: More precise wording.
14620
14621 2010-04-17  Jim Meyering  <meyering@redhat.com>
14622
14623         maint.mk: use gnu-style indentation in an embedded perl script
14624         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
14625         Rename variable: s/two/last_two_bytes/
14626
14627 2010-04-16  Eric Blake  <eblake@redhat.com>
14628
14629         test-stdbool: skip test that fails with Solaris CC
14630         * tests/test-stdbool.c (f): Skip test that causes compilation
14631         error under buggy C++ compiler.
14632         * lib/stdbool.in.h: Document the limitation.
14633         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
14634
14635         setenv: allow compilation with C++
14636         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
14637         register keyword.
14638
14639         stdint: allow test to pass with C++
14640         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
14641
14642         getopt: allow compilation with C++
14643         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
14644         struct.
14645         * lib/getopt.c (_getopt_internal_r): Use correct type.
14646         Reported by Dagobert Michelson, via Joel E. Denny.
14647
14648 2010-04-16  Bruno Haible  <bruno@clisp.org>
14649
14650         Override netdb.h always.
14651         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
14652         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
14653         Reported by Ludovic Courtès <ludo@gnu.org>.
14654
14655 2010-04-15  Bruno Haible  <bruno@clisp.org>
14656
14657         openpty: Fix mistake from 2010-03-21.
14658         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
14659         Reported by Simon Josefsson.
14660
14661 2010-04-15  Eric Blake  <eblake@redhat.com>
14662
14663         test-forkpty: fix expected signature
14664         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
14665         Reported by Simon Josefsson.
14666
14667 2010-04-15  Jim Meyering  <meyering@redhat.com>
14668
14669         maint.mk: texinfo_suffix_re_: correct the default regexp
14670         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
14671
14672         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
14673         make it configurable via texinfo_suffix_re_.
14674
14675 2010-04-14  Eric Blake  <eblake@redhat.com>
14676
14677         strtok_r: relax license to LGPLv2+
14678         * modules/strtok_r (License): Relax license.
14679         Reported by Matthias Bolte.
14680
14681 2010-04-14  Simon Josefsson  <simon@josefsson.org>
14682
14683         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
14684         version 1.4.4 by default instead of requiring the libgcrypt
14685         version used during build.  This makes it possible to use the
14686         application with older but still binary compatible libgcrypt
14687         versions.
14688
14689 2010-04-13  Eric Blake  <eblake@redhat.com>
14690
14691         getopt-gnu: match recent glibc fixes and posix ruling
14692         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
14693         '+' handling, when requesting extensions.
14694         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
14695         'W;' handling.
14696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
14697         * doc/posix-functions/getopt.texi (getopt): Document this.
14698         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14699         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14700         Likewise.
14701
14702         getopt: merge bug fixes from glibc
14703         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
14704         diagnostics.  Honor '+:' correctly.  Reject ';'.
14705
14706         getopt-posix: detect MacOS bug
14707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
14708         optind when missing a required argument.
14709         * doc/posix-functions/getopt.texi (getopt): Document the bug.
14710         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14711         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14712         Likewise.
14713
14714         getopt-posix: avoid spurious failure on Solaris
14715         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
14716         an indicator that setting optind=1 is sufficient for reset.
14717
14718         getopt-posix: avoid spurious failure on FreeBSD
14719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
14720         in POSIX mode, since the m4 test uses it.
14721
14722         gnulib-tool: silence warning on BSD sh
14723         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
14724
14725 2010-04-13  Jim Meyering  <meyering@redhat.com>
14726
14727         doc: users.txt: GNU patch now uses gnulib
14728         * users.txt: Add patch.
14729
14730 2010-04-12  Jim Meyering  <meyering@redhat.com>
14731
14732         maint.mk: generate more concise timing data for syntax-check rules
14733         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
14734         " done" from each line that reports a syntax-check test duration.
14735
14736 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
14737
14738         git-version-gen: use "git update-index..." rather than "git status"
14739         * build-aux/git-version-gen: Use git update-index --refresh, not
14740         "git status".  With some versions of git, "git status" would fail
14741         to update the index and result in an unwarranted "-dirty" suffix.
14742
14743 2010-04-11  Jim Meyering  <meyering@redhat.com>
14744
14745         openat: correct formatting (no semantic change)
14746         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
14747         Suggested by Bruno Haible.
14748
14749 2010-04-11  Bruno Haible  <bruno@clisp.org>
14750
14751         Stricter declaration checking in testdirs.
14752         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14753         If for_tests is true, augment AM_CPPFLAGS to define
14754         GNULIB_STRICT_CHECKING.
14755         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
14756         GNULIB_STRICT_CHECKING is defined, verify that the function is
14757         declared.
14758
14759 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
14760             Bruno Haible  <bruno@clisp.org>
14761
14762         libunistring: Improve configure output.
14763         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
14764         Don't say "consider installing GNU libunistring" when checking again
14765         with libiconv.
14766
14767 2010-04-11  Bruno Haible  <bruno@clisp.org>
14768
14769         libunistring: Correct value of $LTLIBUNISTRING.
14770         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
14771         correct the value of $LTLIBUNISTRING.
14772
14773 2010-04-11  Bruno Haible  <bruno@clisp.org>
14774
14775         havelib: Add static libraries to LIBS in the right order.
14776         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
14777         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
14778
14779 2010-04-11  Bruno Haible  <bruno@clisp.org>
14780
14781         libunistring: Detect libunistring also when it depends on libiconv.
14782         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
14783         the second AC_LIB_HAVE_LINKFLAGS invocation.
14784
14785 2010-04-11  James Youngman  <jay@gnu.org>
14786
14787         close-stream: declare local scalars to be "const"
14788         * lib/close-stream.c (close_stream): Make boolean variables const
14789         to document the fact that we set but do not change them.
14790
14791 2010-04-11  Bruno Haible  <bruno@clisp.org>
14792
14793         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
14794
14795 2010-04-11  Jim Meyering  <meyering@redhat.com>
14796
14797         maint.mk: don't include dist-check.mk
14798         * top/maint.mk: Remove bogus include directive.
14799
14800         maint.mk: improve empty-line-at-EOF check
14801         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
14802         solution, rather than tail+Perl-based one.  The latter would read
14803         a few kilobytes from the end of each file, and did not handle empty
14804         files properly.
14805
14806         maint.mk: print the elapsed time for each syntax-check rule
14807         * top/maint.mk (sc_m_rules_): Save start time in a file.
14808         (sc_z_rules_): New rules: remove temp file and print elapsed time.
14809         (local-check): Interpose the .z rules
14810
14811 2010-04-11  Jim Meyering  <meyering@redhat.com>
14812
14813         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14814         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14815         empty file with one that ends in an empty line.
14816
14817 2010-04-10  Bruno Haible  <bruno@clisp.org>
14818
14819         mkdir: Make it work on mingw64.
14820         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14821         * lib/mkdir.c: Update comment.
14822         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
14823
14824 2010-04-10  Bruno Haible  <bruno@clisp.org>
14825
14826         Don't override improved macro from newer autoconf.
14827         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14828         autoconf >= 2.62.
14829         Reported by Joel E. Denny <jdenny@clemson.edu>.
14830
14831 2010-04-10  Jim Meyering  <meyering@redhat.com>
14832
14833         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14834         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14835
14836         maint.mk: correct a diagnostic
14837         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14838         in diagnostic; now use $prohibit.
14839
14840 2010-04-10  Bruno Haible  <address@hidden>
14841
14842         fchownat: Fix a C++ test error on Solaris 8.
14843         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14844         the function does not exist.
14845
14846 2010-04-10  Bruno Haible  <bruno@clisp.org>
14847
14848         vasnprintf: Add more tests.
14849         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14850         (test_function): Test converting an invalid wide string.
14851
14852         vasnprintf: Correct handling of unconvertible wide string arguments.
14853         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14854         VASNPRINTF.
14855         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14856         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14857         smaller than the expected maximum need for the directive. Set errno to
14858         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14859         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14861         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14862         * modules/vasnprintf (Files): Add m4/printf.m4.
14863         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14864
14865 2010-04-10  Bruno Haible  <bruno@clisp.org>
14866
14867         vasnprintf: Fix crash in %ls directive.
14868         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14869         string is passed as argument to %ls, with no precision and no width.
14870         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14871
14872 2010-04-10  Bruno Haible  <bruno@clisp.org>
14873
14874         vasnprintf: Fix multiple test failures on mingw.
14875         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14876         _snprintf, or snwprintf, not _snwprintf.
14877
14878 2010-04-10  Bruno Haible  <bruno@clisp.org>
14879
14880         write: Fix a C++ test error on mingw.
14881         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14882
14883 2010-04-10  Bruno Haible  <bruno@clisp.org>
14884
14885         vasnprintf test: Reduce code duplication.
14886         * tests/test-vasnprintf.c (test_function): New function, extracted from
14887         test_vasnprintf.
14888         (test_vasnprintf, test_asnprintf): Invoke it.
14889
14890 2010-04-10  Bruno Haible  <bruno@clisp.org>
14891
14892         strnlen: Fix warning in C++ mode on MacOS X.
14893         * lib/string.in.h (strnlen): Use the modern idiom.
14894         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14895         defining strnlen as a macro already in <config.h>.
14896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14897         REPLACE_STRNLEN.
14898         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14899         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14900
14901 2010-04-08  James Youngman  <jay@gnu.org>
14902
14903         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14904         the example.
14905
14906 2010-04-09  Jim Meyering  <meyering@redhat.com>
14907
14908         maint.mk: print better diagnostic when there is no $(_hv_file)
14909         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14910         announce that when $(_hv_file) (aka help-version) does not exist.
14911
14912         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14913         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14914         not try to interpret its random input bytes.  Jarno Rajahalme reported
14915         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14916         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14917         (mktempd_): Likewise, just in case.
14918
14919         ftruncate: add two years to projected module removal date: 2012
14920         * m4/ftruncate.m4: Adjust comments.
14921
14922         ftruncate: mark module as obsolete; even MinGW provides it, now
14923         * modules/ftruncate (Status): Obsolete.
14924         (Notice): Say that.
14925         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14926         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14927
14928 2010-04-08  Bruno Haible  <bruno@clisp.org>
14929
14930         Fix side effects from tests-related modules.
14931         * modules/dprintf-posix (Comment): New section.
14932         * modules/fprintf-posix (Comment): Likewise.
14933         * modules/obstack-printf-posix (Comment): Likewise.
14934         * modules/printf-posix (Comment): Likewise.
14935         * modules/snprintf-posix (Comment): Likewise.
14936         * modules/sprintf-posix (Comment): Likewise.
14937         * modules/vasnprintf-posix (Comment): Likewise.
14938         * modules/vasprintf-posix (Comment): Likewise.
14939         * modules/vdprintf-posix (Comment): Likewise.
14940         * modules/vfprintf-posix (Comment): Likewise.
14941         * modules/vprintf-posix (Comment): Likewise.
14942         * modules/vsnprintf-posix (Comment): Likewise.
14943         * modules/vsprintf-posix (Comment): Likewise.
14944         * modules/xprintf-posix (Comment): Likewise.
14945         * modules/xvasprintf-posix (Comment): Likewise.
14946         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14947         * modules/floorf-tests (Depends-on): Likewise.
14948         * modules/round-tests (Depends-on): Likewise.
14949         * modules/roundf-tests (Depends-on): Likewise.
14950         * modules/trunc-tests (Depends-on): Likewise.
14951         * modules/truncf-tests (Depends-on): Likewise.
14952         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14953         'fprintf-posix' module is not present.
14954         * tests/test-floorf2.c (check): Likewise.
14955         * tests/test-trunc2.c (check): Likewise.
14956         * tests/test-truncf2.c (check): Likewise.
14957         * tests/test-round2.c (equal): Likewise.
14958         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14959
14960 2010-04-07  Karl Berry  <karl@gnu.org>
14961
14962         * config/srclist.txt,
14963         * config/srclistvars.sh,
14964         * config/srclist-update: doc fixes.
14965
14966 2010-04-07  Jim Meyering  <meyering@redhat.com>
14967
14968         maint.mk: add a PATH crosschecking syntax-check rule
14969         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14970         Useful if you use a test like the one in help-version (coreutils,
14971         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14972         printed by prog --version.
14973
14974 2010-04-06  Bruno Haible  <bruno@clisp.org>
14975
14976         Fix link error on mingw.
14977         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14978         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14979
14980 2010-04-06  Bruno Haible  <bruno@clisp.org>
14981
14982         Assume rmdir exists.
14983         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14984
14985 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14986
14987         doc: update users.txt
14988         * users.txt: Add gcal.
14989
14990 2010-04-06  Jim Meyering  <meyering@redhat.com>
14991
14992         init.sh: simply unset TMPDIR rather than risking env -i
14993         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14994         although it probably works fine on all Unix-based systems, some
14995         systems (Cygwin?) cannot tolerate a totally cleared environment.
14996         Suggestion from Eric Blake.
14997
14998 2010-04-06  Jim Meyering  <meyering@redhat.com>
14999
15000         init.sh: portability fix: use env's POSIX-specified -i option not -u
15001         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15002         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15003
15004 2010-04-05  Bruno Haible  <bruno@clisp.org>
15005
15006         btowc: Work around Cygwin 1.7.2 bug.
15007         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15008         does not map NUL to 0.
15009         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15010
15011 2010-04-05  Bruno Haible  <bruno@clisp.org>
15012
15013         Make the multithread modules work on Cygwin 1.7.2.
15014         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15015         imported symbols can be declared weak, so that it returns "no" on
15016         Cygwin 1.7.2.
15017
15018 2010-04-05  Bruno Haible  <bruno@clisp.org>
15019
15020         Use the module 'strncat'.
15021         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15022
15023         Tests for module 'strncat'.
15024         * modules/strncat-tests: New file.
15025         * tests/test-strncat.c: New file.
15026
15027         New module 'strncat'.
15028         * lib/string.in.h (strncat): New declaration.
15029         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15030         * m4/strncat.m4: New file, based on m4/memchr.m4.
15031         * modules/strncat: New file.
15032         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15033         is declared.
15034         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15035         REPLACE_STRNCAT.
15036         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15037         REPLACE_STRNCAT.
15038         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15039         module.
15040         * tests/test-string-c++.cc: Check signature of strncat.
15041
15042 2010-04-05  Jim Meyering  <meyering@redhat.com>
15043
15044         xstrtoumax-tests: convert to use init.sh
15045         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15046         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15047         Use Exit, not exit.
15048         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15049
15050         xstrtoimax-tests: convert to use init.sh
15051         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15052         * tests/test-xstrtoimax.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 2010-04-05  Bruno Haible  <bruno@clisp.org>
15057
15058         sys_socket: Avoid #define replacements in C++ mode.
15059         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15060         warning to the function if possible, rather than #defining the symbol
15061         to a dysfunctional alias.
15062
15063 2010-04-05  Bruno Haible  <bruno@clisp.org>
15064
15065         fseeko: Fix C++ test error on mingw.
15066         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15067         gl_FUNC_FSEEKO.
15068         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15069         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15070         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15071         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15072
15073 2010-04-05  Bruno Haible  <bruno@clisp.org>
15074
15075         duplocale: Improve test output.
15076         * tests/test-duplocale.c (main): Print reason for skipped test.
15077
15078 2010-04-05  Bruno Haible  <bruno@clisp.org>
15079
15080         Assume rmdir exists.
15081         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15082         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15083
15084 2010-04-05  Bruno Haible  <bruno@clisp.org>
15085
15086         Fix link error on Solaris 8 with cc.
15087         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15088
15089 2010-04-05  Bruno Haible  <bruno@clisp.org>
15090
15091         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15092         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15093
15094 2010-04-05  Bruno Haible  <bruno@clisp.org>
15095
15096         vasprintf: Update documentation.
15097         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15098
15099 2010-04-05  Bruno Haible  <bruno@clisp.org>
15100
15101         ptsname: Improve test.
15102         * tests/test-ptsname.c (main): Also try the various master names of BSD
15103         systems.
15104
15105 2010-04-05  Bruno Haible  <bruno@clisp.org>
15106
15107         memchr: Avoid a possible C++ test error.
15108         * lib/string.in.h (memchr): Provide declaration if function is missing.
15109         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15110         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15112         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15113
15114 2010-04-05  Bruno Haible  <bruno@clisp.org>
15115
15116         strtok_r: Improve idiom.
15117         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15118         AC_LIBOBJ is used.
15119
15120 2010-04-05  Bruno Haible  <bruno@clisp.org>
15121
15122         strdup: Improve idiom.
15123         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15124         AC_LIBOBJ is used.
15125         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15126         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15127         when AC_LIBOBJ is used.
15128
15129 2010-04-05  Bruno Haible  <bruno@clisp.org>
15130
15131         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15132         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15133         don't set REPLACE_MBSINIT to 1.
15134         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15135         don't set REPLACE_MBRTOWC to 1.
15136         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15137         exist, don't set REPLACE_MBSRTOWCS to 1.
15138         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15139         exist, don't set REPLACE_MBSNRTOWCS to 1.
15140         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15141         don't set REPLACE_WCRTOMB to 1.
15142         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15143         exist, don't set REPLACE_WCSRTOMBS to 1.
15144         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15145         exist, don't set REPLACE_WCSNRTOMBS to 1.
15146
15147 2010-04-05  Bruno Haible  <bruno@clisp.org>
15148
15149         ldexpl: Improve idiom.
15150         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15151         make sure to set HAVE_DECL_LDEXPL to 0.
15152
15153 2010-04-05  Jim Meyering  <meyering@redhat.com>
15154
15155         xstrtol-tests: convert to use init.sh
15156         * modules/xstrtol-tests (Files): Add tests/init.sh.
15157         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15158         Use Exit, not exit.
15159         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15160
15161         atexit-tests: convert to use init.sh
15162         * modules/atexit-tests (Files): Add tests/init.sh.
15163         * tests/test-atexit.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         init.sh: fix typo
15168         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15169
15170         init.sh: make it easier for a test script to write to the tty, ...
15171         when using automake's parallel-tests mode.
15172         * tests/init.sh (stderr_fileno_): Define overridable variable.
15173         (warn_): New function, to use it.
15174         (fail_, skip_, framework_failure_): Use warn_.
15175
15176 2010-04-04  Bruno Haible  <bruno@clisp.org>
15177
15178         btowc: Avoid warning.
15179         * lib/btowc.c: Include <stdlib.h>.
15180         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15181
15182 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15183             Bruno Haible  <bruno@clisp.org>
15184
15185         wchar: Port to NetBSD 1.5.
15186         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15187         * lib/wctype.in.h (WEOF): Likewise.
15188
15189 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15190             Bruno Haible  <bruno@clisp.org>
15191
15192         Port extended stdio to NetBSD 1.5.
15193         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15194         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15195         older.
15196
15197 2010-04-04  Bruno Haible  <bruno@clisp.org>
15198
15199         string: Remove unused substitution.
15200         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15201         HAVE_DECL_STRERROR.
15202         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15203
15204 2010-04-04  Bruno Haible  <bruno@clisp.org>
15205
15206         strtod: Avoid a possible C++ test error.
15207         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15208         set REPLACE_STRTOD.
15209
15210 2010-04-04  Bruno Haible  <bruno@clisp.org>
15211
15212         strerror: Update documentation.
15213         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15214
15215 2010-04-04  Bruno Haible  <bruno@clisp.org>
15216
15217         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15218         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15219         _GL_CXXALIAS_SYS_CAST.
15220
15221 2010-04-04  Bruno Haible  <bruno@clisp.org>
15222
15223         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15224         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15225         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15226         REPLACE_FREXPL to 1.
15227         * doc/posix-functions/frexpl.texi: Update documentation.
15228
15229 2010-04-04  Bruno Haible  <bruno@clisp.org>
15230
15231         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15232         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15233
15234 2010-04-04  Bruno Haible  <bruno@clisp.org>
15235
15236         Implement nanosleep for native Windows.
15237         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15238
15239 2010-04-04  Bruno Haible  <bruno@clisp.org>
15240
15241         math: Fix some C++ test errors on Solaris 8.
15242         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15243
15244 2010-04-04  Bruno Haible  <bruno@clisp.org>
15245
15246         math: Fix some C++ test errors on Cygwin.
15247         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15248         truncl): Provide declaration if the system does not have it.
15249         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15250         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15251         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15252         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15253         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15254         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15255         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15256         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15257         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15258         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15259         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15260         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15261         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15262         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15263         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15264         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15266         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15267         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15268         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15269         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15270         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15271
15272 2010-04-04  Bruno Haible  <bruno@clisp.org>
15273
15274         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15275         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15276         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15277         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15278         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15279         * m4/isinf.m4 (gl_ISINF): Likewise.
15280         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15281
15282 2010-04-04  Bruno Haible  <bruno@clisp.org>
15283
15284         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15285         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15286
15287 2010-04-04  Bruno Haible  <bruno@clisp.org>
15288
15289         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15290         * modules/tmpfile (configure.ac): Update.
15291
15292         tmpfile: Fix C++ test error on mingw.
15293         * lib/stdio.in.h (tmpfile): New declaration.
15294         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15295         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15296         * modules/tmpfile (Depends-on): Add stdio.
15297         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15298         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15299         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15300         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15301         REPLACE_TMPFILE.
15302         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15303
15304 2010-04-04  Bruno Haible  <bruno@clisp.org>
15305
15306         ioctl: Fix C++ test error on mingw.
15307         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15308         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15309         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15310
15311 2010-04-03  Bruno Haible  <bruno@clisp.org>
15312
15313         wcwidth: Fix C++ test error on mingw.
15314         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15316         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15317
15318 2010-04-03  Bruno Haible  <bruno@clisp.org>
15319
15320         nanosleep: Fix C++ test error on mingw.
15321         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15322         * lib/time.in.h (nanosleep): Use modern idiom.
15323         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15324         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15325         REPLACE_NANOSLEEP to 1.
15326         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15327         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15328
15329 2010-04-03  Bruno Haible  <bruno@clisp.org>
15330
15331         strptime: Fix C++ test error on mingw.
15332         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15333         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15334         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15335         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15336         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15337         not REPLACE_STRPTIME.
15338         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15339         REPLACE_STRPTIME.
15340
15341 2010-04-03  Bruno Haible  <bruno@clisp.org>
15342
15343         timegm: Fix C++ test error on mingw.
15344         * lib/time.in.h (timegm): Use modern idiom.
15345         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15346         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15347         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15348         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15349
15350 2010-04-03  Bruno Haible  <bruno@clisp.org>
15351
15352         timegm: Assume declaration if function exists.
15353         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15354         if it exists. Don't clobber ac_cv_func_timegm.
15355
15356 2010-04-03  Bruno Haible  <bruno@clisp.org>
15357
15358         time_r: Fix C++ test error on mingw.
15359         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15360         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15361         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15363         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15364
15365 2010-04-03  Bruno Haible  <bruno@clisp.org>
15366
15367         time_r: Minor updates.
15368         * modules/time_r (Description): Mention the provided functions.
15369         * lib/time_r.c: Don't include <string.h>.
15370         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15371         * doc/posix-functions/localtime_r.texi: Likewise.
15372
15373 2010-04-03  Bruno Haible  <bruno@clisp.org>
15374
15375         time: Fix regression introduced on 2010-03-08.
15376         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15377         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15378
15379 2010-04-03  Jim Meyering  <meyering@redhat.com>
15380
15381         maint.mk: don't silently disable project-specific syntax-check rules
15382         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15383         that they need to convert their project-specific syntax-check rules
15384         to use the new _sc_search_regexp.
15385
15386 2010-04-03  Bruno Haible  <bruno@clisp.org>
15387
15388         fchdir: Fix regression introduced on 2010-03-08.
15389         * lib/unistd.in.h (fchdir): Fix declaration.
15390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15392         REPLACE_FCHDIR.
15393         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15394         REPLACE_FCHDIR.
15395
15396 2010-04-03  Bruno Haible  <bruno@clisp.org>
15397
15398         getpagesize: Fix C++ test error on mingw.
15399         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15400         system does not declare the function.
15401         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15402         declared.
15403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15404         HAVE_DECL_GETPAGESIZE.
15405         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15406
15407 2010-04-03  Bruno Haible  <bruno@clisp.org>
15408
15409         stdio: Make C++ tests work on mingw.
15410         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15411         does not declare the function.
15412
15413 2010-04-03  Bruno Haible  <bruno@clisp.org>
15414
15415         ftello: Fix C++ test error on mingw.
15416         * lib/stdio.in.h (ftello): Use modern idiom.
15417         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15418         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15419         is missing and that it needs to be replaced.
15420         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15422         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15423
15424 2010-04-03  Bruno Haible  <bruno@clisp.org>
15425
15426         fseeko: Fix C++ test error on mingw.
15427         * lib/stdio.in.h (fseeko): Use modern idiom.
15428         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15429         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15430         is missing and that it needs to be replaced.
15431         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15433         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15434
15435 2010-04-03  Bruno Haible  <bruno@clisp.org>
15436
15437         mkstemp: Fix C++ test error on mingw.
15438         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15439         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15440         function is missing and that it needs to be replaced.
15441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15442         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15443
15444 2010-04-03  Bruno Haible  <bruno@clisp.org>
15445
15446         stpncpy: Fix C++ test error on mingw.
15447         * lib/string.in.h (stpncpy): Use modern idiom.
15448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15449         function is missing and that it needs to be replaced.
15450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15451         REPLACE_STPNCPY.
15452         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15453
15454 2010-04-03  Bruno Haible  <bruno@clisp.org>
15455
15456         sys_stat: Fix C++ test error on mingw.
15457         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15458         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15459
15460 2010-04-03  Bruno Haible  <bruno@clisp.org>
15461
15462         pty: Update doc.
15463         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15464
15465 2010-04-03  Bruno Haible  <bruno@clisp.org>
15466
15467         unistd: Fix C++ test error on mingw.
15468         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15469
15470 2010-04-03  Bruno Haible  <bruno@clisp.org>
15471
15472         Update doc regarding mingw.
15473         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15474         * doc/glibc-functions/login_tty.texi: Likewise.
15475         * doc/glibc-functions/forkpty.texi: Likewise.
15476
15477 2010-04-03  Bruno Haible  <bruno@clisp.org>
15478
15479         stdlib: Avoid compilation failure of c-strtold on mingw.
15480         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15481
15482 2010-04-03  Bruno Haible  <bruno@clisp.org>
15483
15484         locale: Make C++ tests work on Cygwin and mingw.
15485         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15486         cannot provide the function.
15487         Reported by Simon Josefsson.
15488
15489 2010-04-03  Bruno Haible  <bruno@clisp.org>
15490
15491         localename: Port to MacOS X 10.6.
15492         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15493         memory layout of the locales in MacOS X 10.6 as well.
15494         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15495
15496 2010-04-02  Bruno Haible  <bruno@clisp.org>
15497
15498         gnulib-tool: Ensure that long-running tests are executed last.
15499         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15500         running tests after the one for the other tests.
15501
15502 2010-04-02  Bruno Haible  <bruno@clisp.org>
15503
15504         gnulib-tool: Ensure the tests in the main directory are executed first.
15505         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15506         start with the current directory.
15507
15508 2010-04-02  Bruno Haible  <bruno@clisp.org>
15509
15510         Tests for module 'havelib', moved here from GNU gettext.
15511         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15512         modifications.
15513         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15514         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15515         with modifications.
15516         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15517         modifications.
15518         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15519         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15520         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15521         with modifications.
15522         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15523         with modifications.
15524         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15525         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15526         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15527         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15528         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15529         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15530         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15531         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15532         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15533         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15534         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15535         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15536         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15537         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15538         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15539         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15540         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15541         with modifications.
15542         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
15543         with modifications.
15544         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
15545         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
15546         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
15547         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
15548         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
15549         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
15550         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
15551         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
15552         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
15553         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
15554         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
15555         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
15556         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
15557         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
15558         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
15559         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
15560         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
15561         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
15562         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
15563         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
15564         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
15565         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
15566         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
15567         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
15568         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
15569         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
15570         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
15571         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
15572         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
15573         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
15574         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
15575         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
15576         * tests/havelib/rpathx/rpathx.c: New file, from
15577         gettext/autoconf-lib-link.
15578         * tests/havelib/rpathx/Makefile.am: New file, from
15579         gettext/autoconf-lib-link.
15580         * tests/havelib/rpathx/configure.ac: New file, from
15581         gettext/autoconf-lib-link with modifications.
15582         * tests/havelib/rpathy/rpathy.c: New file, from
15583         gettext/autoconf-lib-link.
15584         * tests/havelib/rpathy/Makefile.am: New file, from
15585         gettext/autoconf-lib-link.
15586         * tests/havelib/rpathy/configure.ac: New file, from
15587         gettext/autoconf-lib-link with modifications.
15588         * tests/havelib/rpathz/rpathz.c: New file, from
15589         gettext/autoconf-lib-link.
15590         * tests/havelib/rpathz/Makefile.am: New file, from
15591         gettext/autoconf-lib-link.
15592         * tests/havelib/rpathz/configure.ac: New file, from
15593         gettext/autoconf-lib-link with modifications.
15594         * tests/havelib/rpathlx/usex.c: New file, from
15595         gettext/autoconf-lib-link.
15596         * tests/havelib/rpathlx/Makefile.am: New file, from
15597         gettext/autoconf-lib-link.
15598         * tests/havelib/rpathlx/configure.ac: New file, from
15599         gettext/autoconf-lib-link with modifications.
15600         * tests/havelib/rpathly/usey.c: New file, from
15601         gettext/autoconf-lib-link.
15602         * tests/havelib/rpathly/Makefile.am: New file, from
15603         gettext/autoconf-lib-link.
15604         * tests/havelib/rpathly/configure.ac: New file, from
15605         gettext/autoconf-lib-link with modifications.
15606         * tests/havelib/rpathlz/usez.c: New file, from
15607         gettext/autoconf-lib-link.
15608         * tests/havelib/rpathlz/Makefile.am: New file, from
15609         gettext/autoconf-lib-link.
15610         * tests/havelib/rpathlz/configure.ac: New file, from
15611         gettext/autoconf-lib-link with modifications.
15612         * tests/havelib/rpathlyx/usey.c: New file, from
15613         gettext/autoconf-lib-link.
15614         * tests/havelib/rpathlyx/Makefile.am: New file, from
15615         gettext/autoconf-lib-link.
15616         * tests/havelib/rpathlyx/configure.ac: New file, from
15617         gettext/autoconf-lib-link with modifications.
15618         * tests/havelib/rpathlzyx/usez.c: New file, from
15619         gettext/autoconf-lib-link.
15620         * tests/havelib/rpathlzyx/Makefile.am: New file, from
15621         gettext/autoconf-lib-link.
15622         * tests/havelib/rpathlzyx/configure.ac: New file, from
15623         gettext/autoconf-lib-link with modifications.
15624         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
15625         with modifications.
15626
15627 2010-04-02  Bruno Haible  <bruno@clisp.org>
15628
15629         gnulib-tool: Create distributed built sources also for the tests.
15630         * gnulib-tool (func_create_testdir): Also generate distributed built
15631         sources in the tests directory.
15632
15633 2010-04-02  Bruno Haible  <bruno@clisp.org>
15634
15635         gnulib-tool: Obey user's environment variables.
15636         * gnulib-tool (func_create_testdir): When creating built sources,
15637         respect the environment variables for autoconf, automake, etc. given by
15638         the user.
15639
15640 2010-04-02  Bruno Haible  <bruno@clisp.org>
15641
15642         gnulib-tool: Provide the value of --m4-base to modules.
15643         * gnulib-tool (func_import, func_create_testdir): Emit a definition
15644         of gl_m4_base.
15645
15646 2010-04-02  Eric Blake  <eblake@redhat.com>
15647
15648         maint.mk: fix some fallout
15649         * NEWS: Document the incompatible change, and its effect on cfg.mk.
15650         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
15651
15652 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15653
15654         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
15655         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
15656         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
15657         (sc_cast_of_x_alloc_return_value): Likewise.
15658         (sc_cast_of_alloca_return_value): Likewise.
15659         (sc_space_tab): Likewise.
15660         (sc_prohibit_atoi_atof): Likewise.
15661         (sc_prohibit_magic_number_exit): Likewise.
15662         (sc_error_exit_success): Likewise.
15663         (sc_file_system): Likewise.
15664         (sc_prohibit_have_config_h): Likewise.
15665         (sc_require_config_h): Likewise.
15666         (sc_prohibit_HAVE_MBRTOWC): Likewise.
15667         (sc_obsolete_symbols): Likewise.
15668         (sc_changelog): Likewise.
15669         (sc_program_name): Likewise.
15670         (sc_the_the): Likewise.
15671         (sc_trailing_blank): Likewise.
15672         (sc_two_space_separator_in_usage): Likewise.
15673         (sc_useless_cpp_parens): Likewise.
15674         (sc_GPL_version): Likewise.
15675         (sc_GFDL_version): Likewise.
15676         (sc_texinfo_acronym): Likewise.
15677         (sc_prohibit_cvs_keyword): Likewise.
15678         (sc_prohibit_stat_st_blocks): Likewise.
15679         (sc_prohibit_S_IS_definition): Likewise.
15680         (sc_redundant_const): Likewise.
15681         (sc_makefile_TAB_only_indentation): Likewise.
15682         (sc_m4_quote_check): Likewise.
15683         (sc_makefile_path_separator_check): Likewise.
15684         (sc_copyright_check): Likewise.
15685         (sc_Wundef_boolean): Likewise.
15686         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15687
15688         maint.mk: match 0 or more whitespace-before-function-call '('
15689         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
15690         that have zero or two-and-more spaces between the function name
15691         and the open parenthesis.
15692         (sc_error_message_warn_fatal): Likewise.
15693         (sc_error_message_uppercase): Likewise.
15694         (sc_error_message_period): Likewise.
15695
15696 2010-03-31  Eric Blake  <eblake@redhat.com>
15697
15698         maint.mk: check for [ as well as test
15699         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
15700         Based on a libvirt report by Matthias Bolte.
15701
15702         gnumakefile: don't squelch _version output
15703         * top/GNUmakefile (_version): Create one-shot dependency rather
15704         than using $(shell) when version must be regenerated.
15705         (_autoreconf): Run verbosely, by default.
15706
15707         sys_time: avoid compiler warnings
15708         * lib/sys_time.in.h (includes): Ensure gcc pragma is
15709         unconditional, fixing regression from 2010-03-29.
15710         Reported by Simon Josefsson.
15711
15712 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
15713
15714         maint.mk: s/_header_without_use/_sc_header_without_use/
15715         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
15716         (sc_prohibit_assert_without_use): Use the new name.
15717         (sc_prohibit_close_stream_without_use): Likewise.
15718         (sc_prohibit_getopt_without_use): Likewise.
15719         (sc_prohibit_quotearg_without_use): Likewise.
15720         (sc_prohibit_quote_without_use): Likewise.
15721         (sc_prohibit_long_options_without_use): Likewise.
15722         (sc_prohibit_inttostr_without_use): Likewise.
15723         (sc_prohibit_ignore_value_without_use): Likewise.
15724         (sc_prohibit_error_without_use): Likewise.
15725         (sc_prohibit_xalloc_without_use): Likewise.
15726         (sc_prohibit_hash_without_use): Likewise.
15727         (sc_prohibit_hash_pjw_without_use): Likewise.
15728         (sc_prohibit_safe_read_without_use): Likewise.
15729         (sc_prohibit_argmatch_without_use): Likewise.
15730         (sc_prohibit_canonicalize_without_use): Likewise.
15731         (sc_prohibit_root_dev_ino_without_use): Likewise.
15732         (sc_prohibit_openat_without_use): Likewise.
15733         (sc_prohibit_c_ctype_without_use): Likewise.
15734         (sc_prohibit_signal_without_use): Likewise.
15735         (sc_prohibit_intprops_without_use): Likewise.
15736
15737 2010-03-30  Eric Blake  <eblake@redhat.com>
15738
15739         maint: improve module indicators
15740         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
15741         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
15742         columns, and avoid extra macro expansion.
15743
15744         fdopendir: work around FreeBSD bug
15745         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15746         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
15747         * modules/dirent (Makefile.am): Substitute it.
15748         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
15749         declaration.
15750         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
15751         fix.
15752         Reported by Christian Weisgerber <naddy@mips.inka.de>.
15753
15754 2010-03-29  Bruno Haible  <bruno@clisp.org>
15755
15756         Emit #pragma system_header after the inclusion guard, not before.
15757         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
15758         guard that spans the entire file, not before. This enables an
15759         optimization in GCC's preprocessor.
15760         * lib/ctype.in.h: Likewise.
15761         * lib/dirent.in.h: Likewise.
15762         * lib/errno.in.h: Likewise.
15763         * lib/float.in.h: Likewise.
15764         * lib/getopt.in.h: Likewise.
15765         * lib/iconv.in.h: Likewise.
15766         * lib/langinfo.in.h: Likewise.
15767         * lib/locale.in.h: Likewise.
15768         * lib/math.in.h: Likewise.
15769         * lib/netdb.in.h: Likewise.
15770         * lib/netinet_in.in.h: Likewise.
15771         * lib/pty.in.h: Likewise.
15772         * lib/sched.in.h: Likewise.
15773         * lib/se-selinux.in.h: Likewise.
15774         * lib/search.in.h: Likewise.
15775         * lib/spawn.in.h: Likewise.
15776         * lib/stdarg.in.h: Likewise.
15777         * lib/stdint.in.h: Likewise.
15778         * lib/string.in.h: Likewise.
15779         * lib/strings.in.h: Likewise.
15780         * lib/sys_file.in.h: Likewise.
15781         * lib/sys_ioctl.in.h: Likewise.
15782         * lib/sys_time.in.h: Likewise.
15783         * lib/sys_times.in.h: Likewise.
15784         * lib/sys_utsname.in.h: Likewise.
15785         * lib/sys_wait.in.h: Likewise.
15786         * lib/sysexits.in.h: Likewise.
15787         * lib/wctype.in.h: Likewise.
15788
15789 2010-03-28  James Youngman  <jay@gnu.org>
15790
15791         save-cwd: don't leak a file descriptor when the caller execs.
15792         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
15793         saved file descriptor.
15794         * modules/save-cwd (Depends-on): Depend on cloexec.
15795
15796 2010-03-29  Bruno Haible  <bruno@clisp.org>
15797
15798         Remove vestiges of fts-lgpl module.
15799         * lib/fts_.h: Assume GNULIB_FTS is 1.
15800         * lib/fts.c: Likewise.
15801         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15802
15803 2010-03-28  Bruno Haible  <bruno@clisp.org>
15804
15805         Fix definition of tests witness macro.
15806         * gnulib-tool (func_import): Fix definition of witness macro.
15807
15808 2010-03-28  Bruno Haible  <bruno@clisp.org>
15809
15810         Fix ioctl's protoype on glibc systems.
15811         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15812         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15813         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15814         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15815         signature. If not, arrange to replace the ioctl function.
15816         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15817         REPLACE_IOCTL.
15818         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15819         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15820         Reported by Ludovic Courtès <ludo@gnu.org>.
15821
15822 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15823
15824         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15825         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15826         made it so grep -r --include=GLOB* ... did not work.
15827
15828 2010-03-26  Jim Meyering  <meyering@redhat.com>
15829             Eric Blake  <eblake@redhat.com>
15830
15831         maint.mk: prohibit use of test's -o and -a operators
15832         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15833
15834 2010-03-28  Bruno Haible  <bruno@clisp.org>
15835
15836         Remove unused GNULIB_XYZ macro definitions.
15837         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15838         invocation.
15839
15840 2010-03-28  Bruno Haible  <bruno@clisp.org>
15841
15842         Mark privileged tests modules.
15843         * modules/idpriv-drop-tests (Status): New section.
15844         * modules/idpriv-droptemp-tests (Status): New section.
15845
15846 2010-03-28  Bruno Haible  <bruno@clisp.org>
15847
15848         Split C++ tests into separate tests modules.
15849         * modules/dirent-c++-tests: New file, extracted from
15850         modules/dirent-tests.
15851         * modules/dirent-tests: Depend on it.
15852         * modules/fcntl-h-c++-tests: New file, extracted from
15853         modules/fcntl-h-tests.
15854         * modules/fcntl-h-tests: Depend on it.
15855         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15856         * modules/glob-tests: Depend on it.
15857         * modules/iconv-h-c++-tests: New file, extracted from
15858         modules/iconv-h-tests.
15859         * modules/iconv-h-tests: Depend on it.
15860         * modules/langinfo-c++-tests: New file, extracted from
15861         modules/langinfo-tests.
15862         * modules/langinfo-tests: Depend on it.
15863         * modules/locale-c++-tests: New file, extracted from
15864         modules/locale-tests.
15865         * modules/locale-tests: Depend on it.
15866         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15867         * modules/math-tests: Depend on it.
15868         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15869         * modules/pty-tests: Depend on it.
15870         * modules/search-c++-tests: New file, extracted from
15871         modules/search-tests.
15872         * modules/search-tests: Depend on it.
15873         * modules/signal-c++-tests: New file, extracted from
15874         modules/signal-tests.
15875         * modules/signal-tests: Depend on it.
15876         * modules/spawn-c++-tests: New file, extracted from
15877         modules/spawn-tests.
15878         * modules/spawn-tests: Depend on it.
15879         * modules/stdio-c++-tests: New file, extracted from
15880         modules/stdio-tests.
15881         * modules/stdio-tests: Depend on it.
15882         * modules/stdlib-c++-tests: New file, extracted from
15883         modules/stdlib-tests.
15884         * modules/stdlib-tests: Depend on it.
15885         * modules/string-c++-tests: New file, extracted from
15886         modules/string-tests.
15887         * modules/string-tests: Depend on it.
15888         * modules/sys_ioctl-c++-tests: New file, extracted from
15889         modules/sys_ioctl-tests.
15890         * modules/sys_ioctl-tests: Depend on it.
15891         * modules/sys_select-c++-tests: New file, extracted from
15892         modules/sys_select-tests.
15893         * modules/sys_select-tests: Depend on it.
15894         * modules/sys_socket-c++-tests: New file, extracted from
15895         modules/sys_socket-tests.
15896         * modules/sys_socket-tests: Depend on it.
15897         * modules/sys_stat-c++-tests: New file, extracted from
15898         modules/sys_stat-tests.
15899         * modules/sys_stat-tests: Depend on it.
15900         * modules/sys_time-c++-tests: New file, extracted from
15901         modules/sys_time-tests.
15902         * modules/sys_time-tests: Depend on it.
15903         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15904         * modules/time-tests: Depend on it.
15905         * modules/unistd-c++-tests: New file, extracted from
15906         modules/unistd-tests.
15907         * modules/unistd-tests: Depend on it.
15908         * modules/wchar-c++-tests: New file, extracted from
15909         modules/wchar-tests.
15910         * modules/wchar-tests: Depend on it.
15911         * modules/wctype-c++-tests: New file, extracted from
15912         modules/wctype-tests.
15913         * modules/wctype-tests: Depend on it.
15914         Reported by Simon Josefsson.
15915
15916 2010-03-28  Bruno Haible  <bruno@clisp.org>
15917
15918         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15919         * gnulib-tool (func_exists_module): New function, extracted from
15920         func_verify_module.
15921         (func_verify_module): Use it.
15922         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15923         'foo' only if 'foo' exists.
15924         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15925         module.
15926
15927 2010-03-28  Bruno Haible  <bruno@clisp.org>
15928
15929         gnulib-tool: Add support for special categories of tests.
15930         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15931         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15932         (func_usage): Document them.
15933         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15934         inc_unportable_tests, inc_all_tests): New variables.
15935         (func_acceptable): Consider these variables.
15936         (func_modules_transitive_closure): Make it work when the 'Status' field
15937         consists of multiple words.
15938         (func_import): Store and restore the values of inc_cxx_tests,
15939         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15940         inc_all_tests in gnulib-comp.m4.
15941         (func_create_testdir): Set inc_all_tests to true.
15942         * doc/gnulib.texi (Extra tests modules): New section.
15943         Suggested by Jim Meyering.
15944
15945 2010-03-28  Bruno Haible  <bruno@clisp.org>
15946
15947         ansi-c++-opt: Allow turning off the C++ build by default.
15948         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15949         gl_CXX_CHOICE_DEFAULT_NO is defined.
15950         Requested by Eric Blake.
15951
15952 2010-03-28  Bruno Haible  <bruno@clisp.org>
15953
15954         unistd: Avoid #define replacements in C++ mode.
15955         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15956         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15957         setsockopt, shutdown, select): In C++, attach a warning to the function
15958         if possible, rather than #defining the symbol to a dysfunctional alias.
15959         Reported by John W. Eaton <jwe@gnu.org>.
15960
15961 2010-03-28  Bruno Haible  <bruno@clisp.org>
15962
15963         Fix link errors on mingw.
15964         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15965         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15966         $(LIBSOCKET).
15967         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15968         $(LIBSOCKET).
15969
15970 2010-03-28  Bruno Haible  <bruno@clisp.org>
15971             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15972
15973         lib-ignore: Determine different options for different compilers.
15974         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15975         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15976         Add comments.
15977         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15978         * NEWS: Mention the change.
15979
15980 2010-03-27  Bruno Haible  <bruno@clisp.org>
15981
15982         Remove unused GNULIB_XYZ macro definitions.
15983         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15984         * modules/fseek (configure.ac): Likewise.
15985         * modules/ioctl (configure.ac): Likewise.
15986         * modules/open (configure.ac): Likewise.
15987         * modules/stdlib-safer (configure.ac): Likewise.
15988
15989 2010-03-27  Bruno Haible  <bruno@clisp.org>
15990
15991         Add a remark about certain modules.
15992         * modules/malloc (Comment): New section.
15993         * modules/realloc (Comment): Likewise.
15994         * modules/sigpipe (Comment): Likewise.
15995
15996 2010-03-27  Bruno Haible  <bruno@clisp.org>
15997
15998         Resolve conflict between the two kinds of module indicators.
15999         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16000         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16001         * modules/canonicalize (configure.ac): Invoke
16002         gl_MODULE_INDICATOR_FOR_TESTS.
16003         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16004         GNULIB_XYZ.
16005         * tests/test-dirent-c++.cc: Likewise.
16006         * tests/test-dirent-safer.c: Likewise.
16007         * tests/test-dup2.c: Likewise.
16008         * tests/test-fchdir.c: Likewise.
16009         * tests/test-fcntl-h-c++.cc: Likewise.
16010         * tests/test-getopt.c: Likewise.
16011         * tests/test-getopt.h: Likewise.
16012         * tests/test-langinfo-c++.cc: Likewise.
16013         * tests/test-locale-c++.cc: Likewise.
16014         * tests/test-math-c++.cc: Likewise.
16015         * tests/test-pty-c++.cc: Likewise.
16016         * tests/test-search-c++.cc: Likewise.
16017         * tests/test-signal-c++.cc: Likewise.
16018         * tests/test-spawn-c++.cc: Likewise.
16019         * tests/test-stdio-c++.cc: Likewise.
16020         * tests/test-stdlib-c++.cc: Likewise.
16021         * tests/test-string-c++.cc: Likewise.
16022         * tests/test-sys_ioctl-c++.cc: Likewise.
16023         * tests/test-sys_select-c++.cc: Likewise.
16024         * tests/test-sys_socket-c++.cc: Likewise.
16025         * tests/test-sys_stat-c++.cc: Likewise.
16026         * tests/test-sys_time-c++.cc: Likewise.
16027         * tests/test-time-c++.cc: Likewise.
16028         * tests/test-unistd-c++.cc: Likewise.
16029         * tests/test-wchar-c++.cc: Likewise.
16030         * tests/uninorm/test-u8-nfc.c: Likewise.
16031         * tests/uninorm/test-u8-nfd.c: Likewise.
16032         * tests/uninorm/test-u8-nfkc.c: Likewise.
16033         * tests/uninorm/test-u8-nfkd.c: Likewise.
16034         * tests/uninorm/test-u16-nfc.c: Likewise.
16035         * tests/uninorm/test-u16-nfd.c: Likewise.
16036         * tests/uninorm/test-u16-nfkc.c: Likewise.
16037         * tests/uninorm/test-u16-nfkd.c: Likewise.
16038         * tests/uninorm/test-u32-nfc.c: Likewise.
16039         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16040         * tests/uninorm/test-u32-nfd.c: Likewise.
16041         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16042         * tests/uninorm/test-u32-nfkc.c: Likewise.
16043         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16044         * tests/uninorm/test-u32-nfkd.c: Likewise.
16045         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16046         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16047
16048 2010-03-27  Bruno Haible  <bruno@clisp.org>
16049
16050         Distinguish two kinds of module indicators.
16051         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16052         gl_MODULE_INDICATOR.
16053         (gl_MODULE_INDICATOR): New macro.
16054         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16055         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16056         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16057         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16058         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16059         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16060         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16061         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16062         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16063         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16064         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16065         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16066         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16067         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16068         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16069         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16070         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16071         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16072         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16073         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16074         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16075         * modules/cloexec (configure.ac): Likewise.
16076         * modules/getopt-gnu (configure.ac): Likewise.
16077         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16078         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16079         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16080         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16081
16082 2010-03-27  Bruno Haible  <bruno@clisp.org>
16083
16084         New module description field 'Comment'.
16085         * gnulib-tool: New option --extract-comment.
16086         (func_usage): Document it.
16087         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16088         (func_get_comment): New function.
16089         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16090
16091 2010-03-27  Bruno Haible  <bruno@clisp.org>
16092
16093         Addendum to 2010-02-07 commit.
16094         * gnulib-tool (func_usage): Document --extract-applicability option.
16095
16096 2010-03-27  Bruno Haible  <bruno@clisp.org>
16097
16098         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16099         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16100         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16101         rather than link errors.
16102
16103 2010-03-27  Bruno Haible  <bruno@clisp.org>
16104
16105         Avoid side effects from tests-related modules on the compilation of lib.
16106         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16107         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16108         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16109         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16110         macro.
16111         (func_import): Define a witness macro. Assign it a value that depends
16112         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16113         tests-related modules.
16114         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16115         Reported by Jim Meyering.
16116
16117 2010-03-27  Bruno Haible  <bruno@clisp.org>
16118
16119         Factorize common .m4 code.
16120         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16121         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16122         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16123         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16124         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16125         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16126         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16127         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16128         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16129         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16130         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16131         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16132         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16133         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16134         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16135         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16136         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16137         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16138         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16139         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16140         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16141         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16142         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16143         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16144         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16145         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16146         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16147         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16148         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16149         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16150         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16151         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16152
16153 2010-03-27  Bruno Haible  <bruno@clisp.org>
16154
16155         Fix a compilation error on Cygwin with g++ >= 4.3.
16156         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16157         if it is undefined or if we alias it to chmod.
16158         (lstat): Don't warn about the use of this function if it is undefined
16159         or if we alias it to stat.
16160         Reported by Simon Josefsson.
16161
16162 2010-03-27  Bruno Haible  <bruno@clisp.org>
16163
16164         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16165         * modules/getlogin (configure.ac): Update.
16166
16167         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16168         * modules/getlogin_r (configure.ac): Update.
16169
16170         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16172         * modules/inet_ntop (configure.ac): Update.
16173
16174         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16175         * modules/inet_pton (configure.ac): Update.
16176
16177         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16178         * modules/mbslen (configure.ac): Update.
16179
16180         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16181         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16182         * modules/forkpty (configure.ac): Update.
16183         * modules/openpty (configure.ac): Update.
16184
16185 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16186
16187         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16188         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16189
16190 2010-03-25  Eric Blake  <eblake@redhat.com>
16191
16192         maint: use pragma consistently across replacement headers
16193         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16194         * lib/dirent.in.h (system_header): Likewise.
16195         * lib/errno.in.h (system_header): Likewise.
16196         * lib/float.in.h (system_header): Likewise.
16197         * lib/getopt.in.h (system_header): Likewise.
16198         * lib/iconv.in.h (system_header): Likewise.
16199         * lib/inttypes.in.h (system_header): Likewise.
16200         * lib/langinfo.in.h (system_header): Likewise.
16201         * lib/locale.in.h (system_header): Likewise.
16202         * lib/math.in.h (system_header): Likewise.
16203         * lib/netdb.in.h (system_header): Likewise.
16204         * lib/netinet_in.in.h (system_header): Likewise.
16205         * lib/pty.in.h (system_header): Likewise.
16206         * lib/sched.in.h (system_header): Likewise.
16207         * lib/se-selinux.in.h (system_header): Likewise.
16208         * lib/search.in.h (system_header): Likewise.
16209         * lib/spawn.in.h (system_header): Likewise.
16210         * lib/stdarg.in.h (system_header): Likewise.
16211         * lib/stdint.in.h (system_header): Likewise.
16212         * lib/string.in.h (system_header): Likewise.
16213         * lib/strings.in.h (system_header): Likewise.
16214         * lib/sys_file.in.h (system_header): Likewise.
16215         * lib/sys_ioctl.in.h (system_header): Likewise.
16216         * lib/sys_socket.in.h (system_header): Likewise.
16217         * lib/sys_times.in.h (system_header): Likewise.
16218         * lib/sys_utsname.in.h (system_header): Likewise.
16219         * lib/sys_wait.in.h (system_header): Likewise.
16220         * lib/sysexits.in.h (system_header): Likewise.
16221         * lib/unistd.in.h (system_header): Likewise.
16222         * lib/wctype.in.h (system_header): Likewise.
16223
16224         arpa/inet: fix mingw compilation warning
16225         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16226         Reported by Matthew Bolte.
16227
16228 2010-03-25  Bruno Haible  <bruno@clisp.org>
16229
16230         Avoid collision between gnulib wrapper and libintl wrapper.
16231         * lib/printf.c (printf): Don't define if a printf wrapper is already
16232         defined in intl/printf.c.
16233         Reported by Michel Boaventura <michel@michelboaventura.com>.
16234
16235 2010-03-25  Bruno Haible  <bruno@clisp.org>
16236
16237         Use ANSI C.
16238         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16239
16240 2010-03-25  Bruno Haible  <bruno@clisp.org>
16241
16242         Minor formatting changes.
16243         * lib/acosl.c: Insert space before function argument list.
16244         * lib/argz.c: Likewise.
16245         * lib/asinl.c: Likewise.
16246         * lib/expl.c: Likewise.
16247         * lib/gen-uni-tables.c: Likewise.
16248         * lib/gettext.h: Likewise.
16249         * lib/glthread/lock.h: Likewise.
16250         * lib/tanl.c: Likewise.
16251         * lib/uniname/uniname.c: Likewise.
16252         * tests/test-idpriv-drop.c: Likewise.
16253         * tests/test-idpriv-droptemp.c: Likewise.
16254         * tests/test-lock.c: Likewise.
16255         * tests/test-tls.c: Likewise.
16256         * lib/argp-help.c: Insert space before function-like macro argument
16257         list.
16258         * lib/memcmp.c: Likewise.
16259         * tests/test-base64.c: Likewise.
16260         * lib/localename.c: Insert space before sizeof's argument list.
16261         * lib/safe-alloc.h: Likewise.
16262         * lib/file-set.h: Insert space before macro argument list.
16263         * tests/test-argp.c: Likewise.
16264         * lib/argp-namefrob.h: Insert space before function parameter list.
16265         * lib/getaddrinfo.c: Likewise.
16266         * lib/netdb.in.h: Likewise.
16267         * lib/parse-duration.h: Likewise.
16268         * lib/parse-duration.c: Likewise.
16269         * lib/poll.c: Likewise.
16270         * lib/select.c: Likewise.
16271         * lib/trim.h: Likewise.
16272         * tests/test-usleep.c: Likewise.
16273         * lib/ldexpl.c: Insert space before function parameter list and before
16274         function argument list.
16275         * lib/logl.c: Likewise.
16276         * lib/sqrtl.c: Likewise.
16277         * lib/trim.c: Likewise.
16278         * lib/cosl.c: Use GNU style indentation. Insert space before function
16279         argument list.
16280         * lib/sinl.c: Likewise.
16281         * lib/tsearch.c: Insert space after 'for'.
16282         Reported by Jim Meyering.
16283
16284 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16285
16286         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16287         config header before grepping, as it's not present before
16288         autoreconf/configure are run.  Reported by Simon Josefsson.
16289
16290 2010-03-23  Bruno Haible  <bruno@clisp.org>
16291
16292         pt_chown: Make it work with automake < 1.11.
16293         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16294         Reported by Simon Josefsson.
16295
16296 2010-03-23  Bruno Haible  <bruno@clisp.org>
16297
16298         pt_chown: Don't depend on GPLed modules.
16299         * lib/pt_chown.c: Don't include idpriv.h.
16300         (main): Don't drop privileges.
16301         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16302         Reported by Simon Josefsson.
16303
16304 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16305
16306         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16307         suggestions from karl@freefriends.org (Karl Berry).
16308
16309 2010-03-22  Eric Blake  <eblake@redhat.com>
16310
16311         gethostname: further tweaks
16312         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16313         are overriding gethostname.
16314         Suggested by Bruno Haible.
16315
16316 2010-03-21  Bruno Haible  <bruno@clisp.org>
16317
16318         Fix comments.
16319         * lib/forkpty.c (rpl_forkpty): Fix comment.
16320         * lib/openpty.c (rpl_openpty): Likewise.
16321         Reported by Eric Blake.
16322
16323 2010-03-22  Eric Blake  <eblake@redhat.com>
16324
16325         gethostname: fix build on mingw
16326         * lib/unistd.in.h (includes): Work around fact that mingw
16327         <winsock2.h> re-includes <unistd.h>, by avoiding any
16328         redeclarations if we are being included by <winsock2.h>.
16329         Reported by Matthias Bolte.
16330
16331 2010-03-21  Bruno Haible  <bruno@clisp.org>
16332
16333         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16334         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16335         modifications.
16336         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16337         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16338         provide the replacement.
16339         * modules/forkpty (Depends-on): Add openpty, login_tty.
16340         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16341         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16342         * doc/glibc-functions/forkpty.texi: More supported platforms.
16343         * config/srclist.txt: Add forkpty.c (commented).
16344
16345 2010-03-21  Bruno Haible  <bruno@clisp.org>
16346
16347         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16348         (Makefile.am): Verify that PTY_LIB is defined.
16349
16350         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16351
16352 2010-03-21  Bruno Haible  <bruno@clisp.org>
16353
16354         Tests for module 'login_tty'.
16355         * modules/login_tty-tests: New file.
16356         * tests/test-login_tty.c: New file.
16357
16358         New module 'login_tty'.
16359         * lib/login_tty.c: New file.
16360         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16361         * modules/login_tty: New file.
16362         * doc/glibc-functions/login_tty.texi: Mention the new module.
16363
16364 2010-03-21  Bruno Haible  <bruno@clisp.org>
16365
16366         login_tty: Documentation.
16367         * doc/glibc-functions/login_tty.texi: New file.
16368         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16369
16370 2010-03-21  Bruno Haible  <bruno@clisp.org>
16371
16372         pty: Consistent macro naming.
16373         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16374         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16375         * modules/pty (configure.ac): Update.
16376
16377 2010-03-21  Bruno Haible  <bruno@clisp.org>
16378
16379         Tests for openpty: Make stricter.
16380         * tests/test-openpty.c (main): Add test of canonical processing and
16381         erase.
16382         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16383
16384         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16385         * lib/openpty.c (openpty): New replacement function.
16386         * lib/pty.in.h: Include <termios.h>.
16387         (openpty): Update declaration. Add comments.
16388         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16389         is not declared, arrange to provide the replacement. Check for _getpty
16390         and posix_openpt.
16391         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16392         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16393         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16394         * modules/pty-tests (test_pty_c___LDADD): New variable.
16395         * doc/glibc-functions/openpty.texi: More supported platforms.
16396
16397 2010-03-21  Bruno Haible  <bruno@clisp.org>
16398
16399         setenv: Tweaks.
16400         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16401         the test program.
16402         * doc/posix-functions/setenv.texi: Update platforms list.
16403
16404 2010-03-21  Bruno Haible  <bruno@clisp.org>
16405
16406         New module 'unlockpt'.
16407         * lib/unlockpt.c: New file, from glibc with modifications.
16408         * m4/unlockpt.m4: New file.
16409         * modules/unlockpt: New file.
16410         * lib/stdlib.in.h (unlockpt): New declaration.
16411         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16412         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16413         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16414         HAVE_UNLOCKPT.
16415         * doc/posix-functions/unlockpt.texi: Mention the new module.
16416         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16417         * config/srclist.txt: Add unlockpt.c (commented).
16418
16419 2010-03-21  Jim Meyering  <meyering@redhat.com>
16420
16421         maint.mk: prohibit inclusion of "intprops.h" without use
16422         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16423
16424 2010-03-21  Bruno Haible  <bruno@clisp.org>
16425
16426         New module 'grantpt'.
16427         * lib/grantpt.c: New file, from glibc with modifications.
16428         * m4/grantpt.m4: New file.
16429         * modules/grantpt: New file.
16430         * lib/stdlib.in.h (grantpt): New declaration.
16431         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16432         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16433         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16434         HAVE_GRANTPT.
16435         * doc/posix-functions/grantpt.texi: Mention the new module.
16436         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16437         * config/srclist.txt: Add grantpt.c (commented).
16438
16439 2010-03-21  Bruno Haible  <bruno@clisp.org>
16440
16441         New module 'pt_chown'.
16442         * lib/pt_chown.c: New file, from glibc with modifications.
16443         * lib/pty-private.h: New file, from glibc with modifications.
16444         * modules/pt_chown: New file.
16445         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16446
16447 2010-03-21  Bruno Haible  <bruno@clisp.org>
16448
16449         Tests for module 'ptsname'.
16450         * modules/ptsname-tests: New file.
16451         * tests/test-ptsname.c: New file.
16452
16453         New module 'ptsname'.
16454         * lib/ptsname.c: New file, from glibc with modifications.
16455         * m4/ptsname.m4: New file.
16456         * modules/ptsname: New file.
16457         * lib/stdlib.in.h (ptsname): New declaration.
16458         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16459         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16460         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16461         HAVE_PTSNAME.
16462         * doc/posix-functions/ptsname.texi: Mention the new module.
16463         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16464         * config/srclist.txt: Add ptsname.c (commented).
16465
16466 2010-03-21  Bruno Haible  <bruno@clisp.org>
16467
16468         Tests for module 'ttyname_r'.
16469         * modules/ttyname_r-tests: New file.
16470         * tests/test-ttyname_r.c: New file.
16471
16472         New module 'ttyname_r'.
16473         * lib/ttyname_r.c: New file.
16474         * m4/ttyname_r.m4: New file.
16475         * modules/ttyname_r: New file.
16476         * lib/unistd.in.h (ttyname_r): New declaration.
16477         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16478         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16479         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16480         HAVE_TTYNAME_R.
16481         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16482         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16483
16484 2010-03-20  Bruno Haible  <bruno@clisp.org>
16485
16486         signal: Undefine macro definitions in C++ mode.
16487         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16488         sigfillset): Undefine macro definitions from the system header in C++
16489         mode.
16490         Reported by John W. Eaton <jwe@gnu.org>.
16491
16492 2010-03-20  Bruno Haible  <bruno@clisp.org>
16493
16494         Ensure no #include statements inside extern "C" { ... }.
16495         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16496         contain #include statements.
16497         * lib/time.in.h: Likewise.
16498
16499 2010-03-20  Bruno Haible  <bruno@clisp.org>
16500
16501         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16502         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16503         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16504         Reported by John W. Eaton <jwe@gnu.org>.
16505
16506 2010-03-20  Bruno Haible  <bruno@clisp.org>
16507
16508         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16509         Reported by Jim Meyering.
16510
16511 2010-03-20  Bruno Haible  <bruno@clisp.org>
16512
16513         pipe: Set errno upon failure.
16514         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16515         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16516         errno value in error message.
16517
16518 2010-03-20  Bruno Haible  <bruno@clisp.org>
16519             Jim Meyering  <meyering@redhat.com>
16520
16521         lchown: Avoid "unused variable" warning.
16522         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16523
16524 2010-03-20  Bruno Haible  <bruno@clisp.org>
16525
16526         Work around unlink() bug on MacOS X 10.5.6.
16527         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16528         attempting to unlink a parent directory.
16529         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16530         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16531         activate for the replacement function.
16532         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16533
16534 2010-03-20  Bruno Haible  <bruno@clisp.org>
16535
16536         Fix link errors on Solaris 8.
16537         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16538         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16539
16540 2010-03-19  Jim Meyering  <meyering@redhat.com>
16541
16542         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
16543         The _LIBC implementation of build_range_exp correctly honors the
16544         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
16545         However, the non-_LIBC implementation would ignore that syntax-bit
16546         flag and return REG_ERANGE unconditionally.
16547         This change makes it honor that flag.
16548         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
16549         Make two pointer parameters "const".
16550         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
16551         (parse_bracket_exp): Update caller.
16552
16553         regex.m4: correct the reversed range endpoint ([b-a]) test
16554         * m4/regex.m4: When requiring that [b-a] evoke failure,
16555         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
16556         test pass once again for x86-based systems.
16557
16558 2010-03-19  Bruno Haible  <bruno@clisp.org>
16559
16560         scandir: Fix link error on Solaris 8.
16561         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
16562         macros.
16563
16564 2010-03-19  Bruno Haible  <bruno@clisp.org>
16565
16566         getusershell: Fix documentation.
16567         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
16568         module.
16569         * doc/glibc-functions/setusershell.texi: Likewise.
16570
16571         getusershell: Provide declaration, missing on Solaris 9.
16572         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
16573         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
16574         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
16575         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
16576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16577         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
16578         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
16579         HAVE_GETUSERSHELL.
16580         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
16581
16582 2010-03-19  Bruno Haible  <bruno@clisp.org>
16583
16584         wctype: Provide iswblank function.
16585         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
16586         exists and is fine.
16587         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
16588         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
16589         * tests/test-wctype.c (main): Re-enable the iswblank tests.
16590         * doc/posix-functions/iswblank.texi: Update.
16591
16592 2010-03-19  Bruno Haible  <bruno@clisp.org>
16593
16594         Tests of module 'pty' in C++ mode.
16595         * modules/pty-tests: New file.
16596         * tests/test-pty-c++.cc: New file.
16597         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16598
16599 2010-03-19  Eric Blake  <eblake@redhat.com>
16600
16601         logb: fix documentation
16602         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
16603         1.5 declaration bug.
16604
16605         forkpty, openpty: prefer glibc's const-safe prototype
16606         * lib/forkpty.c (rpl_forkpty): New file.
16607         * lib/openpty.c (rpl_openpty): Likewise.
16608         * modules/forkpty (Files): Distribute it.
16609         * modules/openpty (Files): Likewise.
16610         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
16611         check...
16612         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
16613         replacement for for non-const BSD signature.
16614         * modules/pty (Makefile.am): Substitute witnesses.
16615         * lib/pty.in.h (forkpty, openpty): Declare replacements.
16616         * tests/test-forkpty.c: Update signature check.
16617         * tests/test-openpty.c: Likewise.
16618         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
16619         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16620
16621         forkpty, openpty: split functions into new modules
16622         * modules/pty (Makefile.am): Substitute new witnesses.
16623         (Libraries): Move library detection...
16624         * modules/forkpty: ...into new module.
16625         * modules/openpty: Another new module.
16626         * modules/pty-tests: Rename and split...
16627         * modules/forkpty-tests: ...to this...
16628         * modules/openpty-tests: ...and this.
16629         * tests/test-pty.c: Rename and split...
16630         * tests/test-forkpty.c: ...to this...
16631         * tests/test-openpty.c: ...and this.
16632         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
16633         (gl_PTY): Split library searching...
16634         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
16635         (gl_FORKPTY, gl_OPENPTY): New macros.
16636         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
16637         * NEWS: Mention the split.
16638         * MODULES.html.sh (Misc): Document the modules.
16639         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
16640         * doc/glibc-functions/openpty.texi (openpty): Likewise.
16641
16642         pty: improve replacement header
16643         * lib/pty.in.h: New file.
16644         * modules/pty (Files): Ship it.
16645         (Makefile.am): Always build replacement.
16646         * m4/pty.m4: Rename...
16647         * m4/pty_h.m4: ...to this.
16648         (gl_PTY): Modernize setting of witness macros; update check of
16649         forkpty to take proper advantage of cache.
16650         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
16651
16652         getopt: avoid compiler warning
16653         * lib/getopt.c (attribute_hidden): Remove unused macro.
16654
16655 2010-03-18  Bruno Haible  <bruno@clisp.org>
16656
16657         Fix link errors on Solaris 8.
16658         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
16659         * modules/search-tests (test_search_c___LDADD): Likewise.
16660         * modules/signal-tests (test_signal_c___LDADD): Likewise.
16661         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
16662         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
16663         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
16664         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
16665         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
16666         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
16667
16668 2010-03-18  Bruno Haible  <bruno@clisp.org>
16669
16670         Fix bug introduced on 2010-03-14.
16671         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
16672         (gl_SPAWN_H): Require it.
16673         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
16674         Reported by Simon Josefsson.
16675
16676 2010-03-18  Bruno Haible  <bruno@clisp.org>
16677
16678         Fix typo introduced on 2009-12-31.
16679         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
16680         posix_spawn_file_actions_adddup2.
16681
16682 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
16683         and Eric Blake  <eblake@redhat.com>
16684
16685         test-vc-list-files-git: make more robust
16686         * tests/test-vc-list-files-git.sh: Unset problematic environment
16687         variables.  Chain commands together.
16688
16689 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
16690
16691         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
16692         `AC_CHECK_DECL' invocation.
16693
16694 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
16695
16696         * lib/inttostr.c (inttostr): Make sure the invocation of verify
16697         appears before executable statements. Suggested by Petr Sumbera
16698         <Petr.Sumbera@Sun.COM>.
16699
16700 2010-03-14  Bruno Haible  <bruno@clisp.org>
16701
16702         * tests/test-flock.c (test_exclusive): Comment out a test that causes
16703         portability problems. Instead use a simpler test.
16704         (main): Check that invalid arguments are rejected only on Linux.
16705
16706 2010-03-14  Bruno Haible  <bruno@clisp.org>
16707
16708         Fix bug introduced on 2009-12-31.
16709         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
16710         gl_PREREQ_SYS_H_WINSOCK2 always.
16711         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
16712         SYS_SOCKET_H variable.
16713         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
16714         Update comments.
16715         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
16716         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
16717         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16718         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16719         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
16720
16721 2010-03-14  Bruno Haible  <bruno@clisp.org>
16722
16723         Fix values returned by sinl, cosl.
16724         * lib/trigl.h: Add specification comments.
16725         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
16726         that combines the values from the precomputed table with the values of
16727         the Chebyshev polynomials.
16728
16729 2010-03-14  Bruno Haible  <bruno@clisp.org>
16730
16731         Fix compilation error when modules 'posix_spawn[p]' are not used.
16732         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
16733         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
16734
16735 2010-03-14  Bruno Haible  <bruno@clisp.org>
16736
16737         Fix compilation error on mingw when module 'time_r' is not used.
16738         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
16739         is 1.
16740         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
16741         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16742         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
16743         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
16744
16745 2010-03-14  Bruno Haible  <bruno@clisp.org>
16746
16747         Fix compilation error with Sun C.
16748         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
16749         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
16750         instead of GCC specific ULONG_LONG_MAX.
16751         * lib/xstrtoll.c: Likewise.
16752         * lib/xstrtoull.c: Likewise.
16753
16754 2010-03-13  Bruno Haible  <bruno@clisp.org>
16755
16756         Allow the user to disable C++ code and tests.
16757         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
16758         (gl_PROG_ANSI_CXX): Require it.
16759
16760 2010-03-13  Bruno Haible  <bruno@clisp.org>
16761
16762         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
16763         cases.
16764
16765 2010-03-13  Bruno Haible  <bruno@clisp.org>
16766
16767         Test that gnulib does not break the standard C++ headers.
16768         * tests/test-locale-c++2.cc: New file.
16769         * modules/locale-tests (Files): Add it.
16770         (Makefile.am): Compile it for test-locale-c++.
16771         * tests/test-math-c++2.cc: New file.
16772         * modules/math-tests (Files): Add it.
16773         (Makefile.am): Compile it for test-math-c++.
16774         * tests/test-signal-c++2.cc: New file.
16775         * modules/signal-tests (Files): Add it.
16776         (Makefile.am): Compile it for test-signal-c++.
16777         * tests/test-stdio-c++2.cc: New file.
16778         * modules/stdio-tests (Files): Add it.
16779         (Makefile.am): Compile it for test-stdio-c++.
16780         * tests/test-stdlib-c++2.cc: New file.
16781         * modules/stdlib-tests (Files): Add it.
16782         (Makefile.am): Compile it for test-stdlib-c++.
16783         * tests/test-string-c++2.cc: New file.
16784         * modules/string-tests (Files): Add it.
16785         (Makefile.am): Compile it for test-string-c++.
16786         * tests/test-time-c++2.cc: New file.
16787         * modules/time-tests (Files): Add it.
16788         (Makefile.am): Compile it for test-time-c++.
16789         Reported by John W. Eaton <jwe@gnu.org>.
16790
16791 2010-03-13  Bruno Haible  <bruno@clisp.org>
16792
16793         * gnulib-tool (func_usage): Clarify which options are available for
16794         --create-testdir and --create-megatestdir.
16795
16796 2010-03-13  Bruno Haible  <bruno@clisp.org>
16797
16798         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
16799         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
16800         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
16801         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16802         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
16803         when appropriate.
16804         Reported by Jim Meyering.
16805
16806 2010-03-12  Simon Josefsson  <simon@josefsson.org>
16807
16808         * gnulib-tool (func_import): Explain origin of code.
16809
16810 2010-03-12  Bruno Haible  <bruno@clisp.org>
16811
16812         Fix problem with automake's definition of CXXLINK.
16813         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16814         Reported by Simon Josefsson and Ludovic Courtès.
16815
16816 2010-03-12  Bruno Haible  <bruno@clisp.org>
16817
16818         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16819         stable releases.
16820
16821 2010-03-11  Bruno Haible  <bruno@clisp.org>
16822
16823         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16824         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16825         whether the system provides one variant or multiple variants of the
16826         function.
16827         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16828         C++ compilers.
16829         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16830         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16831         Reported by Jim Meyering.
16832
16833 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16834
16835         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16836
16837 2010-03-08  Bruno Haible  <bruno@clisp.org>
16838
16839         gnulib-tool: Add support for --libtool in --create-testdir.
16840         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16841         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16842
16843 2010-03-08  Eric Blake  <eblake@redhat.com>
16844
16845         gnulib-tool.texi: mention possibility of git submodule
16846         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16847         submodules.
16848         * doc/.gitignore: Ignore another generated file.
16849
16850 2010-03-08  Karl Berry  <karl@gnu.org>
16851
16852         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16853         of committing gnulib files while skipping others.
16854
16855 2010-03-07  Bruno Haible  <bruno@clisp.org>
16856
16857         Tests of module 'wctype' in C++ mode.
16858         * tests/test-wctype-c++.cc: New file.
16859         * modules/wctype-tests (Files): Add it and tests/signature.h.
16860         (Depends-on): Add ansi-c++-opt.
16861         (Makefile.am): Arrange to compile and run test-wctype-c++.
16862
16863         Tests of module 'wchar' in C++ mode.
16864         * tests/test-wchar-c++.cc: New file.
16865         * modules/wchar-tests (Files): Add it and tests/signature.h.
16866         (Depends-on): Add ansi-c++-opt.
16867         (Makefile.am): Arrange to compile and run test-wchar-c++.
16868         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16869         gl_MODULE_INDICATOR.
16870
16871         Tests of module 'unistd' in C++ mode.
16872         * tests/test-unistd-c++.cc: New file.
16873         * modules/unistd-tests (Files): Add it and tests/signature.h.
16874         (Depends-on): Add ansi-c++-opt.
16875         (Makefile.am): Arrange to compile and run test-unistd-c++.
16876         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16877         gl_MODULE_INDICATOR.
16878
16879         Tests of module 'time' in C++ mode.
16880         * tests/test-time-c++.cc: New file.
16881         * modules/time-tests (Files): Add it and tests/signature.h.
16882         (Depends-on): Add ansi-c++-opt.
16883         (Makefile.am): Arrange to compile and run test-time-c++.
16884         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16885
16886         Tests of module 'sys_time' in C++ mode.
16887         * tests/test-sys_time-c++.cc: New file.
16888         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16889         (Depends-on): Add ansi-c++-opt.
16890         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16891         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16892         gl_MODULE_INDICATOR.
16893
16894         Tests of module 'sys_stat' in C++ mode.
16895         * tests/test-sys_stat-c++.cc: New file.
16896         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16897         (Depends-on): Add ansi-c++-opt.
16898         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16899         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16900         gl_MODULE_INDICATOR.
16901
16902         Tests of module 'sys_socket' in C++ mode.
16903         * tests/test-sys_socket-c++.cc: New file.
16904         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16905         (Depends-on): Add ansi-c++-opt.
16906         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16907         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16908         gl_MODULE_INDICATOR.
16909
16910         Tests of module 'sys_select' in C++ mode.
16911         * tests/test-sys_select-c++.cc: New file.
16912         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16913         (Depends-on): Add ansi-c++-opt.
16914         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16915         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16916         gl_MODULE_INDICATOR.
16917
16918         Tests of module 'sys_ioctl' in C++ mode.
16919         * tests/test-sys_ioctl-c++.cc: New file.
16920         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16921         (Depends-on): Add ansi-c++-opt.
16922         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16923         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16924         gl_MODULE_INDICATOR.
16925
16926         Tests of module 'string' in C++ mode.
16927         * tests/test-string-c++.cc: New file.
16928         * modules/string-tests (Files): Add it and tests/signature.h.
16929         (Depends-on): Add ansi-c++-opt.
16930         (Makefile.am): Arrange to compile and run test-string-c++.
16931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16932         gl_MODULE_INDICATOR.
16933
16934         Tests of module 'stdlib' in C++ mode.
16935         * tests/test-stdlib-c++.cc: New file.
16936         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16937         (Depends-on): Add ansi-c++-opt.
16938         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16939         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16940         gl_MODULE_INDICATOR.
16941
16942         Tests of module 'stdio' in C++ mode.
16943         * tests/test-stdio-c++.cc: New file.
16944         * modules/stdio-tests (Files): Add it and tests/signature.h.
16945         (Depends-on): Add ansi-c++-opt.
16946         (Makefile.am): Arrange to compile and run test-stdio-c++.
16947         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16948         gl_MODULE_INDICATOR.
16949
16950         Tests of module 'spawn' in C++ mode.
16951         * tests/test-spawn-c++.cc: New file.
16952         * modules/spawn-tests (Files): Add it and tests/signature.h.
16953         (Depends-on): Add ansi-c++-opt.
16954         (Makefile.am): Arrange to compile and run test-spawn-c++.
16955         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16956         gl_MODULE_INDICATOR.
16957
16958         Tests of module 'signal' in C++ mode.
16959         * tests/test-signal-c++.cc: New file.
16960         * modules/signal-tests (Files): Add it and tests/signature.h.
16961         (Depends-on): Add ansi-c++-opt.
16962         (Makefile.am): Arrange to compile and run test-signal-c++.
16963         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16964         gl_MODULE_INDICATOR.
16965
16966         Tests of module 'search' in C++ mode.
16967         * tests/test-search-c++.cc: New file.
16968         * modules/search-tests (Files): Add it and tests/signature.h.
16969         (Depends-on): Add ansi-c++-opt.
16970         (Makefile.am): Arrange to compile and run test-search-c++.
16971         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16972         gl_MODULE_INDICATOR.
16973
16974         Tests of module 'math' in C++ mode.
16975         * tests/test-math-c++.cc: New file.
16976         * modules/math-tests (Files): Add it and tests/signature.h.
16977         (Depends-on): Add ansi-c++-opt.
16978         (Makefile.am): Arrange to compile and run test-math-c++.
16979         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16980
16981         Tests of module 'locale' in C++ mode.
16982         * tests/test-locale-c++.cc: New file.
16983         * modules/locale-tests (Files): Add it and tests/signature.h.
16984         (Depends-on): Add ansi-c++-opt.
16985         (Makefile.am): Arrange to compile and run test-locale-c++.
16986         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16987         gl_MODULE_INDICATOR.
16988
16989         Tests of module 'langinfo' in C++ mode.
16990         * tests/test-langinfo-c++.cc: New file.
16991         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16992         (Depends-on): Add ansi-c++-opt.
16993         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16994         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16995         gl_MODULE_INDICATOR.
16996
16997         Tests of module 'iconv-h' in C++ mode.
16998         * tests/test-iconv-h-c++.cc: New file.
16999         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17000         (Depends-on): Add ansi-c++-opt.
17001         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17002
17003         Tests of module 'glob' in C++ mode.
17004         * tests/test-glob-c++.cc: New file.
17005         * modules/glob-tests (Files): Add it.
17006         (Depends-on): Add ansi-c++-opt.
17007         (Makefile.am): Arrange to compile and run test-glob-c++.
17008
17009         Tests of module 'fcntl-h' in C++ mode.
17010         * tests/test-fcntl-h-c++.cc: New file.
17011         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17012         (Depends-on): Add ansi-c++-opt.
17013         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17014         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17015         gl_MODULE_INDICATOR.
17016
17017         Tests of module 'dirent' in C++ mode.
17018         * tests/test-dirent-c++.cc: New file.
17019         * modules/dirent-tests (Files): Add it and tests/signature.h.
17020         (Depends-on): Add ansi-c++-opt.
17021         (Makefile.am): Arrange to compile and run test-dirent-c++.
17022         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17023         gl_MODULE_INDICATOR.
17024
17025         New module 'ansi-c++-opt'.
17026         * modules/ansi-c++-opt: New file.
17027         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17028
17029         Document C++ namespace mode.
17030         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17031
17032         wctype: Avoid #define replacements in C++ mode.
17033         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17034         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17035         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17036         In C++, define a namespaced alias symbol.
17037         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17038         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17039         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17040         rule.
17041
17042         wchar: Avoid #define replacements in C++ mode.
17043         * lib/wchar.in.h: Include c++defs.h.
17044         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17045         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17046         symbol.
17047         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17048         * modules/wchar (Depends-on): Add c++defs.
17049         (Makefile.am): Update wchar.h rule.
17050
17051         unistd: Avoid #define replacements in C++ mode.
17052         * lib/unistd.in.h: Include c++defs.h.
17053         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17054         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17055         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17056         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17057         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17058         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17059         symbol.
17060         (environ): Update.
17061         * modules/unistd (Depends-on): Add c++defs.
17062         (Makefile.am): Update unistd.h rule.
17063
17064         time: Avoid #define replacements in C++ mode.
17065         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17066         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17067         define a namespaced alias symbol.
17068         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17069         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17070         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17071         * modules/time (Depends-on): Add c++defs, warn-on-use.
17072         (Makefile.am): Update time.h rule.
17073         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17074         * modules/nanosleep (configure.ac): Likewise.
17075         * modules/strptime (configure.ac): Likewise.
17076         * modules/timegm (configure.ac): Likewise.
17077
17078         sys_time: Avoid #define replacements in C++ mode.
17079         * lib/sys_time.in.h: Include c++defs.h.
17080         (gettimeofday): In C++, define a namespaced alias symbol.
17081         * modules/sys_time (Depends-on): Add c++defs.
17082         (Makefile.am): Update sys/time.h rule.
17083
17084         sys_stat: Avoid #define replacements in C++ mode.
17085         * lib/sys_stat.in.h: Include c++defs.h.
17086         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17087         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17088         namespaced alias symbol.
17089         In C++, define a namespaced alias symbol.
17090         * modules/sys_stat (Depends-on): Add c++defs.
17091         (Makefile.am): Update sys/stat.h rule.
17092
17093         sys_socket: Avoid #define replacements in C++ mode.
17094         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17095         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17096         definitions also when the system has a <sys/socket.h>.
17097         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17098         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17099         In C++, define a namespaced alias symbol.
17100         * modules/sys_socket (Depends-on): Add c++defs.
17101         (Makefile.am): Update sys/socket.h rule.
17102
17103         sys_select: Avoid #define replacements in C++ mode.
17104         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17105         definitions also when the system has a <sys/select.h>.
17106         (select): In C++, define a namespaced alias symbol.
17107         * modules/sys_select (Depends-on): Add c++defs.
17108         (Makefile.am): Update sys/select.h rule.
17109
17110         sys_ioctl: Avoid #define replacements in C++ mode.
17111         * lib/sys_ioctl.in.h: Include c++defs.h.
17112         (ioctl): In C++, define a namespaced alias symbol.
17113         * modules/sys_ioctl (Depends-on): Add c++defs.
17114         (Makefile.am): Update sys/ioctl.h rule.
17115
17116         string: Avoid #define replacements in C++ mode.
17117         * lib/string.in.h: Include c++defs.h.
17118         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17119         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17120         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17121         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17122         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17123         * modules/string (Depends-on): Add c++defs.
17124         (Makefile.am): Update string.h rule.
17125
17126         stdlib: Avoid #define replacements in C++ mode.
17127         * lib/stdlib.in.h: Include c++defs.h.
17128         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17129         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17130         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17131         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17132         symbol.
17133         * modules/stdlib (Depends-on): Add c++defs.
17134         (Makefile.am): Update stdlib.h rule.
17135
17136         stdio: Avoid #define replacements in C++ mode.
17137         * lib/stdio.in.h: Include c++defs.h.
17138         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17139         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17140         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17141         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17142         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17143         namespaced alias symbol.
17144         * modules/stdio (Depends-on): Add c++defs.
17145         (Makefile.am): Update stdio.h rule.
17146
17147         spawn: Avoid #define replacements in C++ mode.
17148         * lib/spawn.in.h: Include c++defs.h.
17149         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17150         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17151         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17152         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17153         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17154         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17155         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17156         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17157         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17158         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17159         In C++, define a namespaced alias symbol.
17160         * modules/spawn (Depends-on): Add c++defs.
17161         (Makefile.am): Update spawn.h rule.
17162
17163         signal: Avoid #define replacements in C++ mode.
17164         * lib/signal.in.h: Include c++defs.h.
17165         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17166         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17167         namespaced alias symbol.
17168         * modules/signal (Depends-on): Add c++defs.
17169         (Makefile.am): Update signal.h rule.
17170
17171         search: Avoid #define replacements in C++ mode.
17172         * lib/search.in.h: Include c++defs.h.
17173         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17174         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17175         symbol.
17176         * modules/search (Depends-on): Add c++defs.
17177         (Makefile.am): Update search.h rule.
17178
17179         math: Avoid #define replacements in C++ mode.
17180         * lib/math.in.h: Include c++defs.h.
17181         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17182         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17183         trunc, truncl): In C++, define a namespaced alias symbol.
17184         * modules/math (Depends-on): Add c++defs.
17185         (Makefile.am): Update math.h rule.
17186
17187         locale: Avoid #define replacements in C++ mode.
17188         * lib/locale.in.h: Include c++defs.h.
17189         (duplocale): In C++, define a namespaced alias symbol.
17190         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17191         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17192         * modules/locale (Depends-on): Add c++defs.
17193         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17194
17195         langinfo: Avoid #define replacements in C++ mode.
17196         * lib/langinfo.in.h: Include c++defs.h.
17197         (nl_langinfo): In C++, define a namespaced alias symbol.
17198         * modules/langinfo (Depends-on): Add c++defs.
17199         (Makefile.am): Update langinfo.h rule.
17200
17201         iconv-h: Avoid #define replacements in C++ mode.
17202         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17203         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17204         symbol.
17205         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17206         whenever iconv is present.
17207         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17208         (Makefile.am): Update iconv.h rule.
17209
17210         glob: Avoid #define replacements in C++ mode.
17211         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17212         (_gl_glob_errfunc_fn): New type.
17213         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17214         symbol.
17215         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17216         (Makefile.am): Update glob.h rule.
17217
17218         fcntl-h: Avoid #define replacements in C++ mode.
17219         * lib/fcntl.in.h: Include c++defs.h.
17220         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17221         * modules/fcntl-h (Depends-on): Add c++defs.
17222         (Makefile.am): Update fcntl.h rule.
17223
17224         dirent: Avoid #define replacements in C++ mode.
17225         * lib/dirent.in.h: Include c++defs.h.
17226         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17227         namespaced alias symbol.
17228         (dirfd): Update declaration.
17229         * modules/dirent (Depends-on): Add c++defs.
17230         (Makefile.am): Update dirent.h rule.
17231
17232         ctype: Make it usable in C++ code.
17233         * lib/ctype.in.h: Include c++defs.h.
17234         (isblank): Declare as extern "C".
17235         * modules/ctype (Depends-on): Add c++defs.
17236         (Makefile.am): Update ctype.h rule.
17237
17238         New module 'c++defs'.
17239         * modules/c++defs: New file.
17240         * build-aux/c++defs.h: New file.
17241         Reported by John W. Eaton <jwe@gnu.org>.
17242
17243 2010-03-07  Bruno Haible  <bruno@clisp.org>
17244
17245         logb: Provide missing declaration for Cygwin.
17246         * lib/math.in.h (logb): New declaration.
17247         * m4/logb.m4: New file.
17248         * modules/logb (Files): Add m4/logb.m4.
17249         (Depends-on): Add math.
17250         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17251         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17253         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17254         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17255
17256 2010-03-07  Bruno Haible  <bruno@clisp.org>
17257
17258         Fix test-cond link error.
17259         * tests/test-cond.c: Include <stdio.h>.
17260
17261 2010-03-07  Bruno Haible  <bruno@clisp.org>
17262
17263         Fix test-dirent-safer link error.
17264         * modules/dirent-safer-tests (Makefile.am): Define
17265         test_dirent_safer_LDADD.
17266
17267 2010-03-07  Bruno Haible  <bruno@clisp.org>
17268
17269         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17270         among default module list.
17271
17272 2010-03-07  Bruno Haible  <bruno@clisp.org>
17273
17274         Fix link error on platforms with GNU libiconv.
17275         * modules/unistr/u8-strcoll-tests (Makefile): Define
17276         test_u8_strcoll_LDADD.
17277         * modules/unistr/u16-strcoll-tests (Makefile): Define
17278         test_u16_strcoll_LDADD.
17279         * modules/unistr/u32-strcoll-tests (Makefile): Define
17280         test_u32_strcoll_LDADD.
17281
17282 2010-03-07  Bruno Haible  <bruno@clisp.org>
17283
17284         Use POSIX declarations for socket functions.
17285         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17286         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17287         rpl_sendto): Change declaration to match POSIX.
17288         * lib/connect.c (rpl_connect): Likewise.
17289         * lib/accept.c (rpl_accept): Likewise.
17290         * lib/bind.c (rpl_bind): Likewise.
17291         * lib/getpeername.c (rpl_getpeername): Likewise.
17292         * lib/getsockname.c (rpl_getsockname): Likewise.
17293         * lib/recv.c (rpl_recv): Likewise.
17294         * lib/send.c (rpl_send): Likewise.
17295         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17296         * lib/sendto.c (rpl_sendto): Likewise.
17297
17298 2010-03-06  Bruno Haible  <bruno@clisp.org>
17299
17300         Clarify access, euidaccess, faccessat.
17301         * doc/posix-functions/faccessat.texi: Mention security problem under
17302         "Other problems", not "Portability problems".
17303         * doc/posix-functions/access.texi: Likewise. Mention a related security
17304         problem.
17305         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17306         * lib/euidaccess.c: Add comments about platforms.
17307         * lib/unistd.in.h (access, euidaccess): Add warnings.
17308
17309 2010-03-07  Bruno Haible  <bruno@clisp.org>
17310
17311         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17312         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17313         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17314         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17315         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17316         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17317         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17318         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17319         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17321         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17322         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17323         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17324         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17325         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17326         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17327         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17328         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17329         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17330         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17331         Likewise.
17332         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17333         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17334         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17335         Likewise.
17336         * tests/test-spawn.c (main): Make it work when
17337         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17338
17339 2010-03-07  Bruno Haible  <bruno@clisp.org>
17340
17341         Fix incorrect Makefile.am generation in German locale.
17342         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17343         Execute sed command with character range in C locale.
17344
17345 2010-03-06  Bruno Haible  <bruno@clisp.org>
17346
17347         Tests for module 'iconv-h'.
17348         * modules/iconv-h-tests: New file.
17349         * tests/test-iconv-h.c: New file.
17350
17351         New module 'iconv-h'.
17352         * modules/iconv-h: New file.
17353         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17354         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17355         (configure.ac): Remove gl_ICONV_H.
17356         (Makefile.am): Remove rule for iconv.h.
17357
17358 2010-03-06  Bruno Haible  <bruno@clisp.org>
17359
17360         More consistent naming of *.m4 files.
17361         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17362         * modules/wctype (Files): Update.
17363
17364         More consistent naming of *.m4 files.
17365         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17366         * modules/wchar (Files): Update.
17367
17368 2010-03-06  Jim Meyering  <meyering@redhat.com>
17369
17370         euidaccess: relax license to LGPLv2+
17371         * modules/euidaccess (License): Relax to LGPLv2+.
17372
17373 2010-03-06  Bruno Haible  <bruno@clisp.org>
17374
17375         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17376         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17377         (Makefile.am): Augment lib_SOURCES instead.
17378
17379 2010-03-04  Jim Meyering  <meyering@redhat.com>
17380
17381         utime: remove obsolete module
17382         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17383         unnecessary for years, and has been marked as obsolete for 10 months.
17384         * modules/utime: Remove file.
17385         * lib/utime.c: Remove file.
17386         * m4/utime.m4: Remove file.
17387         * m4/utimes-null.m4: Remove file.
17388         * doc/posix-functions/utime.texi (utime): Remove reference to
17389         the module.  Move the sole "fixed by gnulib" item into the
17390         "problems not fixed by Gnulib" list.
17391         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17392
17393 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17394
17395         * modules/exit (License): Relax license to LGPLv2+.
17396         (Status): Mark as obsolete.
17397         * NEWS: Mention deprecated 'exit' module.
17398         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17399         of now obsolete 'exit'.
17400
17401 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17402
17403         fts-lgpl: remove unused module
17404         * modules/fts-lgpl: Remove.
17405         * MODULES.html.sh (func_all_modules): Adjust.
17406         * check-module (find_included_lib_files): Adjust.
17407         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17408
17409 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17410
17411         copy-acl: enhance Solaris ACL error handling
17412         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17413         * lib/set-mode-acl.c (qset_acl): Likewise.
17414
17415 2010-03-02  Bruno Haible  <bruno@clisp.org>
17416
17417         spawn: Don't override the system defined values on FreeBSD 8.
17418         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17419         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17420         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17421         if HAVE_POSIX_SPAWN is 1.
17422         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17423
17424 2010-03-01  Bruno Haible  <bruno@clisp.org>
17425
17426         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17427         regarding Automake.
17428
17429 2010-02-25  Bruno Haible  <bruno@clisp.org>
17430
17431         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17432         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17433         setting, not afterwards.
17434         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17435
17436 2010-02-24  Eric Blake  <eblake@redhat.com>
17437
17438         bootstrap, git-version-gen: use timestamp
17439         * build-aux/git-version-gen (scriptversion): Force UTC.
17440         * build-aux/bootstrap (scriptversion): New variable.
17441
17442         bootstrap: allow older git
17443         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17444         older than 1.6.4.  Requested by the libvirt project.
17445
17446 2010-02-23  Eric Blake  <eblake@redhat.com>
17447
17448         warn-on-use: work with old autoconf
17449         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17450         AS_VAR semantics of autoconf 2.60.
17451         Reported by Bruno Haible.
17452
17453         bootstrap: improve some comments
17454         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17455         clarification comments.
17456
17457         gettimeofday: provide correct function
17458         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17459         when replacement is declared, otherwise provide gettimeofday.
17460         Reported by Michael Goffioul.
17461
17462 2010-02-23  Jim Meyering  <meyering@redhat.com>
17463
17464         lib-ignore: relax license to "unlimited", not LGPLv2+
17465         * modules/lib-ignore (License): Relax to "unlimited".
17466
17467 2010-02-23  Jim Meyering  <meyering@redhat.com>
17468
17469         lib-ignore: relax license to LGPLv2+
17470         * modules/lib-ignore (License): Relax to LGPLv2+.
17471
17472 2010-02-22  Eric Blake  <eblake@redhat.com>
17473
17474         lseek: avoid bash 3.2 broken pipe bug
17475         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17476         warning from bash 3.2.
17477         Reported by Ben Pfaff, with analysis from Bruno Haible.
17478
17479         bootstrap: support non-FSF copyright holder
17480         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17481         bootstrap.conf override of COPYRIGHT_HOLDER.
17482         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17483
17484         bootstrap: interoperate with gettext 0.14.1
17485         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17486
17487         bootstrap: allow for alternate submodule location
17488         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17489         hardcoding submodule location.
17490         (gnulib_mk): Allow direct use of Makefile.am.
17491
17492         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17493         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17494         rather than reconfiguring where the submodule points.
17495
17496         gettimeofday: restore support for platforms that lack function
17497         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17498         replacement if function is missing.
17499         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17500         * modules/sys_time (Makefile.am): Substitute it.
17501         * lib/sys_time.in.h (gettimeofday): Check it.
17502         Reported by Michael Goffioul.
17503
17504 2010-02-21  Bruno Haible  <bruno@clisp.org>
17505
17506         * lib/stdio.in.h (obstack_printf): Fix typo.
17507
17508 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17509
17510         vc-list-files: use bzr ls's -R option
17511         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17512         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17513
17514 2010-02-21  Jim Meyering  <meyering@redhat.com>
17515
17516         init.sh: fix EXEEXT shims to work also for names like test-prog
17517         * tests/init.sh: Re-exec a better shell, when needed.
17518         If the current shell lacks support for posix $(...), an init.sh-using
17519         test will now try to find a shell that supports that.  If EXEEXT is
17520         nonempty, we also require support for hyphen-in-alias-name and shell
17521         substitutions like ${var#glob}.  Failure to find such a shell results
17522         in a skipped test.
17523
17524 2010-02-21  Bruno Haible  <bruno@clisp.org>
17525
17526         Really work around around "broken pipe" error message from bash 3.2.
17527         * gnulib-tool (func_reset_sigpipe): Remove function.
17528         (echo): In bash 3.2, define to a function that uses printf.
17529         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17530
17531 2010-02-20  Bruno Haible  <bruno@clisp.org>
17532
17533         Restore support for automake 1.9.6 with autoconf 2.61.
17534         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17535         Reported by James Youngman <jay@gnu.org>.
17536
17537 2010-02-20  Bruno Haible  <bruno@clisp.org>
17538
17539         Improve *printf warning condition.
17540         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17541         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
17542         and the function is overridden due to SIGPIPE emulation.
17543
17544 2010-02-20  Bruno Haible  <bruno@clisp.org>
17545
17546         * lib/stdio.in.h: Tweak comments.
17547
17548 2010-02-19  Bruno Haible  <bruno@clisp.org>
17549
17550         Make it easier to find modules. New gnulib-tool option '--find'.
17551         * gnulib-tool: New option --find.
17552         (func_usage): Document it.
17553         (func_sanitize_modulelist): New function, extracted from
17554         func_all_modules.
17555         (func_all_modules): Invoke it.
17556         * doc/gnulib-tool.texi (Which modules?): New node.
17557
17558 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
17559
17560         * lib/sys_select.in.h: Provide select replacement even if
17561         sys/select.h exists on a system, for Interix.
17562
17563 2010-02-18  Jim Meyering  <meyering@redhat.com>
17564
17565         init.sh: don't use $(...) just yet
17566         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
17567         to accommodate e.g., Solaris' /bin/sh.
17568
17569 2010-02-17  Bruno Haible  <bruno@clisp.org>
17570
17571         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
17572         Reported by Ludovic Courtès <ludo@gnu.org>.
17573
17574 2010-02-16  Simon Josefsson  <simon@josefsson.org>
17575
17576         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
17577         linking with -lintl.
17578
17579 2010-02-17  Simon Josefsson  <simon@josefsson.org>
17580
17581         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
17582         if not provided by the system's netdb.h.  Reported by
17583         ludo@gnu.org (Ludovic Courtès).
17584
17585 2010-02-15  Jim Meyering  <meyering@redhat.com>
17586
17587         init.sh: improve portability and efficiency
17588         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
17589         "dummy" in a for loop.
17590         Use '!', not '^' to select the complement of a character set used
17591         in a "case" statement.
17592         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
17593         Suggestions from Eric Blake.
17594
17595         init.sh: automatically accommodate programs with the .exe suffix
17596         Automatically arrange for an invocation of "prog" to execute the
17597         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
17598         may use the simpler "prog", yet still work when built on a system
17599         that requires specifying the added suffix.
17600         Do this by constructing a function named "prog" that invokes
17601         "prog.exe" for each .exe file in selected directories.
17602         * tests/init.sh (find_exe_basenames_): New function.
17603         (create_exe_shim_functions_): New function.
17604         (path_prepend_): Use it.
17605
17606         maint.mk: mark syntax-check sc_*.m rules as .PHONY
17607         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
17608         "make -t syntax-check" doesn't create a ton of sc_*.m files.
17609
17610 2010-02-14  Jim Meyering  <meyering@redhat.com>
17611
17612         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
17613         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
17614         (sc_prohibit_hash_pjw_without_use): New rule.
17615
17616         maint.mk: allow the default upload destination dir to be overridden
17617         * top/maint.mk (upload_dest_dir_): Define with a default that
17618         preserves the status quo.
17619         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
17620         Reported by Peter Simons.
17621
17622         maint.mk: prohibit inclusion of "hash.h" without_use
17623         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
17624
17625 2010-02-10  Jim Meyering  <meyering@redhat.com>
17626
17627         maint.mk: prohibit inclusion of "ignore-value.h" without_use
17628         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
17629
17630 2010-02-09  Eric Blake  <ebb9@byu.net>
17631         and Bruno Haible  <bruno@clisp.org>
17632
17633         obstack-printf-posix: ensure declaration
17634         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
17635         extracted from gl_FUNC_OBSTACK_PRINTF.
17636         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
17637         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17638         Likewise.
17639         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
17640         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
17641         0.
17642
17643 2010-02-08  Bruno Haible  <bruno@clisp.org>
17644
17645         gnulib-tool: Fix typo in 2010-02-07 commit.
17646         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
17647         Reported by Eric Blake.
17648
17649 2010-02-07  Bruno Haible  <bruno@clisp.org>
17650
17651         gnulib-tool: Fix up caching patches.
17652         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
17653         option --no-cache. Use associative arrays when supported by the shell.
17654         (sed_comments): New variable.
17655         (modcache): Renamed from do_cache.
17656         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
17657         abbreviate unnecessarily.
17658         (have_associative): New variable.
17659         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
17660         way also for ksh and zsh.
17661         (func_init_sed_convert_to_cache_statements): New function, extracted
17662         from func_cache_lookup_module. Add support for associative arrays.
17663         Don't set the c_MODULE_cached variable here. Ignore all lines before
17664         the first field header. Remove only the final newline, not all trailing
17665         newlines. Support empty fields correctly. Limit the use of 'eval' to
17666         assignments.
17667         (func_get_description, func_get_status, func_get_notice,
17668         func_get_applicability, func_get_filelist, func_get_dependencies,
17669         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
17670         func_get_automake_snippet, func_get_include_directive,
17671         func_get_link_directive, func_get_license, func_get_maintainer):
17672         Update documentation. List the unoptimized code first. Add support for
17673         associative arrays. Limit the use of 'eval' to assignments.
17674         (func_get_applicability): Undo stylistic pessimisations.
17675         (func_get_automake_snippet, func_get_include_directive): Reduce code
17676         duplication.
17677         (func_modules_transitive_closure, func_modules_add_dummy,
17678         func_modules_notice, func_modules_to_filelist, func_add_file,
17679         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
17680         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
17681         func_create_testdir, func_create_megatestdir): Update documentation.
17682
17683 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17684
17685         * gnulib-tool (func_cache_lookup_module): Store the module name
17686         belonging to the cache variable; error out if two different
17687         module names map to the same cache variable name.
17688
17689 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17690
17691         gnulib-tool: Make caching optional.
17692         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
17693         Update matching short versions of --no-changelog.
17694         (func_usage): Update.
17695         (sed_extract_cache_prog): Renamed from ...
17696         (sed_extract_prog): ... this; revert to old extraction script.
17697         (func_get_description, func_get_status)
17698         (func_get_notice, func_get_applicability, func_get_filelist)
17699         (func_get_dependencies, func_get_autoconf_early_snippet)
17700         (func_get_autoconf_snippet, func_get_automake_snippet)
17701         (func_get_include_directive, func_get_link_directive)
17702         (func_get_license, func_get_maintainer): If $do_cache is false,
17703         use old, non-caching extraction scripts.
17704         Suggestion by Bruno Haible.
17705
17706 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17707
17708         gnulib-tool: cache module metainformation.
17709         * gnulib-tool (sed_extract_prog): Match newline before each
17710         header, and rewrite header to a shell variable suffix.
17711         (func_cache_var, func_cache_lookup_module): New functions,
17712         to turn a module name into a cache variable prefix, and to
17713         look up and cache module metainformation.
17714         (func_get_description, func_get_status)
17715         (func_get_notice, func_get_applicability, func_get_filelist)
17716         (func_get_dependencies, func_get_autoconf_early_snippet)
17717         (func_get_autoconf_snippet, func_get_automake_snippet)
17718         (func_get_include_directive, func_get_link_directive)
17719         (func_get_license, func_get_maintainer): Use
17720         func_cache_lookup_module.
17721
17722 2010-02-07  Bruno Haible  <bruno@clisp.org>
17723
17724         fnctl: Fix missing dependency.
17725         * modules/fcntl (Depends-on): Add getdtablesize.
17726         Reported by John W. Eaton <jwe@gnu.org>.
17727
17728 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17729
17730         Argp: fix recognition of short alias options.
17731
17732         * lib/argp-parse.c (convert_options): Fix improper use of
17733         `|' between character values.
17734         * tests/test-argp.c (group1_option): New alias option
17735         --read (-r).
17736         (group1_parser): Special handling for 'r'.
17737         (test15): New test case.
17738         (test_fun): Add test15.
17739         * tests/test-argp-2.sh: Update expected --help and --usage
17740         outputs.
17741
17742 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
17743
17744         * tests/test-argp.c: Fix indentation.
17745
17746 2010-02-04  Eric Blake  <ebb9@byu.net>
17747
17748         gettimeofday: expose type of second argument
17749         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
17750         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
17751         * tests/test-gettimeofday.c: Use it to silence warning.
17752         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
17753         the issue.
17754
17755 2010-02-03  Jim Meyering  <meyering@redhat.com>
17756
17757         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
17758         * lib/regcomp.c (TYPE_SIGNED): Define.
17759         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
17760
17761         regcomp.c: avoid a new -Wshadow warning
17762         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
17763
17764 2010-02-01  Jim Meyering  <meyering@redhat.com>
17765
17766         removing useless parentheses in cpp #define directives
17767         For motivation, see commit c0221df4, "define STREQ(a,b)
17768         consistently, removing useless parentheses"
17769         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
17770         * lib/mountlist.c (MNT_IGNORE): Likewise.
17771         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
17772
17773 2010-02-01  Eric Blake  <ebb9@byu.net>
17774
17775         sys_time: use link-warning
17776         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
17777         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
17778         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
17779         * modules/sys_time (Depends-on): Add warn-on-use.
17780         (Makefile.am): Always build replacement.
17781         (configure.ac): Update substitutions.
17782         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
17783         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
17784         bother with SYS_TIME_H.
17785         * modules/gettimeofday (configure.ac): Declare indicator.
17786         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
17787         in use.
17788
17789         closein-tests: silence compiler warning
17790         * tests/test-closein.c (main): Ignore fread result.
17791         * modules/closein-tests (Depends-on): Add ignore-value.
17792
17793         tests: silence warning about system return
17794         * tests/test-areadlink-with-size.c (main): Ignore system result.
17795         * tests/test-areadlink.c (main): Likewise.
17796         * tests/test-areadlinkat-with-size.c (main): Likewise.
17797         * tests/test-areadlinkat.c (main): Likewise.
17798         * tests/test-canonicalize-lgpl.c (main): Likewise.
17799         * tests/test-canonicalize.c (main): Likewise.
17800         * tests/test-chown.c (main): Likewise.
17801         * tests/test-fchownat.c (main): Likewise.
17802         * tests/test-fdutimensat.c (main): Likewise.
17803         * tests/test-fstatat.c (main): Likewise.
17804         * tests/test-futimens.c (main): Likewise.
17805         * tests/test-lchown.c (main): Likewise.
17806         * tests/test-link.c (main): Likewise.
17807         * tests/test-linkat.c (main): Likewise.
17808         * tests/test-lstat.c (main): Likewise.
17809         * tests/test-mkdir.c (main): Likewise.
17810         * tests/test-mkdirat.c (main): Likewise.
17811         * tests/test-mkfifo.c (main): Likewise.
17812         * tests/test-mkfifoat.c (main): Likewise.
17813         * tests/test-mknod.c (main): Likewise.
17814         * tests/test-readlink.c (main): Likewise.
17815         * tests/test-remove.c (main): Likewise.
17816         * tests/test-rename.c (main): Likewise.
17817         * tests/test-renameat.c (main): Likewise.
17818         * tests/test-rmdir.c (main): Likewise.
17819         * tests/test-symlink.c (main): Likewise.
17820         * tests/test-symlinkat.c (main): Likewise.
17821         * tests/test-unlink.c (main): Likewise.
17822         * tests/test-unlinkat.c (main): Likewise.
17823         * tests/test-utimens.c (main): Likewise.
17824         * tests/test-utimensat.c (main): Likewise.
17825         * modules/areadlink-tests (Depends-on): Add ignore-value.
17826         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17827         * modules/areadlinkat-tests (Depends-on): Likewise.
17828         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17829         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17830         * modules/canonicalize-tests (Depends-on): Likewise.
17831         * modules/chown-tests (Depends-on): Likewise.
17832         * modules/fdutimensat-tests (Depends-on): Likewise.
17833         * modules/futimens-tests (Depends-on): Likewise.
17834         * modules/lchown-tests (Depends-on): Likewise.
17835         * modules/link-tests (Depends-on): Likewise.
17836         * modules/linkat-tests (Depends-on): Likewise.
17837         * modules/lstat-tests (Depends-on): Likewise.
17838         * modules/mkdir-tests (Depends-on): Likewise.
17839         * modules/mkfifo-tests (Depends-on): Likewise.
17840         * modules/mkfifoat-tests (Depends-on): Likewise.
17841         * modules/mknod-tests (Depends-on): Likewise.
17842         * modules/openat-tests (Depends-on): Likewise.
17843         * modules/readlink-tests (Depends-on): Likewise.
17844         * modules/remove-tests (Depends-on): Likewise.
17845         * modules/rename-tests (Depends-on): Likewise.
17846         * modules/renameat-tests (Depends-on): Likewise.
17847         * modules/rmdir-tests (Depends-on): Likewise.
17848         * modules/symlink-tests (Depends-on): Likewise.
17849         * modules/symlinkat-tests (Depends-on): Likewise.
17850         * modules/unlink-tests (Depends-on): Likewise.
17851         * modules/utimens-tests (Depends-on): Likewise.
17852         * modules/utimensat-tests (Depends-on): Likewise.
17853
17854 2010-01-31  Bruno Haible  <bruno@clisp.org>
17855
17856         Perform the same test for many <math.h> functions.
17857         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17858         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17859         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17860         of gl_MATHFUNC.
17861         * modules/acos (configure.ac): Likewise.
17862         * modules/asin (configure.ac): Likewise.
17863         * modules/atan (configure.ac): Likewise.
17864         * modules/atan2 (configure.ac): Likewise.
17865         * modules/cbrt (configure.ac): Likewise.
17866         * modules/copysign (configure.ac): Likewise.
17867         * modules/cos (configure.ac): Likewise.
17868         * modules/cosh (configure.ac): Likewise.
17869         * modules/erf (configure.ac): Likewise.
17870         * modules/erfc (configure.ac): Likewise.
17871         * modules/exp (configure.ac): Likewise.
17872         * modules/fmod (configure.ac): Likewise.
17873         * modules/hypot (configure.ac): Likewise.
17874         * modules/j0 (configure.ac): Likewise.
17875         * modules/j1 (configure.ac): Likewise.
17876         * modules/jn (configure.ac): Likewise.
17877         * modules/lgamma (configure.ac): Likewise.
17878         * modules/log (configure.ac): Likewise.
17879         * modules/log10 (configure.ac): Likewise.
17880         * modules/log1p (configure.ac): Likewise.
17881         * modules/pow (configure.ac): Likewise.
17882         * modules/remainder (configure.ac): Likewise.
17883         * modules/sin (configure.ac): Likewise.
17884         * modules/sinh (configure.ac): Likewise.
17885         * modules/tan (configure.ac): Likewise.
17886         * modules/tanh (configure.ac): Likewise.
17887         * modules/y0 (configure.ac): Likewise.
17888         * modules/y1 (configure.ac): Likewise.
17889         * modules/yn (configure.ac): Likewise.
17890         Suggested by Paolo Bonzini.
17891
17892 2010-01-31  Bruno Haible  <bruno@clisp.org>
17893
17894         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17895
17896 2010-01-31  Bruno Haible  <bruno@clisp.org>
17897
17898         Work around getdelim() bug on FreeBSD 8.0.
17899         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17900         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17901         not work.
17902         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17903         is 1.
17904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17905         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17906         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17907         a non-zero size.
17908         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17909
17910 2010-01-31  Bruno Haible  <bruno@clisp.org>
17911
17912         Work around getline() bug on FreeBSD 8.0.
17913         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17914         and a non-zero size.
17915         * tests/test-getline.c (main): Likewise.
17916         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17917         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17918
17919 2010-01-28  Eric Blake  <ebb9@byu.net>
17920
17921         regex: fix build failure
17922         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17923         platforms.
17924
17925 2010-01-28  Jim Meyering  <meyering@redhat.com>
17926
17927         regex: do not ignore memory allocation failure
17928         * lib/regex_internal.c (create_cd_newstate): Detect
17929         re_node_set_init_copy failure.   Extracted from glibc commit
17930         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17931
17932         regex: sync more white-space changes from libc
17933         * lib/regex_internal.c: White-space only changes.
17934         * lib/regexec.c: Likewise.
17935
17936         regex: add many uses of __attribute_warn_unused_result__
17937         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17938         * lib/regexec.c: Likewise.
17939         Extracted from a messy glibc commit.
17940
17941         regcomp.c: spelling and merge-artifact from glibc
17942         * lib/regcomp.c: Merge remainder of glibc's
17943         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17944
17945         regcomp.c: sync white-space changes from glibc
17946         * lib/regcomp.c: Merge to accommodate white space
17947         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17948
17949         regcomp.c: do not ignore internal return values
17950         * lib/regcomp.c: Do not ignore internal return values.
17951         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17952         but without its white-space changes and spelling fixes.
17953
17954         regex_internal.h: define __attribute_warn_unused_result__
17955         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17956
17957         maint: add a syntax-check rule to check for vulnerable Makefile.in
17958         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17959
17960 2010-01-27  Jim Meyering  <meyering@redhat.com>
17961
17962         ncftpput-ftp: clean up spaces
17963         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17964         Remove trailing blanks.
17965
17966 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17967
17968         * build-aux/git-version-gen: Fix copyright statement.
17969         * build-aux/gnupload: Likewise.
17970         * tests/test-arcfour.c: Likewise.
17971         * tests/test-arctwo.c: Likewise.
17972         * tests/test-count-one-bits.c: Likewise.
17973         * tests/test-crc.c: Likewise.
17974         * tests/test-des.c: Likewise.
17975         * tests/test-gc-arcfour.c: Likewise.
17976         * tests/test-gc-arctwo.c: Likewise.
17977         * tests/test-gc-des.c: Likewise.
17978         * tests/test-gc-hmac-md5.c: Likewise.
17979         * tests/test-gc-hmac-sha1.c: Likewise.
17980         * tests/test-gc-md2.c: Likewise.
17981         * tests/test-gc-md4.c: Likewise.
17982         * tests/test-gc-md5.c: Likewise.
17983         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17984         * tests/test-gc-rijndael.c: Likewise.
17985         * tests/test-gc-sha1.c: Likewise.
17986         * tests/test-gc.c: Likewise.
17987         * tests/test-gethostname.c: Likewise.
17988         * tests/test-gettimeofday.c: Likewise.
17989         * tests/test-hash.c: Likewise.
17990         * tests/test-hmac-md5.c: Likewise.
17991         * tests/test-hmac-sha1.c: Likewise.
17992         * tests/test-md2.c: Likewise.
17993         * tests/test-md4.c: Likewise.
17994         * tests/test-md5.c: Likewise.
17995         * tests/test-memchr.c: Likewise.
17996         * tests/test-memchr2.c: Likewise.
17997         * tests/test-memcmp.c: Likewise.
17998         * tests/test-memmem.c: Likewise.
17999         * tests/test-memrchr.c: Likewise.
18000         * tests/test-rawmemchr.c: Likewise.
18001         * tests/test-read-file.c: Likewise.
18002         * tests/test-rijndael.c: Likewise.
18003         * tests/test-sockets.c: Likewise.
18004         * tests/test-strchrnul.c: Likewise.
18005         * tests/test-strstr.c: Likewise.
18006         * tests/test-strtod.c: Likewise.
18007         * build-aux/ncftpput-ftp: Likewise.
18008
18009 2010-01-26  Eric Blake  <ebb9@byu.net>
18010
18011         ignore-value: update recommended header name
18012         * modules/ignore-value (Include): Only use <> for headers that
18013         exist in glibc.
18014
18015 2010-01-26  Jim Meyering  <meyering@redhat.com>
18016
18017         test-userspec.c: avoid compiler warnings
18018         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18019         and "initialization discards qualifiers..." warnings.
18020         Put the first "uid" in its own scope, and make char* members "const".
18021
18022 2010-01-25  Bruno Haible  <bruno@clisp.org>
18023
18024         gnulib-tool: Make warning diagnostics consistent.
18025         * gnulib-tool (func_warning): New function.
18026         Use it everywhere where gnulib-tool produces output to stderr and it is
18027         not a fatal error.
18028
18029 2010-01-25  Bruno Haible  <bruno@clisp.org>
18030
18031         Fix test dependencies.
18032         * modules/xstrtol-tests (Depends-on): Add inttypes.
18033         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18034
18035 2010-01-25 Pádraig Brady <P@draigBrady.com>
18036
18037         syntax-check: detect incorrect boolean macro values in config.h
18038         * modules/maintainer-makefile (configure.ac): Parameterize the location
18039         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18040         The logic is from Eric Blake and the location indicated by Jim Meyering.
18041         Note the more natural CONFIG_HEADER name is prohibited by automake
18042         for backwards compatibility reasons.
18043         * top/maint.mk (sc_Wundef_boolean): New rule.
18044
18045 2010-01-25  Jim Meyering  <meyering@redhat.com>
18046
18047         bootstrap: detect MacOS 10.6's shasum, too
18048         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18049         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18050
18051 2010-01-23  Jim Meyering  <meyering@redhat.com>
18052
18053         xstrtoll: new module
18054         * modules/xstrtoll: New file.
18055         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18056         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18057         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18058         ./configure fails if you use this module and lack "long long".
18059         * modules/xstrtoll-tests: New module.
18060         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18061         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18062         new init.sh-based test framework.
18063
18064 2010-01-24  Bruno Haible  <bruno@clisp.org>
18065
18066         Tests for module 'yn'.
18067         * modules/yn-tests: New file.
18068         * tests/test-yn.c: New file.
18069
18070         Tests for module 'y1'.
18071         * modules/y1-tests: New file.
18072         * tests/test-y1.c: New file.
18073
18074         Tests for module 'y0'.
18075         * modules/y0-tests: New file.
18076         * tests/test-y0.c: New file.
18077
18078         Tests for module 'tanh'.
18079         * modules/tanh-tests: New file.
18080         * tests/test-tanh.c: New file.
18081
18082         Tests for module 'tan'.
18083         * modules/tan-tests: New file.
18084         * tests/test-tan.c: New file.
18085
18086         Tests for module 'sqrt'.
18087         * modules/sqrt-tests: New file.
18088         * tests/test-sqrt.c: New file.
18089
18090         Tests for module 'sinh'.
18091         * modules/sinh-tests: New file.
18092         * tests/test-sinh.c: New file.
18093
18094         Tests for module 'sin'.
18095         * modules/sin-tests: New file.
18096         * tests/test-sin.c: New file.
18097
18098         Tests for module 'rint'.
18099         * modules/rint-tests: New file.
18100         * tests/test-rint.c: New file.
18101
18102         Tests for module 'remainder'.
18103         * modules/remainder-tests: New file.
18104         * tests/test-remainder.c: New file.
18105
18106         Tests for module 'pow'.
18107         * modules/pow-tests: New file.
18108         * tests/test-pow.c: New file.
18109
18110         Tests for module 'nextafter'.
18111         * modules/nextafter-tests: New file.
18112         * tests/test-nextafter.c: New file.
18113
18114         Tests for module 'modf'.
18115         * modules/modf-tests: New file.
18116         * tests/test-modf.c: New file.
18117
18118         Tests for module 'logb'.
18119         * modules/logb-tests: New file.
18120         * tests/test-logb.c: New file.
18121
18122         Tests for module 'log1p'.
18123         * modules/log1p-tests: New file.
18124         * tests/test-log1p.c: New file.
18125
18126         Tests for module 'log10'.
18127         * modules/log10-tests: New file.
18128         * tests/test-log10.c: New file.
18129
18130         Tests for module 'log'.
18131         * modules/log-tests: New file.
18132         * tests/test-log.c: New file.
18133
18134         Tests for module 'lgamma'.
18135         * modules/lgamma-tests: New file.
18136         * tests/test-lgamma.c: New file.
18137
18138         Tests for module 'ldexp'.
18139         * modules/ldexp-tests: New file.
18140         * tests/test-ldexp.c: New file.
18141
18142         Tests for module 'jn'.
18143         * modules/jn-tests: New file.
18144         * tests/test-jn.c: New file.
18145
18146         Tests for module 'j1'.
18147         * modules/j1-tests: New file.
18148         * tests/test-j1.c: New file.
18149
18150         Tests for module 'j0'.
18151         * modules/j0-tests: New file.
18152         * tests/test-j0.c: New file.
18153
18154         Tests for module 'hypot'.
18155         * modules/hypot-tests: New file.
18156         * tests/test-hypot.c: New file.
18157
18158         Tests for module 'fmod'.
18159         * modules/fmod-tests: New file.
18160         * tests/test-fmod.c: New file.
18161
18162         Tests for module 'fabs'.
18163         * modules/fabs-tests: New file.
18164         * tests/test-fabs.c: New file.
18165
18166         Tests for module 'exp'.
18167         * modules/exp-tests: New file.
18168         * tests/test-exp.c: New file.
18169
18170         Tests for module 'erfc'.
18171         * modules/erfc-tests: New file.
18172         * tests/test-erfc.c: New file.
18173
18174         Tests for module 'erf'.
18175         * modules/erf-tests: New file.
18176         * tests/test-erf.c: New file.
18177
18178         Tests for module 'cosh'.
18179         * modules/cosh-tests: New file.
18180         * tests/test-cosh.c: New file.
18181
18182         Tests for module 'cos'.
18183         * modules/cos-tests: New file.
18184         * tests/test-cos.c: New file.
18185
18186         Tests for module 'copysign'.
18187         * modules/copysign-tests: New file.
18188         * tests/test-copysign.c: New file.
18189
18190         Tests for module 'cbrt'.
18191         * modules/cbrt-tests: New file.
18192         * tests/test-cbrt.c: New file.
18193
18194         Tests for module 'atan2'.
18195         * modules/atan2-tests: New file.
18196         * tests/test-atan2.c: New file.
18197
18198         Tests for module 'atan'.
18199         * modules/atan-tests: New file.
18200         * tests/test-atan.c: New file.
18201
18202         Tests for module 'asin'.
18203         * modules/asin-tests: New file.
18204         * tests/test-asin.c: New file.
18205
18206         Tests for module 'acos'.
18207         * modules/acos-tests: New file.
18208         * tests/test-acos.c: New file.
18209
18210 2010-01-24  Bruno Haible  <bruno@clisp.org>
18211
18212         Fix tests for common <math.h> functions.
18213         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18214         code snippet that references the function pointer, rather than merely
18215         calling the function. Substitute the FUNC_LIBM variable.
18216         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18217         * modules/acos (configure.ac): Likewise.
18218         * modules/asin (configure.ac): Likewise.
18219         * modules/atan (configure.ac): Likewise.
18220         * modules/atan2 (configure.ac): Likewise.
18221         * modules/cbrt (configure.ac): Likewise.
18222         * modules/copysign (configure.ac): Likewise.
18223         * modules/cos (configure.ac): Likewise.
18224         * modules/cosh (configure.ac): Likewise.
18225         * modules/erf (configure.ac): Likewise.
18226         * modules/erfc (configure.ac): Likewise.
18227         * modules/exp (configure.ac): Likewise.
18228         * modules/fabs (configure.ac): Likewise.
18229         * modules/fmod (configure.ac): Likewise.
18230         * modules/hypot (configure.ac): Likewise.
18231         * modules/j0 (configure.ac): Likewise.
18232         * modules/j1 (configure.ac): Likewise.
18233         * modules/jn (configure.ac): Likewise.
18234         * modules/ldexp (configure.ac): Likewise.
18235         * modules/lgamma (configure.ac): Likewise.
18236         * modules/log (configure.ac): Likewise.
18237         * modules/log10 (configure.ac): Likewise.
18238         * modules/log1p (configure.ac): Likewise.
18239         * modules/logb (configure.ac): Likewise.
18240         * modules/modf (configure.ac): Likewise.
18241         * modules/nextafter (configure.ac): Likewise.
18242         * modules/pow (configure.ac): Likewise.
18243         * modules/remainder (configure.ac): Likewise.
18244         * modules/rint (configure.ac): Likewise.
18245         * modules/sin (configure.ac): Likewise.
18246         * modules/sinh (configure.ac): Likewise.
18247         * modules/tan (configure.ac): Likewise.
18248         * modules/tanh (configure.ac): Likewise.
18249         * modules/y0 (configure.ac): Likewise.
18250         * modules/y1 (configure.ac): Likewise.
18251         * modules/yn (configure.ac): Likewise.
18252
18253 2010-01-24  Bruno Haible  <bruno@clisp.org>
18254
18255         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18256         * tests/test-acosl.c (x): New variable.
18257         (main): Store argument in x and fetch it from x.
18258         * tests/test-asinl.c (x): New variable.
18259         (main): Store argument in x and fetch it from x.
18260         * tests/test-atanl.c (x): New variable.
18261         (main): Store argument in x and fetch it from x.
18262         * tests/test-cosl.c (x): New variable.
18263         (main): Store argument in x and fetch it from x.
18264         * tests/test-expl.c (x): New variable.
18265         (main): Store argument in x and fetch it from x.
18266         * tests/test-logl.c (x): New variable.
18267         (main): Store argument in x and fetch it from x.
18268         * tests/test-sinl.c (x): New variable.
18269         (main): Store argument in x and fetch it from x.
18270         * tests/test-sqrtl.c (x): New variable.
18271         (main): Store argument in x and fetch it from x.
18272         * tests/test-tanl.c (x): New variable.
18273         (main): Store argument in x and fetch it from x.
18274
18275 2010-01-24  Bruno Haible  <bruno@clisp.org>
18276
18277         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18278         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18279         assignments to the initial TESTS_ENVIRONMENT.
18280         * doc/gnulib.texi (Unit test modules): Document it.
18281         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18282         TESTS_ENVIRONMENT.
18283         * modules/btowc-tests (Makefile.am): Likewise.
18284         * modules/c-stack-tests (Makefile.am): Likewise.
18285         * modules/c-strcase-tests (Makefile.am): Likewise.
18286         * modules/copy-file-tests (Makefile.am): Likewise.
18287         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18288         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18289         * modules/mbrtowc-tests (Makefile.am): Likewise.
18290         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18291         * modules/mbscasestr-tests (Makefile.am): Likewise.
18292         * modules/mbschr-tests (Makefile.am): Likewise.
18293         * modules/mbscspn-tests (Makefile.am): Likewise.
18294         * modules/mbsinit-tests (Makefile.am): Likewise.
18295         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18296         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18297         * modules/mbspbrk-tests (Makefile.am): Likewise.
18298         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18299         * modules/mbsrchr-tests (Makefile.am): Likewise.
18300         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18301         * modules/mbsspn-tests (Makefile.am): Likewise.
18302         * modules/mbsstr-tests (Makefile.am): Likewise.
18303         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18304         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18305         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18306         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18307         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18308         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18309         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18310         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18311         * modules/wcrtomb-tests (Makefile.am): Likewise.
18312         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18313         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18314         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18315         assignments from TESTS_ENVIRONMENT.
18316         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18317         augmentation.
18318         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18319         * modules/atexit-tests (Makefile.am): Likewise.
18320         * modules/binary-io-tests (Makefile.am): Likewise.
18321         * modules/closein-tests (Makefile.am): Likewise.
18322         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18323         * modules/exclude-tests (Makefile.am): Likewise.
18324         * modules/fflush-tests (Makefile.am): Likewise.
18325         * modules/fpending-tests (Makefile.am): Likewise.
18326         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18327         * modules/freadahead-tests (Makefile.am): Likewise.
18328         * modules/freadptr-tests (Makefile.am): Likewise.
18329         * modules/freadseek-tests (Makefile.am): Likewise.
18330         * modules/fseek-tests (Makefile.am): Likewise.
18331         * modules/fseeko-tests (Makefile.am): Likewise.
18332         * modules/ftell-tests (Makefile.am): Likewise.
18333         * modules/ftello-tests (Makefile.am): Likewise.
18334         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18335         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18336         * modules/lseek-tests (Makefile.am): Likewise.
18337         * modules/parse-duration-tests (Makefile.am): Likewise.
18338         * modules/perror-tests (Makefile.am): Likewise.
18339         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18340         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18341         * modules/pipe-tests (Makefile.am): Likewise.
18342         * modules/pread-tests (Makefile.am): Likewise.
18343         * modules/printf-posix-tests (Makefile.am): Likewise.
18344         * modules/select-tests (Makefile.am): Likewise.
18345         * modules/sigpipe-tests (Makefile.am): Likewise.
18346         * modules/tsearch-tests (Makefile.am): Likewise.
18347         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18348         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18349         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18350         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18351         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18352         * modules/version-etc-tests (Makefile.am): Likewise.
18353         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18354         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18355         * modules/xalloc-die-tests (Makefile.am): Likewise.
18356         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18357         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18358         * modules/xstrtol-tests (Makefile.am): Likewise.
18359         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18360         * modules/yesno-tests (Makefile.am): Likewise.
18361         Suggested by Jim Meyering.
18362
18363 2010-01-24  Bruno Haible  <bruno@clisp.org>
18364
18365         More documentation.
18366         * doc/gnulib.texi (Writing modules): New chapter.
18367         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18368         the new chapter.
18369
18370 2010-01-24  Jim Meyering  <meyering@redhat.com>
18371
18372         maint.mk: do not prepend "./" after filtering
18373         * top/maint.mk (_prepend_srcdir_prefix): New variable
18374         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18375         "./" when $(srcdir) is ".".
18376
18377         define STREQ(a,b) consistently, removing useless parentheses
18378         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18379         since the only risk is that "a" or "b" contains an unparenthesized
18380         comma, but if either did that, STREQ would have 3 or more arguments.
18381         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18382         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18383         * lib/hash-triple.c (STREQ): Likewise.
18384         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18385         * lib/getugroups.c (STREQ): Likewise.
18386
18387 2010-01-23  Jim Meyering  <meyering@redhat.com>
18388
18389         maint.mk: fix syntax-check in a non-srcdir build directory
18390         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18391         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18392
18393 2010-01-22  Jim Meyering  <meyering@redhat.com>
18394
18395         userspec: add unit tests
18396         * tests/test-userspec.c: New file.
18397         * modules/userspec-tests: Likewise.
18398
18399 2010-01-21  Jim Meyering  <meyering@redhat.com>
18400
18401         maint.mk: handle source file names containing "." robustly
18402         * top/maint.mk (_dot_escaped_srcdir): Define.
18403         (VC_LIST): Use it in LHS of sed substitution.
18404
18405 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18406
18407         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18408         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18409         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18410         from a non-srcdir build.
18411
18412 2010-01-20  Eric Blake  <ebb9@byu.net>
18413
18414         warn-on-use: use instead of link-warning
18415         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18416         * modules/unistd (Depends-on, Makefile.am): Likewise.
18417         * modules/arpa_inet (Depends-on): Replace link-warning with
18418         warn-on-use.
18419         (Makefile.am): Update rules accordingly.
18420         * modules/ctype (Depends-on, Makefile.am): Likewise.
18421         * modules/dirent (Depends-on, Makefile.am): Likewise.
18422         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18423         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18424         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18425         * modules/locale (Depends-on, Makefile.am): Likewise.
18426         * modules/math (Depends-on, Makefile.am): Likewise.
18427         * modules/search (Depends-on, Makefile.am): Likewise.
18428         * modules/signal (Depends-on, Makefile.am): Likewise.
18429         * modules/spawn (Depends-on, Makefile.am): Likewise.
18430         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18431         * modules/string (Depends-on, Makefile.am): Likewise.
18432         * modules/strings (Depends-on, Makefile.am): Likewise.
18433         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18434         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18435         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18436         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18437         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18438         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18439         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18440         * modules/wchar (Depends-on, Makefile.am): Likewise.
18441         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18442         should be poisoned.
18443         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18444         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18445         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18446         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18447         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18448         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18449         * m4/math_h.m4 (gl_MATH_H): Likewise.
18450         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18451         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18452         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18453         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18454         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18455         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18456         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18457         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18458         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18461         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18462         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18463         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18464         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18465         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18466         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18467         GL_LINK_WARNING.
18468         * lib/ctype.in.h: Likewise.
18469         * lib/dirent.in.h: Likewise.
18470         * lib/fcntl.in.h: Likewise.
18471         * lib/inttypes.in.h: Likewise.
18472         * lib/langinfo.in.h: Likewise.
18473         * lib/locale.in.h: Likewise.
18474         * lib/math.in.h: Likewise.
18475         * lib/search.in.h: Likewise.
18476         * lib/signal.in.h: Likewise.
18477         * lib/spawn.in.h: Likewise.
18478         * lib/stdio.in.h: Likewise.
18479         * lib/stdlib.in.h: Likewise.
18480         * lib/string.in.h: Likewise.
18481         * lib/strings.in.h: Likewise.
18482         * lib/sys_file.in.h: Likewise.
18483         * lib/sys_ioctl.in.h: Likewise.
18484         * lib/sys_select.in.h: Likewise.
18485         * lib/sys_socket.in.h: Likewise.
18486         * lib/sys_stat.in.h: Likewise.
18487         * lib/sys_times.in.h: Likewise.
18488         * lib/sys_utsname.in.h: Likewise.
18489         * lib/unistd.in.h: Likewise.
18490         * lib/wchar.in.h: Likewise.
18491
18492 2010-01-20  Bruno Haible  <bruno@clisp.org>
18493
18494         Avoid duplicate -lm.
18495         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18496         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18497         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18498         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18499         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18500         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18501         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18502         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18503         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18504         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18505         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18506         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18507         Reported by Paolo Bonzini.
18508
18509 2010-01-19  Bruno Haible  <bruno@clisp.org>
18510
18511         langinfo, nl_langinfo: Relicense under LGPLv2+.
18512         * modules/langinfo (License): Change to LGPLv2+.
18513         * modules/nl_langinfo (License): Likewise.
18514         Patch by David Lutterkort <lutter@redhat.com>.
18515
18516 2010-01-19  Bruno Haible  <bruno@clisp.org>
18517
18518         Avoid compilation error with cc on OSF/1 5.1.
18519         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18520         statement, not before.
18521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18522
18523 2010-01-18  Bruno Haible  <bruno@clisp.org>
18524
18525         Avoid a link error due to the __printf__ symbol.
18526         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18527         and 2.6.x.
18528         (__format__, __printf__): Remove definitions.
18529         * lib/argp-fmtstream.h: Likewise.
18530         * lib/argp.h: Likewise.
18531         * lib/error.h: Likewise.
18532         * lib/vasnprintf.h: Likewise.
18533         * lib/xprintf.h: Likewise.
18534         * lib/xvasprintf.h: Likewise.
18535         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18536
18537 2010-01-18  Bruno Haible  <bruno@clisp.org>
18538
18539         Tests for module 'tanl'.
18540         * modules/tanl-tests: New file.
18541         * tests/test-tanl.c: New file.
18542
18543         Tests for module 'sqrtl'.
18544         * modules/sqrtl-tests: New file.
18545         * tests/test-sqrtl.c: New file.
18546
18547         Tests for module 'sinl'.
18548         * modules/sinl-tests: New file.
18549         * tests/test-sinl.c: New file.
18550
18551         Tests for module 'logl'.
18552         * modules/logl-tests: New file.
18553         * tests/test-logl.c: New file.
18554
18555         Tests for module 'expl'.
18556         * modules/expl-tests: New file.
18557         * tests/test-expl.c: New file.
18558
18559         Tests for module 'cosl'.
18560         * modules/cosl-tests: New file.
18561         * tests/test-cosl.c: New file.
18562
18563         Tests for module 'atanl'.
18564         * modules/atanl-tests: New file.
18565         * tests/test-atanl.c: New file.
18566
18567         Tests for module 'asinl'.
18568         * modules/asinl-tests: New file.
18569         * tests/test-asinl.c: New file.
18570
18571         Tests for module 'acosl'.
18572         * modules/acosl-tests: New file.
18573         * tests/test-acosl.c: New file.
18574
18575         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18576         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
18577         tanl): Use the standard gnulib idiom.
18578         * lib/cosl.c: Don't include trigl.c and sincosl.c.
18579         * lib/sinl.c: Likewise.
18580         * lib/tanl.c: Don't include trigl.c.
18581         (kernel_tanl): Make static.
18582         * lib/sincosl.c: Include trigl.h first.
18583         * lib/trigl.c: Likewise.
18584         * m4/acosl.m4: New file.
18585         * m4/asinl.m4: New file.
18586         * m4/atanl.m4: New file.
18587         * m4/cosl.m4: New file.
18588         * m4/expl.m4: New file.
18589         * m4/logl.m4: New file.
18590         * m4/sinl.m4: New file.
18591         * m4/sqrtl.m4: New file.
18592         * m4/tanl.m4: New file.
18593         * m4/mathl.m4: Remove file.
18594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
18595         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
18596         Don't initialize GNULIB_MATHL.
18597         * modules/acosl: New file.
18598         * modules/asinl: New file.
18599         * modules/atanl: New file.
18600         * modules/cosl: New file.
18601         * modules/expl: New file.
18602         * modules/logl: New file.
18603         * modules/sinl: New file.
18604         * modules/sqrtl: New file.
18605         * modules/tanl: New file.
18606         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
18607         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
18608         substitute GNULIB_MATHL.
18609         * modules/mathl: Rewritten.
18610         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
18611         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
18612         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
18613         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
18614         * doc/posix-functions/expl.texi: Mention the 'expl' module.
18615         * doc/posix-functions/logl.texi: Mention the 'logl' module.
18616         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
18617         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
18618         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
18619
18620 2010-01-18  Bruno Haible  <bruno@clisp.org>
18621
18622         sqrt: Make gl_FUNC_SQRT requirable.
18623         * m4/sqrt.m4: New file.
18624         * modules/sqrt (Files): Add it.
18625         (configure.ac): Invoke gl_FUNC_SQRT.
18626
18627 2010-01-18  Bruno Haible  <bruno@clisp.org>
18628
18629         New modules for common <math.h> functions.
18630         * m4/mathfunc.m4: New file.
18631         * modules/acos: New file.
18632         * modules/asin: New file.
18633         * modules/atan: New file.
18634         * modules/atan2: New file.
18635         * modules/cbrt: New file.
18636         * modules/copysign: New file.
18637         * modules/cos: New file.
18638         * modules/cosh: New file.
18639         * modules/erf: New file.
18640         * modules/erfc: New file.
18641         * modules/exp: New file.
18642         * modules/fabs: New file.
18643         * modules/fmod: New file.
18644         * modules/hypot: New file.
18645         * modules/j0: New file.
18646         * modules/j1: New file.
18647         * modules/jn: New file.
18648         * modules/ldexp: New file.
18649         * modules/lgamma: New file.
18650         * modules/log: New file.
18651         * modules/log10: New file.
18652         * modules/log1p: New file.
18653         * modules/logb: New file.
18654         * modules/modf: New file.
18655         * modules/nextafter: New file.
18656         * modules/pow: New file.
18657         * modules/remainder: New file.
18658         * modules/rint: New file.
18659         * modules/sin: New file.
18660         * modules/sinh: New file.
18661         * modules/sqrt: New file.
18662         * modules/tan: New file.
18663         * modules/tanh: New file.
18664         * modules/y0: New file.
18665         * modules/y1: New file.
18666         * modules/yn: New file.
18667         * doc/posix-functions/acos.texi: Mention the 'acos' module.
18668         * doc/posix-functions/asin.texi: Mention the 'asin' module.
18669         * doc/posix-functions/atan.texi: Mention the 'atan' module.
18670         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
18671         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
18672         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
18673         * doc/posix-functions/cos.texi: Mention the 'cos' module.
18674         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
18675         * doc/posix-functions/erf.texi: Mention the 'erf' module.
18676         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
18677         * doc/posix-functions/exp.texi: Mention the 'exp' module.
18678         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
18679         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
18680         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
18681         * doc/posix-functions/j0.texi: Mention the 'j0' module.
18682         * doc/posix-functions/j1.texi: Mention the 'j1' module.
18683         * doc/posix-functions/jn.texi: Mention the 'jn' module.
18684         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
18685         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
18686         * doc/posix-functions/log.texi: Mention the 'log' module.
18687         * doc/posix-functions/log10.texi: Mention the 'log10' module.
18688         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
18689         * doc/posix-functions/logb.texi: Mention the 'logb' module.
18690         * doc/posix-functions/modf.texi: Mention the 'modf' module.
18691         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
18692         * doc/posix-functions/pow.texi: Mention the 'pow' module.
18693         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
18694         * doc/posix-functions/rint.texi: Mention the 'rint' module.
18695         * doc/posix-functions/sin.texi: Mention the 'sin' module.
18696         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
18697         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
18698         * doc/posix-functions/tan.texi: Mention the 'tan' module.
18699         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
18700         * doc/posix-functions/y0.texi: Mention the 'y0' module.
18701         * doc/posix-functions/y1.texi: Mention the 'y1' module.
18702         * doc/posix-functions/yn.texi: Mention the 'yn' module.
18703
18704 2010-01-18  Jim Meyering  <meyering@redhat.com>
18705
18706         ignore-value: relax license to LGPLv2+
18707         * modules/ignore-value (License): Relax to LGPLv2+.
18708
18709         getdate: don't leak when TZ contains two or more '"'s
18710         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
18711         double quote in TZ after the first one.
18712
18713         readtokens: do not leak internal token_lengths buffer
18714         * lib/readtokens.c (readtokens): Free the local, lengths,
18715         when the supplied "token_lengths" parameter is NULL.
18716
18717 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18718
18719         Fix a couple of missing LIBTHREAD link failures on AIX.
18720         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
18721         $(LIBTHREAD).
18722         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
18723
18724         Link test-poll against INET_PTON_LIB.
18725         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
18726         for inet_pton on Solaris 10.
18727
18728 2010-01-17  Bruno Haible  <bruno@clisp.org>
18729
18730         unistdio/*-sprintf: Fix typo in module description.
18731         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
18732         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
18733         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
18734         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
18735         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
18736         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
18737         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
18738         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18739
18740 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18741
18742         gnulib-tool: fix filelist for AIX, HP-UX ksh.
18743         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
18744         variables in shell case patterns, for AIX and HP-UX ksh.
18745
18746         Split large sed scripts, for HP-UX sed.
18747         * modules/stdio: Split sed scripts around 50 sed commands,
18748         to avoid HP-UX limit of 99 commands, in the near future.
18749         * modules/string: Likewise.
18750         * modules/unistd: Likewise.
18751
18752         gnulib-tool: avoid writing in the current directory.
18753         * gnulib-tool (func_emit_lib_Makefile_am)
18754         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
18755         not in the current directory, so concurrent gnulib-tool
18756         instances do not interfere.
18757
18758 2010-01-16  Jim Meyering  <meyering@redhat.com>
18759
18760         doc: update users.txt
18761         * users.txt: Add grep.
18762         (diffutils, gzip): Update URLs.
18763
18764 2010-01-12  Bruno Haible  <bruno@clisp.org>
18765
18766         posix_spawn: Avoid test failure on Cygwin.
18767         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
18768         characters.
18769         Reported by Simon Josefsson.
18770
18771 2010-01-12  Bruno Haible  <bruno@clisp.org>
18772
18773         * tests/test-cond.c (main): When skipping the test, show the reason.
18774
18775 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18776
18777         * lib/striconv.c (str_cd_iconv): Avoid if before free.
18778
18779 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18780
18781         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
18782         VC_LIST_ALWAYS_EXCLUDE_REGEX.
18783
18784 2010-01-12  Eric Blake  <ebb9@byu.net>
18785
18786         build: guarantee AS_VAR_IF
18787         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
18788         (gl_AS_VAR_IF): Move...
18789         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
18790         Reported by Simon Josefsson.
18791
18792 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18793
18794         * lib/stdio.in.h: Fix typo.
18795
18796 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18797
18798         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
18799         libgpg-error.
18800
18801 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18802
18803         * tests/test-xalloc-die.sh: Use $EXEEXT.
18804
18805 2010-01-12  Simon Josefsson  <simon@josefsson.org>
18806             Bruno Haible  <bruno@clisp.org>
18807
18808         getlogin, getlogin_r: Avoid test failure.
18809         * tests/test-getlogin.c: Include <stdio.h>.
18810         (main): Skip the test when the function fails because stdin is not a
18811         tty.
18812         * tests/test-getlogin_r.c: Include <stdio.h>.
18813         (main): Skip the test when the function fails because stdin is not a
18814         tty.
18815
18816 2010-01-11  Eric Blake  <ebb9@byu.net>
18817
18818         tests: avoid more large file warnings
18819         * tests/test-fflush.c: Avoid warning about ftell use.
18820         * tests/test-fseek.c: Avoid warning about fseek use.
18821
18822 2010-01-10  Bruno Haible  <bruno@clisp.org>
18823
18824         nproc: Work better on Linux when /proc and /sys are not mounted.
18825         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18826         as lower bound when, on glibc/Linux systems,
18827         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18828         Suggested by Pádraig Brady <P@draigbrady.com>.
18829         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18830
18831         nproc: Refactor.
18832         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18833         extracted from num_processors.
18834         (num_processors): Call it.
18835
18836 2010-01-11  Jim Meyering  <meyering@redhat.com>
18837
18838         utimecmp: avoid new warning from upcoming gcc-4.5.0
18839         * lib/utimecmp.c (BILLION): Define using #define rather than an
18840         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18841
18842 2010-01-11  Eric Blake  <ebb9@byu.net>
18843
18844         math: add portability warnings for classification macros
18845         * modules/math (Depends-on): Add warn-on-use.
18846         (Makefile.am): Provide new substitutions.
18847         * m4/math_h.m4 (gl_MATH_H): Require inline.
18848         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18849         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18850         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18851         implement warnings.
18852
18853         unistd: warn on use of environ without module
18854         * modules/unistd (Depends-on): Add warn-on-use.
18855         (Makefile.am): Provide new substitutions.
18856         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18857         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18858
18859         stdio: warn on suspicious uses
18860         * modules/stdio (Depends-on): Add warn-on-use.
18861         (Makefile.am): Provide new substitutions.
18862         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18863         fseeko.
18864         * lib/stdio.in.h (gets): Always warn on use.
18865         (fseek, ftell): Adjust when warnings are issued, and honor
18866         _GL_NO_LARGE_FILES as a way to silence the warning.
18867         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18868         any warning about large file offsets.
18869         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18870         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18871         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18872         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18873         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18874         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18875         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18876         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18877
18878         warn-on-use: new module
18879         * modules/warn-on-use: New file.
18880         * build-aux/warn-on-use.h: Likewise.
18881         * m4/warn-on-use.m4: Likewise.
18882         * MODULES.html.sh (Support for building): Mention it.
18883
18884 2010-01-10  Bruno Haible  <bruno@clisp.org>
18885
18886         Tests for module 'unistr/u32-strdup'.
18887         * modules/unistr/u32-strdup-tests: New file.
18888         * tests/unistr/test-u32-strdup.c: New file.
18889
18890         Tests for module 'unistr/u16-strdup'.
18891         * modules/unistr/u16-strdup-tests: New file.
18892         * tests/unistr/test-u16-strdup.c: New file.
18893
18894         Tests for module 'unistr/u8-strdup'.
18895         * modules/unistr/u8-strdup-tests: New file.
18896         * tests/unistr/test-u8-strdup.c: New file.
18897         * tests/unistr/test-strdup.h: New file.
18898
18899         Tests for module 'unistr/u32-strncmp'.
18900         * modules/unistr/u32-strncmp-tests: New file.
18901         * tests/unistr/test-u32-strncmp.c: New file.
18902
18903         Tests for module 'unistr/u16-strncmp'.
18904         * modules/unistr/u16-strncmp-tests: New file.
18905         * tests/unistr/test-u16-strncmp.c: New file.
18906
18907         Tests for module 'unistr/u8-strncmp'.
18908         * modules/unistr/u8-strncmp-tests: New file.
18909         * tests/unistr/test-u8-strncmp.c: New file.
18910         * tests/unistr/test-strncmp.h: New file.
18911
18912         Tests for module 'unistr/u32-strcoll'.
18913         * modules/unistr/u32-strcoll-tests: New file.
18914         * tests/unistr/test-u32-strcoll.c: New file.
18915
18916         Tests for module 'unistr/u16-strcoll'.
18917         * modules/unistr/u16-strcoll-tests: New file.
18918         * tests/unistr/test-u16-strcoll.c: New file.
18919
18920         Tests for module 'unistr/u8-strcoll'.
18921         * modules/unistr/u8-strcoll-tests: New file.
18922         * tests/unistr/test-u8-strcoll.c: New file.
18923
18924         Tests for module 'unistr/u32-strcmp'.
18925         * modules/unistr/u32-strcmp-tests: New file.
18926         * tests/unistr/test-u32-strcmp.c: New file.
18927         * tests/unistr/test-u32-strcmp.h: New file.
18928
18929         Tests for module 'unistr/u16-strcmp'.
18930         * modules/unistr/u16-strcmp-tests: New file.
18931         * tests/unistr/test-u16-strcmp.c: New file.
18932         * tests/unistr/test-u16-strcmp.h: New file.
18933
18934         Tests for module 'unistr/u8-strcmp'.
18935         * modules/unistr/u8-strcmp-tests: New file.
18936         * tests/unistr/test-u8-strcmp.c: New file.
18937         * tests/unistr/test-u8-strcmp.h: New file.
18938         * tests/unistr/test-strcmp.h: New file.
18939
18940         Tests for module 'unistr/u32-strncat'.
18941         * modules/unistr/u32-strncat-tests: New file.
18942         * tests/unistr/test-u32-strncat.c: New file.
18943
18944         Tests for module 'unistr/u16-strncat'.
18945         * modules/unistr/u16-strncat-tests: New file.
18946         * tests/unistr/test-u16-strncat.c: New file.
18947
18948         Tests for module 'unistr/u8-strncat'.
18949         * modules/unistr/u8-strncat-tests: New file.
18950         * tests/unistr/test-u8-strncat.c: New file.
18951         * tests/unistr/test-strncat.h: New file.
18952
18953         Tests for module 'unistr/u32-strcat'.
18954         * modules/unistr/u32-strcat-tests: New file.
18955         * tests/unistr/test-u32-strcat.c: New file.
18956
18957         Tests for module 'unistr/u16-strcat'.
18958         * modules/unistr/u16-strcat-tests: New file.
18959         * tests/unistr/test-u16-strcat.c: New file.
18960
18961         Tests for module 'unistr/u8-strcat'.
18962         * modules/unistr/u8-strcat-tests: New file.
18963         * tests/unistr/test-u8-strcat.c: New file.
18964         * tests/unistr/test-strcat.h: New file.
18965
18966         Tests for module 'unistr/u32-stpncpy'.
18967         * modules/unistr/u32-stpncpy-tests: New file.
18968         * tests/unistr/test-u32-stpncpy.c: New file.
18969
18970         Tests for module 'unistr/u16-stpncpy'.
18971         * modules/unistr/u16-stpncpy-tests: New file.
18972         * tests/unistr/test-u16-stpncpy.c: New file.
18973
18974         Tests for module 'unistr/u8-stpncpy'.
18975         * modules/unistr/u8-stpncpy-tests: New file.
18976         * tests/unistr/test-u8-stpncpy.c: New file.
18977         * tests/unistr/test-stpncpy.h: New file.
18978
18979         Tests for module 'unistr/u32-strncpy'.
18980         * modules/unistr/u32-strncpy-tests: New file.
18981         * tests/unistr/test-u32-strncpy.c: New file.
18982
18983         Tests for module 'unistr/u16-strncpy'.
18984         * modules/unistr/u16-strncpy-tests: New file.
18985         * tests/unistr/test-u16-strncpy.c: New file.
18986
18987         Tests for module 'unistr/u8-strncpy'.
18988         * modules/unistr/u8-strncpy-tests: New file.
18989         * tests/unistr/test-u8-strncpy.c: New file.
18990         * tests/unistr/test-strncpy.h: New file.
18991
18992         Tests for module 'unistr/u32-stpcpy'.
18993         * modules/unistr/u32-stpcpy-tests: New file.
18994         * tests/unistr/test-u32-stpcpy.c: New file.
18995
18996         Tests for module 'unistr/u16-stpcpy'.
18997         * modules/unistr/u16-stpcpy-tests: New file.
18998         * tests/unistr/test-u16-stpcpy.c: New file.
18999
19000         Tests for module 'unistr/u8-stpcpy'.
19001         * modules/unistr/u8-stpcpy-tests: New file.
19002         * tests/unistr/test-u8-stpcpy.c: New file.
19003         * tests/unistr/test-stpcpy.h: New file.
19004
19005         Tests for module 'unistr/u32-strcpy'.
19006         * modules/unistr/u32-strcpy-tests: New file.
19007         * tests/unistr/test-u32-strcpy.c: New file.
19008
19009         Tests for module 'unistr/u16-strcpy'.
19010         * modules/unistr/u16-strcpy-tests: New file.
19011         * tests/unistr/test-u16-strcpy.c: New file.
19012
19013         Tests for module 'unistr/u8-strcpy'.
19014         * modules/unistr/u8-strcpy-tests: New file.
19015         * tests/unistr/test-u8-strcpy.c: New file.
19016         * tests/unistr/test-strcpy.h: New file.
19017
19018         Tests for module 'unistr/u32-strnlen'.
19019         * modules/unistr/u32-strnlen-tests: New file.
19020         * tests/unistr/test-u32-strnlen.c: New file.
19021
19022         Tests for module 'unistr/u16-strnlen'.
19023         * modules/unistr/u16-strnlen-tests: New file.
19024         * tests/unistr/test-u16-strnlen.c: New file.
19025
19026         Tests for module 'unistr/u8-strnlen'.
19027         * modules/unistr/u8-strnlen-tests: New file.
19028         * tests/unistr/test-u8-strnlen.c: New file.
19029         * tests/unistr/test-strnlen.h: New file.
19030
19031         Tests for module 'unistr/u32-strlen'.
19032         * modules/unistr/u32-strlen-tests: New file.
19033         * tests/unistr/test-u32-strlen.c: New file.
19034
19035         Tests for module 'unistr/u16-strlen'.
19036         * modules/unistr/u16-strlen-tests: New file.
19037         * tests/unistr/test-u16-strlen.c: New file.
19038
19039         Tests for module 'unistr/u8-strlen'.
19040         * modules/unistr/u8-strlen-tests: New file.
19041         * tests/unistr/test-u8-strlen.c: New file.
19042
19043         Tests for module 'unistr/u32-prev'.
19044         * modules/unistr/u32-prev-tests: New file.
19045         * tests/unistr/test-u32-prev.c: New file.
19046
19047         Tests for module 'unistr/u16-prev'.
19048         * modules/unistr/u16-prev-tests: New file.
19049         * tests/unistr/test-u16-prev.c: New file.
19050
19051         Tests for module 'unistr/u8-prev'.
19052         * modules/unistr/u8-prev-tests: New file.
19053         * tests/unistr/test-u8-prev.c: New file.
19054
19055         Tests for module 'unistr/u32-next'.
19056         * modules/unistr/u32-next-tests: New file.
19057         * tests/unistr/test-u32-next.c: New file.
19058
19059         Tests for module 'unistr/u16-next'.
19060         * modules/unistr/u16-next-tests: New file.
19061         * tests/unistr/test-u16-next.c: New file.
19062
19063         Tests for module 'unistr/u8-next'.
19064         * modules/unistr/u8-next-tests: New file.
19065         * tests/unistr/test-u8-next.c: New file.
19066
19067         Tests for module 'unistr/u32-strmbtouc'.
19068         * modules/unistr/u32-strmbtouc-tests: New file.
19069         * tests/unistr/test-u32-strmbtouc.c: New file.
19070
19071         Tests for module 'unistr/u16-strmbtouc'.
19072         * modules/unistr/u16-strmbtouc-tests: New file.
19073         * tests/unistr/test-u16-strmbtouc.c: New file.
19074
19075         Tests for module 'unistr/u8-strmbtouc'.
19076         * modules/unistr/u8-strmbtouc-tests: New file.
19077         * tests/unistr/test-u8-strmbtouc.c: New file.
19078
19079         Tests for module 'unistr/u32-strmblen'.
19080         * modules/unistr/u32-strmblen-tests: New file.
19081         * tests/unistr/test-u32-strmblen.c: New file.
19082
19083         Tests for module 'unistr/u16-strmblen'.
19084         * modules/unistr/u16-strmblen-tests: New file.
19085         * tests/unistr/test-u16-strmblen.c: New file.
19086
19087         Tests for module 'unistr/u8-strmblen'.
19088         * modules/unistr/u8-strmblen-tests: New file.
19089         * tests/unistr/test-u8-strmblen.c: New file.
19090
19091         Tests for module 'unistr/u32-cpy-alloc'.
19092         * modules/unistr/u32-cpy-alloc-tests: New file.
19093         * tests/unistr/test-u32-cpy-alloc.c: New file.
19094
19095         Tests for module 'unistr/u16-cpy-alloc'.
19096         * modules/unistr/u16-cpy-alloc-tests: New file.
19097         * tests/unistr/test-u16-cpy-alloc.c: New file.
19098
19099         Tests for module 'unistr/u8-cpy-alloc'.
19100         * modules/unistr/u8-cpy-alloc-tests: New file.
19101         * tests/unistr/test-u8-cpy-alloc.c: New file.
19102         * tests/unistr/test-cpy-alloc.h: New file.
19103
19104         Tests for module 'unistr/u32-mbsnlen'.
19105         * modules/unistr/u32-mbsnlen-tests: New file.
19106         * tests/unistr/test-u32-mbsnlen.c: New file.
19107
19108         Tests for module 'unistr/u16-mbsnlen'.
19109         * modules/unistr/u16-mbsnlen-tests: New file.
19110         * tests/unistr/test-u16-mbsnlen.c: New file.
19111
19112         Tests for module 'unistr/u8-mbsnlen'.
19113         * modules/unistr/u8-mbsnlen-tests: New file.
19114         * tests/unistr/test-u8-mbsnlen.c: New file.
19115
19116         Tests for module 'unistr/u32-chr'.
19117         * modules/unistr/u32-chr-tests: New file.
19118         * tests/unistr/test-u32-chr.c: New file.
19119
19120         Tests for module 'unistr/u16-chr'.
19121         * modules/unistr/u16-chr-tests: New file.
19122         * tests/unistr/test-u16-chr.c: New file.
19123
19124         Tests for module 'unistr/u8-chr'.
19125         * modules/unistr/u8-chr-tests: New file.
19126         * tests/unistr/test-u8-chr.c: New file.
19127         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19128
19129         Tests for module 'unistr/u32-cmp2'.
19130         * modules/unistr/u32-cmp2-tests: New file.
19131         * tests/unistr/test-u32-cmp2.c: New file.
19132
19133         Tests for module 'unistr/u16-cmp2'.
19134         * modules/unistr/u16-cmp2-tests: New file.
19135         * tests/unistr/test-u16-cmp2.c: New file.
19136
19137         Tests for module 'unistr/u8-cmp2'.
19138         * modules/unistr/u8-cmp2-tests: New file.
19139         * tests/unistr/test-u8-cmp2.c: New file.
19140         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19141
19142         Tests for module 'unistr/u32-cmp'.
19143         * modules/unistr/u32-cmp-tests: New file.
19144         * tests/unistr/test-u32-cmp.c: New file.
19145
19146         Tests for module 'unistr/u16-cmp'.
19147         * modules/unistr/u16-cmp-tests: New file.
19148         * tests/unistr/test-u16-cmp.c: New file.
19149
19150         Tests for module 'unistr/u8-cmp'.
19151         * modules/unistr/u8-cmp-tests: New file.
19152         * tests/unistr/test-u8-cmp.c: New file.
19153         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19154
19155         Tests for module 'unistr/u32-set'.
19156         * modules/unistr/u32-set-tests: New file.
19157         * tests/unistr/test-u32-set.c: New file.
19158
19159         Tests for module 'unistr/u16-set'.
19160         * modules/unistr/u16-set-tests: New file.
19161         * tests/unistr/test-u16-set.c: New file.
19162
19163         Tests for module 'unistr/u8-set'.
19164         * modules/unistr/u8-set-tests: New file.
19165         * tests/unistr/test-u8-set.c: New file.
19166         * tests/unistr/test-set.h: New file.
19167
19168         Tests for module 'unistr/u32-move'.
19169         * modules/unistr/u32-move-tests: New file.
19170         * tests/unistr/test-u32-move.c: New file.
19171
19172         Tests for module 'unistr/u16-move'.
19173         * modules/unistr/u16-move-tests: New file.
19174         * tests/unistr/test-u16-move.c: New file.
19175
19176         Tests for module 'unistr/u8-move'.
19177         * modules/unistr/u8-move-tests: New file.
19178         * tests/unistr/test-u8-move.c: New file.
19179         * tests/unistr/test-move.h: New file.
19180
19181         Tests for module 'unistr/u32-cpy'.
19182         * modules/unistr/u32-cpy-tests: New file.
19183         * tests/unistr/test-u32-cpy.c: New file.
19184
19185         Tests for module 'unistr/u16-cpy'.
19186         * modules/unistr/u16-cpy-tests: New file.
19187         * tests/unistr/test-u16-cpy.c: New file.
19188
19189         Tests for module 'unistr/u8-cpy'.
19190         * modules/unistr/u8-cpy-tests: New file.
19191         * tests/unistr/test-u8-cpy.c: New file.
19192         * tests/unistr/test-cpy.h: New file.
19193
19194 2010-01-09  Bruno Haible  <bruno@clisp.org>
19195
19196         Tests for module 'unistr/u32-uctomb'.
19197         * modules/unistr/u32-uctomb-tests: New file.
19198         * tests/unistr/test-u32-uctomb.c: New file.
19199
19200         Tests for module 'unistr/u16-uctomb'.
19201         * modules/unistr/u16-uctomb-tests: New file.
19202         * tests/unistr/test-u16-uctomb.c: New file.
19203
19204         Tests for module 'unistr/u8-uctomb'.
19205         * modules/unistr/u8-uctomb-tests: New file.
19206         * tests/unistr/test-u8-uctomb.c: New file.
19207
19208         Tests for module 'unistr/u32-mbtoucr'.
19209         * modules/unistr/u32-mbtoucr-tests: New file.
19210         * tests/unistr/test-u32-mbtoucr.c: New file.
19211
19212         Tests for module 'unistr/u16-mbtoucr'.
19213         * modules/unistr/u16-mbtoucr-tests: New file.
19214         * tests/unistr/test-u16-mbtoucr.c: New file.
19215
19216         Tests for module 'unistr/u8-mbtoucr'.
19217         * modules/unistr/u8-mbtoucr-tests: New file.
19218         * tests/unistr/test-u8-mbtoucr.c: New file.
19219
19220         Tests for module 'unistr/u32-mbtouc'.
19221         * modules/unistr/u32-mbtouc-tests: New file.
19222         * tests/unistr/test-u32-mbtouc.c: New file.
19223
19224         Tests for module 'unistr/u16-mbtouc'.
19225         * modules/unistr/u16-mbtouc-tests: New file.
19226         * tests/unistr/test-u16-mbtouc.c: New file.
19227
19228         Tests for module 'unistr/u8-mbtouc'.
19229         * modules/unistr/u8-mbtouc-tests: New file.
19230         * tests/unistr/test-u8-mbtouc.c: New file.
19231
19232         Tests for module 'unistr/u32-mbtouc-unsafe'.
19233         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19234         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19235         * tests/unistr/test-u32-mbtouc.h: New file.
19236
19237         Tests for module 'unistr/u16-mbtouc-unsafe'.
19238         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19239         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19240         * tests/unistr/test-u16-mbtouc.h: New file.
19241
19242         Tests for module 'unistr/u8-mbtouc-unsafe'.
19243         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19244         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19245         * tests/unistr/test-u8-mbtouc.h: New file.
19246
19247         Tests for module 'unistr/u32-mblen'.
19248         * modules/unistr/u32-mblen-tests: New file.
19249         * tests/unistr/test-u32-mblen.c: New file.
19250
19251         Tests for module 'unistr/u16-mblen'.
19252         * modules/unistr/u16-mblen-tests: New file.
19253         * tests/unistr/test-u16-mblen.c: New file.
19254
19255         Tests for module 'unistr/u8-mblen'.
19256         * modules/unistr/u8-mblen-tests: New file.
19257         * tests/unistr/test-u8-mblen.c: New file.
19258
19259         Tests for module 'unistr/u32-to-u16'.
19260         * modules/unistr/u32-to-u16-tests: New file.
19261         * tests/unistr/test-u32-to-u16.c: New file.
19262
19263         Tests for module 'unistr/u32-to-u8'.
19264         * modules/unistr/u32-to-u8-tests: New file.
19265         * tests/unistr/test-u32-to-u8.c: New file.
19266
19267         Tests for module 'unistr/u16-to-u32'.
19268         * modules/unistr/u16-to-u32-tests: New file.
19269         * tests/unistr/test-u16-to-u32.c: New file.
19270
19271         Tests for module 'unistr/u16-to-u8'.
19272         * modules/unistr/u16-to-u8-tests: New file.
19273         * tests/unistr/test-u16-to-u8.c: New file.
19274
19275         Tests for module 'unistr/u8-to-u32'.
19276         * modules/unistr/u8-to-u32-tests: New file.
19277         * tests/unistr/test-u8-to-u32.c: New file.
19278
19279         Tests for module 'unistr/u8-to-u16'.
19280         * modules/unistr/u8-to-u16-tests: New file.
19281         * tests/unistr/test-u8-to-u16.c: New file.
19282
19283         Tests for module 'unistr/u32-check'.
19284         * modules/unistr/u32-check-tests: New file.
19285         * tests/unistr/test-u32-check.c: New file.
19286
19287         Tests for module 'unistr/u16-check'.
19288         * modules/unistr/u16-check-tests: New file.
19289         * tests/unistr/test-u16-check.c: New file.
19290
19291         Tests for module 'unistr/u8-check'.
19292         * modules/unistr/u8-check-tests: New file.
19293         * tests/unistr/test-u8-check.c: New file.
19294
19295         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19296         (category_equals): New function.
19297         (main): Add more tests.
19298         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19299
19300         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19301
19302 2010-01-10  Bruno Haible  <bruno@clisp.org>
19303
19304         unistr/u*-strcoll: Try harder to distinguish different strings.
19305         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19306         compare s1 and s2 to see if they are different.
19307
19308 2010-01-10  Bruno Haible  <bruno@clisp.org>
19309
19310         unistr/u*-stpncpy: Fix the return value.
19311         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19312         description of the return value consistent with stpncpy in glibc.
19313         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19314         written non-NUL unit.
19315
19316 2010-01-10  Bruno Haible  <bruno@clisp.org>
19317
19318         unistr/u*-next: Add missing dependencies.
19319         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19320         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19321         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19322
19323 2010-01-10  Bruno Haible  <bruno@clisp.org>
19324
19325         unistr/u8-mbsnlen: Fix return value for incomplete character.
19326         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19327         u8_mblen.
19328         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19329         Remove unistr/u8-mblen.
19330         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19331         u16_mblen.
19332         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19333         Remove unistr/u16-mblen.
19334
19335 2010-01-10  Bruno Haible  <bruno@clisp.org>
19336
19337         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19338         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19339         Reported by Brian Gough <bjg@gnu.org> and
19340         Chris Clayton <chris2553@googlemail.com> via
19341         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19342
19343 2010-01-09  Bruno Haible  <bruno@clisp.org>
19344
19345         unistr/u16-to-u32: Reject invalid input.
19346         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19347         u16_mbtouc.
19348         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19349         Remove unistr/u16-mbtouc.
19350
19351         unistr/u16-to-u8: Reject invalid input.
19352         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19353         u16_mbtouc.
19354         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19355         Remove unistr/u16-mbtouc.
19356
19357         unistr/u8-to-u32: Reject invalid input.
19358         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19359         u8_mbtouc.
19360         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19361         Remove unistr/u8-mbtouc.
19362
19363         unistr/u8-to-u16: Reject invalid input.
19364         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19365         u8_mbtouc.
19366         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19367         Remove unistr/u8-mbtouc.
19368
19369 2010-01-09  Bruno Haible  <bruno@clisp.org>
19370
19371         Tests for module 'getlogin'.
19372         * modules/getlogin-tests: New file.
19373         * tests/test-getlogin.c: New file.
19374
19375         New module 'getlogin'.
19376         * lib/unistd.in.h (getlogin): New declaration.
19377         * lib/getlogin.c: New file.
19378         * m4/getlogin.m4: New file.
19379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19380         HAVE_GETLOGIN.
19381         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19382         HAVE_GETLOGIN.
19383         * modules/getlogin: New file.
19384         * doc/posix-functions/getlogin.texi: Mention the new module.
19385         Reported by John W. Eaton <jwe@gnu.org>.
19386
19387 2010-01-09  Bruno Haible  <bruno@clisp.org>
19388
19389         getlogin_r: Support for native Windows.
19390         * lib/getlogin_r.c: Include <windows.h>
19391         (getlogin_r): Implement for native Windows.
19392         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19393         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19394         via John W. Eaton <jwe@gnu.org>.
19395
19396 2010-01-09  Bruno Haible  <bruno@clisp.org>
19397
19398         getlogin_r: Small fixes.
19399         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19400         succeeds.
19401         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19402         before testing whether getlogin_r is declared. No need to set
19403         HAVE_DECL_GETLOGIN_R to 1.
19404         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19405
19406 2010-01-09  Bruno Haible  <bruno@clisp.org>
19407
19408         * lib/unistd.in.h (getlogin_r): Add comment.
19409
19410 2010-01-09  Bruno Haible  <bruno@clisp.org>
19411
19412         Tests for module 'getlogin_r'.
19413         * modules/getlogin_r-tests: New file.
19414         * tests/test-getlogin_r.c: New file.
19415
19416 2010-01-09  Jim Meyering  <meyering@redhat.com>
19417
19418         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19419         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19420         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19421
19422 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19423
19424         * lib/dup2.c (rpl_dup2): Improve comment.
19425
19426 2010-01-08  Eric Blake  <ebb9@byu.net>
19427
19428         maint.mk: allow packages to add makefile @@ exceptions
19429         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19430         (sc_makefile_check): Rename...
19431         (sc_makefile_at_at_check): ...to this, and use hook.
19432
19433         dup2: work around mingw bug
19434         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19435         Reported by Simon Josefsson.
19436
19437 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19438
19439         glob: Fix C++ compilation.
19440         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19441         C++.
19442
19443 2010-01-07  Bruno Haible  <bruno@clisp.org>
19444
19445         Fix indentation of wctype.in.h, broken since 2007-01-06.
19446         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19447
19448 2010-01-07  Bruno Haible  <bruno@clisp.org>
19449
19450         mbslen: Avoid collision with system function.
19451         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19452         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19453         * m4/mbslen.m4: New file.
19454         * modules/mbslen (Files): Add it.
19455         (configure.ac): Invoke gl_MBSLEN.
19456         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19457         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19458         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19459         via Ian Beckwith <ianb@erislabs.net>.
19460
19461 2010-01-07  Bruno Haible  <bruno@clisp.org>
19462
19463         dirent: Document the last fix.
19464         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19465
19466 2010-01-07  Bruno Haible  <bruno@clisp.org>
19467
19468         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19469         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19470         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19471         va_list are defined.
19472         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19473         Reported by Eric Blake.
19474
19475 2010-01-07  Bruno Haible  <bruno@clisp.org>
19476
19477         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19478         * modules/xlist (Depends-on): Add 'list',
19479         * modules/xoset (Depends-on): Add 'oset'.
19480         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19481
19482 2010-01-07  Bruno Haible  <bruno@clisp.org>
19483
19484         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19485         * doc/posix-functions/strncasecmp.texi: Likewise.
19486
19487 2010-01-07  Bruno Haible  <bruno@clisp.org>
19488
19489         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19490
19491 2010-01-07  John W. Eaton  <jwe@octave.org>
19492
19493         wctype: allow C++ use
19494         * lib/wctype.in.h: Add extern "C" block for C++.
19495
19496 2010-01-06  Eric Blake  <ebb9@byu.net>
19497
19498         maint.mk: detect incorrect GFDL usage
19499         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19500
19501 2010-01-06  Jim Meyering  <meyering@redhat.com>
19502         and Eric Blake  <ebb9@byu.net>
19503
19504         maint.mk: ignore multi-line copyright in NEWS
19505         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19506
19507 2010-01-06  Eric Blake  <ebb9@byu.net>
19508
19509         select: add missing dependency
19510         * modules/select-tests (Depends-on): Move sockets dependency...
19511         * modules/select (Depends-on): ...here.
19512         Reported by Ian Beckwith.
19513
19514         doc: regenerate INSTALL
19515         * doc/INSTALL: Reflect recent autoconf update.
19516         * doc/INSTALL.ISO: Likewise.
19517         * doc/INSTALL.UTF-8: Likewise.
19518
19519         pread: fix compilation on glibc
19520         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19521         Reported by Ralf Wildenhues.
19522
19523         dirent: fix test failure
19524         * lib/dirent.in.h (includes): Guarantee ino_t.
19525         Reported by Ralf Wildenhues.
19526
19527 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19528
19529         linkat, renameat: avoid bad free
19530         * lib/at-func2.c (at_func2): Fix typo.
19531         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19532
19533 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19534
19535         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19536         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19537         to avoid failure of symlink test later.
19538
19539 2010-01-06  Eric Blake  <ebb9@byu.net>
19540
19541         stdio, unistd: guarantee ssize_t
19542         * lib/unistd.in.h (includes): Ensure that types required by POSIX
19543         2008 are exposed when needed.
19544         * lib/stdio.in.h (includes): Likewise.
19545         Reported by Ralf Wildenhues.
19546
19547 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
19548
19549         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
19550         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
19551         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
19552
19553 2010-01-06  Jim Meyering  <meyering@redhat.com>
19554
19555         readtokens: this module *does* require xalloc.h
19556         It uses only functions that were omitted by the old syntax-check rule.
19557         * lib/readtokens.c: Include "xalloc.h" once again.
19558         * modules/readtokens (Depends-on): Add xalloc.
19559         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
19560
19561 2010-01-05  Eric Blake  <ebb9@byu.net>
19562
19563         maint: support 'make announcement' from a VPATH build
19564         * top/maint.mk (announcement): Look for correct NEWS file.
19565
19566 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
19567
19568         utimens (fdutimens): ignore a negative FD, per contract
19569         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
19570         when we have a valid file descriptor.  Otherwise, using a brand
19571         new glibc (with just-patched futimens that now fails with EBADF)
19572         would cause this function to fail with ENOSYS.
19573         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
19574         See also http://bugzilla.redhat.com/552320.
19575
19576 2010-01-05  Eric Blake  <ebb9@byu.net>
19577
19578         strcase: document what it provides
19579         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
19580         gnulib module.
19581         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
19582         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
19583
19584 2010-01-05  Jim Meyering  <meyering@redhat.com>
19585
19586         maint: remove useless inclusions of "xalloc.h"
19587         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
19588         * lib/readtokens.c: Likewise.
19589         * lib/same.c: Likewise.
19590         * modules/getloadavg (Depends-on): Remove xalloc.
19591         * modules/readtokens: Likewise.
19592         * modules/same: Likewise.
19593
19594         maint.mk: include 4 more function names in alloca.h-checking regexp
19595         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
19596         regexp.  Before, we would give a false-positive (saying alloca.h
19597         is included unnecessarily) when the only uses involved omitted symbols.
19598
19599         xalloc.h: use consistent formatting
19600         * lib/xalloc.h: Move declarations to start in the first column.
19601
19602 2010-01-05  Eric Blake  <ebb9@byu.net>
19603
19604         mkdir: avoid xalloc
19605         * lib/mkdir.c (includes): Drop unused header.
19606         Reported by John W. Eaton.
19607
19608 2010-01-04  Jim Meyering  <meyering@redhat.com>
19609
19610         nl_langinfo: avoid configure-time syntax error
19611         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
19612         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
19613         the empty string.  Don't let that provoke a shell syntax error.
19614
19615         regcomp, regexec, fnmatch: avoid array bounds read error
19616         * lib/regcomp.c (build_equiv_class): From glibc:
19617         Use only the low 24 bits of a findidx return value as an index
19618         into the weights array.  Patch by Ulrich Drepper:
19619         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
19620         * lib/regexec.c (check_node_accept_bytes): Likewise.
19621         * lib/fnmatch_loop.c (FCT): Likewise.
19622
19623         regcomp: skip collseq lookup when there are no rules
19624         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
19625         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
19626
19627         regcomp: recognize ill-formed { } expressions
19628         * lib/regcomp.c (parse_dup_op): From glibc:
19629         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
19630
19631         regcomp: fix typo in comment
19632         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
19633         s/satisfy/satisfies/.
19634
19635         regcomp: sync from glibc: remove dead store
19636         * lib/regcomp.c (duplicate_node_closure): Remove useless
19637         search_duplicated_node call and dead store.
19638
19639         regcomp: sync from glibc; always use nl_langinfo
19640         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
19641         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
19642         * modules/regex (Depends-on): Add nl_langinfo.
19643
19644 2010-01-04  Eric Blake  <ebb9@byu.net>
19645
19646         fdopendir: fix configure test
19647         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
19648
19649 2010-01-01  Bruno Haible  <bruno@clisp.org>
19650
19651         wchar: Remove unused configure check.
19652         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
19653
19654 2010-01-01  Eric Blake  <ebb9@byu.net>
19655
19656         headers: make check of system header explicit
19657         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
19658         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
19659         ourselves.
19660         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19662         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
19663         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
19664         internals.
19665         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
19666         missing.
19667         Suggested by Bruno Haible.
19668
19669 2010-01-01  Jim Meyering  <meyering@redhat.com>
19670
19671         ChangeLog: tweak to eliminate unnecessary copyright line
19672         * ChangeLog: Remove a copyright line that was mistakenly updated
19673         by today's update-copyright run.  Reported by Eric Blake.
19674
19675         test-update-copyright: don't let envvar setting cause test failure
19676         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19677
19678 2010-01-01  Bruno Haible  <bruno@clisp.org>
19679
19680         localename: Avoid gcc warning.
19681         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
19682         function if it is not used.
19683
19684 2010-01-01  Jim Meyering  <meyering@redhat.com>
19685
19686         update nearly all FSF copyright year lists to include 2010
19687         Use the same procedure as for 2009, outlined in
19688         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
19689
19690         version-etc: set COPYRIGHT_YEAR to 2010
19691         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
19692
19693 2009-12-31  Eric Blake  <ebb9@byu.net>
19694
19695         doc: correct availability of cygwin 1.5.x getopt
19696         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
19697         variables.
19698         * doc/posix-functions/opterr.texi (opterr): Likewise.
19699         * doc/posix-functions/optind.texi (optind): Likewise.
19700         * doc/posix-functions/optopt.texi (optopt): Likewise.
19701         * doc/posix-functions/tzname.texi (tzname): Likewise.
19702
19703         openat: update maintainer
19704         * modules/openat (Maintainer): Add myself.
19705
19706         utimens: avoid shadowing warning
19707         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
19708         buffers into one, to avoid shadowing, as well as avoiding a
19709         redundant stat.
19710         Reported by Jim Meyering.
19711
19712         test-dup2: avoid compiler warning
19713         * tests/test-dup2.c (is_inheritable): Only define if used.
19714
19715 2010-01-01  Bruno Haible  <bruno@clisp.org>
19716
19717         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
19718         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
19719         defined, use wctomb instead of wcrtomb.
19720
19721 2010-01-01  Bruno Haible  <bruno@clisp.org>
19722
19723         iconv: Reject native Solaris iconv.
19724         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
19725         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
19726
19727 2009-12-31  Bruno Haible  <bruno@clisp.org>
19728
19729         * tests/test-signal.c (main): Remove test of 'SIG'.
19730
19731 2009-12-31  Bruno Haible  <bruno@clisp.org>
19732
19733         spawn: Fix incomplete fix.
19734         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19735         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19736         warnings for GNULIB_POSIXCHECK again.
19737         Reported by Eric Blake.
19738
19739 2009-12-31  Bruno Haible  <bruno@clisp.org>
19740
19741         Avoid namespace pollution on glibc systems.
19742         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
19743         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
19744         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
19745         glibc systems.
19746
19747 2009-12-31  Bruno Haible  <bruno@clisp.org>
19748
19749         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
19750         (gl_REPLACE_WCHAR_H): Turn into a no-op.
19751         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
19752         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19753         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19754         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19755         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19756
19757 2009-12-31  Bruno Haible  <bruno@clisp.org>
19758
19759         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
19760         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
19761         afterwards.
19762
19763 2009-12-31  Bruno Haible  <bruno@clisp.org>
19764
19765         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
19766         SYS_UTSNAME_H.
19767
19768 2009-12-31  Bruno Haible  <bruno@clisp.org>
19769
19770         spawn: Fix misapplied patch.
19771         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
19772         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
19773         warnings for GNULIB_POSIXCHECK.
19774
19775 2009-12-31  Bruno Haible  <bruno@clisp.org>
19776
19777         times: Update after sys_times changed.
19778         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
19779         * modules/times (Files): Add it.
19780         (configure.ac): Invoke gl_FUNC_TIMES.
19781
19782 2009-12-31  Bruno Haible  <bruno@clisp.org>
19783
19784         Use AC_C_INLINE where necessary.
19785         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
19786         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19787         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
19788         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
19789         * m4/mbfile.m4 (gl_MBFILE): Likewise.
19790         * m4/mbiter.m4 (gl_MBITER): Likewise.
19791         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
19792         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19793         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
19794         * modules/u64 (configure.ac): Likewise.
19795
19796 2009-12-31  Bruno Haible  <bruno@clisp.org>
19797
19798         Use AC_C_INLINE instead of module 'inline' where possible.
19799         * modules/inline (Description): Clarify purpose.
19800         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
19801         * modules/count-one-bits (Depends-on): Remove inline.
19802         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
19803         * modules/openat (Depends-on): Remove inline.
19804         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
19805         instead of depending on module 'inline'.
19806         * modules/filevercmp (Depends-on, configure.ac): Likewise.
19807         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
19808         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
19809         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
19810         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19811         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19812         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19813         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19814         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19815         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19816         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19817         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19818         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19819         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19820         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19821         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19822         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19823         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19824         Likewise.
19825         * modules/unictype/property-ascii-hex-digit (Depends-on,
19826         configure.ac): Likewise.
19827         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19828         configure.ac): Likewise.
19829         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19830         configure.ac): Likewise.
19831         * modules/unictype/property-bidi-block-separator (Depends-on,
19832         configure.ac): Likewise.
19833         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19834         configure.ac): Likewise.
19835         * modules/unictype/property-bidi-common-separator (Depends-on,
19836         configure.ac): Likewise.
19837         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19838         Likewise.
19839         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19840         configure.ac): Likewise.
19841         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19842         configure.ac): Likewise.
19843         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19844         configure.ac): Likewise.
19845         * modules/unictype/property-bidi-european-digit (Depends-on,
19846         configure.ac): Likewise.
19847         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19848         configure.ac): Likewise.
19849         * modules/unictype/property-bidi-left-to-right (Depends-on,
19850         configure.ac): Likewise.
19851         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19852         configure.ac): Likewise.
19853         * modules/unictype/property-bidi-other-neutral (Depends-on,
19854         configure.ac): Likewise.
19855         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19856         Likewise.
19857         * modules/unictype/property-bidi-segment-separator (Depends-on,
19858         configure.ac): Likewise.
19859         * modules/unictype/property-bidi-whitespace (Depends-on,
19860         configure.ac): Likewise.
19861         * modules/unictype/property-combining (Depends-on, configure.ac):
19862         Likewise.
19863         * modules/unictype/property-composite (Depends-on, configure.ac):
19864         Likewise.
19865         * modules/unictype/property-currency-symbol (Depends-on,
19866         configure.ac): Likewise.
19867         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19868         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19869         Likewise.
19870         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19871         configure.ac): Likewise.
19872         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19873         Likewise.
19874         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19875         Likewise.
19876         * modules/unictype/property-extender (Depends-on, configure.ac):
19877         Likewise.
19878         * modules/unictype/property-format-control (Depends-on, configure.ac):
19879         Likewise.
19880         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19881         Likewise.
19882         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19883         Likewise.
19884         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19885         Likewise.
19886         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19887         Likewise.
19888         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19889         Likewise.
19890         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19891         Likewise.
19892         * modules/unictype/property-id-start (Depends-on, configure.ac):
19893         Likewise.
19894         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19895         Likewise.
19896         * modules/unictype/property-ids-binary-operator (Depends-on,
19897         configure.ac): Likewise.
19898         * modules/unictype/property-ids-trinary-operator (Depends-on,
19899         configure.ac): Likewise.
19900         * modules/unictype/property-ignorable-control (Depends-on,
19901         configure.ac): Likewise.
19902         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19903         Likewise.
19904         * modules/unictype/property-join-control (Depends-on, configure.ac):
19905         Likewise.
19906         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19907         Likewise.
19908         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19909         Likewise.
19910         * modules/unictype/property-logical-order-exception (Depends-on,
19911         configure.ac): Likewise.
19912         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19913         Likewise.
19914         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19915         * modules/unictype/property-non-break (Depends-on, configure.ac):
19916         Likewise.
19917         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19918         Likewise.
19919         * modules/unictype/property-numeric (Depends-on, configure.ac):
19920         Likewise.
19921         * modules/unictype/property-other-alphabetic (Depends-on,
19922         configure.ac): Likewise.
19923         * modules/unictype/property-other-default-ignorable-code-point
19924         (Depends-on, configure.ac): Likewise.
19925         * modules/unictype/property-other-grapheme-extend (Depends-on,
19926         configure.ac): Likewise.
19927         * modules/unictype/property-other-id-continue (Depends-on,
19928         configure.ac): Likewise.
19929         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19930         Likewise.
19931         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19932         Likewise.
19933         * modules/unictype/property-other-math (Depends-on, configure.ac):
19934         Likewise.
19935         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19936         Likewise.
19937         * modules/unictype/property-paired-punctuation (Depends-on,
19938         configure.ac): Likewise.
19939         * modules/unictype/property-paragraph-separator (Depends-on,
19940         configure.ac): Likewise.
19941         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19942         Likewise.
19943         * modules/unictype/property-pattern-white-space (Depends-on,
19944         configure.ac): Likewise.
19945         * modules/unictype/property-private-use (Depends-on, configure.ac):
19946         Likewise.
19947         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19948         Likewise.
19949         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19950         Likewise.
19951         * modules/unictype/property-radical (Depends-on, configure.ac):
19952         Likewise.
19953         * modules/unictype/property-sentence-terminal (Depends-on,
19954         configure.ac): Likewise.
19955         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19956         Likewise.
19957         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19958         * modules/unictype/property-terminal-punctuation (Depends-on,
19959         configure.ac): Likewise.
19960         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19961         Likewise.
19962         * modules/unictype/property-unassigned-code-value (Depends-on,
19963         configure.ac): Likewise.
19964         * modules/unictype/property-unified-ideograph (Depends-on,
19965         configure.ac): Likewise.
19966         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19967         Likewise.
19968         * modules/unictype/property-variation-selector (Depends-on,
19969         configure.ac): Likewise.
19970         * modules/unictype/property-white-space (Depends-on, configure.ac):
19971         Likewise.
19972         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19973         Likewise.
19974         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19975         Likewise.
19976         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19977         Likewise.
19978         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19979         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19980         Likewise.
19981
19982 2009-12-31  Bruno Haible  <bruno@clisp.org>
19983
19984         Remove unnecessary AC_C_INLINE invocation.
19985         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19986         since 2009-08-21.
19987
19988 2009-12-31  Jim Meyering  <meyering@redhat.com>
19989
19990         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19991         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19992         With this change, we can all remove the gpg_key_ID = ... definition
19993         from our respective cfg.mk files.
19994
19995         maint.mk: create announcement template in ~/, not in /tmp
19996         * top/maint.mk (emit_upload_commands): Adjust.
19997         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19998         Remove temporary file, .ci-msg.
19999
20000 2009-12-31  Eric Blake  <ebb9@byu.net>
20001
20002         link-warning: always build headers with link warnings
20003         * modules/arpa_inet (Makefile.am): Always build replacement
20004         header.
20005         * modules/ctype (Makefile.am): Likewise.
20006         * modules/dirent (Makefile.am): Likewise.
20007         * modules/inttypes (Makefile.am): Likewise.
20008         * modules/langinfo (Makefile.am): Likewise.
20009         * modules/locale (Makefile.am): Likewise.
20010         * modules/spawn (Makefile.am): Likewise.
20011         * modules/sys_file (Makefile.am): Likewise.
20012         * modules/sys_ioctl (Makefile.am): Likewise.
20013         * modules/sys_select (Makefile.am): Likewise.
20014         * modules/sys_socket (Makefile.am): Likewise.
20015         * modules/sys_times (Makefile.am): Likewise.
20016         * modules/sys_utsname (Makefile.am): Likewise.
20017         * modules/sys_wait (Makefile.am): Likewise.
20018         * modules/wchar (Makefile.am): Likewise.
20019         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20020         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20021         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20022         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20023         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20024         Likewise.
20025         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20026         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20027         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20028         Likewise.
20029         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20030         Likewise.
20031         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20032         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20033         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20034         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20035         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20036         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20037         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20038         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20039         (gl_WCHAR_H_DEFAULTS): Likewise.
20040
20041 2009-12-31  Eric Blake  <ebb9@byu.net>
20042
20043         signal, spawn: use link warnings
20044         * lib/signal.in.h (sigset_t): Make unconditional.
20045         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20046         (sigpending, sigprocmask, sigaction): Add link warnings.
20047         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20048         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20049         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20050         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20051         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20052         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20053         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20054         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20055         (posix_spawn_file_actions_destroy)
20056         (posix_spawn_file_actions_addopen)
20057         (posix_spawn_file_actions_addclose)
20058         (posix_spawn_file_actions_adddup2): Likewise.
20059         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20060         * tests/test-signal.c (main): Enhance test.
20061
20062         spawn: improve wrapper support
20063         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20064         (gl_SPAWN_H_DEFAULTS): New defaults.
20065         * modules/spawn (Makefile.am): Substitute them.
20066         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20067         Only declare if missing or broken.
20068
20069         sys_times, sys_utsname: use include_next
20070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20071         header.
20072         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20073         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20074         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20075         * modules/sys_times (Depends-on): Add include_next.
20076         (Makefile.am): Substitute additional values.
20077         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20078         * lib/sys_times.in.h (includes): Include native header, if
20079         available.
20080         * lib/sys_utsname.in.h (includes): Likewise.
20081         * tests/test-sys_times.c (main): Enhance test.
20082
20083         fdutimensat: revert prior patch
20084         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20085         utimens.h.
20086         Reported by Bruno Haible.
20087
20088 2009-12-30  Eric Blake  <ebb9@byu.net>
20089
20090         sys_wait: drop link-warning dependency
20091         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20092         link-warning efforts.
20093         * lib/sys_wait.in.h: Likewise.
20094
20095         fdutimensat: remove bogus dependency
20096         * modules/fdutimensat (Depends-on): Drop inline.
20097
20098         unistd: fix typo
20099         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20100
20101 2009-12-30  Bruno Haible  <bruno@clisp.org>
20102
20103         Fix compilation error with Solaris cc.
20104         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20105         * lib/unicase/u16-is-invariant.c: Likewise.
20106         * lib/unicase/u32-is-invariant.c: Likewise.
20107         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20108
20109 2009-12-30  Bruno Haible  <bruno@clisp.org>
20110
20111         Fix test crash.
20112         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20113         locales.
20114         Reported by Simon Josefsson <simon@josefsson.org>.
20115
20116 2009-12-30  Bruno Haible  <bruno@clisp.org>
20117
20118         Fix compilation error on most platforms.
20119         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20120         Reported by Simon Josefsson <simon@josefsson.org>
20121         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20122
20123 2009-12-30  Eric Blake  <ebb9@byu.net>
20124
20125         futimens, utimensat: work around ntfs-3g bug
20126         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20127         a ctime bug is present, and expand workaround to cover ntfs-3g.
20128         * lib/utimens.c (fdutimens, lutimens): Likewise.
20129         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20130         (validate_timespec): Adjust return value.
20131         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20132         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20133         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20134
20135 2009-12-29  Eric Blake  <ebb9@byu.net>
20136
20137         link-warning: make usage consistent
20138         * modules/ctype (Depends-on): Add link-warning.
20139         (Makefile.am): Update rules accordingly.
20140         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20141         * modules/locale (Depends-on, Makefile.am): Likewise.
20142         * modules/sys_file (Makefile.am): Likewise.
20143         * modules/getopt-posix (Makefile.am): Delete unused link warning
20144         efforts.
20145         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20146         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20147         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20148         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20149
20150         stdio: remove unused variables
20151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20152         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20153         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20154
20155         tests: test more substitute headers
20156         * modules/ctype-tests: New file.
20157         * modules/dirent-tests: Likewise.
20158         * modules/spawn-tests: Likewise.
20159         * modules/sys_file-tests: Likewise.
20160         * modules/sys_ioctl-tests: Likewise.
20161         * modules/sys_wait-tests: Likewise.
20162         * tests/test-ctype.c: Likewise.
20163         * tests/test-dirent.c: Likewise.
20164         * tests/test-spawn.c: Likewise.
20165         * tests/test-sys_file.c: Likewise.
20166         * tests/test-sys_ioctl.c: Likewise.
20167         * tests/test-sys_wait.c: Likewise.
20168         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20169         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20170         whether or not flock is in use.
20171
20172         tests: remove License section from module
20173         * modules/arpa_inet-tests: Remove unneeded section.
20174         * modules/byteswap-tests: Likewise.
20175         * modules/ceilf-tests: Likewise.
20176         * modules/ceill-tests: Likewise.
20177         * modules/crypto/des-tests: Likewise.
20178         * modules/crypto/gc-arcfour-tests: Likewise.
20179         * modules/crypto/gc-arctwo-tests: Likewise.
20180         * modules/crypto/gc-des-tests: Likewise.
20181         * modules/crypto/gc-hmac-md5-tests: Likewise.
20182         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20183         * modules/crypto/gc-md2-tests: Likewise.
20184         * modules/crypto/gc-md4-tests: Likewise.
20185         * modules/crypto/gc-md5-tests: Likewise.
20186         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20187         * modules/crypto/gc-rijndael-tests: Likewise.
20188         * modules/crypto/gc-sha1-tests: Likewise.
20189         * modules/crypto/gc-tests: Likewise.
20190         * modules/crypto/md2-tests: Likewise.
20191         * modules/crypto/md4-tests: Likewise.
20192         * modules/fcntl-h-tests: Likewise.
20193         * modules/floorf-tests: Likewise.
20194         * modules/floorl-tests: Likewise.
20195         * modules/frexp-nolibm-tests: Likewise.
20196         * modules/frexp-tests: Likewise.
20197         * modules/frexpl-nolibm-tests: Likewise.
20198         * modules/frexpl-tests: Likewise.
20199         * modules/getaddrinfo-tests: Likewise.
20200         * modules/inttypes-tests: Likewise.
20201         * modules/isfinite-tests: Likewise.
20202         * modules/isinf-tests: Likewise.
20203         * modules/ldexpl-tests: Likewise.
20204         * modules/locale-tests: Likewise.
20205         * modules/math-tests: Likewise.
20206         * modules/netdb-tests: Likewise.
20207         * modules/netinet_in-tests: Likewise.
20208         * modules/printf-frexp-tests: Likewise.
20209         * modules/printf-frexpl-tests: Likewise.
20210         * modules/priv-set-tests: Likewise.
20211         * modules/random_r-tests: Likewise.
20212         * modules/round-tests: Likewise.
20213         * modules/roundf-tests: Likewise.
20214         * modules/roundl-tests: Likewise.
20215         * modules/search-tests: Likewise.
20216         * modules/select-tests: Likewise.
20217         * modules/signal-tests: Likewise.
20218         * modules/stdbool-tests: Likewise.
20219         * modules/stddef-tests: Likewise.
20220         * modules/stdint-tests: Likewise.
20221         * modules/stdio-tests: Likewise.
20222         * modules/stdlib-tests: Likewise.
20223         * modules/string-tests: Likewise.
20224         * modules/strings-tests: Likewise.
20225         * modules/sys_select-tests: Likewise.
20226         * modules/sys_socket-tests: Likewise.
20227         * modules/sys_stat-tests: Likewise.
20228         * modules/sys_time-tests: Likewise.
20229         * modules/sys_utsname-tests: Likewise.
20230         * modules/sysexits-tests: Likewise.
20231         * modules/time-tests: Likewise.
20232         * modules/trunc-tests: Likewise.
20233         * modules/truncf-tests: Likewise.
20234         * modules/truncl-tests: Likewise.
20235         * modules/tsearch-tests: Likewise.
20236         * modules/unistd-tests: Likewise.
20237         * modules/wchar-tests: Likewise.
20238         * modules/wctype-tests: Likewise.
20239
20240         tests: fix license on several tests
20241         * tests/test-des.c: Update to GPLv3+.
20242         * tests/test-flock.c: Likewise.
20243         * tests/test-fsync.c: Likewise.
20244         * tests/test-futimens.h: Likewise.
20245         * tests/test-gc-arcfour.c: Likewise.
20246         * tests/test-gc-arctwo.c: Likewise.
20247         * tests/test-gc-des.c: Likewise.
20248         * tests/test-gc-hmac-md5.c: Likewise.
20249         * tests/test-gc-hmac-sha1.c: Likewise.
20250         * tests/test-gc-md2.c: Likewise.
20251         * tests/test-gc-md4.c: Likewise.
20252         * tests/test-gc-md5.c: Likewise.
20253         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20254         * tests/test-gc-rijndael.c: Likewise.
20255         * tests/test-gc-sha1.c: Likewise.
20256         * tests/test-gc.c: Likewise.
20257         * tests/test-getcwd.c: Likewise.
20258         * tests/test-link.c: Likewise.
20259         * tests/test-link.h: Likewise.
20260         * tests/test-lutimens.h: Likewise.
20261         * tests/test-md2.c: Likewise.
20262         * tests/test-md4.c: Likewise.
20263         * tests/test-mkdir.h: Likewise.
20264         * tests/test-rename.c: Likewise.
20265         * tests/test-rename.h: Likewise.
20266         * tests/test-safe-alloc.c: Likewise.
20267         * tests/test-utimens-common.h: Likewise.
20268         * tests/test-utimens.h: Likewise.
20269
20270         maint: sync license texts
20271         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20272         * doc/gpl-3.0.texi: Revert copyright year update.
20273         * doc/lgpl-3.0.texi: Likewise.
20274
20275 2009-12-29  Jim Meyering  <meyering@redhat.com>
20276
20277         update nearly all FSF copyright year lists to include 2009
20278         The files named by the following are exempted:
20279             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20280               test -f "$dst" && { echo "$dst"; continue; }
20281               test -d "$dst" || continue
20282               echo "$dst"/$(basename "$src")
20283             done > exempt
20284             git ls-files tests/unictype >> exempt
20285         In the remaining files, convert to all-interval notation if
20286         - there is already at least one year interval like 2000-2003
20287         - the file is maintained by me
20288         - the file is in lib/uni*/, where that style already prevails
20289         Otherwise, use update-copyright's default.
20290
20291 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20292         and Eric Blake  <ebb9@byu.net>
20293
20294         tests: don't require debug system() to pass
20295         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20296         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20297         * tests/test-unlink.h (test_unlink_func): Likewise.
20298         * tests/test-fstatat.c (main): ...into callers.
20299         * tests/test-lstat.c (main): Likewise.
20300         * tests/test-rmdir.c (main): Likewise.
20301         * tests/test-unlink.c (main): Likewise.
20302         * tests/test-unlinkat.c (main): Likewise.
20303         * tests/test-areadlink-with-size.c (main): Don't require a
20304         debug-only system call to pass, aiding cross-testing to mingw.
20305         * tests/test-areadlink.c (main): Likewise.
20306         * tests/test-areadlinkat-with-size.c (main): Likewise.
20307         * tests/test-areadlinkat.c (main): Likewise.
20308         * tests/test-canonicalize-lgpl.c (main): Likewise.
20309         * tests/test-canonicalize.c (main): Likewise.
20310         * tests/test-chown.c (main): Likewise.
20311         * tests/test-fchownat.c (main): Likewise.
20312         * tests/test-lchown.c (main): Likewise.
20313         * tests/test-fdutimensat.c (main): Likewise.
20314         * tests/test-futimens.c (main): Likewise.
20315         * tests/test-link.c (main): Likewise.
20316         * tests/test-linkat.c (main): Likewise.
20317         * tests/test-mkdir.c (main): Likewise.
20318         * tests/test-mkdirat.c (main): Likewise.
20319         * tests/test-mkfifo.c (main): Likewise.
20320         * tests/test-mkfifoat.c (main): Likewise.
20321         * tests/test-mknod.c (main): Likewise.
20322         * tests/test-readlink.c (main): Likewise.
20323         * tests/test-remove.c (main): Likewise.
20324         * tests/test-rename.c (main): Likewise.
20325         * tests/test-renameat.c (main): Likewise.
20326         * tests/test-symlink.c (main): Likewise.
20327         * tests/test-symlinkat.c (main): Likewise.
20328         * tests/test-utimens.c (main): Likewise.
20329         * tests/test-utimensat.c (main): Likewise.
20330
20331 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20332
20333         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20334         on $(UNUSED_PARAMETER_H) to avoid build failure.
20335
20336 2009-12-28  Jim Meyering  <meyering@redhat.com>
20337
20338         update-copyright: you may specify a max. line length other than 72
20339         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20340
20341         maint: use consistent FSF copyright line syntax
20342         * lib/posixtm.c: Add missing comma in FSF copyright line.
20343         * lib/posixtm.h: Likewise.
20344         * lib/getugroups.c: Add missing ", Inc.".
20345
20346         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20347         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20348         FSF copyright line.  Remove trailing blanks.
20349
20350 2009-12-28  Eric Blake  <ebb9@byu.net>
20351
20352         test-dup2: reduce dependencies
20353         * modules/cloexec (Configure.ac): Set witness.
20354         * modules/dup2-tests (Depends-on): Drop cloexec.
20355         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20356         not present.
20357         Suggested by Bruno Haible.
20358
20359 2009-12-26  Bruno Haible  <bruno@clisp.org>
20360
20361         Remove an unneeded dependency.
20362         * modules/fseterr (Depends-on): Remove dup2.
20363
20364 2009-12-26  Eric Blake  <ebb9@byu.net>
20365
20366         tests: use macros.h in more places
20367         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20368         (ASSERT_STREAM): Provide default of stderr.
20369         * tests/test-dirent-safer.c: Include macros.h, using alternate
20370         stream for assertions.
20371         * tests/test-dup-safer.c: Likewise.
20372         * tests/test-freopen-safer.c: Likewise.
20373         * tests/test-getopt.c: Likewise.
20374         * tests/test-openat-safer.c: Likewise.
20375         * tests/test-pipe.c: Likewise.
20376         * tests/test-popen-safer.c: Likewise.
20377         * modules/dirent-safer-tests (Files): Include macros.h.
20378         * modules/unistd-safer-tests (Files): Likewise.
20379         * modules/freopen-safer-tests (Files): Likewise.
20380         * modules/getopt-posix-tests (Files): Likewise.
20381         * modules/openat-safer-tests (Files): Likewise.
20382         * modules/pipe-tests (Files): Likewise.
20383
20384 2009-12-26  Bruno Haible  <bruno@clisp.org>
20385
20386         javacomp: Portability fix.
20387         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20388         that it also works on Solaris.
20389
20390 2009-12-26  Bruno Haible  <bruno@clisp.org>
20391
20392         localename: Fix storage allocation of gl_locale_name_thread's result.
20393         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20394         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20395         all platforms that have 'uselocale'.
20396         (gl_locale_name_thread_unsafe): New function, extracted from
20397         gl_locale_name_thread.
20398         (gl_locale_name_thread): Call struniq on all platforms that have
20399         'uselocale'.
20400         * tests/test-localename.c (test_locale_name_thread): Check that the
20401         resulting strings are permanently allocated.
20402         * modules/localename-tests (Depends-on): Add strdup.
20403
20404 2009-12-26  Bruno Haible  <bruno@clisp.org>
20405
20406         * tests/test-localename.c (categories): Fill in the strings.
20407
20408 2009-12-26  Jim Meyering  <meyering@redhat.com>
20409
20410         isdir: complete the removal of m4/isdir.m4
20411         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20412
20413         isdir: clean up, since at least grep still uses it
20414         * lib/isdir.c: Include "isdir.h".
20415         (S_ISDIR): Remove now-unneeded definition.
20416         * modules/isdir (Files): Add lib/isdir.h.
20417         * lib/isdir.h: New file, with declaration.
20418         * m4/isdir.m4: Remove file -- unneeded.
20419
20420 2009-12-25  Bruno Haible  <bruno@clisp.org>
20421
20422         selinux-h: Make generated .h files standalone.
20423         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20424         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20425         * lib/se-selinux.in.h: Likewise.
20426         * modules/selinux-h (Depends-on): Add unused-parameter.
20427         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20428         selinux/selinux.h and selinux/context.h.
20429         Suggested by Eric Blake.
20430
20431 2009-12-25  Bruno Haible  <bruno@clisp.org>
20432
20433         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20434         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20435         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20436         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20437         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20438
20439 2009-12-24  Bruno Haible  <bruno@clisp.org>
20440
20441         openat: Fix warning.
20442         * lib/openat-proc.c: Include <unistd.h>.
20443
20444 2009-12-24  Bruno Haible  <bruno@clisp.org>
20445
20446         New module 'unused-parameter'.
20447         * build-aux/unused-parameter.h: New file, extracted from earlier
20448         gnulib-common.m4.
20449         * modules/unused-parameter: New file.
20450         * lib/unistr.h: Include unused-parameter.h.
20451         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20452         _GL_UNUSED.
20453         * modules/unistr/base (Depends-on): Add unused-parameter.
20454
20455 2009-12-24  Bruno Haible  <bruno@clisp.org>
20456
20457         Add missing dependencies to 'extensions' module.
20458         * m4/extensions.m4: Add comment.
20459         * modules/accept4 (Depends-on): Add extensions.
20460         * modules/dup3 (Depends-on): Likewise.
20461         * modules/fcntl (Depends-on): Likewise.
20462         * modules/futimens (Depends-on): Likewise.
20463         * modules/mknod (Depends-on): Likewise.
20464         * modules/pipe2 (Depends-on): Likewise.
20465         * modules/stat-time (Depends-on): Likewise.
20466         * modules/strcasestr-simple (Depends-on): Likewise.
20467         * modules/strsignal (Depends-on): Likewise.
20468         * modules/utimensat (Depends-on): Likewise.
20469         * modules/localcharset (Depends-on): Likewise. Needed because of
20470         gl_FCNTL_O_FLAGS.
20471         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20472         AC_TYPE_MBSTATE_T.
20473         * modules/wcsnrtombs (Depends-on): Likewise.
20474         * modules/wcsrtombs (Depends-on): Likewise.
20475
20476 2009-12-24  Bruno Haible  <bruno@clisp.org>
20477
20478         binary-io: Avoid gcc warning due to SET_BINARY.
20479         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20480         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20481
20482 2009-12-24  Bruno Haible  <bruno@clisp.org>
20483
20484         Avoid future namespace pollution on glibc systems.
20485         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20486         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20487         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20488         glibc systems.
20489
20490 2009-12-24  Bruno Haible  <bruno@clisp.org>
20491
20492         Refactor common macros used in tests.
20493         * tests/macros.h: New file.
20494         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20495         and/or <stdlib.h>, if appropriate.
20496         (ASSERT, SIZEOF): Remove macros.
20497         * tests/test-areadlink-with-size.c: Likewise.
20498         * tests/test-areadlinkat.c: Likewise.
20499         * tests/test-areadlinkat-with-size.c: Likewise.
20500         * tests/test-argmatch.c: Likewise.
20501         * tests/test-argv-iter.c: Likewise.
20502         * tests/test-array-mergesort.c: Likewise.
20503         * tests/test-array_list.c: Likewise.
20504         * tests/test-array_oset.c: Likewise.
20505         * tests/test-avltree_list.c: Likewise.
20506         * tests/test-avltree_oset.c: Likewise.
20507         * tests/test-avltreehash_list.c: Likewise.
20508         * tests/test-base64.c: Likewise.
20509         * tests/test-binary-io.c: Likewise.
20510         * tests/test-bitrotate.c: Likewise.
20511         * tests/test-btowc.c: Likewise.
20512         * tests/test-byteswap.c: Likewise.
20513         * tests/test-c-ctype.c: Likewise.
20514         * tests/test-c-stack.c: Likewise.
20515         * tests/test-c-strcasecmp.c: Likewise.
20516         * tests/test-c-strcasestr.c: Likewise.
20517         * tests/test-c-strncasecmp.c: Likewise.
20518         * tests/test-c-strstr.c: Likewise.
20519         * tests/test-canonicalize-lgpl.c: Likewise.
20520         * tests/test-canonicalize.c: Likewise.
20521         * tests/test-carray_list.c: Likewise.
20522         * tests/test-ceilf1.c: Likewise.
20523         * tests/test-ceilf2.c: Likewise.
20524         * tests/test-ceill.c: Likewise.
20525         * tests/test-chown.c: Likewise.
20526         * tests/test-cloexec.c: Likewise.
20527         * tests/test-copy-acl.c: Likewise.
20528         * tests/test-copy-file.c: Likewise.
20529         * tests/test-count-one-bits.c: Likewise.
20530         * tests/test-dprintf-posix.c: Likewise.
20531         * tests/test-dup2.c: Likewise.
20532         * tests/test-dup3.c: Likewise.
20533         * tests/test-duplocale.c: Likewise.
20534         * tests/test-fbufmode.c: Likewise.
20535         * tests/test-fchdir.c: Likewise.
20536         * tests/test-fchownat.c: Likewise.
20537         * tests/test-fcntl-safer.c: Likewise.
20538         * tests/test-fcntl.c: Likewise.
20539         * tests/test-fdopendir.c: Likewise.
20540         * tests/test-fdutimensat.c: Likewise.
20541         * tests/test-fflush2.c: Likewise.
20542         * tests/test-file-has-acl.c: Likewise.
20543         * tests/test-filevercmp.c: Likewise.
20544         * tests/test-flock.c: Likewise.
20545         * tests/test-floorf1.c: Likewise.
20546         * tests/test-floorf2.c: Likewise.
20547         * tests/test-floorl.c: Likewise.
20548         * tests/test-fnmatch.c: Likewise.
20549         * tests/test-fopen.h: Likewise.
20550         * tests/test-fpending.c: Likewise.
20551         * tests/test-fprintf-posix.c: Likewise.
20552         * tests/test-fpurge.c: Likewise.
20553         * tests/test-freadable.c: Likewise.
20554         * tests/test-freadahead.c: Likewise.
20555         * tests/test-freading.c: Likewise.
20556         * tests/test-freadptr.c: Likewise.
20557         * tests/test-freadptr2.c: Likewise.
20558         * tests/test-freadseek.c: Likewise.
20559         * tests/test-freopen.c: Likewise.
20560         * tests/test-frexp.c: Likewise.
20561         * tests/test-frexpl.c: Likewise.
20562         * tests/test-fseek.c: Likewise.
20563         * tests/test-fseeko.c: Likewise.
20564         * tests/test-fstatat.c: Likewise.
20565         * tests/test-fstrcmp.c: Likewise.
20566         * tests/test-fsync.c: Likewise.
20567         * tests/test-ftell.c: Likewise.
20568         * tests/test-ftello.c: Likewise.
20569         * tests/test-func.c: Likewise.
20570         * tests/test-futimens.c: Likewise.
20571         * tests/test-fwritable.c: Likewise.
20572         * tests/test-fwriting.c: Likewise.
20573         * tests/test-getcwd.c: Likewise.
20574         * tests/test-getdate.c: Likewise.
20575         * tests/test-getdelim.c: Likewise.
20576         * tests/test-getdtablesize.c: Likewise.
20577         * tests/test-getgroups.c: Likewise.
20578         * tests/test-getline.c: Likewise.
20579         * tests/test-getndelim2.c: Likewise.
20580         * tests/test-glob.c: Likewise.
20581         * tests/test-hash.c: Likewise.
20582         * tests/test-i-ring.c: Likewise.
20583         * tests/test-iconv-utf.c: Likewise.
20584         * tests/test-iconv.c: Likewise.
20585         * tests/test-idpriv-drop.c: Likewise.
20586         * tests/test-idpriv-droptemp.c: Likewise.
20587         * tests/test-inet_ntop.c: Likewise.
20588         * tests/test-inet_pton.c: Likewise.
20589         * tests/test-isblank.c: Likewise.
20590         * tests/test-isfinite.c: Likewise.
20591         * tests/test-isinf.c: Likewise.
20592         * tests/test-isnan.c: Likewise.
20593         * tests/test-isnand.h: Likewise.
20594         * tests/test-isnanf.h: Likewise.
20595         * tests/test-isnanl.h: Likewise.
20596         * tests/test-lchown.c: Likewise.
20597         * tests/test-ldexpl.c: Likewise.
20598         * tests/test-link.c: Likewise.
20599         * tests/test-linkat.c: Likewise.
20600         * tests/test-linked_list.c: Likewise.
20601         * tests/test-linkedhash_list.c: Likewise.
20602         * tests/test-localename.c: Likewise.
20603         * tests/test-lseek.c: Likewise.
20604         * tests/test-lstat.c: Likewise.
20605         * tests/test-mbmemcasecmp.c: Likewise.
20606         * tests/test-mbmemcasecoll.c: Likewise.
20607         * tests/test-mbrtowc.c: Likewise.
20608         * tests/test-mbscasecmp.c: Likewise.
20609         * tests/test-mbscasestr1.c: Likewise.
20610         * tests/test-mbscasestr2.c: Likewise.
20611         * tests/test-mbscasestr3.c: Likewise.
20612         * tests/test-mbscasestr4.c: Likewise.
20613         * tests/test-mbschr.c: Likewise.
20614         * tests/test-mbscspn.c: Likewise.
20615         * tests/test-mbsinit.c: Likewise.
20616         * tests/test-mbsncasecmp.c: Likewise.
20617         * tests/test-mbsnrtowcs.c: Likewise.
20618         * tests/test-mbspbrk.c: Likewise.
20619         * tests/test-mbspcasecmp.c: Likewise.
20620         * tests/test-mbsrchr.c: Likewise.
20621         * tests/test-mbsrtowcs.c: Likewise.
20622         * tests/test-mbsspn.c: Likewise.
20623         * tests/test-mbsstr1.c: Likewise.
20624         * tests/test-mbsstr2.c: Likewise.
20625         * tests/test-mbsstr3.c: Likewise.
20626         * tests/test-memchr.c: Likewise.
20627         * tests/test-memchr2.c: Likewise.
20628         * tests/test-memcmp.c: Likewise.
20629         * tests/test-memmem.c: Likewise.
20630         * tests/test-memrchr.c: Likewise.
20631         * tests/test-mkdir.c: Likewise.
20632         * tests/test-mkdirat.c: Likewise.
20633         * tests/test-mkfifo.c: Likewise.
20634         * tests/test-mkfifoat.c: Likewise.
20635         * tests/test-mknod.c: Likewise.
20636         * tests/test-nanosleep.c: Likewise.
20637         * tests/test-nl_langinfo.c: Likewise.
20638         * tests/test-obstack-printf.c: Likewise.
20639         * tests/test-open.c: Likewise.
20640         * tests/test-openat.c: Likewise.
20641         * tests/test-pipe-filter-gi1.c: Likewise.
20642         * tests/test-pipe-filter-gi2-main.c: Likewise.
20643         * tests/test-pipe-filter-ii1.c: Likewise.
20644         * tests/test-pipe-filter-ii2-main.c: Likewise.
20645         * tests/test-pipe2.c: Likewise.
20646         * tests/test-popen.h: Likewise.
20647         * tests/test-posixtm.c: Likewise.
20648         * tests/test-pread.c: Likewise.
20649         * tests/test-printf-frexp.c: Likewise.
20650         * tests/test-printf-frexpl.c: Likewise.
20651         * tests/test-printf-posix.c: Likewise.
20652         * tests/test-priv-set.c: Likewise.
20653         * tests/test-quotearg.c: Likewise.
20654         * tests/test-random_r.c: Likewise.
20655         * tests/test-rawmemchr.c: Likewise.
20656         * tests/test-rbtree_list.c: Likewise.
20657         * tests/test-rbtree_oset.c: Likewise.
20658         * tests/test-rbtreehash_list.c: Likewise.
20659         * tests/test-readlink.c: Likewise.
20660         * tests/test-remove.c: Likewise.
20661         * tests/test-rename.c: Likewise.
20662         * tests/test-renameat.c: Likewise.
20663         * tests/test-rmdir.c: Likewise.
20664         * tests/test-round1.c: Likewise.
20665         * tests/test-roundf1.c: Likewise.
20666         * tests/test-roundl.c: Likewise.
20667         * tests/test-safe-alloc.c: Likewise.
20668         * tests/test-sameacls.c: Likewise.
20669         * tests/test-set-mode-acl.c: Likewise.
20670         * tests/test-setenv.c: Likewise.
20671         * tests/test-sigaction.c: Likewise.
20672         * tests/test-signbit.c: Likewise.
20673         * tests/test-sleep.c: Likewise.
20674         * tests/test-snprintf-posix.c: Likewise.
20675         * tests/test-snprintf.c: Likewise.
20676         * tests/test-sprintf-posix.c: Likewise.
20677         * tests/test-stat-time.c: Likewise.
20678         * tests/test-stat.c: Likewise.
20679         * tests/test-strcasestr.c: Likewise.
20680         * tests/test-strchrnul.c: Likewise.
20681         * tests/test-strerror.c: Likewise.
20682         * tests/test-striconv.c: Likewise.
20683         * tests/test-striconveh.c: Likewise.
20684         * tests/test-striconveha.c: Likewise.
20685         * tests/test-strsignal.c: Likewise.
20686         * tests/test-strstr.c: Likewise.
20687         * tests/test-strtod.c: Likewise.
20688         * tests/test-strverscmp.c: Likewise.
20689         * tests/test-symlink.c: Likewise.
20690         * tests/test-symlinkat.c: Likewise.
20691         * tests/test-trunc1.c: Likewise.
20692         * tests/test-trunc2.c: Likewise.
20693         * tests/test-truncf1.c: Likewise.
20694         * tests/test-truncf2.c: Likewise.
20695         * tests/test-truncl.c: Likewise.
20696         * tests/test-uname.c: Likewise.
20697         * tests/test-unlink.c: Likewise.
20698         * tests/test-unlinkat.c: Likewise.
20699         * tests/test-unsetenv.c: Likewise.
20700         * tests/test-usleep.c: Likewise.
20701         * tests/test-utimens.c: Likewise.
20702         * tests/test-utimensat.c: Likewise.
20703         * tests/test-vasnprintf-posix.c: Likewise.
20704         * tests/test-vasnprintf-posix2.c: Likewise.
20705         * tests/test-vasnprintf.c: Likewise.
20706         * tests/test-vasprintf-posix.c: Likewise.
20707         * tests/test-vasprintf.c: Likewise.
20708         * tests/test-vdprintf-posix.c: Likewise.
20709         * tests/test-vfprintf-posix.c: Likewise.
20710         * tests/test-vprintf-posix.c: Likewise.
20711         * tests/test-vsnprintf-posix.c: Likewise.
20712         * tests/test-vsnprintf.c: Likewise.
20713         * tests/test-vsprintf-posix.c: Likewise.
20714         * tests/test-wcrtomb.c: Likewise.
20715         * tests/test-wcsnrtombs.c: Likewise.
20716         * tests/test-wcsrtombs.c: Likewise.
20717         * tests/test-wctype.c: Likewise.
20718         * tests/test-wcwidth.c: Likewise.
20719         * tests/test-xfprintf-posix.c: Likewise.
20720         * tests/test-xmemdup0.c: Likewise.
20721         * tests/test-xprintf-posix.c: Likewise.
20722         * tests/test-xvasprintf.c: Likewise.
20723         * tests/unicase/test-locale-language.c: Likewise.
20724         * tests/unicase/test-mapping-part1.h: Likewise.
20725         * tests/unicase/test-predicate-part1.h: Likewise.
20726         * tests/unicase/test-u8-casecmp.c: Likewise.
20727         * tests/unicase/test-u8-casecoll.c: Likewise.
20728         * tests/unicase/test-u8-casefold.c: Likewise.
20729         * tests/unicase/test-u8-is-cased.c: Likewise.
20730         * tests/unicase/test-u8-is-casefolded.c: Likewise.
20731         * tests/unicase/test-u8-is-lowercase.c: Likewise.
20732         * tests/unicase/test-u8-is-titlecase.c: Likewise.
20733         * tests/unicase/test-u8-is-uppercase.c: Likewise.
20734         * tests/unicase/test-u8-tolower.c: Likewise.
20735         * tests/unicase/test-u8-totitle.c: Likewise.
20736         * tests/unicase/test-u8-toupper.c: Likewise.
20737         * tests/unicase/test-u16-casecmp.c: Likewise.
20738         * tests/unicase/test-u16-casecoll.c: Likewise.
20739         * tests/unicase/test-u16-casefold.c: Likewise.
20740         * tests/unicase/test-u16-is-cased.c: Likewise.
20741         * tests/unicase/test-u16-is-casefolded.c: Likewise.
20742         * tests/unicase/test-u16-is-lowercase.c: Likewise.
20743         * tests/unicase/test-u16-is-titlecase.c: Likewise.
20744         * tests/unicase/test-u16-is-uppercase.c: Likewise.
20745         * tests/unicase/test-u16-tolower.c: Likewise.
20746         * tests/unicase/test-u16-totitle.c: Likewise.
20747         * tests/unicase/test-u16-toupper.c: Likewise.
20748         * tests/unicase/test-u32-casecmp.c: Likewise.
20749         * tests/unicase/test-u32-casecoll.c: Likewise.
20750         * tests/unicase/test-u32-casefold.c: Likewise.
20751         * tests/unicase/test-u32-is-cased.c: Likewise.
20752         * tests/unicase/test-u32-is-casefolded.c: Likewise.
20753         * tests/unicase/test-u32-is-lowercase.c: Likewise.
20754         * tests/unicase/test-u32-is-titlecase.c: Likewise.
20755         * tests/unicase/test-u32-is-uppercase.c: Likewise.
20756         * tests/unicase/test-u32-tolower.c: Likewise.
20757         * tests/unicase/test-u32-totitle.c: Likewise.
20758         * tests/unicase/test-u32-toupper.c: Likewise.
20759         * tests/unicase/test-ulc-casecmp.c: Likewise.
20760         * tests/unicase/test-ulc-casecoll.c: Likewise.
20761         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20762         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20763         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20764         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20765         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20766         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20767         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20768         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20769         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20770         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20771         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20772         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20773         * tests/unictype/test-bidi_byname.c: Likewise.
20774         * tests/unictype/test-bidi_name.c: Likewise.
20775         * tests/unictype/test-bidi_of.c: Likewise.
20776         * tests/unictype/test-bidi_test.c: Likewise.
20777         * tests/unictype/test-block_list.c: Likewise.
20778         * tests/unictype/test-block_of.c: Likewise.
20779         * tests/unictype/test-block_test.c: Likewise.
20780         * tests/unictype/test-categ_and.c: Likewise.
20781         * tests/unictype/test-categ_and_not.c: Likewise.
20782         * tests/unictype/test-categ_byname.c: Likewise.
20783         * tests/unictype/test-categ_name.c: Likewise.
20784         * tests/unictype/test-categ_none.c: Likewise.
20785         * tests/unictype/test-categ_of.c: Likewise.
20786         * tests/unictype/test-categ_or.c: Likewise.
20787         * tests/unictype/test-categ_test_withtable.c: Likewise.
20788         * tests/unictype/test-combining.c: Likewise.
20789         * tests/unictype/test-decdigit.c: Likewise.
20790         * tests/unictype/test-digit.c: Likewise.
20791         * tests/unictype/test-mirror.c: Likewise.
20792         * tests/unictype/test-numeric.c: Likewise.
20793         * tests/unictype/test-pr_byname.c: Likewise.
20794         * tests/unictype/test-pr_test.c: Likewise.
20795         * tests/unictype/test-predicate-part1.h: Likewise.
20796         * tests/unictype/test-scripts.c: Likewise.
20797         * tests/unictype/test-sy_c_ident.c: Likewise.
20798         * tests/unictype/test-sy_java_ident.c: Likewise.
20799         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
20800         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
20801         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
20802         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
20803         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
20804         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
20805         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
20806         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
20807         * tests/uninorm/test-canonical-decomposition.c: Likewise.
20808         * tests/uninorm/test-compat-decomposition.c: Likewise.
20809         * tests/uninorm/test-composition.c: Likewise.
20810         * tests/uninorm/test-decomposing-form.c: Likewise.
20811         * tests/uninorm/test-decomposition.c: Likewise.
20812         * tests/uninorm/test-u8-nfc.c: Likewise.
20813         * tests/uninorm/test-u8-nfd.c: Likewise.
20814         * tests/uninorm/test-u8-nfkc.c: Likewise.
20815         * tests/uninorm/test-u8-nfkd.c: Likewise.
20816         * tests/uninorm/test-u8-normcmp.c: Likewise.
20817         * tests/uninorm/test-u8-normcoll.c: Likewise.
20818         * tests/uninorm/test-u16-nfc.c: Likewise.
20819         * tests/uninorm/test-u16-nfd.c: Likewise.
20820         * tests/uninorm/test-u16-nfkc.c: Likewise.
20821         * tests/uninorm/test-u16-nfkd.c: Likewise.
20822         * tests/uninorm/test-u16-normcmp.c: Likewise.
20823         * tests/uninorm/test-u16-normcoll.c: Likewise.
20824         * tests/uninorm/test-u32-nfc.c: Likewise.
20825         * tests/uninorm/test-u32-nfd.c: Likewise.
20826         * tests/uninorm/test-u32-nfkc.c: Likewise.
20827         * tests/uninorm/test-u32-nfkd.c: Likewise.
20828         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20829         * tests/uninorm/test-u32-normcmp.c: Likewise.
20830         * tests/uninorm/test-u32-normcoll.c: Likewise.
20831         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20832         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20833         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20834         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20835         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20836         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20837         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20838         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20839         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20840         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20841         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20842         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20843         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20844         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20845         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20846         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20847         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20848         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20849         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20850         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20851         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20852         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20853         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20854         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20855         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20856         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20857         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20858         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20859         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20860         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20861         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20862         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20863         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20864         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20865         * tests/uniwidth/test-u8-width.c: Likewise.
20866         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20867         * tests/uniwidth/test-u16-width.c: Likewise.
20868         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20869         * tests/uniwidth/test-u32-width.c: Likewise.
20870         * tests/uniwidth/test-uc_width.c: Likewise.
20871         * tests/uniwidth/test-uc_width2.c: Likewise.
20872         * modules/acl-tests (Files): Add tests/macros.h.
20873         * modules/areadlink-tests (Files): Likewise.
20874         * modules/areadlink-with-size-tests (Files): Likewise.
20875         * modules/areadlinkat-tests (Files): Likewise.
20876         * modules/areadlinkat-with-size-tests (Files): Likewise.
20877         * modules/argmatch-tests (Files): Likewise.
20878         * modules/argv-iter-tests (Files): Likewise.
20879         * modules/array-list-tests (Files): Likewise.
20880         * modules/array-mergesort-tests (Files): Likewise.
20881         * modules/array-oset-tests (Files): Likewise.
20882         * modules/avltree-list-tests (Files): Likewise.
20883         * modules/avltree-oset-tests (Files): Likewise.
20884         * modules/avltreehash-list-tests (Files): Likewise.
20885         * modules/base64-tests (Files): Likewise.
20886         * modules/binary-io-tests (Files): Likewise.
20887         * modules/bitrotate-tests (Files): Likewise.
20888         * modules/btowc-tests (Files): Likewise.
20889         * modules/byteswap-tests (Files): Likewise.
20890         * modules/c-ctype-tests (Files): Likewise.
20891         * modules/c-stack-tests (Files): Likewise.
20892         * modules/c-strcase-tests (Files): Likewise.
20893         * modules/c-strcasestr-tests (Files): Likewise.
20894         * modules/c-strstr-tests (Files): Likewise.
20895         * modules/canonicalize-lgpl-tests (Files): Likewise.
20896         * modules/canonicalize-tests (Files): Likewise.
20897         * modules/carray-list-tests (Files): Likewise.
20898         * modules/ceilf-tests (Files): Likewise.
20899         * modules/ceill-tests (Files): Likewise.
20900         * modules/chown-tests (Files): Likewise.
20901         * modules/cloexec-tests (Files): Likewise.
20902         * modules/copy-file-tests (Files): Likewise.
20903         * modules/count-one-bits-tests (Files): Likewise.
20904         * modules/dprintf-posix-tests (Files): Likewise.
20905         * modules/dup2-tests (Files): Likewise.
20906         * modules/dup3-tests (Files): Likewise.
20907         * modules/duplocale-tests (Files): Likewise.
20908         * modules/fbufmode-tests (Files): Likewise.
20909         * modules/fchdir-tests (Files): Likewise.
20910         * modules/fcntl-safer-tests (Files): Likewise.
20911         * modules/fcntl-tests (Files): Likewise.
20912         * modules/fdopendir-tests (Files): Likewise.
20913         * modules/fdutimensat-tests (Files): Likewise.
20914         * modules/fflush-tests (Files): Likewise.
20915         * modules/filevercmp-tests (Files): Likewise.
20916         * modules/flock-tests (Files): Likewise.
20917         * modules/floorf-tests (Files): Likewise.
20918         * modules/floorl-tests (Files): Likewise.
20919         * modules/fnmatch-tests (Files): Likewise.
20920         * modules/fopen-safer-tests (Files): Likewise.
20921         * modules/fopen-tests (Files): Likewise.
20922         * modules/fpending-tests (Files): Likewise.
20923         * modules/fprintf-posix-tests (Files): Likewise.
20924         * modules/fpurge-tests (Files): Likewise.
20925         * modules/freadable-tests (Files): Likewise.
20926         * modules/freadahead-tests (Files): Likewise.
20927         * modules/freading-tests (Files): Likewise.
20928         * modules/freadptr-tests (Files): Likewise.
20929         * modules/freadseek-tests (Files): Likewise.
20930         * modules/freopen-tests (Files): Likewise.
20931         * modules/frexp-nolibm-tests (Files): Likewise.
20932         * modules/frexp-tests (Files): Likewise.
20933         * modules/frexpl-nolibm-tests (Files): Likewise.
20934         * modules/frexpl-tests (Files): Likewise.
20935         * modules/fseek-tests (Files): Likewise.
20936         * modules/fseeko-tests (Files): Likewise.
20937         * modules/fstrcmp-tests (Files): Likewise.
20938         * modules/fsync-tests (Files): Likewise.
20939         * modules/ftell-tests (Files): Likewise.
20940         * modules/ftello-tests (Files): Likewise.
20941         * modules/func-tests (Files): Likewise.
20942         * modules/futimens-tests (Files): Likewise.
20943         * modules/fwritable-tests (Files): Likewise.
20944         * modules/fwriting-tests (Files): Likewise.
20945         * modules/getcwd-tests (Files): Likewise.
20946         * modules/getdate-tests (Files): Likewise.
20947         * modules/getdelim-tests (Files): Likewise.
20948         * modules/getdtablesize-tests (Files): Likewise.
20949         * modules/getgroups-tests (Files): Likewise.
20950         * modules/getline-tests (Files): Likewise.
20951         * modules/getndelim2-tests (Files): Likewise.
20952         * modules/glob-tests (Files): Likewise.
20953         * modules/hash-tests (Files): Likewise.
20954         * modules/i-ring-tests (Files): Likewise.
20955         * modules/iconv-tests (Files): Likewise.
20956         * modules/iconv_open-utf-tests (Files): Likewise.
20957         * modules/idpriv-drop-tests (Files): Likewise.
20958         * modules/idpriv-droptemp-tests (Files): Likewise.
20959         * modules/inet_ntop-tests (Files): Likewise.
20960         * modules/inet_pton-tests (Files): Likewise.
20961         * modules/isblank-tests (Files): Likewise.
20962         * modules/isfinite-tests (Files): Likewise.
20963         * modules/isinf-tests (Files): Likewise.
20964         * modules/isnan-tests (Files): Likewise.
20965         * modules/isnand-nolibm-tests (Files): Likewise.
20966         * modules/isnand-tests (Files): Likewise.
20967         * modules/isnanf-nolibm-tests (Files): Likewise.
20968         * modules/isnanf-tests (Files): Likewise.
20969         * modules/isnanl-nolibm-tests (Files): Likewise.
20970         * modules/isnanl-tests (Files): Likewise.
20971         * modules/lchown-tests (Files): Likewise.
20972         * modules/ldexpl-tests (Files): Likewise.
20973         * modules/link-tests (Files): Likewise.
20974         * modules/linkat-tests (Files): Likewise.
20975         * modules/linked-list-tests (Files): Likewise.
20976         * modules/linkedhash-list-tests (Files): Likewise.
20977         * modules/localename-tests (Files): Likewise.
20978         * modules/lseek-tests (Files): Likewise.
20979         * modules/lstat-tests (Files): Likewise.
20980         * modules/mbmemcasecmp-tests (Files): Likewise.
20981         * modules/mbmemcasecoll-tests (Files): Likewise.
20982         * modules/mbrtowc-tests (Files): Likewise.
20983         * modules/mbscasecmp-tests (Files): Likewise.
20984         * modules/mbscasestr-tests (Files): Likewise.
20985         * modules/mbschr-tests (Files): Likewise.
20986         * modules/mbscspn-tests (Files): Likewise.
20987         * modules/mbsinit-tests (Files): Likewise.
20988         * modules/mbsncasecmp-tests (Files): Likewise.
20989         * modules/mbsnrtowcs-tests (Files): Likewise.
20990         * modules/mbspbrk-tests (Files): Likewise.
20991         * modules/mbspcasecmp-tests (Files): Likewise.
20992         * modules/mbsrchr-tests (Files): Likewise.
20993         * modules/mbsrtowcs-tests (Files): Likewise.
20994         * modules/mbsspn-tests (Files): Likewise.
20995         * modules/mbsstr-tests (Files): Likewise.
20996         * modules/memchr-tests (Files): Likewise.
20997         * modules/memchr2-tests (Files): Likewise.
20998         * modules/memcmp-tests (Files): Likewise.
20999         * modules/memmem-tests (Files): Likewise.
21000         * modules/memrchr-tests (Files): Likewise.
21001         * modules/mkdir-tests (Files): Likewise.
21002         * modules/mkfifo-tests (Files): Likewise.
21003         * modules/mkfifoat-tests (Files): Likewise.
21004         * modules/mknod-tests (Files): Likewise.
21005         * modules/nanosleep-tests (Files): Likewise.
21006         * modules/nl_langinfo-tests (Files): Likewise.
21007         * modules/obstack-printf-tests (Files): Likewise.
21008         * modules/open-tests (Files): Likewise.
21009         * modules/openat-tests (Files): Likewise.
21010         * modules/pipe-filter-gi-tests (Files): Likewise.
21011         * modules/pipe-filter-ii-tests (Files): Likewise.
21012         * modules/pipe2-tests (Files): Likewise.
21013         * modules/popen-safer-tests (Files): Likewise.
21014         * modules/popen-tests (Files): Likewise.
21015         * modules/posixtm-tests (Files): Likewise.
21016         * modules/pread-tests (Files): Likewise.
21017         * modules/printf-frexp-tests (Files): Likewise.
21018         * modules/printf-frexpl-tests (Files): Likewise.
21019         * modules/printf-posix-tests (Files): Likewise.
21020         * modules/priv-set-tests (Files): Likewise.
21021         * modules/quotearg-tests (Files): Likewise.
21022         * modules/random_r-tests (Files): Likewise.
21023         * modules/rawmemchr-tests (Files): Likewise.
21024         * modules/rbtree-list-tests (Files): Likewise.
21025         * modules/rbtree-oset-tests (Files): Likewise.
21026         * modules/rbtreehash-list-tests (Files): Likewise.
21027         * modules/readlink-tests (Files): Likewise.
21028         * modules/remove-tests (Files): Likewise.
21029         * modules/rename-tests (Files): Likewise.
21030         * modules/renameat-tests (Files): Likewise.
21031         * modules/rmdir-tests (Files): Likewise.
21032         * modules/round-tests (Files): Likewise.
21033         * modules/roundf-tests (Files): Likewise.
21034         * modules/roundl-tests (Files): Likewise.
21035         * modules/safe-alloc-tests (Files): Likewise.
21036         * modules/setenv-tests (Files): Likewise.
21037         * modules/sigaction-tests (Files): Likewise.
21038         * modules/signbit-tests (Files): Likewise.
21039         * modules/sleep-tests (Files): Likewise.
21040         * modules/snprintf-posix-tests (Files): Likewise.
21041         * modules/snprintf-tests (Files): Likewise.
21042         * modules/sprintf-posix-tests (Files): Likewise.
21043         * modules/stat-tests (Files): Likewise.
21044         * modules/stat-time-tests (Files): Likewise.
21045         * modules/strcasestr-tests (Files): Likewise.
21046         * modules/strchrnul-tests (Files): Likewise.
21047         * modules/strerror-tests (Files): Likewise.
21048         * modules/striconv-tests (Files): Likewise.
21049         * modules/striconveh-tests (Files): Likewise.
21050         * modules/striconveha-tests (Files): Likewise.
21051         * modules/strsignal-tests (Files): Likewise.
21052         * modules/strstr-tests (Files): Likewise.
21053         * modules/strtod-tests (Files): Likewise.
21054         * modules/strverscmp-tests (Files): Likewise.
21055         * modules/symlink-tests (Files): Likewise.
21056         * modules/symlinkat-tests (Files): Likewise.
21057         * modules/trunc-tests (Files): Likewise.
21058         * modules/truncf-tests (Files): Likewise.
21059         * modules/truncl-tests (Files): Likewise.
21060         * modules/uname-tests (Files): Likewise.
21061         * modules/unicase/cased-tests (Files): Likewise.
21062         * modules/unicase/ignorable-tests (Files): Likewise.
21063         * modules/unicase/locale-language-tests (Files): Likewise.
21064         * modules/unicase/tolower-tests (Files): Likewise.
21065         * modules/unicase/totitle-tests (Files): Likewise.
21066         * modules/unicase/toupper-tests (Files): Likewise.
21067         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21068         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21069         * modules/unicase/u8-casefold-tests (Files): Likewise.
21070         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21071         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21072         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21073         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21074         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21075         * modules/unicase/u8-tolower-tests (Files): Likewise.
21076         * modules/unicase/u8-totitle-tests (Files): Likewise.
21077         * modules/unicase/u8-toupper-tests (Files): Likewise.
21078         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21079         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21080         * modules/unicase/u16-casefold-tests (Files): Likewise.
21081         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21082         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21083         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21084         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21085         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21086         * modules/unicase/u16-tolower-tests (Files): Likewise.
21087         * modules/unicase/u16-totitle-tests (Files): Likewise.
21088         * modules/unicase/u16-toupper-tests (Files): Likewise.
21089         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21090         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21091         * modules/unicase/u32-casefold-tests (Files): Likewise.
21092         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21093         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21094         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21095         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21096         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21097         * modules/unicase/u32-tolower-tests (Files): Likewise.
21098         * modules/unicase/u32-totitle-tests (Files): Likewise.
21099         * modules/unicase/u32-toupper-tests (Files): Likewise.
21100         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21101         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21102         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21103         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21104         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21105         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21106         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21107         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21108         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21109         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21110         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21111         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21112         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21113         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21114         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21115         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21116         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21117         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21118         * modules/unictype/block-list-tests (Files): Likewise.
21119         * modules/unictype/block-of-tests (Files): Likewise.
21120         * modules/unictype/block-test-tests (Files): Likewise.
21121         * modules/unictype/category-C-tests (Files): Likewise.
21122         * modules/unictype/category-Cc-tests (Files): Likewise.
21123         * modules/unictype/category-Cf-tests (Files): Likewise.
21124         * modules/unictype/category-Cn-tests (Files): Likewise.
21125         * modules/unictype/category-Co-tests (Files): Likewise.
21126         * modules/unictype/category-Cs-tests (Files): Likewise.
21127         * modules/unictype/category-L-tests (Files): Likewise.
21128         * modules/unictype/category-Ll-tests (Files): Likewise.
21129         * modules/unictype/category-Lm-tests (Files): Likewise.
21130         * modules/unictype/category-Lo-tests (Files): Likewise.
21131         * modules/unictype/category-Lt-tests (Files): Likewise.
21132         * modules/unictype/category-Lu-tests (Files): Likewise.
21133         * modules/unictype/category-M-tests (Files): Likewise.
21134         * modules/unictype/category-Mc-tests (Files): Likewise.
21135         * modules/unictype/category-Me-tests (Files): Likewise.
21136         * modules/unictype/category-Mn-tests (Files): Likewise.
21137         * modules/unictype/category-N-tests (Files): Likewise.
21138         * modules/unictype/category-Nd-tests (Files): Likewise.
21139         * modules/unictype/category-Nl-tests (Files): Likewise.
21140         * modules/unictype/category-No-tests (Files): Likewise.
21141         * modules/unictype/category-P-tests (Files): Likewise.
21142         * modules/unictype/category-Pc-tests (Files): Likewise.
21143         * modules/unictype/category-Pd-tests (Files): Likewise.
21144         * modules/unictype/category-Pe-tests (Files): Likewise.
21145         * modules/unictype/category-Pf-tests (Files): Likewise.
21146         * modules/unictype/category-Pi-tests (Files): Likewise.
21147         * modules/unictype/category-Po-tests (Files): Likewise.
21148         * modules/unictype/category-Ps-tests (Files): Likewise.
21149         * modules/unictype/category-S-tests (Files): Likewise.
21150         * modules/unictype/category-Sc-tests (Files): Likewise.
21151         * modules/unictype/category-Sk-tests (Files): Likewise.
21152         * modules/unictype/category-Sm-tests (Files): Likewise.
21153         * modules/unictype/category-So-tests (Files): Likewise.
21154         * modules/unictype/category-Z-tests (Files): Likewise.
21155         * modules/unictype/category-Zl-tests (Files): Likewise.
21156         * modules/unictype/category-Zp-tests (Files): Likewise.
21157         * modules/unictype/category-Zs-tests (Files): Likewise.
21158         * modules/unictype/category-and-not-tests (Files): Likewise.
21159         * modules/unictype/category-and-tests (Files): Likewise.
21160         * modules/unictype/category-byname-tests (Files): Likewise.
21161         * modules/unictype/category-name-tests (Files): Likewise.
21162         * modules/unictype/category-none-tests (Files): Likewise.
21163         * modules/unictype/category-of-tests (Files): Likewise.
21164         * modules/unictype/category-or-tests (Files): Likewise.
21165         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21166         * modules/unictype/combining-class-tests (Files): Likewise.
21167         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21168         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21169         * modules/unictype/ctype-blank-tests (Files): Likewise.
21170         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21171         * modules/unictype/ctype-digit-tests (Files): Likewise.
21172         * modules/unictype/ctype-graph-tests (Files): Likewise.
21173         * modules/unictype/ctype-lower-tests (Files): Likewise.
21174         * modules/unictype/ctype-print-tests (Files): Likewise.
21175         * modules/unictype/ctype-punct-tests (Files): Likewise.
21176         * modules/unictype/ctype-space-tests (Files): Likewise.
21177         * modules/unictype/ctype-upper-tests (Files): Likewise.
21178         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21179         * modules/unictype/decimal-digit-tests (Files): Likewise.
21180         * modules/unictype/digit-tests (Files): Likewise.
21181         * modules/unictype/mirror-tests (Files): Likewise.
21182         * modules/unictype/numeric-tests (Files): Likewise.
21183         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21184         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21185         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21186         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21187         Likewise.
21188         * modules/unictype/property-bidi-block-separator-tests (Files):
21189         Likewise.
21190         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21191         Likewise.
21192         * modules/unictype/property-bidi-common-separator-tests (Files):
21193         Likewise.
21194         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21195         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21196         Likewise.
21197         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21198         Likewise.
21199         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21200         Likewise.
21201         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21202         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21203         Likewise.
21204         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21205         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21206         Likewise.
21207         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21208         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21209         * modules/unictype/property-bidi-segment-separator-tests (Files):
21210         Likewise.
21211         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21212         * modules/unictype/property-byname-tests (Files): Likewise.
21213         * modules/unictype/property-combining-tests (Files): Likewise.
21214         * modules/unictype/property-composite-tests (Files): Likewise.
21215         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21216         * modules/unictype/property-dash-tests (Files): Likewise.
21217         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21218         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21219         Likewise.
21220         * modules/unictype/property-deprecated-tests (Files): Likewise.
21221         * modules/unictype/property-diacritic-tests (Files): Likewise.
21222         * modules/unictype/property-extender-tests (Files): Likewise.
21223         * modules/unictype/property-format-control-tests (Files): Likewise.
21224         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21225         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21226         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21227         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21228         * modules/unictype/property-hyphen-tests (Files): Likewise.
21229         * modules/unictype/property-id-continue-tests (Files): Likewise.
21230         * modules/unictype/property-id-start-tests (Files): Likewise.
21231         * modules/unictype/property-ideographic-tests (Files): Likewise.
21232         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21233         * modules/unictype/property-ids-trinary-operator-tests (Files):
21234         Likewise.
21235         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21236         * modules/unictype/property-iso-control-tests (Files): Likewise.
21237         * modules/unictype/property-join-control-tests (Files): Likewise.
21238         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21239         * modules/unictype/property-line-separator-tests (Files): Likewise.
21240         * modules/unictype/property-logical-order-exception-tests (Files):
21241         Likewise.
21242         * modules/unictype/property-lowercase-tests (Files): Likewise.
21243         * modules/unictype/property-math-tests (Files): Likewise.
21244         * modules/unictype/property-non-break-tests (Files): Likewise.
21245         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21246         * modules/unictype/property-numeric-tests (Files): Likewise.
21247         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21248         * modules/unictype/property-other-default-ignorable-code-point-tests
21249         (Files): Likewise.
21250         * modules/unictype/property-other-grapheme-extend-tests (Files):
21251         Likewise.
21252         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21253         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21254         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21255         * modules/unictype/property-other-math-tests (Files): Likewise.
21256         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21257         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21258         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21259         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21260         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21261         * modules/unictype/property-private-use-tests (Files): Likewise.
21262         * modules/unictype/property-punctuation-tests (Files): Likewise.
21263         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21264         * modules/unictype/property-radical-tests (Files): Likewise.
21265         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21266         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21267         * modules/unictype/property-space-tests (Files): Likewise.
21268         * modules/unictype/property-terminal-punctuation-tests (Files):
21269         Likewise.
21270         * modules/unictype/property-test-tests (Files): Likewise.
21271         * modules/unictype/property-titlecase-tests (Files): Likewise.
21272         * modules/unictype/property-unassigned-code-value-tests (Files):
21273         Likewise.
21274         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21275         * modules/unictype/property-uppercase-tests (Files): Likewise.
21276         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21277         * modules/unictype/property-white-space-tests (Files): Likewise.
21278         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21279         * modules/unictype/property-xid-start-tests (Files): Likewise.
21280         * modules/unictype/property-zero-width-tests (Files): Likewise.
21281         * modules/unictype/scripts-tests (Files): Likewise.
21282         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21283         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21284         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21285         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21286         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21287         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21288         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21289         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21290         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21291         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21292         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21293         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21294         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21295         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21296         * modules/uninorm/composition-tests (Files): Likewise.
21297         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21298         * modules/uninorm/decomposition-tests (Files): Likewise.
21299         * modules/uninorm/filter-tests (Files): Likewise.
21300         * modules/uninorm/nfc-tests (Files): Likewise.
21301         * modules/uninorm/nfd-tests (Files): Likewise.
21302         * modules/uninorm/nfkc-tests (Files): Likewise.
21303         * modules/uninorm/nfkd-tests (Files): Likewise.
21304         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21305         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21306         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21307         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21308         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21309         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21310         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21311         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21312         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21313         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21314         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21315         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21316         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21317         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21318         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21319         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21320         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21321         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21322         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21323         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21324         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21325         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21326         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21327         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21328         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21329         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21330         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21331         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21332         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21333         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21334         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21335         * modules/uniwidth/u8-width-tests (Files): Likewise.
21336         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21337         * modules/uniwidth/u16-width-tests (Files): Likewise.
21338         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21339         * modules/uniwidth/u32-width-tests (Files): Likewise.
21340         * modules/uniwidth/width-tests (Files): Likewise.
21341         * modules/unlink-tests (Files): Likewise.
21342         * modules/unsetenv-tests (Files): Likewise.
21343         * modules/usleep-tests (Files): Likewise.
21344         * modules/utimens-tests (Files): Likewise.
21345         * modules/utimensat-tests (Files): Likewise.
21346         * modules/vasnprintf-posix-tests (Files): Likewise.
21347         * modules/vasnprintf-tests (Files): Likewise.
21348         * modules/vasprintf-posix-tests (Files): Likewise.
21349         * modules/vasprintf-tests (Files): Likewise.
21350         * modules/vdprintf-posix-tests (Files): Likewise.
21351         * modules/vfprintf-posix-tests (Files): Likewise.
21352         * modules/vprintf-posix-tests (Files): Likewise.
21353         * modules/vsnprintf-posix-tests (Files): Likewise.
21354         * modules/vsnprintf-tests (Files): Likewise.
21355         * modules/vsprintf-posix-tests (Files): Likewise.
21356         * modules/wcrtomb-tests (Files): Likewise.
21357         * modules/wcsnrtombs-tests (Files): Likewise.
21358         * modules/wcsrtombs-tests (Files): Likewise.
21359         * modules/wctype-tests (Files): Likewise.
21360         * modules/wcwidth-tests (Files): Likewise.
21361         * modules/xmemdup0-tests (Files): Likewise.
21362         * modules/xprintf-posix-tests (Files): Likewise.
21363         * modules/xvasprintf-tests (Files): Likewise.
21364
21365 2009-12-24  Eric Blake  <ebb9@byu.net>
21366
21367         test-nanosleep: fix typo
21368         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21369         patch.
21370         Reported by Bruno Haible.
21371
21372 2009-12-24  Bruno Haible  <bruno@clisp.org>
21373
21374         Reduce namespace pollution on glibc systems.
21375         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21376         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21377         systems.
21378         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21379         <getopt.h> on glibc systems.
21380         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21381         systems.
21382         * lib/fcntl.c: Include <unistd.h> here instead.
21383
21384 2009-12-24  Bruno Haible  <bruno@clisp.org>
21385
21386         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21387
21388 2009-12-24  Eric Blake  <ebb9@byu.net>
21389
21390         tests: add signature checks
21391         * tests/signature.h (SIGNATURE_CHECK): New file.
21392         * modules/atexit-tests (Files): Use it.
21393         * modules/btowc-tests (Files): Likewise.
21394         * modules/canonicalize-lgpl-tests (Files): Likewise.
21395         * modules/ceilf-tests (Files): Likewise.
21396         * modules/ceill-tests (Files): Likewise.
21397         * modules/chown-tests (Files): Likewise.
21398         * modules/dprintf-posix-tests (Files): Likewise.
21399         * modules/dup2-tests (Files): Likewise.
21400         * modules/dup3-tests (Files): Likewise.
21401         * modules/duplocale-tests (Files): Likewise.
21402         * modules/fchdir-tests (Files): Likewise.
21403         * modules/fcntl-tests (Files): Likewise.
21404         * modules/fdopendir-tests (Files): Likewise.
21405         * modules/fflush-tests (Files): Likewise.
21406         * modules/flock-tests (Files): Likewise.
21407         * modules/floorf-tests (Files): Likewise.
21408         * modules/floorl-tests (Files): Likewise.
21409         * modules/fnmatch-tests (Files): Likewise.
21410         * modules/fopen-tests (Files): Likewise.
21411         * modules/fprintf-posix-tests (Files): Likewise.
21412         * modules/freopen-tests (Files): Likewise.
21413         * modules/frexp-nolibm-tests (Files): Likewise.
21414         * modules/frexp-tests (Files): Likewise.
21415         * modules/frexpl-nolibm-tests (Files): Likewise.
21416         * modules/frexpl-tests (Files): Likewise.
21417         * modules/fseek-tests (Files): Likewise.
21418         * modules/fseeko-tests (Files): Likewise.
21419         * modules/fsync-tests (Files): Likewise.
21420         * modules/ftell-tests (Files): Likewise.
21421         * modules/ftello-tests (Files): Likewise.
21422         * modules/futimens-tests (Files): Likewise.
21423         * modules/getaddrinfo-tests (Files): Likewise.
21424         * modules/getcwd-tests (Files): Likewise.
21425         * modules/getdelim-tests (Files): Likewise.
21426         * modules/getdtablesize-tests (Files): Likewise.
21427         * modules/getgroups-tests (Files): Likewise.
21428         * modules/gethostname-tests (Files): Likewise.
21429         * modules/getline-tests (Files): Likewise.
21430         * modules/getopt-posix-tests (Files): Likewise.
21431         * modules/gettimeofday-tests (Files): Likewise.
21432         * modules/glob-tests (Files): Likewise.
21433         * modules/iconv-tests (Files): Likewise.
21434         * modules/inet_ntop-tests (Files): Likewise.
21435         * modules/inet_pton-tests (Files): Likewise.
21436         * modules/isblank-tests (Files): Likewise.
21437         * modules/lchown-tests (Files): Likewise.
21438         * modules/ldexpl-tests (Files): Likewise.
21439         * modules/link-tests (Files): Likewise.
21440         * modules/linkat-tests (Files): Likewise.
21441         * modules/lseek-tests (Files): Likewise.
21442         * modules/lstat-tests (Files): Likewise.
21443         * modules/mbrtowc-tests (Files): Likewise.
21444         * modules/mbsinit-tests (Files): Likewise.
21445         * modules/mbsnrtowcs-tests (Files): Likewise.
21446         * modules/mbsrtowcs-tests (Files): Likewise.
21447         * modules/memchr-tests (Files): Likewise.
21448         * modules/memcmp-tests (Files): Likewise.
21449         * modules/memmem-tests (Files): Likewise.
21450         * modules/memrchr-tests (Files): Likewise.
21451         * modules/mkdir-tests (Files): Likewise.
21452         * modules/mkfifo-tests (Files): Likewise.
21453         * modules/mkfifoat-tests (Files): Likewise.
21454         * modules/mknod-tests (Files): Likewise.
21455         * modules/nanosleep-tests (Files): Likewise.
21456         * modules/nl_langinfo-tests (Files): Likewise.
21457         * modules/obstack-printf-tests (Files): Likewise.
21458         * modules/open-tests (Files): Likewise.
21459         * modules/openat-tests (Files): Likewise.
21460         * modules/perror-tests (Files): Likewise.
21461         * modules/pipe2-tests (Files): Likewise.
21462         * modules/poll-tests (Files): Likewise.
21463         * modules/popen-tests (Files): Likewise.
21464         * modules/posix_spawn-tests (Files): Likewise.
21465         * modules/posix_spawnp-tests (Files): Likewise.
21466         * modules/pread-tests (Files): Likewise.
21467         * modules/printf-posix-tests (Files): Likewise.
21468         * modules/pty-tests (Files): Likewise.
21469         * modules/random_r-tests (Files): Likewise.
21470         * modules/rawmemchr-tests (Files): Likewise.
21471         * modules/readlink-tests (Files): Likewise.
21472         * modules/remove-tests (Files): Likewise.
21473         * modules/rename-tests (Files): Likewise.
21474         * modules/renameat-tests (Files): Likewise.
21475         * modules/rmdir-tests (Files): Likewise.
21476         * modules/round-tests (Files): Likewise.
21477         * modules/roundf-tests (Files): Likewise.
21478         * modules/roundl-tests (Files): Likewise.
21479         * modules/select-tests (Files): Likewise.
21480         * modules/setenv-tests (Files): Likewise.
21481         * modules/sigaction-tests (Files): Likewise.
21482         * modules/sleep-tests (Files): Likewise.
21483         * modules/snprintf-posix-tests (Files): Likewise.
21484         * modules/snprintf-tests (Files): Likewise.
21485         * modules/sprintf-posix-tests (Files): Likewise.
21486         * modules/stat-tests (Files): Likewise.
21487         * modules/strcasestr-tests (Files): Likewise.
21488         * modules/strchrnul-tests (Files): Likewise.
21489         * modules/strerror-tests (Files): Likewise.
21490         * modules/strsignal-tests (Files): Likewise.
21491         * modules/strstr-tests (Files): Likewise.
21492         * modules/strtod-tests (Files): Likewise.
21493         * modules/strverscmp-tests (Files): Likewise.
21494         * modules/symlink-tests (Files): Likewise.
21495         * modules/symlinkat-tests (Files): Likewise.
21496         * modules/times-tests (Files): Likewise.
21497         * modules/trunc-tests (Files): Likewise.
21498         * modules/truncf-tests (Files): Likewise.
21499         * modules/truncl-tests (Files): Likewise.
21500         * modules/tsearch-tests (Files): Likewise.
21501         * modules/uname-tests (Files): Likewise.
21502         * modules/unlink-tests (Files): Likewise.
21503         * modules/unsetenv-tests (Files): Likewise.
21504         * modules/usleep-tests (Files): Likewise.
21505         * modules/utimensat-tests (Files): Likewise.
21506         * modules/vasprintf-tests (Files): Likewise.
21507         * modules/vdprintf-posix-tests (Files): Likewise.
21508         * modules/vfprintf-posix-tests (Files): Likewise.
21509         * modules/vprintf-posix-tests (Files): Likewise.
21510         * modules/vsnprintf-posix-tests (Files): Likewise.
21511         * modules/vsnprintf-tests (Files): Likewise.
21512         * modules/vsprintf-posix-tests (Files): Likewise.
21513         * modules/wcrtomb-tests (Files): Likewise.
21514         * modules/wcsnrtombs-tests (Files): Likewise.
21515         * modules/wcsrtombs-tests (Files): Likewise.
21516         * modules/wcwidth-tests (Files): Likewise.
21517         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21518         * tests/test-isinf.c (isinf): Likewise.
21519         * tests/test-isnan.c (isnan): Likewise.
21520         * tests/test-signbit.c (signbit): Likewise.
21521         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21522         declaration, either as macro or with correct signature.
21523         (select): Ensure function under test is declared with correct
21524         signature in correct header.
21525         * tests/test-atexit.c (atexit): Likewise.
21526         * tests/test-btowc.c (btowc): Likewise.
21527         * tests/test-canonicalize-lgpl.c (realpath)
21528         (canonicalize_file_name): Likewise.
21529         * tests/test-ceilf1.c (ceilf): Likewise.
21530         * tests/test-ceill.c (ceill): Likewise.
21531         * tests/test-chown.c (chown): Likewise.
21532         * tests/test-dprintf-posix.c (dprintf): Likewise.
21533         * tests/test-dup2.c (dup2): Likewise.
21534         * tests/test-dup3.c (dup3): Likewise.
21535         * tests/test-duplocale.c (duplocale): Likewise.
21536         * tests/test-fchdir.c (fchdir): Likewise.
21537         * tests/test-fchownat.c (fchownat): Likewise.
21538         * tests/test-fcntl.c (fcntl): Likewise.
21539         * tests/test-fdopendir.c (fdopendir): Likewise.
21540         * tests/test-fflush.c (fflush): Likewise.
21541         * tests/test-flock.c (flock): Likewise.
21542         * tests/test-floorf1.c (floorf): Likewise.
21543         * tests/test-floorl.c (floorl): Likewise.
21544         * tests/test-fnmatch.c (fnmatch): Likewise.
21545         * tests/test-fopen.c (fopen): Likewise.
21546         * tests/test-fprintf-posix.c (fprintf): Likewise.
21547         * tests/test-freopen.c (freopen): Likewise.
21548         * tests/test-frexp.c (frexp): Likewise.
21549         * tests/test-frexpl.c (frexpl): Likewise.
21550         * tests/test-fseek.c (fseek): Likewise.
21551         * tests/test-fseeko.c (fseeko): Likewise.
21552         * tests/test-fstatat.c (fstatat): Likewise.
21553         * tests/test-fsync.c (fsync): Likewise.
21554         * tests/test-ftell.c (ftell): Likewise.
21555         * tests/test-ftello.c (ftello): Likewise.
21556         * tests/test-futimens.c (futimens): Likewise.
21557         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
21558         (gai_strerror): Likewise.
21559         * tests/test-getcwd.c (getcwd): Likewise.
21560         * tests/test-getdelim.c (getdelim): Likewise.
21561         * tests/test-getdtablesize.c (getdtablesize): Likewise.
21562         * tests/test-getgroups.c (getgroups): Likewise.
21563         * tests/test-gethostname.c (gethostname): Likewise.
21564         * tests/test-getline.c (getline): Likewise.
21565         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
21566         Likewise.
21567         * tests/test-gettimeofday.c (gettimeofday): Likewise.
21568         * tests/test-glob.c (glob, globfree): Likewise.
21569         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
21570         * tests/test-inet_ntop.c (inet_ntop): Likewise.
21571         * tests/test-inet_pton.c (inet_pton): Likewise.
21572         * tests/test-isblank.c (isblank): Likewise.
21573         * tests/test-lchown.c (lchown): Likewise.
21574         * tests/test-ldexpl.c (ldexpl): Likewise.
21575         * tests/test-link.c (link): Likewise.
21576         * tests/test-linkat.c (linkat): Likewise.
21577         * tests/test-lseek.c (lseek): Likewise.
21578         * tests/test-lstat.c (lstat): Likewise.
21579         * tests/test-mbrtowc.c (mbrtowc): Likewise.
21580         * tests/test-mbsinit.c (mbsinit): Likewise.
21581         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
21582         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
21583         * tests/test-memchr.c (memchr): Likewise.
21584         * tests/test-memcmp.c (memcmp): Likewise.
21585         * tests/test-memmem.c (memmem): Likewise.
21586         * tests/test-memrchr.c (memrchr): Likewise.
21587         * tests/test-mkdir.c (mkdir): Likewise.
21588         * tests/test-mkdirat.c (mkdirat): Likewise.
21589         * tests/test-mkfifo.c (mkfifo): Likewise.
21590         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
21591         * tests/test-mknod.c (mknod): Likewise.
21592         * tests/test-nanosleep.c (nanosleep): Likewise.
21593         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
21594         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
21595         Likewise.
21596         * tests/test-open.c (open): Likewise.
21597         * tests/test-openat.c (openat): Likewise.
21598         * tests/test-perror.c (perror): Likewise.
21599         * tests/test-pipe2.c (pipe2): Likewise.
21600         * tests/test-poll.c (poll): Likewise.
21601         * tests/test-popen.c (popen, pclose): Likewise.
21602         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
21603         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
21604         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
21605         (posix_spawn_file_actions_destroy)
21606         (posix_spawn_file_actions_addclose)
21607         (posix_spawn_file_actions_addopen)
21608         (posix_spawn_file_actions_adddup2): Likewise.
21609         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
21610         * tests/test-pread.c (pread): Likewise.
21611         * tests/test-printf-posix.c (printf): Likewise.
21612         * tests/test-pty.c (openpty, forkpty): Likewise.
21613         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
21614         (random_r): Likewise.
21615         * tests/test-rawmemchr.c (rawmemchr): Likewise.
21616         * tests/test-readlink.c (readlink): Likewise.
21617         * tests/test-remove.c (remove): Likewise.
21618         * tests/test-rename.c (rename): Likewise.
21619         * tests/test-renameat.c (renameat): Likewise.
21620         * tests/test-rmdir.c (rmdir): Likewise.
21621         * tests/test-round1.c (round): Likewise.
21622         * tests/test-roundf1.c (roundf): Likewise.
21623         * tests/test-roundl.c (roundl): Likewise.
21624         * tests/test-setenv.c (setenv): Likewise.
21625         * tests/test-sigaction.c (sigaction): Likewise.
21626         * tests/test-sleep.c (sleep): Likewise.
21627         * tests/test-snprintf.c (snprintf): Likewise.
21628         * tests/test-sprintf-posix.c (sprintf): Likewise.
21629         * tests/test-stat.c (stat): Likewise.
21630         * tests/test-stpncpy.c (stpncpy): Likewise.
21631         * tests/test-strcasestr.c (strcasestr): Likewise.
21632         * tests/test-strchrnul.c (strchrnul): Likewise.
21633         * tests/test-strerror.c (strerror): Likewise.
21634         * tests/test-strsignal.c (strsignal): Likewise.
21635         * tests/test-strstr.c (strstr): Likewise.
21636         * tests/test-strtod.c (strtod): Likewise.
21637         * tests/test-strverscmp.c (strverscmp): Likewise.
21638         * tests/test-symlink.c (symlink): Likewise.
21639         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
21640         * tests/test-times.c (times): Likewise.
21641         * tests/test-trunc1.c (trunc): Likewise.
21642         * tests/test-truncf1.c (truncf): Likewise.
21643         * tests/test-truncl.c (truncl): Likewise.
21644         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
21645         Likewise.
21646         * tests/test-uname.c (uname): Likewise.
21647         * tests/test-unlink.c (unlink): Likewise.
21648         * tests/test-unlinkat.c (unlinkat): Likewise.
21649         * tests/test-unsetenv.c (unsetenv): Likewise.
21650         * tests/test-usleep.c (usleep): Likewise.
21651         * tests/test-utimensat.c (utimensat): Likewise.
21652         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
21653         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
21654         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
21655         * tests/test-vprintf-posix.c (vprintf): Likewise.
21656         * tests/test-vsnprintf.c (vsnprintf): Likewise.
21657         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
21658         * tests/test-wcrtomb.c (wcrtomb): Likewise.
21659         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
21660         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
21661         * tests/test-wcwidth.c (wcwidth): Likewise.
21662
21663         build: pull in conditional headers during GNULIB_POSIXCHECK
21664         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
21665         definitions from any conditionally-included headers.
21666         * lib/stdlib.in.h (includes): Likewise.
21667         * lib/unistd.in.h (includes): Likewise.
21668
21669 2009-12-24  Bruno Haible  <bruno@clisp.org>
21670
21671         * tests/test-argv-iter.c: Include header file being tested immediately
21672         after config.h.
21673         * tests/test-base64.c: Likewise.
21674         * tests/test-flock.c: Likewise.
21675         * tests/test-fsync.c: Likewise.
21676         * tests/test-getdate.c: Likewise.
21677         * tests/test-getndelim2.c: Likewise.
21678         * tests/test-isfinite.c: Likewise.
21679         * tests/test-isinf.c: Likewise.
21680         * tests/test-strerror.c: Likewise.
21681         * tests/test-strsignal.c: Likewise.
21682
21683 2009-12-23  Eric Blake  <ebb9@byu.net>
21684
21685         unistd: work around cygwin bug
21686         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
21687         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
21688         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
21689
21690 2009-12-23  Bruno Haible  <bruno@clisp.org>
21691
21692         localename: More tests.
21693         * tests/test-localename.c (SIZEOF): New macro.
21694         (categories): New variable.
21695         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
21696         test_locale_name_default): Add test w.r.t. thread locale.
21697         (test_locale_name_thread): New function.
21698         (main): Invoke it.
21699
21700         localename: Make aware of thread locale.
21701         * lib/localename.h (gl_locale_name_thread): New declaration.
21702         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
21703         behaviour with respect to thread locale.
21704         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
21705         <langinfo.h>, glthread/lock.h.
21706         (SIZE_BITS): New macro.
21707         (string_hash): New function.
21708         (struct hash_node): New type.
21709         (HASH_TABLE_SIZE): New macro.
21710         (struniq_hash_table, struniq_lock): New variables.
21711         (struniq): New function.
21712         (gl_locale_name_thread): New function.
21713         (gl_locale_name): Invoke it.
21714         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
21715         * modules/localename (Depends-on): Add lock.
21716         Reported by Mike Gran <spk121@yahoo.com>.
21717
21718 2009-12-23  Eric Blake  <ebb9@byu.net>
21719
21720         va-args: new module
21721         * modules/va-args: New file.
21722         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
21723         * MODULES.html.sh (Core language properties): Mention it.
21724
21725         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
21726         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
21727         named alias for __attribute__((__unused__)).
21728         * lib/chown.c: Update client.
21729         * lib/fchmodat.c: Likewise.
21730         * lib/fts.c: Likewise.
21731         * lib/getdate.y: Likewise.
21732         * lib/getgroups.c: Likewise.
21733         * lib/getopt.c: Likewise.
21734         * lib/getugroups.c: Likewise.
21735         * lib/mkdir.c: Likewise.
21736         * lib/mkfifo.c: Likewise.
21737         * lib/mkfifoat.c: Likewise.
21738         * lib/mknod.c: Likewise.
21739         * lib/mknodat.c: Likewise.
21740         * lib/readlink.c: Likewise.
21741         * lib/se-context.in.h: Likewise.
21742         * lib/se-selinux.in.h: Likewise.
21743         * lib/sockets.c: Likewise.
21744         * lib/symlink.c: Likewise.
21745         * lib/symlinkat.c: Likewise.
21746         * lib/unicodeio.c: Likewise.
21747         * lib/unistr.h: Likewise.
21748         * tests/test-areadlink.c: Likewise.
21749         * tests/test-areadlinkat.c: Likewise.
21750         * tests/test-filenamecat.c: Likewise.
21751         * tests/test-fseeko.c: Likewise.
21752         * tests/test-ftello.c: Likewise.
21753         * tests/test-getdate.c: Likewise.
21754         * tests/test-getgroups.c: Likewise.
21755         * tests/test-gethostname.c: Likewise.
21756         * tests/test-quotearg.c: Likewise.
21757         * tests/test-version-etc.c: Likewise.
21758         * tests/test-xalloc-die.c: Likewise.
21759         * tests/test-xfprintf-posix.c: Likewise.
21760         * tests/test-xprintf-posix.c: Likewise.
21761         * tests/test-xvasprintf.c: Likewise.
21762
21763         tests: avoid compiler warnings
21764         * tests/test-fcntl.c (main): Delete unused parameters.
21765         * tests/test-freopen-safer.c (main): Likewise.
21766         * tests/test-xalloc-die.c (main): Mark unused parameters.
21767         * tests/test-fseeko.c (main): Likewise.
21768         * tests/test-ftello.c (main): Likewise.
21769         * tests/test-nanosleep.c (main): Avoid declaration warning.
21770         * tests/test-sleep.c (main): Likewise.
21771         * tests/test-unsetenv.c (main): Silence warning about string
21772         literal.
21773         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21774
21775 2009-12-23  Bruno Haible  <bruno@clisp.org>
21776
21777         * tests/test-localename.c (test_locale_name): New function, extracted
21778         from main. Also test mixed situations.
21779         (test_locale_name_posix, test_locale_name_environ,
21780         test_locale_name_default): New functions.
21781         (main): Invoke them all.
21782         * modules/localename-tests (configure.ac): Test for newlocale.
21783
21784 2009-12-23  Bruno Haible  <bruno@clisp.org>
21785
21786         unistd: Ensure getcwd gets declared before being overridden.
21787         * lib/unistd.in.h: Conditionally include <io.h>.
21788
21789 2009-12-22  Bruno Haible  <bruno@clisp.org>
21790
21791         wchar: Diagnose broken combination of glibc and gcc versions and flags.
21792         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
21793         (gl_WCHAR_H): Invoke it.
21794         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
21795         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
21796         Reported by Karl Berry <karl@freefriends.org>.
21797
21798 2009-12-22  Eric Blake  <ebb9@byu.net>
21799
21800         math, unistd: avoid redundant includes
21801         * lib/math.in.h (isnan): No need to re-include <math.h>.
21802         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
21803
21804         getsubopt: work around cygwin bug
21805         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
21806         avoid conflicting with system getsubopt.
21807         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
21808         bug.
21809
21810         getopt: synchronize from glibc
21811         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21812         parameter order.  Adjust all callers.
21813         (_getopt_internal_r, main): Adjust quoting in error messages.
21814         Drop considerations for outdated POSIX 1003.2 error message.
21815         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21816         callers.
21817         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21818
21819         test-getopt: test stderr behavior
21820         * modules/getopt-posix-tests (Depends-on): Add dup2.
21821         * tests/test-getopt.c (ASSERT): Avoid stderr.
21822         (main): Move stderr to a temporary file.
21823         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21824         Instead, add parameter to inform caller if output occurred.
21825         (test_getopt): Adjust all existing tests to expect silence, and
21826         add new tests of leading ":".
21827         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21828         glibc shortcomings with leading "-:" or "+:" in optstring.
21829         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21830         Likewise.
21831         * doc/posix-functions/getopt.texi (getopt): Likewise.
21832
21833         test-getopt: enhance test
21834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21835         supports optind=0.
21836         * tests/test-getopt.c (OPTIND_MIN): Move...
21837         * tests/test-getopt.h (OPTIND_MIN): ...here.
21838         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21839         Require that optind=0 works, since modern BSD supports it in
21840         addition to optreset, and since coreutils expects it.
21841         (test_getopt_long_only): New test.
21842         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21843         glibc shortcomings with 'W;', and enforcement of optind=0.
21844         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21845         Likewise.
21846
21847 2009-12-21  Bruno Haible  <bruno@clisp.org>
21848
21849         localename: Improvements for MacOS X and Cygwin.
21850         * lib/localename.h (gl_locale_name_environ): New declaration.
21851         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21852         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21853         (gl_locale_name_posix): Invoke it.
21854         (gl_locale_name_default): Add comments. Use Windows native API also on
21855         Cygwin.
21856
21857 2009-12-21  Bruno Haible  <bruno@clisp.org>
21858
21859         Update list of Win32 locale ids.
21860         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21861         (LANG_SAMI): Renamed from LANG_SAAMI.
21862         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21863         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21864         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21865         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21866         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21867         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21868         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21869         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21870         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21871         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21872         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21873         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21874         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21875         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21876         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21877         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21878         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21879         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21880         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21881         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21882         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21883         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21884         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21885         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21886         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21887         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21888         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21889         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21890         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21891         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21892         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21893         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21894         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21895         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21896         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21897         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21898         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21899         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21900         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21901         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21902         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21903         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21904         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21905         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21906         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21907         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21908         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21909         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21910         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21911         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21912         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21913         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21914         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21915         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21916         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21917         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21918         Add more languages and countries for Sami, Sorbian. Add more countries
21919         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21920         for Pashto. Change country for Syriac, Tswana.
21921
21922 2009-12-21  Eric Blake  <ebb9@byu.net>
21923
21924         test-utimens: avoid spurious failure
21925         * tests/test-chown.h (nap): Factor...
21926         * tests/nap.h: ...into new file.
21927         * tests/test-lchown.h (nap): Avoid duplication.
21928         * tests/test-utimens-common.h (nap): Use shared implementation,
21929         necessary on file systems with 1-second resolution.
21930         * modules/chown-tests (Files): Include new file.
21931         * modules/fdutimensat-tests (Files): Likewise.
21932         * modules/futimens-tests (Files): Likewise.
21933         * modules/lchown-tests (Files): Likewise.
21934         * modules/openat-tests (Files): Likewise.
21935         * modules/utimens-tests (Files): Likewise.
21936         * modules/utimensat-tests (Files): Likewise.
21937
21938 2009-12-19  Eric Blake  <ebb9@byu.net>
21939
21940         futimens, utimensat: work around Linux bug
21941         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21942         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21943         * lib/utimensat.c (rpl_utimensat): Work around it.
21944         * lib/futimens.c (rpl_futimens): Adjust comment.
21945
21946         utimens: work around Linux ctime bug
21947         * lib/utimens.c (detect_ctime_bug): New helper function.
21948         (update_timespec): Differentiate between workaround needed for
21949         this bug vs. what is needed for systems that lack utimensat.
21950         (fdutimens, lutimens): Work around bug.
21951
21952         utimens: check for ctime update
21953         * tests/test-utimens-common.h (check_ctime): Define.
21954         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21955         * tests/test-futimens.h (test_futimens): Likewise.
21956         * tests/test-lutimens.h (test_lutimens): Likewise.
21957         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21959
21960 2009-12-19  Bruno Haible  <bruno@clisp.org>
21961
21962         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21963         * tests/test-dprintf-posix2.sh: New file.
21964         * tests/test-dprintf-posix2.c: New file.
21965         * modules/dprintf-posix-tests (Files): Add them.
21966         (configure.ac): Check for getrlimit and setrlimit.
21967         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21968
21969 2009-12-19  Bruno Haible  <bruno@clisp.org>
21970
21971         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21972         * tests/test-fprintf-posix3.sh: New file.
21973         * tests/test-fprintf-posix3.c: New file.
21974         * modules/fprintf-posix-tests (Files): Add them.
21975         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21976
21977 2009-12-19  Eric Blake  <ebb9@byu.net>
21978
21979         dirfd: fix prototype
21980         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21981         * lib/dirfd.c (dirfd): Likewise.
21982
21983         canonicalize: reduce memory usage
21984         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21985         allocation to size.
21986         Reported by Solar Designer <solar@openwall.com>.
21987
21988 2009-12-19  Bruno Haible  <bruno@clisp.org>
21989
21990         New module attribute 'Applicability'.
21991         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21992         * gnulib-tool: New option --extract-applicability.
21993         (func_usage): Document it.
21994         (sed_extract_prog): Recognize it.
21995         (func_get_applicability): New function.
21996         (func_import): Generalize handling of 'link-warning' module.
21997         * modules/link-warning (Applicability): New section.
21998         * modules/arg-nonnull (Applicability): New section.
21999         Repoted by Simon Josefsson <simon@josefsson.org>.
22000
22001 2009-12-19  Bruno Haible  <bruno@clisp.org>
22002
22003         fflush: tweak
22004         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22005         * lib/fseeko.c (rpl_fseeko): Likewise.
22006
22007 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22008
22009         * lib/gl_list.h: Fix typo in comment.
22010
22011 2009-12-16  Eric Blake  <ebb9@byu.net>
22012
22013         fcntl: use to simplify other modules
22014         * modules/cloexec (Depends-on): Add fcntl.
22015         * modules/fchdir (Depends-on): Likewise.
22016         * modules/fd-safer-flag (Depends-on): Likewise.
22017         * modules/unistd-safer (Depends-on): Likewise.
22018         * modules/dup3 (configure.ac): Set module indicator.
22019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22020         missing.
22021         * lib/fchdir.c (_gl_register_dup): Fix comment.
22022         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22023         * lib/dup-safer.c (dup_safer): Likewise.
22024         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22025         * lib/dup3.c (dup3): Likewise.
22026         * tests/test-fchdir.c (main): Enhance test.
22027         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22028
22029         fcntl: port portions of fcntl to mingw
22030         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22031         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22032         replacement for mingw.
22033         * modules/fcntl (Description): Update.
22034         (Depends-on): Add dup2.
22035         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22036         * modules/fcntl-h (Makefile.am): Substitute it.
22037         * lib/fcntl.in.h (fcntl): Update declaration.
22038         (F_DUPFD, F_GETFD): New macros, when needed.
22039         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22040         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22041         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22042         we now guarantee.
22043
22044         fcntl: work around cygwin bug in F_DUPFD
22045         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22046         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22047         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22048         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22049         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22050
22051         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22052         * modules/fcntl (Files): List new files.
22053         (configure.ac): Run a test.
22054         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22055         * lib/fcntl.c (rpl_fcntl): Likewise.
22056         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22057         (gl_FCNTL_H): Always replace fcntl.h.
22058         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22059         * lib/fcntl.in.h (fcntl): Declare replacement.
22060         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22061         needed, plus a witness.
22062         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22063         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22064         * tests/test-fcntl.c: New file.
22065         * modules/fcntl-tests: Likewise.
22066
22067         binary-io: avoid potential compilation warning
22068         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22069         directives.
22070
22071         fflush: avoid compilation error on NetBSD
22072         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22073         between off_t and fpos_t, since the latter is sometimes a struct.
22074         * lib/fseeko.c (rpl_fseeko): Likewise.
22075         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22076
22077 2009-12-15  Eric Blake  <ebb9@byu.net>
22078
22079         fcntl-h, stdio, sys_ioctl: fix declarations
22080         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22081         function must not take arguments.
22082         * lib/sys_ioctl.in.h (ioctl): Likewise.
22083         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22084         (open): Add a link warning.
22085
22086 2009-12-15  Jim Meyering  <meyering@redhat.com>
22087
22088         areadlink, areadlink-with-size: relax license to LGPLv2+
22089         * modules/areadlink (License): Relax to LGPLv2+.
22090         * modules/areadlink-with-size (License): Likewise.
22091
22092 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22093             Bruno Haible  <bruno@clisp.org>
22094
22095         *printf: Fix memory leak.
22096         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22097         * lib/vfprintf.c (vfprintf): Likewise.
22098         * lib/dprintf.c (dprintf): Likewise.
22099         * lib/vdprintf.c (vdprintf): Likewise.
22100
22101 2009-12-14  Eric Blake  <ebb9@byu.net>
22102
22103         accept4: adjust module dependencies
22104         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22105
22106         utimens: one more try at avoiding compiler warning
22107         * lib/utimens.c (lutimens): Lower scope of result.
22108
22109 2009-12-13  Bruno Haible  <bruno@clisp.org>
22110
22111         Move the malloc checking from module 'list' to new module 'xlist'.
22112         * modules/xlist: New file.
22113         * lib/gl_xlist.h: New file.
22114         * lib/gl_xlist.c: New file.
22115         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22116         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22117         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22118         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22119         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22120         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22121         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22122         gl_sortedlist_nx_add): New declarations.
22123         (struct gl_list_implementation): Rename and change methods accordingly.
22124         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22125         (gl_list_nx_create): Renamed from gl_list_create.
22126         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22127         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22128         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22129         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22130         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22131         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22132         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22133         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22134         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22135         gl_list_create_empty.
22136         (gl_list_nx_create): Renamed from gl_list_create.
22137         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22138         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22139         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22140         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22141         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22142         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22143         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22144         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22145         * lib/gl_array_list.c: Don't include xalloc.h.
22146         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22147         NULL upon out-of-memory.
22148         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22149         out-of-memory.
22150         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22151         Change return type to 'int'.
22152         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22153         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22154         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22155         upon out-of-memory.
22156         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22157         upon out-of-memory.
22158         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22159         upon out-of-memory.
22160         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22161         upon out-of-memory.
22162         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22163         out-of-memory.
22164         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22165         Update.
22166         (gl_array_list_implementation): Update.
22167         * lib/gl_carray_list.c: Don't include xalloc.h.
22168         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22169         Return NULL upon out-of-memory.
22170         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22171         out-of-memory.
22172         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22173         Change return type to 'int'.
22174         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22175         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22176         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22177         upon out-of-memory.
22178         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22179         upon out-of-memory.
22180         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22181         out-of-memory.
22182         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22183         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22184         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22185         Update.
22186         (gl_carray_list_implementation): Update.
22187         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22188         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22189         gl_linked_create_empty. Return NULL upon out-of-memory.
22190         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22191         out-of-memory.
22192         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22193         Change return type to 'int'. Return -1 upon out-of-memory.
22194         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22195         out-of-memory.
22196         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22197         upon out-of-memory.
22198         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22199         upon out-of-memory.
22200         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22201         NULL upon out-of-memory.
22202         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22203         upon out-of-memory.
22204         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22205         out-of-memory.
22206         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22207         Update.
22208         * lib/gl_linked_list.c: Don't include xalloc.h.
22209         (gl_linked_list_implementation): Update.
22210         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22211         (add_to_bucket): Change return type to 'int'.
22212         (gl_linkedhash_list_implementation): Update.
22213         * lib/gl_anytree_list1.h (free_subtree): New function.
22214         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22215         gl_tree_create_empty. Return NULL upon out-of-memory.
22216         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22217         Change return type to 'int'. Return -1 upon out-of-memory.
22218         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22219         out-of-memory.
22220         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22221         (gl_tree_remove_node): New function, moved here from
22222         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22223         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22224         Update.
22225         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22226         malloc, not xmalloc. Return NULL upon out-of-memory.
22227         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22228         out-of-memory.
22229         (gl_tree_remove_node_from_tree): New function, extracted from
22230         gl_tree_remove_node.
22231         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22232         upon out-of-memory.
22233         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22234         out-of-memory.
22235         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22236         upon out-of-memory.
22237         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22238         upon out-of-memory.
22239         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22240         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22241         not xmalloc. Return NULL upon out-of-memory.
22242         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22243         out-of-memory.
22244         (gl_tree_remove_node_from_tree): New function, extracted from
22245         gl_tree_remove_node.
22246         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22247         upon out-of-memory.
22248         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22249         out-of-memory.
22250         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22251         upon out-of-memory.
22252         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22253         upon out-of-memory.
22254         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22255         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22256         gl_anytree_list1.h before gl_anyavltree_list2.h.
22257         (gl_avltree_list_implementation): Update.
22258         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22259         gl_anytree_list1.h before gl_anyavltree_list2.h.
22260         (gl_rbtree_list_implementation): Update.
22261         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22262         Change return type to 'int'. Return -1 upon out-of-memory. Use
22263         __builtin_expect.
22264         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22265         (gl_avltreehash_list_implementation): Update.
22266         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22267         (gl_rbtreehash_list_implementation): Update.
22268         * modules/array-list (Depends-on): Remove xalloc.
22269         * modules/carray-list (Depends-on): Likewise.
22270         * modules/linked-list (Depends-on): Likewise.
22271         * modules/linkedhash-list (Depends-on): Likewise.
22272         * modules/avltree-list (Depends-on): Likewise.
22273         * modules/rbtree-list (Depends-on): Likewise.
22274         * modules/avltreehash-list (Depends-on): Likewise.
22275         * modules/rbtreehash-list (Depends-on): Likewise.
22276
22277         * modules/xsublist: New file.
22278         * lib/gl_xsublist.h: New file.
22279         * lib/gl_xsublist.c: New file.
22280         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22281         (gl_sublist_nx_create): New declaration.
22282         * lib/gl_sublist.c: Don't include xalloc.h.
22283         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22284         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22285         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22286         Change return type to 'int'. Return -1 upon out-of-memory.
22287         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22288         upon out-of-memory.
22289         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22290         NULL upon out-of-memory.
22291         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22292         upon out-of-memory.
22293         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22294         NULL upon out-of-memory.
22295         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22296         NULL upon out-of-memory.
22297         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22298         upon out-of-memory.
22299         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22300         (gl_sublist_list_implementation): Update.
22301         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22302         upon out-of-memory.
22303         * modules/sublist (Depends-on): Remove xalloc.
22304
22305         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22306         * tests/test-carray_list.c: Likewise.
22307         * tests/test-linked_list.c: Likewise.
22308         * tests/test-linkedhash_list.c: Likewise.
22309         * tests/test-avltree_list.c: Likewise.
22310         * tests/test-rbtree_list.c: Likewise.
22311         * tests/test-avltreehash_list.c: Likewise.
22312         * tests/test-rbtreehash_list.c: Likewise.
22313         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22314         * modules/carray-list-tests (Makefile.am): Likewise.
22315         * modules/linked-list-tests (Makefile.am): Likewise.
22316         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22317         * modules/avltree-list-tests (Makefile.am): Likewise.
22318         * modules/rbtree-list-tests (Makefile.am): Likewise.
22319         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22320         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22321
22322         * NEWS: Mention the changes.
22323
22324         * lib/clean-temp.c: Include gl_xlist.h.
22325         * modules/clean-temp (Depends-on): Add xlist.
22326
22327         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22328         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22329
22330         * tests/test-array_oset.c: Include gl_xlist.h.
22331         * modules/array-oset-tests (Depends-on): Add xlist.
22332
22333         Reported by José E. Marchesi <jemarch@gnu.org>.
22334
22335 2009-12-13  Bruno Haible  <bruno@clisp.org>
22336
22337         Move the malloc checking from module 'oset' to new module 'xoset'.
22338         * modules/xoset: New file.
22339         * lib/gl_xoset.h: New file.
22340         * lib/gl_xoset.c: New file.
22341         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22342         declarations.
22343         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22344         (struct gl_oset_implementation): Rename and change methods accordingly.
22345         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22346         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22347         'int'. Mark as __warn_unused_result__.
22348         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22349         gl_oset_create_empty.
22350         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22351         'int'.
22352         * lib/gl_array_oset.c: Don't include xalloc.h.
22353         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22354         malloc, not xmalloc.
22355         (grow): Change return type to 'int'. Don't call xalloc_die.
22356         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22357         to 'int'.
22358         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22359         'int'.
22360         (gl_array_oset_implementation): Update.
22361         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22362         gl_tree_create_empty.
22363         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22364         'int'.
22365         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22366         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22367         xmalloc.
22368         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22369         not xmalloc.
22370         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22371         xmalloc.
22372         (gl_avltree_oset_implementation): Update.
22373         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22374         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22375         xmalloc.
22376         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22377         not xmalloc.
22378         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22379         xmalloc.
22380         (gl_rbtree_oset_implementation): Update.
22381         * modules/array-oset (Depends-on): Remove xalloc.
22382         * modules/avltree-oset (Depends-on): Likewise.
22383         * modules/rbtree-oset (Depends-on): Likewise.
22384         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22385         * tests/test-avltree_oset.c: Likewise.
22386         * tests/test-rbtree_oset.c: Likewise.
22387         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22388         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22389         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22390         * NEWS: Mention the change.
22391
22392 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22393
22394         maint.mk: allow a project to override release-prep commands
22395         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22396         commands into a new rule.
22397         (release-prep): New rule.
22398         (release-prep-hook): New overridable variable.
22399
22400 2009-12-13  Bruno Haible  <bruno@clisp.org>
22401
22402         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22403
22404 2009-12-13  Jim Meyering  <meyering@redhat.com>
22405
22406         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22407         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22408
22409 2009-12-12  Bruno Haible  <bruno@clisp.org>
22410
22411         duplocale: Tweak.
22412         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22413
22414 2009-12-12  Karl Berry  <karl@gnu.org>
22415
22416         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22417
22418 2009-12-12  Bruno Haible  <bruno@clisp.org>
22419
22420         * m4/po.m4: Undo incorrect untabification.
22421
22422 2009-12-12  Bruno Haible  <bruno@clisp.org>
22423
22424         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22425         * modules/c-strtod (Depends-on): Add locale.
22426         * modules/c-strtold (Depends-on): Likewise.
22427
22428 2009-12-12  Bruno Haible  <bruno@clisp.org>
22429
22430         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22431
22432 2009-12-11  Eric Blake  <ebb9@byu.net>
22433
22434         setenv: relax requirement in light of POSIX ruling
22435         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22436         not NULL.
22437         * tests/test-setenv.c (main): Relax test.
22438         * tests/test-unsetenv.c (main): Likewise.
22439         * doc/posix-functions/setenv.texi (setenv): Document this.
22440         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22441
22442 2009-12-11  Bruno Haible  <bruno@clisp.org>
22443
22444         New module 'fd-safer-flag'.
22445         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22446         * lib/dup-safer.c (dup_safer_flag): Remove function.
22447         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22448         * lib/fd-safer.c (fd_safer_flag): Remove function.
22449         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22450         * modules/cloexec (configure.ac): Drop indicator macro.
22451         * modules/fd-safer-flag: New file.
22452         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22453         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22454         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22455
22456 2009-12-11  Bruno Haible  <bruno@clisp.org>
22457
22458         Tests for module 'nl_langinfo'.
22459         * modules/nl_langinfo-tests: New file.
22460         * tests/test-nl_langinfo.sh: New file.
22461         * tests/test-nl_langinfo.c: New file.
22462
22463         New module 'nl_langinfo'.
22464         * lib/nl_langinfo.c: New file.
22465         * m4/nl_langinfo.m4: New file.
22466         * modules/nl_langinfo: New file.
22467         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22468
22469 2009-12-11  Bruno Haible  <bruno@clisp.org>
22470
22471         Tests for module 'langinfo'.
22472         * modules/langinfo-tests: New file.
22473         * tests/test-langinfo.c: New file.
22474
22475         New module 'langinfo'.
22476         * lib/langinfo.in.h: New file.
22477         * m4/langinfo_h.m4: New file.
22478         * modules/langinfo: New file.
22479         * doc/posix-headers/langinfo.texi: Mention the new module.
22480
22481 2009-12-11  Bruno Haible  <bruno@clisp.org>
22482
22483         * lib/config.charset: Untabify.
22484
22485 2009-12-11  Bruno Haible  <bruno@clisp.org>
22486
22487         * modules/unistd-safer (configure.ac): Drop indicator macro.
22488
22489 2009-12-11  Bruno Haible  <bruno@clisp.org>
22490
22491         Move pipe2-safer code to its own file.
22492         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22493         * lib/pipe-safer.c (pipe2_safer): Remove function.
22494         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22495         (Makefile.am): Add it to lib_SOURCES.
22496
22497 2009-12-10  Bruno Haible  <bruno@clisp.org>
22498
22499         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22500
22501 2009-12-10  Bruno Haible  <bruno@clisp.org>
22502
22503         Declare which arguments expect non-NULL values, for GCC and clang.
22504         * build-aux/arg-nonnull.h: New file.
22505         * modules/arg-nonnull: New file.
22506         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22507         (inet_ntop, inet_pton): Use it.
22508         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22509         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22510         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22511         (open, openat): Use it.
22512         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22513         (fnmatch): Use it.
22514         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22515         (getopt, getopt_long, getopt_long_only): Use it.
22516         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22517         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22518         Use it.
22519         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22520         (iconv_open): Use it.
22521         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22522         (strtoimax, strtoumax): Use it.
22523         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22524         (duplocale): Use it.
22525         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22526         (frexp, frexpl): Use it.
22527         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22528         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22529         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22530         (tsearch, tfind, tdelete, twalk): Use it.
22531         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22532         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22533         sigpending): Use it.
22534         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22535         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22536         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22537         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22538         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22539         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22540         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22541         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22542         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22543         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22544         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22545         Use it.
22546         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
22547         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
22548         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
22549         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
22550         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
22551         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
22552         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
22553         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
22554         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
22555         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
22556         strtoull, unsetenv): Use it.
22557         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
22558         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22559         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22560         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22561         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22562         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
22563         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
22564         (strcasecmp, strncasecmp): Use it.
22565         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
22566         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
22567         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
22568         rpl_setsockopt): Use it.
22569         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
22570         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
22571         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
22572         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
22573         (gettimeofday): Use it.
22574         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
22575         (times): Use it.
22576         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
22577         (uname): Use it.
22578         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
22579         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
22580         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
22581         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
22582         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
22583         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
22584         unlinkat, write): Use it.
22585         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
22586         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
22587         * lib/argv-iter.h: Include arg-nonnull.h.
22588         (_ATTRIBUTE_NONNULL_): Remove macro.
22589         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
22590         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
22591         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
22592         optimization.
22593         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
22594         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
22595         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
22596         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
22597         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
22598         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
22599         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
22600         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
22601         * modules/arpa_inet (Depends-on): Add arg-nonnull.
22602         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
22603         * modules/dirent (Depends-on): Add arg-nonnull.
22604         (Makefile.am): Insert arg-nonnull.h into dirent.h.
22605         * modules/fcntl-h (Depends-on): Add arg-nonnull.
22606         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
22607         * modules/fnmatch (Depends-on): Add arg-nonnull.
22608         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
22609         * modules/getopt-posix (Depends-on): Add arg-nonnull.
22610         (Makefile.am): Insert arg-nonnull.h into getopt.h.
22611         * modules/glob (Depends-on): Add arg-nonnull.
22612         (Makefile.am): Insert arg-nonnull.h into glob.h.
22613         * modules/iconv_open (Depends-on): Add arg-nonnull.
22614         (Makefile.am): Insert arg-nonnull.h into iconv.h.
22615         * modules/inttypes (Depends-on): Add arg-nonnull.
22616         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
22617         * modules/locale (Depends-on): Add arg-nonnull.
22618         (Makefile.am): Insert arg-nonnull.h into locale.h.
22619         * modules/math (Depends-on): Add arg-nonnull.
22620         (Makefile.am): Insert arg-nonnull.h into math.h.
22621         * modules/netdb (Depends-on): Add arg-nonnull.
22622         (Makefile.am): Insert arg-nonnull.h into netdb.h.
22623         * modules/search (Depends-on): Add arg-nonnull.
22624         (Makefile.am): Insert arg-nonnull.h into search.h.
22625         * modules/signal (Depends-on): Add arg-nonnull.
22626         (Makefile.am): Insert arg-nonnull.h into signal.h.
22627         * modules/spawn (Depends-on): Add arg-nonnull.
22628         (Makefile.am): Insert arg-nonnull.h into spawn.h.
22629         * modules/stdio (Depends-on): Add arg-nonnull.
22630         (Makefile.am): Insert arg-nonnull.h into stdio.h.
22631         * modules/stdlib (Depends-on): Add arg-nonnull.
22632         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
22633         * modules/string (Depends-on): Add arg-nonnull.
22634         (Makefile.am): Insert arg-nonnull.h into string.h.
22635         * modules/strings (Depends-on): Add arg-nonnull.
22636         (Makefile.am): Insert arg-nonnull.h into strings.h.
22637         * modules/sys_socket (Depends-on): Add arg-nonnull.
22638         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
22639         * modules/sys_stat (Depends-on): Add arg-nonnull.
22640         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
22641         * modules/sys_time (Depends-on): Add arg-nonnull.
22642         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
22643         * modules/sys_times (Depends-on): Add arg-nonnull.
22644         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
22645         * modules/sys_utsname (Depends-on): Add arg-nonnull.
22646         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
22647         * modules/time (Depends-on): Add arg-nonnull.
22648         (Makefile.am): Insert arg-nonnull.h into time.h.
22649         * modules/unistd (Depends-on): Add arg-nonnull.
22650         (Makefile.am): Insert arg-nonnull.h into unistd.h.
22651         * modules/wchar (Depends-on): Add arg-nonnull.
22652         (Makefile.am): Insert arg-nonnull.h into wchar.h.
22653         * modules/argv-iter (Depends-on): Add arg-nonnull.
22654         * tests/test-canonicalize.c (null_ptr): New function.
22655         (main): Use it.
22656         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
22657         (main): Use it.
22658         * tests/test-memmem.c (null_ptr): New function.
22659         (main): Use it.
22660         Reported by Jim Meyering.
22661
22662 2009-12-10  Bruno Haible  <bruno@clisp.org>
22663
22664         Use spaces for indentation, not tabs.
22665         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22666         * m4/*.m4: Untabify.
22667         * build-aux/*.h: Untabify.
22668         * tests/**/*.[hc]: Untabify.
22669         * README: New section "Indent with spaces, not TABs", based on
22670         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
22671         * NEWS: Mention the change.
22672
22673 2009-12-10  Bruno Haible  <bruno@clisp.org>
22674
22675         pty test: Fix link error.
22676         * modules/pty-tests (Makefile.am): Add the default LDADD value to
22677         test_pty_LDADD.
22678
22679 2009-12-07  Simon Josefsson  <simon@josefsson.org>
22680
22681         * modules/pty: New file.
22682         * modules/pty-tests: New file.
22683         * m4/pty.m4: New file.
22684         * tests/test-pty.c: New file.
22685         * doc/glibc-headers/pty.texi: Modified.
22686         * doc/glibc-functions/forkpty.texi: Modified.
22687         * doc/glibc-functions/openpty.texi: Modified.
22688
22689 2009-12-10  Bruno Haible  <bruno@clisp.org>
22690
22691         Avoid syntax error in C++ mode.
22692         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
22693
22694 2009-12-10  Bruno Haible  <bruno@clisp.org>
22695
22696         Use sed with option -e.
22697         * gnulib-tool (func_version, func_emit_copyright_notice,
22698         func_emit_initmacro_end, func_import, func_create_testdir): Pass
22699         option -e to sed.
22700         * modules/link-warning (Makefile.am): Likewise.
22701
22702 2009-12-10  Jim Meyering  <meyering@redhat.com>
22703
22704         mgetgroups: do not write bytes beyond end of malloc'd buffer
22705         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
22706         username, we call getgroups with a one-element-shorter buffer,
22707         but still told it the length was original, max_n_groups.
22708
22709 2009-12-09  Eric Blake  <ebb9@byu.net>
22710
22711         cloexec: relax license
22712         * modules/cloexec (Maintainer): Add myself.
22713         (License): Use LGPL, not GPL.
22714
22715         link-warning: optimize generation
22716         * modules/link-warning (Makefile.am): Reduce process usage.
22717
22718 2009-12-09  Bruno Haible  <bruno@clisp.org>
22719
22720         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
22721         workaround was added on 2009-11-17.
22722
22723 2009-12-09  Jim Meyering  <meyering@redhat.com>
22724             Bruno Haible  <bruno@clisp.org>
22725
22726         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
22727         * modules/link-warning (Makefile.am): Make the comment-removing sed
22728         command more robust in the face of bootstrap-prepended comment lines.
22729
22730 2009-12-09  Bruno Haible  <bruno@clisp.org>
22731
22732         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
22733         most one group.
22734
22735 2009-12-09  Simon Josefsson <simon@josefsson.org>
22736             Bruno Haible  <bruno@clisp.org>
22737
22738         * build-aux/link-warning.h: Add copyright notice.
22739         * modules/link-warning (Makefile.am): Generate link-warning.h from
22740         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
22741         * NEWS: Mention change in link-warning module.
22742         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
22743         * modules/dirent (Makefile.am): Add dependency to dirent.h.
22744         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
22745         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
22746         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
22747         * modules/math (Makefile.am): Add dependency to math.h.
22748         * modules/search (Makefile.am): Add dependency to search.h.
22749         * modules/signal (Makefile.am): Add dependency to signal.h.
22750         * modules/spawn (Makefile.am): Add dependency to spawn.h.
22751         * modules/stdio (Makefile.am): Add dependency to stdio.h.
22752         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
22753         * modules/string (Makefile.am): Add dependency to string.h.
22754         * modules/strings (Makefile.am): Add dependency to strings.h.
22755         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
22756         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
22757         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
22758         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
22759         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
22760         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
22761         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
22762         * modules/unistd (Makefile.am): Add dependency to unistd.h.
22763         * modules/wchar (Makefile.am): Add dependency to wchar.h.
22764
22765 2009-12-09  Bruno Haible  <bruno@clisp.org>
22766
22767         fchdir: Optimize away rpl_fstat when possible.
22768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
22769         REPLACE_OPEN_DIRECTORY.
22770         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
22771
22772 2009-12-09  Bruno Haible  <bruno@clisp.org>
22773
22774         * lib/fchdir.c: Update comment.
22775
22776 2009-12-09  Bruno Haible  <bruno@clisp.org>
22777
22778         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
22779
22780 2009-12-08  Eric Blake  <ebb9@byu.net>
22781
22782         fchdir: avoid memory leak on re-registration.
22783         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
22784
22785 2009-12-08  Jim Meyering  <meyering@redhat.com>
22786
22787         init.sh: avoid Solaris 10 /bin/sh portability problem
22788         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
22789         sourced script:
22790           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
22791           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
22792           bar
22793         tests/init.sh relied on that, accepting a --set-path=DIR argument,
22794         and two tests used that idiom.
22795         * tests/init.sh: Update suggested usage comments.
22796         (path_prepend_): New function, to be used in place
22797         of the --src-path=DIR option.
22798         (setup_): Move PATH-prepending code into path_prepend_.
22799         * tests/test-pread.sh: Adapt to new usage.
22800         * tests/test-xalloc-die.sh: Likewise.
22801
22802 2009-12-08  Simon Josefsson  <simon@josefsson.org>
22803
22804         * doc/gnulib.texi (Glibc pty.h): Add.
22805         * doc/glibc-functions/forkpty.texi: Add.
22806         * doc/glibc-functions/openpty.texi: Add.
22807         Suggested by Bruno Haible.
22808
22809 2009-12-08  Eric Blake  <ebb9@byu.net>
22810
22811         fchdir: fix logic bugs
22812         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22813         * tests/test-fchdir.c (main): Enhance test.
22814         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22815         is in use.
22816
22817         dup2: fix logic bugs
22818         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22819         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22820         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22821         exists.
22822         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22823
22824 2009-12-07  Eric Blake  <ebb9@byu.net>
22825
22826         unlink: fix m4 detection
22827         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22828
22829         unistd-safer: add unit test
22830         * modules/unistd-safer-tests: New file.
22831         * tests/test-dup-safer.c: Likewise.
22832         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22833         * tests/test-dup2.c (setmode): Likewise.
22834         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22835
22836         cloexec: preserve text vs. binary across dup_cloexec
22837         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22838         mode.
22839         * modules/dup2-tests (Depends-on): Add binary-io.
22840         * modules/cloexec-tests (Depends-on): Likewise.
22841         * tests/test-dup2.c (setmode, is_mode): New helpers.
22842         (main): Add tests that translation mode is preserved.
22843         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22844         Reported by Bruno Haible.
22845
22846         mgetgroups: reduce duplicate listings
22847         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22848         resulting array.
22849         * tests/test-chown.h (test_chown): Simplify client.
22850         * tests/test-lchown.h (test_lchown): Likewise.
22851
22852 2009-12-06  Bruno Haible  <bruno@clisp.org>
22853
22854         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22855         value.
22856
22857 2009-12-06  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/progname.c: Include stdio.h, stdlib.h.
22860         (set_program_name): Reject a NULL argument.
22861
22862 2009-12-05  Eric Blake  <ebb9@byu.net>
22863
22864         pipe2-safer: new module
22865         * modules/pipe2-safer: New file.
22866         * lib/unistd-safer.h (pipe2_safer): New prototype.
22867         * lib/unistd--.h (pipe2): New wrapper.
22868         * lib/pipe-safer.c (pipe2_safer): New function.
22869         * modules/pipe (Depends-on): Add pipe2-safer.
22870         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22871
22872         stdlib-safer: preserve cloexec flag for mkostemp[s]
22873         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22874         fd_safer_flag.
22875
22876         unistd-safer: allow preservation of cloexec status via flag
22877         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22878         prototypes.
22879         * lib/dup-safer.c (dup_safer_flag): New function.
22880         * lib/fd-safer.c (fd_safer_flag): Likewise.
22881         * modules/cloexec (configure.ac): Set witness.
22882
22883         test-dup2: enhance test
22884         * modules/dup2-tests (Depends-on): Add cloexec.
22885         * tests/test-dup2.c (main): Enhance test.
22886
22887         cloexec: add dup_cloexec
22888         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22889         header and comments.
22890         * lib/cloexec.c (set_cloexec_flag): Add comments.
22891         (dup_cloexec): New function, with mingw implementation borrowed
22892         from...
22893         * lib/w32spawn.h (dup_noinherit): ...here.
22894         * modules/execute (Depends-on): Add cloexec.
22895         * modules/pipe (Depends-on): Likewise.
22896         * modules/cloexec (Depends-on): Add dup2.
22897         * modules/cloexec-tests (Files): New file.
22898         * tests/test-cloexec.c: Likewise.
22899
22900         test-xalloc-die: fix test for mingw
22901         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22902         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22903         directory and .exe suffix off argv[0] output.
22904
22905         test-fseeko: fix test for mingw
22906         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22907         than undefining fseek, so test will pass on mingw.
22908
22909 2009-12-05  Bruno Haible  <bruno@clisp.org>
22910
22911         * lib/progname.h (set_program_name): Clarify specification.
22912         * lib/progname.c (set_program_name): Likewise.
22913         Reported by Jim Meyering.
22914
22915 2009-12-05  Jim Meyering  <meyering@redhat.com>
22916
22917         maint.mk: backslash-escape parens in default regexp
22918         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22919         backslash-escape the literal parentheses.
22920
22921         maint.mk: news-date-check: use grep -E
22922         * top/maint.mk (today): Define a Make variable, not a...
22923         (news-date-check): ...shell variable.
22924         (news-date-regexp): Use the Make variable.
22925         Use grep's -E option.  Change the failing diagnostic to mention
22926         the variable, $(news-date-regexp).
22927
22928 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22929
22930         maintainer-makefile: allow customization of NEWS entry format
22931         * top/maint.mk (news-date-regexp): New overridable variable.
22932         (news-date-check): Use it.
22933
22934 2009-12-04  Eric Blake  <ebb9@byu.net>
22935
22936         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22937         * lib/mgetgroups.h (xgetgroups): New prototype.
22938         * lib/mgetgroups.c (xgetgroups): New wrapper.
22939         (mgetgroups): Handle ENOSYS.
22940         * modules/mgetgroups (Depends-on): Add realloc.
22941         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22942
22943         mgetgroups: avoid argument promotion issues with -1
22944         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22945         for invalid gid_t.
22946         * tests/test-chown.h (getegid, test_chown): Likewise.
22947         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22948
22949 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22950
22951         exclude: Fix header file problems.
22952         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22953
22954 2009-12-01  Jim Meyering  <meyering@redhat.com>
22955
22956         fts: fts_open: do not let an empty string cause immediate failure
22957         This is required in support of GNU rm, for which the command
22958         "rm A '' B" must process and remove both A and B, in spite of
22959         the empty string argument.
22960         * lib/fts.c (fts_open): Do not let the presence of an empty string
22961         cause fts_open to fail immediately.  Most fts-using tools must be
22962         able to process all arguments, in order, and can be expected to
22963         diagnose such arguments themselves.
22964
22965 2009-11-30  Eric Blake  <ebb9@byu.net>
22966
22967         utimens: fix compilation error
22968         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22969         Declare variable at right scope.
22970
22971 2009-11-29  Jim Meyering  <meyering@redhat.com>
22972
22973         bootstrap: handle perl-5.11's changed --version output
22974         * build-aux/bootstrap (get_version): Handle perl separately,
22975         since perl-5.11's --version output is different.
22976
22977 2009-11-28  Jim Meyering  <meyering@redhat.com>
22978
22979         userspec: depend on the inttostr module, too
22980         * modules/userspec (Depends-on): Add inttostr.
22981
22982         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22983         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22984         number of MAXUID when it evaluates to (uid_t) -1.
22985         Likewise for group ID.  Reported by Matt McCutchen in
22986         <http://savannah.gnu.org/bugs/?28113>
22987
22988         userspec: reformat to use spaces, not TABs
22989         * lib/userspec.c: Expand TABs to spaces.
22990         Add Emacs' "indent-tabs-mode: nil" hint.
22991
22992 2009-11-27  Eric Blake  <ebb9@byu.net>
22993
22994         getopt-gnu: flush out another BSD bug
22995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22996         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22997         flush out BSD bug.
22998         * tests/test-getopt.h (test_getopt): End lists with NULL.
22999         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23000         (test_getopt_long_posix): Enhance test.
23001         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23002         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23003         getopt-gnu.
23004         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23005         Likewise.
23006
23007 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23008
23009         * modules/idpriv-droptemp-tests (Notice): Fix text.
23010
23011 2009-11-27  Jim Meyering  <meyering@redhat.com>
23012
23013         test-xalloc-die: avoid spurious failure due to libtool argv difference
23014         In a libtool-enabled project, this test would fail due to a difference
23015         in the emitted program name, e.g.,
23016         -test-xalloc-die: memory exhausted
23017         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23018         Use program to avoid that.
23019         * modules/xalloc-die-tests (Depends-on): Add progname.
23020         * tests/test-xalloc-die.c: Include progname.h".
23021         (program_name): Remove decl.
23022         (main): Call set_program_name.
23023         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23024
23025 2009-11-26  Richard Jones  <rjones@redhat.com>
23026
23027         w32sock: leave win32 error in place.
23028         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23029
23030 2009-11-26  Eric Blake  <ebb9@byu.net>
23031
23032         init.sh: suggest to use skip_ and fail_ functions in comments
23033         * tests/init.sh: Add a sentence.
23034
23035 2009-11-25  Bruno Haible  <bruno@clisp.org>
23036
23037         init.sh: add documentation in comments
23038         * tests/init.sh: Add some developer and user documentation.
23039
23040 2009-11-26  Jim Meyering  <meyering@redhat.com>
23041
23042         init.sh: accommodate even those who specify bogus srcdir manually
23043         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23044         configure-time tests to be sanitized, so that there is no need to
23045         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23046         (with no double quotes) suffices.  However, since tests may be
23047         invoked manually, and since you may explicitly set srcdir to the
23048         name of a directory containing spaces, do quote its uses here.
23049         * tests/test-pread.sh: Likewise.
23050         Suggested by Bruno Haible.
23051
23052         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23053         * tests/test-pread.sh: Write no data into the pipe, because
23054         test-pread actually reads none.  This avoids a diagnostic,
23055         "bash: echo: write error: Broken pipe", that arises in the unusual
23056         event something is ignoring SIGPIPE, and might be interpreted
23057         as some sort of failure.  Reported by Bruno Haible.
23058
23059 2009-11-25  Jim Meyering  <meyering@redhat.com>
23060
23061         test-pread: cover failure with ESPIPE and EINVAL
23062         * tests/test-pread.c (main): Test for failure, too.
23063         * tests/test-pread.sh: Invoke with stdin on a pipe.
23064         Suggested by Eric Blake.
23065
23066         pread: improvement and fix
23067         * modules/pread (Depends-on): Depend on lseek, for portability to
23068         e.g., mingw.  Suggested by Eric Blake.
23069         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23070
23071         unistd.in.h: correct declaration of pread
23072         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23073         Reported by Richard W.M. Jones.
23074
23075         test-pread.sh: distribute the test script
23076         * modules/pread-tests (Files): Include test-pread.sh.
23077
23078         test-pread.sh: clean up
23079         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23080         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23081         That is unnecessary, since it's always ".".
23082         Suggestion from Eric Blake.
23083
23084         test-pread.sh: make executable
23085         * tests/test-pread.sh: Set executable bit.
23086         Reported by Eric Blake.
23087
23088         correct typo in test-pread.sh
23089         * tests/test-pread.sh: Add #! line.
23090
23091         test pread
23092         * tests/test-pread.c: New file.
23093         * tests/test-pread.sh: Likewise.
23094         * modules/pread-tests: Likewise.
23095
23096         pread: new module
23097         * modules/pread: New file.
23098         * lib/unistd.in.h (pread): Define/declare.
23099         * lib/pread.c (pread): New file.
23100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23101         * modules/unistd (Makefile.am): Substitute witnesses.
23102         * doc/posix-functions/pread.texi (pread): Update.
23103         * MODULES.html.sh: Add pread.
23104
23105 2009-11-25  Jim Meyering  <meyering@redhat.com>
23106
23107         tests/init.sh: new file to be used via most *.sh tests
23108         * tests/init.sh: New file.
23109
23110 2009-11-25  Eric Blake  <ebb9@byu.net>
23111
23112         utimens: work around older Linux failure with symlinks
23113         * lib/utimens.c (lutimensat_works_really): New variable.
23114         (fdutimens, lutimens): Use it to manage kernels that support
23115         nanosecond times on files, but not on symlinks.
23116         Reported by OndÅ™ej Vašík.
23117
23118         utimes: fix configure grammar
23119         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23120
23121 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23122
23123         regex: Fix fastmap for multibyte character ranges.
23124         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23125         characters when a multibyte character range is included.
23126
23127 2009-11-22  Andy Wingo  <wingo@pobox.com>
23128
23129         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23130         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23131
23132 2009-11-24  Bruno Haible  <bruno@clisp.org>
23133
23134         doc: Most *_l functions exist in MacOS X 10.5.
23135         * doc/posix-functions/duplocale.texi: Update platforms list.
23136         * doc/posix-functions/freelocale.texi: Likewise.
23137         * doc/posix-functions/newlocale.texi: Likewise.
23138         * doc/posix-functions/uselocale.texi: Likewise.
23139         * doc/posix-functions/isalnum_l.texi: Likewise.
23140         * doc/posix-functions/isalpha_l.texi: Likewise.
23141         * doc/posix-functions/isblank_l.texi: Likewise.
23142         * doc/posix-functions/iscntrl_l.texi: Likewise.
23143         * doc/posix-functions/isdigit_l.texi: Likewise.
23144         * doc/posix-functions/isgraph_l.texi: Likewise.
23145         * doc/posix-functions/islower_l.texi: Likewise.
23146         * doc/posix-functions/isprint_l.texi: Likewise.
23147         * doc/posix-functions/ispunct_l.texi: Likewise.
23148         * doc/posix-functions/isspace_l.texi: Likewise.
23149         * doc/posix-functions/isupper_l.texi: Likewise.
23150         * doc/posix-functions/iswalnum_l.texi: Likewise.
23151         * doc/posix-functions/iswalpha_l.texi: Likewise.
23152         * doc/posix-functions/iswblank_l.texi: Likewise.
23153         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23154         * doc/posix-functions/iswctype_l.texi: Likewise.
23155         * doc/posix-functions/iswdigit_l.texi: Likewise.
23156         * doc/posix-functions/iswgraph_l.texi: Likewise.
23157         * doc/posix-functions/iswlower_l.texi: Likewise.
23158         * doc/posix-functions/iswprint_l.texi: Likewise.
23159         * doc/posix-functions/iswpunct_l.texi: Likewise.
23160         * doc/posix-functions/iswspace_l.texi: Likewise.
23161         * doc/posix-functions/iswupper_l.texi: Likewise.
23162         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23163         * doc/posix-functions/isxdigit_l.texi: Likewise.
23164         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23165         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23166         * doc/posix-functions/strcoll_l.texi: Likewise.
23167         * doc/posix-functions/strfmon_l.texi: Likewise.
23168         * doc/posix-functions/strftime_l.texi: Likewise.
23169         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23170         * doc/posix-functions/strxfrm_l.texi: Likewise.
23171         * doc/posix-functions/tolower_l.texi: Likewise.
23172         * doc/posix-functions/toupper_l.texi: Likewise.
23173         * doc/posix-functions/towctrans_l.texi: Likewise.
23174         * doc/posix-functions/towlower_l.texi: Likewise.
23175         * doc/posix-functions/towupper_l.texi: Likewise.
23176         * doc/posix-functions/wcscoll_l.texi: Likewise.
23177         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23178         * doc/posix-functions/wctrans_l.texi: Likewise.
23179         * doc/posix-functions/wctype_l.texi: Likewise.
23180         * doc/glibc-functions/strptime_l.texi: Likewise.
23181         * doc/glibc-functions/strtod_l.texi: Likewise.
23182         * doc/glibc-functions/strtof_l.texi: Likewise.
23183         * doc/glibc-functions/strtol_l.texi: Likewise.
23184         * doc/glibc-functions/strtold_l.texi: Likewise.
23185         * doc/glibc-functions/strtoll_l.texi: Likewise.
23186         * doc/glibc-functions/strtoul_l.texi: Likewise.
23187         * doc/glibc-functions/strtoull_l.texi: Likewise.
23188         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23189         * doc/glibc-functions/wcstod_l.texi: Likewise.
23190         * doc/glibc-functions/wcstof_l.texi: Likewise.
23191         * doc/glibc-functions/wcstol_l.texi: Likewise.
23192         * doc/glibc-functions/wcstold_l.texi: Likewise.
23193         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23194         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23195         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23196
23197 2009-11-24  Bruno Haible  <bruno@clisp.org>
23198
23199         duplocale: Fix logic bug.
23200         * lib/duplocale.c: Don't include <langinfo.h>.
23201         (_NL_LOCALE_NAME): Remove macro.
23202         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23203         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23204
23205 2009-11-23  Jim Meyering  <meyering@redhat.com>
23206
23207         test-update-copyright: don't hard-code /usr/bin/perl
23208         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23209         perl to print the current year.  Gilles Espinasse reported that
23210         the replaced use of perl was hard-coded as /usr/bin/perl.
23211
23212 2009-11-23  Bruno Haible  <bruno@clisp.org>
23213
23214         duplocale: Add support for glibc 2.3.x.
23215         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23216
23217 2009-11-22  Bruno Haible  <bruno@clisp.org>
23218
23219         vasnprintf: Tiny optimization.
23220         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23221         MacOS X.
23222
23223 2009-11-22  Bruno Haible  <bruno@clisp.org>
23224
23225         Tests for module 'duplocale'.
23226         * modules/duplocale-tests: New file.
23227         * tests/test-duplocale.c: New file.
23228
23229         New module 'duplocale'.
23230         * m4/duplocale.m4: New file.
23231         * lib/locale.in.h (duplocale): New declaration.
23232         * lib/duplocale.c: New file.
23233         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23234         gl_LOCALE_H_DEFAULTS): New macros.
23235         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23236         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23237         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23238         REPLACE_DUPLOCALE.
23239         * modules/duplocale: New file.
23240         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23241
23242 2009-11-22  Bruno Haible  <bruno@clisp.org>
23243
23244         * modules/locale-tests (configure.ac): Test for newlocale function.
23245         * tests/test-locale.c: When the system has extended locale functions,
23246         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23247
23248         locale: Make locale_t available when possible.
23249         * lib/locale.in.h: Include <xlocale.h> when it exists.
23250         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23251         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23252         * modules/locale (Depends-on): Add extensions.
23253         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23254         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23255
23256 2009-11-22  Bruno Haible  <bruno@clisp.org>
23257
23258         Add comments.
23259         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23260         invocation.
23261         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23262         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23263         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23264
23265 2009-11-22  Bruno Haible  <bruno@clisp.org>
23266
23267         error: account for the possibility of freopen (stdout).
23268         * lib/error.c: Include <unistd.h>.
23269         (flush_stdout): New function, extracted from error and error_at_line.
23270         Determine stdout's fd dynamically.
23271         (error, error_at_line): Invoke flush_stdout.
23272         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23273         * modules/error (Depends-on): Add unistd.
23274
23275 2009-11-22  Bruno Haible  <bruno@clisp.org>
23276
23277         diffseq: Add comment.
23278         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23279
23280 2009-11-22  Jim Meyering  <meyering@redhat.com>
23281
23282         c-stack: avoid defining an unused static function
23283         * lib/c-stack.c (find_stack_direction): Do not define this function
23284         when it will not be used.
23285
23286         diffseq: avoid spurious gcc warnings
23287         * lib/diffseq.h (IF_LINT2): Define.
23288         (compareseq): Use it to initialize two members of "part".
23289         This avoids two used-uninitialized warnings.
23290
23291 2009-11-21  Jim Meyering  <meyering@redhat.com>
23292
23293         c-stack: avoid "ignoring return value of `write'" warning
23294         * lib/c-stack.c: Include "ignore-value.h".
23295         (die): Explicitly ignore each write return value.
23296         * modules/c-stack (Depends-on): Add ignore-value.
23297
23298 2009-11-21  Bruno Haible  <bruno@clisp.org>
23299
23300         diffseq: reduce scope of variable 'best'.
23301         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23302         variable, earlier used for two different purposes.
23303
23304 2009-11-21  Jim Meyering  <meyering@redhat.com>
23305
23306         diffseq: remove useless assignment to "best"
23307         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23308         assignment.  At that point "best" is already guaranteed to be zero.
23309
23310 2009-11-20  Eric Blake  <ebb9@byu.net>
23311
23312         build: mention ftp redirector in release announcements
23313         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23314         values that used to come from cfg.mk; mention FTP redirect URL.
23315         * build-aux/announce-gen: Mention the mirror list.
23316         Suggested by Karl Berry.
23317
23318         nanosleep: improve port to mingw
23319         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23321         LIB_NANOSLEEP, but only when needed.
23322         * modules/select (Link): Document LIBSOCKET.
23323         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23324         enough.
23325
23326         nanosleep: work around cygwin bug
23327         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23328         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23329         bug.
23330         (getnow): Delete, not needed.
23331         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23332         LIB_CLOCK_GETTIME.
23333         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23334         clock-time, gettime.
23335         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23336         bug.
23337         * modules/nanosleep-tests: New test.
23338         * tests/test-nanosleep.c: New file.
23339
23340         sleep: work around cygwin bug
23341         * lib/sleep.c (rpl_sleep): Work around the bug.
23342         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23343         (gl_PREREQ_SLEEP): Delete unused macro.
23344         * modules/sleep (Depends-on): Add verify.
23345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23346         * modules/unistd (Makefile.am): Substitute witness.
23347         * lib/unistd.in.h (sleep): Update prototype.
23348         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23349         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23350         * modules/sleep-tests (Depends-on): Check for alarm.
23351
23352 2009-11-20  Jim Meyering  <meyering@redhat.com>
23353
23354         maint.mk: improve sc_prohibit_magic_number_exit
23355         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23356         so it does not match uses like System.exit(1).
23357         Add comments showing how to correct all offenders.
23358
23359 2009-11-19  Eric Blake  <ebb9@byu.net>
23360
23361         xalloc-die-tests: add missing library
23362         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23363
23364         test-xvasprintf: silence compiler warnings
23365         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23366         empty string from gcc.
23367
23368 2009-11-19  Jim Meyering  <meyering@redhat.com>
23369
23370         xfreopen: new module, from coreutils
23371         * modules/xfreopen: New module.
23372         * lib/xfreopen.c: New file.
23373         * lib/xfreopen.h: New file.
23374         * MODULES.html.sh (File stream based Input/Output"): Add it.
23375
23376 2009-11-19  Eric Blake  <ebb9@byu.net>
23377
23378         manywarnings: depend on warnings
23379         * modules/manywarnings (Depends-on): Add warnings.
23380
23381         build: avoid compiler warnings
23382         * lib/select.c (rpl_select): Delete unused variable.
23383         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23384
23385 2009-11-18  Eric Blake  <ebb9@byu.net>
23386
23387         tests: avoid false negative with --with-packager
23388         * tests/test-version-etc.sh: Discard packager information.
23389         * tests/test-argp-version-etc-1.sh: Likewise.
23390         Reported by Mike Frysinger.
23391
23392         utimens: fix regression on Solaris
23393         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23394         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23395         can only change fd timestamps via futimesat.  Instead, use an
23396         additional witness macro to avoid BSD bug.
23397         Reported by Jim Meyering.
23398
23399 2009-11-17  Eric Blake  <ebb9@byu.net>
23400
23401         usleep: use it to simplify tests
23402         * modules/stat-time-tests (Depends-on): Add usleep.
23403         (configure.ac): Drop usleep check.
23404         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23405         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23406         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23407         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23408         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23409         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23410         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23411         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23412         Likewise.
23413         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23414         * tests/test-lchown.h (nap): Likewise.
23415         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23416         * tests/test-stat-time.c (nap): Likewise.
23417         * tests/test-utimens-common.h (nap): Update comments.
23418
23419         usleep: new module
23420         * modules/usleep: New file.
23421         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23422         * lib/usleep.c (usleep): Likewise.
23423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23424         * modules/unistd (Makefile.am): Substitute witnesses.
23425         * lib/unistd.in.h (usleep): Add declaration.
23426         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23427         * MODULES.html.sh (Date and time): Likewise.
23428         * modules/usleep-tests (Depends-on): New test.
23429         * tests/test-usleep.c: New file.
23430
23431         chown: work around OpenBSD bug
23432         * lib/chown.c (rpl_chown): Work around the bug.
23433         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23434         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23435         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23436         * modules/chown (Depends-on): Add stdbool.
23437         * modules/lchown (Depends-on): Likewise.
23438         * doc/posix-functions/chown.texi (chown): Document the bug.
23439         * doc/posix-functions/lchown.texi (lchown): Likewise.
23440         * tests/test-lchown.h (test_chown): Relax test.
23441
23442         mkstemp: avoid conflict with C++ keyword template
23443         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23444         * lib/mkostemp.c (mkostemp): Likewise.
23445         * lib/mkostemps.c (mkostemps): Likewise.
23446         * lib/mkstemp.c (mkstemp): Likewise.
23447         * lib/mkstemps.c (mkstemps): Likewise.
23448
23449         xalloc-die-tests: optimize
23450         * tests/test-xalloc-die.sh: Reduce number of processes.
23451
23452 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23453
23454         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23455         patch from ludo@gnu.org (Ludovic Courtès).
23456
23457 2009-11-17  Jim Meyering  <meyering@redhat.com>
23458
23459         version-etc: use proper license string
23460         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23461         * modules/version-etc-fsf: Likewise.
23462
23463 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23464
23465         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23466         printed to stdout.  Deal with EOL differences.
23467
23468 2009-11-17  Eric Blake  <ebb9@byu.net>
23469
23470         unsetenv: work around Solaris bug
23471         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23472         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23473         Reported by Jim Meyering.
23474
23475         vasnprintf: avoid compiler warnings
23476         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23477         variables.
23478         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23479
23480 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23481
23482         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23483         settings since xalloc-die is no longer the self test,
23484         xalloc-die.sh is.
23485
23486 2009-11-17  Jim Meyering  <meyering@redhat.com>
23487
23488         test-xalloc-die.sh: make the code agree with the commit log
23489         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23490         at the end, just in case you happen to have a test-xalloc-die
23491         program in some other PATH directory.
23492
23493         test-xalloc-die.sh: fix a portability bug
23494         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23495         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23496         Otherwise, argv[0] (as often seen in diagnostics) would be too
23497         system-dependent, sometimes with, and sometimes without the leading "./".
23498
23499         version-etc-fsf: relax license to LGPLv3+
23500         * modules/version-etc-fsf (License): Relax license.
23501
23502 2009-11-16  Eric Blake  <ebb9@byu.net>
23503
23504         xalloc-die-tests: avoid printing null pointer
23505         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23506         shell script.
23507         * tests/test-xalloc-die.c (program_name): Declare.
23508         * tests/test-xalloc-die.sh (tmpfiles): New file.
23509
23510         setenv, unsetenv: work around various bugs
23511         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23512         (setenv) [HAVE_SETENV]: Work around bugs.
23513         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23514         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23515         for bugs.
23516         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23517         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23519         * modules/stdlib (Makefile.am): Update substitutions.
23520         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23521         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23522         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23523         * modules/setenv-tests: New test.
23524         * modules/unsetenv-tests: Likewise.
23525         * tests/test-setenv.c: New file.
23526         * tests/test-unsetenv.c: Likewise.
23527
23528 2009-11-16  Jim Meyering  <meyering@redhat.com>
23529
23530         version-etc: relax license to LGPLv3+
23531         * modules/version-etc (License): Relax license.
23532
23533         better AC_REQUIRE expanded-before-required-warning avoidance
23534         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23535         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23536         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23537         which is no longer needed.
23538
23539 2009-11-16  Eric Blake  <ebb9@byu.net>
23540
23541         test-freading: clean up temporary file
23542         * tests/test-freading.c (main): Remove file on success, and use
23543         ASSERT more liberally.
23544         Reported by Jim Meyering.
23545
23546 2009-11-16  Jim Meyering  <meyering@redhat.com>
23547
23548         avoid new AC_REQUIRE expanded-before-required warnings
23549         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
23550         merely using it.
23551         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
23552         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
23553
23554 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23555
23556         * tests/test-xalloc-die.c: New file.
23557         * modules/xalloc-die-tests: New file.
23558         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
23559         XFAIL_TESTS so it can be appended by modules.
23560
23561 2009-11-15  Simon Josefsson  <simon@josefsson.org>
23562
23563         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
23564         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
23565
23566 2009-11-14  Eric Blake  <ebb9@byu.net>
23567
23568         fnmatch: avoid compiler warning
23569         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
23570         to silence compiler warning about mismatch signedness in ?:.
23571         Reported by Robert Millan.
23572
23573         intprops: add double-inclusion guard
23574         * lib/intprops.h: Allow idempotent includes.
23575         Suggested by Bruce Korb.
23576
23577         openat: detect Solaris fchownat bug
23578         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
23579         penalizing glibc chownat when only lchownat is broken.
23580         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
23581         trailing slash bugs.
23582         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
23583         * modules/openat-tests (Files): Include more files.
23584         (Depends-on): Add mgetgroups, sleep, stat-time.
23585         (configure.ac): Add additional checks.
23586         (Makefile.am): Build new test.
23587         * tests/test-fchownat.c: New file.
23588
23589         lchown: detect Solaris and FreeBSD bug
23590         * lib/lchown.c (rpl_lchown): Work around bug.
23591         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
23592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23593         * modules/unistd (Makefile.am): Populate it.
23594         * lib/unistd.in.h (lchown): Update declaration.
23595         * doc/posix-functions/lchown.texi (lchown): Document the bug.
23596         * modules/lchown-tests: New file.
23597         * tests/test-lchown.h (test_lchown): Likewise.
23598         * tests/test-lchown.c (main): Likewise.
23599
23600         chown: detect Solaris and FreeBSD bug
23601         * lib/chown.c (rpl_chown): Work around bug.
23602         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
23603         (gl_PREREQ_CHOWN): Delete.
23604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
23605         * modules/unistd (Makefile.am): Populate it.
23606         * lib/unistd.in.h (chown): Update declaration.
23607         * lib/lchown.c (chown): Update client.
23608         * modules/lchown (Depends-on): Add lstat.
23609         * doc/posix-functions/chown.texi (chown): Document the bug.
23610         * doc/posix-functions/getgroups.texi (getgroups): Document
23611         getgroups pitfall.
23612         * modules/chown-tests: New file.
23613         * tests/test-chown.h (test_chown): Likewise.
23614         * tests/test-chown.c (main): Likewise.
23615
23616 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
23617
23618         gnulib-tool: correctly detect absence of m4 directories
23619         * gnulib-tool: Avoid extra newline on data passed to wc -l.
23620
23621 2009-11-14  Jim Meyering  <meyering@redhat.com>
23622
23623         maint.mk: Prohibit inclusion of "xalloc.h" without use.
23624         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23625
23626 2009-11-14  John W. Eaton  <jwe@gnu.org>
23627
23628         strftime.h: wrap funtion declaration in extern "C" block
23629         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
23630
23631 2009-11-13  Eric Blake  <ebb9@byu.net>
23632
23633         getgroups: avoid compiler warning
23634         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
23635
23636         getgroups: work around FreeBSD bug
23637         * lib/getgroups.c (rpl_getgroups): Work around the bug.
23638         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
23639         * doc/posix-functions/getgroups.texi (getgroups): Document it.
23640         * tests/test-getgroups.c (main): Fix buffer overrun.
23641
23642         getgroups: avoid compilation failure
23643         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
23644         * modules/getgroups (Depends-on): Add stdint.
23645
23646 2009-11-13  Jim Meyering  <meyering@redhat.com>
23647
23648         test-getgroups: avoid compilation failure
23649         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
23650
23651 2009-11-13  Eric Blake  <ebb9@byu.net>
23652
23653         mgetgroups: new module, taken from coreutils
23654         * modules/mgetgroups: New file.
23655         * lib/mgetgroups.h: Likewise.
23656         * lib/mgetgroups.c (mgetgroups): Likewise.
23657         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
23658         * MODULES.html.sh (Users and groups): Mention it.
23659
23660         getgroups: don't expose GETGROUPS_T to user
23661         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
23662         an element at a time if GETGROUPS_T is wrong size.
23663         * lib/getugroups.h (getugroups): Change signature.
23664         * lib/unistd.in.h (getgroups): Likewise.
23665         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
23666         signature needs fixing.
23667         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
23668         AC_TYPE_GETGROUPS.
23669         * modules/group-member (Depends-on): Add getgroups.
23670         * lib/group-member.c (group_info, get_group_info): Use gid_t.
23671         (group_member): Rely on getgroups replacement.
23672         * lib/getugroups.c (getugroups): Use gid_t.
23673         * tests/test-getgroups.c (main): Likewise.
23674         * NEWS: Mention the signature change.
23675         * doc/posix-functions/getgroups.texi (getgroups): Mention the
23676         problem with signature.
23677         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
23678         GETGROUPS_T is still useful for setgroups.
23679
23680         getgroups, getugroups: provide stubs for mingw
23681         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
23682         * lib/getugroups.c (getugroups): Likewise.
23683         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
23684         function.  Modernize replacement scheme.
23685         (gl_PREREQ_GETGROUPS): Delete.
23686         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
23687         * modules/getgroups (configure.ac): Declare witness.
23688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23689         * modules/unistd (Depends-on): Substitute witness.
23690         * lib/unistd.in.h (getgroups): Declare replacement.
23691
23692         getgroups: avoid calling exit
23693         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
23694         drop xalloc.
23695         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
23696         dependencies.
23697         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
23698         exiting, in the rare case of malloc failure.
23699
23700         getgroups: fix logic error
23701         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
23702         has more than 20 groups.
23703         * modules/getgroups-tests: New test.
23704         * tests/test-getgroups.c: New file.
23705
23706 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23707
23708         * tests/test-base64.c: Improve.
23709
23710 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23711
23712         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
23713         Blake <ebb9@byu.net>.
23714
23715 2009-11-13  Simon Josefsson  <simon@josefsson.org>
23716
23717         * tests/test-xvasprintf.c: Add %s%s related checks.
23718
23719 2009-11-12  Eric Blake  <ebb9@byu.net>
23720
23721         version-etc: match standards.texi style
23722         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
23723         and use <> only for URLs.
23724
23725 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
23726
23727         fts: do not fail on a submount during traversal
23728         * lib/fts.c (fts_build): Read the stat info again after opening
23729         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
23730         Original report at http://bugzilla.redhat.com/501848.
23731
23732 2009-11-12  Jim Meyering  <meyering@redhat.com>
23733
23734         bootstrap: sync from coreutils
23735         * build-aux/bootstrap (bootstrap_epilogue): New function.
23736         Use git_modules_config in one more place.  This make bootstrap's
23737         --gnulib-srcdir option more useful for testing.
23738
23739         bootstrap: generalize autoheader check
23740         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
23741         AC_CONFIG_HEADERS.
23742
23743 2009-11-11  Eric Blake  <ebb9@byu.net>
23744
23745         mkfifoat: use new modules for Solaris and BSD bugs
23746         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
23747         * lib/mkfifoat.c (mknodat): Split...
23748         * lib/mknodat.c (mknodat): ...into new file.
23749         * modules/mkfifoat (Files): Ship new file.
23750         (Depends-on): Add mkfifo, mknod.
23751         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
23752         (Depends-on): Add symlink.
23753         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
23754         redundant with test_mkfifo.h.
23755         (do_mkfifoat, do_mknodat): New helpers.
23756
23757         mknod: new module
23758         * modules/mknod: New file.
23759         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
23760         * lib/mknod.c (mknod): Likewise.
23761         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23762         defaults.
23763         * modules/sys_stat (Makefile.am): Substitute them.
23764         * lib/sys_stat.in.h (mknod): Declare replacement.
23765         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23766         Document it.
23767         * doc/posix-functions/mknod.texi (mknod): Likewise.
23768         * modules/mknod-tests: New test.
23769         * tests/test-mknod.c: Likewise.
23770
23771         mkfifo: new module
23772         * modules/mkfifo: New file.
23773         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23774         * lib/mkfifo.c (mkfifo): Likewise.
23775         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
23776         defaults.
23777         * modules/sys_stat (Makefile.am): Substitute them.
23778         * lib/sys_stat.in.h (mkfifo): Declare replacement.
23779         * MODULES.html.sh (Support for systems lacking POSIX:2008):
23780         Document it.
23781         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
23782         * modules/mkfifo-tests: New test.
23783         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
23784         from test-mkfifoat.c.
23785         * tests/test-mkfifo.c: New file.
23786
23787         readlink: detect FreeBSD bug
23788         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
23789         slash on symlink.
23790         * doc/posix-functions/readlink.texi (readlink): Document the bug.
23791         * tests/test-readlink.h (test_readlink): Enhance test.
23792
23793         symlink: detect FreeBSD bug
23794         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
23795         slash on symlink.
23796         * doc/posix-functions/symlink.texi (symlink): Document the bug.
23797         * tests/test-symlink.h (test_symlink): Enhance test.
23798
23799 2009-11-10  Eric Blake  <ebb9@byu.net>
23800
23801         link: detect FreeBSD bug
23802         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
23803         symlink.
23804         * doc/posix-functions/link.texi (link): Document the bug.
23805         * tests/test-link.h (test_link): Enhance test.
23806         * tests/test-linkat.c (main): Update caller.
23807
23808         unlink, remove: detect FreeBSD bug
23809         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
23810         slash on symlink.
23811         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23812         * doc/posix-functions/remove.texi (remove): Likewise.
23813         * tests/test-unlink.h (test_unlink): Enhance test.
23814         * tests/test-remove.c (main): Likewise.
23815
23816 2009-11-09  Eric Blake  <ebb9@byu.net>
23817
23818         rename: detect FreeBSD bug
23819         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23820         slash on symlink.
23821         * modules/renameat-tests (Depends-on): Add filenamecat.
23822         * tests/test-rename.h (test_rename): Allow one more errno.
23823         * tests/test-renameat.c (main): Likewise.
23824         * doc/posix-functions/rename.texi (rename): Document the bug.
23825
23826         open: detect FreeBSD bug
23827         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23828         symlink.
23829         * doc/posix-functions/open.texi (open): Document the bug.
23830         * doc/posix-functions/utimes.texi (utimes): Likewise.
23831         * tests/test-open.h (test_open): Add parameters, and test symlink
23832         handling.
23833         * tests/test-open.c (main): Adjust caller.
23834         * tests/test-fcntl-safer.c (main): Likewise.
23835         * modules/open-tests (Depends-on): Add stdbool, symlink.
23836         * modules/fcntl-safer-tests (Depends-on): Likewise.
23837         * tests/test-openat.c (main): Add test-open tests.
23838
23839         stat: detect FreeBSD bug
23840         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23841         symlink.
23842         * doc/posix-functions/stat.texi (stat): Document the bug.
23843         * tests/test-stat.h (test_stat_func): Add argument.
23844         * tests/test-stat.c (main): Adjust caller.
23845         * tests/test-fstatat.c (main): Likewise.
23846         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23847         Reported by Jim Meyering.
23848
23849 2009-11-09  James Youngman  <jay@gnu.org>
23850
23851         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23852         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23853
23854 2009-11-08  Jim Meyering  <meyering@redhat.com>
23855
23856         utimens: remove invalid futimesat call
23857         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23858         It used the file descriptor of the target file as the DIR_FD
23859         parameter and NULL as the file name.  That caused failure with
23860         errno == EFAULT on FreeBSD-8.0-rc2
23861
23862 2009-11-07  Eric Blake  <ebb9@byu.net>
23863
23864         fflush, freadseek: use fseeko, not fseek
23865         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23866         (clear_ungetc_buffer): Avoid potential problems on large files.
23867         * lib/freadseek.c (freadseek): Likewise.
23868         * modules/freadseek (Depends-on): Add fseeko.
23869         * modules/fseek (configure.ac): Set a witness.
23870         * tests/test-fflush.c (main): Use fseeko.
23871         * tests/test-fpurge.c (fseek): Disable link warning.
23872         * tests/test-freadable.c (fseek): Likewise.
23873         * tests/test-freading.c (fseek): Likewise.
23874         * tests/test-fseeko.c (fseek): Likewise.
23875         * tests/test-ftell.c (fseek): Likewise.
23876         * tests/test-ftello.c (fseek): Likewise.
23877         * tests/test-fwritable.c (fseek): Likewise.
23878         * tests/test-fwriting.c (fseek): Likewise.
23879
23880 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23881
23882         * modules/memchr (Depends-on): Drop getpagesize dependency.
23883
23884 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23885
23886         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23887         Reported by Ludovic Courtès.
23888         * build-aux/pmccabe2html: Improve example usage.
23889         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23890
23891 2009-11-06  Jim Meyering  <meyering@redhat.com>
23892
23893         do-release-commit-and-tag: New module.
23894         Automate the release-commit and tag process.
23895         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23896         * modules/do-release-commit-and-tag: New file.
23897         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23898
23899 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23900
23901         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23902         because test-select.c uses inet_pton.
23903
23904 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23905
23906         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23907         GETADDRINFO_LIB.  Bump serial number.
23908         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23909         Suggested by Eric Blake <ebb9@byu.net>.
23910
23911 2009-11-05  Eric Blake  <ebb9@byu.net>
23912
23913         strtod: detect darwin bug
23914         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23915         Reported by Leo Davis.
23916
23917         freopen-safer: new module
23918         * modules/freopen-safer: New module.
23919         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23920         * lib/freopen-safer.c (freopen_safer): New file.
23921         * lib/stdio-safer.h (freopen_safer): New declaration.
23922         * lib/stdio--.h (freopen): New override.
23923         * MODULES.html.sh (File stream based Input/Output): Mention it.
23924         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23925         freopen-safer module.
23926         * doc/posix-functions/stderr.texi (stderr): Likewise.
23927         * doc/posix-functions/stdin.texi (stdin): Likewise.
23928         * doc/posix-functions/stdout.texi (stdout): Likewise.
23929         * modules/freopen-safer-tests: New test.
23930         * tests/test-reopen-safer.c: New file.
23931
23932 2009-11-05  Jim Meyering  <meyering@redhat.com>
23933
23934         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23935         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23936
23937 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23938
23939         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23940
23941 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23942
23943         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23944
23945 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23946
23947         Fix link error.
23948         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23949         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23950
23951 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23952
23953         * tests/test-func.c: Also test value of __func__.
23954
23955 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23956
23957         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23958         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23959
23960 2009-11-05  Bruno Haible  <bruno@clisp.org>
23961
23962         Fix link error.
23963         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23964         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23965         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23966
23967 2009-11-05  Bruno Haible  <bruno@clisp.org>
23968
23969         Tests for module 'inet_pton'.
23970         * modules/inet_pton-tests: New file.
23971         * tests/test-inet_pton.c: New file.
23972
23973 2009-11-05  Bruno Haible  <bruno@clisp.org>
23974
23975         Tests for module 'inet_ntop'.
23976         * modules/inet_ntop-tests: New file.
23977         * tests/test-inet_ntop.c: New file.
23978
23979 2009-11-04  Eric Blake  <ebb9@byu.net>
23980
23981         stdlib-safer: wrap all mkstemp variants
23982         * modules/mkostemp (configure.ac): Set witness.
23983         * modules/mkostemps (configure.ac): Likewise.
23984         * modules/mkstemps (configure.ac): Likewise.
23985         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23986         (mkstemps_safer): Wrap more functions.
23987         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23988         wrapping.
23989         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23990         (mkstemps_safer): Implement the wrappers.
23991
23992         mkstemps, mkostemps: new modules
23993         * modules/mkostemps: New module.
23994         * modules/mkstemps: Likewise.
23995         * lib/mkostemps.c (mkostemps): New file.
23996         * lib/mkstemps.c (mkstemps): Likewise.
23997         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23998         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24000         * modules/stdlib (Makefile.am): Substitute them.
24001         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24002         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24003         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24004         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24005         * MODULES.html.sh (File system functions): Mention them.
24006
24007         tempname: resync from glibc
24008         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24009         same values for __GT_FILE as glibc.  Abort even when assertions
24010         are disabled.
24011         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24012         match its value otherwise.  Allow idempotent inclusion.
24013         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24014         * lib/mkostemp.c (mkostemp): Likewise.
24015         * lib/mkstemp.c (mkstemp): Likewise.
24016         * lib/tmpfile.c (tmpfile): Likewise.
24017         * NEWS: Document this.
24018
24019         utimens: fix use of futimens on older Linux
24020         * lib/utimens.c (fdutimens): Use updated, rather than original,
24021         timespec to avoid bug in older Linux kernel.
24022         Reported by Simon Josefsson.
24023
24024 2009-11-04  Bruno Haible  <bruno@clisp.org>
24025
24026         Make num_processors more flexible and consistent.
24027         * lib/nproc.h (enum nproc_query): New type.
24028         (num_processors): Add a 'query' argument.
24029         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24030         (num_processors): Add a 'query' argument. Test the value of the
24031         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24032         mingw, count the number of CPUs available for the current process.
24033         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24034         Check for sched_getaffinity and sched_getaffinity_np.
24035         * modules/nproc (Depends-on): Add c-ctype, extensions.
24036         * NEWS: Mention the change.
24037
24038 2009-11-03  Bruno Haible  <bruno@clisp.org>
24039
24040         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24041
24042 2009-11-03  Jim Meyering  <meyering@redhat.com>
24043
24044         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24045         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24046         if it is defined.
24047
24048 2009-11-02  Eric Blake  <ebb9@byu.net>
24049
24050         mktime, timegm: share common declaration
24051         * lib/mktime-internal.h: New file.
24052         * lib/mktime.c: Use it rather than open-coding a declaration.
24053         * lib/timegm.c: Likewise.
24054         * modules/mktime (Files): Ship it.
24055         * modules/timegm (Files): Likewise.
24056         Suggested by Bruno Haible.
24057
24058         test-update-copyright: update test to match script changes
24059         * tests/test-update-copyright.sh: Avoid hard-coding perl
24060         location.  Don't update *.bak created by earlier runs.
24061
24062 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24063             Simon Josefsson  <simon@josefsson.org>
24064             Bruno Haible  <bruno@clisp.org>
24065
24066         Fix link error on Solaris 8.
24067         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24068         also in libnsl. Define also INET_PTON_LIB.
24069         * modules/inet_pton (Link): New section.
24070
24071 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24072             Bruno Haible  <bruno@clisp.org>
24073
24074         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24075         * modules/inet_ntop (Link): New section.
24076         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24077
24078 2009-11-02  Eric Blake  <ebb9@byu.net>
24079
24080         maint: avoid compiler warnings in m4 macros
24081         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24082         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24083
24084 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24085
24086         * m4/pmccabe2html.m4: Remove file.
24087         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24088         function.  Change maintainer.
24089         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24090         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24091         Courtès).
24092
24093 2009-10-31  Eric Blake  <ebb9@byu.net>
24094
24095         fseeko: fix m4 regression
24096         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24097         regression from 2009-10-27.
24098         Reported by Ralf Wildenhues.
24099
24100 2009-10-31  Jim Meyering  <meyering@redhat.com>
24101
24102         inttostr: aesthetics and improved (compile-time) safety
24103         Define inttype_is_signed rather than inttype_is_unsigned,
24104         since the sole use is via "#if inttype_is_signed".
24105         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24106         inttype_is_unsigned.
24107         * lib/offtostr.c (inttype_is_signed): Likewise.
24108         * lib/uinttostr.c (inttype_is_signed): Likewise.
24109         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24110         * lib/inttostr.c (inttostr): Use verify to cross-check the
24111         inttype_is_signed value and the signedness of the actual type.
24112         * modules/inttostr (Depends-on): Add verify.
24113
24114 2009-10-30  Eric Blake  <ebb9@byu.net>
24115
24116         build: avoid compiler warnings
24117         * lib/fchmodat.c (lchmod): Mark unused variables.
24118         * lib/getopt.c (_getopt_initialize): Likewise.
24119         * lib/mktime.c (__mktime_internal): Provide prototype.
24120         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24121         older gcc that do not understand #pragma GCC diagnostic.
24122         * lib/uinttostr.c (inttype_is_unsigned): Define.
24123         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24124
24125 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24126
24127         stat: fix compilation on AIX
24128         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24129         only see struct stat64.
24130
24131 2009-10-30  Eric Blake  <ebb9@byu.net>
24132
24133         exclude: make more robust
24134         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24135         rather than masking a coding bug.
24136         Suggested by Bruno Haible.
24137
24138 2009-10-30  Jim Meyering  <meyering@redhat.com>
24139
24140         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24141         Rather than putting #!/usr/bin/perl on the first line,
24142         start with a variant of what's recommended by "man perlrun" that
24143         invokes the first "perl" program from your shell's search path.
24144         * build-aux/gitlog-to-changelog: Replace #!... as above.
24145         Add a "Local Variables" perl mode setting.
24146         Prompted by a patch from Ludovic Courtès.
24147         Improved by Eric Blake.
24148         * build-aux/useless-if-before-free: Likewise.
24149         * build-aux/announce-gen: Likewise.
24150         * build-aux/update-copyright: Likewise.
24151
24152 2009-10-29  Eric Blake  <ebb9@byu.net>
24153
24154         filenamecat-lgpl: adjust clients
24155         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24156         filenamecat.
24157         * modules/renameat (Depends-on): Likewise.
24158
24159         filenamecat: split into filenamecat-lgpl
24160         * modules/filenamecat-lgpl: New module.
24161         * modules/filenamecat (Files): Move library-safe files into
24162         filenamecat-lgpl.
24163         (Depends-on): Add filenamecat-lgpl.
24164         (configure.ac): Declare witness.
24165         * lib/filenamecat.h (file_name_concat): Only declare when using
24166         GPL module.
24167         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24168         Move...
24169         * lib/filenamecat-lgpl.c: ...into new file.
24170         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24171         (gl_FILE_NAME_CONCAT): Use it.
24172         * MODULES.html.sh (File system functions): Mention new module.
24173
24174         argp: avoid memory leak
24175         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24176         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24177         base_name, since the latter malloc()s and can call exit().
24178         Leak introduced 2006-07-03.
24179
24180         dirname-lgpl: adjust clients that don't need full dirname
24181         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24182         * modules/filenamecat (Depends-on): Likewise.
24183         * modules/linkat (Depends-on): Likewise.
24184         * modules/mkancesdirs (Depends-on): Likewise.
24185         * modules/mkdir (Depends-on): Likewise.
24186         * modules/openat (Depends-on): Likewise.
24187         * modules/savewd (Depends-on): Likewise.
24188         * modules/rename (Depends-on): Likewise.
24189         (License): Relax license.
24190         * modules/mkdir-tests (Depends-on): Drop progname.
24191         (Makefile.am): Delete unneeded LDADD.
24192         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24193
24194         dirname: split into dirname-lgpl
24195         * modules/dirname-lgpl: New module.
24196         * modules/dirname (Files): Move library-safe files into
24197         dirname-lgpl.
24198         (Depends-on): Add dirname-lgpl.
24199         (configure.ac): Declare witness.
24200         * modules/double-slash-root (License): Relax license.
24201         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24202         module.
24203         * lib/dirname.c (dir_len, mdir_name): Move...
24204         * lib/dirname-lgpl.c: ...into new file.
24205         * lib/basename.c (last_component, base_len): Move...
24206         * lib/basename-lgpl.c: ...into new file.
24207         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24208         (gl_DIRNAME): Use it.
24209         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24210         Mention new module.
24211         * modules/dirname-tests (Depends-on): Add progname.
24212         * tests/test-dirname.c (program_name): Delete.
24213
24214         mkdir: make safe for libraries
24215         * modules/mkdir (Depends-on): Drop xalloc.
24216         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24217         exit.
24218
24219         tests: avoid some compiler warnings
24220         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24221         literals.
24222         * tests/test-memchr.c (main): Avoid type mismatch.
24223         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24224         * tests/test-base64.c (main): Likewise.
24225         * tests/test-getdelim.c (main): Likewise.
24226         * tests/test-gethostname.c (main): Likewise.
24227         * tests/test-getline.c (main): Likewise.
24228         * tests/test-netinet_in.c (main): Likewise.
24229         * tests/test-select.c (open_server_socket, main): Likewise.
24230         * tests/test-select-stdin.c (main): Likewise.
24231         * tests/test-sockets.c (main): Likewise.
24232         * tests/test-strsignal.c (main): Likewise.
24233         * tests/test-sys_select.c (main): Likewise.
24234         * tests/test-sys_socket.c (main): Likewise.
24235         * tests/test-u64.c (main): Likewise.
24236         * tests/test-xfprintf-posix.c (main): Likewise.
24237         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24238
24239         sockets: avoid compiler warning
24240         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24241
24242         maint: detect usage(1) and other suspicious exits
24243         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24244
24245 2009-10-29  Jim Meyering  <meyering@redhat.com>
24246
24247         timespec: long-to-int truncation could make timespec_cmp malfunction
24248         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24249         a multiple of 2^32 nanoseconds as no difference.
24250
24251 2009-10-28  Jim Meyering  <meyering@redhat.com>
24252
24253         fprintftime: wrap macro code argument in "do {...} while(0)"
24254         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24255         cpy macro must be a statement that can be followed by a semicolon.
24256         Now that the else clause contains a comment and is hence longer
24257         than one line, I require curly braces.  That in turn requires
24258         that we wrap this code block in the standard do...while(0).
24259
24260         fprintftime: remove stray semicolon from previous change
24261         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24262
24263         fprintftime: avoid a warning about ignored fwrite return value
24264         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24265         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24266         that is unsafe.
24267         * modules/fprintftime (Depends-on): Add ignore-value.
24268
24269         exclude: avoid an unwarranted warning
24270         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24271
24272 2009-10-27  Eric Blake  <ebb9@byu.net>
24273
24274         fseek: avoid compilation failure when fflush is replaced
24275         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24276         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24277         module is in use.
24278         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24279         module is not in use; since REPLACE_FSEEK worked otherwise.
24280         (GNULIB_FTELLO): Likewise for ftell.
24281         Reported by Ian Beckwith and others.
24282
24283 2009-10-27  Bruno Haible  <bruno@clisp.org>
24284
24285         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24286         Reported by Jim Meyering.
24287
24288 2009-10-27  Jim Meyering  <jim@meyering.net>
24289             Bruno Haible  <bruno@clisp.org>
24290
24291         Avoid warning despite dropping the return value of fwrite.
24292         * lib/unicodeio.c: Include ignore-value.h.
24293         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24294         * modules/unicodeio (Depends-on): Add ignore-value.
24295
24296 2009-10-26  Eric Blake  <ebb9@byu.net>
24297
24298         areadlinkat: fix fallback path
24299         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24300         pointer and zero.
24301
24302 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24303
24304         Use a better IO block size for modern systems
24305         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24306         * lib/md2.c: Likewise.
24307         * lib/md4.c: Likewise.
24308         * lib/md5.c: Likewise.
24309         * lib/sha1.c: Likewise.
24310         * lib/sha256.c: Likewise.
24311         * lib/sha512.c: Likewise.
24312
24313 2009-10-22  Eric Blake  <ebb9@byu.net>
24314
24315         tests: avoid several compiler warnings
24316         * tests/test-getcwd.c (main): Avoid buffer underflow.
24317         * tests/test-getdate.c (main): String literals are not safe with
24318         putenv, so use setenv.  Declare unused argument.
24319         * modules/getdate-tests (Depends-on): Add setenv.
24320         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24321         problems with string literals in char *.
24322         * tests/test-hash.c (main): Avoid shadowing declaration.
24323         (insert_new): Treat string literals as char const *.
24324         * tests/test-getopt.h (test_getopt): Likewise.
24325         (getopt_loop): Alter types to minimize casting elsewhere.
24326         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24327         (test_getopt_long_posix): Likewise.
24328         (do_getopt_long): Add wrapper to minimize casting.
24329         * tests/test-atexit.c (clear_temp_file): Use void.
24330         * tests/test-areadlink-with-size.c (main): Declare unused
24331         arguments.
24332         * tests/test-areadlink.c (main): Likewise.
24333         * tests/test-areadlinkat-with-size.c (main): Likewise.
24334         * tests/test-areadlinkat.c (main): Likewise.
24335         * tests/test-canonicalize-lgpl.c (main): Likewise.
24336         * tests/test-canonicalize.c (main): Likewise.
24337         * tests/test-dirent-safer.c (main): Likewise.
24338         * tests/test-dirname.c (main): Likewise.
24339         * tests/test-dup2.c (main): Likewise.
24340         * tests/test-fchdir.c (main): Likewise.
24341         * tests/test-fcntl-h.c (main): Likewise.
24342         * tests/test-fcntl-safer.c (main): Likewise.
24343         * tests/test-fdopendir.c (main): Likewise.
24344         * tests/test-fdutimensat.c (main): Likewise.
24345         * tests/test-fflush.c (main): Likewise.
24346         * tests/test-filenamecat.c (main): Likewise.
24347         * tests/test-filevercmp.c (main): Likewise.
24348         * tests/test-fopen-safer.c (main): Likewise.
24349         * tests/test-fopen.c (main): Likewise.
24350         * tests/test-fpending.c (main): Likewise.
24351         * tests/test-fpurge.c (main): Likewise.
24352         * tests/test-freading.c (main): Likewise.
24353         * tests/test-fstatat.c (main): Likewise.
24354         * tests/test-fsync.c (main): Likewise.
24355         * tests/test-futimens.c (main): Likewise.
24356         * tests/test-getndelim2.c (main): Likewise.
24357         * tests/test-gettimeofday.c (main): Likewise.
24358         * tests/test-getopt.c (main): Likewise.
24359         * tests/test-i-ring.c (main): Likewise.
24360         * tests/test-inttypes.c (main): Likewise.
24361         * tests/test-link.c (main): Likewise.
24362         * tests/test-lstat.c (main): Likewise.
24363         * tests/test-math.c (main): Likewise.
24364         * tests/test-md5.c (main): Likewise.
24365         * tests/test-memchr2.c (main): Likewise.
24366         * tests/test-memrchr.c (main): Likewise.
24367         * tests/test-mkdir.c (main): Likewise.
24368         * tests/test-mkdirat.c (main): Likewise.
24369         * tests/test-mkfifoat.c (main): Likewise.
24370         * tests/test-open.c (main): Likewise.
24371         * tests/test-openat-safer.c (main): Likewise.
24372         * tests/test-openat.c (main): Likewise.
24373         * tests/test-quotearg.c (main): Likewise.
24374         * tests/test-rawmemchr.c (main): Likewise.
24375         * tests/test-readlink.c (main): Likewise.
24376         * tests/test-remove.c (main): Likewise.
24377         * tests/test-rename.c (main): Likewise.
24378         * tests/test-renameat.c (main): Likewise.
24379         * tests/test-rmdir.c (main): Likewise.
24380         * tests/test-sha1.c (main): Likewise.
24381         * tests/test-signal.c (main): Likewise.
24382         * tests/test-sigaction.c (main): Likewise.
24383         * tests/test-stat.c (main): Likewise.
24384         * tests/test-stat-time.c (main): Likewise.
24385         * tests/test-stddef.c (main): Likewise.
24386         * tests/test-stdint.c (main): Likewise.
24387         * tests/test-stdio.c (main): Likewise.
24388         * tests/test-stdlib.c (main): Likewise.
24389         * tests/test-strchrnul.c (main): Likewise.
24390         * tests/test-strerror.c (main): Likewise.
24391         * tests/test-string.c (main): Likewise.
24392         * tests/test-strtod.c (main): Likewise.
24393         * tests/test-strverscmp.c (main): Likewise.
24394         * tests/test-symlink.c (main): Likewise.
24395         * tests/test-symlinkat.c (main): Likewise.
24396         * tests/test-sys_stat.c (main): Likewise.
24397         * tests/test-sys_time.c (main): Likewise.
24398         * tests/test-time.c (main): Likewise.
24399         * tests/test-unistd.c (main): Likewise.
24400         * tests/test-unlink.c (main): Likewise.
24401         * tests/test-unlinkat.c (main): Likewise.
24402         * tests/test-utimens.c (main): Likewise.
24403         * tests/test-utimensat.c (main): Likewise.
24404         * tests/test-version-etc.c (main): Likewise.
24405         * tests/test-wchar.c (main): Likewise.
24406         * tests/test-wctype.c (main): Likewise.
24407         * tests/test-xprintf-posix.c (main): Likewise.
24408         * tests/test-posixtm.c (main): Likewise.
24409         (STREQ): Delete unused macro.
24410         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24411         shadowed variables.
24412         * tests/test-memchr.c (main): Likewise.
24413
24414 2009-10-21  Eric Blake  <ebb9@byu.net>
24415
24416         areadlinkat: avoid failure on older glibc
24417         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24418         rather than mis-comparing 0 against FUNC_RESULT of char*.
24419
24420 2009-10-21  Bruno Haible  <bruno@clisp.org>
24421
24422         * modules/stpncpy (License): Relicense under LGPLv2+.
24423         Reported by David Lutterkort <lutter@redhat.com>.
24424
24425 2009-10-20  Eric Blake  <ebb9@byu.net>
24426
24427         utimensat: work around Solaris 9 bug
24428         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24429         has trailing slash bugs.
24430         * tests/test-lutimens.h (test_lutimens): Enhance test.
24431         * tests/test-utimens.h (test_utimens): Likewise.
24432         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24433         * doc/posix-functions/utimes.texi (utimes): Likewise.
24434         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24435         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24436         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24437         * doc/posix-functions/futimens.texi (futimens): Likewise.
24438
24439         fdutimensat: new module
24440         * modules/fdutimensat: New file.
24441         * lib/fdutimensat.c (fdutimensat): Likewise.
24442         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24443         * MODULES.html.sh (File system functions): Mention module.
24444         * modules/fdutimensat-tests: New test.
24445         * tests/test-fdutimensat.c: Likewise.
24446
24447         doc: regenerate INSTALL
24448         * doc/INSTALL: Reflect recent autoconf update.
24449         * doc/INSTALL.ISO: Likewise.
24450         * doc/INSTALL.UTF-8: Likewise.
24451
24452 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24453
24454         acl: warn if ACL support is not detected
24455         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24456
24457 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24458
24459         * lib/nproc.h: Add extern "C" block for C++.
24460
24461 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24462             Bruno Haible  <bruno@clisp.org>
24463
24464         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24465         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24466         * doc/posix-functions/isalpha.texi: Likewise.
24467         * doc/posix-functions/isblank.texi: Likewise.
24468         * doc/posix-functions/iscntrl.texi: Likewise.
24469         * doc/posix-functions/isdigit.texi: Likewise.
24470         * doc/posix-functions/isgraph.texi: Likewise.
24471         * doc/posix-functions/islower.texi: Likewise.
24472         * doc/posix-functions/isprint.texi: Likewise.
24473         * doc/posix-functions/ispunct.texi: Likewise.
24474         * doc/posix-functions/isspace.texi: Likewise.
24475         * doc/posix-functions/isupper.texi: Likewise.
24476         * doc/posix-functions/isxdigit.texi: Likewise.
24477
24478 2009-10-18  Bruno Haible  <bruno@clisp.org>
24479
24480         Tests for module 'isblank'.
24481         * modules/isblank-tests: New file.
24482         * tests/test-isblank.c: New file.
24483
24484         New module 'isblank'.
24485         * lib/isblank.c: New file.
24486         * m4/isblank.m4: New file.
24487         * modules/isblank: New file.
24488         * doc/posix-functions/isblank.texi: Mention the new module.
24489
24490 2009-10-18  Bruno Haible  <bruno@clisp.org>
24491
24492         New module 'ctype'.
24493         * lib/ctype.in.h: New file.
24494         * m4/ctype.m4: New file.
24495         * modules/ctype: New file.
24496         * doc/posix-headers/ctype.texi: Mention the new module.
24497
24498 2009-10-18  Jim Meyering  <meyering@redhat.com>
24499
24500         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24501         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24502         right after its initialization, rather than farther down.
24503         Keeping these in close proximity makes it easier to ensure
24504         that each such variable is initialized.  E.g.,
24505
24506             LIB_CLOCK_GETTIME=
24507             AC_SUBST([LIB_CLOCK_GETTIME])
24508
24509         This change also increments these serial numbers.
24510         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24511         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24512         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24513
24514 2009-10-18  Bruno Haible  <bruno@clisp.org>
24515
24516         Don't let environment variables perturb build.
24517         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24518         (gl_PREREQ_GETHRXTIME): ... not here.
24519
24520 2009-10-18  Bruno Haible  <bruno@clisp.org>
24521
24522         Avoid symlink attack in localcharset module.
24523         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24524         (O_NOFOLLOW): Define fallback.
24525         (get_charset_aliases): Don't open the file if it is a symbolic link.
24526         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24527         gl_FCNTL_H.
24528         (gl_FCNTL_H): Require it.
24529         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24530         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24531         Reported by Fergal Glynn <fglynn@veracode.com>.
24532
24533 2009-10-18  Bruno Haible  <bruno@clisp.org>
24534
24535         Implement nproc for mingw.
24536         * lib/nproc.c: Include <windows.h>
24537         (num_processors): On native Windows platforms, try GetSystemInfo.
24538
24539 2009-10-18  Bruno Haible  <bruno@clisp.org>
24540
24541         Implement nproc for IRIX.
24542         * lib/nproc.c: Include <sys/sysmp.h>.
24543         (num_processors): On IRIX systems, try sysmp.
24544         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
24545
24546 2009-10-18  Bruno Haible  <bruno@clisp.org>
24547
24548         Implement nproc for HP-UX.
24549         * lib/nproc.c: Include <sys/pstat.h>
24550         (num_processors): On HP-UX systems, try pstat_getdynamic.
24551         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
24552         pstat_getdynamic.
24553
24554 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
24555             Bruno Haible  <bruno@clisp.org>
24556
24557         Implement nproc for NetBSD, OpenBSD.
24558         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
24559         (ARRAY_SIZE): New macro.
24560         (num_processors): On BSD systems, try sysctl of HW_NCPU.
24561         * m4/nproc.m4: New file.
24562         * modules/nproc (Files): Add m4/nproc.m4.
24563         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
24564         (Makefile.am): Instead, augment lib_SOURCES.
24565
24566 2009-10-18  Bruno Haible  <bruno@clisp.org>
24567
24568         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
24569         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
24570         sys/param.h.
24571
24572 2009-10-16  Eric Blake  <ebb9@byu.net>
24573
24574         utimensat: new module
24575         * modules/utimensat: New file.
24576         * lib/utimensat.c (utimensat): Likewise.
24577         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24578         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
24579         so we can work around Linux bugs.
24580         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24581         * modules/sys_stat (Makefile.am): Substitute them.
24582         * lib/sys_stat.in.h (utimensat): Declare it.
24583         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24584         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24585         * modules/utimensat-tests: New test.
24586         * tests/test-utimensat.c: Likewise.
24587
24588         utimens: let lutimens work on non-symlinks
24589         * lib/utimens.c (lutimens): Fall back to utimens rather than
24590         failing with ENOSYS, when file is not a symlink.
24591         (utimens): Reduce redirection.
24592         * tests/test-lutimens.h (test_lutimens): Update test to cover
24593         non-symlinks.
24594         * tests/test-utimens.h (test_utimens): Update test to cover
24595         symlinks.
24596         * tests/test-utimens.c (main): Update caller.
24597
24598         utimens: cache whether utimensat syscall works
24599         * lib/utimens.c (utimensat_works_really): New cache variable.
24600         (fdutimens, lutimens): Use it to avoid failing syscall.
24601
24602         test-stat-time, test-utimens: improve portability
24603         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
24604         ext4 on alpha, and for cygwin.
24605         * tests/test-utimens-common.h: New file.
24606         (nap): Factor delays into single function.
24607         * tests/test-lutimens.h (test_lutimens): Use new header.
24608         * tests/test-futimens.h (test_futimens): Likewise.
24609         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
24610         timestamps to occur from same machine, as was done previously for
24611         test_utimens.
24612         * modules/utimens-tests (Files): Ship new file.
24613         * modules/futimens-tests (Files): Likewise.
24614         Reported in part by Jim Meyering.
24615
24616         sys_stat: sort replacement declarations
24617         * lib/sys_stat.in.h: Sort declarations.
24618         * lib/futimens.c (futimens): Fix typo.
24619
24620 2009-10-15  Jim Meyering  <meyering@redhat.com>
24621
24622         don't let environment settings perturb build
24623         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
24624         could cause a configure-time and/or build-time malfunction.
24625         Typically, a configure-time function-in-library test is performed
24626         via code like this:
24627
24628           LIB_VAR=
24629           AC_SUBST([LIB_VAR])
24630           prefix_saved_LIBS=$LIBS
24631             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
24632                        [test "$ac_cv_search_FUNC" = "none required" ||
24633                         LIB_VAR=$ac_cv_search_FUNC])
24634           LIBS=$prefix_saved_LIBS
24635
24636         However, in each of the files affected by this change, the LIB_VAR=
24637         initialization was omitted.  Thus, when set in the environment, its
24638         value would propagate into generated Makefiles when FUNC is not found
24639         in LIB_NAME.
24640         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
24641         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24643
24644 2009-10-14  Eric Blake  <ebb9@byu.net>
24645
24646         fchdir: avoid infinite recursion in mingw
24647         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
24648         recursing.
24649
24650         test-stat-time: port to mingw
24651         * tests/test-stat-time.c (force_unlink): Return a value.
24652         (test_ctime) [W32]: Fix compilation error.
24653         (nap): Don't call usleep with too large an argument.  Use
24654         force_unlink.
24655         * doc/pastposix-functions/usleep.texi (usleep): Document the
24656         portability issue.
24657
24658 2009-10-13  Jim Meyering  <meyering@redhat.com>
24659
24660         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
24661         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
24662         * modules/pipe-filter-ii: Likewise.
24663         * modules/sys_socket-tests: Likewise.
24664         * modules/tsearch-tests: Likewise.
24665         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
24666         (check): Depend on it.
24667
24668 2009-10-12  Eric Blake  <ebb9@byu.net>
24669
24670         utimens-tests: port to NFS file systems
24671         * tests/test-utimens.h (test_utimens): Refactor utimecmp
24672         comparisons to avoid spurious failures from timestamp drift
24673         between NFS machines.
24674
24675 2009-10-12  Eric Blake  <ebb9@byu.net>
24676
24677         stat-time-tests: minor cleanups
24678         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
24679         * tests/test-stat-time.c (nap): Separate assignment from call.
24680         Suggested by Paolo Bonzini and Bruno Haible.
24681
24682         sys_stat: guarantee struct timespec
24683         * lib/sys_stat.in.h (includes): Always include <time.h>
24684         * modules/sys_stat (Depends-on): Add time.
24685         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
24686         mode_t permission values.
24687         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
24688         get at subsecond timestamps.
24689
24690 2009-10-10  Eric Blake  <ebb9@byu.net>
24691
24692         futimens: new module
24693         * modules/futimens: New file.
24694         * lib/futimens.c (futimens): Likewise.
24695         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
24696         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
24697         we can work around Linux bugs.
24698         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24699         * modules/sys_stat (Makefile.am): Substitute them.
24700         * lib/sys_stat.in.h (futimens): Declare it.
24701         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24702         * doc/posix-functions/futimens.texi (futimens): Likewise.
24703         * modules/futimens-tests: New test.
24704         * tests/test-futimens.c: Likewise.
24705
24706         utimens: introduce fdutimens
24707         * lib/utimens.h (fdutimens): New prototype.
24708         * lib/utimens.c (gl_futimens): Move guts...
24709         (fdutimens): ...to new interface.
24710         * tests/test-utimens.c (do_fdutimens): Use it.
24711
24712         utimens: add UTIME_NOW and UTIME_OMIT support
24713         * lib/utimens.c (validate_timespec, update_timespec): New helper
24714         functions.
24715         (gl_futimens, lutimens): Use them.
24716         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
24717         stdbool, sys_stat.
24718         (Link): Mention resulting library dependency.
24719         * modules/utimecmp (Link): Likewise.
24720         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
24721         (Makefile.am): Pick up library dependency.
24722         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
24723         definition.
24724         * tests/test-sys_stat.c: Test the definitions.
24725         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
24726         * NEWS: Document library dependency.
24727
24728         utimecmp: support symlink timestamps
24729         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
24730         hashing when possible.  Use pathconf when available.
24731         (SYSCALL_RESOLUTION): Recognize tighter resolution.
24732         * modules/utimecmp (Depends-on): Add lstat.
24733
24734         utimens: add lutimens interface
24735         * lib/utimens.c (lutimens): New function.
24736         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
24737         * lib/utimens.h (lutimens): Declare new interface.
24738         * tests/test-utimens.c (main): Enhance test.
24739         * tests/test-lutimens.h (test_lutimens): New file.
24740         * modules/utimens-tests (Files): Distribute it.
24741         (Depends-on): Add symlink.
24742         (configure.ac): Check for usleep.
24743
24744         utimens: validate futimens usage
24745         * lib/utimens.c (gl_futimens): Require valid fd up front, using
24746         fewer syscalls on failure later on.  Avoid compiler warning on
24747         mingw.
24748         * modules/utimens (Depends-on): Add dup2.
24749
24750         utimens: add test
24751         * modules/utimens-tests: New test.
24752         * tests/test-utimens.h: New file.
24753         * tests/test-futimens.h: Likewise.
24754         * tests/test-utimens.c: Likewise.
24755
24756         doc: mention timestamp portability issues
24757         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
24758         instead.
24759         * doc/posix-functions/utime.texi (utime): Likewise.
24760         * doc/posix-functions/utimes.texi (utimes): Likewise.
24761         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
24762         instead.
24763         * doc/posix-functions/futimens.texi (futimens): Mention utimens
24764         module.
24765         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24766         Mention weakness with symlink timestamps.
24767         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
24768         to utimensat/futimens instead.
24769         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
24770
24771         test-dup2: enhance test
24772         * tests/test-dup2.c (main): Also check AT_FDCWD.
24773
24774         test-stat-time: avoid more spurious failures
24775         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
24776         xfs; and avoid race if the two timestamps cross quantization edge.
24777
24778         relocatable: prefer 'file system' over 'filesystem'
24779         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
24780         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
24781         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
24782         * doc/relocatable.texi (Enabling Relocatability): Likewise.
24783         * lib/relocatable.c (compute_curr_prefix): Likewise.
24784
24785 2009-10-10  Jim Meyering  <meyering@redhat.com>
24786
24787         stat-time-tests: check for the usleep function
24788         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
24789
24790 2009-10-10  Bruno Haible  <bruno@clisp.org>
24791
24792         * modules/xnanosleep: Put the Link section after the Include section.
24793
24794 2009-10-09  Eric Blake  <ebb9@byu.net>
24795
24796         dup2: work around FreeBSD 6.1 bug
24797         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
24798         * doc/posix-functions/dup2.texi (dup2): Document it.
24799         Reported by Nelson H. F. Beebe and Jim Meyering.
24800
24801         test-stat-time: port to buggy NFS clients
24802         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
24803         (test_ctime): Also skip test if mtime and ctime are skewed.
24804
24805         maint: prefer 'file system' over 'filesystem'
24806         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24807         * doc/posix-functions/lstat.texi (lstat): Likewise.
24808         * lib/file-has-acl.c (file_has_acl): Likewise.
24809         * lib/fwriteerror.c [TEST]: Likewise.
24810         * tests/test-areadlink.h (test_areadlink): Likewise.
24811         * tests/test-areadlinkat-with-size.c (main): Likewise.
24812         * tests/test-areadlinkat.c (main): Likewise.
24813         * tests/test-canonicalize-lgpl.c (main): Likewise.
24814         * tests/test-canonicalize.c (main): Likewise.
24815         * tests/test-fstatat.c (main): Likewise.
24816         * tests/test-linkat.c (main): Likewise.
24817         * tests/test-lstat.h (test_lstat_func): Likewise.
24818         * tests/test-mkdir.h (test_mkdir): Likewise.
24819         * tests/test-readlink.h (test_readlink): Likewise.
24820         * tests/test-remove.c (main): Likewise.
24821         * tests/test-rename.h (test_rename): Likewise.
24822         * tests/test-renameat.c (main): Likewise.
24823         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24824         * tests/test-symlink.h (test_symlink): Likewise.
24825         * tests/test-symlinkat.c (main): Likewise.
24826         * tests/test-unlink.h (test_unlink_func): Likewise.
24827         * tests/test-unlinkat.c (main): Likewise.
24828
24829         maint: make realtime library usage explicit
24830         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24831         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24832         * modules/settime (Link): Likewise.
24833         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24834
24835         test-stat-time: speed up execution
24836         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24837         warning on mingw.
24838         (nap): New helper function.
24839         (prepare_test): Use it to reduce sleep time.
24840         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24841         execution.
24842         * modules/stat-time-tests (configure.ac): Check for usleep.
24843
24844 2009-10-09  Jim Meyering  <meyering@redhat.com>
24845
24846         selinux-h: always use getfilecon wrappers
24847         * lib/getfilecon.c: New file.
24848         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24849         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24850         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24851         (fgetfilecon): Provide a stub.
24852         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24853         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24854         file unconditionally.
24855         When <selinux/selinux.h> is found, arrange to use wrappers.
24856         * modules/selinux-h (Files): Add getfilecon.c.
24857         (Makefile.am): Substitute include-next-related bits
24858         into the now-always-generated selinux/selinux.h file.
24859         * doc/glibc-functions/lgetfilecon.texi: New file.
24860         * doc/glibc-functions/fgetfilecon.texi: New file.
24861         * doc/glibc-functions/getfilecon.texi: New file.
24862         * doc/glibc-functions/getfilecon-desc.texi: New file.
24863         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24864         which to pull in the new files.
24865         * MODULES.html.sh (Misc): Add selinux-h.
24866
24867 2009-10-08  Jim Meyering  <meyering@redhat.com>
24868
24869         unistd: fix comment typo
24870         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24871
24872 2009-10-08  Eric Blake  <ebb9@byu.net>
24873
24874         areadlink: use SIZE_MAX consistently
24875         * modules/areadlink (Depends-on): Add stdint.
24876         * modules/areadlink-with-size (Depends-on): Likewise.
24877         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24878         gives NULL; drop sys/types, since unistd gives size_t; and add
24879         stdint for SIZE_MAX.
24880         (SIZE_MAX): Rely on headers.
24881         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24882         and add stdint.
24883         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24884         (SIZE_MAX): Likewise.
24885         (INITIAL_BUF_SIZE): Turn into enum.
24886         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24887
24888 2009-10-08  Jim Meyering  <meyering@redhat.com>
24889
24890         areadlinkat: avoid compilation failure
24891         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24892         Fix typo in comment.
24893
24894 2009-10-07  Eric Blake  <ebb9@byu.net>
24895
24896         areadlinkat-with-size: new module
24897         * modules/areadlinkat-with-size: New module.
24898         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24899         * lib/areadlink.h (areadlinkat): Declare it.
24900         * MODULES.html.sh (File system functions): Mention it.
24901         * modules/areadlinkat-with-size-tests: New test.
24902         * tests/test-areadlinkat-with-size.c: New file.
24903
24904         xreadlinkat: new module
24905         * modules/xreadlinkat: New module.
24906         * lib/xreadlinkat.c (xreadlinkat): New file.
24907         * lib/xreadlink.h (xreadlinkat): Declare it.
24908         * MODULES.html.sh (File system functions): Mention it.
24909
24910         areadlinkat: new module
24911         * lib/at-func.c (FUNC_FAIL): New define.
24912         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24913         * modules/areadlinkat: New module.
24914         * lib/linkat.c (areadlinkat): Move...
24915         * lib/areadlinkat.c (areadlinkat): ...to new file.
24916         * lib/areadlink.h (areadlinkat): Declare it.
24917         * modules/linkat (Depends-on): Add areadlinkat.
24918         * MODULES.html.sh (File system functions): Mention it.
24919         * modules/areadlinkat-tests: New test.
24920         * tests/test-areadlinkat.c: New file.
24921
24922         areadlink, areadlink-with-size: add tests
24923         * modules/areadlink-tests: New test.
24924         * modules/areadlink-with-size-tests: Likewise.
24925         * tests/test-areadlink.h: New file.
24926         * tests/test-areadlink.c: Likewise.
24927         * tests/test-areadlink-with-size.c: Likewise.
24928
24929         maint: minor cleanups
24930         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24931         _UNUSED_PARAMETER_ instead.
24932         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24933         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24934         * modules/linkat-tests (Files): Distribute test-link.h.
24935
24936         openat, utimens: whitespace cleanup
24937         * lib/openat.c: Prefer space throughout, rather than mix of 8
24938         spaces vs. tabs.
24939         * lib/at-func.c: Likewise.
24940         * lib/utimens.c: Likewise.
24941
24942         openat: avoid using wrong fd
24943         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24944         working directory chooses same fd.
24945         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24946
24947         mkdir, mkdirat: fix cygwin 1.5.x bug
24948         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24949         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24950         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24951         bug.
24952         (gl_PREREQ_MKDIR): Delete unused macro.
24953         * modules/mkdir (Files): Track file rename.
24954         (configure.ac): Update macro name.
24955         * modules/openat (Depends-on): Add mkdir.
24956         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24957
24958         mkdir, mkdirat: add tests
24959         * modules/mkdir-tests: New test.
24960         * tests/test-mkdir.h: New file.
24961         * tests/test-mkdir.c: Likewise.
24962         * tests/test-mkdirat.c: Likewise.
24963         * modules/openat-tests (Files): Add new files.
24964         (Makefile.am): Run new test.
24965
24966 2009-10-06  Eric Blake  <ebb9@byu.net>
24967
24968         doc: tweak *at function documentation
24969         * doc/posix-functions/faccessat.texi (faccessat): Mention
24970         known issue with replacement.
24971         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24972         * doc/posix-functions/linkat.texi (linkat): Likewise.
24973         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24974         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24975         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24976         * doc/posix-functions/renameat.texi (renameat): Likewise.
24977         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24978
24979         openat: fix GNU/Hurd bug in unlinkat
24980         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24981         broken.
24982         * doc/posix-functions/unlink.texi (unlink): Document this.
24983         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24984
24985         fdopendir: fix GNU/Hurd bug
24986         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24987         allowing non-directory fds.
24988         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24989         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24990         * modules/dirent (Makefile.am): Substitute it.
24991         * lib/dirent.in.h (fdopendir): Declare replacement.
24992         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24993         * tests/test-fdopendir.c (main): Test something other than
24994         /dev/null, since on Hurd that behaves like a directory.
24995
24996         test-symlink: port to GNU/Hurd
24997         * tests/test-symlink.h (test_symlink): Relax expected errno.
24998
24999         doc: tweak more cygwin information
25000         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25001         now compatible with glibc.
25002         * doc/posix-functions/getopt.texi (getopt): Likewise.
25003
25004         getopt-gnu: add another test
25005         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25006         guarantee behavior relied on by m4.
25007         * tests/test-getopt.c (main): Use it.
25008         * modules/getopt-posix-tests (Depends-on): Add setenv.
25009         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25010
25011         getopt: fix compilation on darwin
25012         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25013         include.
25014         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25015         Reported by Ludovic Courtès.
25016
25017 2009-10-06  Bruno Haible  <bruno@clisp.org>
25018
25019         * modules/size_max (Description): Discourage its use.
25020         Reported by Simon Josefsson.
25021
25022 2009-10-06  Jim Meyering  <meyering@redhat.com>
25023
25024         linkat: avoid compilation failure
25025         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25026
25027 2009-10-05  Eric Blake  <ebb9@byu.net>
25028
25029         linkat: support Linux 2.6.17
25030         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25031         linkat on Linux, but allow cache variable override.
25032         * lib/linkat.c (rpl_linkat): Define override.
25033         * modules/linkat (Depends-on): Add symlinkat.
25034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25035         * modules/unistd (Makefile.am): Substitute it.
25036         * lib/unistd.in.h (linkat): Declare replacement.
25037         Reported by Pádraig Brady.
25038
25039         quotearg: port test to systems with C.UTF-8 locale
25040         * tests/test-quotearg.c (struct result_strings): Add another
25041         member, differentiating between C.ASCII and C.UTF-8 handling.
25042         (compare_strings): Add parameter.
25043         (main): Adjust all callers.
25044
25045         getopt: avoid clash with FreeBSD _getopt_internal
25046         * lib/getopt.in.h (_getopt_internal): Override the name.
25047         * lib/getopt_int.h (includes): Pick up any overrides.
25048         Reported by Reuben Thomas.
25049
25050         hash: allow C89 compilation
25051         * lib/hash.c (check_tuning): Move declaration before statement.
25052         Reported by Reuben Thomas.
25053
25054 2009-10-05  Karl Berry  <karl@gnu.org>
25055
25056         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25057
25058 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25059             Bruno Haible  <bruno@clisp.org>
25060
25061         * lib/uname.c (uname): Use a table-driven algorithm to compute
25062         Windows NT versions.
25063
25064 2009-10-04  Bruno Haible  <bruno@clisp.org>
25065
25066         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25067         program_invocation_short_name.
25068         * modules/progname (configure.ac): Test for presence of
25069         program_invocation_short_name.
25070         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25071
25072 2009-10-04  Bruno Haible  <bruno@clisp.org>
25073
25074         * lib/progname.c (set_program_name): Fix comment.
25075         Reported by Jim Meyering.
25076
25077 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25078             Bruno Haible  <bruno@clisp.org>
25079
25080         * lib/uname.c: Include <string.h>.
25081         (uname): Do only one call to GetVersionEx in the common case.
25082
25083 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25084             Bruno Haible  <bruno@clisp.org>
25085
25086         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25087         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25088         (uname): Add support for Windows CE and various non-x86 CPU types.
25089
25090 2009-10-03  Bruno Haible  <bruno@clisp.org>
25091
25092         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25093         invocation to tests/configure.ac.
25094         Reported by Ian Beckwith <ianb@erislabs.net>.
25095
25096 2009-10-02  Eric Blake  <ebb9@byu.net>
25097
25098         fchdir: avoid compiler warning
25099         * lib/fchdir.c (canonicalize_file_name)
25100         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25101
25102         test-open: support mingw errno values
25103         * tests/test-open.h (test_open): Relax test.
25104         * tests/test-fopen.h (test_fopen): Likewise.
25105         * tests/test-openat-safer.c (main): Likewise.
25106
25107         open: fix opening directory on mingw
25108         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25109
25110         test-open: on GNU/Hurd, /dev/null is a directory
25111         * tests/test-fopen.h (main): Rename...
25112         (test_fopen): ...to this.  Use a guaranteed non-directory when
25113         confirming open behavior on trailing slash.
25114         * tests/test-openat-safer.c (main): Likewise.
25115         * tests/test-open.h (main): Likewise....
25116         (test_open): ...to this.
25117         * tests/test-fopen.c (main): Adjust caller.
25118         * tests/test-fopen-safer.c (main): Likewise.
25119         * tests/test-open.c (main): Likewise.
25120         * tests/test-fcntl-safer.c (main): Likewise.
25121         Reported by Samuel Thibault.
25122
25123         rename, fchdir: don't ignore chdir failure
25124         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25125         * lib/rename.c (rpl_rename) [W32]: Likewise.
25126         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25127         an empty destination directory if source cannot be renamed,
25128         although there is still possibility for failure.
25129         * doc/posix-functions/rename.texi (rename): Document the race.
25130         Reported by Jim Meyering.
25131
25132         maint: cleanup whitespace in recent commits
25133         * lib/rename.c (rpl_rename): Remove tabs.
25134         * tests/test-link.h (test_link): Likewise.
25135         * lib/fchdir.c (get_name): Likewise.
25136         Reported by Jim Meyering.
25137
25138 2009-10-02  Ben Pfaff  <blp@gnu.org>
25139
25140         relocatable-prog-wrapper: Add missing dependency on
25141         double-slash-root.
25142         * modules/relocatable-prog-wrapper: Add dependency.
25143         Reported by Ian Beckwith <ianb@erislabs.net>.
25144
25145 2009-10-02  Eric Blake  <ebb9@byu.net>
25146
25147         renameat: fix Solaris bugs
25148         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25149         needed fixing.
25150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25151         * modules/stdio (Makefile.am): Substitute it.
25152         * lib/stdio.in.h (renameat): Declare replacement.
25153         * lib/renameat.c (rpl_renameat): Implement fix.
25154
25155         renameat: new module
25156         * modules/renameat: New file.
25157         * lib/renameat.c (renameat): Likewise.
25158         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25160         * modules/stdio (Makefile.am): Substitute them.
25161         * lib/stdio.in.h (renameat): Declare it.
25162         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25163         * doc/posix-functions/renameat.texi (renameat): Likewise.
25164         * modules/renameat-tests: New test.
25165         * tests/test-renameat.c: Likewise.
25166
25167         rename: fix mingw bugs
25168         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25169         directory overwrite bugs.
25170
25171         rename: fix another cygwin 1.5 bug
25172         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25173         checks.
25174         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25175         unnecessary cygwin workarounds.  Also work around bug with moving
25176         full directory onto an empty one.
25177         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25178
25179         rename-dest-slash: merge into rename module
25180         * modules/rename-dest-slash (Status): Mark obsolete.
25181         (Depends-on): Add rename.
25182         (Files): Let rename do it all.
25183         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25184         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25185         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25186         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25187         * lib/rename.c (rpl_rename): Update comments.
25188
25189         rename: fix cygwin 1.5.x bugs
25190         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25191         * lib/rename.c (rpl_rename): Work around them.
25192         * modules/rename (Depends-on): Add same-inode.
25193
25194         rename: fix Solaris 10 bug
25195         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25196         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25197         was the only bug.
25198
25199         rename: fix Solaris 9 bug
25200         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25201         on non-directory.  Avoid calling exit.
25202         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25203         strdup.
25204         * modules/rename-tests (Depends-on): Drop lstat.
25205         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25206         (gl_PREREQ_RENAME): Delete unused macro.
25207
25208         rename-dest-slash: fix NetBSD bug
25209         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25210         links.
25211         * modules/rename-dest-slash (Depends-on): Add same-inode.
25212
25213         rename-tests: new test, exposes several platform bugs
25214         * modules/rename-tests: New file.
25215         * tests/test-rename.h: Likewise.
25216         * tests/test-rename.c: Likewise.
25217         * doc/posix-functions/rename.texi (rename): Improve documentation,
25218         including bugs that will eventually be fixed in gnulib.
25219
25220 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25221
25222         * lib/uname.c: Include <stdlib.h>
25223         (uname): Assume version info is available.
25224
25225 2009-10-02  Jim Meyering  <meyering@redhat.com>
25226
25227         gnu-web-doc-update: correct --help output
25228         * build-aux/gnu-web-doc-update: Make --help output relevant.
25229
25230         gnu-web-doc-update: add standard options
25231         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25232
25233         gnu-web-doc-update: New module.
25234         Use this script to automatically update the on-line web documentation
25235         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25236         * modules/gnu-web-doc-update: New file, from coreutils.
25237         * build-aux/gnu-web-doc-update: New script.
25238
25239 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25240
25241         link: LoadLibrary is not needed.
25242         * lib/link.c: Use GetModuleHandle.
25243
25244 2009-10-01  Eric Blake  <ebb9@byu.net>
25245
25246         getopt: bump serial number
25247         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25248         change.
25249
25250         tests: tighten link, rmdir, and remove tests
25251         * tests/test-link.h (includes): No need to use <config.h> here.
25252         Clean up if directory hard link was created, otherwise test for
25253         trailing '.'.
25254         * tests/test-linkat.c (main): Simplify.
25255         * tests/test-remove.c (main): Enhance test for trailing '.'.
25256         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25257
25258 2009-10-01  Jim Meyering  <meyering@redhat.com>
25259
25260         maint.mk: requiring "make major" was annoying, for a "minor" release.
25261         What is intended is "stable", to contrast with alpha and beta,
25262         so require "make stable", not "make major".
25263         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25264         (get_tool_versions): Likewise.
25265         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25266
25267 2009-09-30  Ben Pfaff  <blp@gnu.org>
25268
25269         Fix broken build of replacement for Windows tmpfile().
25270         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25271         flags argument added along with the 'mkostemp' module.
25272
25273 2009-09-28  Bruno Haible  <bruno@clisp.org>
25274
25275         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25276         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25277         to 'remove_elt'.
25278         (gl_list_remove): Update.
25279         * lib/gl_list.c (gl_list_remove): Update.
25280         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25281         to 'remove_elt'.
25282         (gl_oset_remove): Update.
25283         * lib/gl_list.c (gl_oset_remove): Update.
25284         Reported by Eric Blake.
25285
25286 2009-09-28  Eric Blake  <ebb9@byu.net>
25287
25288         doc: mention yet more cygwin 1.7 status
25289         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25290         cygwin.
25291         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25292         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25293
25294         argp: fix test failure
25295         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25296         that are not upper-case.  Pass correct range to tolower.
25297
25298 2009-09-27  Jim Meyering  <meyering@redhat.com>
25299
25300         test-yesno: work around sparc-dash here-document infelicity
25301         Without this change, the literal \177 byte in a here document
25302         would make dash 0.5.5.1-3 access uninitialized memory.
25303         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25304         Instead, use a marker, "@", and filter through tr to create the desired
25305         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25306
25307 2009-09-27  Bruno Haible  <bruno@clisp.org>
25308
25309         Disable untested support for new flavours of ACLs on AIX.
25310         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25311         progress.
25312         * lib/set-mode-acl.c (qset_acl): Likewise.
25313
25314 2008-12-07  Bruno Haible  <bruno@clisp.org>
25315
25316         Add support for new flavours of ACLs on AIX. (Untested.)
25317         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25318         (file_has_acl): Add support for newer AIX.
25319         * lib/set-mode-acl.c (qset_acl): Likewise.
25320         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25321         Rainer Tammer <tammer@tammer.net>.
25322
25323 2009-09-26  Eric Blake  <ebb9@byu.net>
25324
25325         argp: fix compilation of getopt
25326         * lib/getopt.in.h (includes): Use different guard than glibc.
25327         Reported by Sergey Poznyakoff.
25328
25329         doc: mention more cygwin 1.7 status
25330         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25331         bug.
25332         * doc/posix-functions/execl.texi (execl): Likewise.
25333         * doc/posix-functions/execle.texi (execle): Likewise.
25334         * doc/posix-functions/execlp.texi (execlp): Likewise.
25335         * doc/posix-functions/execv.texi (execv): Likewise.
25336         * doc/posix-functions/execve.texi (execve): Likewise.
25337         * doc/posix-functions/execvp.texi (execvp): Likewise.
25338         * doc/glibc-functions/canonicalize_file_name.texi
25339         (canonicalize_file_name): Cygwin 1.7 now provides this.
25340         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25341         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25342         on AT_SYMLINK_NOFOLLOW.
25343
25344 2009-09-24  Eric Blake  <ebb9@byu.net>
25345
25346         test-linkat: make test more robust
25347         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25348
25349         getopt: fix inclusion guards for cygwin
25350         * modules/getopt-posix (Depends-on): Add include-next.
25351         (Makefile.am): Substitute more items in replacement header.
25352         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25353         <getopt.h>.
25354         * lib/getopt.in.h (includes): Use split inclusion guard, and
25355         prefer <getopt.h> over include <unistd.h> when one is present.
25356         (option): Also override name of 'struct option'.
25357
25358         same-inode: revert prior change; it is not yet ready
25359         * NEWS: Undo mention of this change.
25360         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25361         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25362         * lib/cycle-check.c (cycle_check): Likewise.
25363         * lib/same.c (same_name): Likewise.
25364         * lib/at-func2.c (at_func2): Likewise.
25365
25366 2009-09-23  Eric Blake  <ebb9@byu.net>
25367
25368         linkat: new module
25369         * modules/linkat: New file.
25370         * lib/at-func2.c (at_func2): Likewise.
25371         * lib/linkat.c (linkat): Likewise.
25372         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25373         * lib/openat-priv.h (at_func2): Add declaration.
25374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25375         * modules/unistd (Makefile.am): Substitute them.
25376         * lib/unistd.in.h (linkat): Declare it.
25377         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25378         * doc/posix-functions/linkat.texi (linkat): Likewise.
25379         * doc/posix-functions/link.texi (link): Tweak wording.
25380         * tests/test-link.c (main): Move guts...
25381         * tests/test-link.h (test_link): ...into new file.
25382         * modules/linkat-tests: New test.
25383         * tests/test-linkat.c: Likewise.
25384         * modules/link-tests (Files): Ship new file.
25385         (Depends-on): Add stdbool.
25386
25387         dirname: add library-safe mdir_name
25388         * lib/dirname.h (mdir_name): New prototype.
25389         * lib/dirname.c (dir_name): Move guts...
25390         (mdir_name): ...to new function that avoids xalloc_die.
25391
25392         fchdir: another mingw fix
25393         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25394         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25395         on mingw (where it has not yet been ported), and make it optional
25396         elsewhere.
25397         (_gl_register_fd): Use it.
25398
25399         same-inode: make SAME_INODE tri-state, to port to mingw
25400         * NEWS: Mention this change.
25401         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25402         st_ino always being 0.
25403         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25404         * lib/cycle-check.c (cycle_check): Likewise.
25405         * lib/same.c (same_name): Likewise.
25406
25407         lstat: avoid mingw compilation error
25408         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25409         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25410         lstat ourselves.
25411         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25412         was adequate.
25413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25414         the checks for lstat.
25415         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25416
25417         link: fix test failure on Solaris 9
25418         * lib/link.c (rpl_link): Don't assume link will catch bogus
25419         trailing slash on source.
25420
25421         test-symlinkat: enhance test
25422         * tests/test-readlink.c (main): Move guts...
25423         * tests/test-readlink.h (test_readlink): ...into new file.
25424         * tests/test-symlink.c (main): Move guts...
25425         * tests/test-symlink.h (test_symlink): ...into new file.
25426         * tests/test-symlinkat.c (main): Use new files for further
25427         coverage.
25428         (do_symlink, do_readlink): New helper functions.
25429         * modules/symlink-tests (Files): Ship new file.
25430         (Depends-on): Add stdbool.
25431         * modules/readlink-tests (Files): Ship new file.
25432         (Depends-on): Add stdbool.
25433         * modules/symlinkat-tests (Files): Use new files.
25434
25435 2009-09-23  Eric Blake  <ebb9@byu.net>
25436
25437         readlink: document portability issue with symlink length
25438         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25439         systems have bogus st_size on symlinks, and mention the
25440         areadlink-with-size module.
25441         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25442         * doc/posix-functions/readlink.texi (readlink): Mention the
25443         areadlink module, and ERANGE failure.
25444         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25445         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25446
25447         readlink: fix Solaris 9 bug with trailing slash
25448         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25449         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25450         * doc/posix-functions/readlink.texi (readlink): Document this.
25451         * modules/readlink-tests: New test.
25452         * tests/test-readlink.c: Likewise.
25453
25454         readlink: fix cygwin 1.5.x bug with return type
25455         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25456         * lib/unistd.in.h (readlink): Use ssize_t.
25457         * lib/readlink.c (readlink): Likewise.
25458         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25459         * modules/unistd (Makefile.am): Substitute it.
25460         * lib/unistd.in.h (readlink): Declare replacement.
25461         * doc/posix-functions/readlink.texi (readlink): Document this.
25462
25463         symlink: use throughout gnulib
25464         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25465         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25466         symlink is not used.
25467         * modules/symlinkat (Depends-on): Add symlink.
25468         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25469         * modules/canonicalize-tests (Depends-on): Likewise.
25470         * modules/lstat-tests (Depends-on): Likewise.
25471         * modules/openat-tests (Depends-on): Likewise.
25472         * modules/remove-tests (Depends-on): Likewise.
25473         * modules/rmdir-tests (Depends-on): Likewise.
25474         * modules/unlink-tests (Depends-on): Likewise.
25475         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25476         * tests/test-canonicalize.c (symlink): Likewise.
25477         * tests/test-fstatat.c (symlink): Likewise.
25478         * tests/test-lstat.c (symlink): Likewise.
25479         * tests/test-remove.c (symlink): Likewise.
25480         * tests/test-rmdir.c (symlink): Likewise.
25481         * tests/test-unlink.c (symlink): Likewise.
25482         * tests/test-unlinkat.c (symlink): Likewise.
25483
25484         symlink: new module, for Solaris 9 bug
25485         * modules/symlink: New file.
25486         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25487         * lib/symlink.c: Likewise.
25488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25489         * modules/unistd (Makefile.am): Substitute them.
25490         * lib/unistd.in.h (symlink): Declare replacement.
25491         * MODULES.html.sh (File system functions): Mention it.
25492         * doc/posix-functions/symlink.texi (symlink): Likewise.
25493         * modules/symlink-tests: New test.
25494         * tests/test-symlink.c: Likewise.
25495
25496 2009-09-23  Bruno Haible  <bruno@clisp.org>
25497
25498         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25499         when needed.
25500         Test case: gnulib-tool --import --with-tests atexit inttypes.
25501         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25502
25503 2009-09-23  Bruno Haible  <bruno@clisp.org>
25504
25505         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25506         subcommand, not in a subshell.
25507
25508 2009-09-22  Eric Blake  <ebb9@byu.net>
25509
25510         unistd: sort replacement declarations
25511         * lib/unistd.in.h: Sort declarations.
25512
25513         open, openat: minor optimization
25514         * lib/open.c (open): If open succeeded, len is non-zero.
25515         * lib/openat.c (rpl_openat): Likewise.
25516
25517         link-follow: ensure correct result
25518         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25519         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25520         distinguish between possible failures.
25521
25522 2009-09-21  Eric Blake  <ebb9@byu.net>
25523
25524         fts: avoid compiler warning
25525         * lib/fts.c (dirent_inode_sort_may_be_useful)
25526         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25527
25528 2009-09-19  Bruno Haible  <bruno@clisp.org>
25529
25530         * lib/progreloc.c (canonicalize_file_name): New declaration.
25531
25532 2009-09-19  Eric Blake  <ebb9@byu.net>
25533
25534         link: fix quoting
25535         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25536
25537         openat: fix openat bugs on Solaris 9
25538         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25539         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25540         * modules/openat (Depends-on): Add open.
25541         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
25542         * modules/fcntl-h (Makefile.am): Substitute it.
25543         * lib/fcntl.in.h (openat): Declare replacement.
25544         * doc/posix-functions/openat.texi (openat): Document this.
25545
25546         openat: move fstatat and unlinkat into correct files
25547         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
25548         compiled.
25549         * lib/openat.c (fstatat, unlinkat): Move...
25550         * lib/fstatat.c (fstatat): ...into correct files.
25551         * lib/unlinkat.c (unlinkat): Likewise.
25552
25553         openat: fix unlinkat bugs on Solaris 9
25554         * lib/unlinkat.c (unlinkat): New file.
25555         * modules/openat (Depends-on): Add unlink.
25556         (Files): Distribute it.
25557         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
25558         trailing slash behavior is broken.
25559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25560         * modules/unistd (Makefile.am): Substitute it.
25561         * lib/unistd.in.h (unlinkat): Declare replacement.
25562         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
25563
25564         openat: fix fstatat bugs on Solaris 9
25565         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
25566         stat.
25567         * doc/posix-functions/fstatat.texi (fstatat): Document this.
25568
25569         test-unlinkat: enhance test, to expose Solaris 9 bug
25570         * tests/test-unlink.c (main): Factor guts...
25571         * tests/test-unlink.h (test_rmdir_func): ...into new file.
25572         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
25573         * tests/test-rmdir.c (main): Adjust caller.
25574         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
25575         (unlinker): New helper function.
25576         (rmdirat): Enhance check.
25577         * modules/rmdir-tests (Depends-on): Add stdbool.
25578         * modules/unlink-tests (Depends-on): Likewise.
25579         (Files): Add test-unlink.h.
25580         * modules/openat-tests (Files): Likewise.
25581         (Depends-on): Add unlinkdir.
25582
25583         test-fstatat: new test, to expose Solaris 9 bugs
25584         * tests/test-stat.c (main): Factor guts...
25585         * tests/test-stat.h (test_stat_func): ...into new file.
25586         * tests/test-lstat.c (main): Factor guts...
25587         * tests/test-lstat.h (test_lstat_func): ...into new file.
25588         * tests/test-fstatat.c: New file.
25589         * modules/stat-tests (Files): Add test-stat.h.
25590         * modules/lstat-tests (Files): Add test-lstat.h.
25591         (Depends-on): Add stdbool.
25592         * modules/openat-tests (Depends-on): Add pathmax.
25593         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
25594         (Makefile.am): Run new test.
25595
25596         remove: new module, for mingw and Solaris 9 bugs
25597         * modules/remove: New file.
25598         * lib/remove.c: Likewise.
25599         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
25600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25601         * modules/stdio (Makefile.am): Use them.
25602         * lib/stdio.in.h (remove): Declare replacement.
25603         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25604         * doc/posix-functions/remove.texi (remove): Likewise.
25605         * modules/remove-tests: New test.
25606         * tests/test-remove.c: Likewise.
25607
25608         unlink: new module, for Solaris 9 bug
25609         * modules/unlink: New file.
25610         * lib/unlink.c: Likewise.
25611         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25613         * modules/unistd (Makefile.am): Use them.
25614         * lib/unistd.in.h (stat): Declare replacement.
25615         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25616         * doc/posix-functions/unlink.texi (unlink): Likewise.
25617         * modules/unlink-tests: New test.
25618         * tests/test-unlink.c: Likewise.
25619
25620         lstat: fix Solaris 9 bug
25621         * lib/lstat.c (lstat): Also check for trailing slash on
25622         non-symlink, non-directories.  Use stat module to simplify logic.
25623         * doc/posix-functions/lstat.texi (lstat): Document it.
25624         * modules/lstat-tests (Depends-on): Add errno, same-inode.
25625         (configure.ac): Check for symlink.
25626         * tests/test-lstat.c (main): Add more tests.
25627
25628         stat: add as dependency to other modules
25629         * modules/chown (Depends-on): Add stat.
25630         * modules/euidaccess (Depends-on): Likewise.
25631         * modules/fchdir (Depends-on): Likewise.
25632         * modules/isdir (Depends-on): Likewise.
25633         * modules/link (Depends-on): Likewise.
25634         * modules/lstat (Depends-on): Likewise.
25635         * modules/mkdir-p (Depends-on): Likewise.
25636         * modules/modechange (Depends-on): Likewise.
25637         * modules/open (Depends-on): Likewise.
25638         * modules/readlink (Depends-on): Likewise.
25639         * modules/same (Depends-on): Likewise.
25640
25641         stat: fix Solaris 9 bug
25642         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
25643         slash.
25644         * lib/stat.c (rpl_stat): Work around it.
25645         * doc/posix-functions/stat.texi (stat): Update documentation.
25646
25647         stat: new module, for mingw bug
25648         * modules/stat: New file.
25649         * lib/stat.c: Likewise.
25650         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25651         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25652         * modules/sys_stat (Makefile.am): Use them.
25653         * lib/sys_stat.in.h (stat): Declare replacement.
25654         * lib/openat.c (fstatat): Deal with lstat and stat being function
25655         macros.
25656         * modules/openat (Depends-on): Add inline.
25657         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25658         * doc/posix-functions/stat.texi (stat): Likewise.
25659         * modules/stat-tests: New test.
25660         * tests/test-stat.c: Likewise.
25661
25662 2009-09-19  Jim Meyering  <meyering@redhat.com>
25663
25664         syntax-check: detect unnecessary inclusion of canonicalize.h
25665         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
25666
25667 2009-09-19  Eric Blake  <ebb9@byu.net>
25668
25669         canonicalize-lgpl: adjust clients to use correct header
25670         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25671         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
25672         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
25673         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
25674         * lib/progreloc.c (includes): Likewise.
25675
25676 2009-09-19  Jim Meyering  <meyering@redhat.com>
25677
25678         test-posixtm.c: correct a comment
25679         * tests/test-posixtm.c: Correct first-line comment.
25680         Spotted by Eric Blake.
25681
25682 2009-09-16  Jim Meyering  <meyering@redhat.com>
25683
25684         posixtm-tests: make T const-correct; add a test case
25685         * tests/test-posixtm.c (T): Declare const.
25686         Add a test for -(2^31+1).
25687         Remove useless can-succeed-only-in-2002 test.
25688
25689         posixtm-tests: adjust the sole failing test
25690         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
25691         expected output matches what mktime now produces.  Cross-checked via
25692         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
25693
25694         posixtm: move #ifdef'd tests into a new module
25695         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
25696         * tests/test-posixtm.c: ... this new file.
25697         * modules/posixtm-tests: New module.
25698
25699 2009-09-19  Eric Blake  <ebb9@byu.net>
25700
25701         openat: simplify use of at-func.c
25702         * lib/at-func.c (includes): Include prerequisites here, to
25703         simplify requirements on client files.
25704         * lib/openat-priv.h: Add double-inclusion guard.
25705         * lib/faccessat.c (includes): Simplify.
25706         * lib/fchmodat.c (includes): Likewise.
25707         * lib/fchownat.c (includes): Likewise.
25708         * lib/mkdirat.c (includes): Likewise.
25709         * lib/mkfifoat.c (includes): Likewise.
25710         * lib/symlinkat.c (includes): Likewise.
25711
25712         openat: allow return of fd 0
25713         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
25714         * modules/save-cwd (Depends-on): Replace fcntl-safer with
25715         unistd-safer.
25716         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
25717         <fcntl.h>; this module does not leak fds.
25718         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
25719         must be allowed to return 0, leaving openat_safer to add the
25720         safety.
25721         (openat_permissive): Avoid writing to just-opened fd 2 if
25722         restoring the current directory fails.
25723         * lib/openat-die.c (openat_restore_fail): Add comment.
25724         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
25725         (save_cwd): Guarantee safe fd, but without use of open_safer.
25726         * tests/test-openat.c: New test.
25727         * modules/openat-tests (Files, Makefile.am): Distribute and build
25728         new file.
25729
25730         relocatable-prog-wrapper: fix build
25731         * modules/relocatable-prog-wrapper (Files): Update name of
25732         canonicalize m4 file, broken on 2009-09-17.
25733         Reported by emad hajjar <aleppos@hotmail.com>.
25734
25735 2009-09-19  Bruno Haible  <bruno@clisp.org>
25736
25737         * lib/safe-alloc.h: Use the standard header with GPL copyright.
25738         * lib/safe-alloc.c: Likewise.
25739         Reported by Ian Beckwith <ianb@erislabs.net>.
25740
25741 2009-09-18  Bruno Haible  <bruno@clisp.org>
25742
25743         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
25744         Reported by <erobles@sensacd.com.mx>.
25745
25746 2009-09-17  Eric Blake  <ebb9@byu.net>
25747
25748         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
25749         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
25750         slashes when checking if last component is missing.
25751         * tests/test-canonicalize.c (main): Test this.
25752
25753         canonicalize, canonicalize-lgpl: honor // if distinct from /
25754         * modules/canonicalize (Files): Add double-slash-root.m4.
25755         * modules/canonicalize-lgpl (Files): Likewise.
25756         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
25757         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
25758         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
25759         fallback definition.
25760         (canonicalize_filename_mode): Use it to protect //.
25761         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
25762         (__realpath): Likewise.
25763         * tests/test-canonicalize.c (main): Test this.
25764         * tests/test-canonicalize-lgpl.c (main): Likewise.
25765         * modules/canonicalize-tests (Depends-on): Add same-inode.
25766         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25767
25768         canonicalize-lgpl: fix glibc bug with trailing slash
25769         * m4/canonicalize-lgpl.m4: Move contents...
25770         * m4/canonicalize.m4: ...here.
25771         (gl_CANONICALIZE_LGPL): Factor realpath check...
25772         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
25773         glibc 2.3.5 bug, fixed 2005-04-27.
25774         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
25775         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
25776         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
25777         * modules/canonicalize-lgpl (Files): Manage file rename.
25778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25779         * modules/stdlib (Makefile.am): Substitute witness.
25780         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
25781         is needed.
25782         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
25783         replacement is required.
25784         * lib/canonicalize.c (canonicalize_file_name): Likewise.
25785         * doc/glibc-functions/canonicalize_file_name.texi
25786         (canonicalize_file_name): Document this.
25787         * doc/posix-functions/realpath.texi (realpath): Likewise.
25788
25789         canonicalize-lgpl: reject non-directory with trailing slash
25790         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
25791         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
25792         catches failures in glibc 2.3.5.
25793         * tests/test-canonicalize.c (main): Likewise.
25794
25795         canonicalize-lgpl: use native realpath if it works
25796         * lib/canonicalize-lgpl.c (realpath): Guard with
25797         FUNC_REALPATH_WORKS.
25798         * lib/stdlib.in.h (realpath): Make declaration optional based on
25799         HAVE_REALPATH.
25800         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
25801         native realpath works.
25802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
25803         * modules/stdlib (Makefile.am): Substitute witness.
25804
25805         canonicalize, canonicalize-lgpl: use <stdlib.h>
25806         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
25807         (Include): Mention <stdlib.h>.
25808         (configure.ac): Mention functions we provide.
25809         * modules/canonicalize (configure.ac): Likewise.
25810         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25811         realpath if canonicalize_file_name is missing.
25812         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25813         * modules/stdlib (Makefile.am): Substitute witnesses.
25814         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25815         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25816         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25817         * NEWS: Document this.
25818         * doc/glibc-functions/canonicalize_file_name.texi
25819         (canonicalize_file_name): Likewise.
25820         * doc/posix-functions/realpath.texi (realpath): Likewise.
25821         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25822
25823         test-canonicalize: consolidate into single C program
25824         * tests/test-canonicalize.sh: Delete; move setup into...
25825         * tests/test-canonicalize.c (main): ...the program, making it
25826         easier to run in debugger.  Add some tests.
25827         * modules/canonicalize-tests (Files): Remove unused file.
25828         (Depends-on): Add progname.
25829         (configure.ac, Makefile.am): Simplify.
25830
25831         test-canonicalize-lgpl: consolidate into single C program
25832         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25833         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25834         easier to run in debugger.  Add some tests.
25835         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25836         (configure.ac, Makefile.am): Simplify.
25837
25838         canonicalize: avoid resolvepath
25839         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25840         unnecessary checks.
25841         * lib/canonicalize.c (includes): Simplify.
25842         (canonicalize_file_name): Drop resolvepath implementation.
25843         * modules/canonicalize (Depends-on): Drop filenamecat.
25844
25845         canonicalize: don't lose errno
25846         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25847         over calls to free.
25848
25849         canonicalize: simplify errno handling
25850         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25851         assignment.
25852
25853         canonicalize, canonicalize-lgpl: update module dependencies
25854         * modules/canonicalize (Depends-on): Add extensions, lstat,
25855         pathmax, stdlib.
25856         (Files): Drop pathmax.h.
25857         (configure.ac): Adjust macro name.
25858         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25859         lstat, stdlib, sys_stat.
25860         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25861         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25862         extensions.
25863         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25864         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25865         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25866         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25867         declaration, if available.
25868         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25869         we can rely on the readlink module.
25870         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25871         (includes): Use <unistd.h> unconditionally.
25872
25873 2009-09-17  Eric Blake  <ebb9@byu.net>
25874
25875         maint: make Include sections of modules consistent
25876         * modules/alloca: Use only header name; no need to list #include.
25877         * modules/alloca-opt: Likewise.
25878         * modules/arpa_inet: Likewise.
25879         * modules/canon-host: Likewise.
25880         * modules/configmake: Likewise.
25881         * modules/dirent: Likewise.
25882         * modules/eealloc: Likewise.
25883         * modules/environ: Likewise.
25884         * modules/fchdir: Likewise.
25885         * modules/fcntl: Likewise.
25886         * modules/fcntl-h: Likewise.
25887         * modules/gethrxtime: Likewise.
25888         * modules/gettime: Likewise.
25889         * modules/ignore-value: Likewise.
25890         * modules/inet_ntop: Likewise.
25891         * modules/inet_pton: Likewise.
25892         * modules/inttypes: Likewise.
25893         * modules/isnand-nolibm: Likewise.
25894         * modules/isnanf-nolibm: Likewise.
25895         * modules/mbchar: Likewise.
25896         * modules/mbfile: Likewise.
25897         * modules/mbiter: Likewise.
25898         * modules/mbuiter: Likewise.
25899         * modules/netdb: Likewise.
25900         * modules/netinet_in: Likewise.
25901         * modules/nproc: Likewise.
25902         * modules/pagealign_alloc: Likewise.
25903         * modules/poll: Likewise.
25904         * modules/printf-frexp: Likewise.
25905         * modules/pthread: Likewise.
25906         * modules/putenv: Likewise.
25907         * modules/random_r: Likewise.
25908         * modules/relocatable-prog: Likewise.
25909         * modules/search: Likewise.
25910         * modules/select: Likewise.
25911         * modules/selinux-h: Likewise.
25912         * modules/settime: Likewise.
25913         * modules/signal: Likewise.
25914         * modules/size_max: Likewise.
25915         * modules/socklen: Likewise.
25916         * modules/ssize_t: Likewise.
25917         * modules/stdarg: Likewise.
25918         * modules/stdbool: Likewise.
25919         * modules/stddef: Likewise.
25920         * modules/stdint: Likewise.
25921         * modules/stdio: Likewise.
25922         * modules/stdlib: Likewise.
25923         * modules/string: Likewise.
25924         * modules/strings: Likewise.
25925         * modules/sys_file: Likewise.
25926         * modules/sys_ioctl: Likewise.
25927         * modules/sys_select: Likewise.
25928         * modules/sys_socket: Likewise.
25929         * modules/sys_stat: Likewise.
25930         * modules/sys_time: Likewise.
25931         * modules/sys_times: Likewise.
25932         * modules/sys_utsname: Likewise.
25933         * modules/sys_wait: Likewise.
25934         * modules/sysexits: Likewise.
25935         * modules/time: Likewise.
25936         * modules/times: Likewise.
25937         * modules/tmpfile: Likewise.
25938         * modules/trim: Likewise.
25939         * modules/unistd: Likewise.
25940         * modules/wchar: Likewise.
25941         * modules/wctype: Likewise.
25942
25943 2009-09-17  Bruno Haible  <bruno@clisp.org>
25944
25945         Make getdate.y compile on QNX and NetBSD 5 / i386.
25946         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25947         TIME_T_FITS_IN_LONG_INT.
25948         * lib/getdate.y (long_time_t): New type.
25949         (relative_time): Change type of 'seconds' field to long_time_t.
25950         (get_date): Update types of local variables. Check against overflow
25951         during conversion from long_time_t to time_t.
25952         Reported by Matt Kraai <kraai@ftbfs.org>
25953         and Hasso Tepper <hasso@netbsd.org>.
25954
25955 2009-09-17  Bruno Haible  <bruno@clisp.org>
25956
25957         * modules/COPYING: Update copyright years.
25958         * modules/README: Likeiwse.
25959         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25960         Reported by Ian Beckwith <ianb@erislabs.net>.
25961
25962 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25963
25964         * users.txt: Update references for gnuit package.
25965
25966 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25967
25968         * m4/getdelim.m4: Fix typo in copyright line.
25969
25970 2009-09-17  Bruno Haible  <bruno@clisp.org>
25971
25972         * lib/atoll.c: Use the standard header with GPL copyright.
25973         * lib/argz.in.h: Likewise.
25974         * lib/glob.c: Likewise.
25975         * lib/glob-libc.h: Likewise.
25976         * lib/random_r.c: Likewise.
25977         * lib/siglist.h: Likewise.
25978         * lib/strsignal.c: Likewise.
25979         Reported by Ian Beckwith <ianb@erislabs.net>.
25980
25981 2009-09-17  Eric Blake  <ebb9@byu.net>
25982
25983         rmdir: ensure correct dependency order
25984         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25985
25986 2009-09-17  Bruno Haible  <bruno@clisp.org>
25987
25988         Disable assertion that fails on NetBSD 5 / i386.
25989         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25990         Reported by Sam Steingold <sds@gnu.org>
25991         and Hasso Tepper <hasso@netbsd.org>.
25992
25993 2009-09-16  Eric Blake  <ebb9@byu.net>
25994
25995         unlinkdir: port to mingw
25996         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25997         on which no one can unlink a directory.
25998
25999         stdlib: sort witness names
26000         * modules/stdlib (Makefile.am): Sort replacements.
26001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26002         * lib/stdlib.in.h: Likewise.
26003
26004         parse-duration-tests: avoid link failure
26005         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26006         LIBINTL.
26007         Reported by Tom G. Christensen.
26008
26009         openat-tests: ensure unlinkat behaves like rmdir
26010         * tests/test-rmdir.c (main): Factor guts...
26011         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26012         * modules/rmdir-tests (Files): Ship new file.
26013         * modules/openat-tests: New test.
26014         * tests/test-unlinkat.c: Likewise.
26015
26016         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26017         * modules/rmdir-errno (Status, Notice): Now obsolete.
26018
26019         rmdir: work around cygwin 1.5.x and mingw bugs
26020         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26021         * lib/rmdir.c (rmdir): Work around it.
26022         * modules/rmdir (Status, Notice): No longer obsolete.
26023         (Files): Add dos.m4.
26024         (Depends-on): Add unistd.
26025         (configure.ac): Set witnesses.
26026         (License): Relax to LGPLv2+.
26027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26028         * modules/unistd (Makefile.am): Substitute witnesses.
26029         * lib/unistd.in.h (rmdir): Declare replacement.
26030         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26031         * modules/rmdir-tests: New tests.
26032         * tests/test-rmdir.c: Likewise.
26033
26034 2009-09-15  Eric Blake  <ebb9@byu.net>
26035
26036         fchdir: improve use of replacement functions
26037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26039         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26040         REPLACE_CLOSEDIR.
26041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26042         * modules/sys_stat (Makefile.am): Substitute correct witness.
26043         * modules/dirent (Makefile.am): Likewise.
26044         * modules/unistd (Makefile.am): Likewise.
26045         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26046         * lib/unistd.in.h (dup): Likewise.
26047         * lib/sys_stat.in.h (fstat): Likewise.
26048
26049         maint: ignore gnulib-tool temp files
26050         * .gitignore: Ignore files created during gnulib-tool --test.
26051
26052 2009-09-13  Jim Meyering  <meyering@redhat.com>
26053
26054         posixtm: don't reject a time that specify "60" as the number of seconds
26055         * lib/posixtm.c (posixtime): The code to reject invalid dates
26056         would also reject a time specified with the .60 suffix.
26057         But POSIX allows that, in order to accommodate leap seconds.
26058         So don't reject it.
26059         (main): Adjust tests accordingly.
26060         * modules/posixtm (Depends-on): Add stpcpy.
26061
26062 2009-09-11  Jim Meyering  <meyering@redhat.com>
26063
26064         announce-gen: include [$release_type] in emitted Subject:
26065         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26066         e.g., [stable] in the emitted Subject: line.
26067
26068 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26069
26070         Remove obsolete macros from several modules.
26071         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26072         obsolete Autoconf macros with their modern counterparts.
26073         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26074         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26076         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26077         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26078         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26079         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26080         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26081         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26082         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26083         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26085         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26086         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26087         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26088         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26089         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26090         * m4/time_r.m4 (gl_TIME_R): Likewise.
26091         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26092         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26093         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26094
26095         Fix copyright header in build-aux scripts.
26096         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26097         recommendation.
26098         * build-aux/ncftpput-ftp: Likewise.
26099         * build-aux/update-copyright: Likewise.
26100
26101 2009-09-09  Eric Blake  <ebb9@byu.net>
26102
26103         test-link: allow Linux choice of errno
26104         * tests/test-link.c (main): Relax test for alternate error.
26105
26106         strndup: fix improper m4 caching
26107         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26108         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26109         (gl_PREREQ_STRNDUP): Delete.
26110         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26111         * modules/string (Makefile.am): Substitute it.
26112         * lib/string.in.h (strndup): Modernize prototype.
26113
26114         getcwd: port to mingw
26115         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26116         different from the POSIX assumptions made throughout the getcwd
26117         module; fortunately, the mingw getcwd does not need replacement.
26118         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26119         * modules/getcwd-tests: New test.
26120         * tests/test-getcwd.c: Likewise.
26121
26122         link: fix platform bugs
26123         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26124         * lib/link.c (link): Work around them.  Fix related mingw bug.
26125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26126         * modules/unistd (Makefile.am): Substitute it.
26127         * lib/unistd.in.h (link): Declare replacement.
26128         * doc/posix-functions/link.texi (link): Document this.
26129         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26130
26131         test-link: consolidate into single C program, test more cases
26132         * tests/test-link.sh: Delete.
26133         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26134         at least Cygwin and Solaris.
26135         * modules/link-tests (Files): Remove unused file.
26136         (Depends-on): Add errno, sys_stat.
26137         (Makefile.am): Simplify.
26138
26139 2009-09-08  Bruno Haible  <bruno@clisp.org>
26140
26141         Work around towlower, towupper bug on mingw.
26142         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26143         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26144         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26145         * doc/posix-functions/towupper.texi: Likewise.
26146         Reported by Eric Blake.
26147
26148 2009-09-08  Jim Meyering  <meyering@redhat.com>
26149
26150         build: don't try to run autoheader if we don't use it
26151         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26152         is not used in configure.ac.
26153
26154 2009-09-08  Eric Blake  <ebb9@byu.net>
26155
26156         euidaccess: fix compilation error
26157         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26158
26159         rawmemchr: relax license
26160         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26161         okay.
26162         Reported by Jim Meyering.
26163
26164         mkfifoat: new module
26165         * modules/mkfifoat: New file.
26166         * lib/mkfifoat.c: Likewise.
26167         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26168         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26169         * modules/sys_stat (Makefile.am): Use them.
26170         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26171         * MODULES.html.sh (File system functions): Mention module.
26172         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26173         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26174         * modules/mkfifoat-tests: New test.
26175         * tests/test-mkfifoat.c: Likewise.
26176
26177         strchrnul: relax license
26178         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26179         okay.
26180         Reported by Jim Meyering.
26181
26182 2009-09-08  Eric Blake  <ebb9@byu.net>
26183
26184         fstatat: fix compilation on Solaris
26185         * lib/fstatat.c (includes): Add fcntl.h.
26186         Reported by Pádraig Brady.
26187
26188 2009-09-07  Eric Blake  <ebb9@byu.net>
26189
26190         rename: modernize replacement
26191         * modules/rename (Depends-on): Add stdio.
26192         (configure.ac): Declare witness.
26193         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26194         stdio take care of replacement.
26195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26196         * modules/stdio (Makefile.am): Substitute them.
26197         * lib/stdio.in.h (rename): Declare replacement.
26198         * lib/rename.c (includes): Allow cross-compilation to non-windows
26199         machines.
26200         * doc/posix-functions/rename.texi (rename): Improve
26201         documentation.
26202
26203         stdio: sort witness names
26204         * modules/stdio (Makefile.am): Sort replacements.
26205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26206         * lib/stdio.in.h: Likewise.
26207
26208         getcwd: minor cleanups
26209         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26210         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26211
26212         openat: provide more convenience names
26213         * modules/faccessat (configure.ac): Add C witness.
26214         * lib/unistd.in.h (readlinkat): Fix typo.
26215         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26216         convenience wrappers.
26217         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26218         wrappers in syntax checks.
26219
26220 2009-09-06  Eric Blake  <ebb9@byu.net>
26221
26222         doc: fix comments in recent patches
26223         * lib/faccessat.c: Mention correct function.
26224         * lib/fchmodat.c: Likewise.
26225         * lib/fchownat.c: Likewise.
26226         * lib/symlinkat.c: Likewise.
26227         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26228         constants.
26229
26230         faccessat, symlinkat: continue cleanup of previous patch
26231         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26232         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26233         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26234         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26235         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26236         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26237         set.
26238
26239 2009-09-06  Bruno Haible  <bruno@clisp.org>
26240
26241         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26242         (fstatat): Declare if GNULIB_FSTATAT is set.
26243         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26244         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26245         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26246         * modules/fcntl-h (Files): Remove m4/openat.m4.
26247         * modules/sys_stat (Files): Remove m4/openat.m4.
26248         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26249         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26250         * modules/unistd (Files): Remove m4/openat.m4.
26251         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26252         GNULIB_OPENAT.
26253         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26254         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26256         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26257         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26258         gl_OPENAT_DEFAULTS.
26259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26260         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26261         Don't require gl_OPENAT_DEFAULTS.
26262         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26263         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26264         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26265         (gl_OPENAT_DEFAULTS): Remove macro.
26266
26267 2009-09-06  Bruno Haible  <bruno@clisp.org>
26268
26269         * modules/openat (configure.ac): Remove unneeded witness.
26270
26271 2009-09-06  Bruno Haible  <bruno@clisp.org>
26272
26273         Set errno to ENOSYS when a function is entirely unsupported.
26274         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26275         EOPNOTSUPP.
26276         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26277         * modules/chown (Depends-on): Remove errno.
26278
26279 2009-09-06  Bruno Haible  <bruno@clisp.org>
26280
26281         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26282
26283 2009-09-06  Bruno Haible  <bruno@clisp.org>
26284
26285         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26286
26287 2009-09-06  Ben Pfaff  <blp@gnu.org>
26288             Bruno Haible  <bruno@clisp.org>
26289
26290         Work around a glibc bug in strtok_r.
26291         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26292         Undefine if UNDEFINE_STRTOK_R is set.
26293         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26295         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26296         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26297         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26298         UNDEFINE_STRTOK_R.
26299         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26300
26301 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26302
26303         exclude: minor fix
26304         * lib/exclude.c: Include wctype.h
26305
26306 2009-09-06  Akim Demaille  <demaille@gostai.com>
26307
26308         bootstrap: improve error message
26309         * build-aux/bootstrap (find_tool): Upon failure, report the list
26310         of candidates.
26311         Honor the initial value of the envvar.
26312
26313 2009-09-05  Eric Blake  <ebb9@byu.net>
26314
26315         symlinkat: new module
26316         * modules/symlinkat: New file.
26317         * lib/symlinkat.c: Likewise.
26318         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26320         * modules/unistd (Makefile.am): Use them.
26321         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26322         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26323         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26324         * MODULES.html.sh (File system functions): Mention module.
26325         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26326         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26327         * modules/symlinkat-tests: New test.
26328         * tests/test-symlinkat.c: Likewise.
26329
26330         test-openat-safer: add more checks
26331         * tests/test-openat-safer.c (main): Check more code paths.
26332
26333 2009-09-05  Jim Meyering  <meyering@redhat.com>
26334
26335         syntax-check: detect unnecessary inclusion of openat.h
26336         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26337
26338 2009-09-05  Bruno Haible  <bruno@clisp.org>
26339
26340         Support towlower, towupper.
26341         * doc/posix-functions/towlower.texi: Mention module wctype.
26342         * doc/posix-functions/towupper.texi: Likewise.
26343         * lib/wctype.in.h (towlower, towupper): New functions.
26344         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26345         (ASSERT): New macro.
26346         (e): New variable.
26347         (main): Test also towlower, towupper. Test WEOF argument.
26348         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26349
26350 2009-09-05  Bruno Haible  <bruno@clisp.org>
26351
26352         Fix conversion behaviour when the input is invalid.
26353         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26354         mark occurring in first pass of indirect conversion.
26355         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26356         input.
26357         Found by clang's static analyzer.
26358
26359 2009-09-05  Bruno Haible  <bruno@clisp.org>
26360
26361         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26362         where direct conversion is possible.
26363
26364 2009-09-04  Eric Blake  <ebb9@byu.net>
26365
26366         openat: fail with ENOENT on empty name
26367         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26368         buffer.
26369
26370         link-follow: fix logic bug in prior patch
26371         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26372         reversed sense of yes and no in prior patch.  Avoid confusing
26373         compilation failure with desired semantics.
26374
26375         link-follow: accomodate mingw and cross-compilation
26376         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26377         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26378         cross-compilation results to -1, to make linkat easier to
26379         implement when cross-compiling.  Trivially support mingw.
26380         * modules/link-follow (configure.ac): Call new name.
26381         * NEWS: Mention this.
26382
26383 2009-09-03  Eric Blake  <ebb9@byu.net>
26384
26385         faccessat: compile replacement
26386         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26387         needed.
26388
26389         fts: fix compilation error
26390         * lib/fts.c (includes): Re-add "openat.h", for
26391         openat_needs_fchdir.
26392
26393         faccessat: new module
26394         * modules/faccessat: New file.
26395         * lib/faccessat.c: Likewise.
26396         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26398         * modules/unistd (Makefile.am): Use it.
26399         * lib/unistd.in.h (faccessat): Declare it.
26400         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26401         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26402         * MODULES.html.sh (File system functions): Mention it.
26403         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26404         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26405
26406         euidaccess: prefer POSIX over non-standard implementation
26407         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26408         * lib/euidaccess.c (euidaccess): Use it if available.
26409
26410         openat: make template easier to use
26411         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26412         AT_FUNC_F2 to be undefined.
26413         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26414         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26415         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26416         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26417         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26418         Likewise.
26419         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26420         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26421         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26422         Likewise.
26423
26424         openat: declare in POSIX headers
26425         * NEWS: Mention this.
26426         * modules/openat (configure.ac): Declare witnesses.
26427         (Depends-on): Add fcntl-h, sys_stat, unistd.
26428         (Include): Mention correct headers.
26429         * modules/fcntl-h (Depends-on): Add link-warning.
26430         (Files): Add openat.m4.
26431         (Makefile.am): Substitute witnesses.
26432         * modules/sys_stat (Files, Makefile.am): Likewise.
26433         * modules/unistd (Files, Makefile.am): Likewise.
26434         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26435         (gl_OPENAT_DEFAULTS): New macro.
26436         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26439         (SYS_STAT_H): Remove unused variable.
26440         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26441         * lib/fcntl--.h (includes): Remove unneeded header.
26442         * lib/openat-safer.c (includes): Likewise.
26443         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26444         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26445         appropriate headers.
26446         (__OPENAT_PREFIX): Delete.
26447         * lib/fcntl.in.h (openat): Provide declaration.
26448         (AT_FDCWD): Fix Solaris bug.
26449         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26450         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26451         * lib/fchmodat.c (includes):  Adjust to find declaration.
26452         * lib/fchownat.c (includes): Likewise.
26453         * lib/mkdirat.c (includes): Likewise.
26454         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26455         still visible.
26456
26457 2009-09-02  Eric Blake  <ebb9@byu.net>
26458
26459         errno: use consistently
26460         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26461         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26462         * lib/canonicalize.c (ELOOP): Likewise.
26463         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26464         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26465         * lib/lchown.c (EOPNOTSUPP): Likewise.
26466         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26467         * lib/savewd.c (ESTALE): Likewise.
26468         * lib/settime.c (ENOSYS): Likewise.
26469         * lib/utimens.c (ENOSYS): Likewise.
26470         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26471         * lib/chdir-safer.c (ELOOP): Likewise.
26472         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26473         * modules/c-stack (Depends-on): Add errno.
26474         * modules/canonicalize (Depends-on): Likewise.
26475         * modules/chdir-safer (Depends-on): Likewise.
26476         * modules/fdopendir (Depends-on): Likewise.
26477         * modules/inet_ntop (Depends-on): Likewise.
26478         * modules/inet_pton (Depends-on): Likewise.
26479         * modules/lchown (Depends-on): Likewise.
26480         * modules/openat (Depends-on): Likewise.
26481         * modules/savewd (Depends-on): Likewise.
26482         * modules/settime (Depends-on): Likewise.
26483         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26484
26485         fts: avoid leaking fds
26486         * modules/fts (Depends-on): Add cloexec.
26487         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26488         flag.
26489
26490         fts: make directory fds more robust
26491         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26492         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26493
26494         backupfile, chdir-long, fts, savedir: make safer
26495         * lib/backupfile.c (includes): Use "dirent--.h", since
26496         numbered_backup can write to stderr during readdir.
26497         * lib/savedir.c (includes): Likewise.
26498         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26499         emulation can write to stderr on failure.
26500         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26501         * lib/getcwd.c: Document why opendir_safer is unused.
26502         * lib/glob.c: Likewise.
26503         * lib/scandir.c: Likewise.
26504         * lib/openat-proc.c: Likewise, for open_safer.
26505         * modules/backupfile (Depends-on): Add dirent-safer.
26506         * modules/savedir (Depends-on): Likewise.
26507         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26508         * modules/chdir-long (Depends-on): Add openat-safer.
26509
26510         openat-safer: new module
26511         * modules/openat-safer: New file.
26512         * lib/openat-safer.c: Likewise.
26513         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26514         * lib/fcntl-safer.h (openat_safer): Declare.
26515         * lib/fcntl--.h (openat): Override.
26516         * MODULES.html.sh (File descriptor based I/O): Mention it.
26517         * lib/openat.h: Add double-inclusion guards.
26518         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26519         "fcntl--.h", so we can implement openat.
26520         * modules/openat-safer-tests: New test.
26521         * tests/test-openat-safer.c: New file.
26522
26523         dirent-safer: new module
26524         * modules/dirent-safer: New file.
26525         * lib/dirent--.h: Likewise.
26526         * lib/dirent-safer.h: Likewise.
26527         * lib/opendir-safer.c: Likewise.
26528         * m4/dirent-safer.m4: Likewise.
26529         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26530         * modules/dirent-safer-tests: New test.
26531         * tests/test-dirent-safer.c: New file.
26532         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26533
26534         fdopendir: optimize on mingw
26535         * lib/unistd.in.h (_gl_directory_name): New prototype.
26536         * lib/fchdir.c (_gl_directory_name): Implement it.
26537         (fchdir): Use it to simplify implementation.
26538         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26539         fchdir, when available, to avoid calling [f]chdir().
26540
26541         fdopendir: split into its own module
26542         * lib/openat.c (fdopendir): Move...
26543         * lib/fdopendir.c: ...into new file.
26544         * modules/fdopendir: New module.
26545         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
26546         * modules/openat (Depends-on): Add fdopendir.
26547         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
26548         fdopendir here.
26549         * modules/savedir (Depends-on): Only need fdopendir, not full
26550         openat.
26551         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
26552         * lib/openat.h (fdopendir): Drop prototype.
26553         * lib/dirent.in.h (fdopendir): Provide prototype.
26554         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
26555         * modules/dirent (Makefile.am): Substitute them.
26556         * MODULES.html.sh (File system functions): Mention it.
26557         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
26558         * modules/fdopendir-tests: New file.
26559         * tests/test-fdopendir.c: Likewise.
26560
26561         fchdir: use more consistent macro convention
26562         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
26563         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
26564         REPLACE_FCHDIR, rather than relying on config.h macros.
26565         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
26566         inside a single make-time REPLACE_FCHDIR block, rather than using
26567         the config.h FCHDIR_REPLACEMENT.
26568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
26569         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
26570         Manage fstat replacement.
26571         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
26572         REPLACE_FCHDIR.
26573         * modules/sys_stat (Files): Add m4/unistd_h.m4.
26574         (Makefile.am): Substitute REPLACE_FCHDIR.
26575         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
26576         FCHDIR_REPLACEMENT.
26577         * lib/dup-safer.c (dup_safer): Likewise.
26578         * lib/dup2.c (rpl_dup2): Likewise.
26579         * lib/dup3.c (rpl_dup3): Likewise.
26580         * lib/open.c (rpl_open): Likewise.
26581
26582         fchdir: simplify error handling, and support dup3
26583         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
26584         stdbool, malloc-posix, realloc-posix.
26585         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
26586         (ensure_dirs_slot): Return false on allocation failure.
26587         (rpl_dup2): Delete.
26588         (_gl_register_dup): New function.
26589         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
26590         (_gl_register_fd): Close fd on allocation failure.
26591         * lib/fcntl.in.h (_gl_register_fd): Update signature.
26592         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
26593         prototype.
26594         (rpl_dup2_fchdir): Delete prototype.
26595         * lib/open.c (open): Update caller.
26596         * lib/dup2.c (dup2): Track fchdir metadata.
26597         * lib/dup3.c (dup3): Likewise.
26598         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
26599         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
26600
26601 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26602
26603         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
26604         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
26605         don't pass arguments to AC_OUTPUT.
26606
26607 2009-09-02  Bruno Haible  <bruno@clisp.org>
26608
26609         * modules/mkdtemp (License): Relicense under LGPLv2+.
26610         Reported by Paolo Bonzini.
26611
26612 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26613
26614         Replace uses of obsolete autoconf macros in Jim's modules.
26615         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
26616         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
26617         can evoke a warning from autoconf when run with -Wobsolete
26618         enabled.  They were declared obsolete for good reasons (see
26619         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
26620         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
26621         should not continue using the deprecated macros.
26622         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
26623         obsolete Autoconf macros with modern counterparts.
26624         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26625         * m4/dos.m4 (gl_AC_DOS): Likewise.
26626         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
26627         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26628         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
26629         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
26630         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
26631         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
26632         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
26633         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
26634         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
26635         Likewise.
26636         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26637         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
26638         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
26639         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
26640         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
26641         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
26642
26643 2009-09-01  Eric Blake  <ebb9@byu.net>
26644
26645         fchdir: fix off-by-one bug in previous patch
26646         * lib/fchdir.c (rpl_fstat): Use correct bounds.
26647         (_gl_unregister_fd): Delete useless if.
26648
26649 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
26650
26651         maint.mk: sort the list of syntax-check rules
26652         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
26653         easier to get a sense of progress when the rules are run sequentially
26654         and take a long time.
26655
26656 2009-09-01  Simon Josefsson  <simon@josefsson.org>
26657
26658         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
26659         * modules/netinet_in: Likewise.
26660         * modules/sys_file: Likewise.
26661         * modules/sys_ioctl: Likewise.
26662         * modules/sys_select: Likewise.
26663         * modules/sys_socket: Likewise.
26664         * modules/sys_stat: Likewise.
26665         * modules/sys_time: Likewise.
26666         * modules/sys_times: Likewise.
26667         * modules/sys_utsname: Likewise.
26668         * modules/sys_wait: Likewise.
26669
26670 2009-09-01  Jim Meyering  <meyering@redhat.com>
26671
26672         fts: help ensure that return values are not ignored
26673         * lib/fts_.h (__GNUC_PREREQ): Define.
26674         (__attribute_warn_unused_result__): Define.
26675         (fts_children, fts_close, fts_open, fts_read): Declare with
26676         __attribute_warn_unused_result__.
26677
26678         fts: fts_close now fails also when closing a dir file descriptor fails
26679         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
26680         and propagate to caller, along with errno.
26681
26682         announce-gen: correct formatting in --help output
26683         * build-aux/announce-gen (usage): Move the one-line description in
26684         --help output "up", to where it belongs, just after Usage:.
26685
26686 2009-08-31  Eric Blake  <ebb9@byu.net>
26687
26688         fchdir: port to mingw
26689         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
26690         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
26691         opened, then use a substitute.
26692         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
26693         replacement.
26694         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
26695         (_gl_register_fd): No need to check stat if open already filters
26696         all directories.
26697         (fchdir): Fix error condition to match POSIX.
26698         * modules/fchdir (Depends-on): Add sys_stat.
26699         * doc/posix-functions/open.texi (open): Document the limitation.
26700         * modules/fchdir-tests: New file.
26701         * tests/test-fchdir.c: Likewise.
26702
26703         canonicalize: allow cross-testing from cygwin to mingw
26704         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
26705         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
26706         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
26707         Likewise.
26708         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
26709         target does not support symlinks.
26710         * tests/test-canonicalize-lgpl.sh: Likewise.
26711
26712         chown: avoid compilation warning on mingw
26713         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
26714         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
26715         mingw.
26716         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26717         * modules/chown (Depends-on): Add errno.
26718
26719 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26720
26721         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
26722         command.
26723
26724 2009-08-31  Jim Meyering  <meyering@redhat.com>
26725
26726         canonicalize: remove useless initialization
26727         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
26728         initialization of local, "end".
26729
26730 2009-08-30  Bruno Haible  <bruno@clisp.org>
26731
26732         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
26733         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
26734         ENOSYS.
26735
26736 2009-08-30  Bruno Haible  <bruno@clisp.org>
26737
26738         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
26739         /usr/xpg4/bin/tr when it exists.
26740         * tests/test-pipe-filter-gi1.sh: Likewise.
26741
26742 2009-08-30  Bruno Haible  <bruno@clisp.org>
26743
26744         Work around deficient /usr/bin/id program on Solaris.
26745         * tests/test-file-has-acl.sh (ID): New variable.
26746         * tests/test-set-mode-acl.sh (ID): Likewise.
26747         * tests/test-copy-acl.sh (ID): Likewise.
26748         * tests/test-copy-file.sh (ID): Likewise.
26749
26750 2009-08-30  Bruno Haible  <bruno@clisp.org>
26751
26752         New module 'xstriconveh'.
26753         * lib/xstriconveh.h: New file.
26754         * lib/xstriconveh.c: New file.
26755         * modules/xstriconveh: New file.
26756
26757 2009-08-30  Bruno Haible  <bruno@clisp.org>
26758
26759         Make it easier to use mem_cd_iconveh.
26760         * lib/striconveh.h (iconveh_t): New type.
26761         (iconveh_open, iconveh_close): New declarations.
26762         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26763         with a single 'const iconveh_t *' argument.
26764         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
26765         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
26766         with a single 'const iconveh_t *' argument.
26767         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
26768         * tests/test-striconveh.c (main): Update.
26769         * NEWS: Mention the change.
26770
26771 2009-08-30  Bruno Haible  <bruno@clisp.org>
26772
26773         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
26774         problem.
26775
26776 2009-08-30  Bruno Haible  <bruno@clisp.org>
26777
26778         Work around iconv_open problem on Solaris.
26779         * lib/iconv_open-solaris.gperf: New file.
26780         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
26781         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
26782         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
26783         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
26784         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
26785         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
26786
26787 2009-08-29  Jim Meyering  <meyering@redhat.com>
26788
26789         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
26790         * top/maint.mk (cvs-check): Remove target; it was just an alias
26791         to the better-named vc-diff-check.
26792         (maintainer-distcheck): Remove rule.  It was used only from
26793         the (alpha/beta/major) target, and all of its commands but one
26794         were coreutils-specific.
26795         (vc-dist): Remove rule.
26796         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
26797         Run vc-diff-check, not vc-dist.
26798         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
26799
26800 2009-08-27  Bruno Haible  <bruno@clisp.org>
26801
26802         * tests/test-bitrotate.c (main): Remove test that uses a shift count
26803         of 0.
26804
26805 2009-08-27  Bruno Haible  <bruno@clisp.org>
26806
26807         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
26808         compilers.
26809         * doc/func.texi: Document the SunPRO C bug.
26810
26811 2009-08-27  Bruno Haible  <bruno@clisp.org>
26812
26813         Fix link error on Solaris.
26814         * tests/test-parse-duration.c (xstrdup): Remove function.
26815
26816 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26817
26818         ignore-value: handle pointer types, too
26819         * lib/ignore-value.h (__attribute__): Remove definition.
26820         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26821         of a more concise and more-often effective "(void) i" statement.
26822         (ignore_ptr): New function to suppress warnings from functions that
26823         return pointers, and to make it explicit that one function doesn't
26824         handle all cases.
26825
26826 2009-08-25  Bruno Haible  <bruno@clisp.org>
26827
26828         dup2: work around a Linux bug.
26829         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26830         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26831         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26832         Reported by Simon Josefsson.
26833
26834 2009-08-25  Jim Meyering  <meyering@redhat.com>
26835
26836         libguestfs uses gnulib
26837         * users.txt: Add libguestfs.
26838
26839 2009-08-24  Eric Blake  <ebb9@byu.net>
26840
26841         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26842         * lib/pipe2.c (includes): Add binary-io.h.
26843         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26844
26845 2009-08-24  Bruno Haible  <bruno@clisp.org>
26846
26847         Tolerate declared but missing accept4 syscall.
26848         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26849         available.
26850         * lib/sys_socket.in.h (accept4): If the function is already present,
26851         override it.
26852         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26853         * modules/accept4 (Makefile.am): Compile accept4.c always.
26854         Reported by Paolo Bonzini and Eric Blake.
26855
26856 2009-08-23  Bruno Haible  <bruno@clisp.org>
26857
26858         New module 'accept4'.
26859         * lib/sys_socket.in.h (accept4): New declaration.
26860         * lib/accept4.c: New file.
26861         * m4/accept4.m4: New file.
26862         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26863         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26864         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26865         HAVE_ACCEPT4.
26866         * modules/accept4: New file.
26867         * doc/glibc-functions/accept4.texi: Mention the new module.
26868
26869 2009-08-24  Jim Meyering  <meyering@redhat.com>
26870
26871         progname: also set global program_invocation_name, when possible
26872         Before this change, a libtool-enabled program that calls glibc's
26873         error function would report the program name as
26874         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26875         * modules/progname (configure.ac): Check for a declaration of
26876         program_invocation_name.
26877         * lib/progname.c:  Include <errno.h>.
26878         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26879         Set program_invocation_name.
26880
26881 2009-08-23  Bruno Haible  <bruno@clisp.org>
26882
26883         * lib/dup3.c: Include <string.h>.
26884
26885 2009-08-23  Bruno Haible  <bruno@clisp.org>
26886
26887         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26888         * lib/pipe2.c (pipe2): Likewise.
26889         Suggested by Eric Blake.
26890
26891 2009-08-23  Bruno Haible  <bruno@clisp.org>
26892
26893         Tolerate declared but missing dup3 syscall.
26894         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26895         * lib/unistd.in.h (dup3): If the function is already present,
26896         override it.
26897         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26898         * modules/dup3 (Makefile.am): Compile dup3.c always.
26899         Reported by Paolo Bonzini.
26900
26901 2009-08-23  Bruno Haible  <bruno@clisp.org>
26902
26903         Tolerate declared but missing pipe2 syscall.
26904         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26905         available.
26906         * lib/unistd.in.h (pipe2): If the function is already present,
26907         override it.
26908         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26909         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26910         Reported by Paolo Bonzini.
26911
26912 2009-08-23  Bruno Haible  <bruno@clisp.org>
26913
26914         * lib/pipe2.c (pipe2): Move #ifs inside function.
26915
26916 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26917
26918         quotearg: document limitations of quote_these_too
26919         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26920         those limitations are created.
26921         * lib/quotearg.h (set_char_quoting): Document that digits and
26922         letters that are special after backslash are not permitted.
26923         (quotearg_char): Cross-reference set_char_quoting documentation.
26924
26925 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26926
26927         quotearg: implement custom_quoting_style
26928         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26929         right_quote fields.
26930         (set_custom_quoting): New public function.
26931         (quotearg_buffer_restyled): Add left_quote and right_quote
26932         arguments, handle them very much like locale quoting, and update
26933         all uses.
26934         (quotearg_n_custom): New public function.
26935         (quotearg_n_custom_mem): New public function.
26936         (quotearg_custom): New public function.
26937         (quotearg_custom_mem): New public function.
26938         * lib/quotearg.h: Prototype and document new public functions.
26939         (enum quoting_style): For escape_quoting_style and
26940         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26941         ignored even though they're otherwise like c_quoting_style.
26942         Add custom_quoting_style member and document with comparison to
26943         clocale_quoting_style.
26944         * tests/test-quotearg.c (custom_quotes): New array.
26945         (custom_results): New array.
26946         (main): Extend to test custom quoting.
26947
26948 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26949
26950         quotearg: fix right quote escaping when it's in quote_these_too
26951         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26952         quote, be sure to prepend only one backslash.
26953         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26954         (main): Test it.
26955
26956 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26957
26958         quotearg-tests: test escaping of embedded locale quotes
26959         * tests/test-quotearg.c (struct result_strings): Add member for
26960         new input.
26961         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26962         (inputs): Add new input.
26963         (results_g): Add expected results.
26964         (flag_results): Likewise.
26965         (locale_results): Likewise.
26966         (compare_strings): Check those.
26967
26968 2009-08-23  Bruno Haible  <bruno@clisp.org>
26969
26970         Tests for module 'dup3'.
26971         * modules/dup3-tests: New file.
26972         * tests/test-dup3.c: New file.
26973
26974         New module 'dup3'.
26975         * lib/unistd.in.h (dup3): New declaration.
26976         * lib/dup3.c: New file.
26977         * m4/dup3.m4: New file.
26978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26979         HAVE_DUP3.
26980         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26981         * modules/dup3: New file.
26982         * doc/glibc-functions/dup3.texi: Mention the new module.
26983
26984 2009-08-23  Bruno Haible  <bruno@clisp.org>
26985
26986         Tweak the dup2 test.
26987         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26988         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26989         the test file is still empty. Fix argument order of lseek.
26990
26991 2009-08-23  Bruno Haible  <bruno@clisp.org>
26992
26993         Avoid test link errors when the modules getopt-gnu, gettext are used.
26994         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26996
26997 2009-08-23  Bruno Haible  <bruno@clisp.org>
26998
26999         Fix getdtablesize() on mingw.
27000         * lib/getdtablesize.c (getdtablesize): Implement differently.
27001         * lib/unistd.in.h (getdtablesize): Improve comment.
27002
27003 2009-08-23  Bruno Haible  <bruno@clisp.org>
27004
27005         New module 'mkostemp'.
27006         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27007         * lib/stdlib.in.h (mksotemp): New declaration.
27008         * lib/mkostemp.c: New file, from glibc with modifications.
27009         * lib/tempname.h (GT_FILE): Remove outdated comment.
27010         (gen_tempname): Add flags argument.
27011         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27012         (__GT_FILE): Map to 1.
27013         (small_open, large_open): Remove macros.
27014         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27015         * lib/mkstemp.c (mkstemp): Update.
27016         * lib/mkdtemp.c (mkdtemp): Likewise.
27017         * m4/mkostemp.m4: New file.
27018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27019         HAVE_MKOSTEMP.
27020         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27021         HAVE_MKOSTEMP.
27022         * modules/mkostemp: New file, based on modules/mkstemp.
27023         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27024         * NEWS: Mention the change.
27025
27026 2009-08-23  Bruno Haible  <bruno@clisp.org>
27027
27028         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27029         Reported by Eric Blake.
27030
27031 2009-08-23  Bruno Haible  <bruno@clisp.org>
27032
27033         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27034         Reported by Eric Blake.
27035
27036 2009-08-23  Bruno Haible  <bruno@clisp.org>
27037
27038         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27039         * modules/pipe2 (Depends-on): Likewise.
27040
27041 2009-08-23  Eric Blake  <ebb9@byu.net>
27042
27043         fcntl-h: add O_TTY_INIT support
27044         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27045         * tests/test-fcntl-h.c (o): Test it.
27046         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27047
27048         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27049         * modules/fcntl: Move <fcntl.h> header replacement...
27050         * modules/fcntl-h: ...to new name, so as not to collide with
27051         like-named function.
27052         * tests/test-fcntl.c: Rename...
27053         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27054         * modules/fcntl-tests: Rename...
27055         * modules/fcntl-h-tests: ...to this.  Update test file name.
27056         * modules/chdir-long (Depends-on): Update clients.
27057         * modules/chdir-safer (Depends-on): Likewise.
27058         * modules/fcntl-safer (Depends-on): Likewise.
27059         * modules/fts (Depends-on): Likewise.
27060         * modules/mkancesdirs (Depends-on): Likewise.
27061         * modules/mkdir-p (Depends-on): Likewise.
27062         * modules/open (Depends-on): Likewise.
27063         * modules/savewd (Depends-on): Likewise.
27064         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27065         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27066
27067 2009-08-22  Bruno Haible  <bruno@clisp.org>
27068
27069         * modules/binary-io (License): Relicense under LGPL.
27070         * modules/pipe2 (License): Likewise.
27071
27072 2009-08-22  Bruno Haible  <bruno@clisp.org>
27073
27074         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27075         return value.
27076         * lib/pipe-filter-gi.c (filter_init): Likewise.
27077         Reported by Eric Blake.
27078
27079 2009-08-22  Bruno Haible  <bruno@clisp.org>
27080
27081         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27082         * modules/pipe (Depends-on): Add pipe2.
27083
27084 2009-08-22  Bruno Haible  <bruno@clisp.org>
27085
27086         Tests for module 'pipe2'.
27087         * modules/pipe2-tests: New file.
27088         * tests/test-pipe2.c: New file.
27089
27090         New module 'pipe2'.
27091         * lib/unistd.in.h (pipe2): New declaration.
27092         * lib/pipe2.c: New file.
27093         * m4/pipe2.m4: New file.
27094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27095         HAVE_PIPE2.
27096         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27097         * modules/pipe2: New file.
27098         * doc/glibc-functions/pipe2.texi: Mention the new module.
27099
27100 2009-08-22  Bruno Haible  <bruno@clisp.org>
27101
27102         Reference some new glibc functions.
27103         * doc/glibc-functions/accept4.texi: New file.
27104         * doc/glibc-functions/dup3.texi: New file.
27105         * doc/glibc-functions/mkostemp.texi: New file.
27106         * doc/glibc-functions/pipe2.texi: New file.
27107         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27108         (Glibc sys/socket.h): Refer to accept4.
27109         (Glibc unistd.h): Refer to dup3, pipe2.
27110         Reported by Eric Blake.
27111
27112 2009-08-22  Jim Meyering  <meyering@redhat.com>
27113             Bruno Haible  <bruno@clisp.org>
27114
27115         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27116         This makes it so packages using automake-1.11's silent-rules option
27117         can print e.g., a single "GEN    configmake.h" line, rather than
27118         the 30+ statements that perform the job.  If you want to see the
27119         actual commands, you can still run "make V=1".
27120         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27121         so that make output is abbreviated when those variables are defined
27122         appropriately.
27123         * modules/argz: Likewise.
27124         * modules/arpa_inet: Likewise.
27125         * modules/byteswap: Likewise.
27126         * modules/configmake: Likewise.
27127         * modules/dirent: Likewise.
27128         * modules/errno: Likewise.
27129         * modules/fcntl: Likewise.
27130         * modules/float: Likewise.
27131         * modules/fnmatch: Likewise.
27132         * modules/getopt-posix: Likewise.
27133         * modules/glob: Likewise.
27134         * modules/iconv_open: Likewise.
27135         * modules/inttypes: Likewise.
27136         * modules/localcharset: Likewise.
27137         * modules/locale: Likewise.
27138         * modules/math: Likewise.
27139         * modules/netdb: Likewise.
27140         * modules/netinet_in: Likewise.
27141         * modules/poll: Likewise.
27142         * modules/posix_spawnp-tests: Likewise.
27143         * modules/sched: Likewise.
27144         * modules/search: Likewise.
27145         * modules/selinux-h: Likewise.
27146         * modules/signal: Likewise.
27147         * modules/spawn: Likewise.
27148         * modules/stdarg: Likewise.
27149         * modules/stdbool: Likewise.
27150         * modules/stddef: Likewise.
27151         * modules/stdint: Likewise.
27152         * modules/stdio: Likewise.
27153         * modules/stdlib: Likewise.
27154         * modules/string: Likewise.
27155         * modules/strings: Likewise.
27156         * modules/sys_file: Likewise.
27157         * modules/sys_ioctl: Likewise.
27158         * modules/sys_select: Likewise.
27159         * modules/sys_socket: Likewise.
27160         * modules/sys_stat: Likewise.
27161         * modules/sys_time: Likewise.
27162         * modules/sys_times: Likewise.
27163         * modules/sys_utsname: Likewise.
27164         * modules/sys_wait: Likewise.
27165         * modules/sysexits: Likewise.
27166         * modules/time: Likewise.
27167         * modules/unistd: Likewise.
27168         * modules/wchar: Likewise.
27169         * modules/wctype: Likewise.
27170
27171 2009-08-22  Jim Meyering  <meyering@redhat.com>
27172
27173         announce-gen: detect write failure
27174         * build-aux/announce-gen: Add Coda at end.
27175         Remove equivalent-but-more-verbose block at top.
27176
27177 2009-08-19  Akim Demaille  <demaille@gostai.com>
27178
27179         bootstrap: --help to stdout.
27180         * bootstrap (usage): Don't send --help to stderr.
27181         Use a here doc instead of a long string.
27182
27183 2009-08-21  Eric Blake  <ebb9@byu.net>
27184
27185         test-popen-safer: split from test-popen
27186         * tests/test-popen.c (main): Move...
27187         * tests/test-popen.h: ...into new file.
27188         * tests/test-popen-safer2.c: New file.
27189         * modules/popen-tests (Files): Add test-popen.h.
27190         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27191         Suggested by Bruno Haible.
27192
27193         test-fcntl-safer: split from test-open
27194         * tests/test-open.c (main): Move...
27195         * tests/test-open.h: ...into new file.
27196         * tests/test-fcntl-safer.c: New file.
27197         * modules/open-tests (Files): Add test-open.h.
27198         * modules/fcntl-safer-tests: New file.
27199         Suggested by Bruno Haible.
27200
27201         test-fopen-safer: split from test-fopen
27202         * tests/test-fopen.c (main): Move...
27203         * tests/test-fopen.h: ...into new file.
27204         * tests/test-fopen-safer.c: New file.
27205         * modules/fopen-tests (Files): Add test-fopen.h.
27206         * modules/fopen-safer-tests: New file.
27207         Suggested by Bruno Haible.
27208
27209 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27210
27211         popen-safer: test O_CLOEXEC at run-time.
27212         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27213
27214 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27215
27216         fcntl: move more flags to the header
27217         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27218         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27219         * lib/fcntl.in.h: Do both things here.
27220
27221 2009-08-21  Jim Meyering  <meyering@redhat.com>
27222
27223         consistently remove $@-t before redirecting to it
27224         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27225         * modules/alloca-opt: Likewise.
27226         * modules/byteswap: Likewise.
27227         * modules/fnmatch: Likewise.
27228         * modules/getopt-posix: Likewise.
27229         * modules/glob: Likewise.
27230         * modules/poll: Likewise.
27231         * modules/posix_spawnp-tests: Likewise.
27232         * modules/sys_socket: Likewise.
27233         * modules/sysexits: Likewise.
27234
27235 2009-08-21  Eric Blake  <ebb9@byu.net>
27236
27237         popen: simplify access to original popen
27238         * lib/popen.c (rpl_popen): No need to worry about popen being a
27239         macro.
27240         Reported by Bruno Haible.
27241
27242 2009-08-20  Eric Blake  <ebb9@byu.net>
27243
27244         build: avoid some compiler warnings
27245         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27246         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27247         type.
27248         (new_exclude_segment, excluded_file_pattern_p)
27249         (excluded_file_name_p): Reduce scope.
27250         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27251         old-style declaration.
27252
27253 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27254
27255         * tests/test-exclude1.sh: Handle Windows EOL.
27256         * tests/test-exclude2.sh: Likewise.
27257         * tests/test-exclude3.sh: Likewise.
27258         * tests/test-exclude4.sh: Likewise.
27259         * tests/test-exclude5.sh: Likewise.
27260         * tests/test-exclude6.sh: Likewise.
27261         * tests/test-exclude7.sh: Likewise.
27262
27263 2009-08-19  Akim Demaille  <demaille@gostai.com>
27264
27265         bootstrap: find sha1sum when named gsha1sum.
27266         * bootstrap (find_tool): New.
27267         ($SHA1SUM): New.
27268         Use it.
27269
27270 2009-08-20  Jim Meyering  <meyering@redhat.com>
27271
27272         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27273         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27274         expression that converts "." in a file name to "\." in the resulting
27275         regexp.  Start with a dummy statement, so that prior shell variable
27276         definitions are expanded portably.  Reported by Simon Josefsson.
27277
27278 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27279
27280         Fix polling for writeability of a screen buffer.
27281         * lib/poll.c: Distinguish input and screen buffers for the
27282         Win32 implementation.
27283         * lib/select.c: Likewise.
27284
27285 2009-08-19  Eric Blake  <ebb9@byu.net>
27286
27287         popen-safer: prevent popen from clobbering std descriptors
27288         * modules/popen-safer: New file.
27289         * lib/popen-safer.c: Likewise.
27290         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27291         * lib/stdio--.h (popen): Provide override.
27292         * lib/stdio-safer.h (popen_safer): Provide declaration.
27293         * tests/test-popen.c (includes): Partially test this.
27294         * modules/popen-safer-tests: New file, for more tests.
27295         * tests/test-popen-safer.c: Likewise.
27296         * MODULES.html.sh (file stream based Input/Output): Mention it.
27297
27298         tests: test some of the *-safer modules
27299         * modules/fopen-safer (Depends-on): Add fopen.
27300         * modules/fcntl-safer (Depends-on): Add fcntl.
27301         * modules/stdlib-safer (Depends-on): Add stdlib.
27302         (configure.ac): Set indicator.
27303         * modules/unistd-safer (configure.ac): Likewise.
27304         * modules/tmpfile-safer (configure.ac): Likewise.
27305         (Depends-on): Add tmpfile.
27306         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27307         active.
27308         * tests/test-fopen.c (includes): Test safer versions when they are
27309         in use.
27310         * tests/test-open.c (includes): Likewise.
27311
27312         popen: fix cygwin 1.5 bug when stdin closed
27313         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27314         * modules/popen: New file.
27315         * modules/popen-tests: Likewise.
27316         * tests/test-popen.c: Likewise.
27317         * m4/popen.m4: Likewise.
27318         * lib/popen.c: Likewise.
27319         * lib/stdio.in.h (popen): New declaration.
27320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27321         * modules/stdio (Makefile.am): Likewise.
27322         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27323
27324 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27325
27326         maint.mk: give full control over update-copyright exclusions
27327         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27328         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27329         (update-copyright): Don't force inclusion of top-level
27330         ChangeLog.  Don't force exclusion of all COPYING files, but make
27331         them the default exclusion instead.
27332
27333 2009-08-16  Bruno Haible  <bruno@clisp.org>
27334
27335         Fix test failures on Solaris 10.
27336         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27337         tests when Solaris iconv() is used.
27338         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27339         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27340         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27341         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27342         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27343
27344 2009-08-16  Bruno Haible  <bruno@clisp.org>
27345
27346         Fix test failures on Solaris 10.
27347         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27348         'tr' program and pass it as first argument.
27349         * tests/test-pipe-filter-gi1.sh: Likewise.
27350         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27351         program as first argument.
27352         * tests/test-pipe-filter-gi1.c (main): Likewise.
27353
27354 2009-08-16  Eric Blake  <ebb9@byu.net>
27355
27356         fpurge: fix previous commits
27357         * modules/fpurge (Makefile.am): Make replacement conditional,
27358         partially reverting 2007-04-29 change; missed in previous
27359         attempt.
27360         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27361         is missing.
27362
27363 2009-08-16  Bruno Haible  <bruno@clisp.org>
27364
27365         Clarify fpurge's effect on the file position.
27366         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27367         * tests/test-fpurge.c (main): Make a second pass for checking the file
27368         position.
27369
27370 2009-08-16  Bruno Haible  <bruno@clisp.org>
27371
27372         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27373         declaration of fpurge is missing.
27374         * tests/test-fpurge.c (main): Check that the file has not more contents
27375         than expected. Close the file before removing it.
27376
27377 2009-08-15  Eric Blake  <ebb9@byu.net>
27378
27379         fpurge: don't wrap working cygwin implementation
27380         * lib/fpurge.c (fpurge): Fix comment typo.
27381         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27382         1.7 to avoid replacement.
27383         * tests/test-fpurge.c (main): Enhance test.
27384
27385 2009-08-15  Eric Blake  <ebb9@byu.net>
27386         and Jim Meyering  <meyering@redhat.com>
27387
27388         test-update-copyright: skip if perl is insufficient
27389         * tests/test-update-copyright.sh: Failure to run maintainer tool
27390         should not cause testsuite failure on cygwin 1.5.
27391
27392 2009-08-14  Eric Blake  <ebb9@byu.net>
27393
27394         doc: mention more functions added in cygwin 1.7.0
27395         * doc/posix-headers/limits.texi (limits.h): Update for recent
27396         cygwin additions.
27397         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27398         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27399         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27400         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27401         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27402
27403 2009-08-14  Eric Blake  <ebb9@byu.net>
27404
27405         maint.mk: simplify update-copyright rule
27406         * top/maint.mk (update-copyright-local): Delete, and document how
27407         to do it in cfg.mk instead.
27408         (update-copyright-exclude-regexp): Delete, and document how to do
27409         it in .x-update-copyright instead.
27410         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27411         exclude ChangeLog.
27412
27413 2009-08-14  Bruno Haible  <bruno@clisp.org>
27414
27415         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27416
27417 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27418
27419         maint.mk: support update-copyright-env
27420         * top/maint.mk (update-copyright-env): Define place-holder.
27421         (update-copyright): Expand $(update-copyright-env) before
27422         invoking update-copyright.
27423
27424 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27425
27426         update-copyright: implement forced reformatting
27427         * build-aux/update-copyright: Implement and document
27428         UPDATE_COPYRIGHT_FORCE.
27429         * tests/test-update-copyright.sh: Test it.
27430
27431 2009-08-14  Eric Blake  <ebb9@byu.net>
27432         and Bruno Haible  <bruno@clisp.org>
27433
27434         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27435         * tests/test-locale.c: Revert previous patch related to NULL.
27436         * tests/test-stdio.c: Likewise.
27437         * tests/test-stdlib.c: Likewise.
27438         * tests/test-string.c: Likewise.
27439         * tests/test-unistd.c: Likewise.
27440         * modules/time-tests (Depends-on): Add verify.
27441         * modules/wchar-tests (Depends-on): Likewise.
27442         * tests/test-time.c: Test for NULL compliance.
27443         * tests/test-wchar.c: Likewise.
27444         * modules/locale (Depends-on): Add stddef.
27445         * modules/stdio (Depends-on): Likewise.
27446         * modules/stdlib (Depends-on): Likewise.
27447         * modules/string (Depends-on): Likewise.
27448         * modules/time (Depends-on): Likewise.
27449         * modules/unistd (Depends-on): Likewise.
27450         * modules/wchar (Depends-on): Likewise.
27451         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27452         * lib/stdlib.in.h (includes): Likewise.
27453         * lib/string.in.h (includes): Likewise.
27454         * lib/time.in.h (includes): Likewise.
27455         * lib/unistd.in.h (includes): Likewise.
27456         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27457         replaced.
27458         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27459         * m4/stddef_h.m4: New file.
27460         * modules/stddef: Likewise.
27461         * lib/stddef.in.h: Likewise.
27462         * modules/stddef-tests: Likewise.
27463         * tests/test-stddef.c: Likewise.
27464         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27465         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27466         * doc/posix-headers/locale.texi (locale.h): Likewise.
27467         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27468         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27469         * doc/posix-headers/string.texi (string.h): Likewise.
27470         * doc/posix-headers/time.texi (time.h): Likewise.
27471         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27472         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27473
27474 2009-08-14  Eric Blake  <ebb9@byu.net>
27475
27476         doc: improve git diff of texinfo files
27477         * .gitattributes: Add rule for *.texi files, with hint on how to
27478         use it.
27479         Copied from m4, and based on a report by Bruno Haible.
27480
27481 2009-08-14  Bruno Haible  <bruno@clisp.org>
27482
27483         Disable multithread support by default on Cygwin 1.5.x for real.
27484         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27485
27486 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27487
27488         update-copyright: much ado about intervals
27489         * build-aux/update-copyright: Implement and document
27490         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27491         of copyright year intervals.
27492         Also, document UPDATE_COPYRIGHT_YEAR.
27493         * tests/test-update-copyright.sh: Test it.
27494
27495         update-copyright: convert 2-digit to 4-digit years
27496         * build-aux/update-copyright: Implement and document.
27497         * tests/test-update-copyright.sh: Update.
27498
27499 2009-08-14  Jim Meyering  <meyering@redhat.com>
27500
27501         test-exclude: avoid coreutils "make check" failure
27502         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27503         just as in test-argmatch.c.
27504
27505 2009-08-13  Eric Blake  <ebb9@byu.net>
27506
27507         test-dup2: fix bad assumption
27508         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27509         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27510
27511         test-version-etc: fix CRLF portability issue
27512         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27513         recognize \r.
27514         * tests/test-argp-version-etc-1.sh: Likewise.
27515
27516         getopt: update client modules
27517         * modules/argp (Depends-on): Use getopt-gnu.
27518         * modules/git-merge-changelog (Depends-on): Likewise.
27519         * modules/long-options (Depends-on): Likewise.
27520         * modules/xstrtol (Depends-on): Likewise.
27521
27522 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27523
27524         * tests/test-version-etc.sh: Don't fail on different
27525         project/version.  Don't fail on CRLF differences.  Rewrite to use
27526         multiple -e instead of multiple sed forks, suggested by Eric Blake
27527         <ebb9@byu.net>.
27528         * tests/test-argp-version-etc-1.sh: Likewise.
27529
27530 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27531
27532         * tests/test-version-etc.sh: Don't fail on different
27533         project/version.
27534
27535 2009-08-12  Bruno Haible  <bruno@clisp.org>
27536
27537         Tests for modules 'getopt-posix', 'getopt-gnu'.
27538         * modules/getopt-posix-tests: New file.
27539         * tests/test-getopt.c: New file.
27540         * tests/test-getopt.h: New file.
27541         * tests/test-getopt_long.h: New file.
27542
27543         New modules 'getopt-posix', 'getopt-gnu'.
27544         * modules/getopt-gnu: New file, renamed from modules/getopt.
27545         * modules/getopt-posix: New file.
27546         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
27547         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
27548         (gl_GETOPT): Remove macro.
27549         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
27550         Disable the test against BSD systems that declare optreset. Test
27551         against mingw bug. Test against lack of support of optional arguments
27552         on many platforms.
27553         * doc/glibc-headers/getopt.texi: Update module name and list of
27554         relevant platforms.
27555         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
27556         'getopt-gnu' and more portability problems.
27557         * NEWS: Mention the changes.
27558
27559 2009-08-12  Bruno Haible  <bruno@clisp.org>
27560
27561         Ensure that optarg etc. get declared by <unistd.h>.
27562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
27563         AC_USE_SYSTEM_EXTENSIONS.
27564         * modules/getopt (Depends-on): Add 'extensions'.
27565
27566 2009-08-12  Bruno Haible  <bruno@clisp.org>
27567
27568         Avoid test link errors.
27569         * modules/pipe-filter-ii-tests (Makefile.am): Define
27570         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
27571         * modules/pipe-filter-gi-tests (Makefile.am): Define
27572         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
27573         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27574
27575 2009-08-12  Bruno Haible  <bruno@clisp.org>
27576
27577         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
27578         gl_GETOPT_SUBSTITUTE before.
27579         (gl_GETOPT): Use it.
27580         * m4/argp.m4 (gl_ARGP): Update.
27581         Reported by Sergey Poznyakoff.
27582
27583         * m4/getopt.m4: Reorder macros.
27584         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
27585         (gl_GETOPT_SUBSTITUTE): Remove macro.
27586
27587 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27588
27589         Minor improvement in gitlog-to-changelog
27590
27591         * build-aux/gitlog-to-changelog: New option `--format' makes
27592         output format string configurable.
27593
27594 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27595
27596         Optimize exclude: use hash tables for non-wildcard patterns.
27597
27598         * lib/exclude.c: Include hash.h and mbuiter.h
27599         (struct exclude_pattern, exclude_segment): New data types.
27600         (struct exclude): Rewrite.
27601         (fnmatch_pattern_has_wildcards): New function.
27602         (new_exclude_segment, free_exclude_segment): New functions.
27603         (excluded_file_pattern_p, excluded_file_name_p): New functions.
27604         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
27605         * lib/exclude.h (is_fnmatch_pattern): New prototype.
27606         * modules/exclude: Depend on hash and mbuiter.
27607
27608         * modules/exclude-tests: New file.
27609         * tests/test-exclude.c: New file.
27610         * tests/test-exclude1.sh: New file.
27611         * tests/test-exclude2.sh: New file.
27612         * tests/test-exclude3.sh: New file.
27613         * tests/test-exclude4.sh: New file.
27614         * tests/test-exclude5.sh: New file.
27615         * tests/test-exclude6.sh: New file.
27616         * tests/test-exclude7.sh: New file.
27617
27618 2009-08-12  Bruno Haible  <bruno@clisp.org>
27619
27620         Ensure that getopt() gets declared by <unistd.h>.
27621         * lib/unistd.in.h: Conditionally include getopt.h.
27622         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
27623         Set GNULIB_UNISTD_H_GETOPT.
27624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27625         GNULIB_UNISTD_H_GETOPT.
27626         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
27627
27628 2009-08-12  Bruno Haible  <bruno@clisp.org>
27629
27630         Clarify logic.
27631         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
27632         gl_replace_getopt instead of GETOPT_H.
27633
27634 2009-08-12  Bruno Haible  <bruno@clisp.org>
27635
27636         * m4/getopt.m4: Add comments.
27637
27638 2009-08-12  Bruno Haible  <bruno@clisp.org>
27639
27640         Disable multithread support by default on Cygwin 1.5.x.
27641         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
27642         set gl_use_threads=no if not specified otherwise.
27643
27644 2009-08-11  Bruno Haible  <bruno@clisp.org>
27645
27646         Avoid compilation error on NetBSD 5.0.
27647         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
27648         * tests/test-stdio.c: Likewise.
27649         * tests/test-stdlib.c: Likewise.
27650         * tests/test-string.c: Likewise.
27651         * tests/test-unistd.c: Likewise.
27652         Reported by Greg Troxel <gdt@ir.bbn.com>
27653         at <https://savannah.gnu.org/support/?106973>.
27654
27655 2009-08-11  Bruno Haible  <bruno@clisp.org>
27656
27657         * modules/dup2-tests (Depends-on): Remove close.
27658
27659         Undo 2009-07-19 commit.
27660         * modules/acl-tests (Depends-on): Remove close.
27661         * modules/binary-io-tests (Depends-on): Likewise.
27662         * modules/closein-tests (Depends-on): Likewise.
27663         * modules/flock-tests (Depends-on): Likewise.
27664         * modules/fsync-tests (Depends-on): Likewise.
27665         * modules/lseek-tests (Depends-on): Likewise.
27666         * modules/pipe-tests (Depends-on): Likewise.
27667         * modules/posix_spawn-tests (Depends-on): Likewise.
27668         * modules/posix_spawnp-tests (Depends-on): Likewise.
27669         * modules/stat-time-tests (Depends-on): Likewise.
27670         * modules/yesno-tests (Depends-on): Likewise.
27671
27672 2009-08-10  Bruno Haible  <bruno@clisp.org>
27673
27674         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
27675
27676 2009-08-10  Bruno Haible  <bruno@clisp.org>
27677
27678         Fix a gcc warning.
27679         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
27680
27681 2009-08-10  Bruno Haible  <bruno@clisp.org>
27682
27683         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
27684         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
27685         not only the first time.
27686         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
27687         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
27688         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
27689         is 1, not only the the first time.
27690
27691 2009-08-10  Bruno Haible  <bruno@clisp.org>
27692
27693         Make it possible to use module 'gethostname' without module 'close'.
27694         * lib/unistd.in.h (close): Evoke a link error only if
27695         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27697         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27698         * modules/unistd (Makefile.am): Substitute
27699         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27700         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
27701         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
27702         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27703         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27704         * modules/sys_ioctl (Makefile.am): Substitute
27705         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27706         * modules/socket (configure.ac): On native Windows, set
27707         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
27708         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
27709         Reported by Sam Steingold <sds@gnu.org>.
27710
27711 2009-08-10  Bruno Haible  <bruno@clisp.org>
27712
27713         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
27714         * modules/ioctl (configure.ac): Likewise.
27715
27716 2009-08-10  Bruno Haible  <bruno@clisp.org>
27717
27718         Avoid collision between gnulib wrapper and libintl wrapper.
27719         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
27720         already defined in intl/printf.c.
27721         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
27722         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
27723
27724 2009-08-09  Bruno Haible  <bruno@clisp.org>
27725
27726         Make <sys/select.h> really self-contained, also on Solaris 10.
27727         * lib/sys_select.in.h: Include <string.h>.
27728         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
27729         Solaris 10 problem.
27730         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
27731         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
27732         Reported by Jim Meyering.
27733
27734 2009-08-09  Bruno Haible  <bruno@clisp.org>
27735
27736         Avoid warnings from 'aclocal' that are due to a use of macro name
27737         AM_XGETTEXT_OPTION that is not defined in automake.
27738         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
27739         automake.
27740         * modules/error (configure.ac): Likewise.
27741         * modules/propername (configure.ac): Likewise.
27742         * modules/vasprintf (configure.ac): Likewise.
27743         * modules/verror (configure.ac): Likewise.
27744         * modules/xprintf (configure.ac): Likewise.
27745         * modules/xvasprintf (configure.ac): Likewise.
27746
27747 2009-08-08  Bruno Haible  <bruno@clisp.org>
27748
27749         Avoid compilation error in C++ mode.
27750         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
27751         Reported by Sam Steingold <sds@gnu.org>.
27752
27753 2009-08-08  Bruno Haible  <bruno@clisp.org>
27754
27755         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
27756         for the various Unix platforms.
27757         * doc/posix-headers/limits.texi: Update platforms list regarding
27758         HOST_NAME_MAX.
27759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27760
27761 2009-08-07  Jim Meyering  <meyering@redhat.com>
27762
27763         selinux-at: fix typo in a comment
27764         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
27765         Spotted by Paolo Bonzini.
27766
27767         selinux-at: remove redundant m4 code, add documentation
27768         * modules/selinux-at (configure.ac): Remove redundant code.
27769         LIB_SELINUX is already set via the dependent module, selinux-h.
27770         (Include): Add quotes around selinux-at.h.
27771         * lib/selinux-at.h: Add documentation.
27772         Reported by Bruno Haible in
27773         http://marc.info/?l=gnulib-bug&m=124958988300749
27774
27775 2009-08-07  Bruno Haible  <bruno@clisp.org>
27776
27777         Avoid link error on MacOS X 10.3 and 10.4.
27778         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
27779         on non-ELF systems.
27780         * lib/argp-pv.c (argp_program_version): Likewise.
27781         Reported by Simon Josefsson.
27782
27783 2009-08-07  Simon Josefsson  <simon@josefsson.org>
27784
27785         * tests/test-version-etc.sh: Use $EXEEXT.
27786
27787 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
27788
27789         update-copyright: update documentation to point to maint.mk
27790         * build-aux/update-copyright: Here.
27791
27792 2009-08-06  Jim Meyering  <meyering@redhat.com>
27793
27794         maint.mk: support update-copyright-local
27795         * top/maint.mk (update-copyright-local): Define place-holder.
27796         (update-copyright): Depend on $(update-copyright-local).
27797
27798 2009-08-06  Jim Meyering  <meyering@redhat.com>
27799
27800         selinux-at: new module
27801         Initially written for coreutils, this module will soon be
27802         used by findutils, too.
27803         * MODULES.html.sh [Misc]: Add selinux-at.
27804         * lib/selinux-at.h: New file, from coreutils.
27805         * lib/selinux-at.c: Likewise.
27806         * modules/selinux-at: Likewise.
27807         (License): Change from LGPL to GPL, since it depends
27808         on the GPL'd openat module.
27809
27810         doc: update README
27811         * README: Remove references to cogito.
27812         Remove cvs-repo-updating instructions from 2007.
27813         Don't imply that CVS is better if you have limited disk space.
27814
27815 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27816
27817         update-copyright: support C-style comments
27818         * build-aux/update-copyright: Implement and document.
27819         * tests/test-update-copyright.sh: Test.
27820
27821 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27822
27823         update-copyright: support omitted "(C)"
27824         * build-aux/update-copyright: Implement and document.  Also,
27825         allow variable whitespace before "(C)".
27826         * tests/test-update-copyright.sh: Test.
27827
27828 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27829
27830         update-copyright: don't trip on non-FSF copyright statements
27831         * build-aux/update-copyright: Fix so that the first correctly
27832         formatted FSF copyright statement is recognized no matter what
27833         appears before it.  Update documentation.
27834         * tests/test-update-copyright.sh: Test that.
27835
27836 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27837
27838         update-copyright: clean up code a little
27839         * build-aux/update-copyright: Append "_re" to the name of any
27840         variable holding a regular expression.
27841         Replace "old" and "new" with "stmt" in variable names.
27842         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27843         handled correctly.
27844         Format code more consistently.
27845
27846 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27847
27848         update-copyright-tests: improve portability
27849         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27850         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27851
27852 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27853
27854         update-copyright: support @copyright{} and &copy;
27855         * build-aux/update-copyright: Implement and document.
27856         * tests/test-update-copyright.sh: Test.
27857
27858 2009-08-04  Jim Meyering  <meyering@redhat.com>
27859
27860         update-copyright-tests: correctly test EOL=\r\n handling
27861         * tests/test-update-copyright.sh: Put \r at the end of some lines
27862         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27863
27864         maint.mk: make update-copyright exclusion list more configurable
27865         * top/maint.mk (update-copyright): Default to excluding COPYING,
27866         but allow an override, in case someone does want to update that file.
27867
27868         maint.mk: don't update copyright date in COPYING
27869         * top/maint.mk (update-copyright): Exclude COPYING.
27870
27871         maint.mk: add a copyright-updating rule
27872         * top/maint.mk (update-copyright): New rule.
27873         Derived from coreutils/Makefile.am.
27874
27875         update-copyright: rename some variables
27876         * build-aux/update-copyright: Rename a few variables for clarity.
27877         Tweak syntax.  List Joel E. Denny as coauthor.
27878
27879 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27880
27881         update-copyright: fix bug for 2-digit last year and add tests
27882         * build-aux/update-copyright: Fix bug.
27883         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27884         specified.
27885         * modules/update-copyright-tests: New
27886         * tests/test-update-copyright.sh: New.
27887
27888 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27889
27890         update-copyright: handle leading tabs in line prefix
27891         * build-aux/update-copyright: Count leading tabs as 8 spaces
27892         when computing margin.  This helps with the formatting of
27893         ChangeLogs, for example.
27894         Fix documentation a little.
27895
27896 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27897
27898         update-copyright: support EOL=\r\n
27899         * build-aux/update-copyright: Implement that.
27900
27901 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27902
27903         update-copyright: automatically format copyright statements
27904         * build-aux/update-copyright: Implement that.
27905         Also, be a little more predictable and safer by always failing
27906         when the full copyright format is not perfectly recognized as an
27907         unbroken whole.  Discussed at
27908         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27909         Rewrite documentation.
27910
27911 2009-08-03  Bruno Haible  <bruno@clisp.org>
27912
27913         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27914
27915 2009-08-02  Bruno Haible  <bruno@clisp.org>
27916
27917         Tests for module 'uname'.
27918         * modules/uname-tests: New file.
27919         * tests/test-uname.c: New file.
27920
27921         New module 'uname'.
27922         * lib/uname.c: New file.
27923         * m4/uname.m4: New file.
27924         * modules/uname: New file.
27925         * doc/posix-functions/uname.texi: Mention the new module.
27926
27927 2009-08-02  Bruno Haible  <bruno@clisp.org>
27928
27929         Tests for module 'sys_utsname'.
27930         * modules/sys_utsname-tests: New file.
27931         * tests/test-sys_utsname.c: New file.
27932
27933         New module 'sys_utsname'.
27934         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27935         * m4/sys_utsname_h.m4: New file.
27936         * modules/sys_utsname: New file.
27937         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27938
27939 2009-08-02  Bruno Haible  <bruno@clisp.org>
27940
27941         Implicitly initialize the sockets library.
27942         * lib/gethostname.c: Include sockets.h.
27943         (rpl_gethostname): Invoke gl_sockets_startup.
27944         * lib/socket.c: Include sockets.h.
27945         (rpl_socket): Invoke gl_sockets_startup.
27946         * modules/gethostname (Depends-on): Add sockets.
27947         * modules/socket (Depends-on): Likewise.
27948         * tests/test-poll.c: Don't include sockets.h.
27949         (main): Don't invoke gl_sockets_startup.
27950         * tests/test-select.c: Don't include sockets.h.
27951         (main): Don't invoke gl_sockets_startup.
27952
27953 2009-08-02  Bruno Haible  <bruno@clisp.org>
27954
27955         Allow multiple calls to gl_sockets_startup.
27956         * lib/sockets.c (initialized_sockets_version): New variable.
27957         (gl_sockets_startup): Do nothing if already called for this or a higher
27958         version.
27959         (gl_sockets_cleanup): Reset initialized_sockets_version.
27960
27961 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27962
27963         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27964         different project/version.
27965
27966 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27967             Bruno Haible  <bruno@clisp.org>
27968
27969         Tests for module 'pipe-filter-gi'.
27970         * modules/pipe-filter-gi-tests: New file.
27971         * tests/test-pipe-filter-gi1.sh: New file.
27972         * tests/test-pipe-filter-gi1.c: New file.
27973         * tests/test-pipe-filter-gi2.sh: New file.
27974         * tests/test-pipe-filter-gi2-main.c: New file.
27975         * tests/test-pipe-filter-gi2-child.c: New file.
27976
27977         New module 'pipe-filter-gi'.
27978         * lib/pipe-filter-gi.c: New file.
27979         * modules/pipe-filter-gi: New file.
27980
27981 2009-08-02  Bruno Haible  <bruno@clisp.org>
27982             Paolo Bonzini  <bonzini@gnu.org>
27983
27984         Tests for module 'pipe-filter-ii'.
27985         * modules/pipe-filter-ii-tests: New file.
27986         * tests/test-pipe-filter-ii1.sh: New file.
27987         * tests/test-pipe-filter-ii1.c: New file.
27988         * tests/test-pipe-filter-ii2.sh: New file.
27989         * tests/test-pipe-filter-ii2-main.c: New file.
27990         * tests/test-pipe-filter-ii2-child.c: New file.
27991
27992         New module 'pipe-filter-ii'.
27993         * lib/pipe-filter.h: New file.
27994         * lib/pipe-filter-ii.c: New file.
27995         * lib/pipe-filter-aux.h: New file.
27996         * modules/pipe-filter-ii: New file.
27997
27998 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27999
28000         * lib/gc-libgcrypt.c: Change copyright to FSF.
28001         * lib/gc-gnulib.c: Likewise.
28002
28003 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28004
28005         * lib/gethostname.c: Include limits.h.
28006
28007 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28008             Bruno Haible  <bruno@clisp.org>
28009
28010         Ensure HOST_NAME_MAX as part of the gethostname module.
28011         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28012         define also HOST_NAME_MAX.
28013         * tests/test-gethostname.c: Include <limits.h>.
28014         (main): Check also HOST_NAME_MAX.
28015         * doc/posix-headers/limits.texi: Document the mingw problem.
28016
28017 2009-08-02  Bruno Haible  <bruno@clisp.org>
28018
28019         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28020         Add comments.
28021
28022 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28023
28024         * lib/gethostname.c: Add Windows wrapper.
28025         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28026         * modules/gethostname: Depend on sys_socket & errno, for also
28027         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28028         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28029
28030 2009-07-31  Jim Meyering  <meyering@redhat.com>
28031
28032         getloadavg: fix symbol name in comment
28033         * lib/getloadavg.c: Correct a typo I introduced when adding
28034         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28035         Matt Kraai spotted the problem.
28036
28037 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28038
28039         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28040         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28041         code also if ! defined N_NAME_POINTER.
28042         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28043         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28044         but the n_name member is a 12-byte array.
28045
28046 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28047
28048         update-copyright: generalize comment handling
28049         * build-aux/update-copyright: Handle copyright statements
28050         within more comment styles.
28051         Document usage.
28052         Report any file with an external copyright holder or parse failure.
28053
28054 2009-07-29  Jim Meyering  <meyering@redhat.com>
28055
28056         mktime: correct setting of REPLACE_MKTIME
28057         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28058
28059         update-copyright: new module
28060         * modules/update-copyright: New file.
28061         * build-aux/update-copyright: New file.
28062         * MODULES.html.sh (maint+release support): Add update-copyright.
28063
28064 2009-07-27  Bruno Haible  <bruno@clisp.org>
28065
28066         Fix compilation error when <ctime> is used and mktime is replaced.
28067         * lib/time.in.h (mktime): New declaration.
28068         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28069         REPLACE_MKTIME instead of defining mktime in config.h.
28070         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28071         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28072         Reported by Ross McFarland <rwmcfa1@neces.com>.
28073
28074 2009-07-27  Bruno Haible  <bruno@clisp.org>
28075
28076         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28077         Reported by Matt Kraai <mkraai@beckman.com>.
28078
28079 2009-07-25  Jim Meyering  <meyering@redhat.com>
28080
28081         maint.mk: avoid warnings about missing files
28082         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28083         diagnostic when .prev-version does not exist.
28084         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28085         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28086         nonexistent cfg.mk.
28087         Suggestions from Simon Josefsson.
28088
28089 2009-07-25  Bruno Haible  <bruno@clisp.org>
28090
28091         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28092         defined as macros. Needed on QNX 6.4.1.
28093         Reported by Matt Kraai <mkraai@beckman.com>.
28094
28095 2009-07-23  Jim Meyering  <meyering@redhat.com>
28096
28097         maint.mk: invoke "make dist" with a working value of XZ_OPT
28098         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28099
28100 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28101
28102         Make fseeko.c compile on QNX.
28103         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28104
28105 2009-07-22  Peter Simons  <simons@cryp.to>
28106
28107         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28108         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28109         * lib/md4.h: Likewise.
28110         * lib/md5.h: Likewise.
28111         * lib/sha1.h: Likewise.
28112         * lib/sha256.h: Likewise.
28113         * lib/sha512.h: Likewise.
28114
28115         tests-sha1: don't assign literal string to 'char *' variable
28116         * tests/test-sha1.c (main): Declare locals with "const" to match
28117         attributes of the right hand side.
28118
28119 2009-07-21  Eric Blake  <ebb9@byu.net>
28120
28121         dup2: fix more mingw problems
28122         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28123         fd to itself.
28124         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28125         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28126         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28127         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28128         care of mingw bugs.
28129
28130 2009-07-21  Jim Meyering  <meyering@redhat.com>
28131
28132         vc-list-files: avoid failure when /bin/sh is dash
28133         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28134         On some Debian based systems, /bin/sh is a symlink to dash, and running
28135         this command would omit the "/" following each 'tests' prefix:
28136           dash -x build-aux/vc-list-files -C . tests
28137         That is because bash and dash work differently:
28138           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28139           bash ok
28140           dash odd
28141
28142 2009-07-21  Eric Blake  <ebb9@byu.net>
28143
28144         dup2-tests: test previous patch
28145         * modules/dup2-tests: New file.
28146         * tests/test-dup2.c: Likewise.
28147         * tests/test-open.c (main): Avoid unspecified behavior.
28148         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28149         test.
28150
28151         dup2: work around mingw and cygwin 1.5 bug
28152         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28154         * modules/unistd (Makefile.am): Substitute it.
28155         * lib/unistd.in.h (dup2): Declare the replacement.
28156         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28157         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28158         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28159         * modules/execute (Depends-on): Add dup2.
28160         * modules/fseterr (Depends-on): Likewise.
28161         * modules/pipe (Depends-on): Likewise.
28162         * modules/posix_spawn-internal (Depends-on): Likewise.
28163
28164 2009-07-21  Bruno Haible  <bruno@clisp.org>
28165
28166         * modules/.gitattributes: New file.
28167
28168 2009-07-20  Bruno Haible  <bruno@clisp.org>
28169
28170         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28171         (main): Use it.
28172
28173 2009-07-20  Eric Blake  <ebb9@byu.net>
28174
28175         test-pipe: make a bit more robust.
28176         * tests/test-pipe.c (myerr): Allow error messages regardless of
28177         what we do to stderr.
28178         (test_pipe): Rearrange to avoid deadlock.
28179         (child_main): Try a larger read, to ensure we avoided deadlock.
28180         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28181         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28182         if misused.
28183
28184 2009-07-19  Jim Meyering  <meyering@redhat.com>
28185
28186         fts: avoid false-positive cycle-detection
28187         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28188         for each new command line argument.
28189
28190 2009-07-19  Bruno Haible  <bruno@clisp.org>
28191
28192         Fix build error on mingw with the modules sys_select and unistd.
28193         * modules/acl-tests (Depends-on): Add close.
28194         * modules/binary-io-tests (Depends-on): Likewise.
28195         * modules/closein-tests (Depends-on): Likewise.
28196         * modules/flock-tests (Depends-on): Likewise.
28197         * modules/fsync-tests (Depends-on): Likewise.
28198         * modules/lseek-tests (Depends-on): Likewise.
28199         * modules/pipe-tests (Depends-on): Likewise.
28200         * modules/posix_spawn-tests (Depends-on): Likewise.
28201         * modules/posix_spawnp-tests (Depends-on): Likewise.
28202         * modules/stat-time-tests (Depends-on): Likewise.
28203         * modules/yesno-tests (Depends-on): Likewise.
28204
28205 2009-07-19  Bruno Haible  <bruno@clisp.org>
28206
28207         Unify conditionals.
28208         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28209         macros, not at the compiler macros.
28210         * lib/pipe.c: Likewise.
28211         * lib/execute.c: Likewise.
28212         * lib/spawni.c: Likewise.
28213
28214 2009-07-19  Bruno Haible  <bruno@clisp.org>
28215
28216         Fix handling of closed stdin/stdout/stderr on mingw.
28217         * lib/w32spawn.h: Include unistd.h.
28218         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28219         file descriptor with O_NOINHERIT flag.
28220         (fd_safer_noinherit): New function, based on fd-safer.c.
28221         (dup_safer_noinherit): New function, based on dup-safer.c.
28222         (undup_safer_noinherit): New function.
28223         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28224         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28225         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28226         instead of fd_safer.
28227         * tests/test-pipe.c: Include <windows.h>.
28228         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28229         result.
28230
28231         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28232         from main.
28233         (test_pipe): Pass an extra argument for disambiguation.
28234         (main): Invoke parent_main or child_main.
28235
28236         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28237         consistently.
28238
28239 2009-07-18  Eric Blake  <ebb9@byu.net>
28240
28241         test-pipe: fix mingw build
28242         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28243
28244 2009-07-18  Bruno Haible  <bruno@clisp.org>
28245
28246         * modules/pipe-tests (Makefile.am): Fix typo.
28247
28248 2009-07-18  Eric Blake  <ebb9@byu.net>
28249
28250         error: fix mingw build
28251         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28252         Reported by Bruno Haible.
28253
28254         error: avoid undefined use of stdout
28255         * lib/error.c (error, error_at_line): Check that fd 1 is open
28256         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28257         is handling faults and the close_stdout module wants to report the
28258         detection of closed stdout as an error.
28259
28260 2009-07-17  Eric Blake  <ebb9@byu.net>
28261
28262         pipe: be robust in face of closed fds
28263         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28264         should cause child to misbehave.
28265         * modules/pipe-tests: New module.
28266         * tests/test-pipe.c: New file.
28267         * tests/test-pipe.sh: New file.
28268         Reported by Akim Demaille.
28269
28270 2009-07-14  Bruno Haible  <bruno@clisp.org>
28271
28272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28273         Reported by anonymous kc.
28274
28275 2009-07-07  Jim Meyering  <meyering@redhat.com>
28276
28277         maint.mk: don't look for translatable strings in *.m4 or *.mk
28278         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28279         when searching for translatable strings.
28280
28281 2009-07-05  Jim Meyering  <meyering@redhat.com>
28282
28283         remove superfluous parentheses in STREQ definition
28284         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28285         * lib/getugroups.c (STREQ): Likewise.
28286         * lib/fnmatch.c (STREQ): Likewise.
28287         Spotted by Bruno Haible.
28288
28289 2009-07-04  Jim Meyering  <meyering@redhat.com>
28290
28291         argv-iter: new module
28292         * MODULES.html.sh: Add argv-iter.
28293         * lib/argv-iter.c, lib/argv-iter.h: New files.
28294         * modules/argv-iter: New file.
28295         * modules/argv-iter-tests: New file.
28296         * tests/test-argv-iter.c: Test it.
28297
28298 2009-07-04  Bruno Haible  <bruno@clisp.org>
28299
28300         Fix assertion.
28301         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28302         contains more exact copies of a given entry than file2, leave the extra
28303         copies unpaired rather than aborting.
28304         Reported by Eric Blake.
28305
28306 2009-07-02  Bruno Haible  <bruno@clisp.org>
28307
28308         Speedup git-merge-changelog for git cherry-pick.
28309         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28310         (entries_mapping_get): New function, extracted from compute_mapping.
28311         (entries_mapping_reverse_get): New function.
28312         (compute_mapping): Add a 'full' argument. Return the result in a
28313         'struct entries_mapping'.
28314         (main): Update. Access the mappings through entries_mapping_get.
28315         Reported by Eric Blake.
28316
28317 2009-07-02  Bruno Haible  <bruno@clisp.org>
28318
28319         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28320         best_i.
28321
28322 2009-07-02  Bruno Haible  <bruno@clisp.org>
28323
28324         Speed up approximate search for matching ChangeLog entries.
28325         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28326         argument. Call fstrcmp_bounded instead of fstrcmp.
28327         (compute_mapping, try_split_merged_entry, main): Update callers.
28328
28329 2009-07-02  Bruno Haible  <bruno@clisp.org>
28330
28331         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28332
28333 2009-06-30  Bruno Haible  <bruno@clisp.org>
28334
28335         Reduce the number of uc_is_cased calls.
28336         * lib/unicase.h (casing_suffix_context_t): Add
28337         'first_char_except_ignorable' field.
28338         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28339         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28340         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28341         Update initializer.
28342         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28343         case-ignorable characters.
28344         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28345         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28346         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28347         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28348         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28349
28350 2009-06-30  Bruno Haible  <bruno@clisp.org>
28351
28352         Tests for module 'unicase/ignorable'.
28353         * modules/unicase/ignorable-tests: New file.
28354         * tests/unicase/test-ignorable.c: New file, generated by
28355         gen-uni-tables.
28356
28357         Tests for module 'unicase/cased'.
28358         * modules/unicase/cased-tests: New file.
28359         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28360         * tests/unicase/test-predicate-part1.h: New file, derived from
28361         tests/unictype/test-predicate-part1.h.
28362         * tests/unicase/test-predicate-part2.h: New file, same as
28363         tests/unictype/test-predicate-part2.h.
28364
28365         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28366         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28367         (output_casing_properties): New function.
28368         (main): Call it.
28369         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28370         * lib/unicase/cased.c: Include unictype/bitmap.h.
28371         (uc_is_cased): Define through a bitmap lookup.
28372         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28373         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28374         (uc_is_case_ignorable): Define through a bitmap lookup.
28375         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28376         lib/unictype/bitmap.h.
28377         (Depends-on): Add inline. Clean up.
28378         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28379         lib/unictype/bitmap.h.
28380         (Depends-on): Add inline. Clean up.
28381         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28382         recognition.
28383         * tests/unicase/test-u16-tolower.c (main): Likewise.
28384         * tests/unicase/test-u32-tolower.c (main): Likewise.
28385
28386 2009-06-30  Bruno Haible  <bruno@clisp.org>
28387
28388         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28389         * lib/unicase/u16-casemap.c: Likewise.
28390         * lib/unicase/u32-casemap.c: Likewise.
28391
28392 2009-06-29  Bruno Haible  <bruno@clisp.org>
28393
28394         Define u32_casefold as a wrapper around u32_ct_casefold.
28395         * lib/unicase/u32-casefold.c: Update.
28396         * modules/unicase/u32-casefold (Depends-on): Add
28397         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28398         unicase/empty-suffix-context. Clean up.
28399
28400         Define u16_casefold as a wrapper around u16_ct_casefold.
28401         * lib/unicase/u16-casefold.c: Update.
28402         * modules/unicase/u16-casefold (Depends-on): Add
28403         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28404         unicase/empty-suffix-context. Clean up.
28405
28406         Define u8_casefold as a wrapper around u8_ct_casefold.
28407         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28408         * lib/unicase/u8-casefold.c: Update.
28409         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28410         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28411
28412         Define u32_totitle as a wrapper around u32_ct_totitle.
28413         * lib/unicase/u32-totitle.c: Update.
28414         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28415         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28416
28417         Define u16_totitle as a wrapper around u16_ct_totitle.
28418         * lib/unicase/u16-totitle.c: Update.
28419         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28420         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28421
28422         Define u8_totitle as a wrapper around u8_ct_totitle.
28423         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28424         functions.
28425         (FUNC): Delegate to U_CT_TOTITLE.
28426         * lib/unicase/u8-totitle.c: Update.
28427         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28428         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28429
28430         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28431         invocation.
28432         * modules/unicase/u32-tolower (Depends-on): Add
28433         unicase/empty-prefix-context, unicase/empty-suffix-context.
28434
28435         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28436         invocation.
28437         * modules/unicase/u16-tolower (Depends-on): Add
28438         unicase/empty-prefix-context, unicase/empty-suffix-context.
28439
28440         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28441         * modules/unicase/u8-tolower (Depends-on): Add
28442         unicase/empty-prefix-context, unicase/empty-suffix-context.
28443
28444         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28445         invocation.
28446         * modules/unicase/u32-toupper (Depends-on): Add
28447         unicase/empty-prefix-context, unicase/empty-suffix-context.
28448
28449         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28450         invocation.
28451         * modules/unicase/u16-toupper (Depends-on): Add
28452         unicase/empty-prefix-context, unicase/empty-suffix-context.
28453
28454         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28455         * modules/unicase/u8-toupper (Depends-on): Add
28456         unicase/empty-prefix-context, unicase/empty-suffix-context.
28457
28458         New module 'unicase/u32-ct-casefold'.
28459         * lib/unicase/u32-ct-casefold.c: New file.
28460         * modules/unicase/u32-ct-casefold: New file.
28461
28462         New module 'unicase/u16-ct-casefold'.
28463         * lib/unicase/u16-ct-casefold.c: New file.
28464         * modules/unicase/u16-ct-casefold: New file.
28465
28466         New module 'unicase/u8-ct-casefold'.
28467         * lib/unicase/u8-ct-casefold.c: New file.
28468         * lib/unicase/u-ct-casefold.h: New file, derived from
28469         lib/unicase/u-casefold.h.
28470         * modules/unicase/u8-ct-casefold: New file.
28471
28472         New module 'unicase/u32-ct-totitle'.
28473         * lib/unicase/u32-ct-totitle.c: New file.
28474         * modules/unicase/u32-ct-totitle: New file.
28475
28476         New module 'unicase/u16-ct-totitle'.
28477         * lib/unicase/u16-ct-totitle.c: New file.
28478         * modules/unicase/u16-ct-totitle: New file.
28479
28480         New module 'unicase/u8-ct-totitle'.
28481         * lib/unicase/u8-ct-totitle.c: New file.
28482         * lib/unicase/u-ct-totitle.h: New file, derived from
28483         lib/unicase/u-totitle.h.
28484         * modules/unicase/u8-ct-totitle: New file.
28485
28486         New module 'unicase/u32-ct-tolower'.
28487         * lib/unicase/u32-ct-tolower.c: New file.
28488         * modules/unicase/u32-ct-tolower: New file.
28489
28490         New module 'unicase/u16-ct-tolower'.
28491         * lib/unicase/u16-ct-tolower.c: New file.
28492         * modules/unicase/u16-ct-tolower: New file.
28493
28494         New module 'unicase/u8-ct-tolower'.
28495         * lib/unicase/u8-ct-tolower.c: New file.
28496         * modules/unicase/u8-ct-tolower: New file.
28497
28498         New module 'unicase/u32-ct-toupper'.
28499         * lib/unicase/u32-ct-toupper.c: New file.
28500         * modules/unicase/u32-ct-toupper: New file.
28501
28502         New module 'unicase/u16-ct-toupper'.
28503         * lib/unicase/u16-ct-toupper.c: New file.
28504         * modules/unicase/u16-ct-toupper: New file.
28505
28506         New module 'unicase/u8-ct-toupper'.
28507         * lib/unicase/u8-ct-toupper.c: New file.
28508         * modules/unicase/u8-ct-toupper: New file.
28509
28510         Add context arguments to u*_casemap functions.
28511         * lib/unicase/unicasemap.h: Include unicase.h.
28512         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28513         suffix_context arguments.
28514         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28515         functions.
28516         (FUNC): Add prefix_context and suffix_context arguments. Use
28517         uc_is_cased and uc_is_case_ignorable.
28518         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28519         * lib/unicase/u16-casemap.c: Likewise.
28520         * lib/unicase/u32-casemap.c: Likewise.
28521         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28522         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28523         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28524         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28525         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28526         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28527
28528         New module 'unicase/u32-suffix-context'.
28529         * lib/unicase/u32-suffix-context.c: New file.
28530         * modules/unicase/u32-suffix-context: New file.
28531
28532         New module 'unicase/u16-suffix-context'.
28533         * lib/unicase/u16-suffix-context.c: New file.
28534         * modules/unicase/u16-suffix-context: New file.
28535
28536         New module 'unicase/u8-suffix-context'.
28537         * lib/unicase/u8-suffix-context.c: New file.
28538         * lib/unicase/u-suffix-context.h: New file.
28539         * modules/unicase/u8-suffix-context: New file.
28540
28541         New module 'unicase/empty-suffix-context'.
28542         * lib/unicase/empty-suffix-context.c: New file.
28543         * modules/unicase/empty-suffix-context: New file.
28544
28545         New module 'unicase/u32-prefix-context'.
28546         * lib/unicase/u32-prefix-context.c: New file.
28547         * modules/unicase/u32-prefix-context: New file.
28548
28549         New module 'unicase/u16-prefix-context'.
28550         * lib/unicase/u16-prefix-context.c: New file.
28551         * modules/unicase/u16-prefix-context: New file.
28552
28553         New module 'unicase/u8-prefix-context'.
28554         * lib/unicase/u8-prefix-context.c: New file.
28555         * lib/unicase/u-prefix-context.h: New file.
28556         * lib/unicase/context.h: New file.
28557         * modules/unicase/u8-prefix-context: New file.
28558
28559         New module 'unicase/empty-prefix-context'.
28560         * lib/unicase/empty-prefix-context.c: New file.
28561         * modules/unicase/empty-prefix-context: New file.
28562
28563         New module 'unicase/ignorable'.
28564         * lib/unicase/ignorable.c: New file.
28565         * modules/unicase/ignorable: New file.
28566
28567         New module 'unicase/cased'.
28568         * lib/unicase/caseprop.h: New file.
28569         * lib/unicase/cased.c: New file.
28570         * modules/unicase/cased: New file.
28571
28572         New functions for case mapping of substrings.
28573         * lib/unicase.h (casing_prefix_context_t): New type.
28574         (unicase_empty_prefix_context): New variable.
28575         (u8_casing_prefix_context, u16_casing_prefix_context,
28576         u32_casing_prefix_context, u8_casing_prefixes_context,
28577         u16_casing_prefixes_context, u32_casing_prefixes_context): New
28578         declarations.
28579         (casing_suffix_context_t): New type.
28580         (unicase_empty_suffix_context): New variable.
28581         (u8_casing_suffix_context, u16_casing_suffix_context,
28582         u32_casing_suffix_context, u8_casing_suffixes_context,
28583         u16_casing_suffixes_context, u32_casing_suffixes_context,
28584         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
28585         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
28586         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
28587         declarations.
28588
28589 2009-06-28  Jim Meyering  <meyering@redhat.com>
28590
28591         boostrap: indent only with spaces
28592         * build-aux/bootstrap: Indent only with spaces, never TABs.
28593
28594         bootstrap: split long lines
28595         * build-aux/bootstrap: Keep line length < 80.
28596
28597         bootstrap: sync from coreutils
28598         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
28599         just as autoreconf does.  Verify a list of prerequisite
28600         package-name,version-number pairs if defined in bootstrap.conf.
28601         Refer to README-prereq, if prerequisites are not satisfied.
28602
28603 2009-06-27  Eric Blake  <ebb9@byu.net>
28604
28605         tests: add test for bogus NULL definition
28606         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
28607         * tests/test-stdlib.c: Likewise.
28608         * tests/test-string.c: Likewise.
28609         * tests/test-locale.c: Likewise.
28610         * tests/test-unistd.c: Likewise.
28611         * modules/stdio-tests (Depends-on): Add verify.
28612         * modules/stdlib-tests (Depends-on): Likewise.
28613         * modules/string-tests (Depends-on): Likewise.
28614         * modules/locale-tests (Depends-on): Likewise.
28615         * modules/unistd-tests (Depends-on): Likewise.
28616
28617 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
28618
28619         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
28620         self-explaining comment.
28621         * m4/selinux-selinux-h: Update serial.
28622         (gl_LIBSELINUX): New macro, adding a warning for missing development
28623         packages to code extracted from...
28624         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
28625         Add warning for missing development packages here, too.
28626
28627 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
28628
28629         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
28630
28631 2009-06-25  Eric Blake  <ebb9@byu.net>
28632
28633         version-etc: fix regression
28634         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
28635         gcc.
28636         (version_etc): Use it, to catch bugs with trailing NULL.
28637         * lib/version-etc.c (version_etc_arn): Delete unused argument.
28638         (version_etc_va): Fix logic bug.
28639         * modules/version-etc-tests: Add test.
28640         * tests/test-version-etc.c: New file.
28641         * tests/test-version-etc.sh: Likewise.
28642
28643 2009-06-25  Sam Steingold  <sds@gnu.org>
28644
28645         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
28646         mbtowc declaration.
28647
28648 2009-06-25  Eric Blake  <ebb9@byu.net>
28649
28650         fpurge: migrate into <stdio.h>
28651         * lib/fpurge.h: Delete...
28652         * lib/stdio.in.h (fpurge): ...and declare here, instead.
28653         * lib/fpurge.c (fpurge): Change declaring header.
28654         * modules/fpurge (Files): Drop deleted file.
28655         (Depends-on): Add stdio.
28656         (configure.ac): Set witness.
28657         * modules/stdio (Makefile.am): Support fpurge macros.
28658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28659         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
28660         * lib/fflush.c: Update client.
28661         * tests/test-fpurge.c: Likewise.
28662         * NEWS: Mention the change.
28663
28664 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28665
28666         * lib/argp-version-etc.c (program_authors): Add const
28667         qualifier.
28668         * lib/version-etc.c: Fix typos in the comments.
28669         * modules/argp-version-etc: Depends on version-etc.
28670
28671 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28672
28673         argp-version-etc: new module.
28674
28675         * lib/argp-version-etc.c: New file.
28676         * lib/argp-version-etc.h: New file.
28677         * modules/argp-version-etc: New file.
28678         * modules/argp-version-etc-tests: New file.
28679         * tests/test-argp-version-etc.c: New test.
28680         * tests/test-argp-version-etc-1.sh: New test.
28681
28682 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28683
28684         Provide additional interfaces and documentation for version-etc
28685         module.
28686
28687         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
28688         interfaces.
28689         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
28690         prototypes.
28691
28692 2009-06-24  Bruno Haible  <bruno@clisp.org>
28693
28694         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
28695         HAVE_LIB${NAME} macro.
28696         Reported by Sam Steingold <sds@gnu.org>.
28697
28698 2009-06-23  Simon Josefsson  <simon@josefsson.org>
28699
28700         * modules/hash-tests (test_hash_LDADD): Link to libintl when
28701         needed.
28702
28703 2009-06-21  Bruno Haible  <bruno@clisp.org>
28704
28705         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
28706         work.
28707         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
28708         together with LIB${NAME}, LTLIB${NAME}.
28709         Reported by Sam Steingold <sds@gnu.org>.
28710
28711 2009-06-20  Jim Meyering  <meyering@redhat.com>
28712
28713         tests: make sc_require_test_exit_idiom more generic
28714         * top/maint.mk (Exit_witness_file): New overridable variable.
28715         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
28716         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
28717
28718 2009-06-19  Jim Meyering  <meyering@redhat.com>
28719
28720         hash: reverse order of src/dst parameters in an internal interface
28721         * lib/hash.c (transfer_entries): Reverse order of parameters to
28722         put DST before SRC.  Adjust callers.
28723
28724         tests: test-hash: avoid wholesale duplication
28725         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
28726         Instead, use a loop and add a single conditional.
28727
28728         tests: test-hash: allow seed selection via a command line argument
28729         * tests/test-hash.c (get_seed): New function.
28730         (main): Use it.
28731
28732 2009-06-19  Eric Blake  <ebb9@byu.net>
28733
28734         hash: avoid memory leak on allocation failure
28735         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
28736         failure.  Factor repeated algorithm...
28737         (transfer_entries): ...into new helper routine.
28738         (hash_delete): React to hash_rehash return value.
28739
28740         hash: reduce memory pressure in hash_rehash no-op case
28741         * lib/hash.c (next_prime): Avoid overflow.
28742         (hash_initialize): Factor bucket size computation...
28743         (compute_bucket_size): ...into new helper function.
28744         (hash_rehash): Use new function and open coding to reduce memory
28745         pressure, and avoid a memory leak in USE_OBSTACK code.
28746         Reported by Jim Meyering.
28747
28748 2009-06-18  Eric Blake  <ebb9@byu.net>
28749
28750         hash: make rotation more obvious
28751         * modules/hash (Depends-on): Add bitrotate and stdint.
28752         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
28753         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
28754         (SIZE_MAX): Rely on headers for definition.
28755         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
28756         (raw_hasher): Use rotr_sz.
28757         Suggested by Jim Meyering.
28758
28759         hash: fix memory leak in last patch
28760         * lib/hash.c (hash_rehash): Avoid memory leak.
28761
28762         hash: avoid no-op rehashing
28763         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
28764
28765         hash: provide default callback functions
28766         * lib/hash.c (raw_hasher, raw_comparator): New functions.
28767         (hash_initialize): Use them as defaults.
28768         * tests/test-hash.c (main): Test this.
28769
28770         hash: minor optimization
28771         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
28772         when possible.
28773         (hash_initialize): Document this promise.
28774         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
28775         * tests/test-hash.c (hash_compare_strings): Test this.
28776
28777 2009-06-18  Bruno Haible  <bruno@clisp.org>
28778
28779         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
28780         going to be replaced anyway.
28781
28782 2009-06-18  Bruno Haible  <bruno@clisp.org>
28783
28784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
28785         in one place.
28786         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
28787         be replaced anyway.
28788
28789 2009-06-18  Eric Blake  <ebb9@byu.net>
28790
28791         hash: check for resize before insertion
28792         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
28793         threshold before insertion, so that a pathological hash_rehash
28794         that fills every bucket can still trigger another rehash.
28795
28796 2009-06-18  Jim Meyering  <meyering@redhat.com>
28797
28798         hash-tests: add a loop around the small tests
28799         * tests/test-hash.c (main): Repeat small tests with selected
28800         small initial table sizes.
28801
28802 2009-06-17  Eric Blake  <ebb9@byu.net>
28803
28804         hash: minor cleanups
28805         * lib/hash.h (hash_entry): Make opaque, by moving...
28806         * lib/hash.c (hash_entry): ...here.
28807         (hash_insert): Clarify restrictions on what can be inserted.
28808         (hash_get_next): Clarify when it is safe to remove an element
28809         during traversal.
28810         (check_tuning): Skip verification when tuning is known safe.
28811         (hash_initialize): Clarify restrictions on tuning.
28812
28813 2009-06-17  Jim Meyering  <jim@meyering.net>
28814         and Eric Blake  <ebb9@byu.net>
28815
28816         hash-tests: new module
28817         * modules/hash-tests: New file.
28818         * tests/test-hash.c: New file.
28819
28820 2009-06-17  Eric Blake  <ebb9@byu.net>
28821
28822         strstr-simple: document new module
28823         * MODULES.html.sh: Document new module.
28824
28825         strstr, strcasestr: replace on platforms with broken memchr
28826         * modules/strstr: Split into...
28827         * modules/strstr-simple: ...new module that does not care about
28828         performance, but does care about glibc bug.
28829         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28830         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28831         if platform memchr is broken, per Debian bug 521737.
28832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28833         memchr.
28834         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28835         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28836         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28837         * modules/mountlist (Depends-on): Add strstr-simple.
28838         * modules/gen-uni-tables (Depends-on): Likewise.
28839         * modules/argz (Depends-on): Add strstr.
28840
28841 2009-06-17  Bruno Haible  <bruno@clisp.org>
28842
28843         * modules/posix_spawn-internal (Depends-on): Add errno.
28844
28845 2009-06-17  Bruno Haible  <bruno@clisp.org>
28846
28847         Define missing ESTALE on Interix 3.5.
28848         * lib/errno.in.h (ESTALE): Assign a value if missing.
28849         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28850         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28851         missing.
28852         * doc/posix-headers/errno.texi: Mention the Interix bug.
28853         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28854
28855 2009-06-15  Eric Blake  <ebb9@byu.net>
28856
28857         memchr, memchr2: add valgrind exception
28858         * lib/memchr.valgrind: New file.
28859         * lib/memchr2.valgrind: New file.
28860         * modules/memchr (Files): Distribute valgrind file.
28861         * modules/memchr2 (Files): Likewise.
28862
28863         docs: memchr is no longer obsolete
28864         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28865         * lib/string.in.h (memchr): Simplify logic.
28866
28867 2009-06-14  Jim Meyering  <meyering@redhat.com>
28868
28869         link-follow: fix the "checking..." message to not mention trailing slash
28870         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28871         never considered trailing slashes.
28872
28873 2009-06-14  Bruno Haible  <bruno@clisp.org>
28874
28875         * m4/memchr.m4: Mention also the bug on IA-64.
28876         * doc/posix-functions/memchr.texi: Likewise.
28877
28878 2009-06-12  Eric Blake  <ebb9@byu.net>
28879
28880         memchr: detect broken x86_64 and alpha implementations
28881         * modules/memchr-tests (Depends-on): Move mmap detection...
28882         * modules/memchr (Depends-on): ...here.
28883         (configure.ac): Set indicator.
28884         * lib/string.in.h (memchr): Declare replacement.
28885         * modules/string (Makefile.am): Trigger replacement.
28886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28887         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28888         bugs.
28889         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28890         * modules/getpagesize (License): Relax license.
28891
28892 2009-06-11  Bruno Haible  <bruno@clisp.org>
28893
28894         * lib/idpriv.h: Add more references.
28895
28896 2009-06-08  Bruno Haible  <bruno@clisp.org>
28897
28898         Tests for module 'idpriv-droptemp'.
28899         * modules/idpriv-droptemp-tests: New file.
28900         * tests/test-idpriv-droptemp.sh: New file.
28901         * tests/test-idpriv-droptemp.su.sh: New file.
28902         * tests/test-idpriv-droptemp.c: New file.
28903
28904         New module 'idpriv-droptemp'.
28905         * lib/idpriv-droptemp.c: New file.
28906         * modules/idpriv-droptemp: New file.
28907
28908 2009-06-08  Bruno Haible  <bruno@clisp.org>
28909
28910         Tests for module 'idpriv-drop'.
28911         * modules/idpriv-drop-tests: New file.
28912         * tests/test-idpriv-drop.sh: New file.
28913         * tests/test-idpriv-drop.su.sh: New file.
28914         * tests/test-idpriv-drop.c: New file.
28915
28916         New module 'idpriv-drop'.
28917         * lib/idpriv.h: New file.
28918         * lib-idpriv-drop.c: New file.
28919         * m4/idpriv.m4: New file.
28920         * modules/idpriv-drop: New file.
28921
28922 2009-06-08  Bruno Haible  <bruno@clisp.org>
28923
28924         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28925         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28926         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28927         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28928         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28929         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28930         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28931
28932 2009-06-08  Eric Blake  <ebb9@byu.net>
28933
28934         test-strstr: use memory fence, when possible
28935         * tests/test-strstr.c (main): Use memory fence, in order to be
28936         more likely to trigger Debian bug 521737.
28937         * modules/strstr-tests (Files): Pull in additional files.
28938
28939         memchr: no longer obsolete, for wider field testing
28940         * modules/memchr (Status, Notice): Delete, this module is no
28941         longer obsolete.
28942         * modules/vasnprintf (Depends-on): Add memchr.
28943
28944 2009-06-07  Jim Meyering  <meyering@redhat.com>
28945
28946         hash: declare some functions with the warn_unused_result attribute
28947         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28948
28949 2009-06-07  Bruno Haible  <bruno@clisp.org>
28950
28951         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28952         Reported by Eric Blake.
28953
28954 2009-06-06  Eric Blake  <ebb9@byu.net>
28955
28956         test-alignof: fix typo with long double
28957         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28958         compiler error.
28959
28960 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28961
28962         Escape non-texinfo { and }s.
28963         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28964         markup error.
28965
28966 2009-06-04  Jim Meyering  <meyering@redhat.com>
28967
28968         gitlog-to-changelog: don't infloop on an empty commit log
28969         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28970         Reported by Boris Petersen <transacid@centerim.org>.
28971
28972 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28973
28974         version-etc: extend for packagers
28975         Add three new configure options, intended for packagers:
28976           --with-packager="packager name"
28977           --with-packager-version="packager-specific version"
28978           --with-packager-bug-reports="packager bug reporting"
28979         An example with coreutils:
28980           $ ./configure \
28981             --with-packager=Gentoo \
28982             --with-packager-bug-report=http://bugs.gentoo.org/ \
28983             --with-packager-version="patchset 1.6"
28984           $ ./src/ls --version | head -n2
28985           ls (GNU coreutils) 7.1-dirty
28986           Packaged by Gentoo (patchset 1.6)
28987         Note that the bug reporting info via --help doesn't show up because
28988         coreutils uses its own custom emit_bug_reporting_address() implementation
28989         in src/system.h.  If it didn't, it'd look like:
28990           $ ./src/ls --help | tail -n4
28991           Report bugs to <bug-coreutils@gnu.org>.
28992           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28993           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28994           General help using GNU software: <http://www.gnu.org/gethelp/>.
28995         * lib/version-etc.c: Print new information, if provided.
28996         * m4/version-etc.m4: New file.
28997         * modules/version-etc (Files): Add m4/version-etc.m4.
28998         (configure.ac): Add gl_VERSION_ETC.
28999
29000 2009-05-31  Bruno Haible  <bruno@clisp.org>
29001
29002         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29003         and 'int64_t'.
29004         * modules/alignof-tests (Dependencies): Add stdint.
29005         Reported by Eric Blake.
29006
29007 2009-05-31  Bruno Haible  <bruno@clisp.org>
29008
29009         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29010         restriction due to compiler bugs.
29011         Reported by Eric Blake.
29012
29013 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29014             Bruno Haible  <bruno@clisp.org>
29015
29016         Fix test-alignof failure.
29017         * lib/alignof.h (alignof_slot): New macro.
29018         (alignof_type): New macro, with the same semantics as the previous
29019         'alignof'.
29020         (alignof): Alias to alignof_slot.
29021         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29022         check that the results are usable as constant expressions.
29023
29024 2009-05-31  Bruno Haible  <bruno@clisp.org>
29025
29026         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29027         * tests/test-memchr.c (main): Check that memchr does not read past the
29028         first occurrence of the byte.
29029         * tests/test-strstr.c (main): Update comment.
29030         Suggested by Eric Blake.
29031
29032 2009-05-30  Bruno Haible  <bruno@clisp.org>
29033
29034         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29035         detail how to use dumpbin.
29036         Reported by David Byron <dbyron@dbyron.com>.
29037
29038 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29039
29040         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29041
29042 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29043
29044         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29045
29046 2009-05-28  Bruno Haible  <bruno@clisp.org>
29047
29048         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29049         build-aux/ files.
29050
29051 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29052
29053         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29054
29055 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29056
29057         * gnulib-tool (sed_transform_main_lib_file)
29058         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29059         regexps.
29060
29061 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29062
29063         * tests/test-strstr.c: Add another self-test.
29064         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29065         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29066
29067 2009-05-23  Bruno Haible  <bruno@clisp.org>
29068
29069         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29070         change.
29071
29072 2009-05-21  Bruno Haible  <bruno@clisp.org>
29073
29074         Simplify use of mode_t varargs.
29075         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29076         uses 'mode_t' or 'int'.
29077         * lib/openat.c (openat): Likewise.
29078         * lib/open-safer.c (open_safer): Likewise.
29079         * m4/mode_t.m4: New file.
29080         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29081         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29082         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29083         * modules/open (Files): Add m4/mode_t.m4.
29084         * modules/openat (Files): Likewise.
29085         * modules/fcntl-safer (Files): Likewise.
29086         Suggested by Eric Blake.
29087
29088 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29089
29090         * doc/glibc-functions/fallocate.texi: New file.
29091         * doc/gnulib.texi: Include it.
29092
29093 2009-05-21  Eric Blake  <ebb9@byu.net>
29094             Bruno Haible  <bruno@clisp.org>
29095
29096         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29097         invocations.
29098         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29099
29100 2009-05-21  Eric Blake  <ebb9@byu.net>
29101             Bruno Haible  <bruno@clisp.org>
29102
29103         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29104         include_next. Fix of 2008-11-20 commit.
29105         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29106         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29107         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29108         NEXT_MATH_H.
29109         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29110         instead of NEXT_MATH_H.
29111
29112 2009-05-21  Bruno Haible  <bruno@clisp.org>
29113
29114         Avoid redefinition warnings for SIZE_MAX.
29115         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29116         Reported by Simon Josefsson.
29117
29118 2009-05-21  Bruno Haible  <bruno@clisp.org>
29119
29120         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29121         AC_CACHE_VAL.
29122
29123 2009-05-20  Bruno Haible  <bruno@clisp.org>
29124
29125         Make zeroptr.h work on mingw.
29126         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29127         mprotect.
29128         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29129         * modules/memchr2-tests (configure.ac): Likewise.
29130         * modules/memcmp-tests (configure.ac): Likewise.
29131         * modules/memmem-tests (configure.ac): Likewise.
29132         * modules/memrchr-tests (configure.ac): Likewise.
29133         Reported by Simon Josefsson.
29134
29135 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29136
29137         * tests/test-glob.c: Include string.h for strcmp prototype.
29138
29139 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29140
29141         * modules/getdelim (Depends-on): Add explicit stdint, although it
29142         was implicitly already pulled in via realloc-posix.
29143         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29144
29145 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29146
29147         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29148         G. Christensen" <tgc@jupiterrise.com>.
29149         * m4/sys_socket_h.m4: Check for sa_family_t.
29150         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29151         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29152         * tests/test-sys_socket.c: Check that sa_family_t works.
29153
29154 2009-05-18  Eric Blake  <ebb9@byu.net>
29155
29156         maint.mk: allow gnulib_dir in VPATH build
29157         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29158
29159 2009-05-15  Jim Meyering  <meyering@redhat.com>
29160
29161         maint.mk: Give gnulib_dir a default definition.
29162         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29163         Thus, most packages no longer need to specify this variable in cfg.mk
29164
29165 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29166
29167         rename.m4: fix typos that would make non-mingw cross-configure fail
29168         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29169
29170 2009-05-13  Eric Blake  <ebb9@byu.net>
29171
29172         mmap-anon: avoid out-of-order autoconf expansion
29173         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29174         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29175         * modules/memchr-tests (Depends-on): Add extensions.
29176         * modules/memchr2-tests (Depends-on): Add extensions.
29177         * modules/memcmp-tests (Depends-on): Add extensions.
29178         * modules/memmem-tests (Depends-on): Add extensions.
29179         * modules/memrchr-tests (Depends-on): Add extensions.
29180
29181 2009-05-13  Bruno Haible  <bruno@clisp.org>
29182
29183         Make some tests ISO C 99 compliant.
29184         * tests/zerosize-ptr.h: New file.
29185         * tests/test-memchr.c: Include zerosize-ptr.h.
29186         (main): Use a zero-size object pointer instead of NULL.
29187         * tests/test-memchr2.c: Include zerosize-ptr.h.
29188         (main): Use a zero-size object pointer instead of NULL.
29189         * tests/test-memcmp.c: Include zerosize-ptr.h.
29190         (main): Use a zero-size object pointer instead of NULL.
29191         * tests/test-memmem.c: Include zerosize-ptr.h.
29192         (main): Use a zero-size object pointer instead of NULL.
29193         * tests/test-memrchr.c: Include zerosize-ptr.h.
29194         (main): Use a zero-size object pointer instead of NULL.
29195         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29196         m4/mmap-anon.m4.
29197         (Depends-on): Add getpagesize.
29198         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29199         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29200         m4/mmap-anon.m4.
29201         (Depends-on): Add getpagesize.
29202         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29203         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29204         m4/mmap-anon.m4.
29205         (Depends-on): Add getpagesize.
29206         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29207         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29208         m4/mmap-anon.m4.
29209         (Depends-on): Add getpagesize.
29210         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29211         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29212         m4/mmap-anon.m4.
29213         (Depends-on): Add getpagesize.
29214         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29215
29216 2009-05-12  Bruno Haible  <bruno@clisp.org>
29217
29218         Tests for module 'alignof'.
29219         * modules/alignof-tests: New file.
29220         * tests/test-alignof.c: New file.
29221
29222 2009-05-12  Bruno Haible  <bruno@clisp.org>
29223
29224         Fix alignof macro.
29225         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29226         vendor compilers that are always correct.
29227
29228 2009-05-12  Bruno Haible  <bruno@clisp.org>
29229
29230         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29231         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29232         not whether its fully works.
29233
29234 2009-05-12  Bruno Haible  <bruno@clisp.org>
29235
29236         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29237
29238 2009-05-12  Jim Meyering  <meyering@redhat.com>
29239
29240         * top/maint.mk: Adjust backslash alignment.
29241
29242 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29243
29244         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29245
29246 2009-05-11  Eric Blake  <ebb9@byu.net>
29247
29248         argp: avoid undefined behavior
29249         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29250         macros.
29251
29252 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29253
29254         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29255         user.name to prevent git commit from complaining.
29256
29257 2009-05-10  Bruno Haible  <bruno@clisp.org>
29258
29259         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29260         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29261         it rewrites every file name only once.
29262         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29263
29264 2009-05-08  Bruno Haible  <bruno@clisp.org>
29265
29266         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29267         instead of 'max'.
29268
29269 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29270
29271         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29272         sockaddr_storage test.
29273
29274 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29275
29276         * modules/sys_socket (Makefile.am): Substitute
29277         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29278         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29279         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29280         * tests/test-sys_socket.c: Check sockaddr_storage.
29281
29282 2009-05-08  Bruno Haible  <bruno@clisp.org>
29283
29284         New module 'alignof'.
29285         * lib/alignof.h: New file.
29286         * modules/alignof: New file.
29287
29288 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29289             Bruno Haible  <bruno@clisp.org>
29290
29291         Fix test-file-has-acl on FreeBSD.
29292         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29293         mask is implicitly added.
29294         * tests/test-file-has-acl.c: Include <signal.h>.
29295         (main): Terminate the test after 5 seconds.
29296         * modules/acl-tests (configure.ac): Check for alarm function.
29297
29298 2009-05-04  Bruno Haible  <bruno@clisp.org>
29299
29300         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29301         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29302         * modules/errno (configure.ac): Drop AC_REQUIRE.
29303         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29304         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29305
29306 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29307
29308         * modules/glob-tests: New module.
29309         * tests/test-glob.c: Add.
29310
29311 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29312
29313         * modules/fnmatch-tests: New module.
29314         * tests/test-fnmatch.c: Add.
29315
29316 2009-05-04  Eric Blake  <ebb9@byu.net>
29317
29318         maint: make the new no-submodule-changes rule VPATH-safe
29319         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29320
29321 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29322             Bruno Haible  <bruno@clisp.org>
29323
29324         acl: Fix infinite loop on FreeBSD.
29325         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29326         of return value from acl_get_entry.
29327         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29328         Likewise.
29329
29330 2009-05-03  Bruno Haible  <bruno@clisp.org>
29331
29332         * lib/acl-internal.h (acl_entries): Clarify return value.
29333         * lib/acl_entries.c (acl_entries): Likewise.
29334
29335 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29336
29337         Bug fix in acl module.
29338         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29339
29340 2009-05-03  Bruno Haible  <bruno@clisp.org>
29341
29342         Create gperf-generated file in the source dir, not in the build dir.
29343         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29344         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29345         * modules/unicase/locale-language (unicase/locale-languages.h):
29346         Likewise.
29347         * modules/unicase/special-casing (unicase/special-casing-table.h):
29348         Likewise.
29349         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29350         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29351         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29352         Reported by Ralf Wildenhues.
29353
29354 2009-05-03  Bruno Haible  <bruno@clisp.org>
29355
29356         * modules/fnmatch (Description, configure.ac): Taken from
29357         fnmatch-posix.
29358         * modules/fnmatch-posix: Turn into a symbolic reference to the
29359         'fnmatch' module, and deprecate.
29360         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29361
29362 2009-05-03  Bruno Haible  <bruno@clisp.org>
29363
29364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29365         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29366         Reported by Ralf Wildenhues.
29367
29368 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29369
29370         * m4/fnmatch.m4: Fix fnmatch re-define.
29371
29372 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29373
29374         priv-set: new module and tests; adapt write-any-file
29375         * lib/priv-set.c: New file.
29376         * lib/priv-set.h: New file.
29377         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29378         * lib/write-any-file.c: Simplify by using priv-set module.
29379         * m4/priv-set.m4: New file.
29380         * modules/priv-set: New file.
29381         * modules/unlinkdir: Add dependency on priv-set module.
29382         * modules/write-any-file: Likewise.
29383
29384         Tests for module 'priv-set'.
29385         * modules/priv-set-tests: New file.
29386         * tests/test-priv-set.c: New file.
29387
29388 2009-05-03  Jim Meyering  <meyering@redhat.com>
29389             Bruno Haible  <bruno@clisp.org>
29390
29391         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29392         use the converted UTF-8 variant of the name instead.
29393
29394 2009-05-03  Jim Meyering  <meyering@redhat.com>
29395
29396         tests: tighten some getdate tests
29397         * tests/test-getdate.c (main): Tighten tests: require equality,
29398         not just greater than.  Set TZ envvar to UTC0.
29399
29400 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29401
29402         getdate: correctly interpret "next monday" when run on a Monday
29403         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29404         that e.g., "next tues" (when run on a tuesday) results in a date
29405         that is one week in the future, and not today's date.
29406         I.e., add a week when the wday is the same as the current one.
29407         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29408         and earlier by Martin Bernreuther and Jan Minář.
29409         * tests/test-getdate.c (main): Check that "next DAY" is always in
29410         the future and that "last DAY" is always in the past.
29411
29412 2009-05-02  Jim Meyering  <meyering@redhat.com>
29413
29414         build: ensure that a release build fails when a submodule is unclean
29415         * top/maint.mk (no-submodule-changes): New rule.
29416         (alpha beta major): Depend on it.
29417
29418 2009-05-02  Bruno Haible  <bruno@clisp.org>
29419
29420         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29421         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29422         shell variable gl_fnmatch_required to detect which variant is
29423         requested.
29424         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29425         gl_FUNC_FNMATCH_POSIX.
29426         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29427         exclude fnmatch-posix.
29428
29429 2009-05-02  Bruno Haible  <bruno@clisp.org>
29430
29431         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29432         * modules/mbsrtowcs (License): Change to LGPLv2+.
29433         * modules/strnlen1 (License): Likewise.
29434         Reported by Simon Josefsson.
29435
29436 2009-05-02  Bruno Haible  <bruno@clisp.org>
29437
29438         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29439         "cross".
29440         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29441         gnulib-tool was called with option --source-base=lib.
29442
29443 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29444
29445         Use automake *-local hooks without commands, for extensibility.
29446         * modules/localcharset (Makefile.am): Rename install-exec-local
29447         rule to install-exec-localcharset, and make it a prerequisite of
29448         install-exec-local.  Likewise, rename the uninstall-local rule to
29449         uninstall-localcharset, and make it a prerequisite of the former.
29450
29451 2009-05-01  Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29454         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29455         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29456         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29457         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29458         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29459         m4/locale-zh.m4, m4/codeset.m4.
29460
29461         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29462         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29463         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29464         m4/locale-zh.m4.
29465
29466         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29467         REPLACE_WCRTOMB if mbstate_t must be replaced.
29468         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29469         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29470
29471 2009-05-01  Bruno Haible  <bruno@clisp.org>
29472
29473         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29474         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29475         dngettext, dcngettext, textdomain, bindtextdomain,
29476         bind_textdomain_codeset): Undefine before redefining.
29477
29478 2009-04-30  Bruno Haible  <bruno@clisp.org>
29479
29480         Fix bug introduced on 2009-04-25.
29481         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29482         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29483         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29484         is defined.
29485         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29486         is defined.
29487         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29488         is defined.
29489         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29490
29491 2009-04-28  Bruno Haible  <bruno@clisp.org>
29492
29493         Comment tweaks.
29494         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29495         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29496         * lib/unicase.h (u*_casexfrm): Likewise.
29497         Reported by Paolo Bonzini.
29498
29499 2009-04-28  Bruno Haible  <bruno@clisp.org>
29500
29501         Fix a compilation error.
29502         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29503         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29504         Reported by Jim Meyering.
29505
29506 2009-04-27  Bruno Haible  <bruno@clisp.org>
29507
29508         New module 'libunistring'.
29509         * modules/libunistring: New file.
29510         * m4/libunistring.m4: New file.
29511         * MODULES.html.sh (Unicode string functions): Add it.
29512
29513 2009-04-27  Eric Blake  <ebb9@byu.net>
29514
29515         maint.mk: allow package-specific header to provide <config.h>
29516         * top/maint.mk (sc_require_config_h): New variable.
29517         (sc_require_config_h, sc_require_config_h_first): Use it.
29518
29519 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29520
29521         * top/maint.mk (sc_avoid_if_before_free): Except
29522         useless-if-before-free script.
29523
29524 2009-04-27  Eric Blake  <ebb9@byu.net>
29525
29526         maintainer-makefile: depend on all required helper scripts
29527         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29528         useless-if-before-free.
29529         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29530         version, rather than assuming gnulib checkout is available.
29531         Reported by Simen Josefsson.
29532
29533 2009-04-26  Bruno Haible  <bruno@clisp.org>
29534
29535         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29536         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29537         "../" or "..".
29538
29539 2009-04-26  Bruno Haible  <bruno@clisp.org>
29540
29541         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
29542         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
29543         AC_LIB_HAVE_LINKFLAGS.
29544
29545 2009-04-26  Bruno Haible  <bruno@clisp.org>
29546
29547         Simplify calling convention of u*_conv_from_encoding.
29548         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
29549         u32_conv_from_encoding): Expect a resultbuf argument and return the
29550         result directly as a pointer.
29551         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
29552         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
29553         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
29554         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
29555         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
29556         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29557         Update.
29558         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
29559         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
29560         * lib/vasnprintf.c (VASNPRINTF): Update.
29561         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
29562         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
29563         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
29564         * NEWS: Mention the change.
29565
29566 2009-04-26  Bruno Haible  <bruno@clisp.org>
29567
29568         Simplify calling convention of u*_conv_to_encoding.
29569         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29570         u32_conv_to_encoding): Expect a resultbuf argument and return the
29571         result directly as a pointer.
29572         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29573         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
29574         freeing scaled_offsets if mem_iconveha failed.
29575         * lib/unicase/u-casexfrm.h (FUNC): Update.
29576         * lib/uninorm/u-normxfrm.h (FUNC): Update.
29577         * lib/vasnprintf.c (VASNPRINTF): Update.
29578         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
29579         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
29580         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
29581         * NEWS: Mention the change.
29582
29583 2009-04-26  Bruno Haible  <bruno@clisp.org>
29584
29585         Avoid test failures on AIX and OSF/1.
29586         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
29587         malloc(0).
29588         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
29589         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
29590         Likewise.
29591         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
29592         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
29593         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
29594         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
29595         * doc/posix-functions/malloc.texi: Document the portability problem
29596         related to malloc(0).
29597
29598 2009-04-26  Bruno Haible  <bruno@clisp.org>
29599
29600         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
29601         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
29602         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
29603
29604 2009-04-25  Bruno Haible  <bruno@clisp.org>
29605
29606         Avoid link error when creating a namespace clean library.
29607         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
29608         as macro with arguments if already defined as an alias.
29609         * lib/signbitf.c (gl_signbitf): Don't undefine.
29610         * lib/signbitd.c (gl_signbitd): Don't undefine.
29611         * lib/signbitl.c (gl_signbitl): Don't undefine.
29612
29613 2009-04-25  Jim Meyering  <meyering@redhat.com>
29614
29615         vc-list-files: fix another quoting bug
29616         * build-aux/vc-list-files: Avoid sed backslash expansion
29617         of pathological directory names.
29618
29619 2009-04-25  Eric Blake  <ebb9@byu.net>
29620
29621         vc-list-files: fix shell quoting error
29622         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
29623         timestamp.
29624
29625 2009-04-25  Jim Meyering  <meyering@redhat.com>
29626
29627         vc-list-files: restore lost functionality with subdir argument
29628         * build-aux/vc-list-files: When given a non-"." sub-directory
29629         argument, substitute the $dir/ prefix back onto each resulting name.
29630         Otherwise, coreutils' root_tests check would fail.
29631
29632 2009-04-24  Eric Blake  <ebb9@byu.net>
29633
29634         vc-list-files: ignore git symlinks
29635         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
29636         than ls-files, to ignore git symlinks.
29637
29638         maint.mk: import improvements from m4
29639         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
29640         (move_if_change): Delete unused macro.
29641         (news-date-check, vc-diff-check): Support VPATH builds.
29642         (announcement): Likewise.  Split --bootstrap-tools list...
29643         (boostrap-tools): ...into separate list, which can be overridden
29644         in cfg.mk.
29645         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
29646         requiring dependency on useless-if-before-free module.
29647         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
29648         Support VPATH builds.
29649
29650 2009-04-24  Jim Meyering  <meyering@redhat.com>
29651
29652         maint.mk: remove coreutils-specific rules and variables
29653         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
29654         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
29655         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
29656
29657         maint.mk: remove obsolete rule
29658         * top/maint.mk (rel-check): Remove rule.
29659         (WGET, WGETFLAGS): Remove now-unused variables.
29660
29661 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29662
29663         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
29664         consistency.
29665
29666         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
29667         '$(PATH_SEPARATOR)' instead of ':'.
29668
29669 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29670
29671         * lib/getopt1.c (main): Use 'const' for static array.
29672
29673 2009-04-24  Simon Josefsson  <simon@josefsson.org>
29674
29675         * top/maint.mk: Sync with coreutils.
29676         * NEWS: Explain incompatibilities.
29677
29678 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29679             Bruno Haible  <bruno@clisp.org>
29680
29681         Fix cross-compilation results.
29682         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
29683         statement, as third argument of AC_TRY_RUN.
29684         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29685         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29686         Likewise.
29687         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29688         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
29689         Likewise.
29690         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29691         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
29692         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
29693
29694 2009-04-20  Bruno Haible  <bruno@clisp.org>
29695
29696         Avoid test failure on mingw.
29697         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
29698
29699 2009-04-20  Bruno Haible  <bruno@clisp.org>
29700
29701         Avoid compilation error on mingw.
29702         * modules/localename-tests (Depends-on): Add locale.
29703
29704 2009-04-19  Bruno Haible  <bruno@clisp.org>
29705
29706         Support for building a shared library on Windows platforms.
29707         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
29708         (main): Test the presence of UNINORM_NFC here.
29709         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
29710         (main): Test the presence of UNINORM_NFD here.
29711         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
29712         (main): Test the presence of UNINORM_NFKC here.
29713         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
29714         (main): Test the presence of UNINORM_NFKD here.
29715
29716 2009-04-19  Bruno Haible  <bruno@clisp.org>
29717
29718         Avoid a compiler warning.
29719         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
29720         Change type of variable 'sequence'.
29721
29722 2009-04-19  Bruno Haible  <bruno@clisp.org>
29723
29724         * modules/configmake (Makefile.am): When the contents of configmake.h
29725         does not change, arrange to preserve its modification time.
29726
29727 2009-04-17  Simon Josefsson  <simon@josefsson.org>
29728
29729         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
29730         gettext domain.
29731
29732 2009-04-16  Jim Meyering  <meyering@redhat.com>
29733
29734         useless-if-before-free: improve conversion code
29735         * build-aux/useless-if-before-free: Adjust code-in-comment to match
29736         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
29737
29738 2009-04-14  Bruno Haible  <bruno@clisp.org>
29739
29740         * modules/fcntl (Depends-on): Add extensions.
29741         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
29742
29743 2009-04-12  Ben Pfaff  <blp@gnu.org>
29744
29745         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
29746         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
29747
29748 2009-03-20  Ben Pfaff  <blp@gnu.org>
29749
29750         Make rename replace existing destinations on Windows.
29751         * m4/rename.m4: Add test for Mingw.
29752         * lib/rename.c: Add rename replacement that uses MoveFileEx with
29753         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
29754         * doc/posix-functions/rename.texi: Document.
29755
29756 2009-04-10  Bruno Haible  <bruno@clisp.org>
29757
29758         New include file "iconveh.h".
29759         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
29760         * lib/striconveh.h: Include it.
29761         (enum iconv_ilseq_handler): Remove definition.
29762         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
29763         striconveh.h.
29764         * lib/striconveha.c: Include striconveh.h.
29765         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
29766         * modules/striconveh (Files): Add lib/iconveh.h.
29767         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
29768         lib/striconveh.h.
29769
29770 2009-04-10  Bruno Haible  <bruno@clisp.org>
29771
29772         * lib/uniconv.h: Update comment.
29773
29774 2009-04-10  Bruno Haible  <bruno@clisp.org>
29775
29776         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
29777         always.
29778         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29779         * lib/unistr/u16-mbtouc-aux.c: Likewise.
29780         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29781         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
29782         "unistring-notinline.h", so that the function gets defined always.
29783         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29784         * lib/unistr/u8-uctomb.c: Likewise.
29785         * lib/unistr/u16-mbtouc.c: Likewise.
29786         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29787         * lib/unistr/u16-uctomb.c: Likewise.
29788         * lib/unistr/u32-mbtouc.c: Likewise.
29789         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29790         * lib/unistr/u32-uctomb.c: Likewise.
29791
29792 2009-04-10  Bruno Haible  <bruno@clisp.org>
29793
29794         Mark 'utime' obsolete.
29795         * modules/utime (Status, Notice): New sections.
29796         Suggested by Jim Meyering.
29797
29798         Fix cross-compile guess for utime test.
29799         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
29800         autoconf.
29801         * doc/posix-functions/utime.texi: Give more precisions.
29802         Reported by Jan <ipif@ymail.com>.
29803
29804 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
29805
29806         filevercmp: correct today's change
29807         * lib/filevercmp.c: Also handle coreutils' test inputs.
29808         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
29809
29810         Fix regression in 'filevercmp' module. Thanks Sven Joachim
29811         for reporting it.
29812         * lib/filevercmp.c: Special handle for "", "." and "..".
29813         * tests/test-filevercmp.c: Enlarge the set suite.
29814
29815 2009-04-07  Jim Meyering  <meyering@redhat.com>
29816
29817         useless-if-before-free: show how to remove braced useless free, too
29818         * build-aux/useless-if-before-free: still only in a comment, though.
29819
29820 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29821
29822         maint.mk: import changes to syntax-check macros from coreutils
29823         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29824         Use them in the relevant macros.
29825
29826 2009-04-06  Bruno Haible  <bruno@clisp.org>
29827
29828         Fix unportable use of bit-fields.
29829         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29830         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29831         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29832
29833 2009-04-06  Bruno Haible  <bruno@clisp.org>
29834
29835         Avoid test failures on AIX and OSF/1.
29836         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29837         that malloc(0) = NULL.
29838         * tests/unicase/test-u8-tolower.c (check): Likewise.
29839         * tests/unicase/test-u8-totitle.c (check): Likewise.
29840         * tests/unicase/test-u8-toupper.c (check): Likewise.
29841         * tests/unicase/test-u16-casefold.c (check): Likewise.
29842         * tests/unicase/test-u16-tolower.c (check): Likewise.
29843         * tests/unicase/test-u16-totitle.c (check): Likewise.
29844         * tests/unicase/test-u16-toupper.c (check): Likewise.
29845         * tests/unicase/test-u32-casefold.c (check): Likewise.
29846         * tests/unicase/test-u32-tolower.c (check): Likewise.
29847         * tests/unicase/test-u32-totitle.c (check): Likewise.
29848         * tests/unicase/test-u32-toupper.c (check): Likewise.
29849         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29850         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29851         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29852         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29853         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29854         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29855         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29856         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29857         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29858         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29859         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29860         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29861
29862 2009-04-05  Bruno Haible  <bruno@clisp.org>
29863
29864         Work around an autoconf limitation.
29865         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29866         comment line if it would be longer than 3 KB.
29867
29868 2009-04-05  Bruno Haible  <bruno@clisp.org>
29869
29870         Avoid test failure with libiconv-1.13.
29871         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29872         of the expected test results.
29873
29874 2009-04-05  Bruno Haible  <bruno@clisp.org>
29875
29876         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29877         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29878         that it should be installed.
29879
29880 2009-04-05  Bruno Haible  <bruno@clisp.org>
29881
29882         * gnulib-tool: New option --copy-file.
29883         (func_usage): Document it.
29884         (func_dest_tmpfilename): Moved out of func_import.
29885         (func_add_file, func_update_file): New functions, extracted from
29886         func_import.
29887         (func_import): Update.
29888
29889 2009-04-05  Karl Berry  <karl@gnu.org>
29890
29891         * README: prominently mention gnulib-tool.
29892         Rearrange sections so getting the code is near the top.
29893
29894 2009-04-05  Bruno Haible  <bruno@clisp.org>
29895
29896         * lib/unicase.h: Mention u*_cmp2.
29897         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29898         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29899         * lib/unicase/ulc-casecmp.c: Likewise.
29900         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29901         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29902         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29903         unistr/u8-cmp.
29904         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29905         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29906         unistr/u16-cmp.
29907         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29908         unistr/u32-cmp.
29909
29910         * lib/uninorm.h: Mention u*_cmp2.
29911         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29912         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29913         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29914         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29915         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29916         unistr/u8-cmp.
29917         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29918         unistr/u16-cmp.
29919         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29920         unistr/u32-cmp.
29921
29922         New module 'unistr/u32-cmp2'.
29923         * lib/unistr/u32-cmp2.c: New file.
29924         * modules/unistr/u32-cmp2: New file.
29925
29926         New module 'unistr/u16-cmp2'.
29927         * lib/unistr/u16-cmp2.c: New file.
29928         * modules/unistr/u16-cmp2: New file.
29929
29930         New module 'unistr/u8-cmp2'.
29931         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29932         * lib/unistr/u8-cmp2.c: New file.
29933         * lib/unistr/u-cmp2.h: New file.
29934         * modules/unistr/u8-cmp2: New file.
29935
29936 2009-04-05  Bruno Haible  <bruno@clisp.org>
29937
29938         * lib/unictype.h (uc_property_is_valid): New macro.
29939         * tests/unictype/test-pr_byname.c (main): Use it.
29940
29941         * lib/unistr.h: Doc fixes.
29942         * lib/uniconv.h: Doc fixes.
29943         * lib/unictype.h: Doc fixes.
29944
29945 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29946
29947         Port coreutils 7.2 to Solaris 8.
29948
29949         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29950         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29951         for Solaris 8.  This is a bit of a hack, as it means it's the
29952         caller's responsibility to add -lnsl if needed, but most likely it
29953         won't be needed since only getaddrinfo uses this and getaddrinfo
29954         isn't needed on Solaris 8.
29955
29956         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29957         problem to Solaris 8 encountered with coreutils 7.2, which
29958         resulted in a message "fnmatch.c:292: warning: passing argument 4
29959         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29960         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29961
29962 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29963
29964         * m4/ld-version-script.m4: Add FIXME comment.
29965
29966 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29967
29968         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29969         SOVERSION variable.
29970
29971 2009-04-02  Bruno Haible  <bruno@clisp.org>
29972
29973         * Makefile (info, html, dvi, pdf): Combine the rules.
29974         Suggested by Jim Meyering.
29975
29976 2009-04-01  Bruno Haible  <bruno@clisp.org>
29977
29978         * Makefile (info, html, dvi, pdf): New targets.
29979         Reported by Reuben Thomas <rrt@sc3d.org>.
29980
29981 2009-04-01  Bruno Haible  <bruno@clisp.org>
29982
29983         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29984         can be put into PATH.
29985         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29986
29987 2009-04-01  Bruno Haible  <bruno@clisp.org>
29988
29989         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29990
29991 2009-04-01  Bruno Haible  <bruno@clisp.org>
29992
29993         Rename module 'visibility'.
29994         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29995         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29996         * doc/gnulib.texi: Update.
29997         * MODULES.html.sh (Misc): Update.
29998         * NEWS: Mention the change.
29999
30000 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30001
30002         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30003         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30004         Eric Blake <ebb9@byu.net> for review.
30005         * MODULES.html.sh: Add lib-msvc-compat.
30006         * doc/gnulib.texi: Link to new section.
30007         * m4/ld-output-def.m4: New file.
30008         * doc/ld-output-def.texi: New file.
30009
30010 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30011
30012         Rename ld-version-script to lib-symbol-versions.  Suggested by
30013         Bruno Haible <bruno@clisp.org>.
30014         * modules/ld-version-script: Renamed to lib-symbol-versions.
30015         * doc/ld-version-script.texi: Fix module name.
30016         * MODULES.html.sh: Add lib-symbol-versions.
30017
30018 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30019
30020         * modules/u64-tests: New file.
30021         * tests/test-u64.c: New file.
30022
30023 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30024
30025         * MODULES.html.sh: Mention u64.
30026         * modules/u64: New module.
30027         * modules/crypto/sha512: Depend on u64 module instead of providing
30028         u64.h.
30029
30030 2009-03-27  Eric Blake  <ebb9@byu.net>
30031
30032         test-strerror: make debugging EAI_SYSTEM easier
30033         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30034         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30035         failure was EAI_SYSTEM.
30036
30037 2009-03-25  Bruno Haible  <bruno@clisp.org>
30038
30039         Fix a problem with --enable-relocatable on Solaris 7.
30040         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30041         since 2008-02-24.
30042
30043 2009-03-25  Eric Blake  <ebb9@byu.net>
30044
30045         test-sockets: avoid gcc warning
30046         * tests/test-sockets.c (main): Silence compiler warning.
30047
30048 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30049
30050         New modules nproc, pthread, contributed by Glen Lenker.
30051
30052         * MODULES.html.sh: Add pthread, nproc.
30053         * lib/nproc.c: New file.
30054         * lib/nproc.h: New file.
30055         * lib/pthread.in.h: New file.
30056         * m4/pthread.m4: New file.
30057         * modules/nproc: New file.
30058         * modules/pthread: New file.
30059
30060 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30061
30062         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30063         New variable.
30064
30065 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30066
30067         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30068         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30069         * tests/test-filevercmp.c: Add tests for backup suffixes.
30070
30071 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30072
30073         * modules/stdlib (Depends-on): Add stdint, needed when defining
30074         struct random_data on, for example, HP-UX 10.20.  Reported by
30075         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30076
30077 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30078
30079         * lib/readline.c (readline): Call fflush on stdout after printing
30080         prompt.
30081
30082 2009-03-20  Bruno Haible  <bruno@clisp.org>
30083
30084         Remove dependency from 'close' module to -lws2_32 on native Windows.
30085         * lib/close-hook.h: New file.
30086         * lib/close-hook.c: New file.
30087         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30088         w32sock.h.
30089         (_gl_close_fd_maybe_socket): Remove function.
30090         (rpl_close): Invoke execute_all_close_hooks instead of
30091         _gl_close_fd_maybe_socket.
30092         * lib/sockets.c: Include close-hook.h, w32sock.h.
30093         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30094         (close_sockets_hook): New variable.
30095         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30096         (gl_sockets_cleanup): Unregister it.
30097         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30098         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30099         * modules/close-hook: New file.
30100         * modules/close (Files): Remove lib/w32sock.h.
30101         (Depends-on): Add close-hook.
30102         (Link): Remove section.
30103         * modules/sockets (Files): Add lib/w32sock.h.
30104         (Depends-on): Add close-hook.
30105         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30106         invocation.
30107         * NEWS: Mention that LIB_CLOSE is gone.
30108
30109 2009-03-23  Eric Blake  <ebb9@byu.net>
30110
30111         signal-tests: test previous patch
30112         * tests/test-signal.c: New file.
30113         * modules/signal-tests: Likewise.
30114
30115         signal.h: always support 'volatile sig_atomic_t'
30116         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30117         (gl_SIGNAL_H_DEFAULTS): Add a default.
30118         * modules/signal (Makefile.am): Substitute if needed.
30119         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30120         users can blindly add volatile.
30121         * doc/posix-headers/signal.texi (signal.h): Document it.
30122         Reported by Matthew Woehlke.
30123
30124 2009-03-23  Jim Meyering  <meyering@redhat.com>
30125
30126         pathmax: PATH_MAX: use pathconf only when available
30127         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30128         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30129         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30130         This avoids a link failure in a PSP cross-compilation environment
30131         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30132
30133         * lib/vasnprintf.c (divide): Fix typo in comment.
30134
30135 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30136
30137         * gnulib-tool (func_filter_filelist): Fix comment.
30138
30139 2009-03-20  Bruno Haible  <bruno@clisp.org>
30140
30141         Make sockets.h self-contained.
30142         * lib/sockets.c: Include sockets.h first.
30143         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30144
30145 2009-03-19  Eric Blake  <ebb9@byu.net>
30146
30147         doc: mention more functions added in cygwin 1.7.0
30148         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30149         addition.
30150         * doc/posix-functions/log2f.texi: Likewise.
30151
30152 2009-03-19  Jim Meyering  <meyering@redhat.com>
30153
30154         fsusage: avoid syntax error due to statement-before-declaration
30155         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30156         after all declarations.  Reported by Matthew Woehlke in
30157         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30158
30159 2009-03-18  Eric Blake  <ebb9@byu.net>
30160
30161         build-aux/compile: sync from automake
30162         * build-aux/compile: New file, from automake.
30163         * config/srclist.txt: Mention build-aux/compile.
30164
30165 2009-03-17  Bruno Haible  <bruno@clisp.org>
30166
30167         * lib/git-merge-changelog.c: Fix typo in comment.
30168         Reported by Reuben Thomas <rrt@sc3d.org>.
30169
30170 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30171
30172         * m4/regex.m4: update and improve help for
30173         --without-included-regex.
30174
30175 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30176
30177         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30178         failure on missing include files.
30179
30180 2009-03-17  Eric Blake  <ebb9@byu.net>
30181
30182         doc: mention more functions added in cygwin 1.7.0
30183         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30184         addition.
30185         * doc/posix-functions/fwscanf.texi: Likewise.
30186         * doc/posix-functions/swprintf.texi: Likewise.
30187         * doc/posix-functions/swscanf.texi: Likewise.
30188         * doc/posix-functions/vfwprintf.texi: Likewise.
30189         * doc/posix-functions/vfwscanf.texi: Likewise.
30190         * doc/posix-functions/vswprintf.texi: Likewise.
30191         * doc/posix-functions/vswscanf.texi: Likewise.
30192         * doc/posix-functions/vwprintf.texi: Likewise.
30193         * doc/posix-functions/vwscanf.texi: Likewise.
30194         * doc/posix-functions/wcscasecmp.texi: Likewise.
30195         * doc/posix-functions/wcsdup.texi: Likewise.
30196         * doc/posix-functions/wcsftime.texi: Likewise.
30197         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30198         * doc/posix-functions/wprintf.texi: Likewise.
30199         * doc/posix-functions/wscanf.texi: Likewise.
30200         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30201
30202 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30203
30204         maint.mk: really add $(AM_MAKEFLAGS)
30205         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30206         was inadvertently omitted in the last commit.
30207         Spotted by Bruno Haible.
30208
30209         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30210         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30211         $(AM_MAKEFLAGS)' rather than plain `make'.
30212
30213         gnulib-tool: execute $MAKE not make
30214         * gnulib-tool: Default $MAKE to 'make'.
30215         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30216         than make.  Initialize $MAKE in the do-autobuild script.
30217
30218         gnulib-tool: use $MAKE not make in generated files
30219         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30220         make, in generated files.  Initialize $MAKE in the do-autobuild
30221         script.
30222
30223         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30224
30225         GNUmakefile: disable parallelism only for multiple, recursive targets
30226         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30227         additions in the Makefile.
30228         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30229         by Automake.
30230         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30231         are listed on the command line and at least one of them is
30232         listed in $(ALL_RECURSIVE_TARGETS).
30233
30234 2009-03-14  Bruno Haible  <bruno@clisp.org>
30235
30236         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30237         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30238         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30239         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30240         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30241         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30242         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30243         unistr/u8-uctomb.
30244         * modules/unistr/u8-strchr (Depends-on): Likewise.
30245         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30246         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30247         unistr/u16-uctomb.
30248         * modules/unistr/u16-strchr (Depends-on): Likewise.
30249         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30250
30251 2009-03-12  Bruno Haible  <bruno@clisp.org>
30252
30253         Work around select() bug on Interix 3.5.
30254         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30255         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30256         * m4/select.m4: New file.
30257         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30258         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30259         * modules/select (Files): Add m4/select.m4.
30260         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30261         * modules/nanosleep (Depends-on): Add select.
30262         * modules/poll (Depends-on): Likewise.
30263         * doc/posix-functions/select.texi: Mention the Interix bug.
30264         Reported by Markus Duft <mduft@gentoo.org>.
30265
30266         * lib/select.c: Renamed from lib/winsock-select.c.
30267         * modules/select (Files): Add lib/select.c, remove
30268         lib/winsock-select.c.
30269         (configure.ac): Update.
30270
30271 2009-03-12  Jim Meyering  <meyering@redhat.com>
30272
30273         avoid gcc warnings about unused macro definitions
30274         * lib/readtokens.c (STREQ): Remove unused definition.
30275         * lib/xmalloc.c (SIZE_MAX): Likewise.
30276         * lib/openat-die.c (N_): Likewise.
30277         * lib/mountlist.c (SIZE_MAX): Remove definition.
30278         Instead, include <stdint.h>.
30279         * lib/readutmp.c: Likewise.
30280         * modules/readutmp (Depends-on): Add stdint.
30281         * modules/mountlist (Depends-on): Add stdint.
30282         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30283
30284 2009-03-10  Bruno Haible  <bruno@clisp.org>
30285
30286         Tests for module 'mbmemcasecoll'.
30287         * modules/mbmemcasecoll-tests: New file.
30288         * tests/test-mbmemcasecoll1.sh: New file.
30289         * tests/test-mbmemcasecoll2.sh: New file.
30290         * tests/test-mbmemcasecoll3.sh: New file.
30291         * tests/test-mbmemcasecoll.c: New file.
30292
30293         New module 'mbmemcasecoll'.
30294         * lib/mbmemcasecoll.h: New file.
30295         * lib/mbmemcasecoll.c: New file.
30296         * modules/mbmemcasecoll: New file.
30297
30298         * tests/test-mbmemcasecmp.h: New file, extracted from
30299         tests/test-mbmemcasecmp.c.
30300         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30301         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30302         (main): Update.
30303         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30304
30305 2009-03-09  Bruno Haible  <bruno@clisp.org>
30306
30307         Tests for module 'mbmemcasecmp'.
30308         * modules/mbmemcasecmp-tests: New file.
30309         * tests/test-mbmemcasecmp1.sh: New file.
30310         * tests/test-mbmemcasecmp2.sh: New file.
30311         * tests/test-mbmemcasecmp3.sh: New file.
30312         * tests/test-mbmemcasecmp.c: New file.
30313
30314         New module 'mbmemcasecmp'.
30315         * lib/mbmemcasecmp.h: New file.
30316         * lib/mbmemcasecmp.c: New file.
30317         * modules/mbmemcasecmp: New file.
30318
30319 2009-03-09  Bruno Haible  <bruno@clisp.org>
30320
30321         Tests for module 'unicase/ulc-casecoll'.
30322         * modules/unicase/ulc-casecoll-tests: New file.
30323         * tests/unicase/test-ulc-casecoll1.sh: New file.
30324         * tests/unicase/test-ulc-casecoll2.sh: New file.
30325         * tests/unicase/test-ulc-casecoll.c: New file.
30326
30327         New module 'unicase/ulc-casecoll'.
30328         * lib/unicase.h (ulc_casecoll): New declaration.
30329         * lib/unicase/ulc-casecoll.c: New file.
30330         * modules/unicase/ulc-casecoll: New file.
30331
30332         New module 'unicase/ulc-casexfrm'.
30333         * lib/unicase.h (ulc_casexfrm): New declaration.
30334         * lib/unicase/ulc-casexfrm.c: New file.
30335         * modules/unicase/ulc-casexfrm: New file.
30336
30337 2009-03-09  Bruno Haible  <bruno@clisp.org>
30338
30339         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30340         invocations.
30341
30342         * m4/mbscasecmp.m4: Remove file.
30343         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30344         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30345
30346         * m4/mbscasestr.m4: Remove file.
30347         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30348         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30349
30350         * m4/mbschr.m4: Remove file.
30351         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30352         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30353
30354         * m4/mbscspn.m4: Remove file.
30355         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30356         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30357
30358         * m4/mbslen.m4: Remove file.
30359         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30360         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30361
30362         * m4/mbsncasecmp.m4: Remove file.
30363         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30364         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30365
30366         * m4/mbsnlen.m4: Remove file.
30367         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30368         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30369
30370         * m4/mbspbrk.m4: Remove file.
30371         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30372         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30373
30374         * m4/mbspcasecmp.m4: Remove file.
30375         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30376         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30377
30378         * m4/mbsrchr.m4: Remove file.
30379         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30380         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30381
30382         * m4/mbssep.m4: Remove file.
30383         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30384         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30385
30386         * m4/mbsspn.m4: Remove file.
30387         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30388         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30389
30390         * m4/mbsstr.m4: Remove file.
30391         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30392         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30393
30394         * m4/mbstok_r.m4: Remove file.
30395         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30396         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30397
30398         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30399
30400         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30401         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30402
30403         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30404
30405 2009-03-08  Bruno Haible  <bruno@clisp.org>
30406
30407         Tests for module 'unicase/ulc-casecmp'.
30408         * modules/unicase/ulc-casecmp-tests: New file.
30409         * tests/unicase/test-ulc-casecmp1.sh: New file.
30410         * tests/unicase/test-ulc-casecmp2.sh: New file.
30411         * tests/unicase/test-ulc-casecmp.c: New file.
30412
30413         New module 'unicase/ulc-casecmp'.
30414         * lib/unicase.h (ulc_casecmp): New declaration.
30415         * lib/unicase/ulc-casecmp.c: New file.
30416         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30417         'const SRC_UNIT *'.
30418         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30419         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30420         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30421         * modules/unicase/ulc-casecmp: New file.
30422
30423         Tests for module 'unicase/u32-is-cased'.
30424         * modules/unicase/u32-is-cased-tests: New file.
30425         * tests/unicase/test-u32-is-cased.c: New file.
30426
30427         Tests for module 'unicase/u16-is-cased'.
30428         * modules/unicase/u16-is-cased-tests: New file.
30429         * tests/unicase/test-u16-is-cased.c: New file.
30430
30431         Tests for module 'unicase/u8-is-cased'.
30432         * modules/unicase/u8-is-cased-tests: New file.
30433         * tests/unicase/test-u8-is-cased.c: New file.
30434         * tests/unicase/test-is-cased.h: New file.
30435
30436         New module 'unicase/u32-is-cased'.
30437         * lib/unicase/u32-is-cased.c: New file.
30438         * modules/unicase/u32-is-cased: New file.
30439
30440         New module 'unicase/u16-is-cased'.
30441         * lib/unicase/u16-is-cased.c: New file.
30442         * modules/unicase/u16-is-cased: New file.
30443
30444         New module 'unicase/u8-is-cased'.
30445         * lib/unicase/u8-is-cased.c: New file.
30446         * lib/unicase/u-is-cased.h: New file.
30447         * modules/unicase/u8-is-cased: New file.
30448
30449         Tests for module 'unicase/u32-is-casefolded'.
30450         * modules/unicase/u32-is-casefolded-tests: New file.
30451         * tests/unicase/test-u32-is-casefolded.c: New file.
30452
30453         Tests for module 'unicase/u16-is-casefolded'.
30454         * modules/unicase/u16-is-casefolded-tests: New file.
30455         * tests/unicase/test-u16-is-casefolded.c: New file.
30456
30457         Tests for module 'unicase/u8-is-casefolded'.
30458         * modules/unicase/u8-is-casefolded-tests: New file.
30459         * tests/unicase/test-u8-is-casefolded.c: New file.
30460         * tests/unicase/test-is-casefolded.h: New file.
30461
30462         New module 'unicase/u32-is-casefolded'.
30463         * lib/unicase/u32-is-casefolded.c: New file.
30464         * modules/unicase/u32-is-casefolded: New file.
30465
30466         New module 'unicase/u16-is-casefolded'.
30467         * lib/unicase/u16-is-casefolded.c: New file.
30468         * modules/unicase/u16-is-casefolded: New file.
30469
30470         New module 'unicase/u8-is-casefolded'.
30471         * lib/unicase/u8-is-casefolded.c: New file.
30472         * modules/unicase/u8-is-casefolded: New file.
30473
30474         Tests for module 'unicase/u32-is-titlecase'.
30475         * modules/unicase/u32-is-titlecase-tests: New file.
30476         * tests/unicase/test-u32-is-titlecase.c: New file.
30477
30478         Tests for module 'unicase/u16-is-titlecase'.
30479         * modules/unicase/u16-is-titlecase-tests: New file.
30480         * tests/unicase/test-u16-is-titlecase.c: New file.
30481
30482         Tests for module 'unicase/u8-is-titlecase'.
30483         * modules/unicase/u8-is-titlecase-tests: New file.
30484         * tests/unicase/test-u8-is-titlecase.c: New file.
30485         * tests/unicase/test-is-titlecase.h: New file.
30486
30487         New module 'unicase/u32-is-titlecase'.
30488         * lib/unicase/u32-is-titlecase.c: New file.
30489         * modules/unicase/u32-is-titlecase: New file.
30490
30491         New module 'unicase/u16-is-titlecase'.
30492         * lib/unicase/u16-is-titlecase.c: New file.
30493         * modules/unicase/u16-is-titlecase: New file.
30494
30495         New module 'unicase/u8-is-titlecase'.
30496         * lib/unicase/u8-is-titlecase.c: New file.
30497         * modules/unicase/u8-is-titlecase: New file.
30498
30499         Tests for module 'unicase/u32-is-lowercase'.
30500         * modules/unicase/u32-is-lowercase-tests: New file.
30501         * tests/unicase/test-u32-is-lowercase.c: New file.
30502
30503         Tests for module 'unicase/u16-is-lowercase'.
30504         * modules/unicase/u16-is-lowercase-tests: New file.
30505         * tests/unicase/test-u16-is-lowercase.c: New file.
30506
30507         Tests for module 'unicase/u8-is-lowercase'.
30508         * modules/unicase/u8-is-lowercase-tests: New file.
30509         * tests/unicase/test-u8-is-lowercase.c: New file.
30510         * tests/unicase/test-is-lowercase.h: New file.
30511
30512         New module 'unicase/u32-is-lowercase'.
30513         * lib/unicase/u32-is-lowercase.c: New file.
30514         * modules/unicase/u32-is-lowercase: New file.
30515
30516         New module 'unicase/u16-is-lowercase'.
30517         * lib/unicase/u16-is-lowercase.c: New file.
30518         * modules/unicase/u16-is-lowercase: New file.
30519
30520         New module 'unicase/u8-is-lowercase'.
30521         * lib/unicase/u8-is-lowercase.c: New file.
30522         * modules/unicase/u8-is-lowercase: New file.
30523
30524         Tests for module 'unicase/u32-is-uppercase'.
30525         * modules/unicase/u32-is-uppercase-tests: New file.
30526         * tests/unicase/test-u32-is-uppercase.c: New file.
30527
30528         Tests for module 'unicase/u16-is-uppercase'.
30529         * modules/unicase/u16-is-uppercase-tests: New file.
30530         * tests/unicase/test-u16-is-uppercase.c: New file.
30531
30532         Tests for module 'unicase/u8-is-uppercase'.
30533         * modules/unicase/u8-is-uppercase-tests: New file.
30534         * tests/unicase/test-u8-is-uppercase.c: New file.
30535         * tests/unicase/test-is-uppercase.h: New file.
30536
30537         New module 'unicase/u32-is-uppercase'.
30538         * lib/unicase/u32-is-uppercase.c: New file.
30539         * modules/unicase/u32-is-uppercase: New file.
30540
30541         New module 'unicase/u16-is-uppercase'.
30542         * lib/unicase/u16-is-uppercase.c: New file.
30543         * modules/unicase/u16-is-uppercase: New file.
30544
30545         New module 'unicase/u8-is-uppercase'.
30546         * lib/unicase/u8-is-uppercase.c: New file.
30547         * modules/unicase/u8-is-uppercase: New file.
30548
30549         New module 'unicase/u32-is-invariant'.
30550         * lib/unicase/u32-is-invariant.c: New file.
30551         * modules/unicase/u32-is-invariant: New file.
30552
30553         New module 'unicase/u16-is-invariant'.
30554         * lib/unicase/u16-is-invariant.c: New file.
30555         * modules/unicase/u16-is-invariant: New file.
30556
30557         New module 'unicase/u8-is-invariant'.
30558         * lib/unicase/u8-is-invariant.c: New file.
30559         * lib/unicase/invariant.h: New file.
30560         * lib/unicase/u-is-invariant.h: New file.
30561         * modules/unicase/u8-is-invariant: New file.
30562
30563         Tests for module 'unicase/u32-casecoll'.
30564         * modules/unicase/u32-casecoll-tests: New file.
30565         * tests/unicase/test-u32-casecoll.c: New file.
30566
30567         Tests for module 'unicase/u16-casecoll'.
30568         * modules/unicase/u16-casecoll-tests: New file.
30569         * tests/unicase/test-u16-casecoll.c: New file.
30570
30571         Tests for module 'unicase/u8-casecoll'.
30572         * modules/unicase/u8-casecoll-tests: New file.
30573         * tests/unicase/test-u8-casecoll.c: New file.
30574
30575         New module 'unicase/u32-casecoll'.
30576         * lib/unicase/u32-casecoll.c: New file.
30577         * modules/unicase/u32-casecoll: New file.
30578
30579         New module 'unicase/u16-casecoll'.
30580         * lib/unicase/u16-casecoll.c: New file.
30581         * modules/unicase/u16-casecoll: New file.
30582
30583         New module 'unicase/u8-casecoll'.
30584         * lib/unicase/u8-casecoll.c: New file.
30585         * lib/unicase/u-casecoll.h: New file.
30586         * modules/unicase/u8-casecoll: New file.
30587
30588         New module 'unicase/u32-casexfrm'.
30589         * lib/unicase/u32-casexfrm.c: New file.
30590         * modules/unicase/u32-casexfrm: New file.
30591
30592         New module 'unicase/u16-casexfrm'.
30593         * lib/unicase/u16-casexfrm.c: New file.
30594         * modules/unicase/u16-casexfrm: New file.
30595
30596         New module 'unicase/u8-casexfrm'.
30597         * lib/unicase/u8-casexfrm.c: New file.
30598         * lib/unicase/u-casexfrm.h: New file.
30599         * modules/unicase/u8-casexfrm: New file.
30600
30601         Tests for module 'unicase/u32-casecmp'.
30602         * modules/unicase/u32-casecmp-tests: New file.
30603         * tests/unicase/test-u32-casecmp.c: New file.
30604
30605         Tests for module 'unicase/u16-casecmp'.
30606         * modules/unicase/u16-casecmp-tests: New file.
30607         * tests/unicase/test-u16-casecmp.c: New file.
30608
30609         Tests for module 'unicase/u8-casecmp'.
30610         * modules/unicase/u8-casecmp-tests: New file.
30611         * tests/unicase/test-u8-casecmp.c: New file.
30612         * tests/unicase/test-casecmp.h: New file.
30613
30614         New module 'unicase/u32-casecmp'.
30615         * lib/unicase/u32-casecmp.c: New file.
30616         * modules/unicase/u32-casecmp: New file.
30617
30618         New module 'unicase/u16-casecmp'.
30619         * lib/unicase/u16-casecmp.c: New file.
30620         * modules/unicase/u16-casecmp: New file.
30621
30622         New module 'unicase/u8-casecmp'.
30623         * lib/unicase/u8-casecmp.c: New file.
30624         * lib/unicase/u-casecmp.h: New file.
30625         * modules/unicase/u8-casecmp: New file.
30626
30627         Tests for module 'unicase/u32-casefold'.
30628         * modules/unicase/u32-casefold-tests: New file.
30629         * tests/unicase/test-u32-casefold.c: New file.
30630
30631         Tests for module 'unicase/u16-casefold'.
30632         * modules/unicase/u16-casefold-tests: New file.
30633         * tests/unicase/test-u16-casefold.c: New file.
30634
30635         Tests for module 'unicase/u8-casefold'.
30636         * modules/unicase/u8-casefold-tests: New file.
30637         * tests/unicase/test-u8-casefold.c: New file.
30638
30639         New module 'unicase/u32-casefold'.
30640         * lib/unicase/u32-casefold.c: New file.
30641         * modules/unicase/u32-casefold: New file.
30642
30643         New module 'unicase/u16-casefold'.
30644         * lib/unicase/u16-casefold.c: New file.
30645         * modules/unicase/u16-casefold: New file.
30646
30647         New module 'unicase/u8-casefold'.
30648         * lib/unicase/u8-casefold.c: New file.
30649         * lib/unicase/u-casefold.h: New file.
30650         * modules/unicase/u8-casefold: New file.
30651
30652         New module 'unicase/tocasefold'.
30653         * lib/unicase/casefold.h: New file.
30654         * lib/unicase/tocasefold.c: New file.
30655         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
30656         * modules/unicase/tocasefold: New file.
30657
30658         Tests for module 'unicase/u32-totitle'.
30659         * modules/unicase/u32-totitle-tests: New file.
30660         * tests/unicase/test-u32-totitle.c: New file.
30661
30662         Tests for module 'unicase/u16-totitle'.
30663         * modules/unicase/u16-totitle-tests: New file.
30664         * tests/unicase/test-u16-totitle.c: New file.
30665
30666         Tests for module 'unicase/u8-totitle'.
30667         * modules/unicase/u8-totitle-tests: New file.
30668         * tests/unicase/test-u8-totitle.c: New file.
30669
30670         New module 'unicase/u32-totitle'.
30671         * lib/unicase/u32-totitle.c: New file.
30672         * modules/unicase/u32-totitle: New file.
30673
30674         New module 'unicase/u16-totitle'.
30675         * lib/unicase/u16-totitle.c: New file.
30676         * modules/unicase/u16-totitle: New file.
30677
30678         New module 'unicase/u8-totitle'.
30679         * lib/unicase/u8-totitle.c: New file.
30680         * lib/unicase/u-totitle.h: New file.
30681         * modules/unicase/u8-totitle: New file.
30682
30683         Tests for module 'unicase/u32-tolower'.
30684         * modules/unicase/u32-tolower-tests: New file.
30685         * tests/unicase/test-u32-tolower.c: New file.
30686
30687         Tests for module 'unicase/u16-tolower'.
30688         * modules/unicase/u16-tolower-tests: New file.
30689         * tests/unicase/test-u16-tolower.c: New file.
30690
30691         Tests for module 'unicase/u8-tolower'.
30692         * modules/unicase/u8-tolower-tests: New file.
30693         * tests/unicase/test-u8-tolower.c: New file.
30694
30695         New module 'unicase/u32-tolower'.
30696         * lib/unicase/u32-tolower.c: New file.
30697         * modules/unicase/u32-tolower: New file.
30698
30699         New module 'unicase/u16-tolower'.
30700         * lib/unicase/u16-tolower.c: New file.
30701         * modules/unicase/u16-tolower: New file.
30702
30703         New module 'unicase/u8-tolower'.
30704         * lib/unicase/u8-tolower.c: New file.
30705         * modules/unicase/u8-tolower: New file.
30706
30707         Tests for module 'unicase/u32-toupper'.
30708         * modules/unicase/u32-toupper-tests: New file.
30709         * tests/unicase/test-u32-toupper.c: New file.
30710
30711         Tests for module 'unicase/u16-toupper'.
30712         * modules/unicase/u16-toupper-tests: New file.
30713         * tests/unicase/test-u16-toupper.c: New file.
30714
30715         Tests for module 'unicase/u8-toupper'.
30716         * modules/unicase/u8-toupper-tests: New file.
30717         * tests/unicase/test-u8-toupper.c: New file.
30718
30719         New module 'unicase/u32-toupper'.
30720         * lib/unicase/u32-toupper.c: New file.
30721         * modules/unicase/u32-toupper: New file.
30722
30723         New module 'unicase/u16-toupper'.
30724         * lib/unicase/u16-toupper.c: New file.
30725         * modules/unicase/u16-toupper: New file.
30726
30727         New module 'unicase/u8-toupper'.
30728         * lib/unicase/u8-toupper.c: New file.
30729         * modules/unicase/u8-toupper: New file.
30730
30731         New module 'unicase/u32-casemap'.
30732         * lib/unicase/u32-casemap.c: New file.
30733         * modules/unicase/u32-casemap: New file.
30734
30735         New module 'unicase/u16-casemap'.
30736         * lib/unicase/u16-casemap.c: New file.
30737         * modules/unicase/u16-casemap: New file.
30738
30739         New module 'unicase/u8-casemap'.
30740         * lib/unicase/unicasemap.h: New file.
30741         * lib/unicase/u8-casemap.c: New file.
30742         * lib/unicase/u-casemap.h: New file.
30743         * modules/unicase/u8-casemap: New file.
30744
30745         New module 'unicase/special-casing'.
30746         * lib/unicase/special-casing.h: New file.
30747         * lib/unicase/special-casing.c: New file.
30748         * lib/unicase/special-casing-table.gperf: New file, generated by
30749         gen-uni-tables.c.
30750         * modules/unicase/special-casing: New file.
30751
30752         Tests for module 'unicase/locale-language'.
30753         * modules/unicase/locale-language-tests: New file.
30754         * tests/unicase/test-locale-language.sh: New file.
30755         * tests/unicase/test-locale-language.c: New file.
30756
30757         New module 'unicase/locale-language'.
30758         * lib/unicase/locale-language.c: New file.
30759         * lib/unicase/locale-languages.gperf: New file.
30760         * modules/unicase/locale-language: New file.
30761
30762         Generate more tables for case conversion and case folding.
30763         * lib/gen-uni-tables.c (SCC_*): New enum items.
30764         (struct special_casing_rule): New type.
30765         (casing_rules, num_casing_rules, allocated_casing_rules): New
30766         variables.
30767         (add_casing_rule, fill_casing_rules): New functions.
30768         (struct casefold_rule): New type.
30769         (casefolding_rules, num_casefolding_rules,
30770         allocated_casefolding_rules): New variables.
30771         (fill_casefolding_rules): New function.
30772         (unicode_casefold): New variable.
30773         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
30774         sort_casing_rules, output_casing_rules): New functions.
30775         (main): Accept to more arguments: SpecialCasing.txt and
30776         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
30777         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
30778         Output mapping for casefolding.
30779
30780         * lib/unicase.h: Include stdbool.h, uninorm.h.
30781         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
30782         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
30783         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
30784         arguments.
30785         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
30786         resultp arguments.
30787         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
30788         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
30789         resultp arguments.
30790         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
30791         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
30792         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
30793         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
30794         declarations.
30795         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
30796
30797 2009-03-08  Bruno Haible  <bruno@clisp.org>
30798
30799         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30800         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
30801         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
30802         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30803
30804 2009-03-07  Bruno Haible  <bruno@clisp.org>
30805
30806         Adjust u*_normcmp, u*_normcoll API.
30807         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
30808         u16_normcoll, u32_normcoll): Change failure conventions.
30809         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
30810         errno and return -1.
30811         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30812
30813 2009-03-07  Bruno Haible  <bruno@clisp.org>
30814
30815         Tests for module 'uninorm/u32-normcoll'.
30816         * modules/uninorm/u32-normcoll-tests: New file.
30817         * tests/uninorm/test-u32-normcoll.c: New file.
30818
30819         Tests for module 'uninorm/u16-normcoll'.
30820         * modules/uninorm/u16-normcoll-tests: New file.
30821         * tests/uninorm/test-u16-normcoll.c: New file.
30822
30823         Tests for module 'uninorm/u8-normcoll'.
30824         * modules/uninorm/u8-normcoll-tests: New file.
30825         * tests/uninorm/test-u8-normcoll.c: New file.
30826
30827 2009-03-07  Bruno Haible  <bruno@clisp.org>
30828
30829         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30830         tests/uninorm/test-u32-normcmp.c.
30831         * tests/uninorm/test-u32-normcmp.c: Include it.
30832         (test_nonascii): New function, extracted from main. Add some more
30833         tests.
30834         (main): Invoke test_ascii and test_nonascii.
30835         * modules/uninorm/u32-normcmp-tests (Files): Add
30836         tests/uninorm/test-u32-normcmp.h.
30837         (Depends-on): Remove uninorm/u32-normcmp.
30838
30839         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30840         tests/uninorm/test-u16-normcmp.c.
30841         * tests/uninorm/test-u16-normcmp.c: Include it.
30842         (test_nonascii): New function, extracted from main. Add some more
30843         tests.
30844         (main): Invoke test_ascii and test_nonascii.
30845         * modules/uninorm/u16-normcmp-tests (Files): Add
30846         tests/uninorm/test-u16-normcmp.h.
30847         (Depends-on): Remove uninorm/u16-normcmp.
30848
30849         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30850         tests/uninorm/test-u8-normcmp.c.
30851         * tests/uninorm/test-u8-normcmp.c: Include it.
30852         (test_nonascii): New function, extracted from main. Add some more
30853         tests.
30854         (main): Invoke test_ascii and test_nonascii.
30855         * modules/uninorm/u8-normcmp-tests (Files): Add
30856         tests/uninorm/test-u8-normcmp.h.
30857         (Depends-on): Remove uninorm/u8-normcmp.
30858
30859 2009-03-07  Bruno Haible  <bruno@clisp.org>
30860
30861         New module 'uninorm/u32-normcoll'.
30862         * lib/uninorm/u32-normcoll.c: New file.
30863         * modules/uninorm/u32-normcoll: New file.
30864
30865         New module 'uninorm/u16-normcoll'.
30866         * lib/uninorm/u16-normcoll.c: New file.
30867         * modules/uninorm/u16-normcoll: New file.
30868
30869         New module 'uninorm/u8-normcoll'.
30870         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30871         declarations.
30872         * lib/uninorm/u8-normcoll.c: New file.
30873         * lib/uninorm/u-normcoll.h: New file.
30874         * modules/uninorm/u8-normcoll: New file.
30875
30876         New module 'uninorm/u32-normxfrm'.
30877         * lib/uninorm/u32-normxfrm.c: New file.
30878         * modules/uninorm/u32-normxfrm: New file.
30879
30880         New module 'uninorm/u16-normxfrm'.
30881         * lib/uninorm/u16-normxfrm.c: New file.
30882         * modules/uninorm/u16-normxfrm: New file.
30883
30884         New module 'uninorm/u8-normxfrm'.
30885         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30886         declarations.
30887         * lib/uninorm/u8-normxfrm.c: New file.
30888         * lib/uninorm/u-normxfrm.h: New file.
30889         * modules/uninorm/u8-normxfrm: New file.
30890
30891 2009-03-07  Bruno Haible  <bruno@clisp.org>
30892
30893         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30894         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30895         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30896
30897 2009-03-07  Bruno Haible  <bruno@clisp.org>
30898
30899         New module 'memxfrm'.
30900         * lib/memxfrm.h: New file.
30901         * lib/memxfrm.c: New file.
30902         * modules/memxfrm: New file.
30903
30904 2009-03-07  Bruno Haible  <bruno@clisp.org>
30905
30906         New module 'memcmp2'.
30907         * lib/memcmp2.h: New file.
30908         * lib/memcmp2.c: New file.
30909         * modules/memcmp2: New file.
30910
30911 2009-03-07  Bruno Haible  <bruno@clisp.org>
30912
30913         Tests for module 'uninorm/decomposing-form'.
30914         * modules/uninorm/decomposing-form-tests: New file.
30915         * tests/uninorm/test-decomposing-form.c: New file.
30916
30917         New module 'uninorm/decomposing-form'.
30918         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30919         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30920         Add 'decomposing_variant' field.
30921         * lib/uninorm/decomposing-form.c: New file.
30922         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30923         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30924         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30925         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30926         * modules/uninorm/decomposing-form: New file.
30927         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30928         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30929
30930 2009-03-07  Bruno Haible  <bruno@clisp.org>
30931
30932         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30933         strings.
30934
30935 2009-03-06  Bruno Haible  <bruno@clisp.org>
30936
30937         Tests for module 'uninorm/u32-normcmp'.
30938         * tests/uninorm/test-u32-normcmp.c: New file.
30939         * modules/uninorm/u32-normcmp-tests: New file.
30940
30941         Tests for module 'uninorm/u16-normcmp'.
30942         * tests/uninorm/test-u16-normcmp.c: New file.
30943         * modules/uninorm/u16-normcmp-tests: New file.
30944
30945         Tests for module 'uninorm/u8-normcmp'.
30946         * tests/uninorm/test-u8-normcmp.c: New file.
30947         * modules/uninorm/u8-normcmp-tests: New file.
30948
30949         New module 'uninorm/u32-normcmp'.
30950         * lib/uninorm/u32-normcmp.c: New file.
30951         * modules/uninorm/u32-normcmp: New file.
30952
30953         New module 'uninorm/u16-normcmp'.
30954         * lib/uninorm/u16-normcmp.c: New file.
30955         * modules/uninorm/u16-normcmp: New file.
30956
30957         New module 'uninorm/u8-normcmp'.
30958         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30959         declarations.
30960         * lib/uninorm/u8-normcmp.c: New file.
30961         * lib/uninorm/u-normcmp.h: New file.
30962         * modules/uninorm/u8-normcmp: New file.
30963
30964 2009-03-06  Bruno Haible  <bruno@clisp.org>
30965
30966         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30967         Reported by Eric Blake.
30968
30969 2009-03-06  Eric Blake  <ebb9@byu.net>
30970             Bruno Haible  <bruno@clisp.org>
30971
30972         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30973         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30974         condition.
30975         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30976         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30977         condition.
30978         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30979
30980 2009-03-06  Eric Blake  <ebb9@byu.net>
30981
30982         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30983         to avoid compiler warnings.
30984         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30985
30986 2009-03-05  Bruno Haible  <bruno@clisp.org>
30987
30988         * tests/test-ftell.c (main): Disable test beyond end of file on
30989         FreeMiNT.
30990         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30991
30992 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30993
30994         * lib/filevercmp.c: Move hidden files up in ordering.
30995         * tests/test-filevercmp.c: Add tests for hidden files.
30996
30997 2009-03-04  Bruno Haible  <bruno@clisp.org>
30998
30999         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31000         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31001         AM_CFLAGS.
31002         Reported by Simon Josefsson.
31003
31004 2009-03-03  Bruno Haible  <bruno@clisp.org>
31005
31006         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31007         Reported by Simon Josefsson.
31008
31009         * doc/ld-version-script.texi: Update node reference.
31010
31011 2009-03-03  Bruno Haible  <bruno@clisp.org>
31012
31013         * modules/visibility (License): Change to 'unlimited'.
31014         Suggested by Simon Josefsson.
31015
31016 2009-03-03  Jim Meyering  <meyering@redhat.com>
31017
31018         unlinkdir: cannot_unlink_dir may modify process state
31019         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31020         it's neither thread-safe nor appropriate for use in a library.
31021
31022 2009-03-03  Eric Blake  <ebb9@byu.net>
31023
31024         test-closein: silence test under Darwin
31025         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31026         care if it dies from EPIPE or EBADF.
31027
31028 2009-03-03  Bruno Haible  <bruno@clisp.org>
31029
31030         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31031         earlier.
31032         * doc/visibility.texi: Fix @node and @section.
31033
31034 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31035
31036         * doc/gnulib.texi: Link to sections for ld version script and
31037         visibility.
31038         * doc/visibility.texi: Add @node and @section.
31039         * modules/ld-version-script: New module.
31040         * m4/ld-version-script.m4: New file.
31041         * doc/ld-version-script.texi: New file.
31042
31043 2009-03-02  David Lutterkort  <lutter@redhat.com>
31044
31045         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31047
31048 2009-03-02  Bruno Haible  <bruno@clisp.org>
31049
31050         * doc/visibility.texi: Mention libtool's -export-symbols option.
31051
31052 2009-03-02  Jim Meyering  <meyering@redhat.com>
31053
31054         announce-gen: new option: --no-print-checksums
31055         * build-aux/announce-gen (usage): Describe it.
31056         (print_checksums): Print a newline here, not in the [*] footnote.
31057         (main): Honor it.
31058
31059 2009-03-01  Bruno Haible  <bruno@clisp.org>
31060
31061         Use socklen_t in the native Windows replacements prototypes.
31062         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31063         instead of 'int'.
31064         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31065         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31066         * modules/getsockopt (Depends-on): Add socklen.
31067         * modules/setsockopt (Depends-on): Add socklen.
31068
31069 2009-03-01  Bruno Haible  <bruno@clisp.org>
31070
31071         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31072         least 4.2.
31073
31074 2009-03-01  Eric Blake  <ebb9@byu.net>
31075             Bruno Haible  <bruno@clisp.org>
31076
31077         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31078         error messages.
31079         * lib/wait-process.c (wait_subprocess): Omit error message about
31080         deadly signal sent to the child of termsigp != NULL.
31081
31082 2009-03-01  Eric Blake  <ebb9@byu.net>
31083
31084         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31085
31086 2009-03-01  Bruno Haible  <bruno@clisp.org>
31087
31088         Avoid a gcc warning.
31089         * tests/test-sched.c (b): Make global.
31090         Reported by Eric Blake.
31091
31092 2009-01-19  Martin Lambers  <marlam@marlam.de>
31093
31094         Provide POSIX semantics for socket timeout options on W32.
31095         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31096         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31097         * modules/setsockopt: Depend on sys_time module for struct timeval.
31098         * modules/getsockopt: Depend on sys_time module for struct timeval.
31099
31100 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31101
31102         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31103         __USE_GNU, for consistency with netdb.in.h.
31104         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31105
31106 2009-03-01  Bruno Haible  <bruno@clisp.org>
31107
31108         More support for FreeMiNT.
31109         * lib/fseeko.c (rpl_fseeko): Complete last commit.
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/fpurge.c (fpurge): Correct last commit.
31116         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31117
31118 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31119
31120         Fix unportable awk script in vc-list-files.
31121         * build-aux/vc-list-files: In the replacement awk script, use
31122         substr with a second argument of 1, not zero.
31123         Report by Simon Josefsson.
31124
31125 2009-02-28  Bruno Haible  <bruno@clisp.org>
31126
31127         More support for FreeMiNT.
31128         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31129         to FreeMiNT today.
31130         * lib/fwriting.c (fwriting): Likewise.
31131         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31132
31133 2009-02-28  Bruno Haible  <bruno@clisp.org>
31134
31135         * tests/test-freadseek.c (main): Disable test beyond end of file on
31136         FreeMiNT.
31137         * tests/test-ftello.c (main): Likewise.
31138         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31139
31140 2009-02-28  Bruno Haible  <bruno@clisp.org>
31141
31142         Add tentative support for FreeMiNT.
31143         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31144         * lib/fpurge.c (fpurge): Likewise.
31145         * lib/freadable.c (freadable): Likewise.
31146         * lib/freading.c (freading): Likewise.
31147         * lib/freadptr.c (freadptr): Likewise.
31148         * lib/freadseek.c (freadptrinc): Likewise.
31149         * lib/fseeko.c (rpl_fseeko): Likewise.
31150         * lib/fseterr.c (fseterr): Likewise.
31151         * lib/fwritable.c (fwritable): Likewise.
31152         * lib/fwriting.c (fwriting): Likewise.
31153         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31154         Hourihane.
31155         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31156
31157 2009-02-28  Bruno Haible  <bruno@clisp.org>
31158
31159         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31160         SIGCHLD.
31161         Reported by Jim Meyering.
31162
31163 2009-02-28  Bruno Haible  <bruno@clisp.org>
31164
31165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31166         Mention the results of these tests on various platforms.
31167         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31168         order.
31169         * doc/posix-functions/printf.texi: Likewise.
31170         * doc/posix-functions/snprintf.texi: Likewise.
31171         * doc/posix-functions/sprintf.texi: Likewise.
31172         * doc/posix-functions/vfprintf.texi: Likewise.
31173         * doc/posix-functions/vprintf.texi: Likewise.
31174         * doc/posix-functions/vsnprintf.texi: Likewise.
31175         * doc/posix-functions/vsprintf.texi: Likewise.
31176         * doc/glibc-functions/obstack_printf.texi: Likewise.
31177         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31178
31179 2009-02-28  Bruno Haible  <bruno@clisp.org>
31180
31181         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31182         Reported by Loïc Minier <lool@dooz.org>.
31183
31184 2009-02-27  Bruno Haible  <bruno@clisp.org>
31185
31186         * gnulib-tool (func_import): Make the sed expression used to create the
31187         sed script for updating the .gitignore file POSIX compliant.
31188         Reported by Eric Blake.
31189
31190 2009-02-27  Bruno Haible  <bruno@clisp.org>
31191
31192         * gnulib-tool (sed): Don't alias as "sed --posix".
31193         Reported by Eric Blake.
31194
31195 2009-02-27  Bruno Haible  <bruno@clisp.org>
31196
31197         Avoid test link errors.
31198         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31199         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31200         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31201         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31203
31204 2009-02-27  Bruno Haible  <bruno@clisp.org>
31205
31206         Avoid spurious "(cached)" in configure output.
31207         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31208         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31209         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31210         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31211         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31212         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31213         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31214         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31215         Reported by Eric Blake.
31216
31217 2009-02-27  Eric Blake  <ebb9@byu.net>
31218
31219         printf: fix regression in previous patch
31220         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31221
31222 2009-02-27  Bruno Haible  <bruno@clisp.org>
31223
31224         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31225         value.
31226         * lib/stdint.in.h: Likewise.
31227         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31228
31229 2009-02-27  Eric Blake  <ebb9@byu.net>
31230
31231         doc: mention more functions added in cygwin 1.7.0
31232         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31233         addition.
31234         * doc/posix-functions/open_wmemstream.texi: Likewise.
31235         * doc/posix-functions/wcsnlen.texi: Likewise.
31236         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31237         * doc/posix-functions/wcstod.texi: Likewise.
31238         * doc/posix-functions/wcstof.texi: Likewise.
31239         * doc/posix-functions/wcstoimax.texi: Likewise.
31240         * doc/posix-functions/wcstok.texi: Likewise.
31241         * doc/posix-functions/wcstoumax.texi: Likewise.
31242
31243         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31244         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31245         * doc/posix-functions/fprintf.texi: Update.
31246         * doc/posix-functions/printf.texi: Update.
31247         * doc/posix-functions/snprintf.texi: Update.
31248         * doc/posix-functions/sprintf.texi: Update.
31249         * doc/posix-functions/vfprintf.texi: Update.
31250         * doc/posix-functions/vprintf.texi: Update.
31251         * doc/posix-functions/vsnprintf.texi: Update.
31252         * doc/posix-functions/vsprintf.texi: Update.
31253         * doc/glibc-functions/obstack_printf.texi: Update.
31254         * doc/glibc-functions/obstack_vprintf.texi: Update.
31255
31256 2009-02-26  Eric Blake  <ebb9@byu.net>
31257
31258         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31259         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31260         compilation bug by using runtime conversion.
31261         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31262         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31263         * modules/ceill-tests (Files): Use nan.h.
31264         * modules/floorl-tests (Files): Likewise.
31265         * modules/frexpl-tests (Files): Likewise.
31266         * modules/isnanl-tests (Files): Likewise.
31267         * modules/ldexpl-tests (Files): Likewise.
31268         * modules/roundl-tests (Files): Likewise.
31269         * modules/truncl-tests (Files): Likewise.
31270         * tests/test-ceill.c (main): Use a working NaN.
31271         * tests/test-floorl.c (main): Likewise.
31272         * tests/test-frexpl.c (main): Likewise.
31273         * tests/test-isnan.c (test_long_double): Likewise.
31274         * tests/test-isnanl.h (main): Likewise.
31275         * tests/test-ldexpl.h (main): Likewise.
31276         * tests/test-roundl.h (main): Likewise.
31277         * tests/test-truncl.h (main): Likewise.
31278         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31279
31280 2009-02-26  Eric Blake  <ebb9@byu.net>
31281             Bruno Haible  <bruno@clisp.org>
31282
31283         Work around a *printf bug with %ls on Solaris.
31284         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31285         precision is specified, sprintf stops converting the wide string
31286         argument when the number of bytes that have been produced by this
31287         conversion equals or exceeds the precision.
31288         * doc/posix-functions/fprintf.texi: Update.
31289         * doc/posix-functions/printf.texi: Update.
31290         * doc/posix-functions/snprintf.texi: Update.
31291         * doc/posix-functions/sprintf.texi: Update.
31292         * doc/posix-functions/vfprintf.texi: Update.
31293         * doc/posix-functions/vprintf.texi: Update.
31294         * doc/posix-functions/vsnprintf.texi: Update.
31295         * doc/posix-functions/vsprintf.texi: Update.
31296         * doc/glibc-functions/obstack_printf.texi: Update.
31297         * doc/glibc-functions/obstack_vprintf.texi: Update.
31298
31299 2009-02-26  Eric Blake  <ebb9@byu.net>
31300
31301         stdlib: favor compiler check of random.h
31302         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31303         to avoid an ObjC random.h installed by Swarm.
31304
31305 2009-02-26  Bruno Haible  <bruno@clisp.org>
31306
31307         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31308         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31309         Reported by Gary V. Vaughan <gary@gnu.org>.
31310
31311 2009-02-26  Bruno Haible  <bruno@clisp.org>
31312
31313         Fix *printf behaviour regarding the %ls directive.
31314         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31315         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31316         NEED_PRINTF_DIRECTIVE_LS.
31317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31318         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31319         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31320         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31321         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31322         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31323         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31324         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31325         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31326         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31327         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31328         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31329         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31331         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31332         * doc/posix-functions/fprintf.texi: Update.
31333         * doc/posix-functions/printf.texi: Update.
31334         * doc/posix-functions/snprintf.texi: Update.
31335         * doc/posix-functions/sprintf.texi: Update.
31336         * doc/posix-functions/vfprintf.texi: Update.
31337         * doc/posix-functions/vprintf.texi: Update.
31338         * doc/posix-functions/vsnprintf.texi: Update.
31339         * doc/posix-functions/vsprintf.texi: Update.
31340         * doc/glibc-functions/obstack_printf.texi: Update.
31341         * doc/glibc-functions/obstack_vprintf.texi: Update.
31342         Reported by Eric Blake.
31343
31344 2009-02-25  Bruno Haible  <bruno@clisp.org>
31345
31346         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31347         with known value.
31348         Reported by Gary V. Vaughan <gary@gnu.org>.
31349
31350 2009-02-25  Bruno Haible  <bruno@clisp.org>
31351
31352         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31353         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31354         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31355         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31356         Reported by Gary V. Vaughan <gary@gnu.org>.
31357
31358 2009-02-25  Bruno Haible  <bruno@clisp.org>
31359
31360         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31361         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31362         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31363         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31364         Reported by Gary V. Vaughan <gary@gnu.org>.
31365
31366 2009-02-25  Eric Blake  <ebb9@byu.net>
31367
31368         tests: skip fseek/ftell tests if ungetc is broken
31369         * m4/ungetc.m4: New file.
31370         * modules/fseek-tests: Split test, so ungetc dependency is
31371         separate from rest of test.
31372         * modules/fseeko-tests: Likewise.
31373         * modules/ftell-tests: Likewise.
31374         * modules/ftello-tests: Likewise.
31375         * tests/test-fseek.c (main): Isolate ungetc dependency.
31376         * tests/test-fseeko.c (main): Likewise.
31377         * tests/test-ftell.c (main): Likewise.
31378         * tests/test-ftello.c (main): Likewise.
31379         * tests/test-fseek2.sh: New file.
31380         * tests/test-fseeko2.sh: Likewise.
31381         * tests/test-ftell2.sh: Likewise.
31382         * tests/test-ftello2.sh: Likewise.
31383
31384 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31385
31386         test-getaddrinfo: fix usage of skip return code 77
31387         * tests/test-gettaddrinfo.c: Return skip code 77 only
31388         for first occurance of skip (4x77 is not 77)
31389
31390 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31391
31392         strtod: avoid C99 decl-after-statement
31393         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31394
31395 2009-02-24  Eric Blake  <ebb9@byu.net>
31396
31397         strtod: detect HP-UX 11.31 bug
31398         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31399         Reported by Gary V. Vaughan.
31400
31401 2009-02-23  Bruno Haible  <bruno@clisp.org>
31402
31403         Fix invalid read past end of memory block.
31404         * lib/vasnprintf.c (DCHAR_SET): Define.
31405         (local_wcslen): Define only when needed.
31406         (local_strnlen, local_wcsnlen): New functions.
31407         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31408         directives that involve a conversion ourselves.
31409         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31410         wcsnlen, mbrtowc, wcrtomb.
31411         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31412         * tests/test-vasprintf-posix.c (test_function): Likewise.
31413         * tests/test-snprintf-posix.h (test_function): Likewise.
31414         * tests/test-sprintf-posix.h (test_function): Likewise.
31415         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31416
31417 2009-02-22  Bruno Haible  <bruno@clisp.org>
31418
31419         Implement new clarified decomposition of Hangul syllables.
31420         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31421         of type LTV, return only a pairwise decomposition.
31422         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31423         Likewise.
31424         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31425         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31426         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31427
31428 2009-02-22  Bruno Haible  <bruno@clisp.org>
31429
31430         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31431         zero-length results and shrink excess allocated memory.
31432         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31433         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31434         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31435         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31436         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31437         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31438         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31439         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31440         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31441         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31442         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31443         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31444
31445 2009-02-21  Bruno Haible  <bruno@clisp.org>
31446
31447         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31448         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31449         spaces after a period. Put a space between a macro name and its
31450         argument list. Trivial rewordings.
31451         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31452         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31453         (main): Return 0 explicitly.
31454
31455 2009-02-21  Bruno Haible  <bruno@clisp.org>
31456
31457         Tests for module 'uninorm/filter'.
31458         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31459         * modules/uninorm/filter-tests: New file.
31460
31461         New module 'uninorm/filter'.
31462         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31463         uninorm_filter_flush, uninorm_filter_free): New declarations.
31464         * lib/uninorm/uninorm-filter.c: New file.
31465         * modules/uninorm/filter: New file.
31466
31467 2009-02-21  Bruno Haible  <bruno@clisp.org>
31468
31469         Tests for module 'uninorm/nfkc'.
31470         * tests/uninorm/test-nfkc.c: New file.
31471         * tests/uninorm/test-u8-nfkc.c: New file.
31472         * tests/uninorm/test-u16-nfkc.c: New file.
31473         * tests/uninorm/test-u32-nfkc.c: New file.
31474         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31475         * tests/uninorm/test-u32-nfkc-big.c: New file.
31476         * modules/uninorm/nfkc-tests: New file.
31477
31478         New module 'uninorm/nfkc'.
31479         * lib/uninorm/nfkc.c: New file.
31480         * modules/uninorm/nfkc: New file.
31481
31482         Tests for module 'uninorm/nfkd'.
31483         * tests/uninorm/test-nfkd.c: New file.
31484         * tests/uninorm/test-u8-nfkd.c: New file.
31485         * tests/uninorm/test-u16-nfkd.c: New file.
31486         * tests/uninorm/test-u32-nfkd.c: New file.
31487         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31488         * tests/uninorm/test-u32-nfkd-big.c: New file.
31489         * modules/uninorm/nfkd-tests: New file.
31490
31491         New module 'uninorm/nfkd'.
31492         * lib/uninorm/nfkd.c: New file.
31493         * modules/uninorm/nfkd: New file.
31494
31495         Tests for module 'uninorm/nfc'.
31496         * tests/uninorm/test-nfc.c: New file.
31497         * tests/uninorm/test-u8-nfc.c: New file.
31498         * tests/uninorm/test-u16-nfc.c: New file.
31499         * tests/uninorm/test-u32-nfc.c: New file.
31500         * tests/uninorm/test-u32-nfc-big.sh: New file.
31501         * tests/uninorm/test-u32-nfc-big.c: New file.
31502         * modules/uninorm/nfc-tests: New file.
31503
31504         New module 'uninorm/nfc'.
31505         * lib/uninorm/nfc.c: New file.
31506         * modules/uninorm/nfc: New file.
31507
31508         Tests for module 'uninorm/nfd'.
31509         * tests/uninorm/test-nfd.c: New file.
31510         * tests/uninorm/test-u8-nfd.c: New file.
31511         * tests/uninorm/test-u16-nfd.c: New file.
31512         * tests/uninorm/test-u32-nfd.c: New file.
31513         * tests/uninorm/test-u32-nfd-big.sh: New file.
31514         * tests/uninorm/test-u32-nfd-big.c: New file.
31515         * tests/uninorm/test-u32-normalize-big.h: New file.
31516         * tests/uninorm/test-u32-normalize-big.c: New file.
31517         * tests/uninorm/NormalizationTest.txt: New file, created from
31518         Unicode 5.1.0 NormalizationTest.txt.
31519         * modules/uninorm/nfd-tests: New file.
31520
31521         New module 'uninorm/nfd'.
31522         * lib/uninorm/nfd.c: New file.
31523         * modules/uninorm/nfd: New file.
31524
31525         New module 'uninorm/u32-normalize'.
31526         * lib/uninorm/u32-normalize.c: New file.
31527         * modules/uninorm/u32-normalize: New file.
31528
31529         New module 'uninorm/u16-normalize'.
31530         * lib/uninorm/u16-normalize.c: New file.
31531         * modules/uninorm/u16-normalize: New file.
31532
31533         New module 'uninorm/u8-normalize'.
31534         * lib/uninorm/u8-normalize.c: New file.
31535         * lib/uninorm/normalize-internal.h: New file.
31536         * lib/uninorm/u-normalize-internal.h: New file.
31537         * modules/uninorm/u8-normalize: New file.
31538
31539         New module 'uninorm/decompose-internal'.
31540         * lib/uninorm/decompose-internal.c: New file.
31541         * modules/uninorm/decompose-internal: New file.
31542
31543         Tests for module 'uninorm/composition'.
31544         * tests/uninorm/test-composition.c: New file.
31545         * modules/uninorm/composition-tests: New file.
31546
31547         New module 'uninorm/composition'.
31548         * lib/uninorm/composition.c: New file.
31549         * lib/uninorm/composition-table.gperf: New file, generated by
31550         gen-uni-tables.
31551         * modules/uninorm/composition: New file.
31552
31553         Tests for module 'uninorm/compat-decomposition'.
31554         * tests/uninorm/test-compat-decomposition.c: New file.
31555         * modules/uninorm/compat-decomposition-tests: New file.
31556
31557         New module 'uninorm/compat-decomposition'.
31558         * lib/uninorm/decompose-internal.h: New file.
31559         * lib/uninorm/compat-decomposition.c: New file.
31560         * modules/uninorm/compat-decomposition: New file.
31561
31562         Tests for module 'uninorm/canonical-decomposition'.
31563         * tests/uninorm/test-canonical-decomposition.c: New file.
31564         * modules/uninorm/canonical-decomposition-tests: New file.
31565
31566         New module 'uninorm/canonical-decomposition'.
31567         * lib/uninorm/canonical-decomposition.c: New file.
31568         * modules/uninorm/canonical-decomposition: New file.
31569
31570         Tests for module 'uninorm/decomposition'.
31571         * tests/uninorm/test-decomposition.c: New file.
31572         * modules/uninorm/decomposition-tests: New file.
31573
31574         New module 'uninorm/decomposition'.
31575         * lib/uninorm/decomposition.c: New file.
31576         * modules/uninorm/decomposition: New file.
31577
31578         New module 'uninorm/decomposition-table'.
31579         * lib/uninorm/decomposition-table.h: New file.
31580         * lib/uninorm/decomposition-table.c: New file.
31581         * lib/uninorm/decomposition-table1.h: New file, generated by
31582         gen-uni-tables.
31583         * lib/uninorm/decomposition-table2.h: New file, generated by
31584         gen-uni-tables.
31585         * modules/uninorm/decomposition-table: New file.
31586
31587         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
31588         (UC_DECOMP_*): New enumeration items.
31589         (get_decomposition): New function.
31590         (struct decomp_table): New type.
31591         (output_decomposition, output_decomposition_tables): New functions.
31592         (unicode_composition_exclusions): New variable.
31593         (fill_composition_exclusions, debug_output_composition_tables): New
31594         functions.
31595         (main): Accept one more argument. Invoke fill_composition_exclusions.
31596         Output decomposition and composition tables.
31597
31598         New module 'uninorm/base'.
31599         * lib/uninorm.h: New file.
31600         * lib/unictype.h: Update comment.
31601         * modules/uninorm/base: New file.
31602
31603 2009-02-21  David Lutterkort  <lutter@redhat.com>
31604
31605         Tests for module 'safe-alloc'.
31606         * tests/test-safe-alloc.c: New file.
31607         * modules/safe-alloc-tests: New file.
31608
31609         New module 'safe-alloc'.
31610         * lib/safe-alloc.h: New file.
31611         * lib/safe-alloc.c: New file.
31612         * m4/safe-alloc.m4: New file.
31613         * modules/safe-alloc: New file.
31614         * doc/safe-alloc.texi: New file.
31615         * doc/gnulib.texi: Include it.
31616         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31617         safe-alloc.
31618
31619 2009-02-18  Bruno Haible  <bruno@clisp.org>
31620
31621         Fix link error on non-glibc systems.
31622         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
31623         variable.
31624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31625
31626 2009-02-18  Jim Meyering  <meyering@redhat.com>
31627
31628         fts: avoid used-uninitialized error due to recent change
31629         * lib/fts.c (fts_read): Guard uses of the new member,
31630         parent->fts_n_dirs_remaining, since it's not relevant for
31631         the parent of a directory specified on the command-line.
31632
31633 2009-02-17  James Youngman  <jay@gnu.org>
31634             Bruno Haible  <bruno@clisp.org>
31635
31636         * m4/include_next.m4: Reformulate comment.
31637
31638 2009-02-16  Jim Meyering  <meyering@redhat.com>
31639
31640         fts: add #if guards so that the fts_lgpl module still builds
31641         * lib/fts.c: Guard just-added hash-table-using parts with
31642         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
31643         Reported by Simon Josefsson.
31644
31645 2009-02-15  Bruno Haible  <bruno@clisp.org>
31646
31647         * modules/array-mergesort-tests: New file.
31648         * tests/test-array-mergesort.c: New file.
31649
31650         New module 'array-mergesort'.
31651         * modules/array-mergesort: New file.
31652         * lib/array-mergesort.h: New file.
31653
31654 2009-02-15  Bruno Haible  <bruno@clisp.org>
31655
31656         Fix 2009-02-07 commit.
31657         * lib/gen-uni-tables.c (output_predicate, output_category,
31658         output_combclass, output_bidi_category, output_decimal_digit,
31659         output_digit, output_numeric, output_mirror, output_scripts,
31660         output_ident_category, output_simple_mapping): Fix format directives.
31661         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
31662
31663 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
31664
31665         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
31666         fixes are available from IBM.
31667
31668 2009-02-13  Jim Meyering  <meyering@redhat.com>
31669
31670         fts: arrange not to stat non-directories in more cases
31671         This makes GNU find (when it doesn't need to stat each file)
31672         *much* more efficient at traversing reiserfs file systems.
31673         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
31674         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
31675         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
31676         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
31677         (leaf_optimization_applies): New function.
31678         (LCO_hash, LCO_compare): New helper functions.
31679         (link_count_optimize_ok): New function.
31680         (fts_stat): Initialize new member (if dir).
31681         (fts_read): Decrement parent's fts_n_dirs_remaining count if
31682         we've just stat'ed a directory.  Skip the stat call when possible.
31683         ---
31684         Note this AFS-related exchange:
31685         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
31686         and note find's pioctl call in find/fstype.c.
31687         But that is necessary only if you want to enable the
31688         optimization for AFS, and for now, I don't.
31689
31690         fts: move a function definition "up" (no semantic change)
31691         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
31692         "up" to precede upcoming use of a related function.
31693
31694 2009-02-11  Jim Meyering  <meyering@redhat.com>
31695
31696         fts: correct internal computation of nlinks (optimization-related)
31697         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
31698         whether the current entry is a directory, so don't test it.
31699
31700 2009-02-10  Bruno Haible  <bruno@clisp.org>
31701
31702         Tests for module 'uniwbrk/ulc-wordbreaks'.
31703         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
31704         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
31705         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
31706
31707         Tests for module 'uniwbrk/u32-wordbreaks'.
31708         * modules/uniwbrk/u32-wordbreaks-tests: New file.
31709         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
31710
31711         Tests for module 'uniwbrk/u16-wordbreaks'.
31712         * modules/uniwbrk/u16-wordbreaks-tests: New file.
31713         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
31714
31715         Tests for module 'uniwbrk/u8-wordbreaks'.
31716         * modules/uniwbrk/u8-wordbreaks-tests: New file.
31717         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
31718
31719 2009-02-10  Bruno Haible  <bruno@clisp.org>
31720
31721         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
31722         property.
31723         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
31724         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
31725         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
31726
31727 2009-02-10  Simon Josefsson  <simon@josefsson.org>
31728
31729         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
31730         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
31731
31732 2009-02-10  Bruno Haible  <bruno@clisp.org>
31733
31734         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
31735         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
31736         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
31737         * lib/unilbrk/u8-possible-linebreaks.c: Update.
31738         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
31739         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
31740
31741 2009-02-09  Simon Josefsson  <simon@josefsson.org>
31742
31743         * lib/sockets.h (gl_fd_to_handle): New function.
31744
31745         * tests/test-sockets.c: Call gl_fd_to_handle.
31746
31747 2009-02-09  Bruno Haible  <bruno@clisp.org>
31748
31749         * doc/havelib.texi: Document the conventions on bi-arch systems.
31750
31751 2009-02-08  Bruno Haible  <bruno@clisp.org>
31752
31753         Document the AC_LIB_LINKFLAGS macro.
31754         * doc/havelib.texi: New file, mostly written on 2005-05-24.
31755         * doc/gnulib.texi: Include it.
31756
31757 2009-02-08  Bruno Haible  <bruno@clisp.org>
31758
31759         Fix wrong order of sections, compared to TOC.
31760         * doc/gnulib.texi: Include relocatable-maint.texi after the
31761         "Regular expressions" node, not before.
31762
31763 2009-02-08  Bruno Haible  <bruno@clisp.org>
31764
31765         Tests for module 'unicase/totitle'.
31766         * modules/unicase/totitle-tests: New file.
31767
31768         Tests for module 'unicase/tolower'.
31769         * modules/unicase/tolower-tests: New file.
31770
31771         Tests for module 'unicase/toupper'.
31772         * modules/unicase/toupper-tests: New file.
31773         * tests/unicase/test-mapping-part1.h: New file.
31774         * tests/unicase/test-mapping-part2.h: New file.
31775
31776         New module 'unicase/totitle'.
31777         * modules/unicase/totitle: New file.
31778         * lib/unicase/totitle.c: New file.
31779
31780         New module 'unicase/tolower'.
31781         * modules/unicase/tolower: New file.
31782         * lib/unicase/tolower.c: New file.
31783
31784         New module 'unicase/toupper'.
31785         * modules/unicase/toupper: New file.
31786         * lib/unicase/toupper.c: New file.
31787         * lib/unicase/simple-mapping.h: New file.
31788
31789         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
31790         (mapping_table): New structure.
31791         (output_simple_mapping): New function.
31792         (main): Invoke output_simple_mapping_test and output_simple_mapping.
31793         * modules/gen-uni-tables (Description): Update.
31794         * lib/unicase/toupper.h: New file, automatically generated by
31795         gen-uni-tables.
31796         * lib/unicase/tolower.h: New file, automatically generated by
31797         gen-uni-tables.
31798         * lib/unicase/totitle.h: New file, automatically generated by
31799         gen-uni-tables.
31800         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
31801         gen-uni-tables.
31802         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
31803         gen-uni-tables.
31804         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
31805         gen-uni-tables.
31806
31807         New module 'unicase/base'.
31808         * modules/unicase/base: New file.
31809         * lib/unicase.h: New file.
31810
31811 2009-02-08  Bruno Haible  <bruno@clisp.org>
31812
31813         New module 'uniwbrk/ulc-wordbreaks'.
31814         * modules/uniwbrk/ulc-wordbreaks: New file.
31815         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31816
31817         New module 'uniwbrk/u32-wordbreaks'.
31818         * modules/uniwbrk/u32-wordbreaks: New file.
31819         * lib/uniwbrk/u32-wordbreaks.c: New file.
31820
31821         New module 'uniwbrk/u16-wordbreaks'.
31822         * modules/uniwbrk/u16-wordbreaks: New file.
31823         * lib/uniwbrk/u16-wordbreaks.c: New file.
31824
31825         New module 'uniwbrk/u8-wordbreaks'.
31826         * modules/uniwbrk/u8-wordbreaks: New file.
31827         * lib/uniwbrk/u8-wordbreaks.c: New file.
31828         * lib/uniwbrk/u-wordbreaks.h: New file.
31829
31830         New module 'uniwbrk/table'.
31831         * modules/uniwbrk/table: New file.
31832         * lib/uniwbrk/wbrktable.h: New file.
31833         * lib/uniwbrk/wbrktable.c: New file.
31834
31835         New module 'uniwbrk/wordbreak-property'.
31836         * modules/uniwbrk/wordbreak-property: New file.
31837         * lib/uniwbrk/wordbreak-property.c: New file.
31838
31839         * lib/gen-uni-tables.c (WBP_*): New enum items.
31840         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31841         (unicode_org_wbp): New variable.
31842         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31843         New functions.
31844         (wbp_table): New structure.
31845         (output_wbp, output_wbrk_tables): New functions.
31846         (main): Accept additional argument. Invoke fill_org_wbp,
31847         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31848         output_wbrk_tables.
31849         * modules/gen-uni-tables (Description): Update.
31850         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31851         gen-uni-tables.
31852
31853         New module 'uniwbrk/base'.
31854         * modules/uniwbrk/base: New file.
31855         * lib/uniwbrk.h: New file.
31856
31857 2009-02-08  Bruno Haible  <bruno@clisp.org>
31858
31859         Update to Unicode 5.1.0.
31860         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31861         U+2185..U+2188.
31862         (is_property_default_ignorable_code_point): Don't include characters
31863         of category Cc or Cs and not-a-characters.
31864         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31865         U+0D79, U+109E, U+109F, U+A60C.
31866         * lib/unictype/bidi_of.h: Regenerated.
31867         * lib/unictype/blocks.h: Regenerated.
31868         * lib/unictype/categ_C.h: Regenerated.
31869         * lib/unictype/categ_Cf.h: Regenerated.
31870         * lib/unictype/categ_Cn.h: Regenerated.
31871         * lib/unictype/categ_L.h: Regenerated.
31872         * lib/unictype/categ_Ll.h: Regenerated.
31873         * lib/unictype/categ_Lm.h: Regenerated.
31874         * lib/unictype/categ_Lo.h: Regenerated.
31875         * lib/unictype/categ_Lu.h: Regenerated.
31876         * lib/unictype/categ_M.h: Regenerated.
31877         * lib/unictype/categ_Mc.h: Regenerated.
31878         * lib/unictype/categ_Me.h: Regenerated.
31879         * lib/unictype/categ_Mn.h: Regenerated.
31880         * lib/unictype/categ_N.h: Regenerated.
31881         * lib/unictype/categ_Nd.h: Regenerated.
31882         * lib/unictype/categ_Nl.h: Regenerated.
31883         * lib/unictype/categ_No.h: Regenerated.
31884         * lib/unictype/categ_P.h: Regenerated.
31885         * lib/unictype/categ_Pd.h: Regenerated.
31886         * lib/unictype/categ_Pe.h: Regenerated.
31887         * lib/unictype/categ_Pf.h: Regenerated.
31888         * lib/unictype/categ_Pi.h: Regenerated.
31889         * lib/unictype/categ_Po.h: Regenerated.
31890         * lib/unictype/categ_Ps.h: Regenerated.
31891         * lib/unictype/categ_S.h: Regenerated.
31892         * lib/unictype/categ_Sk.h: Regenerated.
31893         * lib/unictype/categ_Sm.h: Regenerated.
31894         * lib/unictype/categ_So.h: Regenerated.
31895         * lib/unictype/categ_of.h: Regenerated.
31896         * lib/unictype/combining.h: Regenerated.
31897         * lib/unictype/ctype_alnum.h: Regenerated.
31898         * lib/unictype/ctype_alpha.h: Regenerated.
31899         * lib/unictype/ctype_graph.h: Regenerated.
31900         * lib/unictype/ctype_lower.h: Regenerated.
31901         * lib/unictype/ctype_print.h: Regenerated.
31902         * lib/unictype/ctype_punct.h: Regenerated.
31903         * lib/unictype/ctype_upper.h: Regenerated.
31904         * lib/unictype/decdigit.h: Regenerated.
31905         * lib/unictype/digit.h: Regenerated.
31906         * lib/unictype/mirror.h: Regenerated.
31907         * lib/unictype/numeric.h: Regenerated.
31908         * lib/unictype/pr_alphabetic.h: Regenerated.
31909         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31910         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31911         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31912         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31913         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31914         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31915         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31916         * lib/unictype/pr_combining.h: Regenerated.
31917         * lib/unictype/pr_dash.h: Regenerated.
31918         * lib/unictype/pr_decimal_digit.h: Regenerated.
31919         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31920         * lib/unictype/pr_deprecated.h: Regenerated.
31921         * lib/unictype/pr_diacritic.h: Regenerated.
31922         * lib/unictype/pr_extender.h: Regenerated.
31923         * lib/unictype/pr_format_control.h: Regenerated.
31924         * lib/unictype/pr_grapheme_base.h: Regenerated.
31925         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31926         * lib/unictype/pr_grapheme_link.h: Regenerated.
31927         * lib/unictype/pr_id_continue.h: Regenerated.
31928         * lib/unictype/pr_id_start.h: Regenerated.
31929         * lib/unictype/pr_ideographic.h: Regenerated.
31930         * lib/unictype/pr_ignorable_control.h: Regenerated.
31931         * lib/unictype/pr_lowercase.h: Regenerated.
31932         * lib/unictype/pr_math.h: Regenerated.
31933         * lib/unictype/pr_numeric.h: Regenerated.
31934         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31935         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31936         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31937         * lib/unictype/pr_other_id_continue.h: Regenerated.
31938         * lib/unictype/pr_other_lowercase.h: Regenerated.
31939         * lib/unictype/pr_other_math.h: Regenerated.
31940         * lib/unictype/pr_punctuation.h: Regenerated.
31941         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31942         * lib/unictype/pr_soft_dotted.h: Regenerated.
31943         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31944         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31945         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31946         * lib/unictype/pr_uppercase.h: Regenerated.
31947         * lib/unictype/pr_xid_continue.h: Regenerated.
31948         * lib/unictype/pr_xid_start.h: Regenerated.
31949         * lib/unictype/pr_zero_width.h: Regenerated.
31950         * lib/unictype/scripts.h: Regenerated.
31951         * lib/unictype/scripts_byname.gperf: Regenerated.
31952         * lib/unictype/sy_java_ident.h: Regenerated.
31953         * lib/unilbrk/lbrkprop1.h: Regenerated.
31954         * lib/unilbrk/lbrkprop2.h: Regenerated.
31955         * tests/unictype/test-categ_C.c: Regenerated.
31956         * tests/unictype/test-categ_Cf.c: Regenerated.
31957         * tests/unictype/test-categ_Cn.c: Regenerated.
31958         * tests/unictype/test-categ_L.c: Regenerated.
31959         * tests/unictype/test-categ_Ll.c: Regenerated.
31960         * tests/unictype/test-categ_Lm.c: Regenerated.
31961         * tests/unictype/test-categ_Lo.c: Regenerated.
31962         * tests/unictype/test-categ_Lu.c: Regenerated.
31963         * tests/unictype/test-categ_M.c: Regenerated.
31964         * tests/unictype/test-categ_Mc.c: Regenerated.
31965         * tests/unictype/test-categ_Me.c: Regenerated.
31966         * tests/unictype/test-categ_Mn.c: Regenerated.
31967         * tests/unictype/test-categ_N.c: Regenerated.
31968         * tests/unictype/test-categ_Nd.c: Regenerated.
31969         * tests/unictype/test-categ_Nl.c: Regenerated.
31970         * tests/unictype/test-categ_No.c: Regenerated.
31971         * tests/unictype/test-categ_P.c: Regenerated.
31972         * tests/unictype/test-categ_Pd.c: Regenerated.
31973         * tests/unictype/test-categ_Pe.c: Regenerated.
31974         * tests/unictype/test-categ_Pf.c: Regenerated.
31975         * tests/unictype/test-categ_Pi.c: Regenerated.
31976         * tests/unictype/test-categ_Po.c: Regenerated.
31977         * tests/unictype/test-categ_Ps.c: Regenerated.
31978         * tests/unictype/test-categ_S.c: Regenerated.
31979         * tests/unictype/test-categ_Sk.c: Regenerated.
31980         * tests/unictype/test-categ_Sm.c: Regenerated.
31981         * tests/unictype/test-categ_So.c: Regenerated.
31982         * tests/unictype/test-ctype_alnum.c: Regenerated.
31983         * tests/unictype/test-ctype_alpha.c: Regenerated.
31984         * tests/unictype/test-ctype_graph.c: Regenerated.
31985         * tests/unictype/test-ctype_lower.c: Regenerated.
31986         * tests/unictype/test-ctype_print.c: Regenerated.
31987         * tests/unictype/test-ctype_punct.c: Regenerated.
31988         * tests/unictype/test-ctype_upper.c: Regenerated.
31989         * tests/unictype/test-decdigit.h: Regenerated.
31990         * tests/unictype/test-digit.h: Regenerated.
31991         * tests/unictype/test-numeric.h: Regenerated.
31992         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31993         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31994         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31995         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31996         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31997         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31998         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31999         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32000         * tests/unictype/test-pr_combining.c: Regenerated.
32001         * tests/unictype/test-pr_dash.c: Regenerated.
32002         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32003         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32004         * tests/unictype/test-pr_deprecated.c: Regenerated.
32005         * tests/unictype/test-pr_diacritic.c: Regenerated.
32006         * tests/unictype/test-pr_extender.c: Regenerated.
32007         * tests/unictype/test-pr_format_control.c: Regenerated.
32008         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32009         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32010         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32011         * tests/unictype/test-pr_id_continue.c: Regenerated.
32012         * tests/unictype/test-pr_id_start.c: Regenerated.
32013         * tests/unictype/test-pr_ideographic.c: Regenerated.
32014         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32015         * tests/unictype/test-pr_lowercase.c: Regenerated.
32016         * tests/unictype/test-pr_math.c: Regenerated.
32017         * tests/unictype/test-pr_numeric.c: Regenerated.
32018         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32019         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32020         Regenerated.
32021         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32022         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32023         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32024         * tests/unictype/test-pr_other_math.c: Regenerated.
32025         * tests/unictype/test-pr_punctuation.c: Regenerated.
32026         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32027         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32028         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32029         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32030         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32031         * tests/unictype/test-pr_uppercase.c: Regenerated.
32032         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32033         * tests/unictype/test-pr_xid_start.c: Regenerated.
32034         * tests/unictype/test-pr_zero_width.c: Regenerated.
32035
32036         Update to Unicode 5.1.0.
32037         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32038         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32039         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32040         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32041         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32042         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32043         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32044         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32045         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32046         (nonspacing_table_ind): Update.
32047         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32048
32049         Update to Unicode 5.1.0.
32050         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32051         code transform.
32052         * lib/uniname/uniname.c (unicode_character_name,
32053         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32054         * lib/uniname/uninames.h: Regenerated.
32055         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32056
32057 2009-02-07  Bruno Haible  <bruno@clisp.org>
32058
32059         Merge gen-ctype and gen-lbrk into a single program.
32060         * lib/gen-uni-tables.c: New file, incorporating
32061         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32062         Add directory prefixes to the names of the generated files.
32063         * lib/unictype/gen-ctype.c: Remove file.
32064         * lib/unilbrk/gen-lbrk.c: Remove file.
32065         * modules/gen-uni-tables: New file.
32066         * modules/unictype/gen-ctype: Remove file.
32067         * modules/unilbrk/gen-lbrk: Remove file.
32068
32069 2009-02-07  Bruno Haible  <bruno@clisp.org>
32070
32071         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32072
32073         New module 'unistr/u32-strcoll'.
32074         * modules/unistr/u32-strcoll: New file.
32075         * lib/unistr/u32-strcoll.c: New file.
32076
32077         New module 'unistr/u16-strcoll'.
32078         * modules/unistr/u16-strcoll: New file.
32079         * lib/unistr/u16-strcoll.c: New file.
32080
32081         New module 'unistr/u8-strcoll'.
32082         * modules/unistr/u8-strcoll: New file.
32083         * lib/unistr/u8-strcoll.c: New file.
32084         * lib/unistr/u-strcoll.h: New file.
32085
32086 2009-02-07  Bruno Haible  <bruno@clisp.org>
32087
32088         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32089         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32090         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32091         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32092         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32093         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32094
32095 2009-02-07  Bruno Haible  <bruno@clisp.org>
32096
32097         Make 64-bit clean.
32098         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32099         output_combclass, output_bidi_category, output_decimal_digit,
32100         output_digit, output_numeric, output_mirror, output_scripts,
32101         output_ident_category): Use proper width specifier in format strings.
32102
32103 2009-02-07  Bruno Haible  <bruno@clisp.org>
32104
32105         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32106         failure behaviour.
32107
32108 2009-02-07  Jim Meyering  <meyering@redhat.com>
32109
32110         regex: avoid compilation failure with upcoming gcc-4.4
32111         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32112         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32113         "... error: integer overflow in preprocessor expression".
32114
32115 2009-02-05  Ben Pfaff  <blp@gnu.org>
32116
32117         Fix link errors on Windows when close module is used.
32118         * modules/close: Add $(LIB_CLOSE) to Link section.
32119         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32120         $(LIB_CLOSE) on Windows.
32121
32122 2009-02-05  Jim Meyering  <meyering@redhat.com>
32123
32124         still avoid unused-parameter warnings, but do it cleanly
32125         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32126         (get_fs_usage): Cast to void instead.
32127         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32128         (dev_from_mount_options, read_file_system_list): Cast to void.
32129         Prompted by Bruno Haible.
32130
32131 2009-02-04  Jim Meyering  <meyering@redhat.com>
32132
32133         fsusage.c: correct copyright year
32134         * lib/fsusage.c: Reflect year in which the change is pushed into
32135
32136         avoid misc. warnings
32137         * lib/fsusage.c (UNUSED_PARAM): Define.
32138         (get_fs_usage): Mark parameter "disk" as unused.
32139         * lib/getugroups.c (getgrent): Use "void" in prototype.
32140         * lib/mountlist.c: Mark unused parameters.
32141         (read_file_system_list): Declare a local with "const".
32142         * lib/nanosleep.c (getnow): Declare static.
32143         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32144
32145         dirfd: set errno upon failure
32146         * lib/dirfd.c: Include <errno.h>.
32147         Set errno to ENOTSUP when returning -1.
32148         * modules/dirfd (Depends-on): Add errno.
32149         Suggested by John Kodis <kodis@comcast.net>.
32150
32151 2009-02-01  Bruno Haible  <bruno@clisp.org>
32152
32153         Don't assume sizeof (long) >= sizeof (void *).
32154         * lib/memcmp.c: Include stdint.h.
32155         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32156         srcp2 to 'const byte *'.
32157         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32158         types to uintptr_t.
32159         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32160         * modules/memcmp (Depends-on): Add stdint.
32161         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32162
32163 2009-01-30  Eric Blake  <ebb9@byu.net>
32164
32165         fix more require-before-expand issues
32166         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32167         expand, AC_PROG_AWK.
32168         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32169
32170 2009-01-28  Eric Blake  <ebb9@byu.net>
32171
32172         version-etc: use consistent URL formatting
32173         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32174         Improve formatting.  Use fputs for string without %.
32175
32176 2009-01-28  Jim Meyering  <meyering@redhat.com>
32177
32178         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32179         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32180         "underquoted definition of NAME" from autoconf-2.59.
32181
32182 2009-01-28  Bruno Haible  <bruno@clisp.org>
32183
32184         * doc/gnulib.texi: Add "Obsolete modules" to index.
32185
32186 2009-01-28  Jim Meyering  <meyering@redhat.com>
32187
32188         useless-if-before-free: recognize more variants
32189         * build-aux/useless-if-before-free: Also recognize e.g.,
32190         if (NULL != p) free (p);
32191
32192 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32193
32194         test-getaddrinfo: skip (don't fail) this test when there's no network
32195         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32196         on the presumption that it means you lack network access.
32197
32198 2009-01-26  Jim Meyering  <meyering@redhat.com>
32199
32200         fflush: avoid warnings on modern systems
32201         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32202         pos and result, into scopes where they're used.
32203
32204 2009-01-26  Eric Blake  <ebb9@byu.net>
32205
32206         Silence warning reintroduced by recent extensions patch.
32207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32208         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32209         autoconf.
32210
32211         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32212         * m4/00gnulib.m4: New file.
32213         * gnulib-tool (func_get_filelist): Always use it.
32214         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32215         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32216
32217 2009-01-25  Bruno Haible  <bruno@clisp.org>
32218
32219         Make test-quotearg work on MacOS X and AIX.
32220         * tests/test-quotearg.sh: New file.
32221         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32222         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32223         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32224         include <libintl.h>.
32225         (fake_locale): Remove variable.
32226         (gettext, dgettext, dcgettext): Remove functions.
32227         (main): Instead of setting a fake locale, set a real locale. Call
32228         textdomain and bindtextdomain.
32229         * modules/quotearg-tests (Files): Add the new files.
32230         (Depends-on): Add gettext, setenv, unsetenv.
32231         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32232         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32233         Augment TESTS_ENVIRONMENT.
32234
32235 2009-01-25  Bruno Haible  <bruno@clisp.org>
32236
32237         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32238         fr_FR.ISO8859-1 locale on MacOS X.
32239         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32240         ja_JP.eucJP locale on MacOS X.
32241         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32242         zh_CN.GB18030 locale on MacOS X.
32243
32244 2009-01-25  Bruno Haible  <bruno@clisp.org>
32245
32246         Avoid link errors on MacOS X 10.3.
32247         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32248         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32249
32250 2009-01-25  Bruno Haible  <bruno@clisp.org>
32251
32252         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32253         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32254         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32255         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32256         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32257         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32258         posix_spawnattr_init, posix_spawnattr_setsigmask,
32259         posix_spawnattr_setflags, posix_spawnattr_destroy.
32260
32261         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32262         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32263         * modules/execute (Files): Remove m4/posix_spawn.m4.
32264         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32265         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32266         posix_spawnattr_init, posix_spawnattr_setsigmask,
32267         posix_spawnattr_setflags, posix_spawnattr_destroy.
32268
32269 2009-01-25  Bruno Haible  <bruno@clisp.org>
32270
32271         * lib/glthread/threadlib.c: Include <stdlib.h>.
32272
32273 2009-01-25  Bruno Haible  <bruno@clisp.org>
32274
32275         * lib/glthread/threadlib.c (dummy): New declaration.
32276
32277 2009-01-25  Bruno Haible  <bruno@clisp.org>
32278
32279         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32280         multibyte characters also for the GB18030 encoding. Don't crash when
32281         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32282
32283 2009-01-25  Bruno Haible  <bruno@clisp.org>
32284
32285         Avoid redefining 'struct random_data' on OSF/1 5.1.
32286         * lib/stdlib.in.h: Include <random.h> if it exists.
32287         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32288         HAVE_RANDOM_H. Include <random.h> when testing whether
32289         'struct random_data' exists.
32290         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32291
32292 2009-01-25  Bruno Haible  <bruno@clisp.org>
32293
32294         Don't install charset.alias on MacOS X >= 10.3.
32295         * lib/localcharset.c (DARWIN7): New macro.
32296         (get_charset_aliases): Hardcode the result for Darwin7.
32297         * modules/localcharset (install-exec-local): Don't install
32298         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32299
32300 2009-01-25  Bruno Haible  <bruno@clisp.org>
32301
32302         Don't install charset.alias on mingw and Cygwin.
32303         * modules/localcharset (install-exec-local): Don't install
32304         charset.alias on mingw and Cygwin, if the file does not yet exist.
32305         The result for these platforms is hardcoded in localcharset.c.
32306
32307 2009-01-25  Bruno Haible  <bruno@clisp.org>
32308
32309         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32310         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32311         before requiring AC_USE_SYSTEM_EXTENSIONS.
32312
32313 2009-01-25  Jim Meyering  <meyering@redhat.com>
32314
32315         c-strtod: avoid warnings
32316         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32317         "assignment discards qualifiers from pointer target type" warnings.
32318
32319 2009-01-24  Bruno Haible  <bruno@clisp.org>
32320
32321         Add support for non-UTF-8 locales on MacOS X.
32322         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32323         canonical encodings. For Darwin 7 and newer, don't map traditional
32324         encodings to UTF-8.
32325         Reported by Vincent Lefevre <vincent@vinc17.org>
32326         at <http://savannah.gnu.org/bugs/?25235>.
32327
32328 2009-01-24  Bruno Haible  <bruno@clisp.org>
32329
32330         * doc/gnulib.texi (Obsolete modules): New section.
32331         Reported by Mike Frysinger <vapier@gentoo.org>.
32332
32333 2009-01-24  Bruno Haible  <bruno@clisp.org>
32334
32335         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32336         (%.dvi): New rule.
32337
32338 2009-01-24  Bruno Haible  <bruno@clisp.org>
32339
32340         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32341         Reported by Eric Blake.
32342
32343 2009-01-24  Bruno Haible  <bruno@clisp.org>
32344
32345         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32346         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32347         Reported by Gary V. Vaughan <gary@gnu.org>.
32348
32349 2009-01-24  Bruno Haible  <bruno@clisp.org>
32350
32351         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32352
32353 2009-01-23  Bruno Haible  <bruno@clisp.org>
32354
32355         Make c-strtod, c-strtold usable in libraries.
32356         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32357         (C_STRTOD): Call strdup instead of xstrdup.
32358         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32359         * modules/c-strtold (Depends-on): Likewise.
32360         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32361         * NEWS: Mention the change.
32362         Reported by Michael Gold <mgold@ncf.ca>.
32363
32364 2009-01-23  Jim Meyering  <meyering@redhat.com>
32365
32366         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32367         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32368         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32369
32370 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32371
32372         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32373         GNU CoreUtils.
32374         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32375         * modules/version-etc (Description): Update.
32376
32377 2009-01-22  Bruno Haible  <bruno@clisp.org>
32378
32379         Cache the C locale object.
32380         * lib/c-strtod.c (c_locale_cache): New variable.
32381         (c_locale): New function.
32382         (C_STRTOD): Use it, and don't call freelocale.
32383         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32384         Suggested by Paolo Bonzini.
32385
32386 2009-01-21  Bruno Haible  <bruno@clisp.org>
32387
32388         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32389         conditions other than overflow.
32390
32391 2009-01-21  Bruno Haible  <bruno@clisp.org>
32392
32393         * lib/c-strtod.c: Include errno.h.
32394         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32395         value from STRTOD_L and STRTOD.
32396
32397 2009-01-21  Bruno Haible  <bruno@clisp.org>
32398         and Jim Meyering  <meyering@redhat.com>
32399
32400         nanosleep: skip configure test (fail it) for apple universal builds
32401         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32402         universal builds, assume that nanosleep does not work.
32403         * modules/nanosleep (Depends-on): Add multiarch.
32404
32405         mktime: skip configure test (fail it) for apple universal builds
32406         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32407         universal builds, assume that mktime does not work.
32408         * modules/mktime (Depends-on): Add multiarch.
32409
32410 2009-01-21  Eric Blake  <ebb9@byu.net>
32411
32412         multiarch: avoid expand-before-require warning
32413         * modules/multiarch (configure.ac): Require, rather than expand,
32414         gl_MULTIARCH.
32415         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32416         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32417         enforce that all clients require it.  Partial reversion of
32418         2008-12-29 patch.
32419
32420         error: avoid expand-before-require warning
32421         * modules/errno (configure.ac): Require, rather than expand,
32422         gl_HEADER_ERRNO_H.
32423         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32424         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32425         enforce that all clients require it.
32426
32427         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32428         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32429         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32430         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32431
32432 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32433
32434         Revert:
32435         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32436
32437         regex: do not depend on obsolete modules.
32438         * modules/regex: Remove memcmp and memmove.
32439
32440 2009-01-20  Bruno Haible  <bruno@clisp.org>
32441
32442         Make the 'link' module link on Windows NT 4.
32443         * lib/link.c (_WIN32_WINNT): Don't define.
32444         (CreateHardLinkFuncType): New type.
32445         (CreateHardLinkFunc, initialized): New variables.
32446         (initialize): New function.
32447         (link): Invoke CreateHardLink indirectly through the function pointer.
32448
32449 2009-01-20  Bruno Haible  <bruno@clisp.org>
32450
32451         Fix compilation failure on mingw.
32452         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32453
32454 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32455
32456         * doc/c-strtod.texi: Mention a couple of restrictions.
32457
32458 2009-01-20  Jim Meyering  <meyering@redhat.com>
32459
32460         gettimeofday: move more declarations out of functions
32461         * lib/gettimeofday.c: Move extern declarations of tzset and
32462         gmtime out of containing functions.  Prompted by Bruno Haible.
32463
32464 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32465
32466         regex: do not depend on obsolete modules.
32467         * modules/regex: Remove memcmp and memmove.
32468
32469 2009-01-19  Bruno Haible  <bruno@clisp.org>
32470
32471         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32472         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32473         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32474         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32475         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32476
32477 2009-01-19  Bruno Haible  <bruno@clisp.org>
32478
32479         * tests/test-link.c: Include <errno.h>.
32480         (main): Exit with code 77 when a hard link cannot be created due to
32481         the file system.
32482         * tests/test-link.sh: Skip test when a hard link cannot be created due
32483         to the file system.
32484         Suggested by Eric Blake.
32485
32486 2009-01-19  Martin Lambers  <marlam@marlam.de>
32487
32488         * modules/link-tests: New file.
32489         * tests/test-link.sh: New file.
32490         * tests/test-link.c: New file.
32491
32492 2009-01-19  Eric Blake  <ebb9@byu.net>
32493
32494         doc: mention another function added in cygwin 1.7.0
32495         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32496         Another new function in cygwin 1.7.
32497
32498 2009-01-19  Bruno Haible  <bruno@clisp.org>
32499
32500         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32501         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32502         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32503         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32504         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32505         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32506         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32507         * m4/md4.m4 (gl_MD4): Likewise.
32508         * m4/md5.m4 (gl_MD5): Likewise.
32509         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32510         * m4/sha1.m4 (gl_SHA1): Likewise.
32511         * m4/sha256.m4 (gl_SHA256): Likewise.
32512         * m4/sha512.m4 (gl_SHA512): Likewise.
32513
32514 2009-01-19  Bruno Haible  <bruno@clisp.org>
32515
32516         * modules/uniname/uniname-tests (Depends-on): Add progname.
32517         * tests/uniname/test-uninames.c: Include progname.h.
32518         (main): Call set_program_name.
32519
32520         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32521         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32522         (main): Call set_program_name.
32523
32524         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32525         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32526         (main): Call set_program_name.
32527
32528         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32529         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32530         (main): Call set_program_name.
32531
32532         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32533         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32534         (main): Call set_program_name.
32535
32536         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32537         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32538         (main): Call set_program_name.
32539
32540         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32541         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
32542         (main): Call set_program_name.
32543
32544         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
32545         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
32546         (main): Call set_program_name.
32547
32548         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
32549         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
32550         (main): Call set_program_name.
32551
32552 2009-01-19  Eric Blake  <ebb9@byu.net>
32553
32554         test-unistd: test previous patch
32555         * tests/test-unistd.c: Test *_FILENO macros.
32556
32557         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
32558         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32559         Guarantee a definition.
32560         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
32561         * modules/unistd-safer (Depends-on): Add dependency on unistd.
32562         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
32563         * lib/dup-safer.c (STDERR_FILENO): Likewise.
32564         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32565         Likewise.
32566         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
32567         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
32568         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
32569         Likewise.
32570         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
32571         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
32572         (STDERR_FILENO): Likewise.
32573         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
32574         (STDERR_FILENO): Likewise.
32575         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
32576         (STDERR_FILENO): Likewise.
32577         Reported by Elbert Pol.
32578
32579 2009-01-19  Eric Blake  <ebb9@byu.net>
32580
32581         doc: mention more functions added in cygwin 1.7.0
32582         * doc/posix-functions/abort.texi (abort): Update wording related
32583         to cygwin.
32584         * doc/posix-functions/daylight.texi (daylight): Likewise.
32585         * doc/posix-functions/optarg.texi (optarg): Likewise.
32586         * doc/posix-functions/optarg.texi (opterr): Likewise.
32587         * doc/posix-functions/optarg.texi (optind): Likewise.
32588         * doc/posix-functions/optarg.texi (optopt): Likewise.
32589         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
32590         worked in 1.5.x, and was withdrawn in 1.7.
32591         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
32592         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
32593         cygwin versions.
32594         * doc/posix-functions/perror.texi (perror): Likewise.
32595         * doc/posix-functions/printf.texi (printf): Likewise.
32596         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
32597         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
32598         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
32599         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
32600         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
32601         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
32602         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
32603         Likewise.
32604         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
32605         Likewise.
32606         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
32607         this function.
32608         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
32609         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
32610         Likewise.
32611         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
32612         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
32613         * doc/posix-functions/confstr.texi (confstr): Likewise.
32614         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
32615         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
32616         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
32617         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
32618         * doc/posix-functions/fputws.texi (fputws): Likewise.
32619         * doc/posix-functions/fwide.texi (fwide): Likewise.
32620         * doc/posix-functions/getwc.texi (getwc): Likewise.
32621         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
32622         * doc/posix-functions/putwc.texi (putwc): Likewise.
32623         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
32624         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
32625         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
32626         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
32627         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
32628         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
32629         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
32630         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
32631         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
32632         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
32633         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
32634
32635 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32636
32637         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
32638         * lib/ioctl.c: Include <sys/ioctl.h>.
32639
32640 2009-01-19  Simon Josefsson  <simon@josefsson.org>
32641
32642         * modules/getdate-tests (Depends-on): Add progname.
32643         * tests/test-getdate.c: Use progname module, to avoid link errors
32644         on non-glibc systems.
32645
32646 2009-01-18  Simon Josefsson  <simon@josefsson.org>
32647
32648         * modules/filenamecat-tests (Depends-on): Add progname.
32649         * modules/fstrcmp-tests (Depends-on): Likewise.
32650
32651         * tests/test-filenamecat.c: Use progname module, to avoid link
32652         errors on non-glibc systems.
32653         * tests/test-fstrcmp.c: Likewise.
32654
32655 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
32656
32657         gettimeofday: avoid warning: nested extern declaration of 'localtime'
32658         * lib/gettimeofday.c: Move extern declaration out of function.
32659
32660 2009-01-18  Bruno Haible  <bruno@clisp.org>
32661
32662         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
32663         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
32664         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
32665
32666 2009-01-18  Bruno Haible  <bruno@clisp.org>
32667
32668         * lib/strftime.c (MEMPCPY): Remove unused macro.
32669         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
32670
32671 2009-01-18  Martin Lambers  <marlam@marlam.de>
32672
32673         New module 'link'.
32674         * lib/unistd.in.h (link): New declaration.
32675         * lib/link.c: New file.
32676         * m4/link.m4: New file.
32677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
32678         HAVE_LINK.
32679         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
32680         * modules/link: New file.
32681         * doc/posix-functions/link.texi: Mention the new module.
32682
32683 2009-01-18  Bruno Haible  <bruno@clisp.org>
32684
32685         * tests/test-avltree_list.c (main): Call set_program_name.
32686         * tests/test-avltree_oset.c (main): Likewise.
32687         * tests/test-obstack-printf.c: Include progname.h.
32688         (main): Call set_program_name.
32689         * tests/test-quotearg.c: Include progname.h.
32690         (main): Call set_program_name.
32691         * tests/test-xmemdup0.c: Include progname.h.
32692         (main): Call set_program_name.
32693
32694 2009-01-18  Bruno Haible  <bruno@clisp.org>
32695
32696         New module 'alphasort'.
32697         * lib/dirent.in.h (alphasort): New declaration.
32698         * lib/alphasort.c: New file, from glibc with modifications.
32699         * m4/alphasort.m4: New file.
32700         * modules/alphasort: New file.
32701         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
32702         HAVE_ALPHASORT.
32703         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
32704         HAVE_ALPHASORT.
32705         * doc/posix-functions/alphasort.texi: Mention the new module and the
32706         portability problems.
32707
32708 2009-01-18  Bruno Haible  <bruno@clisp.org>
32709
32710         New module 'scandir'.
32711         * lib/dirent.in.h (scandir): New declaration.
32712         * lib/scandir.c: New file, from glibc with modifications.
32713         * m4/scandir.m4: New file.
32714         * modules/scandir: New file.
32715         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
32716         HAVE_SCANDIR.
32717         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
32718         HAVE_SCANDIR.
32719         * doc/posix-functions/scandir.texi: Mention the new module and the
32720         portability problems.
32721
32722 2009-01-17  Bruno Haible  <bruno@clisp.org>
32723
32724         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
32725         Update documentation.
32726         (func_remove_suffix): Escape all dots in the suffix. Update
32727         documentation.
32728         (func_filter_filelist): Update documentation.
32729         Reported by Ralf Wildenhues.
32730
32731 2009-01-17  Bruno Haible  <bruno@clisp.org>
32732
32733         * modules/dprintf-posix-tests: New file.
32734         * tests/test-dprintf-posix.sh: New file.
32735         * tests/test-dprintf-posix.c: New file.
32736
32737         New modules 'dprintf', 'dprintf-posix'.
32738         * lib/stdio.in.h (dprintf): New declaration.
32739         * lib/dprintf.c: New file.
32740         * m4/dprintf.m4: New file.
32741         * m4/dprintf-posix.m4: New file.
32742         * modules/dprintf: New file.
32743         * modules/dprintf-posix: New file.
32744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
32745         HAVE_DPRINTF, REPLACE_DPRINTF.
32746         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
32747         HAVE_DPRINTF, REPLACE_DPRINTF.
32748         * doc/posix-functions/dprintf.texi: Mention the new modules.
32749
32750 2009-01-17  Bruno Haible  <bruno@clisp.org>
32751
32752         * modules/vdprintf-posix-tests: New file.
32753         * tests/test-vdprintf-posix.sh: New file.
32754         * tests/test-vdprintf-posix.c: New file.
32755
32756         New modules 'vdprintf', 'vdprintf-posix'.
32757         * lib/stdio.in.h (vdprintf): New declaration.
32758         * lib/vdprintf.c: New file.
32759         * m4/vdprintf.m4: New file.
32760         * m4/vdprintf-posix.m4: New file.
32761         * modules/vdprintf: New file.
32762         * modules/vdprintf-posix: New file.
32763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
32764         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32765         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
32766         HAVE_VDPRINTF, REPLACE_VDPRINTF.
32767         * doc/posix-functions/vdprintf.texi: Mention the new modules.
32768
32769 2009-01-17  Bruno Haible  <bruno@clisp.org>
32770
32771         Fix replacement of fopen on mingw.
32772         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
32773         mingw.
32774
32775 2009-01-17  Bruno Haible  <bruno@clisp.org>
32776
32777         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
32778         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
32779
32780 2009-01-17  Bruno Haible  <bruno@clisp.org>
32781
32782         Avoid test-fflush2.sh failure on mingw.
32783         * tests/test-fflush2.c: Include binary-io.h.
32784         (main): Put standard input into binary mode.
32785         * modules/fflush-tests (Depends-on): Add binary-io.
32786
32787 2009-01-17  Bruno Haible  <bruno@clisp.org>
32788
32789         * lib/wchar.in.h: In another particular situation, include only the
32790         system's <wchar.h> file.
32791         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
32792         Reported by Albert Chin-A-Young <china@thewrittenword.com>
32793         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
32794
32795 2009-01-17  Bruno Haible  <bruno@clisp.org>
32796
32797         Support for stripping executables in --enable-relocatable.
32798         * build-aux/install-reloc: Expect one more argument, or an environment
32799         variable RELOC_STRIP_PROG. If set, strip the destination program and
32800         its wrapper.
32801         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
32802         RELOC_STRIP_PROG.
32803         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
32804         to set RELOCATABLE_STRIP.
32805         * NEWS: Mention the new Makefile requirement.
32806
32807 2009-01-17  Bruno Haible  <bruno@clisp.org>
32808
32809         * build-aux/install-reloc: Remove debugging information left over by
32810         C compiler on MacOS X.
32811
32812 2009-01-17  Bruno Haible  <bruno@clisp.org>
32813
32814         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32815         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32816         _NSGetExecutablePath.
32817
32818 2009-01-16  Jim Meyering  <meyering@redhat.com>
32819
32820         strerror: avoid warnings about discarding "const"
32821         * lib/strerror.c (rpl_strerror): Instead of returning a const
32822         string from each and every "case", use a variable, and add a single
32823         cast after the switch.
32824
32825 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32826
32827         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32828
32829 2009-01-16  Bruno Haible  <bruno@clisp.org>
32830
32831         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32832         array initializer syntax that also works in C++ mode.
32833         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32834
32835 2009-01-16  Jim Meyering  <meyering@redhat.com>
32836
32837         poll: suppress a warning
32838         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32839         to ignore "...unsigned expression < 0 is always false" warnings.
32840
32841 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32842
32843         poll: remove declarations of unused variables
32844         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32845         sockbuf and optlen.
32846
32847 2009-01-15  Bruno Haible  <bruno@clisp.org>
32848
32849         Make fflush-after-ungetc POSIX compliant on BSD systems.
32850         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32851         (clear_ungetc_buffer): Implement also for other systems.
32852         (rpl_fflush): On glibc systems, invoke
32853         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32854         clear_ungetc_buffer after fetching the stream's position, not before.
32855
32856 2009-01-15  Bruno Haible  <bruno@clisp.org>
32857
32858         Make fflush-after-ungetc POSIX compliant on glibc systems.
32859         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32860         after ungetc.
32861         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32862         (rpl_fflush): On glibc systems, simply call the system's fflush
32863         function after clearing the ungetc buffer.
32864         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32865         Instead, lseek only to the end of file, then use the system's fseeko
32866         for the rest. On glibc systems, reset the EOF indicator bit.
32867
32868 2009-01-15  Jim Meyering  <meyering@redhat.com>
32869
32870         openmp.m4: revert quote-adding change, for portability to older autoconf
32871         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32872         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32873         Simon Josefsson noticed the problem when using autoconf-2.61.
32874
32875 2009-01-15  Bruno Haible  <bruno@clisp.org>
32876
32877         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32878         * tests/test-fflush2.c (ASSERT): Always fail.
32879         (main): Add two tests for fflush() after ungetc(), taking into account
32880         the Austin Group's clarification.
32881         Suggested by Eric Blake.
32882
32883 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32884
32885         mktime.m4: remove K&R-style function prototypes
32886         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32887         for the Sun C++ compiler.
32888
32889 2009-01-14  Bruno Haible  <bruno@clisp.org>
32890
32891         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32892         while including <wchar.h>.
32893         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32894         the system's <wchar.h> file.
32895         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32896
32897 2009-01-14  Bruno Haible  <bruno@clisp.org>
32898
32899         * m4/csharp.m4: Don't mention gettext on the serial number line.
32900         * m4/csharpexec.m4: Likewise.
32901         * m4/eaccess.m4: Likewise.
32902         * m4/javaexec.m4: Likewise.
32903         * m4/sig_atomic_t.m4: Likewise.
32904         * m4/tmpdir.m4: Likewise.
32905         * m4/intldir.m4: Bump gettext version.
32906         * m4/lib-ld.m4: Likewise.
32907
32908 2009-01-14  Bruno Haible  <bruno@clisp.org>
32909
32910         * lib/progname.c (set_program_name): Add more comments.
32911         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32912
32913 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32914
32915         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32916         were sys/stat.h does not define it.
32917
32918 2009-01-14  Jim Meyering  <meyering@redhat.com>
32919
32920         many *.m4 files: improve m4 quoting
32921         99% of this change was performed by running the following commands:
32922         git ls-files | grep '\.m4$' | xargs perl -pi \
32923           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32924           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32925           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32926           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32927         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32928         The remainder were to add Copyright dates, increment serial numbers,
32929         undo some changes in comments, exclude m4/intl.m4, and add quotes
32930         around the "1" in ",1" where the unusual spacing prohibited the
32931         above regexps from doing the job.  For more details, see
32932         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32933         * m4/acl.m4: Modified.
32934         * m4/afs.m4: Likewise.
32935         * m4/alloca.m4: Likewise.
32936         * m4/argp.m4: Likewise.
32937         * m4/argz.m4: Likewise.
32938         * m4/atexit.m4: Likewise.
32939         * m4/bison-i18n.m4: Likewise.
32940         * m4/bison.m4: Likewise.
32941         * m4/byteswap.m4: Likewise.
32942         * m4/c-stack.m4: Likewise.
32943         * m4/c-strtod.m4: Likewise.
32944         * m4/calloc.m4: Likewise.
32945         * m4/canonicalize-lgpl.m4: Likewise.
32946         * m4/chown.m4: Likewise.
32947         * m4/clock_time.m4: Likewise.
32948         * m4/codeset.m4: Likewise.
32949         * m4/copy-file.m4: Likewise.
32950         * m4/csharp.m4: Likewise.
32951         * m4/csharpcomp.m4: Likewise.
32952         * m4/csharpexec.m4: Likewise.
32953         * m4/d-ino.m4: Likewise.
32954         * m4/d-type.m4: Likewise.
32955         * m4/dirfd.m4: Likewise.
32956         * m4/double-slash-root.m4: Likewise.
32957         * m4/eaccess.m4: Likewise.
32958         * m4/eealloc.m4: Likewise.
32959         * m4/environ.m4: Likewise.
32960         * m4/errno_h.m4: Likewise.
32961         * m4/euidaccess.m4: Likewise.
32962         * m4/execute.m4: Likewise.
32963         * m4/fatal-signal.m4: Likewise.
32964         * m4/fchdir.m4: Likewise.
32965         * m4/fcntl_h.m4: Likewise.
32966         * m4/fileblocks.m4: Likewise.
32967         * m4/filenamecat.m4: Likewise.
32968         * m4/findprog.m4: Likewise.
32969         * m4/flexmember.m4: Likewise.
32970         * m4/fnmatch.m4: Likewise.
32971         * m4/fopen.m4: Likewise.
32972         * m4/fpending.m4: Likewise.
32973         * m4/fprintf-posix.m4: Likewise.
32974         * m4/free.m4: Likewise.
32975         * m4/frexp.m4: Likewise.
32976         * m4/frexpl.m4: Likewise.
32977         * m4/fsusage.m4: Likewise.
32978         * m4/ftruncate.m4: Likewise.
32979         * m4/gc-camellia.m4: Likewise.
32980         * m4/gc-random.m4: Likewise.
32981         * m4/gc.m4: Likewise.
32982         * m4/getaddrinfo.m4: Likewise.
32983         * m4/getcwd-abort-bug.m4: Likewise.
32984         * m4/getcwd-path-max.m4: Likewise.
32985         * m4/getdate.m4: Likewise.
32986         * m4/getdomainname.m4: Likewise.
32987         * m4/getgroups.m4: Likewise.
32988         * m4/gethostname.m4: Likewise.
32989         * m4/gethrxtime.m4: Likewise.
32990         * m4/getline.m4: Likewise.
32991         * m4/getloadavg.m4: Likewise.
32992         * m4/getndelim2.m4: Likewise.
32993         * m4/getpass.m4: Likewise.
32994         * m4/gettext.m4: Likewise.
32995         * m4/gettime.m4: Likewise.
32996         * m4/gettimeofday.m4: Likewise.
32997         * m4/gnulib-common.m4: Likewise.
32998         * m4/group-member.m4: Likewise.
32999         * m4/host-os.m4: Likewise.
33000         * m4/iconv.m4: Likewise.
33001         * m4/iconv_open.m4: Likewise.
33002         * m4/inet_ntop.m4: Likewise.
33003         * m4/inet_pton.m4: Likewise.
33004         * m4/inline.m4: Likewise.
33005         * m4/intldir.m4: Likewise.
33006         * m4/intlmacosx.m4: Likewise.
33007         * m4/intmax.m4: Likewise.
33008         * m4/intmax_t.m4: Likewise.
33009         * m4/inttypes.m4: Likewise.
33010         * m4/inttypes_h.m4: Likewise.
33011         * m4/inttypes-pri.m4: Likewise.
33012         * m4/isapipe.m4: Likewise.
33013         * m4/isnand.m4: Likewise.
33014         * m4/isnanf.m4: Likewise.
33015         * m4/isnanl.m4: Likewise.
33016         * m4/javacomp.m4: Likewise.
33017         * m4/javaexec.m4: Likewise.
33018         * m4/jm-winsz1.m4: Likewise.
33019         * m4/jm-winsz2.m4: Likewise.
33020         * m4/lchown.m4: Likewise.
33021         * m4/lcmessage.m4: Likewise.
33022         * m4/ldexpl.m4: Likewise.
33023         * m4/lib-ld.m4: Likewise.
33024         * m4/lib-link.m4: Likewise.
33025         * m4/libsigsegv.m4: Likewise.
33026         * m4/link-follow.m4: Likewise.
33027         * m4/localcharset.m4: Likewise.
33028         * m4/locale-fr.m4: Likewise.
33029         * m4/locale-ja.m4: Likewise.
33030         * m4/locale-tr.m4: Likewise.
33031         * m4/locale-zh.m4: Likewise.
33032         * m4/lock.m4: Likewise.
33033         * m4/longlong.m4: Likewise.
33034         * m4/ls-mntd-fs.m4: Likewise.
33035         * m4/lstat.m4: Likewise.
33036         * m4/malloc.m4: Likewise.
33037         * m4/mathl.m4: Likewise.
33038         * m4/mbrtowc.m4: Likewise.
33039         * m4/mbstate_t.m4: Likewise.
33040         * m4/mbswidth.m4: Likewise.
33041         * m4/memchr.m4: Likewise.
33042         * m4/memcmp.m4: Likewise.
33043         * m4/memcpy.m4: Likewise.
33044         * m4/memmem.m4: Likewise.
33045         * m4/memmove.m4: Likewise.
33046         * m4/mempcpy.m4: Likewise.
33047         * m4/memrchr.m4: Likewise.
33048         * m4/memset.m4: Likewise.
33049         * m4/minmax.m4: Likewise.
33050         * m4/mkdir-slash.m4: Likewise.
33051         * m4/mkdtemp.m4: Likewise.
33052         * m4/mktime.m4: Likewise.
33053         * m4/mmap-anon.m4: Likewise.
33054         * m4/mountlist.m4: Likewise.
33055         * m4/nanosleep.m4: Likewise.
33056         * m4/nls.m4: Likewise.
33057         * m4/nocrash.m4: Likewise.
33058         * m4/open.m4: Likewise.
33059         * m4/openat.m4: Likewise.
33060         * m4/openmp.m4: Likewise.
33061         * m4/pathmax.m4: Likewise.
33062         * m4/perl.m4: Likewise.
33063         * m4/physmem.m4: Likewise.
33064         * m4/pipe.m4: Likewise.
33065         * m4/po.m4: Likewise.
33066         * m4/poll.m4: Likewise.
33067         * m4/posixtm.m4: Likewise.
33068         * m4/posixver.m4: Likewise.
33069         * m4/printf-frexp.m4: Likewise.
33070         * m4/printf-frexpl.m4: Likewise.
33071         * m4/printf-posix.m4: Likewise.
33072         * m4/printf-posix-rpl.m4: Likewise.
33073         * m4/printf.m4: Likewise.
33074         * m4/progtest.m4: Likewise.
33075         * m4/putenv.m4: Likewise.
33076         * m4/readline.m4: Likewise.
33077         * m4/readlink.m4: Likewise.
33078         * m4/readutmp.m4: Likewise.
33079         * m4/realloc.m4: Likewise.
33080         * m4/regex.m4: Likewise.
33081         * m4/relocatable.m4: Likewise.
33082         * m4/relocatable-lib.m4: Likewise.
33083         * m4/rename-dest-slash.m4: Likewise.
33084         * m4/rename.m4: Likewise.
33085         * m4/rmdir-errno.m4: Likewise.
33086         * m4/rmdir.m4: Likewise.
33087         * m4/roundf.m4: Likewise.
33088         * m4/roundl.m4: Likewise.
33089         * m4/rpmatch.m4: Likewise.
33090         * m4/save-cwd.m4: Likewise.
33091         * m4/selinux-selinux-h.m4: Likewise.
33092         * m4/setenv.m4: Likewise.
33093         * m4/settime.m4: Likewise.
33094         * m4/sig2str.m4: Likewise.
33095         * m4/sig_atomic_t.m4: Likewise.
33096         * m4/signalblocking.m4: Likewise.
33097         * m4/signbit.m4: Likewise.
33098         * m4/sigpipe.m4: Likewise.
33099         * m4/sockets.m4: Likewise.
33100         * m4/sockpfaf.m4: Likewise.
33101         * m4/st_dm_mode.m4: Likewise.
33102         * m4/stat-time.m4: Likewise.
33103         * m4/stdbool.m4: Likewise.
33104         * m4/stdint.m4: Likewise.
33105         * m4/stdint_h.m4: Likewise.
33106         * m4/stpcpy.m4: Likewise.
33107         * m4/stpncpy.m4: Likewise.
33108         * m4/strcase.m4: Likewise.
33109         * m4/strchrnul.m4: Likewise.
33110         * m4/strcspn.m4: Likewise.
33111         * m4/strdup.m4: Likewise.
33112         * m4/strftime.m4: Likewise.
33113         * m4/strndup.m4: Likewise.
33114         * m4/strnlen.m4: Likewise.
33115         * m4/strpbrk.m4: Likewise.
33116         * m4/strptime.m4: Likewise.
33117         * m4/strsep.m4: Likewise.
33118         * m4/strtod.m4: Likewise.
33119         * m4/strtoimax.m4: Likewise.
33120         * m4/strtok_r.m4: Likewise.
33121         * m4/strtol.m4: Likewise.
33122         * m4/strtoll.m4: Likewise.
33123         * m4/strtoul.m4: Likewise.
33124         * m4/strtoull.m4: Likewise.
33125         * m4/strtoumax.m4: Likewise.
33126         * m4/strverscmp.m4: Likewise.
33127         * m4/threadlib.m4: Likewise.
33128         * m4/timegm.m4: Likewise.
33129         * m4/tm_gmtoff.m4: Likewise.
33130         * m4/tmpdir.m4: Likewise.
33131         * m4/tmpfile.m4: Likewise.
33132         * m4/tzset.m4: Likewise.
33133         * m4/uintmax_t.m4: Likewise.
33134         * m4/unlinkdir.m4: Likewise.
33135         * m4/unlocked-io.m4: Likewise.
33136         * m4/uptime.m4: Likewise.
33137         * m4/userspec.m4: Likewise.
33138         * m4/utimbuf.m4: Likewise.
33139         * m4/utime.m4: Likewise.
33140         * m4/utimes-null.m4: Likewise.
33141         * m4/utimes.m4: Likewise.
33142         * m4/vararrays.m4: Likewise.
33143         * m4/vasnprintf.m4: Likewise.
33144         * m4/vfprintf-posix.m4: Likewise.
33145         * m4/vprintf-posix.m4: Likewise.
33146         * m4/wait-process.m4: Likewise.
33147         * m4/wchar_t.m4: Likewise.
33148         * m4/wint_t.m4: Likewise.
33149         * m4/write-any-file.m4: Likewise.
33150         * m4/yield.m4: Likewise.
33151
33152 2009-01-13  Bruno Haible  <bruno@clisp.org>
33153
33154         Avoid test-copy-file.sh failures when ACL support insufficient.
33155         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33156         TESTS_ENVIRONMENT.
33157         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33158         Reported by Jim Meyering.
33159
33160 2009-01-13  Bruno Haible  <bruno@clisp.org>
33161
33162         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33163         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33164         * modules/unistdio/u8-printf-parse (Files): Likewise.
33165         * modules/unistdio/u32-printf-parse (Files): Likewise.
33166         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33167
33168 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33169
33170         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33171         and m4/inttypes_h.m4 too.
33172
33173 2009-01-12  Eric Blake  <ebb9@byu.net>
33174
33175         tests: IRIX 6.2 cc can't compile -0.0 into .data
33176         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33177         rather than at compile-time.
33178         * tests/test-floorl.c (minus_zero): Likewise.
33179         * tests/test-frexpl.c (minus_zero): Likewise.
33180         * tests/test-isnan.c (minus_zerol): Likewise.
33181         * tests/test-isnanl.h (minus_zero): Likewise.
33182         * tests/test-ldexpl.c (minus_zero): Likewise.
33183         * tests/test-roundl.c (minus_zero): Likewise.
33184         * tests/test-signbit.c (minus_zerol): Likewise.
33185         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33186         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33187         * tests/test-truncl.c (minus_zero): Likewise.
33188         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33189         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33190         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33191
33192 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33193
33194         regex: fix glibc bug 9697
33195         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33196         handling.
33197
33198 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33199
33200         regex: fix glibc bug 697
33201         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33202         being NULL also if there are no backreferences.
33203
33204 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33205
33206         regex: merge glibc changes
33207         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33208         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33209         re_string_skip_chars, re_string_reconstruct): Likewise.
33210         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33211
33212 2009-01-07  Jim Meyering  <meyering@redhat.com>
33213
33214         poll: filter through cppi
33215         * lib/poll.c: Indent cpp directives to reflect nesting.
33216
33217 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33218
33219         poll: don't return uninitialized
33220         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33221
33222 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33223
33224         avoid compile failure on AIX 6.1
33225         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33226         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33227
33228 2009-01-04  Jim Meyering  <meyering@redhat.com>
33229
33230         remove duplicate inclusion of <stdio.h>
33231         * tests/test-fprintf-posix.c: Likewise.
33232         * tests/test-printf-posix.c: Likewise.
33233         * tests/test-snprintf-posix.c: Likewise.
33234         * tests/test-sprintf-posix.c: Likewise.
33235         * tests/test-vasprintf-posix.c: Likewise.
33236         * tests/test-vfprintf-posix.c: Likewise.
33237         * tests/test-vprintf-posix.c: Likewise.
33238         * tests/test-vsnprintf-posix.c: Likewise.
33239         * tests/test-vsprintf-posix.c: Likewise.
33240
33241 2009-01-03  Jim Meyering  <meyering@redhat.com>
33242
33243         gnulib-tool: fix sed-based filtering
33244         * gnulib-tool (func_filter_filelist): Remove extra backslash
33245         in sed_fff_filter definition.
33246
33247 2009-01-02  Jim Meyering  <meyering@redhat.com>
33248
33249         strftime: avoid compilation failure on Solaris 2.6
33250         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33251         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33252         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33253         be available.  Reported by Tom G. Christensen.  Details in
33254         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33255
33256 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33257             Bruno Haible  <bruno@clisp.org>
33258
33259         Speed up gnulib-tool by doing more string processing through shell
33260         built-ins.
33261         * gnulib-tool (fast_func_append): New variable.
33262         (func_remove_prefix, func_remove_suffix): New functions.
33263         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33264         (func_filter_filelist): New function.
33265         (func_get_dependencies): Use func_remove_suffix instead of sed.
33266         (func_get_automake_snippet): Use func_filter_filelist instead of a
33267         subshell and sed invocation.
33268
33269 2009-01-01  Bruno Haible  <bruno@clisp.org>
33270
33271         Fix a security bug.
33272         * gnulib-tool (func_import, import, update): Don't allow the characters
33273         '"', '$', '`', '\' in macro arguments that become part of commands that
33274         are evaluated.
33275
33276 2009-01-01  Bruno Haible  <bruno@clisp.org>
33277
33278         * gnulib-tool (func_reset_sigpipe): Add more comments.
33279
33280 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33281
33282         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33283         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33284         already know the answer.
33285
33286 2009-01-01  Jim Meyering  <meyering@redhat.com>
33287
33288         * lib/version-etc.c (version_etc_va): Update copyright year.
33289
33290 2008-12-30  Bruno Haible  <bruno@clisp.org>
33291
33292         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33293         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33294         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33295
33296 2008-12-29  Eric Blake  <ebb9@byu.net>
33297
33298         multiarch: avoid autoconf AC_REQUIRE bug
33299         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33300         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33301         2.63 and older.
33302         Reported by Bruno Haible, and analyzed in
33303         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33304
33305 2008-12-29  Bruno Haible  <bruno@clisp.org>
33306
33307         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33308         files in subdirectories correctly.
33309         Reported by Ralf Wildenhues.
33310
33311 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33312
33313         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33314         rather than 'join FILE -', for Solaris join.
33315
33316 2008-12-29  Bruno Haible  <bruno@clisp.org>
33317
33318         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33319         quoting.
33320         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33321         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33322         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33323         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33324         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33325         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33326         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33327         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33328         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33329         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33330         * m4/nls.m4 (AM_NLS): Likewise.
33331         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33332         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33333         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33334         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33335         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33336         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33337         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33338         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33339         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33340         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33341         * m4/xsize.m4 (gl_XSIZE): Likewise.
33342         Suggested by Jim Meyering.
33343
33344 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33345
33346         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33347         * lib/parse-duration.c: use a switch instead of cascading if's.
33348
33349 2008-12-29  Eric Blake  <ebb9@byu.net>
33350
33351         wchar.h: supply WEOF on Irix 5.3
33352         * lib/wchar.in.h (wint_t): Also supply WEOF.
33353         * lib/wctype.in.h (wint_t): Likewise.
33354         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33355         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33356         Reported by Tom G. Christensen.
33357
33358 2008-12-26  Bruno Haible  <bruno@clisp.org>
33359
33360         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33361         i486, i586, i686.
33362
33363 2008-12-26  Bruno Haible  <bruno@clisp.org>
33364
33365         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33366
33367 2008-12-26  Bruno Haible  <bruno@clisp.org>
33368
33369         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33370         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33371         not __STDC_CONSTANT_MACROS.
33372         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33373
33374 2008-12-25  Bruno Haible  <bruno@clisp.org>
33375
33376         Add support for universal builds to vasnprintf.
33377         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33378         universal builds, guess no.
33379         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33380         * modules/vasprintf-posix (Depends-on): Likewise.
33381         * modules/fprintf-posix (Depends-on): Likewise.
33382         * modules/vfprintf-posix (Depends-on): Likewise.
33383         * modules/snprintf-posix (Depends-on): Likewise.
33384         * modules/vsnprintf-posix (Depends-on): Likewise.
33385         * modules/sprintf-posix (Depends-on): Likewise.
33386         * modules/vsprintf-posix (Depends-on): Likewise.
33387         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33388         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33389         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33390         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33391         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33392         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33393         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33394
33395         Add support for universal builds to <inttypes.h>.
33396         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33397         _SCNu64_PREFIX): In Apple
33398         universal builds, define directly, using _LP64.
33399         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33400         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33401         * modules/inttypes (Depends-on): Add multiarch.
33402         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33403
33404         Add support for universal builds to <stdint.h>.
33405         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33406         universal builds, define directly, using _LP64.
33407         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33408         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33409         and size_t.
33410         * modules/stdint (Depends-on): Add multiarch.
33411         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33412
33413         New module 'multiarch'.
33414         * modules/multiarch: New file.
33415         * m4/multiarch.m4: New file.
33416
33417 2008-12-25  Bruno Haible  <bruno@clisp.org>
33418
33419         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33420
33421 2008-12-25  Bruno Haible  <bruno@clisp.org>
33422
33423         * modules/btowc (License): Relicense under LGPLv2+.
33424         * modules/mbsinit (License): Likewise.
33425         * modules/mbrtowc (License): Likewise.
33426         * modules/wcrtomb (License): Likewise.
33427         * modules/streq (License): Likewise.
33428         Reported by David Lutterkort <lutter@redhat.com>.
33429
33430 2008-12-23  Bruno Haible  <bruno@clisp.org>
33431
33432         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33433
33434 2008-12-23  Bruno Haible  <bruno@clisp.org>
33435
33436         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33437         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33438         GETADDRINFO_LIB, not in LIBS.
33439         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33440         * modules/canon-host (Link): Likewise.
33441         * NEWS: Mention the change.
33442         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33443         GETADDRINFO_LIB.
33444
33445 2008-12-22  Bruno Haible  <bruno@clisp.org>
33446
33447         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33448         * doc/posix-functions/iswalpha_l.texi: Likewise.
33449         * doc/posix-functions/iswblank_l.texi: Likewise.
33450         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33451         * doc/posix-functions/iswctype_l.texi: Likewise.
33452         * doc/posix-functions/iswdigit_l.texi: Likewise.
33453         * doc/posix-functions/iswgraph_l.texi: Likewise.
33454         * doc/posix-functions/iswlower_l.texi: Likewise.
33455         * doc/posix-functions/iswprint_l.texi: Likewise.
33456         * doc/posix-functions/iswpunct_l.texi: Likewise.
33457         * doc/posix-functions/iswspace_l.texi: Likewise.
33458         * doc/posix-functions/iswupper_l.texi: Likewise.
33459         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33460         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33461         * doc/posix-functions/open_wmemstream.texi: Likewise.
33462         * doc/posix-functions/swscanf.texi: Likewise.
33463         * doc/posix-functions/towctrans_l.texi: Likewise.
33464         * doc/posix-functions/towlower.texi: Likewise.
33465         * doc/posix-functions/towlower_l.texi: Likewise.
33466         * doc/posix-functions/towupper.texi: Likewise.
33467         * doc/posix-functions/towupper_l.texi: Likewise.
33468         * doc/posix-functions/vfwprintf.texi: Likewise.
33469         * doc/posix-functions/vfwscanf.texi: Likewise.
33470         * doc/posix-functions/vswscanf.texi: Likewise.
33471         * doc/posix-functions/vwprintf.texi: Likewise.
33472         * doc/posix-functions/vwscanf.texi: Likewise.
33473         * doc/posix-functions/wcpcpy.texi: Likewise.
33474         * doc/posix-functions/wcpncpy.texi: Likewise.
33475         * doc/posix-functions/wcscasecmp.texi: Likewise.
33476         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33477         * doc/posix-functions/wcscoll_l.texi: Likewise.
33478         * doc/posix-functions/wcsdup.texi: Likewise.
33479         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33480         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33481         * doc/posix-functions/wcsnlen.texi: Likewise.
33482         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33483         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33484         * doc/posix-functions/wctrans_l.texi: Likewise.
33485         * doc/posix-functions/wctype_l.texi: Likewise.
33486         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33487         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33488         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33489         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33490         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33491         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33492         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33493         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33494         * doc/glibc-functions/wcschrnul.texi: Likewise.
33495         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33496         * doc/glibc-functions/wcstod_l.texi: Likewise.
33497         * doc/glibc-functions/wcstof_l.texi: Likewise.
33498         * doc/glibc-functions/wcstol_l.texi: Likewise.
33499         * doc/glibc-functions/wcstold_l.texi: Likewise.
33500         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33501         * doc/glibc-functions/wcstoq.texi: Likewise.
33502         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33503         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33504         * doc/glibc-functions/wcstouq.texi: Likewise.
33505         * doc/glibc-functions/wmempcpy.texi: Likewise.
33506
33507 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33508             Eric Blake  <ebb9@byu.net>
33509             Paolo Bonzini  <bonzini@gnu.org>
33510             Bruno Haible  <bruno@clisp.org>
33511
33512         Make c-stack work on Haiku.
33513         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33514         (c_stack_action): Use SA_ONSTACK flag.
33515
33516 2008-12-22  Bruno Haible  <bruno@clisp.org>
33517
33518         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33519
33520 2008-12-22  Bruno Haible  <bruno@clisp.org>
33521
33522         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33523         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33524         being overridden.
33525         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33526         New macros.
33527         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33528         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33529         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33530         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33531
33532 2008-12-22  Bruno Haible  <bruno@clisp.org>
33533
33534         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33535         from test code.
33536
33537 2008-12-22  Eric Blake  <ebb9@byu.net>
33538
33539         Avoid gcc warnings on cygwin.
33540         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33541         Avoid unused variable.
33542         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
33543         Likewise.
33544
33545 2008-12-22  Bruno Haible  <bruno@clisp.org>
33546
33547         Remove HAVE_MBRTOWC conditionals.
33548         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
33549         (mbscasecmp): Assume mbrtowc function.
33550         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
33551         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
33552         * lib/mbschr.c: Include mbuiter.h unconditionally.
33553         (mbschr): Assume mbrtowc function.
33554         * lib/mbscspn.c: Include mbuiter.h unconditionally.
33555         (mbscspn): Assume mbrtowc function.
33556         * lib/mbslen.c: Include mbuiter.h unconditionally.
33557         (mbslen): Assume mbrtowc function.
33558         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
33559         (mbsncasecmp): Assume mbrtowc function.
33560         * lib/mbsnlen.c: Include mbiter.h unconditionally.
33561         (mbsnlen): Assume mbrtowc function.
33562         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
33563         (mbspbrk): Assume mbrtowc function.
33564         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
33565         (mbspcasecmp): Assume mbrtowc function.
33566         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
33567         (mbsrchr): Assume mbrtowc function.
33568         * lib/mbssep.c: Include mbuiter.h unconditionally.
33569         (mbssep): Assume mbrtowc function.
33570         * lib/mbsspn.c: Include mbuiter.h unconditionally.
33571         (mbsspn): Assume mbrtowc function.
33572         * lib/mbsstr.c: Include mbuiter.h unconditionally.
33573         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
33574         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
33575         (mbstok_r): Assume mbrtowc function.
33576         * lib/propername.c: Include mbuiter.h unconditionally.
33577         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
33578         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
33579         (trim2): Assume mbrtowc function.
33580         * lib/mbswidth.c (mbsinit): Remove fallback definition.
33581         (mbsnwidth): Assume mbrtowc function.
33582         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
33583         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
33584         fallback definitions.
33585         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
33586
33587 2008-12-22  Bruno Haible  <bruno@clisp.org>
33588
33589         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
33590
33591 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
33592
33593         * modules/regex: Request emulations for the mb*/wc* functions we need.
33594         * m4/regex.m4: Don't look for those functions here.
33595         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
33596
33597 2008-12-22  Bruno Haible  <bruno@clisp.org>
33598
33599         * modules/fnmatch (Depends-on): Remove duplicated dependency.
33600
33601 2008-12-21  Bruno Haible  <bruno@clisp.org>
33602
33603         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
33604         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
33605         (Include): Remove conditionalization.
33606         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
33607         (Include): Remove conditionalization.
33608         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
33609         (Include): Remove conditionalization.
33610         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
33611         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33612         * NEWS: Mention the change.
33613         Reported by Alan Hourihane <alanh@fairlite.co.uk>
33614         via Sergey Poznyakoff <gray@gnu.org.ua>.
33615
33616 2008-12-21  Bruno Haible  <bruno@clisp.org>
33617
33618         * MODULES.html.sh (Extended multibyte and wide character utilities
33619         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
33620         wcrtomb, wcsrtombs.
33621         (Support for systems lacking POSIX:2008): Add accept, bind, close,
33622         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
33623         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
33624         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
33625
33626 2008-12-21  Bruno Haible  <bruno@clisp.org>
33627
33628         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
33629
33630 2008-12-21  Bruno Haible  <bruno@clisp.org>
33631
33632         * modules/wcsnrtombs-tests: New file.
33633         * tests/test-wcsnrtombs1.sh: New file.
33634         * tests/test-wcsnrtombs2.sh: New file.
33635         * tests/test-wcsnrtombs3.sh: New file.
33636         * tests/test-wcsnrtombs4.sh: New file.
33637         * tests/test-wcsnrtombs.c: New file.
33638
33639         New module 'wcsnrtombs'.
33640         * lib/wchar.in.h (wcsnrtombs): New declaration.
33641         * lib/wcsnrtombs.c: New file.
33642         * lib/wcsrtombs-state.c: New file.
33643         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
33644         (internal_state): Remove variable.
33645         * m4/wcsnrtombs.m4: New file.
33646         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
33647         compilation units.
33648         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
33649         HAVE_WCSNRTOMBS.
33650         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
33651         HAVE_WCSNRTOMBS.
33652         * modules/wcsnrtombs: New file.
33653         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
33654         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
33655
33656 2008-12-21  Bruno Haible  <bruno@clisp.org>
33657
33658         * modules/wcsrtombs-tests: New file.
33659         * tests/test-wcsrtombs1.sh: New file.
33660         * tests/test-wcsrtombs2.sh: New file.
33661         * tests/test-wcsrtombs3.sh: New file.
33662         * tests/test-wcsrtombs4.sh: New file.
33663         * tests/test-wcsrtombs.c: New file.
33664
33665         New module 'wcsrtombs'.
33666         * lib/wchar.in.h (wcsrtombs): New declaration.
33667         * lib/wcsrtombs.c: New file.
33668         * m4/wcsrtombs.m4: New file.
33669         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
33670         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
33672         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
33673         * modules/wcsrtombs: New file.
33674         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
33675         bugs.
33676
33677 2008-12-21  Bruno Haible  <bruno@clisp.org>
33678
33679         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
33680         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
33681         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
33682         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
33683         if not correct.
33684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
33685         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
33686         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33687         m4/locale-zh.m4, m4/codeset.m4.
33688         * doc/posix-functions/wcrtomb.texi: Document the bug.
33689
33690 2008-12-21  Bruno Haible  <bruno@clisp.org>
33691
33692         Work around a btowc() bug on IRIX 6.5.
33693         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
33694         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
33695         REPLACE_WTOBC if not.
33696         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
33697         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
33698         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
33699
33700 2008-12-21  Bruno Haible  <bruno@clisp.org>
33701
33702         * modules/wcrtomb-tests: New file.
33703         * tests/test-wcrtomb.sh: New file.
33704         * tests/test-wcrtomb.c: New file.
33705
33706         New module 'wcrtomb'.
33707         * lib/wchar.in.h (wcrtomb): New declaration.
33708         * lib/wcrtomb.c: New file.
33709         * m4/wcrtomb.m4: New file.
33710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
33711         HAVE_WCRTOMB.
33712         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
33713         HAVE_WCRTOMB.
33714         * modules/wcrtomb: New file.
33715         * doc/posix-functions/wcrtomb.texi: Mention the new module.
33716
33717 2008-12-21  Bruno Haible  <bruno@clisp.org>
33718
33719         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
33720         * modules/mbsrtowcs (Files): Likewise.
33721         * modules/wctob (Files): Likewise.
33722         * modules/c-strcase-tests (Files): Likewise.
33723         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33724         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33725         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33726         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33727         * modules/vasnprintf-posix-tests (Files): Likewise.
33728
33729 2008-12-21  William Pursell  <bill.pursell@gmail.com>
33730
33731         gitlog-to-changelog: pass all command-line arguments to git-log
33732         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
33733         it is sometimes convenient to filter the commits in various ways.
33734         gitlog-to-changelog only allows --since to specify a start date,
33735         but git-log itself supports many other filtering mechanisms.
33736         At the moment, I want to filter by branch name.  Rather than
33737         adding a --branch option to gitlog-to-changelog, it seems more
33738         flexible to simply pass all options directly to git-log and let
33739         git do the work.  Notice that this effectively makes --since a
33740         redundant option for gitlog-to-changelog, but removing it would
33741         require current usage to change since calls would then require
33742         an additional '--'.
33743
33744 2008-12-21  Bruno Haible  <bruno@clisp.org>
33745
33746         * modules/mbsnrtowcs-tests: New file.
33747         * tests/test-mbsnrtowcs1.sh: New file.
33748         * tests/test-mbsnrtowcs2.sh: New file.
33749         * tests/test-mbsnrtowcs3.sh: New file.
33750         * tests/test-mbsnrtowcs4.sh: New file.
33751         * tests/test-mbsnrtowcs.c: New file.
33752
33753         New module 'mbsnrtowcs'.
33754         * lib/wchar.in.h (mbsnrtowcs): New declaration.
33755         * lib/mbsnrtowcs.c: New file.
33756         * lib/mbsrtowcs-state.c: New file.
33757         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
33758         (internal_state): Remove variable.
33759         * m4/mbsnrtowcs.m4: New file.
33760         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
33761         compilation units.
33762         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
33763         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33764         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
33765         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
33766         * modules/mbsnrtowcs: New file.
33767         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
33768         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
33769         portability problem.
33770
33771 2008-12-21  Bruno Haible  <bruno@clisp.org>
33772
33773         Work around mbsrtowcs bug.
33774         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
33775         (gl_FUNC_MBSRTOWCS): Invoke it.
33776         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33777         m4/locale-zh.m4.
33778         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
33779
33780 2008-12-21  Bruno Haible  <bruno@clisp.org>
33781
33782         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
33783
33784 2008-12-21  Bruno Haible  <bruno@clisp.org>
33785
33786         Update doc for AIX.
33787         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
33788         16-bit wchar_t type.
33789         * doc/posix-functions/btowc.texi: Likewise.
33790         * doc/posix-functions/fgetwc.texi: Likewise.
33791         * doc/posix-functions/fgetws.texi: Likewise.
33792         * doc/posix-functions/fputwc.texi: Likewise.
33793         * doc/posix-functions/fputws.texi: Likewise.
33794         * doc/posix-functions/fwide.texi: Likewise.
33795         * doc/posix-functions/fwprintf.texi: Likewise.
33796         * doc/posix-functions/fwscanf.texi: Likewise.
33797         * doc/posix-functions/getwchar.texi: Likewise.
33798         * doc/posix-functions/getwc.texi: Likewise.
33799         * doc/posix-functions/iswalnum.texi: Likewise.
33800         * doc/posix-functions/iswalpha.texi: Likewise.
33801         * doc/posix-functions/iswblank.texi: Likewise.
33802         * doc/posix-functions/iswcntrl.texi: Likewise.
33803         * doc/posix-functions/iswctype.texi: Likewise.
33804         * doc/posix-functions/iswdigit.texi: Likewise.
33805         * doc/posix-functions/iswgraph.texi: Likewise.
33806         * doc/posix-functions/iswlower.texi: Likewise.
33807         * doc/posix-functions/iswprint.texi: Likewise.
33808         * doc/posix-functions/iswpunct.texi: Likewise.
33809         * doc/posix-functions/iswspace.texi: Likewise.
33810         * doc/posix-functions/iswupper.texi: Likewise.
33811         * doc/posix-functions/iswxdigit.texi: Likewise.
33812         * doc/posix-functions/mbrtowc.texi: Likewise.
33813         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33814         * doc/posix-functions/mbstowcs.texi: Likewise.
33815         * doc/posix-functions/mbtowc.texi: Likewise.
33816         * doc/posix-functions/putwchar.texi: Likewise.
33817         * doc/posix-functions/putwc.texi: Likewise.
33818         * doc/posix-functions/swprintf.texi: Likewise.
33819         * doc/posix-functions/tolower.texi: Likewise.
33820         * doc/posix-functions/toupper.texi: Likewise.
33821         * doc/posix-functions/towctrans.texi: Likewise.
33822         * doc/posix-functions/ungetwc.texi: Likewise.
33823         * doc/posix-functions/vswprintf.texi: Likewise.
33824         * doc/posix-functions/wcrtomb.texi: Likewise.
33825         * doc/posix-functions/wcscat.texi: Likewise.
33826         * doc/posix-functions/wcschr.texi: Likewise.
33827         * doc/posix-functions/wcscmp.texi: Likewise.
33828         * doc/posix-functions/wcscoll.texi: Likewise.
33829         * doc/posix-functions/wcscpy.texi: Likewise.
33830         * doc/posix-functions/wcscspn.texi: Likewise.
33831         * doc/posix-functions/wcsftime.texi: Likewise.
33832         * doc/posix-functions/wcslen.texi: Likewise.
33833         * doc/posix-functions/wcsncat.texi: Likewise.
33834         * doc/posix-functions/wcsncmp.texi: Likewise.
33835         * doc/posix-functions/wcsncpy.texi: Likewise.
33836         * doc/posix-functions/wcspbrk.texi: Likewise.
33837         * doc/posix-functions/wcsrchr.texi: Likewise.
33838         * doc/posix-functions/wcsrtombs.texi: Likewise.
33839         * doc/posix-functions/wcsspn.texi: Likewise.
33840         * doc/posix-functions/wcsstr.texi: Likewise.
33841         * doc/posix-functions/wcstod.texi: Likewise.
33842         * doc/posix-functions/wcstof.texi: Likewise.
33843         * doc/posix-functions/wcstoimax.texi: Likewise.
33844         * doc/posix-functions/wcstok.texi: Likewise.
33845         * doc/posix-functions/wcstold.texi: Likewise.
33846         * doc/posix-functions/wcstoll.texi: Likewise.
33847         * doc/posix-functions/wcstol.texi: Likewise.
33848         * doc/posix-functions/wcstombs.texi: Likewise.
33849         * doc/posix-functions/wcstoull.texi: Likewise.
33850         * doc/posix-functions/wcstoul.texi: Likewise.
33851         * doc/posix-functions/wcstoumax.texi: Likewise.
33852         * doc/posix-functions/wcswidth.texi: Likewise.
33853         * doc/posix-functions/wcsxfrm.texi: Likewise.
33854         * doc/posix-functions/wctob.texi: Likewise.
33855         * doc/posix-functions/wctomb.texi: Likewise.
33856         * doc/posix-functions/wctrans.texi: Likewise.
33857         * doc/posix-functions/wctype.texi: Likewise.
33858         * doc/posix-functions/wcwidth.texi: Likewise.
33859         * doc/posix-functions/wmemchr.texi: Likewise.
33860         * doc/posix-functions/wmemcmp.texi: Likewise.
33861         * doc/posix-functions/wmemcpy.texi: Likewise.
33862         * doc/posix-functions/wmemmove.texi: Likewise.
33863         * doc/posix-functions/wmemset.texi: Likewise.
33864         * doc/posix-functions/wprintf.texi: Likewise.
33865         * doc/posix-functions/wscanf.texi: Likewise.
33866
33867 2008-12-21  Bruno Haible  <bruno@clisp.org>
33868
33869         Update doc for HP-UX 11.11.
33870         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33871         in HP-UX version 11.00, not in all versions of HP-UX 11.
33872         * doc/posix-functions/fwide.texi: Likewise.
33873         * doc/posix-functions/fwprintf.texi: Likewise.
33874         * doc/posix-functions/fwscanf.texi: Likewise.
33875         * doc/posix-functions/inet_ntop.texi: Likewise.
33876         * doc/posix-functions/inet_pton.texi: Likewise.
33877         * doc/posix-functions/mbrlen.texi: Likewise.
33878         * doc/posix-functions/mbrtowc.texi: Likewise.
33879         * doc/posix-functions/mbsinit.texi: Likewise.
33880         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33881         * doc/posix-functions/swprintf.texi: Likewise.
33882         * doc/posix-functions/swscanf.texi: Likewise.
33883         * doc/posix-functions/towctrans.texi: Likewise.
33884         * doc/posix-functions/vfwprintf.texi: Likewise.
33885         * doc/posix-functions/vswprintf.texi: Likewise.
33886         * doc/posix-functions/vwprintf.texi: Likewise.
33887         * doc/posix-functions/wcrtomb.texi: Likewise.
33888         * doc/posix-functions/wcsrtombs.texi: Likewise.
33889         * doc/posix-functions/wcsstr.texi: Likewise.
33890         * doc/posix-functions/wctob.texi: Likewise.
33891         * doc/posix-functions/wctrans.texi: Likewise.
33892         * doc/posix-functions/wmemchr.texi: Likewise.
33893         * doc/posix-functions/wmemcmp.texi: Likewise.
33894         * doc/posix-functions/wmemcpy.texi: Likewise.
33895         * doc/posix-functions/wmemmove.texi: Likewise.
33896         * doc/posix-functions/wmemset.texi: Likewise.
33897         * doc/posix-functions/wprintf.texi: Likewise.
33898         * doc/posix-functions/wscanf.texi: Likewise.
33899
33900 2008-12-21  Bruno Haible  <bruno@clisp.org>
33901
33902         Work around a portability problem.
33903         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33904         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33905
33906 2008-12-20  Bruno Haible  <bruno@clisp.org>
33907
33908         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33909         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33910         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33912         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33913
33914         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33915         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33916         set.
33917         (GNULIB_defined_mbstate_t): New macro.
33918         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33919         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33920         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33921         reuses the system's mbrtowc function but works around the bugs.
33922         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33923         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33924         macros.
33925         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33926         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33927         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33928         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33929         REPLACE_MBSINIT if mbsinit needs to be overridden.
33930         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33931         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33932         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33933         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33934         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33935         m4/locale-zh.m4.
33936         (Depends): Add mbsinit.
33937         * modules/mbsinit (Depends): Add mbrtowc.
33938         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33939
33940 2008-12-20  Bruno Haible  <bruno@clisp.org>
33941
33942         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33943         so that there are no conversion errors on AIX.
33944         * tests/test-mbsrtowcs.c (main): LIkewise.
33945
33946 2008-12-20  Bruno Haible  <bruno@clisp.org>
33947
33948         Work around wctob bug on Solaris <= 9.
33949         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33950         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33952         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33953         * modules/wctob (Files): Add m4/locale-fr.m4.
33954         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33955
33956 2008-12-20  Bruno Haible  <bruno@clisp.org>
33957
33958         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33959         /dev/null.
33960         * tests/test-select-in.sh: Likewise.
33961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33962
33963 2008-12-20  Bruno Haible  <bruno@clisp.org>
33964
33965         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33966         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33967         Cygwin 1.5.x.
33968
33969 2008-12-20  Bruno Haible  <bruno@clisp.org>
33970
33971         Ensure mbstate_t is defined on HP-UX 11.11.
33972         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33973         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33974         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33975         AC_USE_SYSTEM_EXTENSIONS.
33976         * modules/fnmatch (Depends-on): Add extensions.
33977         * modules/mbrlen (Depends-on): Likewise.
33978         * modules/mbrtowc (Depends-on): Likewise.
33979         * modules/mbsinit (Depends-on): Likewise.
33980         * modules/mbsrtowcs (Depends-on): Likewise.
33981         * modules/mbswidth (Depends-on): Likewise.
33982         * modules/quotearg (Depends-on): Likewise.
33983         * modules/strftime (Depends-on): Likewise.
33984
33985 2008-12-20  Bruno Haible  <bruno@clisp.org>
33986
33987         Ensure wctob is declared on IRIX 6.5.
33988         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33989         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33990         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33991         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33992         of HAVE_WCTOB.
33993         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33994         HAVE_WCTOB.
33995         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33996
33997 2008-12-19  Bruno Haible  <bruno@clisp.org>
33998
33999         * modules/mbsrtowcs-tests: New file.
34000         * tests/test-mbsrtowcs1.sh: New file.
34001         * tests/test-mbsrtowcs2.sh: New file.
34002         * tests/test-mbsrtowcs3.sh: New file.
34003         * tests/test-mbsrtowcs4.sh: New file.
34004         * tests/test-mbsrtowcs.c: New file.
34005
34006         New module 'mbsrtowcs'.
34007         * lib/wchar.in.h (mbsrtowcs): New declaration.
34008         * lib/mbsrtowcs.c: New file.
34009         * m4/mbsrtowcs.m4: New file.
34010         * modules/mbsrtowcs: New file.
34011         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34012         HAVE_MBSRTOWCS.
34013         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34014         HAVE_MBSRTOWCS.
34015         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34016
34017 2008-12-19  Bruno Haible  <bruno@clisp.org>
34018
34019         New module 'mbrlen'.
34020         * lib/wchar.in.h (mbrlen): New declaration.
34021         * lib/mbrlen.c: New file.
34022         * m4/mbrlen.m4: New file.
34023         * modules/mbrlen: New file.
34024         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34025         HAVE_MBRLEN.
34026         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34027         HAVE_MBRLEN.
34028         * doc/posix-functions/mbrlen.texi: Document the new module.
34029
34030 2008-12-19  Bruno Haible  <bruno@clisp.org>
34031
34032         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34033         * modules/mbrtowc (Depends-on): Add verify.
34034         Suggested by Paul Eggert.
34035
34036 2008-12-18  Bruno Haible  <bruno@clisp.org>
34037
34038         * modules/mbsinit-tests: New file.
34039         * tests/test-mbsinit.sh: New file.
34040         * tests/test-mbsinit.c: New file.
34041
34042 2008-12-18  Bruno Haible  <bruno@clisp.org>
34043
34044         * modules/mbrtowc-tests: New file.
34045         * tests/test-mbrtowc1.sh: New file.
34046         * tests/test-mbrtowc2.sh: New file.
34047         * tests/test-mbrtowc3.sh: New file.
34048         * tests/test-mbrtowc4.sh: New file.
34049         * tests/test-mbrtowc.c: New file.
34050
34051         New module 'mbrtowc'.
34052         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34053         mbsinit and mbrtowc.
34054         (mbrtowc): New declaration.
34055         * lib/mbrtowc.c: New file.
34056         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34057         * modules/mbrtowc: New file.
34058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34059         HAVE_MBRTOWC.
34060         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34061         HAVE_MBRTOWC.
34062         * doc/posix-functions/mbrtowc.texi: Document the new module.
34063
34064 2008-12-18  Bruno Haible  <bruno@clisp.org>
34065
34066         New module 'wctob'.
34067         * lib/wchar.in.h (wctob): New declaration.
34068         * lib/wctob.c: New file.
34069         * m4/wctob.m4: New file.
34070         * modules/wctob: New file.
34071         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34072         HAVE_WCTOB.
34073         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34074         * doc/posix-functions/wctob.texi: Document the new module.
34075
34076 2008-12-18  Bruno Haible  <bruno@clisp.org>
34077
34078         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34079         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34080
34081 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34082
34083         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34084         G. Christensen" <tgc@jupiterrise.com>.
34085
34086         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34087         G. Christensen" <tgc@jupiterrise.com>.
34088
34089         * lib/flock.c: Need to include string.h.  Reported by "Tom
34090         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34091         <ebb9@byu.net>.
34092
34093 2008-12-18  Bruno Haible  <bruno@clisp.org>
34094
34095         * m4/locale-ja.m4: New file, from GNU gettext.
34096
34097 2008-12-17  Bruno Haible  <bruno@clisp.org>
34098
34099         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34100         Suggested by Eric Blake.
34101
34102 2008-12-17  Bruno Haible  <bruno@clisp.org>
34103
34104         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34105
34106 2008-12-17  Bruno Haible  <bruno@clisp.org>
34107
34108         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34109         * modules/mbsinit (Depends-on): Add verify.
34110         Suggested by Paul Eggert.
34111
34112 2008-12-17  Bruno Haible  <bruno@clisp.org>
34113
34114         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34115         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34116         gl_FUNC_MBRTOWC.
34117         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34118         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34119         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34120         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34121         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34122         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34123         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34124         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34125         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34126         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34127         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34128         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34129         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34130         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34131         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34132         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34133         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34134         * modules/trim (configure.ac): Likewise.
34135
34136 2008-12-17  Bruno Haible  <bruno@clisp.org>
34137
34138         * modules/btowc-tests: New file.
34139         * tests/test-btowc1.sh: New file.
34140         * tests/test-btowc2.sh: New file.
34141         * tests/test-btowc.c: New file.
34142
34143         New module 'btowc'.
34144         * lib/wchar.in.h (btowc): New declaration.
34145         * lib/btowc.c: New file.
34146         * m4/btowc.m4: New file.
34147         * modules/btowc: New file.
34148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34149         HAVE_BTOWC.
34150         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34151         * doc/posix-functions/btowc.texi: Document the new module.
34152
34153 2008-12-17  Bruno Haible  <bruno@clisp.org>
34154
34155         New module 'mbsinit'.
34156         * lib/wchar.in.h (mbsinit): New declaration.
34157         * lib/mbsinit.c: New file.
34158         * m4/mbsinit.m4: New file.
34159         * modules/mbsinit: New file.
34160         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34161         HAVE_MBSINIT.
34162         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34163         HAVE_MBSINIT.
34164         * doc/posix-functions/mbsinit.texi: Document the new module.
34165
34166 2008-12-16  Bruno Haible  <bruno@clisp.org>
34167
34168         * lib/unistd.in.h: Add comment.
34169         * tests/test-environ.c: Don't include <stdlib.h>.
34170
34171 2008-12-16  Bruno Haible  <bruno@clisp.org>
34172
34173         * lib/parse-duration.h (parse_duration): Document return value
34174         convention.
34175         * lib/parse-duration.c: Include specification header first. Add
34176         comments.
34177         (_): Remove macro.
34178         (parse_year_month_day, parse_hour_minute_second): Move side effects
34179         outside of strchr call.
34180         (parse_non_iso8601): Move side effects outside of isspace call.
34181         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34182         call.
34183
34184 2008-12-16  Bruno Haible  <bruno@clisp.org>
34185
34186         * tests/test-parse-duration.sh: Produce no output when the test
34187         succeeds.
34188
34189 2008-12-16  Bruno Haible  <bruno@clisp.org>
34190
34191         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34192         expressions.
34193
34194 2008-12-15  Bruno Haible  <bruno@clisp.org>
34195
34196         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34197         * doc/glibc-functions/flistxattr.texi: Likewise.
34198         * doc/glibc-functions/fopencookie.texi: Likewise.
34199         * doc/glibc-functions/fremovexattr.texi: Likewise.
34200         * doc/glibc-functions/fsetxattr.texi: Likewise.
34201         * doc/glibc-functions/getxattr.texi: Likewise.
34202         * doc/glibc-functions/lgetxattr.texi: Likewise.
34203         * doc/glibc-functions/listxattr.texi: Likewise.
34204         * doc/glibc-functions/llistxattr.texi: Likewise.
34205         * doc/glibc-functions/lremovexattr.texi: Likewise.
34206         * doc/glibc-functions/lsetxattr.texi: Likewise.
34207         * doc/glibc-functions/removexattr.texi: Likewise.
34208         * doc/glibc-functions/setxattr.texi: Likewise.
34209         * doc/posix-functions/open_memstream.texi: Likewise.
34210
34211 2008-12-15  Eric Blake  <ebb9@byu.net>
34212
34213         Update doc for cygwin 1.7.
34214         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34215         functions.
34216         * doc/posix-functions/fchmodat.texi: Likewise.
34217         * doc/posix-functions/fchownat.texi: Likewise.
34218         * doc/posix-functions/fdopendir.texi: Likewise.
34219         * doc/posix-functions/fmemopen.texi: Likewise.
34220         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34221         * doc/posix-functions/fstatat.texi: Likewise.
34222         * doc/posix-functions/futimens.texi: Likewise.
34223         * doc/posix-functions/gai_strerror.texi: Likewise.
34224         * doc/posix-functions/getaddrinfo.texi: Likewise.
34225         * doc/posix-functions/getnameinfo.texi: Likewise.
34226         * doc/posix-functions/if_freenameindex.texi: Likewise.
34227         * doc/posix-functions/if_indextoname.texi: Likewise.
34228         * doc/posix-functions/if_nameindex.texi: Likewise.
34229         * doc/posix-functions/if_nametoindex.texi: Likewise.
34230         * doc/posix-functions/insque.texi: Likewise.
34231         * doc/posix-functions/linkat.texi: Likewise.
34232         * doc/posix-functions/llrint.texi: Likewise.
34233         * doc/posix-functions/llrintf.texi: Likewise.
34234         * doc/posix-functions/llrintl.texi: Likewise.
34235         * doc/posix-functions/lockf.texi: Likewise.
34236         * doc/posix-functions/lrintl.texi: Likewise.
34237         * doc/posix-functions/mkdirat.texi: Likewise.
34238         * doc/posix-functions/mkfifoat.texi: Likewise.
34239         * doc/posix-functions/mknodat.texi: Likewise.
34240         * doc/posix-functions/mq_close.texi: Likewise.
34241         * doc/posix-functions/mq_getattr.texi: Likewise.
34242         * doc/posix-functions/mq_notify.texi: Likewise.
34243         * doc/posix-functions/mq_open.texi: Likewise.
34244         * doc/posix-functions/mq_receive.texi: Likewise.
34245         * doc/posix-functions/mq_send.texi: Likewise.
34246         * doc/posix-functions/mq_setattr.texi: Likewise.
34247         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34248         * doc/posix-functions/mq_timedsend.texi: Likewise.
34249         * doc/posix-functions/mq_unlink.texi: Likewise.
34250         * doc/posix-functions/open_memstream.texi: Likewise.
34251         * doc/posix-functions/openat.texi: Likewise.
34252         * doc/posix-functions/posix_fadvise.texi: Likewise.
34253         * doc/posix-functions/posix_fallocate.texi: Likewise.
34254         * doc/posix-functions/posix_madvise.texi: Likewise.
34255         * doc/posix-functions/posix_memalign.texi: Likewise.
34256         * doc/posix-functions/posix_openpt.texi: Likewise.
34257         * doc/posix-functions/readlinkat.texi: Likewise.
34258         * doc/posix-functions/remque.texi: Likewise.
34259         * doc/posix-functions/renameat.texi: Likewise.
34260         * doc/posix-functions/rintl.texi: Likewise.
34261         * doc/posix-functions/sem_unlink.texi: Likewise.
34262         * doc/posix-functions/shm_open.texi: Likewise.
34263         * doc/posix-functions/shm_unlink.texi: Likewise.
34264         * doc/posix-functions/signgam.texi: Likewise.
34265         * doc/posix-functions/sigset.texi: Likewise.
34266         * doc/posix-functions/stpcpy.texi: Likewise.
34267         * doc/posix-functions/stpncpy.texi: Likewise.
34268         * doc/posix-functions/strerror.texi: Likewise.
34269         * doc/posix-functions/strtod.texi: Likewise.
34270         * doc/posix-functions/symlinkat.texi: Likewise.
34271         * doc/posix-functions/unlinkat.texi: Likewise.
34272         * doc/posix-functions/utimensat.texi: Likewise.
34273         * doc/glibc-functions/bindresvport.texi: Likewise.
34274         * doc/glibc-functions/dn_expand.texi: Likewise.
34275         * doc/glibc-functions/exp10.texi: Likewise.
34276         * doc/glibc-functions/exp10f.texi: Likewise.
34277         * doc/glibc-functions/fgetxattr.texi: Likewise.
34278         * doc/glibc-functions/flistxattr.texi: Likewise.
34279         * doc/glibc-functions/fopencookie.texi: Likewise.
34280         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34281         * doc/glibc-functions/fremovexattr.texi: Likewise.
34282         * doc/glibc-functions/fsetxattr.texi: Likewise.
34283         * doc/glibc-functions/getifaddrs.texi: Likewise.
34284         * doc/glibc-functions/getxattr.texi: Likewise.
34285         * doc/glibc-functions/lgetxattr.texi: Likewise.
34286         * doc/glibc-functions/listxattr.texi: Likewise.
34287         * doc/glibc-functions/llistxattr.texi: Likewise.
34288         * doc/glibc-functions/lremovexattr.texi: Likewise.
34289         * doc/glibc-functions/lsetxattr.texi: Likewise.
34290         * doc/glibc-functions/pow10.texi: Likewise.
34291         * doc/glibc-functions/pow10f.texi: Likewise.
34292         * doc/glibc-functions/rcmd_af.texi: Likewise.
34293         * doc/glibc-functions/removexattr.texi: Likewise.
34294         * doc/glibc-functions/res_init.texi: Likewise.
34295         * doc/glibc-functions/res_mkquery.texi: Likewise.
34296         * doc/glibc-functions/res_query.texi: Likewise.
34297         * doc/glibc-functions/res_querydomain.texi: Likewise.
34298         * doc/glibc-functions/res_send.texi: Likewise.
34299         * doc/glibc-functions/rresvport_af.texi: Likewise.
34300         * doc/glibc-functions/setxattr.texi: Likewise.
34301         * doc/glibc-functions/strcasestr.texi: Likewise.
34302
34303 2008-12-15  Bruno Haible  <bruno@clisp.org>
34304
34305         Fix compilation error on OSF/1 4.0.
34306         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34307         <sys/time.h>, simply delegate to the system header.
34308         Reported by Daniel Richard G. <oss@teragram.com>.
34309
34310 2008-12-15  Bruno Haible  <bruno@clisp.org>
34311
34312         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34313         * doc/posix-functions/fchmodat.texi: Likewise.
34314         * doc/posix-functions/fchownat.texi: Likewise.
34315         * doc/posix-functions/fdopendir.texi: Likewise.
34316         * doc/posix-functions/fstatat.texi: Likewise.
34317         * doc/posix-functions/mkdirat.texi: Likewise.
34318         * doc/posix-functions/unlinkat.texi: Likewise.
34319
34320 2008-12-14  Bruno Haible  <bruno@clisp.org>
34321
34322         Update doc for POSIX:2008.
34323         * doc/posix-functions/faccessat.texi: New file.
34324         * doc/posix-functions/fchmodat.texi: New file.
34325         * doc/posix-functions/fchownat.texi: New file.
34326         * doc/posix-functions/fdopendir.texi: New file.
34327         * doc/posix-functions/fstatat.texi: New file.
34328         * doc/posix-functions/futimens.texi: New file.
34329         * doc/posix-functions/linkat.texi: New file.
34330         * doc/posix-functions/mkdirat.texi: New file.
34331         * doc/posix-functions/mkfifoat.texi: New file.
34332         * doc/posix-functions/mknodat.texi: New file.
34333         * doc/posix-functions/open_wmemstream.texi: New file.
34334         * doc/posix-functions/openat.texi: New file.
34335         * doc/posix-functions/psiginfo.texi: New file.
34336         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34337         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34338         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34339         * doc/posix-functions/readlinkat.texi: New file.
34340         * doc/posix-functions/renameat.texi: New file.
34341         * doc/posix-functions/strerror_l.texi: New file.
34342         * doc/posix-functions/symlinkat.texi: New file.
34343         * doc/posix-functions/unlinkat.texi: New file.
34344         * doc/posix-functions/utimensat.texi: New file.
34345         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34346
34347 2008-12-14  Bruno Haible  <bruno@clisp.org>
34348
34349         Update doc for POSIX:2008.
34350         * doc/posix-functions/alphasort.texi: Renamed from
34351         doc/glibc-functions/alphasort.texi.
34352         * doc/posix-functions/dirfd.texi: Renamed from
34353         doc/glibc-functions/dirfd.texi.
34354         * doc/posix-functions/dprintf.texi: Renamed from
34355         doc/glibc-functions/dprintf.texi.
34356         * doc/posix-functions/duplocale.texi: Renamed from
34357         doc/glibc-functions/duplocale.texi.
34358         * doc/posix-functions/fexecve.texi: Renamed from
34359         doc/glibc-functions/fexecve.texi.
34360         * doc/posix-functions/fmemopen.texi: Renamed from
34361         doc/glibc-functions/fmemopen.texi.
34362         * doc/posix-functions/freelocale.texi: Renamed from
34363         doc/glibc-functions/freelocale.texi.
34364         * doc/posix-functions/getdate_err.texi: Renamed from
34365         doc/glibc-functions/getdate_err.texi.
34366         * doc/posix-functions/isalnum_l.texi: Renamed from
34367         doc/glibc-functions/isalnum_l.texi.
34368         * doc/posix-functions/isalpha_l.texi: Renamed from
34369         doc/glibc-functions/isalpha_l.texi.
34370         * doc/posix-functions/isblank_l.texi: Renamed from
34371         doc/glibc-functions/isblank_l.texi.
34372         * doc/posix-functions/iscntrl_l.texi: Renamed from
34373         doc/glibc-functions/iscntrl_l.texi.
34374         * doc/posix-functions/isdigit_l.texi: Renamed from
34375         doc/glibc-functions/isdigit_l.texi.
34376         * doc/posix-functions/isgraph_l.texi: Renamed from
34377         doc/glibc-functions/isgraph_l.texi.
34378         * doc/posix-functions/islower_l.texi: Renamed from
34379         doc/glibc-functions/islower_l.texi.
34380         * doc/posix-functions/isprint_l.texi: Renamed from
34381         doc/glibc-functions/isprint_l.texi.
34382         * doc/posix-functions/ispunct_l.texi: Renamed from
34383         doc/glibc-functions/ispunct_l.texi.
34384         * doc/posix-functions/isspace_l.texi: Renamed from
34385         doc/glibc-functions/isspace_l.texi.
34386         * doc/posix-functions/isupper_l.texi: Renamed from
34387         doc/glibc-functions/isupper_l.texi.
34388         * doc/posix-functions/iswalnum_l.texi: Renamed from
34389         doc/glibc-functions/iswalnum_l.texi.
34390         * doc/posix-functions/iswalpha_l.texi: Renamed from
34391         doc/glibc-functions/iswalpha_l.texi.
34392         * doc/posix-functions/iswblank_l.texi: Renamed from
34393         doc/glibc-functions/iswblank_l.texi.
34394         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34395         doc/glibc-functions/iswcntrl_l.texi.
34396         * doc/posix-functions/iswctype_l.texi: Renamed from
34397         doc/glibc-functions/iswctype_l.texi.
34398         * doc/posix-functions/iswdigit_l.texi: Renamed from
34399         doc/glibc-functions/iswdigit_l.texi.
34400         * doc/posix-functions/iswgraph_l.texi: Renamed from
34401         doc/glibc-functions/iswgraph_l.texi.
34402         * doc/posix-functions/iswlower_l.texi: Renamed from
34403         doc/glibc-functions/iswlower_l.texi.
34404         * doc/posix-functions/iswprint_l.texi: Renamed from
34405         doc/glibc-functions/iswprint_l.texi.
34406         * doc/posix-functions/iswpunct_l.texi: Renamed from
34407         doc/glibc-functions/iswpunct_l.texi.
34408         * doc/posix-functions/iswspace_l.texi: Renamed from
34409         doc/glibc-functions/iswspace_l.texi.
34410         * doc/posix-functions/iswupper_l.texi: Renamed from
34411         doc/glibc-functions/iswupper_l.texi.
34412         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34413         doc/glibc-functions/iswxdigit_l.texi.
34414         * doc/posix-functions/isxdigit_l.texi: Renamed from
34415         doc/glibc-functions/isxdigit_l.texi.
34416         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34417         doc/glibc-functions/mbsnrtowcs.texi.
34418         * doc/posix-functions/mkdtemp.texi: Renamed from
34419         doc/glibc-functions/mkdtemp.texi.
34420         * doc/posix-functions/newlocale.texi: Renamed from
34421         doc/glibc-functions/newlocale.texi.
34422         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34423         doc/glibc-functions/nl_langinfo_l.texi.
34424         * doc/posix-functions/open_memstream.texi: Renamed from
34425         doc/glibc-functions/open_memstream.texi.
34426         * doc/posix-functions/opterr.texi: Renamed from
34427         doc/glibc-functions/opterr.texi.
34428         * doc/posix-functions/optind.texi: Renamed from
34429         doc/glibc-functions/optind.texi.
34430         * doc/posix-functions/optopt.texi: Renamed from
34431         doc/glibc-functions/optopt.texi.
34432         * doc/posix-functions/psignal.texi: Renamed from
34433         doc/glibc-functions/psignal.texi.
34434         * doc/posix-functions/scandir.texi: Renamed from
34435         doc/glibc-functions/scandir.texi.
34436         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34437         doc/glibc-functions/sched_get_priority_min.texi.
34438         * doc/posix-functions/signgam.texi: Renamed from
34439         doc/glibc-functions/signgam.texi.
34440         * doc/posix-functions/stpcpy.texi: Renamed from
34441         doc/glibc-functions/stpcpy.texi.
34442         * doc/posix-functions/stpncpy.texi: Renamed from
34443         doc/glibc-functions/stpncpy.texi.
34444         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34445         doc/glibc-functions/strcasecmp_l.texi.
34446         * doc/posix-functions/strcoll_l.texi: Renamed from
34447         doc/glibc-functions/strcoll_l.texi.
34448         * doc/posix-functions/strfmon_l.texi: Renamed from
34449         doc/glibc-functions/strfmon_l.texi.
34450         * doc/posix-functions/strftime_l.texi: Renamed from
34451         doc/glibc-functions/strftime_l.texi.
34452         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34453         doc/glibc-functions/strncasecmp_l.texi.
34454         * doc/posix-functions/strndup.texi: Renamed from
34455         doc/glibc-functions/strndup.texi.
34456         * doc/posix-functions/strnlen.texi: Renamed from
34457         doc/glibc-functions/strnlen.texi.
34458         * doc/posix-functions/strsignal.texi: Renamed from
34459         doc/glibc-functions/strsignal.texi.
34460         * doc/posix-functions/strxfrm_l.texi: Renamed from
34461         doc/glibc-functions/strxfrm_l.texi.
34462         * doc/posix-functions/timer_gettime.texi: Renamed from
34463         doc/glibc-functions/timer_gettime.texi.
34464         * doc/posix-functions/tolower_l.texi: Renamed from
34465         doc/glibc-functions/tolower_l.texi.
34466         * doc/posix-functions/toupper_l.texi: Renamed from
34467         doc/glibc-functions/toupper_l.texi.
34468         * doc/posix-functions/towctrans_l.texi: Renamed from
34469         doc/glibc-functions/towctrans_l.texi.
34470         * doc/posix-functions/towlower_l.texi: Renamed from
34471         doc/glibc-functions/towlower_l.texi.
34472         * doc/posix-functions/towupper_l.texi: Renamed from
34473         doc/glibc-functions/towupper_l.texi.
34474         * doc/posix-functions/uselocale.texi: Renamed from
34475         doc/glibc-functions/uselocale.texi.
34476         * doc/posix-functions/vdprintf.texi: Renamed from
34477         doc/glibc-functions/vdprintf.texi.
34478         * doc/posix-functions/wcpcpy.texi:
34479         Renamed from doc/glibc-functions/wcpcpy.texi.
34480         * doc/posix-functions/wcpncpy.texi: Renamed from
34481         doc/glibc-functions/wcpncpy.texi.
34482         * doc/posix-functions/wcscasecmp.texi: Renamed from
34483         doc/glibc-functions/wcscasecmp.texi.
34484         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34485         doc/glibc-functions/wcscasecmp_l.texi.
34486         * doc/posix-functions/wcscoll_l.texi: Renamed from
34487         doc/glibc-functions/wcscoll_l.texi.
34488         * doc/posix-functions/wcsdup.texi: Renamed from
34489         doc/glibc-functions/wcsdup.texi.
34490         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34491         doc/glibc-functions/wcsncasecmp.texi.
34492         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34493         doc/glibc-functions/wcsncasecmp_l.texi.
34494         * doc/posix-functions/wcsnlen.texi: Renamed from
34495         doc/glibc-functions/wcsnlen.texi.
34496         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34497         doc/glibc-functions/wcsnrtombs.texi.
34498         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34499         doc/glibc-functions/wcsxfrm_l.texi.
34500         * doc/posix-functions/wctrans_l.texi: Renamed from
34501         doc/glibc-functions/wctrans_l.texi.
34502         * doc/posix-functions/wctype_l.texi: Renamed from
34503         doc/glibc-functions/wctype_l.texi.
34504         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34505         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34506         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34507         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34508         these subsections.
34509         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34510         Remove sections.
34511
34512 2008-12-14  Bruno Haible  <bruno@clisp.org>
34513
34514         Update doc for POSIX:2008.
34515         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34516
34517 2008-12-14  Bruno Haible  <bruno@clisp.org>
34518
34519         Update doc for POSIX:2008.
34520         * doc/pastposix-functions/bcmp.texi: Renamed from
34521         doc/posix-functions/bcmp.texi.
34522         * doc/pastposix-functions/bcopy.texi: Renamed from
34523         doc/posix-functions/bcopy.texi.
34524         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34525         doc/posix-functions/bsd_signal.texi.
34526         * doc/pastposix-functions/bzero.texi: Renamed from
34527         doc/posix-functions/bzero.texi.
34528         * doc/pastposix-functions/ecvt.texi: Renamed from
34529         doc/posix-functions/ecvt.texi.
34530         * doc/pastposix-functions/fcvt.texi: Renamed from
34531         doc/posix-functions/fcvt.texi.
34532         * doc/pastposix-functions/ftime.texi: Renamed from
34533         doc/posix-functions/ftime.texi.
34534         * doc/pastposix-functions/gcvt.texi: Renamed from
34535         doc/posix-functions/gcvt.texi.
34536         * doc/pastposix-functions/getcontext.texi: Renamed from
34537         doc/posix-functions/getcontext.texi.
34538         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34539         doc/posix-functions/gethostbyaddr.texi.
34540         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34541         doc/posix-functions/gethostbyname.texi.
34542         * doc/pastposix-functions/getwd.texi: Renamed from
34543         doc/posix-functions/getwd.texi.
34544         * doc/pastposix-functions/h_errno.texi: Renamed from
34545         doc/posix-functions/h_errno.texi.
34546         * doc/pastposix-functions/index.texi: Renamed from
34547         doc/posix-functions/index.texi.
34548         * doc/pastposix-functions/makecontext.texi: Renamed from
34549         doc/posix-functions/makecontext.texi.
34550         * doc/pastposix-functions/mktemp.texi: Renamed from
34551         doc/posix-functions/mktemp.texi.
34552         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
34553         doc/posix-functions/pthread_attr_getstackaddr.texi.
34554         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
34555         doc/posix-functions/pthread_attr_setstackaddr.texi.
34556         * doc/pastposix-functions/rindex.texi: Renamed from
34557         doc/posix-functions/rindex.texi.
34558         * doc/pastposix-functions/scalb.texi: Renamed from
34559         doc/posix-functions/scalb.texi.
34560         * doc/pastposix-functions/setcontext.texi: Renamed from
34561         doc/posix-functions/setcontext.texi.
34562         * doc/pastposix-functions/swapcontext.texi: Renamed from
34563         doc/posix-functions/swapcontext.texi.
34564         * doc/pastposix-functions/ualarm.texi: Renamed from
34565         doc/posix-functions/ualarm.texi.
34566         * doc/pastposix-functions/usleep.texi: Renamed from
34567         doc/posix-functions/usleep.texi.
34568         * doc/pastposix-functions/vfork.texi: Renamed from
34569         doc/posix-functions/vfork.texi.
34570         * doc/pastposix-functions/wcswcs.texi: Renamed from
34571         doc/posix-functions/wcswcs.texi.
34572         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
34573         (Function Substitutes): Update.
34574
34575 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34576
34577         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
34578         m4/strerror.m4.
34579
34580 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34581             Bruno Haible  <bruno@clisp.org>
34582
34583         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
34584
34585 2008-12-13  Bruno Haible  <bruno@clisp.org>
34586
34587         * modules/strtoull (Depends-on): Remove unistd.
34588
34589 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34590
34591         * modules/strtoull (Depends-on): Add stdlib.
34592
34593 2008-12-11  Simon Josefsson  <simon@josefsson.org>
34594
34595         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
34596
34597 2008-12-10  Jim Meyering  <meyering@redhat.com>
34598
34599         gl_ASSERT: don't say assertions are disabled when they're not
34600         * m4/assert.m4 (gl_ASSERT): Do not make configure report
34601         "checking whether to enable assertions... no", when they are in
34602         fact enabled.  This is solely a bug in the output of configure.
34603         In spite of saying "no", NDEBUG was not defined in that case.
34604         Also, as noted by Eric Blake, leave assertions enabled upon
34605         --enable-assert=INVALID.
34606
34607 2008-12-10  Bruno Haible  <bruno@clisp.org>
34608
34609         Change MODULES.html to refer to POSIX:2008 where possible.
34610         * MODULES.html.sh (POSIX2008_URL): New variable.
34611         (posix_headers): Remove sys/timeb, ucontext.
34612         (posix2001_headers): New variable.
34613         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
34614         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
34615         index, makecontext, mktemp, pthread_attr_getstackaddr,
34616         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
34617         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
34618         (posix2001_functions): New variable.
34619         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
34620         otherwise.
34621
34622 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34623
34624         add missing include to parse-duration.c
34625         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
34626         * modules/parse-duration (Depends-on): Add xalloc.
34627
34628         fix sed script reading maint.mk
34629         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
34630         (syntax-check-rules): Use it.
34631
34632 2008-12-09  Bruno Haible  <bruno@clisp.org>
34633
34634         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
34635         MacOS X 10.4/PowerPC.
34636         Reported by Simon Josefsson.
34637
34638 2008-12-08  Jim Meyering  <meyering@redhat.com>
34639
34640         work around mingw's lack of some S_IF definitions
34641         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
34642         Reported by Simon Josefsson.
34643
34644 2008-12-08  Bruno Haible  <bruno@clisp.org>
34645
34646         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
34647         applied to variables. Needed on MacOS X 10.4/PowerPC.
34648         Reported by Simon Josefsson.
34649
34650 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
34651         and Eric Blake  <ebb9@byu.net>
34652
34653         assert: honor --enable-assert
34654         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
34655         order to honor --enable-assert, rather than treating it as a
34656         synonym for --disable-assert.
34657
34658 2008-12-08  Jim Meyering  <meyering@redhat.com>
34659
34660         * lib/posixtm.c: Remove now-useless declaration of mktime.
34661
34662         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
34663
34664 2008-12-07  Bruno Haible  <bruno@clisp.org>
34665
34666         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
34667         test_once): Mark functions as static.
34668         * tests/test-tls.c (test_tls): Likewise.
34669
34670 2008-12-07  Bruno Haible  <bruno@clisp.org>
34671
34672         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
34673         iconv_register_autodetect.
34674
34675 2008-12-07  Jim Meyering  <meyering@redhat.com>
34676
34677         posixtm.c: avoid a warning
34678         * lib/posixtm.c (posixtime): Don't initialize tm0.
34679         It's no longer needed to placate gcc4's -Wuninitialized,
34680         and the attempt to placate would elicit a new warning.
34681
34682         unicodeio.c: mark unused parameters
34683         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34684         (fallback_failure_callback): Likewise.
34685
34686 2008-12-07  Bruno Haible  <bruno@clisp.org>
34687
34688         * gnulib-tool (func_create_testdir): When building the tests
34689         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
34690         Reported by Simon Josefsson.
34691
34692 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34693
34694         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
34695
34696 2008-12-06  Bruno Haible  <bruno@clisp.org>
34697
34698         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
34699         Suggested by Eric Blake.
34700
34701 2008-12-06  Bruno Haible  <bruno@clisp.org>
34702
34703         Fix a c-stack test failure on MacOS X.
34704         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
34705         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
34706         handler for SIGBUS as well.
34707         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
34708         install a signal handler for SIGBUS as well.
34709         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
34710
34711 2008-12-06  Bruno Haible  <bruno@clisp.org>
34712
34713         Advocacy documentation.
34714         * doc/gnulib-intro.texi (Benefits): New section.
34715         * doc/gnulib.texi: Update.
34716
34717 2008-12-06  Bruno Haible  <bruno@clisp.org>
34718
34719         Document the 'manywarnings' module.
34720         * doc/manywarnings.texi: New file.
34721         * doc/gnulib.texi: Include it.
34722
34723 2008-12-05  Eric Blake  <ebb9@byu.net>
34724
34725         tests: silence some gcc warnings
34726         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
34727         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
34728         type mismatches.
34729
34730 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34731             Bruno Haible  <bruno@clisp.org>
34732
34733         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34734
34735 2008-11-29  Jim Meyering  <meyering@redhat.com>
34736
34737         unicodeio.c: mark unused parameters
34738         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
34739         (fallback_failure_callback): Likewise.
34740
34741         fts: fix a thinko
34742         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
34743         (set_stat_type): Return S_IF*-valued "type" directly.
34744         Prompted by James Youngman's spotting a related bug.
34745         Confirmed by further testing through find.
34746
34747         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
34748         * lib/fts.c (D_TYPE): Define.
34749         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
34750         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
34751         (s_ifmt_shift_bits): New function.
34752         (set_stat_type): New function.
34753         (fts_build): When not calling fts_stat, call set_stat_type
34754         to propagate dirent.d_type info to fts_read caller.
34755         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
34756         fts_statp->st_mode type information may be valid.
34757
34758 2008-11-28  Simon Josefsson  <simon@josefsson.org>
34759
34760         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
34761         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
34762         <sds@gnu.org>.
34763
34764 2008-11-20  Bruno Haible  <bruno@clisp.org>
34765
34766         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
34767         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
34768         INCLUDE_NEXT.
34769         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
34770         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
34771         * modules/math (Makefile.am): Substitute
34772         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
34773         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
34774
34775 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34776             Bruno Haible  <bruno@clisp.org>
34777
34778         * lib/stdint.in.h: Define all type macros so that their expansion is
34779         a single typedef'ed token. Fixes a compilation failure in Boost which
34780         does "using ::int8_t;".
34781
34782 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34783
34784         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
34785         gl_MANYWARN_ALL_GCC.
34786         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
34787         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
34788         * modules/manywarnings: New file.
34789         * MODULES.html.sh: Mention manywarnings module.
34790
34791 2008-11-18  Bruno Haible  <bruno@clisp.org>
34792
34793         * doc/gnulib-tool.texi (Unit tests): New section.
34794
34795 2008-11-18  Simon Josefsson  <simon@josefsson.org>
34796
34797         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
34798         paths like 'lib/po/foo.po'.
34799
34800 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34801
34802         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
34803         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
34804
34805 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34806
34807         * m4/warnings.m4: Use CPPFLAGS to really check whether the
34808         parameter works.
34809
34810 2008-11-17  Simon Josefsson  <simon@josefsson.org>
34811
34812         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34813
34814 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34815
34816         * modules/parse-duration-tests: New file.
34817         * tests/test-parse-duration.sh: New file.
34818         * tests/test-parse-duration.c: New file.
34819
34820         New module 'parse-duration'.
34821         * lib/parse-duration.h: New file.
34822         * lib/parse-duration.c: New file.
34823         * modules/parse-duration: New file.
34824
34825 2008-11-17  Bruno Haible  <bruno@clisp.org>
34826
34827         * tests/test-select-out.sh: Comment out the first pipe test.
34828         Reported by Simon Josefsson.
34829
34830 2008-11-17  Bruno Haible  <bruno@clisp.org>
34831
34832         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34833         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34834         gl_HOSTENT.
34835
34836 2008-11-17  Bruno Haible  <bruno@clisp.org>
34837
34838         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34839         -lnetwork and -lnet. Needed for Haiku and BeOS.
34840
34841 2008-11-16  Bruno Haible  <bruno@clisp.org>
34842
34843         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34844
34845 2008-11-16  Bruno Haible  <bruno@clisp.org>
34846
34847         Avoid test failure on Haiku.
34848         * tests/test-fsync.c: Include <errno.h>.
34849         (main): Don't require that fsync (0) fails.
34850
34851 2008-11-15  Bruno Haible  <bruno@clisp.org>
34852
34853         New module 'hostent'.
34854         * modules/hostent: New file.
34855         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34856
34857 2008-11-15  Bruno Haible  <bruno@clisp.org>
34858
34859         New module 'servent'.
34860         * modules/servent: New file.
34861         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34862
34863 2008-11-15  Bruno Haible  <bruno@clisp.org>
34864
34865         Avoid generating same test program with two different rules.
34866         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34867         test-frexp to test-frexp-nolibm.
34868         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34869         test-frexpl to test-frexpl-nolibm.
34870
34871 2008-11-15  Bruno Haible  <bruno@clisp.org>
34872
34873         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34874         $(FREXPL_LIBM).
34875
34876 2008-11-15  Bruno Haible  <bruno@clisp.org>
34877
34878         * lib/netdb.in.h: Activate the definitions also when the system's
34879         <netdb.h> has 'struct addrinfo'.
34880         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34881         EAI_OVERFLOW or AI_NUMERICSERV.
34882         * doc/posix-headers/netdb.texi: Document the problem.
34883
34884 2008-11-15  Bruno Haible  <bruno@clisp.org>
34885
34886         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34887
34888         Make the 'sched' module work on platforms where <sched.h> exists but
34889         is incomplete (such as Haiku).
34890         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34891         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34892         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34893         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34894         HAVE_STRUCT_SCHED_PARAM.
34895         * modules/sched (Depends-on): Add include_next.
34896         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34897         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34898         * doc/posix-headers/sched.texi: Document the issue.
34899
34900 2008-11-13  Jim Meyering  <meyering@redhat.com>
34901
34902         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34903         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34904         test would fail due to the difference in the Report bugs to ...
34905         line.  The expected address is empty, "<>", while the actual
34906         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34907
34908 2008-11-12  Bruno Haible  <bruno@clisp.org>
34909
34910         lstat: don't compile lstat.c on systems lacking lstat
34911         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34912         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34913         Reported by Daniel P. Berrange via Jim Meyering.
34914
34915 2008-11-12  Jim Meyering  <meyering@redhat.com>
34916
34917         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34918
34919 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34920
34921         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34922         instead.
34923
34924 2008-11-12  Bruno Haible  <bruno@clisp.org>
34925
34926         * lib/unicodeio.c: Include unistr.h.
34927         (utf8_wctomb): Remove function.
34928         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34929
34930 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34931
34932         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34933         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34934         <bruno@clisp.org>.
34935         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34936
34937 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34938
34939         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34940         * doc/gnulib.texi: Add section for warnings.
34941
34942 2008-11-11  Bruno Haible  <bruno@clisp.org>
34943
34944         * lib/sockets.h: Add a comment.
34945
34946 2008-11-11  Karl Berry  <karl@gnu.org>
34947
34948         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34949
34950 2008-11-11  Eric Blake  <ebb9@byu.net>
34951
34952         fdl.texi: avoid git symlinks
34953         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34954
34955 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34956
34957         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34958
34959 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34960
34961         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34962         (gl_WARN_ADD): Substitute $2 if literal.
34963
34964 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34965
34966         * m4/warning.m4: Remove.
34967
34968 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34969
34970         * m4/warnings.m4: Almost complete rewrite. :-)
34971
34972 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34973
34974         * modules/warnings: New module.
34975         * m4/warnings.m4: New file.
34976         * MODULES.html.sh: Mention warnings module.
34977         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34978         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34979
34980 2008-11-10  Eric Blake  <ebb9@byu.net>
34981
34982         fdl.texi: make a symlink to the latest version
34983         * doc/standards.texi: Revert today's earlier change.
34984         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34985         * doc/fdl.texi: ...and replace this with a symlink to the newer
34986         fdl-1.3.texi.
34987
34988 2008-11-10  Bruno Haible  <bruno@clisp.org>
34989
34990         * tests/test-select-fd.c (main): Accept the result file name as fourth
34991         argument.
34992         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34993         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34994
34995 2008-11-10  Bruno Haible  <bruno@clisp.org>
34996
34997         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34998         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34999         as autoconf-substituted macros.
35000         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35001         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35002         gl_NETDB_H_DEFAULTS. Set these variables.
35003         * modules/netdb (Makefile.am): Substitute these variables.
35004
35005 2008-11-10  Eric Blake  <ebb9@byu.net>
35006
35007         standards.texi: include correct file for FDL 1.3
35008         * doc/standards.texi (GNU Free Documentation License): Change
35009         include file to pull in FDL 1.3, not 1.2.
35010
35011         fdl.texi: revert accidental change to license
35012         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35013
35014 2008-11-10  Bruno Haible  <bruno@clisp.org>
35015
35016         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35017         cross-compiling guesses also when the native compile gives no result.
35018
35019 2008-11-10  Bruno Haible  <bruno@clisp.org>
35020
35021         * lib/spawni.c (__spawni): Force variable into the stack.
35022
35023 2008-11-10  Bruno Haible  <bruno@clisp.org>
35024
35025         Add support for Haiku.
35026         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35027         glibc and BeOS, but also on Haiku.
35028         * lib/fpurge.c (fpurge): Likewise.
35029         * lib/freadable.c (freadable): Likewise.
35030         * lib/freadahead.c (freadahead): Likewise.
35031         * lib/freading.c (freading): Likewise.
35032         * lib/freadptr.c (freadptr): Likewise.
35033         * lib/freadseek.c (freadptrinc): Likewise.
35034         * lib/fseeko.c (rpl_fseeko): Likewise.
35035         * lib/fseterr.c (fseterr): Likewise.
35036         * lib/fwritable.c (fwritable): Likewise.
35037         * lib/fwriting.c (fwriting): Likewise.
35038         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35039
35040 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35041
35042         * lib/config.charset: Treat Haiku like BeOS.
35043
35044 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35045
35046         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35047         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35048
35049 2008-11-08  Bruno Haible  <bruno@clisp.org>
35050
35051         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35052         AC_CACHE_CHECK.
35053
35054 2008-11-08  Bruno Haible  <bruno@clisp.org>
35055
35056         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35057
35058 2008-11-08  Bruno Haible  <bruno@clisp.org>
35059
35060         * tests/test-select-fd.c: New file.
35061         * tests/test-select-in.sh: New file.
35062         * tests/test-select-out.sh: New file.
35063         * tests/test-select-stdin.c: New file.
35064         * modules/select-tests (Files): Add the new files.
35065         (Depends-on): Add gettimeofday.
35066         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35067         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35068         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35069
35070 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35071             Bruno Haible  <bruno@clisp.org>
35072
35073         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35074
35075 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35076
35077         * build-aux/pmccabe2html: Added support for C++ source files.
35078
35079 2008-11-05  Ben Pfaff  <blp@gnu.org>
35080
35081         Fix lib/close.c build on Windows.
35082         * modules/close (Files): Add lib/w32sock.h.
35083
35084 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35085
35086         Accept Bison's NEWS format.
35087         * build-aux/announce-gen (print_news_deltas): Tweak
35088         $re_prefix.
35089
35090 2008-11-04  Bruno Haible  <bruno@clisp.org>
35091
35092         * modules/random_r (Maintainer): Add glibc.
35093
35094 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35095
35096         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35097         by karl@freefriends.org (Karl Berry).
35098         * doc/alloca.texi: Likewise.
35099         * doc/c-ctype.texi: Likewise.
35100         * doc/c-strcase.texi: Likewise.
35101         * doc/c-strcaseeq.texi: Likewise.
35102         * doc/c-strcasestr.texi: Likewise.
35103         * doc/c-strstr.texi: Likewise.
35104         * doc/c-strtod.texi: Likewise.
35105         * doc/c-strtold.texi: Likewise.
35106         * doc/ctime.texi: Likewise.
35107         * doc/error.texi: Likewise.
35108         * doc/fdl.texi: Likewise.
35109         * doc/gcd.texi: Likewise.
35110         * doc/getdate.texi: Likewise.
35111         * doc/gnulib-intro.texi: Likewise.
35112         * doc/gnulib-tool.texi: Likewise.
35113         * doc/gnulib.texi: Likewise.
35114         * doc/inet_ntoa.texi: Likewise.
35115         * doc/maintain.texi: Likewise.
35116         * doc/make-stds.texi: Likewise.
35117         * doc/quote.texi: Likewise.
35118         * doc/regexprops-generic.texi: Likewise.
35119         * doc/standards.texi: Likewise.
35120         * doc/verify.texi: Likewise.
35121         * doc/visibility.texi: Likewise.
35122         * doc/gnulib.texi (GNU Free Documentation License): Include
35123         fdl-1.3.texi instead of fdl.texi.
35124
35125 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35126
35127         * doc/fdl-1.3.texi: New file, from
35128         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35129         * modules/fdl-1.3: Add.
35130         * MODULES.html.sh: Add fdl-1.3.
35131
35132 2008-11-03  Bruno Haible  <bruno@clisp.org>
35133
35134         Make determination of absolute name of header file work with AIX xlc.
35135         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35136         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35137         preprocessing.
35138         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35139         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35140
35141 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35142
35143         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35144         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35145         <ludo@gnu.org>.
35146
35147 2008-11-02  Bruno Haible  <bruno@clisp.org>
35148
35149         Mark 'strpbrk' obsolete.
35150         * modules/strpbrk (Status, Notice): New sections.
35151         * modules/strtok_r (Depends-on): Add strpbrk.
35152
35153 2008-11-02  Bruno Haible  <bruno@clisp.org>
35154
35155         Mark 'strdup' obsolete.
35156         * modules/strdup (Status, Notice): New sections.
35157         * modules/findprog (Depends-on): Add strdup.
35158         * modules/getaddrinfo (Depends-on): Likewise.
35159         * modules/localename (Depends-on): Likewise.
35160         * modules/relocatable-lib (Depends-on): Likewise.
35161         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35162         * modules/relocatable-prog (Depends-on): Likewise.
35163         * modules/trim (Depends-on): Likewise.
35164         * modules/unictype/gen-ctype (Depends-on): Likewise.
35165         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35166
35167 2008-11-02  Bruno Haible  <bruno@clisp.org>
35168
35169         Mark 'strcspn' obsolete.
35170         * modules/strcspn (Status, Notice): New sections.
35171
35172 2008-11-02  Bruno Haible  <bruno@clisp.org>
35173
35174         Mark 'rmdir' obsolete.
35175         * modules/rmdir (Status, Notice): New sections.
35176         * modules/clean-temp (Depends-on): Add rmdir.
35177         * modules/openat (Depends-on): Likewise.
35178
35179 2008-11-02  Bruno Haible  <bruno@clisp.org>
35180
35181         Mark 'raise' obsolete.
35182         * modules/raise (Status, Notice): New sections.
35183         (Include): Specify <signal.h>.
35184         * modules/stdio (Depends-on): Add raise.
35185         * modules/write (Depends-on): Likewise.
35186
35187 2008-11-02  Bruno Haible  <bruno@clisp.org>
35188
35189         Mark 'memset' obsolete.
35190         * modules/memset (Status, Notice): New sections.
35191
35192 2008-11-02  Bruno Haible  <bruno@clisp.org>
35193
35194         Mark 'memmove' obsolete.
35195         * modules/memmove (Status, Notice): New sections.
35196         * modules/argp (Depends-on): Add memmove.
35197         * modules/argz (Depends-on): Likewise.
35198         * modules/canonicalize (Depends-on): Likewise.
35199         * modules/canonicalize-lgpl (Depends-on): Likewise.
35200         * modules/fts (Depends-on): Likewise.
35201         * modules/getcwd (Depends-on): Likewise.
35202         * modules/human (Depends-on): Likewise.
35203         * modules/regex (Depends-on): Likewise.
35204         * modules/striconveh (Depends-on): Likewise.
35205         * modules/trim (Depends-on): Likewise.
35206         * modules/unistr/u8-move (Depends-on): Likewise.
35207         * modules/unistr/u16-move (Depends-on): Likewise.
35208         * modules/unistr/u32-move (Depends-on): Likewise.
35209
35210 2008-11-02  Bruno Haible  <bruno@clisp.org>
35211
35212         Mark 'memcpy' obsolete.
35213         * modules/memcpy (Status, Notice): New sections.
35214
35215 2008-11-02  Bruno Haible  <bruno@clisp.org>
35216
35217         Mark 'memcmp' obsolete.
35218         * modules/memcmp (Status, Notice): New sections.
35219         * modules/argmatch (Depends-on): Add memchr.
35220         * modules/backupfile (Depends-on): Likewise.
35221         * modules/c-strcasestr (Depends-on): Likewise.
35222         * modules/crypto/des (Depends-on): Likewise.
35223         * modules/csharpcomp (Depends-on): Likewise.
35224         * modules/fnmatch (Depends-on): Likewise.
35225         * modules/git-merge-changelog (Depends-on): Likewise.
35226         * modules/isnand (Depends-on): Likewise.
35227         * modules/isnand-nolibm (Depends-on): Likewise.
35228         * modules/isnanf (Depends-on): Likewise.
35229         * modules/isnanf-nolibm (Depends-on): Likewise.
35230         * modules/isnanl (Depends-on): Likewise.
35231         * modules/isnanl-nolibm (Depends-on): Likewise.
35232         * modules/mbchar (Depends-on): Likewise.
35233         * modules/memcoll (Depends-on): Likewise.
35234         * modules/quotearg (Depends-on): Likewise.
35235         * modules/regex (Depends-on): Likewise.
35236         * modules/relocatable-prog (Depends-on): Likewise.
35237         * modules/same (Depends-on): Likewise.
35238         * modules/signbit (Depends-on): Likewise.
35239         * modules/strcasestr-simple (Depends-on): Likewise.
35240         * modules/unictype/gen-ctype (Depends-on): Likewise.
35241         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35242         * modules/uniname/uniname (Depends-on): Likewise.
35243         * modules/unistr/u8-cmp (Depends-on): Likewise.
35244
35245 2008-11-02  Bruno Haible  <bruno@clisp.org>
35246
35247         Mark 'memchr' obsolete.
35248         * modules/memchr (Status, Notice): New sections.
35249         * modules/argp (Depends-on): Add memchr.
35250         * modules/base64 (Depends-on): Likewise.
35251         * modules/c-strcasestr (Depends-on): Likewise.
35252         * modules/chdir-long (Depends-on): Likewise.
35253         * modules/fnmatch (Depends-on): Likewise.
35254         * modules/getsubopt (Depends-on): Likewise.
35255         * modules/git-merge-changelog (Depends-on): Likewise.
35256         * modules/glob (Depends-on): Likewise.
35257         * modules/strcasestr-simple (Depends-on): Likewise.
35258         * modules/strnlen (Depends-on): Likewise.
35259
35260 2008-11-02  Bruno Haible  <bruno@clisp.org>
35261
35262         Mark 'atexit' obsolete.
35263         * modules/atexit (Status, Notice): New sections.
35264         * modules/chdir-long (Depends-on): Add atexit.
35265         * modules/wait-process (Depends-on): Likewise.
35266
35267 2008-11-02  Bruno Haible  <bruno@clisp.org>
35268
35269         * gnulib-tool: New option --with-obsolete.
35270         (func_usage): Document it.
35271         (func_modules_transitive_closure): Drop obsolete dependencies if
35272         incobsolete is not true.
35273         (func_import): Read and save the incobsolete variable to the cache.
35274
35275 2008-11-02  Bruno Haible  <bruno@clisp.org>
35276
35277         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35278         * gnulib-tool: New option --extract-status.
35279         (func_usage): Document it.
35280         (sed_extract_prog): Recognize it.
35281         (func_get_status): New function.
35282
35283 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35284
35285         * modules/sockets (License): Change from LGPL to LGPLv2+.
35286
35287 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35288
35289         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35290
35291 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35292
35293         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35294         Mention times and sys_times.
35295         * modules/sys_times, modules/sys_times-tests: New modules.
35296         * modules/times, modules/times-tests: Likewise
35297         * m4/sys_times_h.m4: New file.
35298         * lib/sys_times.in.h: Likewise
35299         * lib/times.c: Likewise.
35300         * tests/test-sys_times.c: Likewise.
35301         * tests/test-times.c: Likewise.
35302         * doc/posix-headers/sys_times.texi: Update.
35303         * doc/posix-functions/times.texi: Update.
35304
35305 2008-10-28  Jim Meyering  <meyering@redhat.com>
35306
35307         * modules/tempname (Depends-on): Add lstat.
35308
35309         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35310
35311 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35312
35313         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35314         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35315         using idiom used elsewhere in gnulib.
35316
35317 2008-10-27  Jim Meyering  <meyering@redhat.com>
35318
35319         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35320
35321 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35322
35323         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35324         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35325         programs.
35326         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35327
35328 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35329
35330         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35331
35332 2008-10-27  Bruno Haible  <bruno@clisp.org>
35333
35334         * tests/test-lstat.c: Include <stdio.h>.
35335
35336 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35337
35338         * modules/lstat-tests: New module.
35339         * tests/test-lstat.c: New file.
35340
35341 2008-10-26  Jim Meyering  <meyering@redhat.com>
35342
35343         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35344
35345 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35346             Bruno Haible  <bruno@clisp.org>
35347
35348         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35349         * modules/configmake (Include): Add a note that the include must come
35350         after all system headers.
35351         * lib/javaversion.c: Include configmake.h after all other includes.
35352
35353 2008-10-26  Bruno Haible  <bruno@clisp.org>
35354
35355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35356         HAVE_STRUCT_RANDOM_DATA to 1.
35357         (gl_STDLIB_H): Simplify.
35358
35359 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35360
35361         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35362         substitute HAVE_STRUCT_RANDOM_DATA.
35363         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35364         random_data.
35365         * modules/stdlib (Makefile.am): Substitute
35366         HAVE_STRUCT_RANDOM_DATA.
35367
35368 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35369
35370         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35371         * doc/gnulib-intro.texi (Copyright): Likewise.
35372
35373 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35374
35375         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35376         findings.
35377
35378 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35379             Bruno Haible  <bruno@clisp.org>
35380
35381         * lib/unistd.in.h: Include <winsock2.h>.
35382         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35383         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35384         Provide dummy declarations.
35385         (gethostname): Override.
35386         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35387         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35388         gl_PREREQ_SYS_H_WINSOCK2.
35389         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35390         * doc/posix-functions/gethostname.texi: More details.
35391
35392 2008-10-25  Bruno Haible  <bruno@clisp.org>
35393
35394         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35395         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35396         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35397
35398         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35399         here ...
35400         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35401         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35402         gl_UNISTD_H_DEFAULTS.
35403
35404 2008-10-25  Eric Blake  <ebb9@byu.net>
35405
35406         signbit: avoid spurious compiler failure
35407         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35408         declarations inside function.
35409
35410 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35411             Bruno Haible  <bruno@clisp.org>
35412
35413         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35414         * modules/random_r (Depends-on): Add stdint.
35415
35416 2008-10-24  Bruno Haible  <bruno@clisp.org>
35417
35418         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35419         Eggert.
35420         * modules/strerror (License): Likewise.
35421
35422 2008-10-24  Jim Meyering  <meyering@redhat.com>
35423
35424         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35425         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35426
35427 2008-10-24  Eric Blake  <ebb9@byu.net>
35428
35429         getgroups: fix compilation when getgroups is available
35430         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35431         but with <config.h> override of getgroups disabled.
35432
35433 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35434
35435         * doc/gnulib.texi (Header files): Add note about C++ problems.
35436         Explained by Bruno Haible <bruno@clisp.org>.
35437
35438 2008-10-23  Bruno Haible  <bruno@clisp.org>
35439
35440         Define a dummy SA_NODEFER macro on Interix.
35441         * lib/signal.in.h (SA_NODEFER): Define fallback.
35442         Reported by Aleksey Cheusov <cheusov@tut.by> via
35443         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35444
35445 2008-10-23  Bruno Haible  <bruno@clisp.org>
35446
35447         * modules/freadahead (License): Change to LGPLv2+.
35448         Suggested by Simon Josefsson.
35449
35450 2008-10-23  Jim Meyering  <meyering@redhat.com>
35451
35452         random_r: new module
35453         * modules/random_r: New file.
35454         * m4/random_r.m4: New file.
35455         * lib/random_r.c: New file, from glibc.
35456         * modules/random_r-tests: New file.
35457         * tests/test-random_r.c: New file.
35458         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35459          Declare.
35460         (RAND_MAX): Define.
35461         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35462         * modules/stdlib: Substitute them, too.
35463         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35464         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35465         * doc/glibc-functions/random_r.texi: Likewise.
35466         * doc/glibc-functions/setstate_r.texi: Likewise.
35467         * doc/glibc-functions/srandom_r.texi: Likewise.
35468         * config/srclist.txt: Mention it.
35469
35470 2008-10-23  David Lutterkort  <lutter@redhat.com>
35471
35472         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35473         link requirement
35474
35475 2008-10-23  Jim Meyering  <meyering@redhat.com>
35476
35477         selinux-h: mark parameters of stub functions as intentionally unused
35478         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35479         * lib/se-context.in.h: Likewise.
35480
35481 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35482
35483         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35484
35485 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35486
35487         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35488
35489 2008-10-22  Eric Blake  <ebb9@byu.net>
35490
35491         glthread/thread: avoid compiler warning
35492         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35493         Add unreachable abort to silence compiler.
35494
35495 2008-10-22  Eric Blake  <ebb9@byu.net>
35496
35497         netdb: also supply struct addrinfo for cygwin 1.5.x
35498         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35499         older cygwin.
35500         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35501         cygwin.
35502         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35503
35504 2008-10-22  Bruno Haible  <bruno@clisp.org>
35505
35506         * users.txt: Update entry about pspp.
35507
35508 2008-10-21  Bruno Haible  <bruno@clisp.org>
35509
35510         Simplification.
35511         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35512         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35513
35514         Simplification.
35515         * lib/ioctl.c (ioctl): Don't undefine.
35516         * lib/socket.c (socket): Don't undefine.
35517
35518         Remove unused module indicator macros.
35519         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35520         GNULIB_$1 as a C macro.
35521
35522         * doc/posix-functions/close.texi: Undo last change.
35523         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35524         Windows platforms.
35525
35526 2008-10-21  Bruno Haible  <bruno@clisp.org>
35527
35528         Add gethostname() declaration to <unistd.h>.
35529         * lib/unistd.in.h (gethostname): New declaration.
35530         * lib/gethostname.c: Include <unistd.h>.
35531         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35532         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35534         and HAVE_GETHOSTNAME.
35535         * modules/gethostname (Depends-on): Add unistd.
35536         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35537         (Include): Specify <unistd.h>.
35538         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35539         HAVE_GETHOSTNAME.
35540         * tests/test-gethostname.c: Include <unistd.h> first.
35541
35542 2008-10-21  Bruno Haible  <bruno@clisp.org>
35543
35544         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
35545         * modules/select-tests (Depends-on): Likewise.
35546         Reported by Simon Josefsson.
35547
35548 2008-10-21  Simon Josefsson  <simon@josefsson.org>
35549
35550         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
35551         * lib/accept.c: New file, based on winsock.c.
35552         * lib/bind.c: New file, based on winsock.c.
35553         * lib/connect.c: New file, based on winsock.c.
35554         * lib/getpeername.c: New file, based on winsock.c.
35555         * lib/getsockname.c: New file, based on winsock.c.
35556         * lib/getsockopt.c: New file, based on winsock.c.
35557         * lib/ioctl.c: New file, based on winsock.c.
35558         * lib/listen.c: New file, based on winsock.c.
35559         * lib/recv.c: New file, based on winsock.c.
35560         * lib/recvfrom.c: New file, based on winsock.c.
35561         * lib/send.c: New file, based on winsock.c.
35562         * lib/sendto.c: New file, based on winsock.c.
35563         * lib/setsockopt.c: New file, based on winsock.c.
35564         * lib/shutdown.c: New file, based on winsock.c.
35565         * lib/socket.c: New file, based on winsock.c.
35566         * lib/w32sock.h: New file, based on winsock.c.
35567         * lib/winsock.c: Remove file.
35568         * modules/accept: Likewise.
35569         * modules/bind: Likewise.
35570         * modules/connect: Likewise.
35571         * modules/getpeername: Likewise.
35572         * modules/getsockname: Likewise.
35573         * modules/getsockopt: Likewise.
35574         * modules/ioctl: Likewise.
35575         * modules/listen: Likewise.
35576         * modules/recv: Likewise.
35577         * modules/recvfrom: Likewise.
35578         * modules/send: Likewise.
35579         * modules/sendto: Likewise.
35580         * modules/setsockopt: Likewise.
35581         * modules/shutdown: Likewise.
35582         * modules/socket: Use socket.c instead of winsock.c.
35583         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
35584         * doc/posix-functions/accept.texi: Doc fix.
35585         * doc/posix-functions/bind.texi: Doc fix.
35586         * doc/posix-functions/close.texi: Doc fix.
35587         * doc/posix-functions/connect.texi: Doc fix.
35588         * doc/posix-functions/getpeername.texi: Doc fix.
35589         * doc/posix-functions/getsockname.texi: Doc fix.
35590         * doc/posix-functions/getsockopt.texi: Doc fix.
35591         * doc/posix-functions/ioctl.texi: Doc fix.
35592         * doc/posix-functions/listen.texi: Doc fix.
35593         * doc/posix-functions/recv.texi: Doc fix.
35594         * doc/posix-functions/recvfrom.texi: Doc fix.
35595         * doc/posix-functions/send.texi: Doc fix.
35596         * doc/posix-functions/sendto.texi: Doc fix.
35597         * doc/posix-functions/setsockopt.texi: Doc fix.
35598         * doc/posix-functions/shutdown.texi: Doc fix.
35599         * doc/posix-functions/socket.texi: Doc fix.
35600
35601 2008-10-20  Bruno Haible  <bruno@clisp.org>
35602
35603         Take into account the role of SIGABRT_COMPAT on Windows 2008.
35604         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
35605         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
35606         as an alias for SIGABRT.
35607         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
35608         (sigaction): Map it to SIGABRT.
35609         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
35610
35611 2008-10-20  Bruno Haible  <bruno@clisp.org>
35612
35613         * lib/fts.c: Don't include lstat.h.
35614         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
35615
35616         Move the lstat() declaration to <sys/stat.h>.
35617         * lib/lstat.h: Remove file.
35618         * lib/sys_stat.in.h: Add special invocation convention.
35619         (lstat): New declaration.
35620         * lib/lstat.c (orig_lstat): New function.
35621         (rpl_lstat): Use orig_lstat instead of lstat.
35622         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
35623         AC_C_INLINE. Set REPLACE_LSTAT.
35624         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
35625         and REPLACE_LSTAT.
35626         * modules/lstat (Files): Remove lib/lstat.h.
35627         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35628         (Include): Specify <sys/stat.h> instead of lstat.h.
35629         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
35630         REPLACE_LSTAT.
35631         * NEWS: Mention the change.
35632
35633 2008-10-20  Bruno Haible  <bruno@clisp.org>
35634
35635         * modules/posix_spawn-tests: New file.
35636         * tests/test-posix_spawn3.c: New file.
35637
35638 2008-10-20  Bruno Haible  <bruno@clisp.org>
35639
35640         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
35641         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35642         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
35643         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
35644         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
35645
35646 2008-10-20  Bruno Haible  <bruno@clisp.org>
35647
35648         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
35649         of posix_spawn on AIX 5.3.
35650
35651 2008-10-20  Bruno Haible  <bruno@clisp.org>
35652
35653         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
35654
35655 2008-10-20  Bruno Haible  <bruno@clisp.org>
35656
35657         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
35658         of AC_LANG_PROGRAM.
35659
35660 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35661
35662         * lib/netdb.in.h: Don't define GNU specific constants until they
35663         are supported or needed.  Reported by Bruno Haible
35664         <bruno@clisp.org>.
35665
35666 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35667
35668         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
35669
35670 2008-10-20  Simon Josefsson  <simon@josefsson.org>
35671
35672         * lib/getaddrinfo.h: Remove file.
35673         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
35674         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
35675         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
35676         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
35677         * modules/netdb: Substitute GNULIB_GETADDRINFO.
35678         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
35679         * tests/test-getaddrinfo.c: Likewise.
35680         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
35681         * NEWS: Mention change.
35682
35683 2008-10-19  Bruno Haible  <bruno@clisp.org>
35684
35685         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
35686
35687 2008-10-19  Bruno Haible  <bruno@clisp.org>
35688
35689         * lib/wait-process.c: Include simply <sys/wait.h>.
35690         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
35691         WIFSTOPPED): Remove fallback definitions.
35692         * modules/wait-process (Depends-on): Add sys_wait.
35693
35694         New module 'sys_wait'.
35695         * modules/sys_wait: New file.
35696         * lib/sys_wait.in.h: New file, partially copied from
35697         lib/wait-process.c.
35698         * m4/sys_wait_h.m4: New file.
35699         * doc/posix-headers/sys_wait.texi: Mention the new module.
35700
35701 2008-10-19  Bruno Haible  <bruno@clisp.org>
35702
35703         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
35704
35705 2008-10-19  Bruno Haible  <bruno@clisp.org>
35706
35707         Assume that waitpid() fills an 'int' status, not a 'union wait'.
35708         * lib/wait-process.c (WAIT_T): Remove type.
35709         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
35710         (wait_subprocess): Update.
35711
35712 2008-10-19  Bruno Haible  <bruno@clisp.org>
35713
35714         New module 'atoll'.
35715         * modules/atoll: New file.
35716         * lib/stdlib.in.h (atoll): New declaration.
35717         * lib/atoll.c: New file, from glibc with modifications.
35718         * m4/atoll.m4: New file.
35719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
35720         HAVE_ATOLL.
35721         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
35722         * doc/posix-functions/atoll.texi: Mention the new module.
35723
35724 2008-10-19  Bruno Haible  <bruno@clisp.org>
35725
35726         Add strtoull() declaration to <stdlib.h>.
35727         * lib/stdlib.in.h (strtoull): New declaration.
35728         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35729         Set HAVE_STRTOULL.
35730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
35731         HAVE_STRTOULL.
35732         * modules/strtoull (Depends-on): Add stdlib.
35733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35734         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
35735         HAVE_STRTOULL.
35736
35737 2008-10-19  Bruno Haible  <bruno@clisp.org>
35738
35739         Add strtoll() declaration to <stdlib.h>.
35740         * lib/stdlib.in.h (strtoll): New declaration.
35741         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
35742         Set HAVE_STRTOLL.
35743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
35744         HAVE_STRTOLL.
35745         * modules/strtoll (Depends-on): Add stdlib.
35746         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35747         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
35748
35749 2008-10-19  Bruno Haible  <bruno@clisp.org>
35750
35751         * modules/bcopy (Depends-on): Add strings.
35752         (Include): Specify <strings.h>.
35753
35754 2008-10-19  Bruno Haible  <bruno@clisp.org>
35755
35756         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
35757
35758 2008-10-19  Bruno Haible  <bruno@clisp.org>
35759
35760         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
35761         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
35762         mingw.
35763
35764 2008-10-19  Bruno Haible  <bruno@clisp.org>
35765
35766         * lib/atanl.c: Don't include isnanl.h.
35767         * lib/cosl.c: Likewise.
35768         * lib/ldexpl.c: Likewise.
35769         * lib/logl.c: Likewise.
35770         * lib/sinl.c: Likewise.
35771         * lib/sqrtl.c: Likewise.
35772         * lib/tanl.c: Likewise.
35773
35774         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
35775         * lib/isnanf.h: Remove file.
35776         * lib/isnand.h: Remove file.
35777         * lib/isnanl.h: Remove file.
35778         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
35779         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
35780         macros.
35781         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
35782         HAVE_ISNANF, don't define it as a C macro.
35783         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
35784         HAVE_ISNAND, don't define it as a C macro.
35785         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
35786         HAVE_ISNANL, don't define it as a C macro.
35787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
35788         HAVE_ISNAN[FDL].
35789         * modules/isnanf (Files): Remove lib/isnanf.h.
35790         (Depends-on): Add math.
35791         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35792         (Include): Specify <math.h> instead of isnanf.h.
35793         * modules/isnand (Files): Remove lib/isnand.h.
35794         (Depends-on): Add math.
35795         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35796         (Include): Specify <math.h> instead of isnand.h.
35797         * modules/isnanl (Files): Remove lib/isnanl.h.
35798         (Depends-on): Add math.
35799         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
35800         (Include): Specify <math.h> instead of isnanl.h.
35801         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
35802         HAVE_ISNAN[FDL].
35803         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
35804         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
35805         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
35806         * NEWS: Mention the change.
35807
35808 2008-10-18  Bruno Haible  <bruno@clisp.org>
35809
35810         Add getusershell(), setusershell(), endusershell() declarations to
35811         <unistd.h>.
35812         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35813         declarations.
35814         * lib/getusershell.c: Include unistd.h.
35815         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35816         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35817         HAVE_GETUSERSHELL.
35818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35819         and HAVE_GETUSERSHELL.
35820         * modules/getusershell (Depends-on): Add unistd, extensions.
35821         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35822         (Include): Specify <unistd.h>.
35823         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35824         HAVE_GETUSERSHELL.
35825
35826 2008-10-18  Bruno Haible  <bruno@clisp.org>
35827
35828         Add a getloadavg() declaration to <stdlib.h>.
35829         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35830         getloadavg declaration.
35831         (getloadavg): New declaration.
35832         * lib/getloadavg.c: Include <stdlib.h> first.
35833         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35834         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35835         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35837         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35838         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35839         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35840         (Include): Specify <stdlib.h>.
35841         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35842         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35843
35844 2008-10-18  Bruno Haible  <bruno@clisp.org>
35845
35846         * lib/dirchownmod.c: Don't include lchmod.h.
35847
35848         Move the lchmod() declaration to <sys/stat.h>.
35849         * lib/lchmod.h: Remove file.
35850         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35851         (lchmod): New declaration, moved here from lib/lchown.h.
35852         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35853         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35854         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35855         and HAVE_LCHMOD.
35856         * modules/lchmod (Files): Remove lib/lchmod.h.
35857         (Depends-on): Add sys_stat, extensions.
35858         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35859         (Include): Specify <sys/stat.h> instead of lchmod.h.
35860         * modules/sys_stat (Depends-on): Add link-warning.
35861         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35862         definition of GL_LINK_WARNING.
35863         * NEWS: Mention the change.
35864
35865 2008-10-18  Bruno Haible  <bruno@clisp.org>
35866
35867         * lib/fchdir.c: Don't include dirfd.h.
35868         * lib/fts.c: Likewise.
35869         * lib/getcwd.c: Likewise.
35870         * lib/glob.c: Likewise.
35871
35872         Move the dirfd() declaration to <dirent.h>.
35873         * lib/dirfd.h: Remove file.
35874         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35875         (dirfd): New declaration.
35876         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35877         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35878         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35879         HAVE_DECL_DIRFD.
35880         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35881         HAVE_DECL_DIRFD.
35882         * modules/dirfd (Files): Remove lib/dirfd.h.
35883         (Depends-on): Add dirent, extensions.
35884         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35885         (Include): Specify <dirent.h> instead of dirfd.h.
35886         * modules/dirent (Depends-on): Add link-warning.
35887         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35888         definition of GL_LINK_WARNING.
35889         * NEWS: Mention the change.
35890
35891 2008-10-18  Bruno Haible  <bruno@clisp.org>
35892
35893         Move the euidaccess() declaration to <unistd.h>.
35894         * lib/euidaccess.h: Remove file.
35895         * lib/unistd.in.h (euidaccess): New declaration.
35896         * lib/euidaccess.c: Don't include euidaccess.h.
35897         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35898         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35900         and HAVE_EUIDACCESS.
35901         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35902         (Depends-on): Add unistd.
35903         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35904         (Include): Specify <unistd.h> instead of euidaccess.h.
35905         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35906         HAVE_EUIDACCESS.
35907         * NEWS: Mention the change.
35908
35909 2008-10-18  Bruno Haible  <bruno@clisp.org>
35910
35911         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35912
35913         Move the getdomainname() declaration to <unistd.h>.
35914         * lib/getdomainname.h: Remove file.
35915         * lib/unistd.in.h (getdomainname): New declaration.
35916         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35917         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35918         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35919         HAVE_GETDOMAINNAME.
35920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35921         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35922         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35923         (Depends-on): Add unistd, extensions.
35924         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35925         (Includes): Specify <unistd.h> instead of getdomainname.h.
35926         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35927         HAVE_GETDOMAINNAME.
35928         * NEWS: Mention the change.
35929
35930 2008-10-18  Bruno Haible  <bruno@clisp.org>
35931
35932         * modules/dirent: New file.
35933         * m4/dirent_h.m4: New file.
35934         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35935         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35936         * modules/fchdir (Files): Remove lib/dirent.in.h.
35937         (Depends-on): Add dirent.
35938         (Makefile.am): Move rules to modules/dirent.
35939         * doc/posix-headers/dirent.texi: Mention the new module.
35940
35941 2008-10-18  Bruno Haible  <bruno@clisp.org>
35942
35943         Avoid -Wunused-parameter warnings in public gnulib header files.
35944         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35945         macro.
35946         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35947
35948 2008-10-18  Bruno Haible  <bruno@clisp.org>
35949
35950         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35951         * doc/glibc-functions/error.texi: Mention the module 'error'.
35952         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35953         * doc/glibc-functions/getdomainname.texi: Mention the module
35954         'getdomainname'.
35955         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35956         * doc/glibc-functions/getpagesize.texi: Mention the module
35957         'getpagesize'.
35958         * doc/glibc-functions/getusershell.texi: Mention the module
35959         'getusershell'.
35960         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35961         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35962         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35963         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35964         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35965         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35966         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35967         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35968         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35969         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35970         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35971         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35972         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35973         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35974
35975 2008-10-17  Bruno Haible  <bruno@clisp.org>
35976
35977         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35978         HP-UX and IRIX, use -0.0L.
35979         * tests/test-ceill.c (minus_zero): Likewise.
35980         * tests/test-floorl.c (minus_zero): Likewise.
35981         * tests/test-frexpl.c (minus_zero): Likewise.
35982         * tests/test-isnan.c (minus_zerol): Likewise.
35983         * tests/test-isnanl.h (minus_zero): Likewise.
35984         * tests/test-ldexpl.c (minus_zero): Likewise.
35985         * tests/test-roundl.c (minus_zero): Likewise.
35986         * tests/test-signbit.c (minus_zerol): Likewise.
35987         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35988         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35989         * tests/test-truncl.c (minus_zero): Likewise.
35990         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35991         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35992         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35993         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35994
35995 2008-10-17  Bruno Haible  <bruno@clisp.org>
35996
35997         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35998         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35999         that it gets activated only for gcc >= 3.0.
36000         * lib/dirent.in.h: Likewise.
36001         * lib/errno.in.h: Likewise.
36002         * lib/fcntl.in.h: Likewise.
36003         * lib/float.in.h: Likewise.
36004         * lib/iconv.in.h: Likewise.
36005         * lib/inttypes.in.h: Likewise.
36006         * lib/locale.in.h: Likewise.
36007         * lib/math.in.h: Likewise.
36008         * lib/netdb.in.h: Likewise.
36009         * lib/netinet_in.in.h: Likewise.
36010         * lib/search.in.h: Likewise.
36011         * lib/signal.in.h: Likewise.
36012         * lib/spawn.in.h: Likewise.
36013         * lib/stdarg.in.h: Likewise.
36014         * lib/stdint.in.h: Likewise.
36015         * lib/stdio.in.h: Likewise.
36016         * lib/stdlib.in.h: Likewise.
36017         * lib/string.in.h: Likewise.
36018         * lib/strings.in.h: Likewise.
36019         * lib/sys_file.in.h: Likewise.
36020         * lib/sys_ioctl.in.h: Likewise.
36021         * lib/sys_select.in.h: Likewise.
36022         * lib/sys_socket.in.h: Likewise.
36023         * lib/sys_stat.in.h: Likewise.
36024         * lib/sys_time.in.h: Likewise.
36025         * lib/sysexits.in.h: Likewise.
36026         * lib/time.in.h: Likewise.
36027         * lib/unistd.in.h: Likewise.
36028         * lib/wchar.in.h: Likewise.
36029         * lib/wctype.in.h: Likewise.
36030         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36031
36032 2008-10-17  Jim Meyering  <meyering@redhat.com>
36033
36034         ignore-value: don't depend on inline module
36035         * modules/ignore-value (Depends-on): Remove 'inline'.
36036         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36037         Suggestion from Bruno Haible.
36038
36039 2008-10-17  Bruno Haible  <bruno@clisp.org>
36040
36041         New implementation of condition variables for Win32.
36042         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36043         (gl_linked_waitqueue_t): New type.
36044         (gl_cond_t): Use it.
36045         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36046         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36047         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36048         (glthread_cond_init_func, glthread_cond_wait_func,
36049         glthread_cond_timedwait_func, glthread_cond_signal_func,
36050         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36051         Reimplemented on the basis of gl_linked_waitqueue_t.
36052         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36053         gl_waitqueue_t.
36054         (gl_rwlock_t): Update.
36055         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36056
36057 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36058
36059         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36060         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36061
36062 2008-10-17  Jim Meyering  <meyering@redhat.com>
36063
36064         ignore-value: new module
36065         * modules/ignore-value: New file.
36066         * lib/ignore-value.h: New file.
36067         * MODULES.html.sh (Compiler warning management): New section,
36068         just for this module.  More to come.
36069
36070 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36071
36072         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36073         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36074         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36075
36076 2008-10-16  Jim Meyering  <meyering@redhat.com>
36077
36078         openat-die.c: avoid 'no previous prototype' warning
36079         * lib/openat-die.c: Include "openat.h".
36080         Reported by Reuben Thomas <rrt@sc3d.org>.
36081
36082 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36083
36084         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36085         * lib/netdb.in.h: Fix typo.
36086         Reported by Bruno Haible  <bruno@clisp.org>
36087
36088         * lib/netdb.in.h: Include sys/socket.h for platforms without
36089         netdb.h, to get structures like hostent on MinGW.
36090         * modules/netdb (Depends-on): Add sys_socket.
36091
36092 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36093
36094         * modules/netdb, modules/netdb-tests: New file.
36095         * m4/netdb_h.m4: New file.
36096         * lib/netdb.in.h: Add, currently just an empty file pending
36097         definitions.
36098         * tests/test-netdb.c: New file.
36099         * doc/posix-headers/netdb.texi: Mention that we replace it if
36100         needed.
36101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36102         netdb.
36103
36104 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36105
36106         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36107         with code.
36108
36109 2008-10-13  Bruno Haible  <bruno@clisp.org>
36110
36111         * lib/glthread/cond.c (glthread_cond_wait_func,
36112         glthread_cond_timedwait_func): Add a comment.
36113
36114 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36115
36116         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36117         * tests/test-select.c: Likewise,
36118
36119 2008-10-13  Bruno Haible  <bruno@clisp.org>
36120
36121         * lib/glthread/cond.c (glthread_cond_wait_func,
36122         glthread_cond_timedwait_func): Fix variable name.
36123         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36124
36125 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36126
36127         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36129         struct sockaddr.sa_len.
36130         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36131
36132 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36133
36134         * build-aux/pmccabe2html: Add css and css_url parameters.
36135
36136 2008-10-12  Bruno Haible  <bruno@clisp.org>
36137
36138         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36139         calling aclx_get.
36140         Reported by Rainer Tammer <tammer@tammer.net>.
36141
36142 2008-10-12  Bruno Haible  <bruno@clisp.org>
36143
36144         Use msvcrt aware primitives for creation/termination of Win32 threads.
36145         * lib/glthread/thread.c: Include <process.h>.
36146         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36147         (wrapper_func): Update signature.
36148         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36149
36150 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36151             Bruno Haible  <bruno@clisp.org>
36152
36153         Provide a Win32 implementation of the 'cond' module.
36154         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36155         * lib/glthread/cond.c (glthread_cond_init_func,
36156         glthread_cond_wait_func, glthread_cond_timedwait_func,
36157         glthread_cond_signal_func, glthread_cond_broadcast_func,
36158         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36159         * modules/cond (Dependencies): Add gettimeofday.
36160
36161 2008-10-11  Bruno Haible  <bruno@clisp.org>
36162
36163         Make sleep work on older versions of mingw.
36164         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36165         only whether it exists.
36166         * doc/posix-functions/sleep.texi: Mention the problem with older
36167         versions of mingw.
36168
36169 2008-10-11  Bruno Haible  <bruno@clisp.org>
36170
36171         New module 'shutdown'.
36172         * modules/shutdown: New file.
36173         * lib/sys_socket.in.h (shutdown): New declaration.
36174         * lib/winsock.c (shutdown): New function.
36175         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36176         GNULIB_SHUTDOWN.
36177         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36178         * doc/posix-functions/shutdown.texi: Document the new module.
36179
36180 2008-10-11  Jim Meyering  <meyering@redhat.com>
36181
36182         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36183
36184 2008-10-11  Bruno Haible  <bruno@clisp.org>
36185
36186         New module 'fclose'.
36187         * modules/fclose: New file.
36188         * lib/stdio.in.h (fclose): New declaration.
36189         * lib/fclose.c: New file.
36190         * m4/fclose.m4: New file.
36191         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36192         REPLACE_FCLOSE.
36193         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36194         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36195         REPLACE_FCLOSE.
36196         * modules/close (Depends-on): fclose.
36197         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36198
36199 2008-10-11  Bruno Haible  <bruno@clisp.org>
36200
36201         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36202         set errno and don't call _close.
36203
36204 2008-10-10  Bruno Haible  <bruno@clisp.org>
36205
36206         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36207         ACL, not afterwards. Fixes test failure on Cygwin.
36208
36209 2008-10-09  Ben Pfaff  <blp@gnu.org>
36210
36211         * build-aux/announce-gen: Fix gnulib version related part of usage
36212         message.  Die with a useful error message if no tarballs are
36213         found.
36214
36215 2008-10-10  Jim Meyering  <meyering@redhat.com>
36216
36217         bootstrap: use git's --depth=N option only if it's supported
36218         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36219         recognize the --depth option.  Reported by Pádraig Brady.
36220
36221 2008-10-09  Bruno Haible  <bruno@clisp.org>
36222
36223         New module 'ioctl'.
36224         * modules/ioctl: New file.
36225         * lib/sys_socket.in.h (ioctl): Remove declaration.
36226         * lib/winsock.c: Include <sys/ioctl.h>.
36227         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36228         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36229         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36230         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36231         * doc/posix-functions/ioctl.texi: Mention the new module.
36232
36233 2008-10-09  Bruno Haible  <bruno@clisp.org>
36234
36235         New module 'sys_ioctl'.
36236         * lib/sys_ioctl.in.h: New file.
36237         * m4/sys_ioctl_h.m4: New file.
36238         * modules/sys_ioctl: New file.
36239         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36240
36241 2008-10-09  Bruno Haible  <bruno@clisp.org>
36242
36243         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36244         * lib/winsock.c: Include <stdarg.h>.
36245         (rpl_ioctl): Change to second argument 'int' and then varargs.
36246
36247 2008-10-09  Bruno Haible  <bruno@clisp.org>
36248
36249         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36250         when the sys_socket module is present and the system has <winsock2.h>.
36251
36252 2008-10-09  Bruno Haible  <bruno@clisp.org>
36253
36254         * doc/posix-functions/close.texi: Mention module 'close' instead of
36255         module 'sys_socket'.
36256
36257 2008-10-09  Bruno Haible  <bruno@clisp.org>
36258
36259         * doc/glibc-headers/sys_ioctl.texi: New file.
36260         * doc/gnulib.texi: Include it.
36261
36262 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36263             Bruno Haible  <bruno@clisp.org>
36264
36265         Combine the two replacements of 'close'.
36266         * lib/sys_socket.in.h (close): Define to a reminder to include
36267         <unistd.h>.
36268         (_gl_close_fd_maybe_socket): New declaration.
36269         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36270         * lib/winsock.c (close): Remove undefinition.
36271         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36272         needed for the gnulib module 'close'.
36273         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36274         define to an error symbol or to a warning, if suitable.
36275         * lib/close.c: Include <sys/socket.h>.
36276         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36277         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36278         UNISTD_H_HAVE_WINSOCK2_H.
36279         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36281         UNISTD_H_HAVE_WINSOCK2_H.
36282         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36283         (configure.ac): Set a module indicator.
36284         (Makefile.am): Substitute GNULIB_CLOSE.
36285         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36286         * modules/poll-tests (Depends-on): Add close.
36287         * modules/select-tests (Depends-on): Likewise.
36288
36289 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36290             Bruno Haible  <bruno@clisp.org>
36291
36292         New module 'close'.
36293         * modules/close: New file.
36294         * lib/unistd.in.h (close): Move declaration out of the
36295         FCHDIR_REPLACEMENT scope.
36296         (_gl_unregister_fd): New declaration.
36297         * lib/close.c: New file.
36298         * lib/fchdir.c (rpl_close): Remove function.
36299         * m4/close.m4: New file.
36300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36301         close.
36302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36303         REPLACE_CLOSE.
36304         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36305         REPLACE_CLOSE.
36306         * modules/fchdir (Depends-on): Add close.
36307
36308 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36309             Bruno Haible  <bruno@clisp.org>
36310
36311         * lib/fcntl.in.h (open): Simplify conditionals.
36312         (_gl_register_fd): New declaration.
36313         * lib/fchdir.c (rpl_open): Remove function.
36314         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36315         also.
36316         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36318         open.
36319
36320 2008-10-09  Jim Meyering  <meyering@redhat.com>
36321
36322         GNUmakefile: use the more name-space-friendly "_version"
36323         * top/GNUmakefile (_dummy): Update.
36324         (_version): Rename from "version".
36325
36326 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36327             Bruno Haible  <bruno@clisp.org>
36328
36329         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36330         rpl_close.
36331         (_gl_register_fd): New function, extracted from rpl_open.
36332         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36333         (rpl_open, rpl_opendir): Use _gl_register_fd.
36334
36335 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36336
36337         Fix organization of 'open' replacement.
36338         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36339         (gl_FUNC_OPEN): Use it.
36340         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36341
36342 2008-10-08  Bruno Haible  <bruno@clisp.org>
36343
36344         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36345
36346 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36347
36348         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36349         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36350         listen).
36351
36352 2008-10-08  Eric Blake  <ebb9@byu.net>
36353
36354         GNUmakefile: add 'make version' target
36355         * top/GNUmakefile (_curr-ver): Split version update rules...
36356         (version): ...into a target.
36357
36358 2008-10-07  Bruno Haible  <bruno@clisp.org>
36359
36360         Use a more portable replacement expression for -0.0L.
36361         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36362         instead of -0.0L. Fix m4 quotation.
36363
36364         * tests/test-signbit.c: Include <float.h>.
36365         (minus_zero): New variable.
36366         (test_signbitl): Use minus_zero instead of -zero.
36367         * modules/signbit-tests (Depends-on): Add float.
36368
36369         * tests/test-ceill.c: Include <float.h>.
36370         (zero): Remove variable.
36371         (minus_zero): New variable.
36372         (main): Use minus_zero instead of -zero.
36373         * modules/ceill-tests (Depends-on): Add float.
36374
36375         * tests/test-floorl.c: Include <float.h>.
36376         (zero): Remove variable.
36377         (minus_zero): New variable.
36378         (main): Use minus_zero instead of -zero.
36379         * modules/floorl-tests (Depends-on): Add float.
36380
36381         * tests/test-roundl.c: Include <float.h>.
36382         (zero): Remove variable.
36383         (minus_zero): New variable.
36384         (main): Use minus_zero instead of -zero.
36385         * modules/roundl-tests (Depends-on): Add float.
36386
36387         * tests/test-truncl.c: Include <float.h>.
36388         (zero): Remove variable.
36389         (minus_zero): New variable.
36390         (main): Use minus_zero instead of -zero.
36391         * modules/truncl-tests (Depends-on): Add float.
36392
36393         * tests/test-frexpl.c (zero): Remove variable.
36394         (minus_zero): New variable.
36395         (main): Use minus_zero instead of -zero.
36396         * modules/frexpl-tests (Depends-on): Add float.
36397
36398         * tests/test-isnan.c (zerol): Remove variable.
36399         (minus_zerol): New variable.
36400         (test_long_double): Use minus_zerol instead of -zerol.
36401         * modules/isnan-tests (Depends-on): Add float.
36402
36403         * tests/test-isnanl.h (zero): Remove variable.
36404         (minus_zero): New variable.
36405         (main): Use minus_zero instead of -zero.
36406         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36407         * modules/isnanl-tests (Depends-on): Add float.
36408
36409         * tests/test-ldexpl.c (zero): Remove variable.
36410         (minus_zero): New variable.
36411         (main): Use minus_zero instead of -zero.
36412         * modules/ldexpl-tests (Depends-on): Add float.
36413
36414         * tests/test-snprintf-posix.h (zerol): Remove variable.
36415         (minus_zerol): New variable.
36416         (test_function): Use minus_zerol instead of -zerol.
36417         * modules/snprintf-posix-tests (Depends-on): Add float.
36418         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36419
36420         * tests/test-sprintf-posix.h (zerol): Remove variable.
36421         (minus_zerol): New variable.
36422         (test_function): Use minus_zerol instead of -zerol.
36423         * modules/sprintf-posix-tests (Depends-on): Add float.
36424         * modules/vsprintf-posix-tests (Depends-on): Add float.
36425
36426         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36427         (minus_zerol): New variable.
36428         (test_function): Use minus_zerol instead of -zerol.
36429         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36430
36431         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36432         (minus_zerol): New variable.
36433         (test_function): Use minus_zerol instead of -zerol.
36434         * modules/vasprintf-posix-tests (Depends-on): Add float.
36435
36436 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36437
36438         * MODULES.html.sh (Support for building documentation): Mention
36439         pmccabe2html.  Sort entries.
36440
36441         Add pmccabe2html module, from gnupdf.
36442         * build-aux/pmccabe.css: New file.
36443         * build-aux/pmccabe2html: New file.
36444         * m4/pmccabe2html.m4: New file.
36445         * modules/pmccabe2html: New file.
36446
36447 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36448
36449         flock: new module
36450         * MODULES.html.sh: Add to list of modules.
36451         * lib/flock.c: flock implementation for Windows and Unix systems
36452         which have fcntl.
36453         * doc/glibc-functions/flock.texi: Update documentation.
36454         * lib/sys_file.in.h: <sys/file.h> header file.
36455         * m4/flock.m4: M4 macros.
36456         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36457         * modules/flock: flock module.
36458         * modules/flock-tests: flock tests module.
36459         * modules/sys_file: sys/file.h module.
36460         * tests/test-flock.c: test suite for flock.
36461
36462 2008-10-06  Jim Meyering  <meyering@redhat.com>
36463
36464         bootstrap: check for LT_INIT more portably still ;-)
36465         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36466         Spotted by Bruno Haible.
36467
36468 2008-10-06  Eric Blake  <ebb9@byu.net>
36469
36470         test-signbit: avoid tripping Irix cc bug on -0.0L
36471         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36472         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36473         entire testsuite consistent and avoids an Irix 6.2 bug.
36474
36475 2008-10-05  Bruno Haible  <bruno@clisp.org>
36476             Jim Meyering  <jim@meyering.net>
36477
36478         Add an option for ignoring EPIPE during close_stdout.
36479         * lib/closeout.h: Include <stdbool.h>.
36480         (close_stdout_set_ignore_EPIPE): New declaration.
36481         * lib/closeout.c: Include <stdbool.h>.
36482         (ignore_EPIPE): New variable.
36483         (close_stdout_set_ignore_EPIPE): New function.
36484         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36485         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36486         failure.
36487         * modules/closeout (Depends-on): Add stdbool.
36488
36489 2008-10-05  Bruno Haible  <bruno@clisp.org>
36490
36491         * modules/accept: New file.
36492         * modules/bind: New file.
36493         * modules/connect: New file.
36494         * modules/getpeername: New file.
36495         * modules/getsockname: New file.
36496         * modules/getsockopt: New file.
36497         * modules/listen: New file.
36498         * modules/recv: New file.
36499         * modules/recvfrom: New file.
36500         * modules/send: New file.
36501         * modules/sendto: New file.
36502         * modules/setsockopt: New file.
36503         * modules/socket: New file.
36504         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36505         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36506         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36507         the particular module is requested. Add a link warning when the
36508         particular module is not requested.
36509         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36510         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36511         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36512         the particular module is requested.
36513         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36514         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36515         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36516         * modules/sys_socket (Depends-on): Add link-warning.
36517         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36518         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36519         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36520         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36521         GL_LINK_WARNING.
36522         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36523         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36524         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36525         * doc/posix-functions/getpeername.texi: Mention the new module
36526         'getpeername'.
36527         * doc/posix-functions/getsockname.texi: Mention the new module
36528         'getsockname'.
36529         * doc/posix-functions/getsockopt.texi: Mention the new module
36530         'getsockopt'.
36531         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36532         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36533         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36534         * doc/posix-functions/send.texi: Mention the new module 'send'.
36535         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36536         * doc/posix-functions/setsockopt.texi: Mention the new module
36537         'setsockopt'.
36538         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36539         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36540         listen, connect, accept.
36541         * modules/select-tests (Depends-on): Likewise.
36542
36543 2008-10-05  Bruno Haible  <bruno@clisp.org>
36544
36545         * lib/winsock.c (strerror): Remove unused #undef.
36546         (rpl_close): Remove unused local variable.
36547
36548         * modules/sys_socket (Depends-on); Add errno.
36549
36550 2008-10-05  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
36553         (select): Add a link warning when the 'select' module is not used.
36554         * modules/sys_select (Depends-on): Add link-warning.
36555         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
36556         Suggested by Paolo Bonzini.
36557
36558 2008-10-05  Jim Meyering  <meyering@redhat.com>
36559
36560         bootstrap: check for LT_INIT more portably
36561         * build-aux/bootstrap: Avoid using grep -E, since it's not
36562         portable enough.  Suggestion from Bruno Haible.
36563
36564 2008-10-05  Bruno Haible  <bruno@clisp.org>
36565
36566         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
36567         as being fixed by gnulib.
36568
36569 2008-10-05  Bruno Haible  <bruno@clisp.org>
36570
36571         * modules/select-tests: New file, mostly copied from
36572         modules/sys_select-tests.
36573         * tests/test-select.c: New file, mostly copied from
36574         tests/test-sys_select.c.
36575         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
36576         * modules/sys_select-tests (Depends-on): Remove all dependencies.
36577         (Makefile.am): Remove test_sys_select_LDADD.
36578
36579         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
36580         to an undefined symbol, for an error message.
36581         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
36582         (gl_SYS_SELECT_H_DEFAULTS): New macro.
36583         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
36584         winsock-select.c here.
36585         * modules/sys_select (Files): Remove lib/winsock-select.c.
36586         (Depends-on): Remove alloca.
36587         (Makefile.am): Substitute GNULIB_SELECT.
36588         * modules/select: New file.
36589         * doc/posix-functions/select.texi: Update.
36590
36591 2008-10-05  Bruno Haible  <bruno@clisp.org>
36592
36593         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
36594         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
36595         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
36596         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
36597         getdtablesize.
36598         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
36599         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
36600
36601 2008-10-05  Bruno Haible  <bruno@clisp.org>
36602
36603         * modules/getdtablesize-tests: New file.
36604         * tests/test-getdtablesize.c: New file.
36605
36606         New module 'getdtablesize'.
36607         * lib/unistd.in.h (getdtablesize): New declaration.
36608         * lib/getdtablesize.c: New file.
36609         * m4/getdtablesize.m4: New file.
36610         * modules/getdtablesize: New file.
36611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36612         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
36613         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
36614         HAVE_GETDTABLESIZE.
36615         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
36616
36617 2008-10-05  Bruno Haible  <bruno@clisp.org>
36618
36619         * modules/sched (Makefile.am): Fix typo.
36620         Reported by Simon Josefsson.
36621
36622 2008-10-05  Jim Meyering  <meyering@redhat.com>
36623
36624         bootstrap: check for LT_INIT, too
36625         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
36626         are deprecated.  Suggestion from Ralf Wildenhues.
36627
36628 2008-10-05  Bruno Haible  <bruno@clisp.org>
36629
36630         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
36631         overriding them by ours.
36632         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
36633
36634 2008-10-05  Jim Meyering  <meyering@redhat.com>
36635
36636         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
36637         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
36638         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
36639
36640 2008-10-04  Bruno Haible  <bruno@clisp.org>
36641
36642         * modules/dup2 (License): Change to LGPLv2+.
36643         * modules/sleep (License): Likewise.
36644         * modules/perror (License): Likewise.
36645         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
36646         Blake.
36647         * modules/signal (License): Likewise.
36648         * modules/sigprocmask (License): Likewise.
36649         * modules/raise (License): Change to LGPLv2+, with approval by Jim
36650         Meyering.
36651
36652 2008-10-04  Bruno Haible  <bruno@clisp.org>
36653
36654         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
36655         Reported by Rainer Tammer <tammer@tammer.net>.
36656
36657 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
36658             Bruno Haible  <bruno@clisp.org>
36659
36660         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
36661         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
36662         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
36663
36664 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
36665
36666         filevercmp: new module
36667         * lib/filevercmp.h: New function filevercmp comparing version strings.
36668         * lib/filevercmp.c: Implementation of filevercmp function.
36669         * modules/filevercmp: Module metadata.
36670         * tests/test-filevercmp.c: Unit test for new module.
36671         * modules/filevercmp-tests: Unit test metadata.
36672         * MODULES.html.sh: Add filevercmp module.
36673
36674 2008-10-03  Bruno Haible  <bruno@clisp.org>
36675
36676         * lib/c-ctype.h: Add comment.
36677         Reported by Jim Meyering.
36678
36679 2008-10-02  Bruno Haible  <bruno@clisp.org>
36680
36681         * modules/posix_spawn-internal (Depends-on): Add 'open'.
36682
36683 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36684
36685         * build-aux/bootstrap: Allow renaming bootstrap, and change the
36686         name of bootstrap.conf accordingly.
36687
36688 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36689
36690         * build-aux/bootstrap: Install git-merge-changelog configuration
36691         items into .gitconfig if needed.
36692
36693 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
36694
36695         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
36696         git repository, and initialize/update it accordingly.
36697
36698 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
36699
36700         * modules/fsync-tests: New file.
36701         * tests/test-fsync.c: New file.
36702
36703         New module 'fsync'.
36704         * lib/fsync.c: New file.
36705         * m4/fsync.m4: New file.
36706         * modules/fsync: New file.
36707         * lib/unistd.in.h (fsync): New declaration.
36708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
36709         GNULIB_FSYNC and HAVE_FSYNC.
36710         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
36711         * MODULES.html.sh (posix_functions): Add fsync.
36712         * doc/posix-functions/fsync.texi: Mention the new module.
36713
36714 2008-10-02  Jim Meyering  <meyering@redhat.com>
36715
36716         fts.c: sync with similar code from coreutils' remove.c
36717         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
36718         Guard also with "#if defined __linux__", since for now at least,
36719         this code is Linux-kernel-specific.
36720
36721 2008-10-02  Jim Meyering  <meyering@redhat.com>
36722
36723         fts: bug fixes
36724         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
36725         Include <sys/vfs.h>, not <sys/statfs.h>.
36726
36727         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
36728         Include <sys/vfs.h>, not <sys/statfs.h>.
36729
36730 2008-10-01  Bruno Haible  <bruno@clisp.org>
36731
36732         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
36733         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
36734         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
36735         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
36736         * doc/posix-functions/posix_spawnp.texi: Likewise.
36737         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
36738         whether posix_spawn actually works.
36739         * m4/pipe.m4 (gl_PIPE): Likewise.
36740         * modules/execute (Files): Add m4/posix_spawn.m4.
36741         * modules/pipe (Files): Add m4/posix_spawn.m4.
36742         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
36743
36744 2008-10-01  Jim Meyering  <meyering@redhat.com>
36745
36746         remove trailing spaces
36747         * NEWS: Likewise.
36748         * lib/poll.c (poll): Likewise.
36749         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
36750         * lib/winsock.c (rpl_close): Likewise.
36751         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
36752         * modules/yield: Likewise.
36753         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
36754         * tests/test-sys_select.c (connect_to_socket): Likewise.
36755
36756         fts.c: adjust a new interface to be more generally useful
36757         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
36758         (fts_build): Adjust caller.
36759
36760 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36761
36762         * modules/cond-tests: New file.
36763         * tests/test-cond.c: New file.
36764
36765 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36766             Bruno Haible  <bruno@clisp.org>
36767
36768         * modules/cond (Dependencies): Add errno, time.
36769         * lib/glthread/cond.h: Include <time.h>.
36770         (gl_cond_define, gl_cond_define_initialized): Use the same definition
36771         across platforms.
36772
36773 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36774             Bruno Haible  <bruno@clisp.org>
36775
36776         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
36777
36778 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36779             Bruno Haible  <bruno@clisp.org>
36780
36781         * modules/tls-tests (Depends-on): Add thread, yield.
36782         (configure.ac): Remove all checks.
36783         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
36784         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36785         gl_thread_self): Remove definitions. Include glthread/thread.h and
36786         glthread/yield.h instead.
36787         (test_tls): Pass an additional NULL argument to gl_thread_join.
36788
36789 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36790             Bruno Haible  <bruno@clisp.org>
36791
36792         * modules/lock-tests (Depends-on): Add thread, yield.
36793         (configure.ac): Remove all checks.
36794         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
36795         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
36796         gl_thread_self): Remove definitions. Include glthread/thread.h and
36797         glthread/yield.h instead.
36798         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
36799         additional NULL argument to gl_thread_join.
36800
36801 2008-09-30  Bruno Haible  <bruno@clisp.org>
36802
36803         Fix the Win32 implementation of the 'thread' module.
36804         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
36805         pointer type.
36806         (gl_thread_self): Invoke gl_thread_self_func.
36807         (gl_thread_self_func): New declaration.
36808         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
36809         (do_init_self_key, init_self_key): New functions.
36810         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
36811         Remove some fields.
36812         (running_threads, running_lock): Remove variables.
36813         (get_current_thread_handle): New function.
36814         (gl_thread_self_func, wrapper_func, glthread_create_func,
36815         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36816         simplified.
36817
36818 2008-09-30  Bruno Haible  <bruno@clisp.org>
36819
36820         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36821         files.
36822
36823 2008-09-30  Jim Meyering  <meyering@redhat.com>
36824
36825         fts.m4: correct the test for statfs.f_type
36826         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36827         when checking for statfs.f_type.
36828
36829 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36830
36831         tests: avoid some compiler warnings
36832         * tests/test-memchr.c (main): Pass NULL indirectly.
36833         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36834
36835 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
36836
36837         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36838         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36839         exactly specified dayshifts.
36840         (dayshift): New rule.
36841         (rel): Add dayshift.
36842         (relative_time_table) [tomorrow, yesterday, today, now]:
36843         Use tDAY_SHIFT in place of tDAY_UNIT.
36844         * tests/test-getdate.c: Add tests for now-disallowed countable
36845         dayshifts, e.g., "4 yesterday ago".
36846
36847 2008-09-29  Bruno Haible  <bruno@clisp.org>
36848
36849         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36850         * tests/test-posix_spawn1.in.sh: Renamed from
36851         tests/test-posix_spawn.in.sh.
36852         * tests/test-posix_spawn2.c: New file.
36853         * tests/test-posix_spawn2.in.sh: New file.
36854         * modules/posix_spawnp-tests (Files): Update.
36855         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36856
36857 2008-09-29  Bruno Haible  <bruno@clisp.org>
36858
36859         Propagate effects of putenv/setenv/unsetenv to child processes.
36860         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36861         * lib/pipe.c (create_pipe): Likewise.
36862
36863 2008-09-29  Bruno Haible  <bruno@clisp.org>
36864
36865         Enable use of shell scripts as executables in mingw.
36866         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36867         run the program as a shell script.
36868         * lib/pipe.c (create_pipe): Likewise.
36869         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36870         resulting array.
36871
36872 2008-09-29  Eric Blake  <ebb9@byu.net>
36873
36874         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36875
36876 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36877
36878         * doc/posix-functions/accept.texi: Update mingw problems.
36879         * doc/posix-functions/bind.texi: Update mingw problems.
36880         * doc/posix-functions/close.texi: Update mingw problems.
36881         * doc/posix-functions/connect.texi: Update mingw problems.
36882         * doc/posix-functions/getpeername.texi: Update mingw problems.
36883         * doc/posix-functions/getsockname.texi: Update mingw problems.
36884         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36885         * doc/posix-functions/ioctl.texi: Update mingw problems.
36886         * doc/posix-functions/listen.texi: Update mingw problems.
36887         * doc/posix-functions/recv.texi: Update mingw problems.
36888         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36889         * doc/posix-functions/select.texi: Update mingw problems.
36890         * doc/posix-functions/send.texi: Update mingw problems.
36891         * doc/posix-functions/sendto.texi: Update mingw problems.
36892         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36893         * doc/posix-functions/socket.texi: Update mingw problems.
36894
36895 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36896             Bruno Haible  <bruno@clisp.org>
36897
36898         * lib/sys_select.in.h: Include sys/time.h.
36899         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36900         * modules/sys_select: Depend on sys_time.
36901         * tests/test-sys_select.c: Test that sys/select.h defines struct
36902         timeval fully.
36903
36904 2008-09-29  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36907         * lib/sys_select.in.h: Likewise.
36908
36909 2008-09-29  Bruno Haible  <bruno@clisp.org>
36910
36911         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36912
36913 2008-09-29  Bruno Haible  <bruno@clisp.org>
36914
36915         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36916         Set LIBSOCKET instead of augmenting LIBS.
36917         * modules/sockets (Link): New section.
36918         * modules/sockets-tests (test_sockets_LDADD): New variable.
36919         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36920         * modules/poll-tests (test_poll_LDADD): New variable.
36921         * NEWS: Document the change.
36922
36923 2008-09-29  Bruno Haible  <bruno@clisp.org>
36924
36925         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36926         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36927         ARPA_INET_H directly.
36928         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36929
36930 2008-09-28  Bruno Haible  <bruno@clisp.org>
36931
36932         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36933         from gl_HEADER_SYS_SOCKET.
36934         (gl_HEADER_SYS_SOCKET): Invoke it.
36935         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36936
36937 2008-09-28  Bruno Haible  <bruno@clisp.org>
36938
36939         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36940         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36941         Needed on OSF/1 4.0.
36942
36943 2008-09-28  Bruno Haible  <bruno@clisp.org>
36944
36945         Override open more carefully.
36946         * lib/open.c (orig_open): New function.
36947         (rpl_open): Use orig_open instead of open.
36948         * lib/fcntl.in.h: Add special invocation convention.
36949         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36950         (gl_FUNC_OPEN): Invoke it.
36951
36952         Override freopen more carefully.
36953         * lib/freopen.c (orig_freopen): New function.
36954         (rpl_freopen): Use orig_freopen instead of freopen.
36955         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36956         (gl_FUNC_FREOPEN): Invoke it.
36957
36958         Override fopen more carefully.
36959         * lib/fopen.c (orig_fopen): New function.
36960         (rpl_fopen): Use orig_fopen instead of fopen.
36961         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36962         (gl_FUNC_FOPEN): Invoke it.
36963         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36964
36965 2008-09-28  Bruno Haible  <bruno@clisp.org>
36966
36967         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36968         SIGPIPE.
36969
36970 2008-09-28  Bruno Haible  <bruno@clisp.org>
36971
36972         * tests/test-sigaction.c (handler, main): Disable the check whether
36973         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36974         glibc systems with LinuxThreads.
36975
36976 2008-09-28  Bruno Haible  <bruno@clisp.org>
36977
36978         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36979
36980         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36981         with AIX xlc.
36982         * lib/fcntl.in.h (open): Likewise.
36983         Reported by Rainer Tammer <tammer@tammer.net>.
36984
36985 2008-09-28  Bruno Haible  <bruno@clisp.org>
36986
36987         * modules/posix_spawnp-tests: New file.
36988         * tests/test-posix_spawn.c: New file.
36989         * tests/test-posix_spawn.in.sh: New file.
36990
36991         New module 'posix_spawnp'.
36992         * modules/posix_spawnp: New file.
36993         * lib/spawnp.c: New file, from GNU libc with modifications.
36994         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36995
36996         New module 'posix_spawn'.
36997         * modules/posix_spawn: New file.
36998         * lib/spawn.c: New file, from GNU libc with modifications.
36999         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37000
37001         New module 'posix_spawnattr_destroy'.
37002         * modules/posix_spawnattr_destroy: New file.
37003         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37004         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37005         module.
37006
37007         New module 'posix_spawnattr_setsigmask'.
37008         * modules/posix_spawnattr_setsigmask: New file.
37009         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37010         modifications.
37011         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37012         new module.
37013
37014         New module 'posix_spawnattr_getsigmask'.
37015         * modules/posix_spawnattr_getsigmask: New file.
37016         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37017         modifications.
37018         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37019         new module.
37020
37021         New module 'posix_spawnattr_setsigdefault'.
37022         * modules/posix_spawnattr_setsigdefault: New file.
37023         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37024         modifications.
37025         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37026         new module.
37027
37028         New module 'posix_spawnattr_getsigdefault'.
37029         * modules/posix_spawnattr_getsigdefault: New file.
37030         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37031         modifications.
37032         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37033         new module.
37034
37035         New module 'posix_spawnattr_setschedpolicy'.
37036         * modules/posix_spawnattr_setschedpolicy: New file.
37037         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37038         modifications.
37039         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37040         new module.
37041
37042         New module 'posix_spawnattr_getschedpolicy'.
37043         * modules/posix_spawnattr_getschedpolicy: New file.
37044         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37045         modifications.
37046         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37047         new module.
37048
37049         New module 'posix_spawnattr_setschedparam'.
37050         * modules/posix_spawnattr_setschedparam: New file.
37051         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37052         modifications.
37053         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37054         new module.
37055
37056         New module 'posix_spawnattr_getschedparam'.
37057         * modules/posix_spawnattr_getschedparam: New file.
37058         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37059         modifications.
37060         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37061         new module.
37062
37063         New module 'posix_spawnattr_setpgroup'.
37064         * modules/posix_spawnattr_setpgroup: New file.
37065         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37066         modifications.
37067         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37068         module.
37069
37070         New module 'posix_spawnattr_getpgroup'.
37071         * modules/posix_spawnattr_getpgroup: New file.
37072         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37073         modifications.
37074         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37075         module.
37076
37077         New module 'posix_spawnattr_setflags'.
37078         * modules/posix_spawnattr_setflags: New file.
37079         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37080         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37081         module.
37082
37083         New module 'posix_spawnattr_getflags'.
37084         * modules/posix_spawnattr_getflags: New file.
37085         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37086         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37087         module.
37088
37089         New module 'posix_spawnattr_init'.
37090         * modules/posix_spawnattr_init: New file.
37091         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37092         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37093         module.
37094
37095         New module 'posix_spawn_file_actions_destroy'.
37096         * modules/posix_spawn_file_actions_destroy: New file.
37097         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37098         modifications.
37099         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37100         the new module.
37101
37102         New module 'posix_spawn_file_actions_addopen'.
37103         * modules/posix_spawn_file_actions_addopen: New file.
37104         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37105         modifications.
37106         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37107         the new module.
37108
37109         New module 'posix_spawn_file_actions_adddup2'.
37110         * modules/posix_spawn_file_actions_adddup2: New file.
37111         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37112         modifications.
37113         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37114         the new module.
37115
37116         New module 'posix_spawn_file_actions_addclose'.
37117         * modules/posix_spawn_file_actions_addclose: New file.
37118         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37119         modifications.
37120         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37121         the new module.
37122
37123         New module 'posix_spawn_file_actions_init'.
37124         * modules/posix_spawn_file_actions_init: New file.
37125         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37126         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37127         new module.
37128
37129         New module 'posix_spawn-internal'.
37130         * modules/posix_spawn-internal: New file.
37131         * lib/spawn_int.h: New file, from GNU libc with modifications.
37132         * lib/spawni.c: New file, from GNU libc with modifications.
37133         * m4/posix_spawn.m4: New file.
37134
37135         New module 'spawn'.
37136         * modules/spawn: New file.
37137         * lib/spawn.in.h: New file, from GNU libc with modifications.
37138         * m4/spawn_h.m4: New file.
37139         * doc/posix-headers/spawn.texi: Mention the new module.
37140
37141 2008-09-28  Bruno Haible  <bruno@clisp.org>
37142
37143         * modules/sched-tests: New file.
37144         * tests/test-sched.c: New file.
37145
37146         New module 'sched'.
37147         * modules/sched: New file.
37148         * lib/sched.in.h: New file.
37149         * m4/sched_h.m4: New file.
37150         * doc/posix-headers/sched.texi: Mention the new module.
37151
37152 2008-09-27  Eric Blake  <ebb9@byu.net>
37153
37154         Fix previous patch, and tweak references to $0.
37155         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37156         (func_version, func_gnulib_dir): Don't call this program
37157         gnulib-tool.
37158         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37159         with using $0 in function.
37160         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37161         (func_fatal_error): Reuse the name the user invoked us with.
37162
37163 2008-09-27  Bruno Haible  <bruno@clisp.org>
37164
37165         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37166         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37167         (gl_ICONV_H): Not here.
37168         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37169         instead of assigning ICONV_H directly.
37170
37171         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37173         WCHAR_H directly.
37174
37175 2008-09-27  Bruno Haible  <bruno@clisp.org>
37176
37177         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37178         * modules/arpa_inet (Depends-on): Add link-warning.
37179         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37180         * modules/unistd (Makefile.am): Likewise.
37181
37182 2008-09-26  Bruno Haible  <bruno@clisp.org>
37183
37184         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37185         variables.
37186         (func_version): Essentially copied from gnulib-tool.
37187         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37188         func_readlink): Copied from gnulib-tool.
37189
37190 2008-09-26  Bruno Haible  <bruno@clisp.org>
37191
37192         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37193         invoking git-version-gen.
37194
37195 2008-09-26  Bruno Haible  <bruno@clisp.org>
37196
37197         * posix-modules: Update to directory names changed on 2008-01-19.
37198         Remove commas in output before splitting into words. No more need to
37199         avoid 'ftruncate' since 2007-02-19.
37200
37201 2008-09-26  Bruno Haible  <bruno@clisp.org>
37202
37203         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37204
37205 2008-09-26  Bruno Haible  <bruno@clisp.org>
37206
37207         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37208         * modules/fwriteerror (Depends-on): Add errno.
37209
37210 2008-09-26  Bruno Haible  <bruno@clisp.org>
37211
37212         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37213         * tests/test-vc-list-files-cvs.sh: Likewise.
37214
37215 2008-09-26  Bruno Haible  <bruno@clisp.org>
37216
37217         * doc/posix-headers/sys_resource.texi: Reorder items.
37218
37219 2008-09-26  Jim Meyering  <meyering@redhat.com>
37220
37221         fts: tweak inode comparison function
37222         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37223         inode numbers, as documented.
37224
37225         fts: sort dirent entries on inode number before traversing
37226         This avoids a quadratic, seek-related performance penalty when
37227         operating on a directory containing many entries (measurable at 10k;
37228         3.5 hours at 2 million entries with a cold cache) on certain types
37229         of file systems, including ext3 and ext4, but not tmpfs.
37230         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37231         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37232         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37233         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37234         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37235         (fts_build): Set the stat.st_ino member from D_INO.
37236         If it is likely to be useful, sort dirent entries on inode number.
37237
37238         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37239         and the struct statfs.f_type member.
37240         * modules/fts (Depends-on): Add d-ino.
37241
37242 2008-09-26  Bruno Haible  <bruno@clisp.org>
37243
37244         * modules/sigpipe-die (Depends-on): Add sigpipe.
37245
37246         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37247         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37248         and GNULIB_STDIO_H_SIGPIPE are set.
37249         * lib/stdio-write.c: New file.
37250         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37251         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37252         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37253         REPLACE_STDIO_WRITE_FUNCS.
37254         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37255         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37256         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37257         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37258         * modules/stdio (Files): Add lib/stdio-write.c.
37259         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37260         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37261         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37262         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37263         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37264         REPLACE_FPRINTF_POSIX.
37265         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37266         REPLACE_PRINTF_POSIX.
37267         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37268         REPLACE_VFPRINTF_POSIX.
37269         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37270         REPLACE_VPRINTF_POSIX.
37271         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37272         SIGPIPE issue.
37273         * doc/posix-functions/fputc.texi: Likewise.
37274         * doc/posix-functions/fputs.texi: Likewise.
37275         * doc/posix-functions/fwrite.texi: Likewise.
37276         * doc/posix-functions/printf.texi: Likewise.
37277         * doc/posix-functions/putc.texi: Likewise.
37278         * doc/posix-functions/putchar.texi: Likewise.
37279         * doc/posix-functions/puts.texi: Likewise.
37280         * doc/posix-functions/vfprintf.texi: Likewise.
37281         * doc/posix-functions/vprintf.texi: Likewise.
37282
37283         * modules/safe-write (Depends-on): Add write.
37284
37285         * modules/sigpipe-tests: New file.
37286         * tests/test-sigpipe.c: New file.
37287         * tests/test-sigpipe.sh: New file.
37288
37289         * modules/write: New file.
37290         * lib/unistd.in.h: Include <sys/types.h>.
37291         (write): New declaration.
37292         * lib/write.c: New file.
37293         * m4/write.m4: New file.
37294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37295         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37296         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37297         GNULIB_WRITE, REPLACE_WRITE.
37298         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37299         and the SIGPIPE issue.
37300
37301         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37302         (raise): New declaration.
37303         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37304         (ext_signal): New function.
37305         (rpl_raise): New function.
37306         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37307         GNULIB_SIGNAL_H_SIGPIPE.
37308         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37309         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37310
37311         * modules/sigpipe: New file.
37312         * m4/sigpipe.m4: New file.
37313
37314 2008-09-25  Derek Price  <derek@ximbiot.com>
37315             Bruno Haible  <bruno@clisp.org>
37316
37317         * gnulib-tool (func_import): Report all license incompatibilities, not
37318         just the first one.
37319
37320 2008-09-25  Bruno Haible  <bruno@clisp.org>
37321
37322         * gnulib-tool (func_import): When computing the edits, consider not
37323         only the Makefile.ams that exist but also those that will be generated.
37324
37325 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37326
37327         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37328         fixes gnulib-tool --test warning about duplicate dependency.
37329
37330 2008-09-25  Bruno Haible  <bruno@clisp.org>
37331
37332         * gnulib-tool: Don't ask the user to perform edits in the generated
37333         Makefile.ams.
37334         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37335         apply to the Makefile.am being generated.
37336         (func_emit_tests_Makefile_am): Execute edits that apply to the
37337         Makefile.am being generated.
37338         (func_import): Setup list of Makefile.am edits before emitting the
37339         Makefile.ams, not at the end.
37340         (func_create_testdir): Update.
37341         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37342
37343 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37344
37345         * gnulib-tool (func_import): Store the --tests-base option in the
37346         comment in gnulib-cache.m4.
37347
37348 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37349
37350         * NEWS: Document increased portability that sys_select now provides.
37351
37352         * lib/sys_select.in.h: Install select wrapper.
37353         * lib/sys_socket.in.h: Use more descriptive name when there is no
37354         select wrapper.
37355         * lib/winsock-select.c: New.
37356         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37357         Require gl_HEADER_SYS_SOCKET.
37358         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37359         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37360         * tests/test-sys_select.c: Add functional tests.
37361
37362 2008-09-24  Eric Blake  <ebb9@byu.net>
37363
37364         open, fopen: close fd leak in last patch
37365         * lib/open.c (rpl_open): Close fd before returning error.
37366         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37367         * doc/posix-functions/open.texi (open): Document that Irix also
37368         has the bug.
37369         * doc/posix-functions/fopen.texi (fopen): Likewise.
37370         Reported by Paolo Bonzini.
37371
37372 2008-09-24  Bruno Haible  <bruno@clisp.org>
37373
37374         Ensure that a filename ending in a slash cannot be used to access a
37375         non-directory.
37376         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37377         to check whether it's really a directory.
37378         * lib/fopen.c: Include fcntl.h, unistd.h.
37379         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37380         and fdopen().
37381         * modules/fopen (Depends-on): Add unistd.
37382         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37383         * tests/test-fopen.c (main): Likewise.
37384         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37385         * doc/posix-functions/fopen.texi: Likewise.
37386         Reported by Eric Blake.
37387
37388 2008-09-23  Eric Blake  <ebb9@byu.net>
37389
37390         c-stack: avoid compiler optimizations when provoking overflow
37391         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37392         recursion harder to optimize, to ensure a stack overflow occurs.
37393         * tests/test-c-stack.c (recurse): Likewise.
37394         Borrowed from libsigsegv.
37395
37396         c-stack: work around Irix sigaltstack bug
37397         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37398         whether sigaltstack uses wrong end of stack_t (copied in part from
37399         libsigsegv).
37400         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37401         Irix bug, without requiring an over-allocation.
37402         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37403         bug.
37404
37405         fopen: document mingw bug on directories
37406         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37407         not allowing a stream visiting a directory, even though reading
37408         from such a stream is not portable.
37409
37410 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37411
37412         * lib/poll.c: Rewrite.
37413         * modules/poll: Depend on alloca.
37414
37415 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37416
37417         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37418         instead define prototypes for a full set of wrappers.  Ensure
37419         that Cygwin does not use the compatibility code, which is only
37420         for MinGW.
37421         * lib/winsock.c: New.
37422         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37423         * modules/sys_socket: Add lib/winsock.c.
37424
37425         * modules/poll-tests: Add errno and perror.
37426         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37427
37428 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37429
37430         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37431
37432 2008-09-23  Bruno Haible  <bruno@clisp.org>
37433
37434         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37435         * doc/glibc-functions/*: Likewise.
37436
37437 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37438
37439         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37440         success.
37441
37442 2008-09-22  Eric Blake  <ebb9@byu.net>
37443             Bruno Haible  <bruno@clisp.org>
37444
37445         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37446         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37447         supply %A but mishandle pseudo-NaN.
37448         Reported by Simon Josefsson.
37449
37450 2008-09-21  Bruno Haible  <bruno@clisp.org>
37451
37452         * tests/test-lock.c (main): Tweak skip message.
37453         * tests/test-tls.c (main): Likewise.
37454
37455 2008-09-21  Bruno Haible  <bruno@clisp.org>
37456
37457         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37458         whether 'struct sigaction' has sa_sigaction here...
37459         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37460         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37461
37462 2008-09-21  Bruno Haible  <bruno@clisp.org>
37463
37464         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37465         section.
37466         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37467         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37468         the new section.
37469         (Support for obsolete systems lacking POSIX:2001): New section.
37470         (String handling <string.h>): Move strdup to the new section.
37471         Suggested by Simon Josefsson and Paolo Bonzini.
37472
37473 2008-09-21  Bruno Haible  <bruno@clisp.org>
37474
37475         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37476         exponents in %e and %g results on 'long double'. Needed for mingw's
37477         improved *printf functions.
37478         * tests/test-vasprintf-posix.c (test_function): Likewise.
37479         * tests/test-snprintf-posix.h (test_function): Likewise.
37480         * tests/test-sprintf-posix.h (test_function): Likewise.
37481         Reported by Eric Blake.
37482
37483 2008-09-21  Bruno Haible  <bruno@clisp.org>
37484
37485         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37486         * tests/test-sprintf-posix.h (test_function): Likewise.
37487
37488 2008-09-21  Bruno Haible  <bruno@clisp.org>
37489
37490         * modules/getpass (Depends-on): Add strdup-posix.
37491
37492         New module 'strdup-posix'.
37493         * modules/strdup-posix: New file.
37494         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37495         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37496         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37497         REPLACE_STRDUP.
37498         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37499         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37500         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37501         strdup-posix.
37502
37503         * modules/strdup (Depends-on): Remove malloc-posix.
37504
37505 2008-09-20  Bruno Haible  <bruno@clisp.org>
37506
37507         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37508         Wildenhues.
37509
37510 2008-09-20  Bruno Haible  <bruno@clisp.org>
37511
37512         Ensure that wint_t gets defined on IRIX 5.3.
37513         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37514         * lib/wctype.in.h (wint_t): Likewise.
37515         (__wctype_wint_t): Remove type.
37516         (isw*): Use wint_t instead of __wctype_wint_t.
37517         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37518         * modules/wchar (Files): Add m4/wint_t.m4.
37519         (Makefile.am): Substitute HAVE_WINT_T.
37520         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37521         * tests/test-wctype.c: Check that wint_t is defined.
37522         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37523         * doc/posix-headers/wctype.texi: Likewise.
37524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37525
37526 2008-09-18  Bruno Haible  <bruno@clisp.org>
37527
37528         * gnulib-tool (func_exit): Update comment.
37529
37530 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37531
37532         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37533         assumes strdup exists and does not depend on strdup to return
37534         ENOMEM on out of memory conditions.
37535
37536 2008-09-18  Bruno Haible  <bruno@clisp.org>
37537
37538         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37539         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37540         digits for the exponent.
37541
37542 2008-09-18  Jim Meyering  <meyering@redhat.com>
37543             Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/vasnprintf.c (decimal_point_char): Define also if
37546         NEED_PRINTF_INFINITE_LONG_DOUBLE.
37547
37548 2008-09-16  Bruno Haible  <bruno@clisp.org>
37549         and Eric Blake  <ebb9@byu.net>
37550
37551         vasnprintf: support Irix 5.3
37552         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
37553         that mishandle long double infinity.
37554         Reported by Tom G. Christensen.
37555
37556 2008-09-16  Bruno Haible  <bruno@clisp.org>
37557
37558         * doc/glibc-functions/scandir.texi: Mention the function is missing on
37559         Solaris 9.
37560         * doc/glibc-functions/alphasort.texi: Likewise.
37561         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
37562
37563 2008-09-16  Jim Meyering  <meyering@redhat.com>
37564
37565         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
37566         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
37567         a umask modification leak out of a subshell.  Otherwise, the
37568         opensolaris /bin/sh would be accepted and thus cause unwarranted
37569         failures in the coreutils test suite.
37570
37571 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
37572
37573         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
37574         to succeed.
37575
37576 2008-09-16  Jim Meyering  <meyering@redhat.com>
37577
37578         avoid spurious test failure when library is built without ACL support
37579         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
37580         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
37581         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
37582         * tests/test-copy-acl.sh: Likewise.
37583
37584 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37585
37586         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
37587         based on character occurrence counts.
37588
37589 2008-09-15  Eric Blake  <ebb9@byu.net>
37590
37591         tests: avoid some compiler warnings
37592         * tests/test-memchr.c (main): Pass NULL indirectly.
37593         * tests/test-closein.c (main): Avoid unused variable.
37594
37595 2008-09-15  Bruno Haible  <bruno@clisp.org>
37596
37597         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
37598         are missing on OpenBSD 4.0 individually.
37599         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37600
37601 2008-09-15  Bruno Haible  <bruno@clisp.org>
37602
37603         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
37604         * doc/posix-functions/strerror.texi: Mention also Cygwin.
37605         * doc/posix-functions/perror.texi: Likewise.
37606         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
37607         is missing.
37608         Reported by Eric Blake.
37609
37610         * lib/errno.in.h: Use replacement values >= 2000.
37611         Reported by Eric Blake.
37612
37613 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37614
37615         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
37616         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
37617         limit.
37618         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
37619         compareseq was aborted.
37620
37621 2008-09-14  Bruno Haible  <bruno@clisp.org>
37622
37623         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
37624         yvec_edit_count.
37625         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
37626         (fstrcmp_bounded): Simplify result computation accordingly.
37627
37628 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37629
37630         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
37631         (fstrcmp): Define in terms of fstrcmp_bounded.
37632         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
37633         lower_bound argument.
37634         Return quickly if the result is certainly < lower_bound.
37635         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
37636
37637 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37638
37639         * lib/diffseq.h (EARLY_ABORT): New macro.
37640         (compareseq): Change return type to bool. Return true when EARLY_ABORT
37641         evaluates to true.
37642
37643 2008-09-14  Bruno Haible  <bruno@clisp.org>
37644
37645         * modules/perror-tests: New file.
37646         * tests/test-perror.sh: New file.
37647         * tests/test-perror.c: New file.
37648
37649         New module 'perror'.
37650         * lib/stdio.in.h (perror): New declaration.
37651         * lib/perror.c: New file.
37652         * m4/perror.m4: New file.
37653         * modules/perror: New file.
37654         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
37655         * doc/posix-functions/perror.texi: Mention the perror module.
37656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
37657         REPLACE_PERROR.
37658         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
37659         REPLACE_PERROR.
37660
37661 2008-09-14  Bruno Haible  <bruno@clisp.org>
37662
37663         * modules/stdio (Makefile.am): Reorder to match the order in
37664         lib/stdio.in.h.
37665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37666
37667 2008-09-13  Bruno Haible  <bruno@clisp.org>
37668
37669         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
37670
37671 2008-09-13  Bruno Haible  <bruno@clisp.org>
37672
37673         Extend strerror to cover the added errno values.
37674         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
37675         (rpl_strerror): Provide error messages for the added errno values and
37676         for the WSA* values.
37677         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
37678         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
37679         strerror.
37680         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
37681         * modules/strerror (Depends-on): Add errno.
37682         * doc/posix-functions/strerror.texi: Document the change.
37683         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
37684         and EOVERFLOW.
37685
37686 2008-09-13  Bruno Haible  <bruno@clisp.org>
37687
37688         * modules/EOVERFLOW: Remove file.
37689         * m4/eoverflow.m4: Remove file.
37690         * modules/EOVERFLOW-tests: Remove file.
37691         * tests/test-EOVERFLOW.c: Remove file.
37692         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
37693         * modules/ftell (Depends-on): Likewise.
37694         * modules/getdelim (Depends-on): Likewise.
37695         * modules/getugroups (Depends-on): Likewise.
37696         * modules/poll (Depends-on): Likewise.
37697         * modules/snprintf (Depends-on): Likewise.
37698         * modules/sprintf-posix (Depends-on): Likewise.
37699         * modules/vasnprintf (Depends-on): Likewise.
37700         * modules/vasprintf (Depends-on): Likewise.
37701         * modules/vfprintf-posix (Depends-on): Likewise.
37702         * modules/vsnprintf (Depends-on): Likewise.
37703         * modules/vsprintf-posix (Depends-on): Likewise.
37704         * modules/xvasprintf (Depends-on): Likewise.
37705         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37706         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
37707         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
37708         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
37709         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37710         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
37711         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
37712         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
37713         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37714         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
37715         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
37716         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
37717         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37718         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
37719         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
37720         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
37721         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37722         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
37723         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
37724         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
37725         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37726         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
37727         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
37728         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
37729         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
37730         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37731         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
37732         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
37733         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
37734         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
37735         * MODULES.html.sh: Remove EOVERFLOW.
37736         * NEWS: Mention the change.
37737
37738 2008-09-13  Bruno Haible  <bruno@clisp.org>
37739
37740         * modules/errno-tests: New file.
37741         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
37742
37743         * lib/errno.in.h: New file.
37744         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
37745         * modules/errno: New file.
37746         * doc/posix-headers/errno.texi: Update documentation.
37747         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
37748
37749 2008-09-13  Bruno Haible  <bruno@clisp.org>
37750
37751         * tests/test-poll.c: Use #if for native Windows, rather than testing
37752         __MSVCRT__.
37753
37754 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37755             Bruno Haible  <bruno@clisp.org>
37756
37757         * lib/glob.c: Don't include <pwd.h> on native Windows.
37758         (WINDOWS32): New macro.
37759         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
37760
37761 2008-09-13  Bruno Haible  <bruno@clisp.org>
37762
37763         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
37764         (ETIMEDOUT): Remove macro.
37765         (glthread_cond_timedwait_multithreaded): New declaration.
37766         (glthread_cond_timedwait): Use it.
37767         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
37768         (glthread_cond_timedwait_multithreaded): New function.
37769
37770 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37771
37772         * modules/poll-tests: Do not check for io.h.
37773         * tests/test-poll.c: Check for __MSVCRT__ instead.
37774
37775 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37776
37777         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
37778         * modules/poll-tests: Add inet_pton, stdbool, sockets.
37779         * tests/test-poll.c: Use them.  Use _pipe on Windows.
37780
37781 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
37782
37783         * modules/poll-tests: New.
37784         * tests/test-poll.c: New.
37785
37786 2008-09-12  Eric Blake  <ebb9@byu.net>
37787
37788         frexp: test for NetBSD failure on -0.0
37789         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
37790         not all, bugs from NetBSD 3.0 have been fixed.
37791         * doc/posix-functions/frexp.texi (frexp): Document bug.
37792         Reported by Thomas Klausner.
37793
37794         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
37795         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
37796         literal -0.0.
37797         Reported by Jonathan C. Patschke <jp@centtech.com>.
37798
37799 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37800
37801         * lib/glthread/cond.h: Use dummy implementation also if
37802         USE_WIN32_THREADS.
37803
37804 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37805
37806         * modules/fnmatch-posix (License): Change to LGPLv2+.
37807         * modules/fnmatch-gnu (License): Likewise.
37808
37809 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37810
37811         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37812
37813 2008-09-11  Jim Meyering  <meyering@redhat.com>
37814
37815         * users.txt: Add gtk-vnc.
37816
37817 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37818
37819         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37820         rotate amounts.
37821
37822         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37823         required for 16-bit and 8-bit rotates.
37824         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37825         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37826         UINT8_MAX instead of hard-coded constants.
37827         Suggested by Paul Eggert.
37828
37829 2008-09-07  Bruno Haible  <bruno@clisp.org>
37830
37831         * tests/test-striconveh.c (main): Check behaviour when converting from
37832         UTF-7.
37833
37834         Make striconveh work better with stateful encodings.
37835         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37836         that iconv does not increment the inptr when returning -1/EINVAL.
37837
37838 2008-09-07  Bruno Haible  <bruno@clisp.org>
37839
37840         * build-aux/config.rpath: Update according to libtool-2.2.6.
37841         * build-aux/config.libpath: Likewise.
37842
37843 2008-09-06  Bruno Haible  <bruno@clisp.org>
37844
37845         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37846         * lib/freadptr.c (freadptr): Likewise.
37847         * lib/freadseek.c (freadptrinc): Likewise.
37848         Reported by Simon Josefsson.
37849
37850 2008-09-06  Bruno Haible  <bruno@clisp.org>
37851
37852         * modules/freadptr (License): Change to LGPLv2+.
37853         * modules/freadseek (License): Likewise.
37854         Suggested by Eric Blake.
37855
37856         * modules/memchr2 (License): Change to LGPLv2+.
37857         Approved by Eric Blake.
37858
37859 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37860             Bruno Haible  <bruno@clisp.org>
37861
37862         Make gnulib-tool work with native 'sed' on AIX.
37863         * gnulib-tool (sed_noop): New variable.
37864         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37865         func_add_or_update, func_create_testdir): Use it to initialize sed
37866         script variables.
37867         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37868
37869 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37870             Bruno Haible  <bruno@clisp.org>
37871
37872         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37873         also works after #include directives.
37874
37875 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37876
37877         getdate.y: reject an out-of-range timezone value
37878         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37879         the range [-24...+24].  When specified with only one or two digits,
37880         * tests/test-getdate.c: Tests for the fix.
37881         * doc/getdate.texi: Document this change.
37882
37883 2008-09-03  Bruno Haible  <bruno@clisp.org>
37884
37885         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37886
37887 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37888
37889         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37890         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37891         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37892         Blake <ebb9@byu.net>.
37893
37894         * tests/test-bitrotate.c: Add more test vectors.
37895
37896 2008-09-02  Eric Blake  <ebb9@byu.net>
37897
37898         vasnprintf-posix: handle large precision via %.*d
37899         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37900         when handling it ourselves.
37901         * tests/test-vasnprintf-posix.c (test_function): Add test.
37902         * tests/test-snprintf-posix.h (test_function): Likewise.
37903         * tests/test-sprintf-posix.h (test_function): Likewise.
37904         * tests/test-vasprintf-posix.c (test_function): Likewise.
37905         Reported by Alain Guibert.
37906
37907 2008-09-01  Eric Blake  <ebb9@byu.net>
37908
37909         c-stack: make configure-time check more robust
37910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37911         successful sigaction call.
37912         Reported by Tom G. Christensen.
37913
37914 2008-09-01  Bruno Haible  <bruno@clisp.org>
37915
37916         New module 'findprog-lgpl'.
37917         * modules/findprog-lgpl: New file.
37918         * lib/findprog-lgpl.c: New file.
37919         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37920         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37921         to decide whether to use strdup or xstrdup, concatenated_filename or
37922         xconcatenated_filename.
37923
37924 2008-09-01  Bruno Haible  <bruno@clisp.org>
37925
37926         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37927         'xconcat-filename' (GPL).
37928         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37929         (License): Change to LGPLv2+.
37930         * modules/xconcat-filename: New file.
37931         * lib/concat-filename.h (concatenated_filename): Change specification.
37932         (xconcatenated_filename): New declaration.
37933         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37934         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37935         memory situations.
37936         * lib/xconcat-filename.c: New file.
37937         * NEWS: Mention the change.
37938         * lib/findprog.c: Include concat-filename.h, not filename.h.
37939         (find_in_path): Use xconcatenated_filename instead of
37940         concatenated_filename.
37941         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37942         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37943         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37944         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37945         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37946         instead of concatenated_filename.
37947         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37948         (execute_java_class): Use xconcatenated_filename instead of
37949         concatenated_filename.
37950         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37951         * modules/javacomp (Depends-on): Likewise.
37952         * modules/javaexec (Depends-on): Likewise.
37953
37954 2008-09-01  Bruno Haible  <bruno@clisp.org>
37955
37956         Split module 'filename' into 'filename' and 'concat-filename'.
37957         * modules/filename: Keep only lib/filename.h.
37958         (License): Change to LGPLv2+.
37959         * modules/concat-filename: New file, extracted from modules/filename.
37960         * lib/filename.h (concatenated_filename): Remove declaration.
37961         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37962         * lib/concat-filename.c: Include concat-filename.h.
37963         * NEWS: Mention the change.
37964
37965 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37966
37967         * lib/bitrotate.h (rotl8, rotr8): Add.
37968
37969         * modules/bitrotate (configure.ac): Need
37970         AC_REQUIRE([AC_C_INLINE]).
37971         (Description): Mention stdint.h.  Reported by Bruno Haible
37972         <bruno@clisp.org>.
37973
37974         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37975         Paolo Bonzini <bonzini@gnu.org>.
37976
37977 2008-08-31  Bruno Haible  <bruno@clisp.org>
37978
37979         Assume Solaris specific bi-arch conventions on Solaris systems.
37980         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37981         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37982         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37983         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37984         like acl_libdirstem.
37985         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37986         acl_libdirstem.
37987         * NEWS: Mention the change.
37988         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37989
37990 2008-08-31  Jim Meyering  <meyering@redhat.com>
37991
37992         * lib/strftime.h: Add comments describing the two added arguments.
37993
37994         remove duplicate #include directives
37995         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37996         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37997
37998 2008-08-31  Bruno Haible  <bruno@clisp.org>
37999
38000         New module 'sigpipe-die'.
38001         * modules/sigpipe-die: New file.
38002         * lib/sigpipe-die.h: New file.
38003         * lib/sigpipe-die.c: New file.
38004         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38005
38006 2008-08-31  Bruno Haible  <bruno@clisp.org>
38007
38008         Don't override previously installed signal handlers.
38009         * lib/fatal-signal.c (saved_sigactions): New variable.
38010         (uninstall_handlers): Reset the signal to the saved handler, not
38011         to SIG_DFL (except when ignored).
38012         (install_handlers): Save the previous handlers.
38013
38014 2008-08-30  Bruno Haible  <bruno@clisp.org>
38015
38016         * gnulib-tool (func_reset_sigpipe): New function.
38017         (func_get_automake_snippet, func_modules_transitive_closure,
38018         func_import): Invoke it before a join command that reads from stdin,
38019         to avoid "echo: write error: Broken pipe" error messages on stderr.
38020         Reported by Sam Steingold <sds@gnu.org>.
38021
38022 2008-08-30  Bruno Haible  <bruno@clisp.org>
38023
38024         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38025         Code copied from m4/open.m4.
38026         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38027         access and the filename ends in a slash. Code copied from lib/open.c.
38028         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38029         * tests/test-fopen.c (main): Check against bug with trailing slash.
38030
38031 2008-08-29  Bruno Haible  <bruno@clisp.org>
38032
38033         Avoid some "gcc -pedantic" warnings.
38034         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38035         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38036         * lib/dirent.in.h: Likewise.
38037         * lib/fcntl.in.h: Likewise.
38038         * lib/float.in.h: Likewise.
38039         * lib/iconv.in.h: Likewise.
38040         * lib/inttypes.in.h: Likewise.
38041         * lib/locale.in.h: Likewise.
38042         * lib/math.in.h: Likewise.
38043         * lib/netinet_in.in.h: Likewise.
38044         * lib/search.in.h: Likewise.
38045         * lib/signal.in.h: Likewise.
38046         * lib/stdarg.in.h: Likewise.
38047         * lib/stdint.in.h: Likewise.
38048         * lib/stdio.in.h: Likewise.
38049         * lib/stdlib.in.h: Likewise.
38050         * lib/string.in.h: Likewise.
38051         * lib/strings.in.h: Likewise.
38052         * lib/sys_select.in.h: Likewise.
38053         * lib/sys_socket.in.h: Likewise.
38054         * lib/sys_stat.in.h: Likewise.
38055         * lib/sys_time.in.h: Likewise.
38056         * lib/sysexits.in.h: Likewise.
38057         * lib/time.in.h: Likewise.
38058         * lib/unistd.in.h: Likewise.
38059         * lib/wchar.in.h: Likewise.
38060         * lib/wctype.in.h: Likewise.
38061         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38062         * modules/fchdir (Makefile.am): Likewise.
38063         * modules/fcntl (Makefile.am): Likewise.
38064         * modules/float (Makefile.am): Likewise.
38065         * modules/iconv_open (Makefile.am): Likewise.
38066         * modules/inttypes (Makefile.am): Likewise.
38067         * modules/locale (Makefile.am): Likewise.
38068         * modules/math (Makefile.am): Likewise.
38069         * modules/netinet_in (Makefile.am): Likewise.
38070         * modules/search (Makefile.am): Likewise.
38071         * modules/signal (Makefile.am): Likewise.
38072         * modules/stdarg (Makefile.am): Likewise.
38073         * modules/stdint (Makefile.am): Likewise.
38074         * modules/stdio (Makefile.am): Likewise.
38075         * modules/stdlib (Makefile.am): Likewise.
38076         * modules/string (Makefile.am): Likewise.
38077         * modules/strings (Makefile.am): Likewise.
38078         * modules/sys_select (Makefile.am): Likewise.
38079         * modules/sys_socket (Makefile.am): Likewise.
38080         * modules/sys_stat (Makefile.am): Likewise.
38081         * modules/sys_time (Makefile.am): Likewise.
38082         * modules/sysexits (Makefile.am): Likewise.
38083         * modules/time (Makefile.am): Likewise.
38084         * modules/unistd (Makefile.am): Likewise.
38085         * modules/wchar (Makefile.am): Likewise.
38086         * modules/wctype (Makefile.am): Likewise.
38087         Reported by Reuben Thomas <rrt@sc3d.org>.
38088
38089 2008-08-29  Bruno Haible  <bruno@clisp.org>
38090
38091         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38092         any more.
38093
38094 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38095
38096         * MODULES.html.sh (Misc): Add bitrotate.
38097
38098         * modules/bitrotate: New file.
38099
38100         * lib/bitrotate.h: New file.
38101
38102         * modules/bitrotate-tests: New file.
38103
38104         * tests/test-bitrotate.c: New file.
38105
38106         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38107         on the bitrotate module.
38108
38109         * lib/arctwo.c: Use new bitrotate module.
38110
38111 2008-08-29  Jim Meyering  <meyering@redhat.com>
38112
38113         bootstrap: merge changes from coreutils
38114         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38115         of copied files.  Remove a kludge, now that this is fixed.
38116         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38117         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38118         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38119
38120 2008-08-29  Bruno Haible  <bruno@clisp.org>
38121
38122         * MODULES.html.sh: Remove --cvs-urls option.
38123
38124 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38125
38126         maint.mk: adjust to file name change
38127         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38128
38129 2008-08-28  Jim Meyering  <meyering@redhat.com>
38130
38131         * modules/getndelim2 (License): Relicense to LGPLv2+.
38132         Approved by Richard Stallman for the version of 1995, and by
38133         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38134
38135 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38136
38137         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38138         dummy if one is not available.  Do not touch them if
38139         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38140         (getc_maybe_unlocked): New.
38141         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38142
38143 2008-08-26  Eric Blake  <ebb9@byu.net>
38144
38145         doc/INSTALL: resync from autoconf
38146         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38147         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38148         moving...
38149         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38150         * INSTALL: Regenerate.
38151         * INSTALL.ISO: New file.
38152         * INSTALL.UTF-8: Likewise.
38153
38154 2008-08-26  Jim Meyering  <meyering@redhat.com>
38155
38156         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38157         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38158         these definitions conditional, so that they may be overridden, too.
38159
38160 2008-08-26  Bruno Haible  <bruno@clisp.org>
38161
38162         Generate INSTALL file variants with prettier quotes.
38163         * doc/Makefile (INSTALL_PRELUDE): New macro.
38164         (INSTALL): Use it.
38165         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38166
38167 2008-08-26  Bruno Haible  <bruno@clisp.org>
38168
38169         Run makeinfo in an English locale.
38170         * doc/Makefile (MAKEINFO): New variable.
38171
38172 2008-08-26  Bruno Haible  <bruno@clisp.org>
38173
38174         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38175         Suggested by Eric Blake.
38176
38177 2008-08-25  Bruno Haible  <bruno@clisp.org>
38178
38179         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38180
38181 2008-08-25  Eric Blake  <ebb9@byu.net>
38182
38183         c-stack: test that stack overflow can be caught
38184         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38185         that platform allows handling stack overflow; at least OS/2 EMX
38186         has sigaltstack, but crashes before transferring control to
38187         handler on stack overflow.
38188         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38189         check for HAVE_STACK_OVERFLOW_HANDLING.
38190         Reported by Elbert Pol.
38191
38192 2008-08-25  Bruno Haible  <bruno@clisp.org>
38193
38194         * doc/posix-functions/strftime.texi: Fix description of strftime
38195         module.
38196
38197 2008-08-24  Bruno Haible  <bruno@clisp.org>
38198
38199         * tests/uniwidth/test-uc_width2.c: New file.
38200         * tests/uniwidth/test-uc_width2.sh: New file.
38201         * modules/uniwidth/width-tests (Files): Add the new files.
38202         (TESTS): Add uniwidth/test-uc_width2.sh.
38203         (TESTS_ENVIRONMENT): New variable.
38204         (check_PROGRAMS): Add test-uc_width2.
38205         (test_uc_width2_SOURCES): New variable.
38206
38207         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38208         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38209         not 0x00AB.
38210         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38211
38212 2008-08-22  Eric Blake  <ebb9@byu.net>
38213
38214         test-lock, test-tls: mention why a test is skipped
38215         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38216         skipped.
38217         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38218
38219         count-one-bits: relax license
38220         * modules/count-one-bits (License): Relicense to LGPLv2+.
38221         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38222
38223 2008-08-22  Andreas Schwab  <schwab@suse.de>
38224
38225         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38226         Remove spurious space in assignment.
38227
38228 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38229
38230         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38231         Paul Eggert <eggert@CS.UCLA.EDU>.
38232
38233 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38234
38235         * modules/gettext: Add m4/threadlib.m4.
38236
38237 2008-08-19  Eric Blake  <ebb9@byu.net>
38238
38239         test-c-stack: fix compilation failure on FreeBSD 5.0
38240         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38241         headers before <sys/resource.h>.
38242         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38243         the bug.
38244         Reported by Nelson H. F. Beebe.
38245
38246         strverscmp: migrate from "strverscmp.h" to <string.h>
38247         * modules/string (Makefile.am): Add new hooks.
38248         * modules/strverscmp (Files): Remove strverscmp.h.
38249         (Depends-on): Add string.
38250         (configure.ac): Add indicator.
38251         (Include): Mention new header.
38252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38253         defaults.
38254         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38255         results.
38256         * lib/strverscmp.h: Delete.
38257         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38258         * tests/test-strverscmp.c (includes): Adjust client.
38259         * lib/check-version.c (includes): Likewise.
38260         * NEWS: Document the change.
38261
38262         strverscmp: add unit test
38263         * modules/strverscmp-tests: New file.
38264         * tests/test-strverscmp.c: Likewise.
38265
38266 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38267
38268         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38269         regarding Windows crypto stuff, from Mono.
38270
38271 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38272
38273         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38274         if present, for intel RND.  Return error on failures.
38275
38276 2008-08-18  Ben Pfaff  <blp@gnu.org>
38277
38278         gitlog-to-changelog: give better diagnostic for failed pipe-open
38279         * build-aux/gitlog-to-changelog: Improve error message: suggest
38280         that the version of Git may be too old.
38281
38282 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38283
38284         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38285         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38286
38287 2008-08-18  Bruno Haible  <bruno@clisp.org>
38288
38289         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38290         pthread_in_use().
38291
38292 2008-08-18  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/glthread/threadlib.c: Include <pthread.h>.
38295
38296 2008-08-18  Bruno Haible  <bruno@clisp.org>
38297
38298         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38299         glthread_recursive_lock_* macros.
38300         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38301         Fix syntax error.
38302
38303 2008-08-18  Bruno Haible  <bruno@clisp.org>
38304
38305         * lib/glthread/thread.c: Avoid forcing a context switch right after
38306         thread creation.
38307
38308 2008-08-17  Bruno Haible  <bruno@clisp.org>
38309
38310         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38311         * lib/glthread/thread.h: Provide Win32 specific implementation.
38312         * modules/thread (Files): Add lib/glthread/thread.c.
38313         (Depends-on): Add lock.
38314         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38315
38316 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38317
38318         New module 'yield'.
38319         * modules/yield: New file.
38320         * lib/glthread/yield.h: New file.
38321         * m4/yield.m4: New file.
38322         * MODULES.html.sh (Multithreading): Add yield.
38323
38324 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38325
38326         New module 'thread'.
38327         * modules/thread: New file.
38328         * lib/glthread/thread.h: New file.
38329         * m4/thread.m4: New file.
38330         * MODULES.html.sh (Multithreading): Add thread.
38331
38332 2008-08-17  Bruno Haible  <bruno@clisp.org>
38333
38334         * lib/glthread/lock.h: Include <stdlib.h> always.
38335         * lib/glthread/tls.h: Likewise.
38336         * lib/glthread/cond.h: Likewise.
38337
38338 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38339
38340         New module 'cond'.
38341         * modules/cond: New file.
38342         * lib/glthread/cond.h: New file.
38343         * lib/glthread/cond.c: New file.
38344         * m4/cond.m4: New file.
38345         * MODULES.html.sh (Multithreading): Add cond.
38346
38347 2008-08-16  Eric Blake  <ebb9@byu.net>
38348
38349         c-stack: fix regression on Irix 5.3 from 2008-06-21
38350         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38351         sa_sigaction...
38352         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38353         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38354         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38355         * modules/signal (Makefile.am): Use the value.
38356         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38357         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38358         * doc/posix-headers/signal.texi (signal.h): Document this
38359         portability issue.
38360         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38361         Reported by Tom G. Christensen.
38362
38363 2008-08-17  Bruno Haible  <bruno@clisp.org>
38364
38365         New module 'threadlib'.
38366         * modules/threadlib: New file.
38367         * lib/glthread/threadlib.c: New file, extracted from
38368         lib/glthread/lock.c.
38369         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38370         functions.
38371         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38372         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38373         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38374         macros.
38375         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38376         (gl_DISABLE_THREADS): Remove macro.
38377         * modules/lock (Files): Remove build-aux/config.rpath.
38378         (Depends-on): Remove havelib. Add threadlib.
38379         (configure.ac-early): Remove section.
38380         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38381         * modules/tls (Depends-on): Remove lock. Add threadlib.
38382         (Link): New section, copied from threadlib.
38383         * MODULES.html.sh (Multithreading): Add threadlib.
38384
38385 2008-08-14  Bruno Haible  <bruno@clisp.org>
38386
38387         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38388         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38389         glthread_rwlock_unlock, glthread_rwlock_destroy,
38390         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38391         glthread_recursive_lock_destroy): Define as macros always.
38392         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38393         glthread_lock_lock.
38394         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38395         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38396         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38397         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38398         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38399         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38400         (glthread_recursive_lock_lock_func): Renamed from
38401         glthread_recursive_lock_lock.
38402         (glthread_recursive_lock_unlock_func): Renamed from
38403         glthread_recursive_lock_unlock.
38404         (glthread_recursive_lock_destroy_func): Renamed from
38405         glthread_recursive_lock_destroy.
38406
38407 2008-08-14  Bruno Haible  <bruno@clisp.org>
38408
38409         * lib/glthread/lock.h: Renamed from lib/lock.h.
38410         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38411         * lib/glthread/tls.h: Renamed from lib/tls.h.
38412         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38413         * lib/fstrcmp.c: Update includes.
38414         * lib/strsignal.c: Update includes.
38415         * modules/lock (Files, Makefile.am): Update.
38416         (Include): Change to "glthread/lock.h".
38417         * modules/tls (Files, Makefile.am): Update.
38418         (Include): Change to "glthread/tls.h".
38419         * tests/test-lock.c: Update includes.
38420         * tests/test-tls.c: Update includes.
38421         * NEWS: Mention the renamed header files.
38422
38423 2008-08-11  Jim Meyering  <meyering@redhat.com>
38424
38425         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38426
38427 2008-08-11  Eric Blake  <ebb9@byu.net>
38428
38429         test-c-stack: avoid C99-ism
38430         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38431         before statement.
38432         Reported by Alain Guibert.
38433
38434 2008-08-10  Jim Meyering  <meyering@redhat.com>
38435
38436         ensure that return value of uinttostr et al are not ignored
38437         * lib/inttostr.h (__GNUC_PREREQ): Define.
38438         (__attribute_warn_unused_result__): Define.
38439         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38440
38441 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38442
38443         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38444         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38445
38446 2008-08-07  Jim Meyering  <meyering@redhat.com>
38447
38448         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38449
38450         * modules/mkstemp (License): Relicense under LGPLv2+.
38451         * modules/tempname (License): Likewise.
38452
38453 2008-08-06  Bruno Haible  <bruno@clisp.org>
38454
38455         * lib/poll.c (poll): Further micro-optimization.
38456
38457 2008-08-06  Jim Meyering  <meyering@redhat.com>
38458
38459         inet_pton.c: use locale-independent tolower
38460         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38461         (inet_pton6): Use c_tolower rather than tolower.
38462         * modules/inet_pton (Depends-on): Add c-ctype.
38463
38464 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38465
38466         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38467         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38468
38469 2008-08-06  Jim Meyering  <meyering@redhat.com>
38470
38471         * modules/inet_pton (License): Relicense under LGPLv2+.
38472
38473 2008-08-03  Bruno Haible  <bruno@clisp.org>
38474
38475         Additional non-aborting API for lock and tls.
38476         * lib/lock.h: Include <errno.h>.
38477         (glthread_lock_init): New macro/function.
38478         (gl_lock_init): Define as wrapper around glthread_lock_init.
38479         (glthread_lock_lock): New macro/function.
38480         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38481         (glthread_lock_unlock): New macro/function.
38482         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38483         (glthread_lock_destroy): New macro/function.
38484         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38485         (glthread_rwlock_init): New macro/function.
38486         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38487         (glthread_rwlock_rdlock): New macro/function.
38488         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38489         (glthread_rwlock_wrlock): New macro/function.
38490         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38491         (glthread_rwlock_unlock): New macro/function.
38492         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38493         (glthread_rwlock_destroy): New macro/function.
38494         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38495         (glthread_recursive_lock_init): New macro/function.
38496         (gl_recursive_lock_init): Define as wrapper around
38497         glthread_recursive_lock_init.
38498         (glthread_recursive_lock_lock): New macro/function.
38499         (gl_recursive_lock_lock): Define as wrapper around
38500         glthread_recursive_lock_lock.
38501         (glthread_recursive_lock_unlock): New macro/function.
38502         (gl_recursive_lock_unlock): Define as wrapper around
38503         glthread_recursive_lock_unlock.
38504         (glthread_recursive_lock_destroy): New macro/function.
38505         (gl_recursive_lock_destroy): Define as wrapper around
38506         glthread_recursive_lock_destroy.
38507         (glthread_once): New macro/function.
38508         (gl_once): Define as wrapper around glthread_once.
38509         Update function declarations.
38510         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38511         glthread_rwlock_init. Return error code.
38512         (glthread_rwlock_rdlock_multithreaded): Renamed from
38513         glthread_rwlock_rdlock. Return error code.
38514         (glthread_rwlock_wrlock_multithreaded): Renamed from
38515         glthread_rwlock_wrlock. Return error code.
38516         (glthread_rwlock_unlock_multithreaded): Renamed from
38517         glthread_rwlock_unlock. Return error code.
38518         (glthread_rwlock_destroy_multithreaded): Renamed from
38519         glthread_rwlock_destroy. Return error code.
38520         (glthread_recursive_lock_init_multithreaded): Renamed from
38521         glthread_recursive_lock_init. Return error code.
38522         (glthread_recursive_lock_lock_multithreaded): Renamed from
38523         glthread_recursive_lock_lock. Return error code.
38524         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38525         glthread_recursive_lock_unlock. Return error code.
38526         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38527         glthread_recursive_lock_destroy. Return error code.
38528         (glthread_once_call): Make static.
38529         (glthread_once_multithreaded): Renamed from glthread_once.
38530         * lib/tls.h: Include <errno.h>.
38531         (glthread_tls_key_init): New macro/function.
38532         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38533         (glthread_tls_set): New macro/function.
38534         (gl_tls_set): Define as wrapper around glthread_tls_set.
38535         (glthread_tls_key_destroy): New macro/function.
38536         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38537         Update function declarations.
38538         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38539         glthread_tls_get.
38540         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38541
38542 2008-08-04  Eric Blake  <ebb9@byu.net>
38543
38544         gnumakefile: use space, not TAB, outside of targets
38545         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
38546
38547 2008-08-02  Jim Meyering  <meyering@redhat.com>
38548
38549         getdate.y: avoid locale-dependent date parsing failure
38550         In Turkish locales, getdate would fail to recognize keywords
38551         containing a lowercase "i".  The solution is not to rely on
38552         locale-sensitive case-conversion.
38553         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
38554         (lookup_word): Use c_toupper in place of toupper.
38555         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
38556         Reported by Vefa Bicakci <bicave@superonline.com> in
38557         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
38558         * modules/getdate (Depends-on): Add c-ctype.
38559
38560 2008-08-02  Bruno Haible  <bruno@clisp.org>
38561
38562         * gnulib-tool (func_import): When updating or creating a .gitignore
38563         file, prepend each added line with a slash, and ignore leading slashes
38564         from the existing lines.
38565         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38566
38567 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38568
38569         Portability fix for GNU make 3.79.1.
38570         * top/GNUmakefile: Avoid 'else COND', which older GNU make
38571         versions do not understand.
38572
38573 2008-08-01  Bruno Haible  <bruno@clisp.org>
38574
38575         Work around bug of HP-UX 10.20 cc with -0.0 literal.
38576         * tests/test-isnanf.h (zero): New variable.
38577         (main): Avoid literal -0.0f.
38578         * tests/test-isnand.h (zero): New variable.
38579         (main): Avoid literal -0.0.
38580         * tests/test-isnanl.h (zero): New variable.
38581         (main): Avoid literal -0.0L.
38582         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
38583         (test_float, test_double, test_long_double): Avoid literals -0.0f,
38584         -0.0, -0.0L.
38585         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
38586         (test_signbitd): Avoid literal -0.0.
38587         (test_signbitl): Avoid literal -0.0L.
38588         * tests/test-ceilf1.c (zero): New variable.
38589         (main): Avoid literal -0.0f.
38590         * tests/test-ceill.c (zero): New variable.
38591         (main): Avoid literal -0.0L.
38592         * tests/test-floorf1.c (zero): New variable.
38593         (main): Avoid literal -0.0f.
38594         * tests/test-floorl.c (zero): New variable.
38595         (main): Avoid literal -0.0L.
38596         * tests/test-roundf1.c (zero): New variable.
38597         (main): Avoid literal -0.0f.
38598         * tests/test-round1.c (zero): New variable.
38599         (main): Avoid literal -0.0.
38600         * tests/test-roundl.c (zero): New variable.
38601         (main): Avoid literal -0.0L.
38602         * tests/test-truncf1.c (zero): New variable.
38603         (main): Avoid literal -0.0f.
38604         * tests/test-trunc1.c (zero): New variable.
38605         (main): Avoid literal -0.0.
38606         * tests/test-truncl.c (zero): New variable.
38607         (main): Avoid literal -0.0L.
38608         * tests/test-frexp.c (zero): New variable.
38609         (main): Avoid literal -0.0.
38610         * tests/test-frexpl.c (zero): New variable.
38611         (main): Avoid literal -0.0L.
38612         * tests/test-ldexpl.c (zero): New variable.
38613         (main): Avoid literal -0.0L.
38614         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38615         (zerod, zerol): New variables.
38616         (test_function): Avoid literals -0.0, -0.0L.
38617         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
38618         (zerod, zerol): New variables.
38619         (test_function): Avoid literals -0.0, -0.0L.
38620         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38621         (zerod, zerol): New variables.
38622         (test_function): Avoid literals -0.0, -0.0L.
38623         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
38624         (zerod, zerol): New variables.
38625         (test_function): Avoid literals -0.0, -0.0L.
38626         * tests/test-strtod.c (zero): New variable.
38627         (main): Avoid literal -0.0.
38628         Reported by Jonathan C. Patschke <jp@centtech.com>.
38629
38630 2008-07-31  Jim Meyering  <meyering@redhat.com>
38631
38632         sha256.h: correct definition of SHA224_DIGEST_SIZE
38633         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
38634         Reported by Paulie Pena IV <paulie4@gmail.com>.
38635         Define as 224 / 8, rather than as a literal.
38636         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
38637         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
38638         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
38639
38640 2008-07-31  Bruno Haible  <bruno@clisp.org>
38641
38642         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
38643         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
38644         Reported by Jonathan Patschke <jp@centtech.com>.
38645
38646 2008-07-31  Bruno Haible  <bruno@clisp.org>
38647
38648         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
38649         Reported by Paolo Bonzini <bonzini@gnu.org>.
38650
38651 2008-07-30  Eric Blake  <ebb9@byu.net>
38652
38653         test-strtod: allow compilation without -lm
38654         * tests/test-strtod.c (main): Avoid link dependence on fabs.
38655         Reported by Dennis Clarke <blastwave@gmail.com>.
38656
38657 2008-07-28  Jim Meyering  <meyering@redhat.com>
38658
38659         bootstrap: work also when there are no .po files in po/
38660         * build-aux/bootstrap (update_po_files): Complete the change
38661         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
38662
38663 2008-07-27  Jim Meyering  <meyering@redhat.com>
38664
38665         * users.txt: Add zile.
38666
38667 2008-07-26  Ben Pfaff  <blp@gnu.org>
38668
38669         Add missing dependencies on new m4/exponent[fdl].m4 files.
38670         * modules/isnanf-nolibm: Add m4/exponentf.m4.
38671         * modules/isnand-nolibm: Add m4/exponentd.m4.
38672         * modules/isnanl-nolibm: Add m4/exponentl.m4.
38673         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
38674         m4/isnan[fdl].m4, because the macros actually used moved.
38675         Reported by Jim Meyering.
38676
38677 2008-07-14  Ben Pfaff  <blp@gnu.org>
38678
38679         Add isinf module.
38680         * lib/isinf.c: New file.
38681         * lib/math.in.h: Define isinf macro if we have decided to replace
38682         it.
38683         * m4/isinf.m4: New file.
38684         * m4/math_h.m4: Initialize and substitute variables for isinf
38685         module.
38686         * modules/isinf: New file.
38687         * modules/isinf-tests: New file.
38688         * modules/math: Add substitutions for new module.
38689         * tests/test-isinf.c: New file.
38690         * doc/posix-functions/isinf.texi: Mention new module.
38691         * MODULES.html.sh: Mention new module.
38692
38693 2008-07-14  Ben Pfaff  <blp@gnu.org>
38694
38695         Factor out some macros for use by additional modules.
38696         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
38697         exponentf.m4.
38698         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
38699         exponentd.m4.
38700         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
38701         file exponentl.m4.
38702         * m4/exponentf.m4: New file.
38703         * m4/exponentd.m4: New file.
38704         * m4/exponentl.m4: New file.
38705         * modules/isnanf: Use new file m4/exponentf.m4.
38706         * modules/isnand: Use new file m4/exponentd.m4.
38707         * modules/isnanl: Use new file m4/exponentl.m4.
38708
38709 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
38710
38711         mktime.c: normalize tp->tm_isdst value to -1/0/1.
38712         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
38713         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
38714         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
38715
38716         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
38717         readlink on platforms without PATH_MAX.
38718
38719 2008-07-21  Eric Blake  <ebb9@byu.net>
38720
38721         Warn, not fail, on stale version.
38722         * top/GNUmakefile (_curr-ver): Tone down previous patch.
38723
38724         Don't allow installation with stale devel version number.
38725         * top/GNUmakefile (_is-install-target): New macro.
38726         (_curr-ver): Forbid installation with stale version number.
38727
38728 2008-07-20  Bruno Haible  <bruno@clisp.org>
38729
38730         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
38731         TESTS_ENVIRONMENT.
38732         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
38733
38734 2008-07-20  Bruno Haible  <bruno@clisp.org>
38735
38736         * lib/c-stack.h (c_stack_action): Add documentation.
38737         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
38738
38739 2008-07-20  Bruno Haible  <bruno@clisp.org>
38740
38741         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
38742         * modules/readlink (License): Likewise.
38743
38744 2008-07-17  Eric Blake  <ebb9@byu.net>
38745
38746         * modules/c-stack (Link): Fix typo.
38747
38748         Make c-stack use libsigsegv, when available.
38749         * modules/c-stack (Depends-on): Add libsigsegv.
38750         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
38751         needed.
38752         * lib/c-stack.c (SIGSTKSZ): Define fallback.
38753         (segv_handler, overflow_handler, c_stack_action)
38754         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
38755         implementation when libsigsegv is available, but only when using
38756         the library is necessary.
38757         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
38758         comment, explaining why XSI check fails on Linux.
38759         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
38760         * tests/test-c-stack2.sh: Tweak skip message.
38761         * NEWS: Document new link-time requirements.
38762
38763 2008-07-16  Eric Blake  <ebb9@byu.net>
38764
38765         c-stack: Expose false positives when not using libsigsegv.
38766         * modules/c-stack-tests (Files): Expand test.
38767         * tests/test-c-stack.c (main): Add means to conditionally trigger
38768         non-overflow SIGSEGV.
38769         * tests/test-c-stack2.sh: New file.
38770
38771 2008-07-14  Bruno Haible  <bruno@clisp.org>
38772
38773         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
38774         Reported by Eric Blake.
38775
38776 2008-07-14  Sam Steingold  <sds@gnu.org>
38777             Bruno Haible  <bruno@clisp.org>
38778
38779         New module libsigsegv.
38780         * modules/libsigsegv: New file.
38781         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
38782         modifications.
38783         * MODULES.html.sh (Signal handling): New section.
38784
38785 2008-07-14  Bruno Haible  <bruno@clisp.org>
38786
38787         * modules/unictype/ctype-* (Description): Add the word "function".
38788         Improves the resulting doc in MODULES.html.
38789
38790 2008-07-12  Ben Pfaff  <blp@gnu.org>
38791
38792         Add longlong module.
38793         * modules/longlong: New file.
38794
38795 2008-07-12  Bruno Haible  <bruno@clisp.org>
38796
38797         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
38798         to empty.
38799
38800 2008-07-10  Ben Pfaff  <blp@gnu.org>
38801
38802         Add isnan module.
38803         * doc/posix-functions/isnan.texi: Mention new module.
38804         * lib/math.in.h: Define isnan macro if we have decided to replace
38805         it.
38806         * m4/isnan.m4: New file.
38807         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
38808         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
38809         also.
38810         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
38811         redundancy.
38812         * m4/math_h.m4: Initialize and substitute variables for isnan
38813         module.
38814         * modules/isnan: New file.
38815         * modules/isnan-tests: New file.
38816         * modules/math: Add substitutions for new module.
38817         * tests/test-isnan.c: New file.
38818         * MODULES.html.sh: Mention new module.
38819
38820 2008-07-10  Ben Pfaff  <blp@gnu.org>
38821
38822         Add isnanf module.
38823         * lib/isnanf.m4: New file.
38824         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38825         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38826         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38827         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38828         * modules/isnanf: New file.
38829         * modules/isnanf-tests: New file.
38830         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38831         files.
38832         * tests/test-isnanf-nolibm.c: factored most of its contents into
38833         new file tests/test-isnanf.h.
38834         * tests/test-isnanf.h: New file.
38835         * tests/test-isnanf.c: New file.
38836         * MODULES.html.sh: Mention new module.
38837         * doc/glibc-functions/isnanf.texi: Mention new module.
38838
38839 2008-07-10  Ben Pfaff  <blp@gnu.org>
38840
38841         Add isnand module.
38842         * lib/isnand.h: New file.
38843         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38844         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38845         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38846         functionality also.
38847         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38848         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38849         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38850         * modules/isnand: New file.
38851         * modules/isnand-tests: New file.
38852         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38853         files.
38854         * tests/test-isnand-nolibm.c: factored most of its contents into
38855         new file tests/test-isnand.h.
38856         * tests/test-isnand.h: New file.
38857         * tests/test-isnand.c: New file.
38858         * MODULES.html.sh: Mention new module.
38859
38860 2008-07-10  Ben Pfaff  <blp@gnu.org>
38861
38862         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38863         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38864         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38865         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38866         * modules/isnanf-nolibm: Update references to renamed files.
38867         * modules/isnand-nolibm: Likewise.
38868         * modules/isnanf-nolibm-tests: Likewise.
38869         * modules/isnand-nolibm-tests: Likewise.
38870         * lib/frexp.c: Likewise.
38871         * lib/isfinite.c: Likewise.
38872         * lib/signbitd.c: Likewise.
38873         * lib/signbitf.c: Likewise.
38874         * lib/vasnprintf.c: Likewise.
38875         * tests/test-ceilf1.c: Likewise.
38876         * tests/test-ceilf2.c: Likewise.
38877         * tests/test-floorf1.c: Likewise.
38878         * tests/test-floorf2.c: Likewise.
38879         * tests/test-frexp.c: Likewise.
38880         * tests/test-round1.c: Likewise.
38881         * tests/test-round2.c: Likewise.
38882         * tests/test-roundf1.c: Likewise.
38883         * tests/test-strtod.c: Likewise.
38884         * tests/test-trunc1.c: Likewise.
38885         * tests/test-trunc2.c: Likewise.
38886         * tests/test-truncf1.c: Likewise.
38887         * tests/test-truncf2.c: Likewise.
38888         * NEWS: Mention the renamed header files.
38889
38890 2008-07-11  Jim Meyering  <meyering@redhat.com>
38891
38892         vc-list-files: make the last-resort awk code more portable
38893         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38894         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38895         does not support it.
38896
38897 2008-07-10  Eric Blake  <ebb9@byu.net>
38898
38899         Work with tar's bootstrap.
38900         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38901         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38902         an m4 comment.
38903
38904 2008-07-09  Jim Meyering  <meyering@redhat.com>
38905
38906         posix-shell.m4: fix typo that made this test malfunction
38907         * m4/posix-shell.m4: Remove capitalization in variable name.
38908
38909 2008-07-08  Bruno Haible  <bruno@clisp.org>
38910
38911         * m4/onceonly.m4: Update comments.
38912         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38913
38914 2008-07-04  Jim Meyering  <meyering@redhat.com>
38915
38916         * users.txt: Add vc-dwim.
38917         (bison, coreutils): Use the gitweb URL.
38918
38919 2008-07-03  Jim Meyering  <meyering@redhat.com>
38920
38921         * users.txt: Add libffcall.  From Sam Steingold.
38922
38923 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38924
38925         getdate.y: do not ignore TZ with relative day, month or year offset
38926         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38927         relative-date-handling, since otherwise, the latter would clobber the
38928         sole output (an updated Start value) of the tz-handling block.
38929         * tests/test-getdate.c: Tests for the fix
38930
38931 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38932
38933         Recognize 'foo_LIBRARIES += libgnu.a'.
38934         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38935         makefile snippet has already specified an installation location,
38936         also using '+='.
38937
38938 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38939
38940         getdate.y: factor out common actions
38941         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38942         Use them in place of open-coded actions.
38943
38944 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38945
38946         Add self-test for getdate module.
38947         * modules/getdate-tests: New file.
38948         * tests/test-getdate.c: New file.
38949
38950 2008-06-29  Bruno Haible  <bruno@clisp.org>
38951
38952         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38953         .gitignore.
38954         Reported by Sylvain Beucler <beuc@beuc.net>.
38955
38956 2008-06-29  Bruno Haible  <bruno@clisp.org>
38957
38958         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38959         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38960
38961 2008-06-29  Bruno Haible  <bruno@clisp.org>
38962
38963         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38964         EXTRA_DIST.
38965         Reported by Sylvain Beucler <beuc@beuc.net>.
38966
38967 2008-06-26  Jim Meyering  <meyering@redhat.com>
38968
38969         make several modules depend on the "open" module
38970         This provides slightly increased consistency when opening-for-write
38971         the name of a non-directory spelled with a trailing slash.
38972         * modules/chdir-safer: Likewise.
38973         * modules/chown: Likewise.
38974         * modules/clean-temp: Likewise.
38975         * modules/copy-file: Likewise.
38976         * modules/fchdir: Likewise.
38977         * modules/fcntl-safer: Likewise.
38978         * modules/pipe: Likewise.
38979         * modules/utime: Likewise.
38980         Prompted by Eric Blake and Bruno Haible.
38981
38982 2008-06-24  Andreas Schwab  <schwab@suse.de>
38983
38984         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38985         literals can be used as initializers for global variables.
38986
38987 2008-06-23  Eric Blake  <ebb9@byu.net>
38988
38989         Make gnulib-cache.m4 easier to diff.
38990         * gnulib-tool (func_import): Allow newlines when reading cached
38991         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38992
38993 2008-06-23  Bruno Haible  <bruno@clisp.org>
38994
38995         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38996         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38997         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38998         m4/signalblocking.m4.
38999         (gl_PREREQ_SIGACTION): Don't invoke it.
39000         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39001         gl_PREREQ_SIG_HANDLER_H.
39002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39003         Don't check for sigaction here.
39004
39005 2008-06-23  Bruno Haible  <bruno@clisp.org>
39006
39007         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39008         (install_handlers): Don't set the SA_RESETHAND flag.
39009
39010 2008-06-23  Bruno Haible  <bruno@clisp.org>
39011
39012         * m4/sigaction.m4: Comment fixes.
39013         * lib/signal.in.h: Likewise.
39014
39015 2008-06-23  Eric Blake  <ebb9@byu.net>
39016
39017         Fix typo.
39018         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39019
39020         Avoid SA_ namespace.
39021         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39022         Reported by Ralf Wildenhues.
39023
39024         Avoid test failure due to SA_RESTORER.
39025         * tests/test-sigaction.c (SA_MASK): New macro.
39026         (main): Avoid failing due to extension flags being set.
39027         Reported by Jim Meyering.
39028
39029         Revert use of sig-handler.h in sigprocmask.c.
39030         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39031         it requires the existence of struct sigaction.
39032         * lib/sigprocmask.c (handler_t): Restore typedef.
39033         (rpl_signal, old_handlers): Use local type.
39034
39035 2008-06-22  Bruno Haible  <bruno@clisp.org>
39036
39037         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39038         conditionally.
39039         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39040
39041 2008-06-22  Bruno Haible  <bruno@clisp.org>
39042
39043         * doc/posix-functions/siginterrupt.texi: Move note.
39044
39045         * lib/signal.in.h (SA_RESTART): New macro.
39046         * lib/sigaction.c: Update comment.
39047
39048         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39049
39050         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39051         (gl_PREREQ_SIGPROCMASK): Invoke it.
39052         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39053
39054         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39055
39056         * lib/sigprocmask.c: Update a comment.
39057
39058 2008-06-21  Eric Blake  <ebb9@byu.net>
39059
39060         Use sigaction module rather than signal().
39061         * modules/c-stack (Depends-on): Add sigaction.
39062         * modules/fatal-signal (Depends-on): Likewise.
39063         * modules/nanosleep (Depends-on): Likewise.
39064         * modules/sigprocmask (Files): Add sig-handler.h.
39065         * modules/sigaction (Files): Likewise.
39066         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39067         Eggert.
39068         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39069         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39070         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39071         (init_fatal_signals): Likewise.
39072         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39073         (siginterrupt): Delete fallback.
39074         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39075         instead.
39076         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39077         siginterrupt.
39078
39079         New module sigaction, for mingw.
39080         * modules/sigaction: New module...
39081         * modules/sigaction-tests: ...and its test.
39082         * m4/sigaction.m4: New file.
39083         * lib/sigaction.c: Likewise.
39084         * tests/test-sigaction.c: Likewise.
39085         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39086         * modules/signal (Makefile.am): Likewise.
39087         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39088         needed.
39089         * doc/posix-headers/signal.texi (signal.h): Mention provided
39090         types.
39091         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39092         that sigaction is preferable.
39093         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39094         module.
39095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39096         sigaction.
39097
39098         Improve robustness of sigprocmask by overriding signal.
39099         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39100         is in use.
39101         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39102         (SIGKILL, SIGSTOP): Provide fallbacks.
39103         (rpl_signal): Implement.
39104         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39105         signal can be called inside handlers.
39106
39107         Fix nanosleep module on mingw.
39108         * modules/nanosleep (Depends-on): Add sys_select.
39109         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39110
39111         Fix licensing of sigprocmask.
39112         * modules/raise (License): Relicense as LGPL.
39113
39114 2008-06-21  Bruno Haible  <bruno@clisp.org>
39115
39116         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39117         result if it contains question marks.
39118         Reported by Michael Geng <linux@michaelgeng.de>.
39119
39120 2008-06-19  Bruno Haible  <bruno@clisp.org>
39121
39122         Fix CVS-ism.
39123         * doc/gnulib.texi: Include updated-stamp.texi.
39124         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39125         (updated-stamp.texi): New rule.
39126         (gnulib.info): Depend on it.
39127         * doc/.gitignore: Add updated-stamp.texi.
39128         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39129
39130 2008-06-19  Bruno Haible  <bruno@clisp.org>
39131
39132         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39133         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39134
39135 2008-06-19  Eric Blake  <ebb9@byu.net>
39136
39137         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39138         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39139         Reported by Stepan Kasal.
39140
39141 2008-06-18  Bruno Haible  <bruno@clisp.org>
39142
39143         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39144         Reported by Eric Blake.
39145
39146 2008-06-18  Eric Blake  <ebb9@byu.net>
39147
39148         Work around cygwin 1.5.25 strsignal bug.
39149         * tests/test-strsignal.c: Allow for const char *.
39150         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39151
39152 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39153
39154         * users.txt: Update URL to article and add author/date
39155         information.
39156
39157 2008-06-17  Bruno Haible  <bruno@clisp.org>
39158
39159         New macro gl_DISABLE_THREADS.
39160         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39161         if the user did not pass --enable-threads or --disable-threads option.
39162         (gl_DISABLE_THREADS): New macro.
39163         Reported by Eric Blake <ebb9@byu.net>.
39164
39165 2008-06-17  Bruno Haible  <bruno@clisp.org>
39166
39167         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39168         when the macro ignores it.
39169         Based on a patch by Eric Blake <ebb9@byu.net>.
39170
39171 2008-06-17  Bruno Haible  <bruno@clisp.org>
39172
39173         * modules/tls (License): Change to LGPLv2+.
39174         Reported by Eric Blake.
39175
39176 2008-06-17  Eric Blake  <ebb9@byu.net>
39177
39178         Simplify c-stack prerequisites.
39179         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39180         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39181         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39182         check.
39183         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39184         <sys/resource.h>.
39185
39186         Move c-stack test into testsuite.
39187         * modules/c-stack-tests: New file.
39188         * lib/c-stack.c [DEBUG]: Move test program...
39189         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39190         fail test if sigaltstack is lacking.
39191         * tests/test-c-stack.sh: New driver file.
39192
39193 2008-06-16  Eric Blake  <ebb9@byu.net>
39194
39195         Use raise module consistently.
39196         * modules/fatal-signal (Depends-on): Add raise.
39197         * modules/sigprocmask (Depends-on): Likewise.
39198         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39199         * lib/sigprocmask.c (sigprocmask): Likewise.
39200         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39201         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39202
39203         Fix compliance bug in sigpending.
39204         * lib/sigprocmask.c (sigpending): Return pending array via
39205         parameter, not return value.
39206
39207 2008-06-14  Eric Blake  <ebb9@byu.net>
39208
39209         Improve obstack-printf test code.
39210         * tests/test-obstack-printf.c (test_function): Fix comment, and
39211         simplify usage of obstack_* in macros.  Add a test for coverage.
39212         Reported by Bruno Haible.
39213
39214 2008-06-14  Bruno Haible  <bruno@clisp.org>
39215
39216         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39217         array size as a constant, not as a const variable.
39218         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39219         AC_USE_SYSTEM_EXTENSIONS.
39220         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39221         Test whether the obstack_printf function actually exists.
39222         * modules/obstack-printf (Depends-on): Add extensions.
39223         (Include): Remove obstack.h.
39224         * modules/obstack-printf-posix (Depends-on): Add extensions.
39225         (Include): Remove obstack.h.
39226
39227 2008-06-13  Eric Blake  <ebb9@byu.net>
39228
39229         Add obstack-printf and obstack-printf-posix modules.
39230         * modules/obstack-printf: New file.
39231         * modules/obstack-printf-posix: Likewise.
39232         * MODULES.html.sh (Misc): Mention them.
39233         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39234         Likewise.
39235         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39236         Likewise.
39237         * modules/stdio (Makefile.am): Accomodate new modules.
39238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39239         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39240         Declare.
39241         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39242         functions.
39243         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39244         (gl_REPLACE_OBSTACK_PRINTF): New macros
39245         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39246         * tests/test-obstack-printf.c: New file.
39247         * modules/obstack-printf-tests: Likewise.
39248         * modules/obstack-printf-posix-tests: Likewise.
39249
39250 2008-06-11  Bruno Haible  <bruno@clisp.org>
39251
39252         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39253         * lib/open.c: Include errno.h.
39254         (open): Fail when attempting to write to a file that has a trailing
39255         slash.
39256         * tests/test-open.c (main): Test against trailing slash bug.
39257         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39258
39259 2008-06-10  Bruno Haible  <bruno@clisp.org>
39260
39261         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39262         for $? to work inside the trap command, with various /bin/sh-s.
39263         * tests/test-vc-list-files-cvs.sh: Likewise.
39264
39265 2008-06-10  Bruno Haible  <bruno@clisp.org>
39266
39267         * lib/acl-internal.h: Don't include gettext.h here.
39268         * lib/set-mode-acl.c: Include gettext.h here.
39269         * lib/copy-acl.c: Likewise.
39270
39271 2008-06-10  Bruno Haible  <bruno@clisp.org>
39272
39273         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39274         * lib/wait-process.c (wait_subprocess): Likewise.
39275         * lib/execute.h (execute): Add termsigp argument.
39276         * lib/execute.c (execute): Likewise.
39277         * lib/csharpcomp.c (compile_csharp_using_pnet,
39278         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39279         * lib/csharpexec.c (execute_csharp_using_pnet,
39280         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39281         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39282         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39283         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39284         is_jikes_present): Update.
39285         * lib/javaexec.c (execute_java_class): Update.
39286         * lib/javaversion.c (execute_and_read_line): Update.
39287         * NEWS: Document the changes.
39288         Reported by Eric Blake.
39289
39290 2008-06-10  Eric Blake  <ebb9@byu.net>
39291
39292         Add missing include.
39293         * tests/test-strstr.c (includes): Add <signal.h>.
39294         * tests/test-strcasestr.c (includes): Likewise.
39295         * tests/test-memmem.c (includes): Likewise.
39296
39297 2008-06-10  Bruno Haible  <bruno@clisp.org>
39298
39299         * lib/wait-process.c (wait_subprocess): Add an assertion.
39300
39301 2008-06-10  Bruno Haible  <bruno@clisp.org>
39302
39303         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39304
39305 2008-06-10  Bruno Haible  <bruno@clisp.org>
39306
39307         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39308         using alarm().
39309         * tests/test-strcasestr.c (main): Likewise.
39310         * tests/test-strstr.c (main): Likewise.
39311
39312 2008-06-09  Bruno Haible  <bruno@clisp.org>
39313
39314         Work around the Solaris 10 ACE ACLs ABI change.
39315         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39316         declare if ACL_NO_TRIVIAL is present.
39317         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39318         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39319         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39320         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39321         define if ACL_NO_TRIVIAL is present.
39322         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39323         and use the current ABI.
39324         (file_has_acl): Use same #if condition as elsewhere.
39325         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39326         in use, and use the current ABI.
39327         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39328         Reported by Jim Meyering.
39329
39330 2008-06-09  Eric Blake  <ebb9@byu.net>
39331
39332         Work around environments that (stupidly) ignore SIGALRM.
39333         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39334         before using alarm().
39335         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39336         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39337         Reported by Ian Beckwith <ianb@erislabs.net>.
39338
39339         Produce autobuild blurb earlier in log.
39340         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39341
39342 2008-06-09  Jim Meyering  <meyering@redhat.com>
39343         and OndÅ™ej Vašík  <ovasik@redhat.com>
39344
39345         utimens.c: correct kernel bug work-around
39346         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39347         failure, not success, and the kernel bug we're trying to work
39348         around affects not just the utimensat call, but also the fallback
39349         futimens call.
39350         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39351         not success.
39352         [HAVE_FUTIMENS]: Use the same work-around, here.
39353
39354 2008-06-09  Jim Meyering  <meyering@redhat.com>
39355
39356         add more guards around definition of ACE_-related code
39357         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39358         ALLOW and ACE_OWNER are also defined.
39359
39360 2008-06-08  Bruno Haible  <bruno@clisp.org>
39361
39362         * lib/acl-internal.h: Add me as co-author.
39363         * lib/file-has-acl.c: Likewise.
39364         * lib/set-mode-acl.c: Likewise.
39365         * lib/copy-acl.c: Likewise.
39366
39367 2008-06-08  Bruno Haible  <bruno@clisp.org>
39368
39369         Add support for AIX ACLs.
39370         * lib/acl-internal.h (acl_nontrivial): New declaration.
39371         * lib/file-has-acl.c (acl_nontrivial): New function.
39372         (file_has_acl): Add implementation using AIX 4 ACL API.
39373         * lib/set-mode-acl.c (qset_acl): Likewise.
39374         * lib/copy-acl.c (qcopy_acl): Likewise.
39375
39376 2008-06-08  Bruno Haible  <bruno@clisp.org>
39377
39378         Add support for HP-UX ACLs.
39379         * lib/acl-internal.h (acl_nontrivial): New declaration.
39380         * lib/file-has-acl.c (acl_nontrivial): New function.
39381         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39382         * lib/set-mode-acl.c (qset_acl): Likewise.
39383         * lib/copy-acl.c (qcopy_acl): Likewise.
39384
39385 2008-06-08  Bruno Haible  <bruno@clisp.org>
39386
39387         Add support for Cygwin ACLs.
39388         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39389         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39390         the chmod_or_fchmod call.
39391         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39392
39393 2008-06-08  Bruno Haible  <bruno@clisp.org>
39394
39395         Fix bug with setuid modes in Solaris 10+ code.
39396         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39397         succeeded, when the mode contains some special bits.
39398
39399 2008-06-08  Bruno Haible  <bruno@clisp.org>
39400
39401         Add support for Solaris 7..10 ACLs.
39402         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39403         declarations.
39404         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39405         functions.
39406         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39407         * lib/set-mode-acl.c (qset_acl): Likewise.
39408         * lib/copy-acl.c (qcopy_acl): Likewise.
39409
39410 2008-06-08  Bruno Haible  <bruno@clisp.org>
39411
39412         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39413         declaration.
39414         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39415         (acl_access_nontrivial): Remove MacOS X case.
39416         (file_has_acl): Use acl_extended_nontrivial.
39417         * lib/copy-acl.c (qcopy_acl): Likewise.
39418
39419 2008-06-08  Bruno Haible  <bruno@clisp.org>
39420
39421         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39422
39423 2008-06-08  Jim Meyering  <meyering@redhat.com>
39424
39425         * modules/acl (Maintainer): Add Bruno Haible.
39426
39427 2008-06-07  Bruno Haible  <bruno@clisp.org>
39428
39429         Improve support for Tru64 ACLs.
39430         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39431         ACL on OSF/1.
39432
39433 2008-06-07  Bruno Haible  <bruno@clisp.org>
39434
39435         Add support for MacOS X ACLs.
39436         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39437         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39438         * lib/set-mode-acl.c (qset_acl): Likewise.
39439         * lib/copy-acl.c (qcopy_acl): Likewise.
39440
39441 2008-06-07  Bruno Haible  <bruno@clisp.org>
39442
39443         Fix memory leak introduced on 2008-05-22.
39444         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39445         use.
39446
39447 2008-06-07  Bruno Haible  <bruno@clisp.org>
39448
39449         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39450         to construct an empty ACL.
39451
39452 2008-06-07  Bruno Haible  <bruno@clisp.org>
39453
39454         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39455         precisely.
39456         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39457
39458 2008-06-07  Bruno Haible  <bruno@clisp.org>
39459
39460         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39461         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39462
39463 2008-06-07  Bruno Haible  <bruno@clisp.org>
39464
39465         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39466         regardless of POSIX.
39467         * doc/posix-functions/_longjmp.texi: Likewise.
39468         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39469         SystemV platform in this case.
39470
39471 2008-06-06  Eric Blake  <ebb9@byu.net>
39472
39473         Document abort() bugs.
39474         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39475
39476         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39477         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39478         sigsetjmp.
39479         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39480         siglongjmp, but only as a macro.
39481         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39482         is obsolete.
39483         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39484
39485         Tweak documentation to cover cygwin argz bugs.
39486         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39487         argz bug fix; no code change needed since no cygwin releases
39488         occurred between the last fix and the bug being tested.
39489         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39490         module and recently fixed cygwin bugs.
39491         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39492         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39493         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39494         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39495         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39496         Likewise.
39497         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39498         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39499         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39500         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39501         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39502         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39503         Likewise.
39504
39505         Avoid gcc warning on cygwin.
39506         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39507         !ACL_NO_TRIVIAL]: Avoid unused variable.
39508
39509 2008-06-05  Eric Blake  <ebb9@byu.net>
39510
39511         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39512         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39513         git-version-gen fails to come up with a version.
39514         Reported by Simon Josefsson.
39515
39516 2008-06-05  Jim Meyering  <meyering@redhat.com>
39517             Paul Eggert  <eggert@cs.ucla.edu>
39518
39519         utimens.c: work around a probable Linux kernel bug
39520         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39521         appears to be a kernel bug that causes utimensat to return 280
39522         instead of 0, indicating success.
39523
39524 2008-06-04  Bruno Haible  <bruno@clisp.org>
39525
39526         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39527         2008-06-01 commit.
39528
39529 2008-06-04  Bruno Haible  <bruno@clisp.org>
39530
39531         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39532         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39533         (file_has_acl): Use it. Save errno afterwards.
39534         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39535
39536 2008-06-03  Bruno Haible  <bruno@clisp.org>
39537
39538         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39539         draft code. Simplify #ifs.
39540         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39541         Put Solaris code after POSIX-draft code. Fix comments regarding
39542         Solaris 10, HP-UX. Mention Cygwin.
39543         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
39544
39545 2008-06-03  Eric Blake  <ebb9@byu.net>
39546
39547         Provide fallback for older kernels.
39548         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
39549         Provide runtime fallback if kernel lacks support.
39550         Reported by Mike Frysinger.
39551
39552 2008-06-02  Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
39555         it exists.
39556
39557 2008-06-02  Bruno Haible  <bruno@clisp.org>
39558
39559         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
39560         * lib/copy-acl.c (qcopy_acl): Update comment.
39561
39562 2008-06-02  Bruno Haible  <bruno@clisp.org>
39563
39564         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
39565         like ACL APIs.
39566
39567 2008-06-02  Bruno Haible  <bruno@clisp.org>
39568
39569         * tests/test-file-has-acl.sh: Use different code for Cygwin.
39570         * tests/test-set-mode-acl.sh: Likewise.
39571         * tests/test-copy-acl.sh: Likewise.
39572         * tests/test-copy-file.sh: Likewise.
39573
39574 2008-06-02  Bruno Haible  <bruno@clisp.org>
39575
39576         * tests/test-file-has-acl.sh: Remove unused code.
39577
39578 2008-06-01  Bruno Haible  <bruno@clisp.org>
39579
39580         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
39581         (copy_acl): Just a wrapper around qcopy_acl that emits the error
39582         messages.
39583         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
39584
39585 2008-06-01  Bruno Haible  <bruno@clisp.org>
39586
39587         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
39588         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
39589         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
39590         APIs.
39591         * modules/acl-tests (configure.ac): Remove tests now contained in
39592         m4/acl.m4.
39593
39594 2008-06-02  Jim Meyering  <meyering@redhat.com>
39595
39596         announce-gen: use a better key-server host name
39597         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
39598         it may be more consistently reliable.  Suggested by Werner Koch
39599         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
39600
39601 2008-06-01  Bruno Haible  <bruno@clisp.org>
39602
39603         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
39604         Reported by Voroskoi Andras <voroskoi@gmail.com>.
39605
39606 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
39607
39608         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
39609
39610 2008-06-01  Bruno Haible  <bruno@clisp.org>
39611
39612         New ACL tests.
39613         * tests/test-file-has-acl.sh: New file.
39614         * tests/test-file-has-acl.c: New file.
39615         * tests/test-set-mode-acl.sh: New file.
39616         * tests/test-set-mode-acl.c: New file.
39617         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
39618         * tests/test-copy-acl.c: New file.
39619         * modules/acl-tests: New file, based on modules/copy-file-tests.
39620         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
39621         (Depends-on): Add acl-tests.
39622         (configure.ac): Remove checks.
39623         (Makefile.am): Don't create test-sameacls program here any more.
39624
39625 2008-06-01  Bruno Haible  <bruno@clisp.org>
39626
39627         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
39628         * tests/test-sameacls.c: Include progname.h.
39629         (main): Invoke set_program_name. Portability fixes for MacOS X,
39630         Solaris, HP-UX.
39631
39632 2008-06-01  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
39635         function.
39636         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
39637
39638 2008-06-01  Bruno Haible  <bruno@clisp.org>
39639
39640         * modules/rpmatch (Depends-on): Add strdup.
39641
39642 2008-06-01  Bruno Haible  <bruno@clisp.org>
39643
39644         * lib/pipe.c: Include unistd-safer.h.
39645         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
39646         * modules/pipe (Depends-on): Add unistd-safer.
39647
39648 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39649
39650         * modules/autobuild (configure.ac): Call AB_INIT.
39651
39652 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39653
39654         * tests/test-getaddrinfo.c: Don't print debug messages by default.
39655         Suggested by Bruno Haible <bruno@clisp.org>.
39656
39657 2008-05-30  Simon Josefsson  <simon@josefsson.org>
39658
39659         * tests/test-base64.c: Cast size_t to unsigned long when invoking
39660         printf.  Use %lu instead of %d.  Reported by Bruno Haible
39661         <bruno@clisp.org>.
39662
39663 2008-05-29  Eric Blake  <ebb9@byu.net>
39664
39665         Prefer new POSIX 200x interfaces over futimesat.
39666         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
39667         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
39668         when available.
39669         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
39670
39671 2008-05-28  Bruno Haible  <bruno@clisp.org>
39672
39673         * modules/stpcpy (License): Change to LGPLv2+.
39674         Requested by David Lutterkort <dlutter@redhat.com>.
39675
39676 2008-05-27  Bruno Haible  <bruno@clisp.org>
39677
39678         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
39679         current mingw.
39680         Reported by Jose E. Marchesi <jemarch@gnu.org>.
39681
39682 2008-05-27  Bruno Haible  <bruno@clisp.org>
39683
39684         * modules/iconv_open (Link): New section, from module 'iconv'.
39685         * modules/striconv (Link): Likewise.
39686         * modules/striconveh (Link): Likewise.
39687         * modules/xstriconv (Link): Likewise.
39688         * modules/unicodeio (Link): Likewise.
39689         * modules/propername (Link): Likewise.
39690         Reported by Jim Meyering.
39691
39692 2008-05-26  Jim Meyering  <meyering@redhat.com>
39693
39694         sha256: do not artificially restrict buffer length to be < 2^32
39695         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
39696         uint32_t to size_t.
39697         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
39698         to match.
39699
39700         avoid unaligned access errors, e.g., on sparc
39701         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
39702         direct access through a possibly-unaligned uint64* pointer.
39703         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
39704         direct access through a possibly-unaligned uint32* pointer.
39705         Prompted by this patch from Tom "spot" Callaway:
39706         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
39707
39708         sha512.c: fix typo in comment
39709         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
39710
39711 2008-05-25  Bruno Haible  <bruno@clisp.org>
39712
39713         * lib/set-mode-acl.c: Renamed from lib/acl.c.
39714         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
39715         (Makefile.am): Update lib_SOURCES.
39716
39717 2008-05-25  Bruno Haible  <bruno@clisp.org>
39718
39719         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
39720
39721 2008-05-25  Jim Meyering  <meyering@redhat.com>
39722
39723         useless-if-before-free: freed expr may have white-space differences
39724         * build-aux/useless-if-before-free: Recognize cases in which the
39725         freed expression differs from the tested one in embedded white
39726         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
39727         $1 was used, so we can't make any regexp shy.  Improved tests now
39728         detect this.
39729
39730         useless-if-before-free: accept white space in the expression.
39731         * build-aux/useless-if-before-free: For now, any white space
39732         in the expression must be identical in the free argument.
39733
39734         useless-if-before-free: efficiency tweak
39735         * build-aux/useless-if-before-free: Make the expression-matching
39736         regexp "shy".
39737         Make the *outer* regexp shy, not the expr-matching one.
39738
39739         update code-in-comment to accept cast of free arg
39740         * build-aux/useless-if-before-free: Update regexp.
39741
39742 2008-05-25  Bruno Haible  <bruno@clisp.org>
39743
39744         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
39745         * modules/copy-file-tests (Files, Makefile.am): Update.
39746         * tests/test-copy-file.c (func_test_copy): Update.
39747
39748 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
39749
39750         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
39751
39752 2008-05-23  Bruno Haible  <bruno@clisp.org>
39753
39754         Improve support for ACLs on OSF/1.
39755         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
39756         Remove fallback for unknown flavors of ACLs.
39757
39758 2008-05-22  Bruno Haible  <bruno@clisp.org>
39759
39760         Add support for ACLs on OSF/1.
39761         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
39762         replacements.
39763         (acl_free_text): New macro fallback.
39764         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
39765         acl_free.
39766         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
39767         acl_free_text function. Require AC_C_INLINE.
39768
39769 2008-05-22  Bruno Haible  <bruno@clisp.org>
39770
39771         Make copy_acl work on MacOS X 10.5.
39772         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
39773         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
39774         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
39775         If MODE_INSIDE_ACL, don't assume that every system has the same text
39776         representation for ACLs as FreeBSD.
39777         * lib/copy-acl.c (copy_acl): Add support for platforms with
39778         !MODE_INSIDE_ACL.
39779         * lib/file-has-acl.c (file_has_acl): Likewise.
39780         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
39781         FreeBSD, MacOS X, or IRIX, respectively.
39782
39783 2008-05-22  Bruno Haible  <bruno@clisp.org>
39784
39785         * lib/acl.h: Don't include <sys/acl.h>.
39786         (GETACLCNT): Move fallback to lib/acl-internal.h.
39787         * lib/acl-internal.h: Include <sys/acl.h> here.
39788         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
39789
39790 2008-05-22  Bruno Haible  <bruno@clisp.org>
39791
39792         Split off copy_acl function to separate file.
39793         * lib/copy-acl.c: New file, extracted from lib/acl.c.
39794         * lib/acl.c (copy_acl): Moved function to separate file.
39795         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
39796         * modules/acl (Files): Add lib/copy-acl.c.
39797         (Makefiles.am): Augment lib_SOURCES.
39798
39799 2008-05-22  Bruno Haible  <bruno@clisp.org>
39800
39801         * modules/copy-file-tests: New file.
39802         * tests/test-copy-file.sh: New file.
39803         * tests/test-copy-file.c: New file.
39804         * tests/test-copy-file-sameacls.c: New file.
39805
39806 2008-05-22  Eric Blake  <ebb9@byu.net>
39807
39808         Avoid gcc warning.
39809         * tests/test-memcmp.c (main): Pass NULL indirectly.
39810
39811 2008-05-21  Bruno Haible  <bruno@clisp.org>
39812
39813         Add reference doc about ACLs.
39814         * doc/acl-resources.txt: New file.
39815         * doc/acl-cygwin.txt: New file.
39816
39817 2008-05-21  Bruno Haible  <bruno@clisp.org>
39818
39819         Avoid one more warning from gcc.
39820         * lib/vasnprintf.c (IF_LINT): Update comments.
39821         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39822
39823 2008-05-21  Jim Meyering  <meyering@redhat.com>
39824
39825         avoid a warning from gcc
39826         * lib/vasnprintf.c (IF_LINT): Define.
39827         (scale10_round_decimal_long_double):
39828         Use it to avoid a "may be used uninitialized" warning.
39829         (scale10_round_decimal_double): Likewise.
39830
39831 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39832
39833         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39834         declared.
39835
39836 2008-05-20  Bruno Haible  <bruno@clisp.org>
39837
39838         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39839         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39840
39841 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39842
39843         * modules/memcmp-tests: New file.
39844         * tests/test-memcmp.c: New file.
39845
39846 2008-05-19  Bruno Haible  <bruno@clisp.org>
39847
39848         * modules/propername (Notice, configure.ac): Put quoted "..." into
39849         --keyword option.
39850         * lib/propername.h: Update comments accordingly.
39851         Reported by Eric Blake.
39852
39853 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39854
39855         * modules/getpass-gnu (Depends-on): Add fseeko.
39856
39857 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39858
39859         * modules/base64-tests: New file.
39860
39861 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39862
39863         * lib/base64.c (base64_decode_ctx): If a decode context structure
39864         was passed in use it to ignore newlines.  If a context structure
39865         was _not_ passed in, continue to treat newlines as garbage (this
39866         is the historical behavior).  Formerly base64_decode.
39867         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39868         takes a decode context structure.
39869         * lib/base64.h (base64_decode): Macro for four-argument calls.
39870         (base64_decode_alloc): Likewise.
39871         * lib/base64.c (base64_decode_ctx): If a decode context structure
39872         was passed in use it to ignore newlines.  If a context structure
39873         was _not_ passed in, continue to treat newlines as garbage (this
39874         is the historical behavior).  Formerly base64_decode.
39875         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39876         takes a decode context structure.
39877         * lib/base64.h (base64_decode): Macro for four-argument calls.
39878         (base64_decode_alloc): Likewise.
39879
39880 2008-05-19  Jim Meyering  <meyering@redhat.com>
39881
39882         avoid a warning from gcc
39883         * lib/trim.c (IF_LINT): Define.
39884         (trim2): Use it to avoid a "may be used uninitialized" warning.
39885
39886         Fix doc typo.
39887         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39888
39889 2008-05-19  Bruno Haible  <bruno@clisp.org>
39890
39891         * doc/glibc-functions/getpass.texi: Document limits of other
39892         implementations.
39893
39894 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39895             Bruno Haible <bruno@clisp.org>
39896
39897         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39898
39899 2008-05-18  Bruno Haible  <bruno@clisp.org>
39900
39901         * modules/propername: New file, from GNU gettext.
39902         * lib/propername.h: New file, from GNU gettext.
39903         * lib/propername.c: New file, from GNU gettext.
39904         * MODULES.html.sh (Internationalization functions): Add propername.
39905
39906 2008-05-16  Jim Meyering  <meyering@redhat.com>
39907             Bruno Haible  <bruno@clisp.org>
39908
39909         Avoid some warnings from "gcc -Wshadow".
39910         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39911
39912 2008-05-15  Eric Blake  <ebb9@byu.net>
39913
39914         Extend previous patch to cygwin 1.7.0.
39915         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39916         fast implementation in cygwin >= 1.7.0.
39917         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39919
39920 2008-05-15  Bruno Haible  <bruno@clisp.org>
39921
39922         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39923         implementation in glibc >= 2.9.
39924         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39925         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39926
39927 2008-05-15  Bruno Haible  <bruno@clisp.org>
39928
39929         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39930         (Unicode string functions): Add unilbrk/*.
39931         Reported by Karl Berry.
39932
39933 2008-05-15  Eric Blake  <ebb9@byu.net>
39934
39935         Fix violation of <stdbool.h> replacement in regex.
39936         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39937         * lib/regexec.c (re_search_internal): Likewise.
39938         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39939
39940 2008-05-15  Jim Meyering  <meyering@redhat.com>
39941
39942         avoid distracting test output when git or cvs is not found
39943         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39944         * tests/test-vc-list-files-git.sh: Likewise.
39945
39946 2008-05-15  Eric Blake  <ebb9@byu.net>
39947
39948         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39949         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39950         glibc version.
39951         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39952         * doc/posix-functions/strstr.texi (strstr): Likewise.
39953         * lib/str-two-way.h (MAX): Sychronize with glibc.
39954
39955 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39956
39957         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39958         opr.ctx_type.
39959         (calc_first): Initialize constraint field.
39960         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39961         Fix grammar.
39962         (duplicate_node): Merge constraint field for all node types.
39963         (calc_eclosure_iter): Look at constraint field for all node types.
39964         * lib/regex_internal.c (create_cd_newstate): Don't look at
39965         opr.ctx_type.
39966
39967 2008-05-14  Bruno Haible  <bruno@clisp.org>
39968
39969         Help GCC to do better code generation.
39970         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39971         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39972         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39973         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39974         Declare with attribute 'malloc' if supported.
39975
39976 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39977
39978         use "echo STR|wc -c" rather than unportable "expr length STR"
39979         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39980         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39981
39982 2008-05-14  Jim Meyering  <meyering@redhat.com>
39983
39984         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39985         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39986         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39987         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39988         via Collin Lasse.
39989
39990 2008-05-14  Eric Blake  <ebb9@byu.net>
39991
39992         Avoid quadratic growth in gl_LIBSOURCES.
39993         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39994         Suggested by Bruno Haible.
39995
39996         Test xmemdup0.
39997         * modules/xmemdup0-tests: New file.
39998         * tests/test-xmemdup0.c: Likewise.
39999
40000 2008-05-13  Eric Blake  <ebb9@byu.net>
40001
40002         Split xmemdup0 into its own module.
40003         * modules/xmemdup0: New file.
40004         * lib/xmemdup0.h: Likewise.
40005         * lib/xmemdup0.c: Likewise.
40006         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40007         * lib/xalloc.h (xmemdup0): Remove.
40008         * lib/xmalloc.c (xmemdup0): Likewise.
40009
40010 2008-05-13  Eric Blake  <ebb9@byu.net>
40011             Bruno Haible  <bruno@clisp.org>
40012
40013         Reduce number of forks required during autoconf.
40014         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40015         and gl_LIBSOURCES_DIR.
40016         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40017         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40018         m4_syscmd per file.
40019         <m4_foreach_w>: Move...
40020         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40021
40022 2008-05-13  Eric Blake  <ebb9@byu.net>
40023
40024         * gnulib-tool: Fix various comment typos.
40025
40026 2008-05-12  Bruno Haible  <bruno@clisp.org>
40027
40028         Tailor the linebreaking algorithm.
40029         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40030
40031 2008-05-12  Bruno Haible  <bruno@clisp.org>
40032
40033         Update to Unicode 5.0.0.
40034         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40035         LBP_JV, LBP_JT. Redistribute values.
40036         (unilbrk_table): Change size.
40037         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40038         Unicode TR#14 rev. 22.
40039         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40040         LBP_JV, LBP_JT. Redistribute values.
40041         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40042         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40043         Update.
40044         * lib/unilbrk/lbrkprop1.h: Regenerated.
40045         * lib/unilbrk/lbrkprop2.h: Regenerated.
40046         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40047         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40048         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40049         Likewise.
40050         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40051         Likewise.
40052         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40053         result.
40054         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40055         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40056         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40057         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40058         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40059         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40060
40061 2008-05-11  Bruno Haible  <bruno@clisp.org>
40062
40063         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40064
40065 2008-05-11  Bruno Haible  <bruno@clisp.org>
40066
40067         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40068         * modules/unilbrk/gen-lbrk: New file.
40069
40070 2008-05-11  Bruno Haible  <bruno@clisp.org>
40071
40072         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40073         * m4/sha512.m4 (gl_SHA512): Likewise.
40074
40075 2008-05-11  Jim Meyering  <meyering@redhat.com>
40076
40077         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40078         * modules/crypto/sha256: New file.
40079         * modules/crypto/sha512: Likewise.
40080         * lib/sha256.c: Likewise.
40081         * lib/sha256.h: Likewise.
40082         * lib/sha512.c: Likewise.
40083         * lib/sha512.h: Likewise.
40084         * lib/u64.h: Likewise.
40085         * m4/sha256.m4: Likewise.
40086         * m4/sha512.m4: Likewise.
40087         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40088
40089 2008-05-10  Bruno Haible  <bruno@clisp.org>
40090
40091         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40092         (Input/Output <stdio.h>): Add xprintf.
40093         (Signal handling <signal.h>): Add strsignal.
40094         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40095         (Core language properties): Add func.
40096         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40097         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40098         strings.
40099         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40100         (Input/output): New section.
40101         (File system functions): Add openat-die, stat-macros.
40102         (Networking functions): Add sockets.
40103         (Unicode string functions): Add unictype/*.
40104         (Support for building libraries and executables): Add gperf.
40105         (Support for building documentation): Add agpl-3.0.
40106         (Misc): Add nocrash.
40107
40108 2008-05-10  Bruno Haible  <bruno@clisp.org>
40109
40110         * modules/unictype/gen-ctype: New file.
40111
40112 2008-05-10  Jim Meyering  <meyering@redhat.com>
40113
40114         Make chdir-safer.c more efficient on a system with no symlinks.
40115         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40116         also if ELOOP is zero.  Suggested by Bruno Haible.
40117
40118         Make chdir-safer.c slightly safer.
40119         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40120         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40121
40122         Avoid compile failure on systems without ELOOP (like mingw).
40123         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40124         Reported by Bruno Haible.
40125
40126 2008-05-10  Bruno Haible  <bruno@clisp.org>
40127
40128         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40129         (is_utf8_encoding): Use a case-insensitive comparison.
40130         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40131         streq.
40132
40133 2008-05-10  Bruno Haible  <bruno@clisp.org>
40134
40135         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40136         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40137         * lib/unilbrk/ulc-common.h (iconv_string_length,
40138         iconv_string_keeping_offsets): Remove declarations.
40139         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40140         Don't include <iconv.h>, streq.h, xsize.h.
40141         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40142         conversion.
40143         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40144         <iconv.h>, streq.h, xsize.h.
40145         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40146         conversion.
40147         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40148         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40149         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40150         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40151
40152 2008-05-10  Bruno Haible  <bruno@clisp.org>
40153
40154         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40155         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40156
40157         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40158         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40159
40160         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40161         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40162
40163         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40164         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40165
40166         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40167         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40168
40169         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40170         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40171
40172         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40173         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40174
40175         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40176         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40177
40178 2008-05-10  Bruno Haible  <bruno@clisp.org>
40179
40180         Split up 'linebreak' module.
40181         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40182         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40183         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40184         modifications.
40185         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40186         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40187         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40188         lib/linebreak.c.
40189         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40190         lib/linebreak.c.
40191         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40192         lib/linebreak.c.
40193         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40194         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40195         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40196         lib/linebreak.c.
40197         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40198         lib/linebreak.c.
40199         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40200         lib/linebreak.c.
40201         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40202         lib/linebreak.c.
40203         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40204         lib/linebreak.c.
40205         * modules/unilbrk/base: New file.
40206         * modules/unilbrk/tables: New file.
40207         * modules/unilbrk/u8-possible-linebreaks: New file.
40208         * modules/unilbrk/u16-possible-linebreaks: New file.
40209         * modules/unilbrk/u32-possible-linebreaks: New file.
40210         * modules/unilbrk/ulc-common: New file.
40211         * modules/unilbrk/ulc-possible-linebreaks: New file.
40212         * modules/unilbrk/u8-width-linebreaks: New file.
40213         * modules/unilbrk/u16-width-linebreaks: New file.
40214         * modules/unilbrk/u32-width-linebreaks: New file.
40215         * modules/unilbrk/ulc-width-linebreaks: New file.
40216         * lib/linebreak.h: Remove file.
40217         * lib/linebreak.c: Remove file.
40218         * m4/linebreak.m4: Remove file.
40219         * modules/linebreak: Remove file.
40220         * NEWS: Mention the changes.
40221
40222 2008-05-09  Eric Blake  <ebb9@byu.net>
40223
40224         Add xmemdup0.
40225         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40226         implementation.
40227         * lib/xmalloc.c (xmemdup0): New C implementation.
40228
40229 2008-05-08  Bruno Haible  <bruno@clisp.org>
40230
40231         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40232
40233 2008-05-07  Eric Blake  <ebb9@byu.net>
40234
40235         Support cross-compilation of <wctype.h>.
40236         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40237         AC_CACHE_CHECK.
40238
40239 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40240
40241         * build-aux/vc-list-files: Add support for bzr.
40242
40243 2008-05-03  Jim Meyering  <meyering@redhat.com>
40244
40245         avoid failed assertion with tight malloc
40246         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40247
40248 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40249
40250         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40251         are needed from arpa/inet.h.
40252         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40253         Reported by Bruno Haible.
40254
40255 2008-05-02  Jim Meyering  <meyering@redhat.com>
40256
40257         avoid compilation error on FreeBSD 6
40258         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40259
40260 2008-05-01  Jim Meyering  <meyering@redhat.com>
40261
40262         useless-if-before-free: correct --help's exit status description
40263         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40264         for one or more matches, etc.  Reported by Bruno Haible.
40265
40266         vc-list-files: make the stand-alone gnulib test work
40267         * modules/vc-list-files-tests (configure.ac):
40268         Define and AC_SUBST abs_aux_dir.
40269         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40270         $(abs_top_srcdir) to each script and having each of them
40271         duplicate the work of setting PATH, set PATH here, using
40272         the new variable, abs_aux_dir instead.
40273         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40274         * tests/test-vc-list-files-git.sh: Likewise.
40275         Reported by Bruno Haible.
40276
40277 2008-05-01  Bruno Haible  <bruno@clisp.org>
40278
40279         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40280         reallocation. Rename 'done' to 'found_delimiter'.
40281
40282 2008-05-01  Jim Meyering  <meyering@redhat.com>
40283
40284         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40285         * build-aux/vc-list-files: Use `...`, not $(...).
40286
40287 2008-04-30  Jim Meyering  <meyering@redhat.com>
40288
40289         add tests for vc-list-files
40290         * modules/vc-list-files-tests: New module.
40291         * tests/test-vc-list-files-cvs.sh: New file.
40292         * tests/test-vc-list-files-git.sh: New file.
40293
40294         avoid a warning from gcc
40295         * lib/getndelim2.c (IF_LINT): Define.
40296         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40297
40298         vc-list-files: work properly with build-aux/cvsu, too
40299         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40300         to all cvs-based clauses.
40301
40302         vc-list-files: work properly in the CVS+awk case, too
40303         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40304
40305         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40306         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40307         take more than one file argument, so .  Add quotes, just in case $dir
40308         ever contains a shell meta-character.  Prompted by Soren Hansen in
40309         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40310
40311 2008-04-29  Eric Blake  <ebb9@byu.net>
40312
40313         Optimize getndelim2 to use block operations when possible.
40314         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40315         freadseek, and memchr2.
40316         * lib/getndelim2.c (getndelim2): Use them for block reads.
40317
40318 2008-04-29  Bruno Haible  <bruno@clisp.org>
40319
40320         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40321         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40322         * modules/inet_ntop (Depends-on): Add extensions.
40323         * modules/inet_pton (Depends-on): Likewise.
40324         Reported by Simon Josefsson.
40325
40326 2008-04-29  Jim Meyering  <meyering@redhat.com>
40327
40328         When the is more than one match in a block, match all of them.
40329         * build-aux/useless-if-before-free: Iterate through each block
40330         until there are no more matches.
40331
40332         Fix broken useless-if-before-free script.
40333         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40334         the expression to match cast of argument to free-like function.
40335
40336 2008-04-29  Eric Blake  <ebb9@byu.net>
40337
40338         Use new header.
40339         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40340
40341 2008-04-29  Jim Meyering  <meyering@redhat.com>
40342
40343         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40344         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40345         by gnulib to exist and to declare e.g., inet_ntop.
40346         Don't include "inet_ntop.h", now removed.
40347
40348         * m4/arpa_inet_h.m4: Remove trailing blanks.
40349
40350 2008-04-29  Eric Blake  <ebb9@byu.net>
40351
40352         Silence valgrind on safe reads beyond potential array bounds.
40353         * lib/rawmemchr.valgrind: New file.
40354         * lib/strchrnul.valgrind: Likewise.
40355         * modules/rawmemchr (Files): Distribute new file.
40356         * modules/strchrnul (Files): Likewise.
40357         Suggested by Bruno Haible.
40358
40359 2008-04-29  Bruno Haible  <bruno@clisp.org>
40360
40361         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40362         (inet_ntop, inet_pton): Change portability warning's wording.
40363         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40364         Invoke gl_CHECK_NEXT_HEADERS.
40365         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40366         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40367         set ARPA_INET_H.
40368         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40369         * modules/arpa_inet (Description): No longer only for systems that
40370         lack it.
40371         (Depends-on): Add include_next.
40372         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40373         HAVE_ARPA_INET_H.
40374
40375 2008-04-29  Jim Meyering  <meyering@redhat.com>
40376
40377         * modules/mkdir (License): Re-license as LGPLv2+.
40378
40379 2008-04-29  Bruno Haible  <bruno@clisp.org>
40380
40381         * modules/rawmemchr (Maintainer): Set to Eric.
40382         * modules/strchrnul (Maintainer): Likewise.
40383
40384 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40385
40386         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40387         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40388
40389         * modules/arpa_inet (arpa/inet.h): Use them.
40390
40391 2008-04-28  Eric Blake  <ebb9@byu.net>
40392
40393         Test getndelim2.
40394         * modules/getndelim2-tests: New file.
40395         * tests/test-getndelim2.c: Likewise.
40396         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40397         stream.
40398         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40399
40400         * MODULES.html.sh: Document new module.
40401
40402 2008-04-20  Bruno Haible  <bruno@clisp.org>
40403
40404         * lib/c-stack.c (die): Use raise.
40405         * modules/c-stack (Depends-on): Add raise.
40406
40407 2008-04-28  Bruno Haible  <bruno@clisp.org>
40408
40409         Expect rpmatch to be declared.
40410         * lib/yesno.c (rpmatch): Remove declaration.
40411
40412         Declare rpmatch.
40413         * lib/stdlib.in.h (rpmatch): New declaration.
40414         * lib/rpmatch.c: Include <stdlib.h> first.
40415         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40416         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40418         HAVE_RPMATCH.
40419         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40420         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40421         (Include): Set to <stdlib.h>.
40422         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40423         HAVE_RPMATCH.
40424         * NEWS: Document the change.
40425
40426 2008-04-28  Bruno Haible  <bruno@clisp.org>
40427
40428         Change rpmatch to use nl_langinfo when appropriate.
40429         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40430         (N_): New macro.
40431         (localized_pattern): New function/macro.
40432         (try): Remove match, nomatch arguments. Copy the pattern into safe
40433         memory before caching it.
40434         (rpmatch): Use localized_pattern. Add translator comments.
40435         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40436         Suggested by Eric Blake.
40437         * modules/rpmatch (Depends-on): Add stdbool.
40438
40439 2008-04-28  Eric Blake  <ebb9@byu.net>
40440
40441         Add rawmemchr module, matching glibc.
40442         * modules/string (Makefile.am): New indicator.
40443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40444         * lib/string.in.h (rawmemchr): Declare when appropriate.
40445         * modules/rawmemchr: New file.
40446         * m4/rawmemchr.m4: Likewise.
40447         * lib/rawmemchr.c: Likewise.
40448         * modules/rawmemchr-tests: Likewise.
40449         * tests/test-rawmemchr.c: Likewise.
40450         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40451         module.
40452         * modules/strchrnul (Depends-on): Add rawmemchr.
40453         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40454
40455         Whitespace cleanup.
40456         * tests/test-strchrnul.c: Reindent.
40457         * lib/strchrnul.c: Likewise.
40458
40459         Optimize and test strchrnul.
40460         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40461         * modules/strchrnul-tests: New file.
40462         * tests/test-strchrnul.c: Likewise.
40463
40464         Remove intprops dependency.
40465         * modules/memchr (Depends-on): Remove intprops.
40466         * modules/memrchr (Depends-on): Likewise.
40467         * modules/memchr2 (Depends-on): Likewise.
40468         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40469         * lib/memrchr.c (__memrchr): Likewise.
40470         * lib/memrchr2.c (memchr2): Likewise.
40471         Reported by Simon Josefsson.
40472
40473 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40474
40475         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40476         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40477
40478 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40479
40480         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40481
40482         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40483
40484         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40485
40486         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40487         declarations.
40488         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40489
40490         * m4/inet_pton.m4: Don't check for header files.
40491
40492         * m4/inet_ntop.m4: Don't check for header files.
40493
40494 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40495
40496         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40497         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40498         trigger for cygwin).
40499         Reported by Bruno Haible  <bruno@clisp.org>.
40500
40501 2008-04-28  Bruno Haible  <bruno@clisp.org>
40502
40503         * doc/posix-functions/strdup.texi: Mention mingw problem.
40504
40505 2008-04-27  Bruno Haible  <bruno@clisp.org>
40506
40507         * modules/stat-time-tests (Depends-on): Add sleep.
40508         * tests/test-stat-time.c (force_unlink): New function.
40509         (cleanup): Use it.
40510         (test_mtime): Remove the ctime related tests.
40511         (test_ctime): New function, containing the ctime related tests.
40512         (main): Call test_ctime, except on native Windows platforms.
40513
40514 2008-04-27  Bruno Haible  <bruno@clisp.org>
40515
40516         * lib/rpmatch.c (rpmatch): Add some comments.
40517         Reported by James Youngman <jay@gnu.org>.
40518
40519 2008-04-27  Bruno Haible  <bruno@clisp.org>
40520
40521         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40522         quiet NaNs.
40523
40524 2008-04-27  Bruno Haible  <bruno@clisp.org>
40525
40526         Make test-yesno.sh work on mingw.
40527         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40528         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40529         (main): Set stdin to binary mode.
40530         * modules/yesno-tests (Depends-on): Add binary-io.
40531
40532 2008-04-27  Bruno Haible  <bruno@clisp.org>
40533
40534         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40535         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40536         argument that lie outside the IEEE 854 domain.
40537         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40538         (gl_ISFINITE): Use it.
40539         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40540
40541 2008-04-27  Bruno Haible  <bruno@clisp.org>
40542
40543         Allow local renaming in config.h.
40544         * lib/memrchr.c (memrchr): Don't undefine outside libc.
40545
40546 2008-04-27  Bruno Haible  <bruno@clisp.org>
40547
40548         * lib/memchr.c (__memchr): Change type of 'i'.
40549         * lib/memchr2.c (memchr2): Likewise.
40550
40551 2008-04-26  Eric Blake  <ebb9@byu.net>
40552         and Bruno Haible  <bruno@clisp.org>
40553
40554         Optimize and test memrchr.
40555         * modules/memrchr (Depends-on): Add intprops.
40556         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
40557         * modules/memrchr-tests: New file.
40558         * tests/test-memrchr.c: New file.
40559
40560 2008-04-26  Bruno Haible  <bruno@clisp.org>
40561
40562         Add tentative support for DragonFly BSD.
40563         * lib/stdio-impl.h: Add macros for DragonFly BSD.
40564         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
40565         fp.
40566         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40567         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
40568         * lib/fpurge.c (fpurge): Likewise.
40569         * lib/freadable.c (freaadable): Likewise.
40570         * lib/freadahead.c (freadahead): Likewise.
40571         * lib/freading.c (freading): Likewise.
40572         * lib/freadptr.c (freadptr): Likewise.
40573         * lib/freadseek.c (freadptrinc): Likewise.
40574         * lib/fseeko.c (fseeko): Likewise.
40575         * lib/fseterr.c (fseterr): Likewise.
40576         * lib/fwritable.c (fwritable): Likewise.
40577         * lib/fwriting.c (fwriting): Likewise.
40578
40579 2008-04-26  Bruno Haible  <bruno@clisp.org>
40580
40581         * lib/stdio-impl.h: New file.
40582         * lib/fbufmode.c: Include stdio-impl.h.
40583         (fbufmode): Use fp_, remove redundant #defines.
40584         * lib/fflush.c: Include stdio-impl.h.
40585         (clear_ungetc_buffer): Remove redundant #defines.
40586         * lib/fpurge.c: Include stdio-impl.h.
40587         (fpurge): Remove redundant #defines.
40588         * lib/freadable.c: Include stdio-impl.h.
40589         (freadable): Remove redundant #defines.
40590         * lib/freadahead.c: Include stdio-impl.h.
40591         (freadahead): Remove redundant #defines.
40592         * lib/freading.c: Include stdio-impl.h.
40593         (freading): Remove redundant #defines.
40594         * lib/freadptr.c: Include stdio-impl.h.
40595         (freadptr): Remove redundant #defines.
40596         * lib/freadseek.c: Include stdio-impl.h.
40597         (freadptrinc): Remove redundant #defines.
40598         * lib/fseeko.c: Include stdio-impl.h.
40599         (rpl_fseeko): Remove redundant #defines.
40600         * lib/fseterr.c: Include stdio-impl.h.
40601         (fseterr): Remove redundant #defines.
40602         * lib/fwritable.c: Include stdio-impl.h.
40603         (fwritable: Remove redundant #defines.
40604         * lib/fwriting.c: Include stdio-impl.h.
40605         (fwriting): Remove redundant #defines.
40606         * modules/fbufmode (Files): Add lib/stdio-impl.h.
40607         * modules/fflush (Files): Likewise.
40608         * modules/fpurge (Files): Likewise.
40609         * modules/freadable (Files): Likewise.
40610         * modules/freadahead (Files): Likewise.
40611         * modules/freading (Files): Likewise.
40612         * modules/freadptr (Files): Likewise.
40613         * modules/freadseek (Files): Likewise.
40614         * modules/fseeko (Files): Likewise.
40615         * modules/fseterr (Files): Likewise.
40616         * modules/fwritable (Files): Likewise.
40617         * modules/fwriting (Files): Likewise.
40618
40619 2008-04-26  Bruno Haible  <bruno@clisp.org>
40620
40621         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
40622         restore_seek_optimization, update_fpos_cache): New functions, extracted
40623         from rpl_fflush.
40624         (rpl_fflush): Use them.
40625         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
40626         (gl_REPLACE_FFLUSH): Use it.
40627
40628 2008-04-26  Bruno Haible  <bruno@clisp.org>
40629
40630         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
40631         on Solaris.
40632         * tests/test-xstrtoimax.sh: Likewise.
40633         * tests/test-xstrtoumax.sh: Likewise.
40634         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40635
40636 2008-04-26  Bruno Haible  <bruno@clisp.org>
40637
40638         * modules/memchr-tests: New file.
40639         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
40640
40641 2008-04-26  Eric Blake  <ebb9@byu.net>
40642             Bruno Haible  <bruno@clisp.org>
40643
40644         * lib/memchr.c: Include intprops.h.
40645         (__memchr): Optimize parallel detection of matching bytes. Rename local
40646         variables. Add explanatory comments.
40647
40648 2008-04-26  Bruno Haible  <bruno@clisp.org>
40649
40650         Fix module 'memchr', broken since 2000-10-28.
40651         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
40652
40653 2008-04-26  Bruno Haible  <bruno@clisp.org>
40654
40655         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
40656         comments.
40657
40658 2008-04-25  Eric Blake  <ebb9@byu.net>
40659
40660         Use native fstatat on cygwin 1.7.0.
40661         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
40662         first.
40663
40664 2008-04-23  Eric Blake  <ebb9@byu.net>
40665
40666         Improve memchr2 performance.
40667         * lib/memchr2.c (memchr2): Further optimize parallel detection of
40668         NUL bytes.
40669         * modules/memchr2 (Depends-on): Use intprops.h.
40670
40671 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40672
40673         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
40674         an inline function instead of a CPP macro.  Patch by Ben Pfaff
40675         <blp@cs.stanford.edu>.
40676
40677 2008-04-23  Simon Josefsson  <simon@josefsson.org>
40678
40679         * lib/arpa_inet.in.h: New file.
40680
40681         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
40682         (Makefile.am): Sed in substitute header file.
40683
40684         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
40685         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
40686
40687         * modules/inet_ntop (configure.ac): Use
40688         gl_ARPA_INET_MODULE_INDICATOR.
40689
40690         * modules/inet_pton (configure.ac): Use
40691         gl_ARPA_INET_MODULE_INDICATOR.
40692
40693 2008-04-22  Jim Meyering  <meyering@redhat.com>
40694
40695         * modules/verify (License): Re-license as LGPLv2+.
40696
40697 2008-04-22  Simon Josefsson  <simon@josefsson.org>
40698
40699         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
40700         parameter to void* as per POSIX standard (MinGW uses char*).
40701
40702 2008-04-21  Bruno Haible  <bruno@clisp.org>
40703
40704         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40705         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40706         Define to replacements if REPLACE_ISWCNTRL is 1.
40707         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
40708         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
40709         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
40710         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
40711         what it fixes.
40712         * doc/posix-functions/iswalpha.texi: Likewise.
40713         * doc/posix-functions/iswblank.texi: Likewise.
40714         * doc/posix-functions/iswcntrl.texi: Likewise.
40715         * doc/posix-functions/iswdigit.texi: Likewise.
40716         * doc/posix-functions/iswgraph.texi: Likewise.
40717         * doc/posix-functions/iswlower.texi: Likewise.
40718         * doc/posix-functions/iswprint.texi: Likewise.
40719         * doc/posix-functions/iswpunct.texi: Likewise.
40720         * doc/posix-functions/iswspace.texi: Likewise.
40721         * doc/posix-functions/iswupper.texi: Likewise.
40722         * doc/posix-functions/iswxdigit.texi: Likewise.
40723         Reported by Alain Guibert.
40724
40725 2008-04-21  Bruno Haible  <bruno@clisp.org>
40726
40727         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
40728         Patch by Alain Guibert.
40729
40730 2008-04-21  Bruno Haible  <bruno@clisp.org>
40731
40732         Fix test failures on mingw.
40733         * tests/test-xstrtol.c (print_no_progname): New function.
40734         (main): Install it in error_print_progname hook.
40735         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40736         * tests/test-xstrtoimax.sh: Likewise.
40737         * tests/test-xstrtoumax.sh: Likewise.
40738
40739 2008-04-21  Bruno Haible  <bruno@clisp.org>
40740
40741         Fix test failure on mingw.
40742         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
40743
40744 2008-04-21  Bruno Haible  <bruno@clisp.org>
40745
40746         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
40747         Actually assign a value.
40748
40749 2008-04-20  Bruno Haible  <bruno@clisp.org>
40750
40751         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
40752         take 2.
40753         * lib/canonicalize.c (canonicalize_file_name): Elide if the
40754         'canonicalize-lgpl' module is also used.
40755         * lib/canonicalize-lgpl.c: Undo last change.
40756         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
40757
40758 2008-04-20  Bruno Haible  <bruno@clisp.org>
40759
40760         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
40761         config.h. Provide _mkdir based fallback for mingw.
40762         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
40763         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
40764         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
40765         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
40766         rather than defining mkdir in config.h.
40767         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
40768         (gl_SYS_STAT_H_DEFAULTS): New macro.
40769         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
40770         HAVE_IO_H any more.
40771         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
40772         HAVE_DECL_MKDIR and HAVE_IO_H.
40773
40774 2008-04-20  Bruno Haible  <bruno@clisp.org>
40775
40776         * lib/isapipe.c: Port to native Windows platforms.
40777
40778 2008-04-20  Bruno Haible  <bruno@clisp.org>
40779
40780         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
40781
40782 2008-04-21  Eric Blake  <ebb9@byu.net>
40783
40784         Work around preprocessors that don't handle UINTMAX_MAX.
40785         * lib/memchr2.c (memchr2): Avoid embedded #if.
40786         Reported by Alain Guibert, fix suggested by Bruno Haible.
40787
40788 2008-04-21  Simon Josefsson  <simon@josefsson.org>
40789
40790         * doc/posix-functions/strftime.texi (strftime): Explain better
40791         Windows incompatibility.  Suggested by Micah Cowan
40792         <micah@cowan.name>.
40793
40794 2008-04-20  Bruno Haible  <bruno@clisp.org>
40795
40796         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
40797         unistr/u8-mblen.
40798
40799 2008-04-20  Bruno Haible  <bruno@clisp.org>
40800
40801         Fix test failure on platforms with non-GNU iconv.
40802         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
40803         (U_TO_U8): Use it, rather than u16_to_u8.
40804         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
40805         units at the end of the input string.
40806         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
40807
40808 2008-04-20  Bruno Haible  <bruno@clisp.org>
40809
40810         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
40811         when the resulting length is 0.
40812         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40813
40814 2008-04-20  Bruno Haible  <bruno@clisp.org>
40815
40816         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40817         works.
40818         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40819
40820 2008-04-20  Bruno Haible  <bruno@clisp.org>
40821
40822         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40823         * modules/tsearch-tests (configure.ac): Test for initstate function.
40824
40825 2008-04-20  Bruno Haible  <bruno@clisp.org>
40826
40827         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40828         for nlink_t if missing.
40829         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40830
40831 2008-04-19  Bruno Haible  <bruno@clisp.org>
40832
40833         Work around snprintf bug on Linux libc5.
40834         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40835         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40836         gl_SNPRINTF_SIZE1.
40837         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40838         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40839         that test failed.
40840         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40841         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40842         * modules/snprintf (Files): Add m4/printf.m4.
40843         * modules/vsnprintf (Files): Likewise.
40844         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40845         * doc/posix-functions/vsnprintf.texi: Likewise.
40846
40847 2008-04-19  Bruno Haible  <bruno@clisp.org>
40848
40849         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40850         from 0.0058 to less than 10^-7.
40851
40852 2008-04-19  Bruno Haible  <bruno@clisp.org>
40853
40854         Fix rounding when a precision is given.
40855         * lib/vasnprintf.c (is_borderline): New function.
40856         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40857         9...9x.
40858         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40859         %e, %g.
40860         * tests/test-vasprintf-posix.c (test_function): Likewise.
40861         * tests/test-snprintf-posix.h (test_function): Likewise.
40862         * tests/test-sprintf-posix.h (test_function): Likewise.
40863         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40864         * tests/test-printf-posix.h (test_function): Likewise.
40865         * tests/test-printf-posix.output: Update.
40866         Reported by John Darrington <john@darrington.wattle.id.au> via
40867         Ben Pfaff <blp@cs.stanford.edu>.
40868
40869 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40870
40871         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40872         Suggested by Bruno Haible <bruno@clisp.org>.
40873
40874 2008-04-17  Bruno Haible  <bruno@clisp.org>
40875
40876         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40877         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40878         implementation.
40879         Patch by Bruce Merry <bmerry@gmail.com>.
40880
40881 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40882
40883         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40884         doesn't work under Windows.
40885
40886 2008-04-16  Bruno Haible  <bruno@clisp.org>
40887
40888         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40889         New macros.
40890         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40891         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40892         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40893         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40894         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40895         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40896         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40897         macros.
40898         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40899         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40900         Northern Sotho, Uighur.
40901
40902 2008-04-16  Bruno Haible  <bruno@clisp.org>
40903
40904         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40905         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40906         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40907         Reported by Daniel Bergström <daniel@octocode.com>.
40908
40909 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40910             Bruno Haible  <bruno@clisp.org>
40911
40912         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40913         function.
40914         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40915         New functions, mostly extracted from gl_locale_name_default.
40916         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40917
40918 2008-04-16  Eric Blake  <ebb9@byu.net>
40919
40920         Adjust strtod detection to catch glibc 2.7 bug.
40921         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40922         Reported by John Gatewood Ham.
40923
40924 2008-04-16  Bruno Haible  <bruno@clisp.org>
40925
40926         Add tentative support for Linux libc5.
40927         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40928         * lib/fpurge.c (fpurge): Likewise.
40929         * lib/freadable.c (freadable): Likewise.
40930         * lib/freadahead.c (freadahead): Likewise.
40931         * lib/freading.c (freading): Likewise.
40932         * lib/freadptr.c (freadptr): Likewise.
40933         * lib/freadseek.c (freadptrinc): Likewise.
40934         * lib/fseeko.c (rpl_fseeko): Likewise.
40935         * lib/fseterr.c (fseterr): Likewise.
40936         * lib/fwritable.c (fwritable): Likewise.
40937         * lib/fwriting.c (fwriting): Likewise.
40938         Reported by Alain Guibert <alguibert+bts@free.fr>.
40939
40940 2008-04-15  Bruno Haible  <bruno@clisp.org>
40941
40942         * modules/mathl (configure.ac): Define module indicator.
40943
40944 2008-04-15  Bruno Haible  <bruno@clisp.org>
40945
40946         * lib/logl.c (logl): Remove unused variables.
40947
40948 2008-04-15  Bruno Haible  <bruno@clisp.org>
40949
40950         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40951         fails.
40952
40953 2008-04-15  Bruno Haible  <bruno@clisp.org>
40954
40955         * lib/trim.c (trim2): Fix argument of isspace() macro.
40956
40957 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40958
40959         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40960         to 0.
40961         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40962
40963 2008-04-14  Bruno Haible  <bruno@clisp.org>
40964
40965         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40966         AC_LANG_PROGRAM argument.
40967         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40968         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40970         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40971         * m4/math_h.m4 (gl_MATH_H): Likewise.
40972         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40973         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40974         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40975         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40976         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40977         * m4/regex.m4 (gl_REGEX): Likewise.
40978         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40979         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40980         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40981         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40982         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40983         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40984         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40985         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40986
40987 2008-04-14  Jim Meyering  <meyering@redhat.com>
40988
40989         test-strtod: fix typos: s/abs/fabs/
40990         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40991
40992 2008-04-13  Bruno Haible  <bruno@clisp.org>
40993
40994         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40995         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40996         module is also used and while not building the reloc-wrapper.
40997
40998 2008-04-13  Bruno Haible  <bruno@clisp.org>
40999
41000         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41001
41002 2008-04-13  Bruno Haible  <bruno@clisp.org>
41003
41004         Fix AIX compilation failure introduced on 2008-04-02.
41005         * tests/test-frexp.c (exp): Undefine before redefining.
41006         * tests/test-frexpl.c (exp): Likewise.
41007
41008 2008-04-13  Bruno Haible  <bruno@clisp.org>
41009
41010         Work around a HP-UX stdio bug.
41011         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41012         * tests/test-ftello.c (main): Likewise.
41013         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41014         * doc/posix-functions/ftello.texi: Likewise.
41015
41016 2008-04-13  Bruno Haible  <bruno@clisp.org>
41017
41018         Make test-signbit pass on HP-UX/hppa.
41019         * tests/test-signbit.c (minus_zerol): New variable.
41020         (test_signbitl): Use it.
41021
41022 2008-04-13  Bruno Haible  <bruno@clisp.org>
41023
41024         Make truncl work on OSF/1 4.0.
41025         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41026         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41027         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41029         HAVE_DECL_TRUNCL.
41030         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41031         HAVE_DECL_TRUNCL.
41032         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41033
41034 2008-04-13  Bruno Haible  <bruno@clisp.org>
41035
41036         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41037
41038 2008-04-13  Bruno Haible  <bruno@clisp.org>
41039
41040         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41041         expression, so as to avoid HP-UX 11 cc compiler bug.
41042
41043 2008-04-13  Bruno Haible  <bruno@clisp.org>
41044
41045         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41046
41047 2008-04-13  Bruno Haible  <bruno@clisp.org>
41048
41049         * lib/git-merge-changelog.c: Remove empty declaration outside of
41050         functions.
41051
41052 2008-04-13  Bruno Haible  <bruno@clisp.org>
41053
41054         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41055
41056 2008-04-13  Bruno Haible  <bruno@clisp.org>
41057
41058         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41059         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41060         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41061         also if it exists but lacks definitions of the SHUT_* macros.
41062         * modules/sys_socket (Description): Update.
41063         Reported by Elbert Pol <e.pol@chello.nl>.
41064
41065 2008-04-13  Bruno Haible  <bruno@clisp.org>
41066
41067         * lib/localcharset.c (OS2): Don't redefine if already defined.
41068         Reported by Elbert Pol <e.pol@chello.nl>.
41069
41070 2008-04-13  Bruno Haible  <bruno@clisp.org>
41071
41072         * lib/binary-io.h [__EMX__]: Include <io.h>.
41073         Reported by Elbert Pol <e.pol@chello.nl>.
41074
41075 2008-04-12  Bruno Haible  <bruno@clisp.org>
41076
41077         * lib/fpucw.h: Enable the definitions also for x86_64.
41078         Needed for NetBSD/x86_64.
41079         Reported by Thomas Klausner <tk@giga.or.at>.
41080
41081 2008-04-12  Bruno Haible  <bruno@clisp.org>
41082
41083         * tests/test-strtod.c: Include isnand.h.
41084         (main): Use isnand instead of isnan.
41085         Reported by Jim Meyering.
41086
41087 2008-04-12  Bruno Haible  <bruno@clisp.org>
41088
41089         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41090         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41091
41092 2008-04-12  Jim Meyering  <meyering@redhat.com>
41093
41094         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41095
41096 2008-04-12  Bruno Haible  <bruno@clisp.org>
41097
41098         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41099         Reported by Elbert Pol <e.pol@chello.nl>.
41100
41101 2008-04-12  Eric Blake  <ebb9@byu.net>
41102
41103         Work around Solaris 10 math.h bug.
41104         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41105         (gl_MATH_H_DEFAULTS): Set up default.
41106         * modules/math (Makefile.am): Replace new indicators.
41107         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41108         * tests/test-math.c (main): Test this.
41109         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41110         * doc/posix-headers/math.texi (math.h): Mention bug.
41111         Reported by Nelson H. F. Beebe and Jim Meyering.
41112
41113 2008-04-11  Bruno Haible  <bruno@clisp.org>
41114
41115         Adapt to future versions of Apple GCC.
41116         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41117         Reported by Peter O'Gorman <peter@pogma.com>.
41118
41119 2008-04-11  Bruno Haible  <bruno@clisp.org>
41120
41121         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41122
41123 2008-04-11  Bruno Haible  <bruno@clisp.org>
41124
41125         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41126
41127         * modules/getaddrinfo-tests (Makefile.am): Define
41128         test_getaddrinfo_LDADD.
41129
41130 2008-04-11  Bruno Haible  <bruno@clisp.org>
41131
41132         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41133         (init): Fix syntax error.
41134         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41135         is declared.
41136
41137 2008-04-11  Bruno Haible  <bruno@clisp.org>
41138
41139         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41140         * modules/glob (Depends-on): Add stdbool.
41141
41142 2008-04-11  Bruno Haible  <bruno@clisp.org>
41143
41144         * lib/trim.c: Include <string.h>.
41145
41146 2008-04-11  Eric Blake  <ebb9@byu.net>
41147
41148         Avoid compile failure on OS/2.
41149         * lib/regex_internal.h (internal_function): Disable optimization
41150         on OS/2 (__EMX__), where it caused compiler error.
41151         Reported by Elbert Pol.
41152
41153 2008-04-11  Bruno Haible  <bruno@clisp.org>
41154
41155         Flush the standard error stream before aborting. Needed on mingw.
41156         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41157         * tests/test-array_list.c (ASSERT): Likewise.
41158         * tests/test-array_oset.c (ASSERT): Likewise.
41159         * tests/test-avltree_list.c (ASSERT): Likewise.
41160         * tests/test-avltree_oset.c (ASSERT): Likewise.
41161         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41162         * tests/test-binary-io.c (ASSERT): Likewise.
41163         * tests/test-byteswap.c (ASSERT): Likewise.
41164         * tests/test-c-ctype.c (ASSERT): Likewise.
41165         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41166         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41167         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41168         * tests/test-c-strstr.c (ASSERT): Likewise.
41169         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41170         * tests/test-canonicalize.c (ASSERT): Likewise.
41171         * tests/test-carray_list.c (ASSERT): Likewise.
41172         * tests/test-ceilf1.c (ASSERT): Likewise.
41173         * tests/test-ceilf2.c (ASSERT): Likewise.
41174         * tests/test-ceill.c (ASSERT): Likewise.
41175         * tests/test-count-one-bits.c (ASSERT): Likewise.
41176         * tests/test-fbufmode.c (ASSERT): Likewise.
41177         * tests/test-fflush2.c (ASSERT): Likewise.
41178         * tests/test-floorf1.c (ASSERT): Likewise.
41179         * tests/test-floorf2.c (ASSERT): Likewise.
41180         * tests/test-floorl.c (ASSERT): Likewise.
41181         * tests/test-fopen.c (ASSERT): Likewise.
41182         * tests/test-fpending.c (ASSERT): Likewise.
41183         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41184         * tests/test-fpurge.c (ASSERT): Likewise.
41185         * tests/test-freadable.c (ASSERT): Likewise.
41186         * tests/test-freadahead.c (ASSERT): Likewise.
41187         * tests/test-freading.c (ASSERT): Likewise.
41188         * tests/test-freadptr.c (ASSERT): Likewise.
41189         * tests/test-freadptr2.c (ASSERT): Likewise.
41190         * tests/test-freadseek.c (ASSERT): Likewise.
41191         * tests/test-freopen.c (ASSERT): Likewise.
41192         * tests/test-frexp.c (ASSERT): Likewise.
41193         * tests/test-frexpl.c (ASSERT): Likewise.
41194         * tests/test-fseek.c (ASSERT): Likewise.
41195         * tests/test-fseeko.c (ASSERT): Likewise.
41196         * tests/test-fstrcmp.c (ASSERT): Likewise.
41197         * tests/test-ftell.c (ASSERT): Likewise.
41198         * tests/test-ftello.c (ASSERT): Likewise.
41199         * tests/test-func.c (ASSERT): Likewise.
41200         * tests/test-fwritable.c (ASSERT): Likewise.
41201         * tests/test-fwriting.c (ASSERT): Likewise.
41202         * tests/test-getdelim.c (ASSERT): Likewise.
41203         * tests/test-getline.c (ASSERT): Likewise.
41204         * tests/test-i-ring.c (ASSERT): Likewise.
41205         * tests/test-iconv-utf.c (ASSERT): Likewise.
41206         * tests/test-iconv.c (ASSERT): Likewise.
41207         * tests/test-isfinite.c (ASSERT): Likewise.
41208         * tests/test-isnand.c (ASSERT): Likewise.
41209         * tests/test-isnanf.c (ASSERT): Likewise.
41210         * tests/test-isnanl.h (ASSERT): Likewise.
41211         * tests/test-ldexpl.c (ASSERT): Likewise.
41212         * tests/test-linked_list.c (ASSERT): Likewise.
41213         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41214         * tests/test-localename.c (ASSERT): Likewise.
41215         * tests/test-lseek.c (ASSERT): Likewise.
41216         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41217         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41218         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41219         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41220         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41221         * tests/test-mbschr.c (ASSERT): Likewise.
41222         * tests/test-mbscspn.c (ASSERT): Likewise.
41223         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41224         * tests/test-mbspbrk.c (ASSERT): Likewise.
41225         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41226         * tests/test-mbsrchr.c (ASSERT): Likewise.
41227         * tests/test-mbsspn.c (ASSERT): Likewise.
41228         * tests/test-mbsstr1.c (ASSERT): Likewise.
41229         * tests/test-mbsstr2.c (ASSERT): Likewise.
41230         * tests/test-mbsstr3.c (ASSERT): Likewise.
41231         * tests/test-memchr2.c (ASSERT): Likewise.
41232         * tests/test-memmem.c (ASSERT): Likewise.
41233         * tests/test-open.c (ASSERT): Likewise.
41234         * tests/test-printf-frexp.c (ASSERT): Likewise.
41235         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41236         * tests/test-printf-posix.c (ASSERT): Likewise.
41237         * tests/test-quotearg.c (ASSERT): Likewise.
41238         * tests/test-rbtree_list.c (ASSERT): Likewise.
41239         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41240         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41241         * tests/test-round1.c (ASSERT): Likewise.
41242         * tests/test-roundf1.c (ASSERT): Likewise.
41243         * tests/test-roundl.c (ASSERT): Likewise.
41244         * tests/test-signbit.c (ASSERT): Likewise.
41245         * tests/test-sleep.c (ASSERT): Likewise.
41246         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41247         * tests/test-snprintf.c (ASSERT): Likewise.
41248         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41249         * tests/test-stat-time.c (ASSERT): Likewise.
41250         * tests/test-strcasestr.c (ASSERT): Likewise.
41251         * tests/test-strerror.c (ASSERT): Likewise.
41252         * tests/test-striconv.c (ASSERT): Likewise.
41253         * tests/test-striconveh.c (ASSERT): Likewise.
41254         * tests/test-striconveha.c (ASSERT): Likewise.
41255         * tests/test-strsignal.c (ASSERT): Likewise.
41256         * tests/test-strstr.c (ASSERT): Likewise.
41257         * tests/test-strtod.c (ASSERT): Likewise.
41258         * tests/test-trunc1.c (ASSERT): Likewise.
41259         * tests/test-trunc2.c (ASSERT): Likewise.
41260         * tests/test-truncf1.c (ASSERT): Likewise.
41261         * tests/test-truncf2.c (ASSERT): Likewise.
41262         * tests/test-truncl.c (ASSERT): Likewise.
41263         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41264         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41265         * tests/test-vasnprintf.c (ASSERT): Likewise.
41266         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41267         * tests/test-vasprintf.c (ASSERT): Likewise.
41268         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41269         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41270         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41271         * tests/test-vsnprintf.c (ASSERT): Likewise.
41272         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41273         * tests/test-wcwidth.c (ASSERT): Likewise.
41274         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41275         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41276         * tests/test-xvasprintf.c (ASSERT): Likewise.
41277         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41278         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41279         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41280         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41281         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41282         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41283         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41284         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41285         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41286         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41287         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41288         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41289         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41290         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41291         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41292         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41293         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41294         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41295         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41296         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41297         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41298         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41299         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41300         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41301         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41302         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41303         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41304         * tests/unictype/test-combining.c (ASSERT): Likewise.
41305         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41306         * tests/unictype/test-digit.c (ASSERT): Likewise.
41307         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41308         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41309         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41310         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41311         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41312         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41313         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41314         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41315         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41316         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41317         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41318         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41319         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41320         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41321         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41322         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41323         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41324         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41325         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41326         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41327         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41328         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41329         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41330         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41331         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41332         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41333         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41334         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41335         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41336         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41337         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41338         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41339         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41340         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41341         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41342         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41343         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41344         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41345         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41346         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41347         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41348         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41349         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41350         Reported by Eric Blake.
41351
41352 2008-04-11  Bruno Haible  <bruno@clisp.org>
41353
41354         * lib/wchar.in.h: Tweak comment.
41355
41356 2008-04-11  Bruno Haible  <bruno@clisp.org>
41357
41358         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41359         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41360         gl_COMMON.
41361         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41362
41363 2008-04-11  Bruno Haible  <bruno@clisp.org>
41364
41365         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41366
41367 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41368
41369         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41370         of attempting to use non-existing /dev/*random.  Based on patch
41371         from Adam Strzelecki <ono@java.pl> in
41372         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41373
41374 2008-04-08  Bruno Haible  <bruno@clisp.org>
41375
41376         Add tentative support for emx+gcc.
41377         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41378         * lib/fpurge.c (fpurge): Likewise.
41379         * lib/freadable.c (freadable): Likewise.
41380         * lib/freadahead.c (freadahead): Likewise.
41381         * lib/freading.c (freading): Likewise.
41382         * lib/freadptr.c (freadptr): Likewise.
41383         * lib/freadseek.c (freadptrinc): Likewise.
41384         * lib/fseeko.c (rpl_fseeko): Likewise.
41385         * lib/fseterr.c (fseterr): Likewise.
41386         * lib/fwritable.c (fwritable): Likewise.
41387         * lib/fwriting.c (fwriting): Likewise.
41388         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41389
41390 2008-04-09  Eric Blake  <ebb9@byu.net>
41391
41392         Avoid some autoconf warnings.
41393         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41394         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41395         * m4/afs.m4 (gl_AFS): Likewise.
41396         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41397         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41398         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41399         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41400         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41401         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41402         (AC_CHECK_DECLS_ONCE): Likewise.
41403         Rename file...
41404         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41405         gnulib-tool requires autoconf 2.59 or better.
41406         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41407
41408 2008-04-08  Eric Blake  <ebb9@byu.net>
41409
41410         Use 'git describe --match' if present (added in git 1.5.5).
41411         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41412         if possible.
41413
41414 2008-04-08  Bruno Haible  <bruno@clisp.org>
41415
41416         Add tentative support for OpenServer.
41417         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41418         _ptr, _cnt.
41419         * lib/fpurge.c (fpurge): Likewise.
41420         * lib/freadable.c (freadable): Likewise.
41421         * lib/freadahead.c (freadahead): Likewise.
41422         * lib/freading.c (freading): Likewise.
41423         * lib/freadptr.c (freadptr): Likewise.
41424         * lib/freadseek.c (freadptrinc): Likewise.
41425         * lib/fseeko.c (rpl_fseeko): Likewise.
41426         * lib/fseterr.c (fseterr): Likewise.
41427         * lib/fwritable.c (fwritable): Likewise.
41428         * lib/fwriting.c (fwriting): Likewise.
41429         Reported by Roger Cornelius <rac@tenzing.org> and
41430         Brian K. White <brian@aljex.com>.
41431
41432 2008-04-06  Jim Meyering  <meyering@redhat.com>
41433
41434         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41435
41436 2008-04-06  Bruno Haible  <bruno@clisp.org>
41437
41438         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41439         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41440         * tests/test-printf-posix.sh: Likewise.
41441         * tests/test-vfprintf-posix.sh: Likewise.
41442         * tests/test-vprintf-posix.sh: Likewise.
41443         * tests/test-xprintf-posix.sh: Likewise.
41444
41445 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41446
41447         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41448         hide error from 'ls', needed on OS/2.
41449         Report by Elbert Pol <elbert.pol@gmail.com>.
41450
41451 2008-04-04  Eric Blake  <ebb9@byu.net>
41452
41453         Make test-fseeko.c failures meaningful.
41454         * tests/test-fseeko.c: Print line number on failure.
41455         * tests/test-fseek.c: Likewise.
41456         Reported by Nelson H. F. Beebe.
41457
41458         Improve strtod bug detection check.
41459         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41460         required for Solaris 10.
41461         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41462
41463 2008-04-04  Bruno Haible  <bruno@clisp.org>
41464
41465         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41466         by m4/setenv.m4.
41467
41468 2008-04-03  Eric Blake  <ebb9@byu.net>
41469
41470         Ensure sane .version contents.
41471         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41472         version string.
41473         * build-aux/git-version-gen: Improve documentation.
41474
41475         Make GNU make output nicer.
41476         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41477         MAKECMDGOALS to enforce message for all command line targets.  Set
41478         srcdir for use in maint.mk.
41479
41480         Another maintainer tweak.
41481         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41482         a target that regenerates version.
41483
41484 2008-04-03  Jim Meyering  <meyering@redhat.com>
41485
41486         vc-list-files: don't cause coreutils "make po-check" failure
41487         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41488
41489 2008-04-03  Eric Blake  <ebb9@byu.net>
41490
41491         Allow VPATH usage of vc-list-files.
41492         * build-aux/vc-list-files (scriptversion): Add timestamp.
41493         (options): Add --help, --version, -C.
41494         (CVS): Support installed cvsu.
41495
41496 2008-04-02  Bruno Haible  <bruno@clisp.org>
41497
41498         Avoid some "statement with no effect" warnings from gcc.
41499         * tests/test-wctype.c (main): Explicitly ignore unused values.
41500         Reported by Jim Meyering.
41501
41502 2008-04-02  Jim Meyering  <meyering@redhat.com>
41503
41504         Avoid some warnings from "gcc -Wshadow".
41505         * tests/test-frexp.c (exp): Define to a different identifier.
41506         * tests/test-frexpl.c (exp): Likewise.
41507
41508 2008-04-03  Jim Meyering  <meyering@redhat.com>
41509
41510         bootstrap: remove dangling *.[ch] symlinks from lib
41511         * build-aux/bootstrap [dangling symlink removal]: Move find's
41512         -depth option to precede all others, to avoid a warning.
41513         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41514
41515 2008-04-02  Bruno Haible  <bruno@clisp.org>
41516
41517         Avoid some warnings from "gcc -Wshadow".
41518         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41519         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41520         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41521         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41522         Reported by Jim Meyering.
41523
41524 2008-04-01  Bruno Haible  <bruno@clisp.org>
41525
41526         Fix test to work on IRIX 6.5 with cc.
41527         * tests/test-math.c (numeric_equal): New function.
41528         (main): Use it.
41529
41530 2008-04-01  Bruno Haible  <bruno@clisp.org>
41531
41532         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41533
41534 2008-04-01  Bruno Haible  <bruno@clisp.org>
41535
41536         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41537         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41538         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41539         (Depends-on): Remove math.
41540
41541         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
41542         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41543         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
41544         (Depends-on): Remove math.
41545
41546         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
41547         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41548         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
41549         (Depends-on): Remove math.
41550         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
41551         (Depends-on): Remove math.
41552
41553         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
41554         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41555         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
41556         (Depends-on): Remove math.
41557         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
41558         (Depends-on): Remove math.
41559
41560         * tests/test-round1.c: Include nan.h.
41561         (main): Use NaNd instead of NAN.
41562         * modules/round-tests (Files): Add tests/nan.h.
41563
41564         * tests/test-trunc1.c: Include nan.h.
41565         (main): Use NaNd instead of NAN.
41566         * modules/trunc-tests (Files): Add tests/nan.h.
41567
41568         * tests/test-roundf1.c: Include nan.h.
41569         (main): Use NaNf instead of NAN.
41570         * modules/roundf-tests (Files): Add tests/nan.h.
41571
41572         * tests/test-truncf1.c: Include nan.h.
41573         (main): Use NaNf instead of NAN.
41574         * modules/truncf-tests (Files): Add tests/nan.h.
41575
41576         * tests/test-ceilf1.c: Include nan.h.
41577         (main): Use NaNf instead of NAN.
41578         * modules/ceilf-tests (Files): Add tests/nan.h.
41579
41580         * tests/test-floorf1.c: Include nan.h.
41581         (main): Use NaNf instead of NAN.
41582         * modules/floorf-tests (Files): Add tests/nan.h.
41583
41584         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
41585         (main): Use NaNf instead of NAN.
41586         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
41587
41588         * tests/test-isnand.c: Include nan.h instead of <math.h>.
41589         (main): Use NaNd instead of NAN.
41590         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
41591
41592         * tests/test-frexp.c: Include nan.h.
41593         (main): Use NaNd instead of NAN.
41594         * modules/frexp-tests (Files): Add tests/nan.h.
41595
41596         * lib/isnan.c: Don't include <math.h>.
41597         (FUNC): Don't use NAN macro.
41598         * modules/isnand-nolibm (Depends-on): Remove math.
41599         * modules/isnanf-nolibm (Depends-on): Remove math.
41600         * modules/isnanl (Depends-on): Remove math.
41601         * modules/isnanl-nolibm (Depends-on): Remove math.
41602
41603         * tests/nan.h: New file.
41604
41605 2008-04-01  Eric Blake  <ebb9@byu.net>
41606
41607         Fix typos.
41608         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
41609         values to be the right type.
41610
41611         For now, cater to gnulib strtod inaccuracies.
41612         * tests/test-strtod.c (main): Allow 1-ulp error on expected
41613         fractional results.  While not as nice from a QoI perspective, it
41614         is a quicker patch than correctly implementing decimal to binary
41615         rounding.
41616
41617 2008-03-31  Eric Blake  <ebb9@byu.net>
41618
41619         Guarantee a definition of NAN.
41620         * lib/math.in.h (NAN): Define if missing.
41621         * tests/test-math.c (main): Test it.
41622         * doc/posix-headers/math.texi (math.h): Document this.
41623         * lib/isnan.c (rpl_isnand): Use it.
41624         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
41625         * tests/test-floorf1.c (NaN): Likewise.
41626         * tests/test-frexp.c (NaN): Likewise.
41627         * tests/test-isnand.c (NaN): Likewise.
41628         * tests/test-isnanf.c (NaN): Likewise.
41629         * tests/test-round1.c (NaN): Likewise.
41630         * tests/test-roundf1.c (NaN): Likewise.
41631         * tests/test-snprintf-posix.h (NaN): Likewise.
41632         * tests/test-sprintf-posix.h (NaN): Likewise.
41633         * tests/test-trunc1.c (NaN): Likewise.
41634         * tests/test-truncf1.c (NaN): Likewise.
41635         * tests/test-vasnprintf-posix.c (NaN): Likewise.
41636         * tests/test-vasprintf-posix.c (NaN): Likewise.
41637         * modules/isnand-nolibm (Depends-on): Add math.
41638         * modules/isnanf-nolibm (Depends-on): Likewise.
41639         * modules/isnanl (Depends-on): Likewise.
41640         * modules/isnanl-nolibm (Depends-on): Likewise.
41641         * modules/snprintf-posix-tests (Depends-on): Likewise.
41642         * modules/sprintf-posix-tests (Depends-on): Likewise.
41643         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
41644         * modules/vsprintf-posix-tests (Depends-on): Likewise.
41645         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
41646         * modules/vasprintf-posix-tests (Depends-on): Likewise.
41647
41648 2008-03-31  Bruno Haible  <bruno@clisp.org>
41649
41650         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
41651         * doc/posix-functions/strtod.texi: Likewise.
41652
41653 2008-03-31  Bruno Haible  <bruno@clisp.org>
41654
41655         * tests/test-strtod.c (main): Don't use C99 syntax.
41656
41657 2008-03-31  Bruno Haible  <bruno@clisp.org>
41658
41659         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
41660         Reported by Eric Blake.
41661
41662 2008-03-31  Jim Meyering  <meyering@redhat.com>
41663
41664         Don't compare actual signbit return values.
41665         * tests/test-strtod.c (main): Rather, compare only their
41666         zero/non-zero nature.
41667
41668 2008-03-31  Eric Blake  <ebb9@byu.net>
41669
41670         More strtod documentation.
41671         * doc/posix-functions/strtod.texi (strtod): Interpret more test
41672         failures as distinct bugs.
41673
41674 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41675
41676         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
41677         Problem reported by Erik Benada in
41678         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
41679
41680 2008-03-30  Bruno Haible  <bruno@clisp.org>
41681
41682         * tests/test-strtod.c: Add comments about which assertion fails on which
41683         platform.
41684         * doc/posix-functions/strtod.texi: Add info about many more platforms.
41685
41686 2008-03-30  Eric Blake  <ebb9@byu.net>
41687
41688         Test signbit behavior on zeros.
41689         * tests/test-signbit.c (test_signbitf): Add tests for zero.
41690         (test_signbitd, test_signbitl): Likewise.
41691
41692         More strtod touchups.
41693         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
41694         sign of negative underflow, for now.  Use .5, not .1.
41695         * doc/posix-functions/strtod.texi (strtod): Mention these
41696         limitations.
41697         Reported by Jim Meyering.
41698
41699 2008-03-30  Bruno Haible  <bruno@clisp.org>
41700
41701         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
41702         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
41703
41704 2008-03-30  Bruno Haible  <bruno@clisp.org>
41705
41706         Avoid failure when attempting to return empty iconv results on some
41707         platforms.
41708         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
41709         allocation, don't report ENOMEM when the resulting string is empty.
41710
41711 2008-03-30  Bruno Haible  <bruno@clisp.org>
41712
41713         Fix buffer overrun.
41714         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
41715         Don't consider the width for tmp_length. Check count against tmp_length
41716         before doing the padding. Ensure enough allocation during padding.
41717
41718 2008-03-30  Eric Blake  <ebb9@byu.net>
41719
41720         strtod touchups.
41721         * lib/strtod.c (strtod): Avoid compiler warnings.
41722         Reported by Jim Meyering.
41723
41724 2008-03-30  Bruno Haible  <bruno@clisp.org>
41725
41726         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
41727         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
41728         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
41729         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
41730         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
41731         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
41732         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
41733         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
41734
41735         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
41736         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
41737         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
41738         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
41739         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
41740         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
41741         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
41742         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
41743
41744         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
41745         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
41746         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
41747         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
41748         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
41749         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
41750         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
41751         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
41752
41753         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
41754         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
41755
41756         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
41757         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
41758
41759         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
41760         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
41761
41762         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
41763         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
41764         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
41765
41766         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
41767         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
41768         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
41769
41770         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
41771         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
41772         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
41773
41774         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
41775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
41776         * modules/vasprintf (Depends-on): Add EOVERFLOW.
41777
41778         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
41779         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
41780         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
41781         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
41782         (Depends-on): Add EOVERFLOW.
41783         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
41784         (Depends-on): Add EOVERFLOW.
41785         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41786         (Depends-on): Add EOVERFLOW.
41787         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
41788         (Depends-on): Add EOVERFLOW.
41789         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41790         (Depends-on): Add EOVERFLOW.
41791         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
41792         (Depends-on): Add EOVERFLOW.
41793         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41794         (Depends-on): Add EOVERFLOW.
41795         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
41796         (Depends-on): Add EOVERFLOW.
41797
41798         * lib/sprintf.c (EOVERFLOW): Remove fallback.
41799         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
41800         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
41801
41802         * lib/snprintf.c (EOVERFLOW): Remove fallback.
41803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
41804         * modules/snprintf (Depends-on): Add EOVERFLOW.
41805
41806         * lib/poll.c (EOVERFLOW): Remove fallback.
41807         * modules/poll (Depends-on): Add EOVERFLOW.
41808
41809         * lib/getugroups.c (EOVERFLOW): Remove fallback.
41810         * modules/getugroups (Depends-on): Add EOVERFLOW.
41811
41812         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41813         * modules/getdelim (Depends-on): Add EOVERFLOW.
41814
41815         * lib/ftell.c (EOVERFLOW): Remove fallback.
41816         * modules/ftell (Depends-on): Add EOVERFLOW.
41817
41818         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41820         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41821
41822         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41823
41824         * modules/EOVERFLOW-tests: New file.
41825         * tests/test-EOVERFLOW.c: New file.
41826
41827         * modules/EOVERFLOW: New file.
41828         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41829
41830 2008-03-30  Bruno Haible  <bruno@clisp.org>
41831
41832         Fix bug introduced on 2007-06-10.
41833         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41834         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41835
41836 2008-03-30  Bruno Haible  <bruno@clisp.org>
41837
41838         Improve freadseek's efficiency after ungetc.
41839         * lib/freadseek.c: Include freadahead.h.
41840         (freadptrinc): New function, extracted from freadseek.
41841         (freadseek): Use it in a loop. Use freadahead to determine the number
41842         of loop iterations.
41843         * modules/freadseek (Depends-on): Add freadahead.
41844         (configure.ac): Require AC_C_INLINE.
41845
41846 2008-03-30  Bruno Haible  <bruno@clisp.org>
41847
41848         * lib/freadseek.c (freadseek): Don't ignore the return value of
41849         freadptr.
41850
41851 2008-03-29  Eric Blake  <ebb9@byu.net>
41852
41853         Add hex float support.
41854         * modules/strtod (Depends-on): Add c-ctype.
41855         (Link): Mention POW_LIB.
41856         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41857         whitespace between 'e' and exponent.
41858         * tests/test-strtod.c (main): Enable hex float tests.
41859         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41860         now provides.
41861
41862         Document various strtod bugs, with some fixes.
41863         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41864         "-0x", "inf", "nan", and hex constants.
41865         * doc/posix-functions/atof.texi (atof): Likewise.
41866         * modules/stdlib (Makefile.am): Support strtod.
41867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41868         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41869         detect additional strtod bugs.
41870         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41871         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41872         bool where appropriate.  Parse 'inf' and 'nan'.
41873         * tests/test-strtod.c: New file.
41874         * modules/strtod (Depends-on): Add stdbool, stdlib.
41875         (configure.ac): Turn on module indicator.
41876         * modules/strtod-tests: New module.
41877
41878 2008-03-29  Eric Blake  <ebb9@byu.net>
41879
41880         Fix ftell on mingw.
41881         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41882         * modules/ftell-tests (Depends-on): Add binary-io.
41883         * modules/ftello-tests (Depends-on): Likewise.
41884         * tests/test-ftell.c (main): Enhance test to cover behavior after
41885         ungetc.  Enforce binary mode.
41886         * tests/test-ftello.c (main): Likewise.
41887
41888         Pass test-freadseek on cygwin.
41889         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41890         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41891         ungetc buffer.
41892
41893         * tests/test-fflush2.c (main): Fix typo.
41894
41895 2008-03-29  Bruno Haible  <bruno@clisp.org>
41896
41897         * tests/test-fflush2.c (main): Temporarily disable the contents of
41898         this test.
41899         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41900         Reported by Eric Blake.
41901
41902 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41903
41904         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41905         (GC_SHA224_DIGEST_SIZE): Add.
41906
41907         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41908         (gc_hash_digest_length): Likewise.
41909         (gc_hash_buffer): Likewise.
41910
41911 2008-03-25  Bruno Haible  <bruno@clisp.org>
41912
41913         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41914         detail which gettext release to use.
41915         Reported by Simon Josefsson.
41916
41917 2008-03-26  Jim Meyering  <meyering@redhat.com>
41918
41919         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41920         * modules/gnumakefile (clean-GNUmakefile): Also, use
41921         test ... && ... || : syntax rather than if-then ... fi.
41922
41923         gnumakefile: Don't double-quote-expand $(VPATH) value.
41924         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41925
41926 2008-03-24  Eric Blake  <ebb9@byu.net>
41927
41928         Alter GNUmakefile to install into top directory.
41929         * modules/maintainer-makefile: Split, and add dependency...
41930         * modules/gnumakefile: to this new module.
41931         * build-aux/GNUmakefile: Move...
41932         * top/GNUmakefile: ...here.
41933         * build-aux/maint.mk: Move...
41934         * top/maint.mk: ...here.
41935         * MODULES.html.sh (Support for maintaining...): Document new
41936         module.
41937
41938 2008-03-23  Bruno Haible  <bruno@clisp.org>
41939
41940         * gnulib-tool: New options --vc-files, --no-vc-files.
41941         (func_usage): Document them.
41942         (vc_files): New variable.
41943         (func_import): Consider vc_files.
41944         (func_create_testdir): Set vc_files to empty.
41945         Suggested by Jim Meyering and Karl Berry.
41946
41947 2008-03-23  Bruno Haible  <bruno@clisp.org>
41948
41949         Fix regex compilation error on HP-UX 11.
41950         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41951         * modules/regex (Files): Add m4/mbstate_t.m4.
41952         Reported by Ton Voon <ton.voon@altinity.com>.
41953
41954 2008-03-23  Bruno Haible  <bruno@clisp.org>
41955
41956         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41957
41958 2008-03-23  Eric Blake  <ebb9@byu.net>
41959             Bruno Haible  <bruno@clisp.org>
41960
41961         Install files from top/ in the destination directory.
41962         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41963         augmentation also for the files from top/.
41964         (func_import, func_create_testdir): Rewrite file names:
41965         top/filename -> filename.
41966
41967 2008-03-23  Bruno Haible  <bruno@clisp.org>
41968
41969         Tweak "gnulib --version" output.
41970         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41971
41972 2008-03-23  Bruno Haible  <bruno@clisp.org>
41973
41974         Tweak "gnulib --version" output.
41975         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41976         rather than contents of ChangeLog, when possible.
41977
41978 2008-03-21  Eric Blake  <ebb9@byu.net>
41979
41980         More --version tweaks.
41981         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41982         date of last ChangeLog entry.
41983
41984 2008-03-21  Jim Meyering  <meyering@redhat.com>
41985
41986         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41987
41988 2008-03-20  Eric Blake  <ebb9@byu.net>
41989
41990         VPATH fix.
41991         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41992
41993 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41994
41995         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41996         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41997
41998 2008-03-20  Eric Blake  <ebb9@byu.net>
41999
42000         Sync GNUmakefile with coreutils.
42001         * build-aux/GNUmakefile (have-Makefile): Rename...
42002         (_have-Makefile): ...to this, for namespace consideration.
42003         (GNUmakefile.cfg): Include, if present.
42004         (_autoreconf): Define a default.
42005         (_is-dist-target): New rule for rebuilds to pick up intra-release
42006         version.
42007         (maint-cfg.mk): Rename...
42008         (cfg.mk): ...to this.
42009
42010 2008-03-18  Jim Meyering  <meyering@redhat.com>
42011
42012         New script and module: mktempd
42013         * MODULES.html.sh (maint+release support): Add mktempd.
42014         * build-aux/mktempd: New file.
42015         * modules/mktempd: New file.
42016
42017 2008-03-15  Jim Meyering  <meyering@redhat.com>
42018
42019         Undo last change.
42020         * lib/sha1.c, lib/md5.c: 63 != ~63.
42021         Reported by Andreas Schwab.
42022
42023         sha1.c, md5.c: Hoist a redundant expression.
42024         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42025         "ctx->buflen" only once, before calling *_process_block.
42026         * lib/md5.c (md5_process_bytes): Likewise.
42027
42028 2008-03-14  Eric Blake  <ebb9@byu.net>
42029
42030         Bump copyright year in files generated by gnulib-tool.
42031         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42032         gnulib-tool, rather than hard-coding it.
42033
42034         Fix 'gnulib-tool --version' output to work with git.
42035         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42036         (startup): ...here.
42037         (func_version): Use it to invoke git-version-gen, rather than
42038         relying on CVS keyword expansion.  Modernize wording.
42039         (cvsdatestamp, last_checkin_date, version): Kill unused
42040         variables.
42041
42042 2008-03-12  Jim Meyering  <meyering@redhat.com>
42043
42044         Recognize optional cast of the argument to free.
42045         * build-aux/useless-if-before-free: Update regexps.
42046
42047         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42048
42049 2008-03-11  Bruno Haible  <bruno@clisp.org>
42050
42051         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42052         by a single package.
42053         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42054         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42055         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42056         Reported by Sam Steingold <sds@gnu.org>.
42057
42058 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42059
42060         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42061         repositories.
42062
42063 2008-03-11  Bruno Haible  <bruno@clisp.org>
42064
42065         Avoid conflicts between local macro definitions.
42066         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42067         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42068
42069 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42070             Bruno Haible  <bruno@clisp.org>
42071
42072         Make va_copy work with some version of xlc on AIX 5.1.
42073         * lib/stdarg.in.h: New file.
42074         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42075         On AIX, use a <stdarg.h> file substitute.
42076         * modules/stdarg (Files): Add lib/stdarg.in.h.
42077         (Depends-on): Add include_next.
42078         (Makefile.am): Build a stdarg.h substitute if requested.
42079         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42080
42081 2008-03-10  Bruno Haible  <bruno@clisp.org>
42082
42083         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42084         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42085         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42086
42087 2008-03-10  Bruno Haible  <bruno@clisp.org>
42088
42089         * modules/stdlib (Depends-on): Add include_next, remove
42090         absolute-header.
42091
42092 2008-03-09  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/freadahead.h (freadahead): Document more precisely.
42095         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42096         the sum of both buffer sizes.
42097         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42098         * NEWS: Document the change.
42099
42100 2008-03-09  Bruno Haible  <bruno@clisp.org>
42101
42102         Extend freadptr to return also the buffer size.
42103         * lib/freadptr.h (freadptr): Add sizep argument.
42104         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42105         (freadptr): Add sizep argument. Determine buffer size like freadahead
42106         does.
42107         * tests/test-freadptr.c: Don't include freadahead.h.
42108         (main): Adapt for new calling convention of freadptr.
42109         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42110         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42111         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42112         tests/test-freadptr2.sh.
42113         (Depends): Remove freadahead.
42114         (TESTS): Add test-freadptr2.sh.
42115         (check_PROGRAMS): Add test-freadptr2.
42116
42117 2008-03-09  Bruno Haible  <bruno@clisp.org>
42118
42119         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42120         Report and solution by Simon Josefsson.
42121
42122 2008-03-06  Bruno Haible  <bruno@clisp.org>
42123
42124         Make fflush after ungetc work on BSD platforms.
42125         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42126         * tests/test-fflush2.c: New file.
42127         * tests/test-fflush2.sh: New file.
42128         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42129         tests/test-fflush2.c.
42130         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42131         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42132
42133 2008-03-06  Eric Blake  <ebb9@byu.net>
42134
42135         Likewise for ftello.
42136         * modules/ftello (Dependencies): Add extensions.
42137         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42138
42139 2008-03-06  Bruno Haible  <bruno@clisp.org>
42140
42141         * modules/fseeko (Dependencies): Add extensions.
42142         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42143         Needed on glibc systems.
42144
42145 2008-03-06  Bruno Haible  <bruno@clisp.org>
42146
42147         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42148         email address.
42149         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42150
42151 2008-03-06  Bruno Haible  <bruno@clisp.org>
42152
42153         * users.txt: Add libgnupdf.
42154
42155 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42156
42157         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42158         (Header File Substitutes, Function Substitutes,
42159         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42160         (Build robot for gnulib): Fix typo.
42161
42162 2008-03-06  Bruno Haible  <bruno@clisp.org>
42163
42164         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42165         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42166
42167 2008-03-06  Bruno Haible  <bruno@clisp.org>
42168
42169         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42170         * doc/gnulib.texi: Include it.
42171
42172 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42173
42174         * modules/func (License): Change license to unlimited; there was
42175         no LGPL parts in the module anyway.
42176
42177 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42178
42179         * modules/__func__: Renamed to modules/func.
42180         * modules/__func__-tests: Renamed to modules/func-tests.
42181         * tests/test-__func__.c: Renamed to tests/test-func.c.
42182         * m4/__func__.m4: Renamed to m4/func.m4.
42183         * doc/gnulib.texi (__func__): Section renamed to func.
42184         Suggested by Eric Blake <ebb9@byu.net>.
42185
42186 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42187
42188         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42189         about __func__.  Make example self-contained.  Suggested by Eric
42190         Blake <ebb9@byu.net>.
42191
42192         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42193         Suggested by Eric Blake <ebb9@byu.net>.
42194
42195 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42196
42197         * modules/__func__: New file.
42198         * modules/__func__-tests: New file.
42199         * tests/test-__func__.c: New file.
42200         * m4/__func__.m4: New file.
42201         * doc/gnulib.texi (__func__): Document __func__ module.
42202
42203 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42204
42205         * modules/byteswap (License): Re-license as LGPLv2+.
42206
42207 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42208
42209         * doc/Makefile: Add pdf target.
42210
42211 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42212
42213         * modules/inline (License): Use 'unlimited', since there are only
42214         *.m4 files in this module.
42215
42216 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42217             Bruno Haible  <bruno@clisp.org>
42218
42219         Add support for HP C 7.1 on OpenVMS 8.3.
42220         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42221
42222 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42223
42224         Update VMS specifics.
42225         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42226
42227 2008-03-02  Jim Meyering  <meyering@redhat.com>
42228
42229         Remove the last dependency on the "free" module.
42230         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42231         Reported by Bob Proulx.
42232
42233         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42234
42235         Remove useless "if" tests before free.  Deprecate "free" module.
42236         * doc/posix-functions/free.texi: Mention that this
42237         module is no longer useful.
42238         * modules/free (Notice): Say this module is obsolete.
42239         * modules/readutmp (Depends-on): Remove free.
42240         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42241         * lib/putenv.c (putenv): Likewise.
42242         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42243         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42244         * tests/test-c-strcasestr.c (main): Likewise.
42245         * tests/test-c-strstr.c (main): Likewise.
42246         * tests/test-mbscasestr1.c (main): Likewise.
42247         * tests/test-mbscasestr2.c (main): Likewise.
42248         * tests/test-mbsstr1.c (main): Likewise.
42249         * tests/test-mbsstr2.c (main): Likewise.
42250         * tests/test-memmem.c (main): Likewise.
42251         * tests/test-strcasestr.c (main): Likewise.
42252         * tests/test-striconv.c (main): Likewise.
42253         * tests/test-striconveh.c (main): Likewise.
42254         * tests/test-striconveha.c (main): Likewise.
42255         * tests/test-strstr.c (main): Likewise.
42256
42257         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42258
42259         bootstrap: sync from coreutils again
42260         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42261
42262 2008-03-01  Jim Meyering  <meyering@redhat.com>
42263
42264         bootstrap: sync from coreutils
42265         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42266         also when the target doesn't exist.
42267
42268 2008-03-01  Eric Blake  <ebb9@byu.net>
42269
42270         Fix bugs in last patch.
42271         * lib/memchr2.c (memchr2): Fix typo.
42272         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42273         extension.
42274         Reported by Bruce Korb.
42275
42276         New module 'memchr2'.
42277         * modules/memchr2: New file.
42278         * modules/memchr2-tests: Likewise.
42279         * lib/memchr2.h: Likewise.
42280         * lib/memchr2.c: Likewise, based on memchr.c.
42281         * tests/test-memchr2.c: New test.
42282         * MODULES.html.sh (String handling): Add memchr2.
42283
42284 2008-02-29  Bruno Haible  <bruno@clisp.org>
42285
42286         * modules/freadseek-tests: New file.
42287         * tests/test-freadseek.sh: New file.
42288         * tests/test-freadseek.c: New file.
42289
42290         New module 'freadseek'.
42291         * modules/freadseek: New file.
42292         * lib/freadseek.h: New file.
42293         * lib/freadseek.c: New file.
42294         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42295
42296 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42297
42298         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42299         wydawca.
42300
42301         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42302         program_invocation_name and program_invocation_short_name are
42303         present.
42304
42305 2008-02-28  Bruno Haible  <bruno@clisp.org>
42306
42307         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42308         * tests/test-freadptr.sh: Also test non-seekable stdin.
42309
42310 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42311
42312         * build-aux/bootstrap (source_base, m4_base)
42313         (doc_base, tests_base): New variables.
42314         (gnulib_tool_options): Do not hardcode base directories, use
42315         the above variables instead.
42316
42317 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42318
42319         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42320
42321 2008-02-28  Bruno Haible  <bruno@clisp.org>
42322
42323         * modules/freadptr-tests: New file.
42324         * tests/test-freadptr.sh: New file.
42325         * tests/test-freadptr.c: New file.
42326
42327         New module 'freadptr'.
42328         * modules/freadptr: New file.
42329         * lib/freadptr.h: New file.
42330         * lib/freadptr.c: New file.
42331         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42332
42333 2008-02-26  Karl Berry  <karl@freefriends.org>
42334
42335         Sync from Libtool:
42336         * libltdl/argz.c (argz_add, argz_count): New functions.
42337         * libltdl/argz.in.h: Declare them.
42338         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42339
42340 2008-02-22  Bruno Haible  <bruno@clisp.org>
42341
42342         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42343         is a pointer type.  Needed for HP-UX 10.
42344         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42345         * doc/posix-functions/gmtime_r.texi: Likewise.
42346         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42347
42348 2008-02-24  Bruno Haible  <bruno@clisp.org>
42349
42350         * modules/environ-tests: New file.
42351         * tests/test-environ.c: New file.
42352
42353         New module 'environ'.
42354         * modules/environ: New file.
42355         * lib/unistd.in.h (environ): New declaration.
42356         * m4/environ.m4: New file.
42357         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42358         after use.
42359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42360         HAVE_DECL_ENVIRON.
42361         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42362         HAVE_DECL_ENVIRON.
42363         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42364         wrong claim that 'environ' is missing on some systems.
42365         * modules/execute (Depends-on): Add environ.
42366         * lib/execute.c (environ): Remove fallback declaration.
42367         * modules/pipe (Depends-on): Add environ.
42368         * lib/pipe.c (environ): Remove fallback declaration.
42369         * modules/setenv (Depends-on): Add environ.
42370         * lib/setenv.c (environ): Remove fallback declaration.
42371         * modules/unsetenv (Depends-on): Add environ.
42372         * lib/unsetenv.c (environ): Remove fallback declaration.
42373         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42374         m4/environ.m4.
42375         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42376         (gl_PREREQ_UNSETENV): Likewise.
42377
42378 2008-02-24  Bruno Haible  <bruno@clisp.org>
42379
42380         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42381
42382 2008-02-20  Bob Proulx  <bob@proulx.com>
42383
42384         Enable use of older two part flavor 'git describe'.
42385         * build-aux/git-version-gen: If using the older two part flavor of
42386         git version then recreate the third part now present in the
42387         newer three part flavor of git describe.
42388
42389 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42390
42391         * lib/fts.c (fts_build): Typo correction to comment.
42392
42393 2008-02-17  Bruno Haible  <bruno@clisp.org>
42394
42395         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42396         generating no-op conflicts.
42397
42398 2008-02-17  Bruno Haible  <bruno@clisp.org>
42399
42400         Speed up by 10%.
42401         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42402         result_entries, rather than an index-based loop.
42403
42404 2008-02-17  Bruno Haible  <bruno@clisp.org>
42405
42406         Speed up by 25%.
42407         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42408         'hashcode_cached'.
42409         (entry_create): New function.
42410         (entry_hashcode): Use the cached hashcode if possible.
42411         (read_changelog_file, try_split_merged_entry): Use entry_create.
42412
42413 2008-02-17  Bruno Haible  <bruno@clisp.org>
42414
42415         Speed up from O(n^2) to O(n) for long ChangeLog files.
42416         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42417         (read_changelog_file): Change implementation of entries_reversed list
42418         to rbtreehash.
42419         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42420
42421 2008-02-17  Bruno Haible  <bruno@clisp.org>
42422
42423         New option --split-merged-entry.
42424         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42425         (find_paragraph_end, try_split_merged_entry): New functions.
42426         (long_options): Add option --split-merged-entry.
42427         (usage): Document option --split-merged-entry.
42428         (main): Implement option --split-merged-entry.
42429         Reported by Eric Blake.
42430
42431 2008-02-17  Bruno Haible  <bruno@clisp.org>
42432
42433         * lib/git-merge-changelog.c: Include c-strstr.h.
42434         (main): Support the "git pull --rebase" situation.
42435         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42436         Reported by Eric Blake.
42437
42438 2008-02-16  Eric Blake  <ebb9@byu.net>
42439
42440         Avoid doubling \ in common case of "c-maybe" quoting style.
42441         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42442         eliding outer quotes.
42443         * lib/quotearg.h: Document this.
42444         * tests/test-quotearg.c (result_strings, inputs, results_g)
42445         (flag_results, locale_results): Test it by adding a new string to
42446         each test group.
42447         (compare_strings): Test new string.
42448
42449 2008-02-13  Eric Blake  <ebb9@byu.net>
42450
42451         Avoid trigraph quoting in default output.
42452         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42453         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42454         unless explicitly requested.
42455         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42456
42457 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42458
42459         Don't rely on signed integer overflowing to negative value.
42460         * lib/getugroups.c (getugroups): Include <limits.h>.
42461         Instead, compare against INT_MAX, and increment only if the test passes.
42462
42463 2008-02-13  Jim Meyering  <meyering@redhat.com>
42464         and Eric Blake  <ebb9@byu.net>
42465
42466         Avoid shadowing warning and compile errors on Linux.
42467         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42468         forwarding macros on Linux.
42469         (dcgettext): Define a stub, for Linux.
42470         (results_g, main): Avoid warnings.
42471
42472 2008-02-12  Eric Blake  <ebb9@byu.net>
42473
42474         Silence warning in last patch.
42475         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42476
42477         Quotearg part 4: add tests, fix c-maybe colon quoting.
42478         * lib/quotearg.h: Improve documentation.
42479         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42480         escapes when adding outer quotes.  When quoting trigraphs, use
42481         valid C notation.  When quoting NUL, omit extra characters if next
42482         character is not digit.  Alter prototype.
42483         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42484         callers.
42485         * modules/quotearg-tests: New module.
42486         * tests/test-quotearg.c: New test.
42487
42488 2008-02-07  Eric Blake  <ebb9@byu.net>
42489
42490         Quotearg part 3: add flag to control outer quote elision.
42491         * lib/quotearg.h (c_maybe_quoting_style): New style.
42492         (enum quoting_flags): Better documentation of flags.
42493         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42494         c-maybe style.
42495         (quotearg_buffer_restyled): Handle new flag to elide outer
42496         quotes.
42497
42498         Quotearg part 2: add flag that can control NUL elision.
42499         * lib/quotearg.h (set_quoting_flags): New prototype.
42500         * lib/quotearg.c (struct quoting_options): Add flag field.
42501         (set_quoting_flags): New function.
42502         (quotearg_buffer_restyled): Add flags parameter.
42503         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42504         (quotearg_n_options): Set the flag, since length cannot be
42505         returned.
42506         (quoting_options_from_style): Default flags correctly.
42507
42508         Quotearg part 1: more wrappers, restore quotearg_char state.
42509         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42510         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42511         (quotearg_colon_mem): New wrappers.
42512         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42513         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42514         functions.
42515         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42516         (quotearg_colon_mem): New functions.
42517
42518 2008-02-11  Bruno Haible  <bruno@clisp.org>
42519
42520         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42521         library in the current directory: it does not work with parallel make.
42522         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42523
42524 2008-02-11  Bruno Haible  <bruno@clisp.org>
42525
42526         * .gitattributes: New file.
42527
42528 2008-02-11  Jim Meyering  <meyering@redhat.com>
42529
42530         useless-if-before-free: Fix reversed exit values.
42531         * build-aux/useless-if-before-free: Use correct values
42532         for EXIT_MATCH and EXIT_NO_MATCH.
42533
42534         * build-aux/useless-if-before-free: Close stdout carefully.
42535
42536 2008-02-10  Bruno Haible  <bruno@clisp.org>
42537
42538         New module 'git-merge-changelog'.
42539         * modules/git-merge-changelog: New file.
42540         * lib/git-merge-changelog.c: New file.
42541
42542 2008-02-10  Jim Meyering  <meyering@redhat.com>
42543
42544         useless-if-before-free: New option: --list (-l).
42545
42546         useless-if-before-free: Don't exit immediately upon open failure.
42547         * build-aux/useless-if-before-free: Exit 2 for errors.
42548         Upon failure to open a file, don't exit immediately.
42549         Rather, just warn and continue with any remaining files.
42550
42551 2008-02-10  Bruno Haible  <bruno@clisp.org>
42552
42553         New abstract list operation 'node_set_value'.
42554         * lib/gl_list.h (gl_list_node_set_value): New function.
42555         (struct gl_list_implementation): New field node_set_value.
42556         * lib/gl_list.c (gl_list_node_set_value): New function.
42557         * lib/gl_array_list.c (gl_array_node_set_value): New function.
42558         (gl_array_list_implementation): Update.
42559         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
42560         (gl_carray_list_implementation): Update.
42561         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
42562         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
42563         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
42564         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
42565         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
42566         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
42567         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
42568         Update.
42569         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
42570         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
42571         (gl_sublist_list_implementation): Update.
42572
42573 2008-02-10  Bruno Haible  <bruno@clisp.org>
42574
42575         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
42576         Needed when ELEMENT is #defined to 'some_type *'.
42577
42578 2008-02-10  Jim Meyering  <meyering@redhat.com>
42579
42580         New script and module: useless-if-before-free
42581         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
42582         * build-aux/useless-if-before-free: New file.
42583         * modules/useless-if-before-free: New file.
42584
42585         * build-aux/gitlog-to-changelog: Use committer date, not author date.
42586
42587         xstrtol_error: Fix typo.
42588         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
42589         s/exit_failure/exit_status/.
42590
42591 2008-02-09  Jim Meyering  <meyering@redhat.com>
42592
42593         New script and module: gitlog-to-changelog
42594         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
42595         * modules/gitlog-to-changelog: New file.
42596         * build-aux/gitlog-to-changelog: New file.
42597
42598 2008-02-08  Jim Meyering  <meyering@redhat.com>
42599
42600         Avoid two "parameter unused" warnings.
42601         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
42602         Mark "st" as used.
42603
42604         Use "git COMMAND", not "git-COMMAND".
42605         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
42606         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
42607         * build-aux/git-version-gen: Use "git status", not "git-status".
42608
42609 2008-02-07  Bruno Haible  <bruno@clisp.org>
42610
42611         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
42612         Avoids a crash on Windows Vista.
42613         Reported by Adam Strzelecki <ono@java.pl> via
42614         Simon Josefsson <simon@josefsson.org>.
42615
42616 2008-02-06  Bruno Haible  <bruno@clisp.org>
42617
42618         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
42619         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
42620         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
42621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
42622         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42624         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
42625         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
42626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42633         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
42634         left-adjust flag.
42635         * tests/test-snprintf-posix.h (test_function): Likewise.
42636         * tests/test-sprintf-posix.h (test_function): Likewise.
42637         * tests/test-vasprintf-posix.c (test_function): Likewise.
42638         * doc/posix-functions/fprintf.texi: Update.
42639         * doc/posix-functions/printf.texi: Update.
42640         * doc/posix-functions/snprintf.texi: Update.
42641         * doc/posix-functions/sprintf.texi: Update.
42642         * doc/posix-functions/vfprintf.texi: Update.
42643         * doc/posix-functions/vprintf.texi: Update.
42644         * doc/posix-functions/vsnprintf.texi: Update.
42645         * doc/posix-functions/vsprintf.texi: Update.
42646         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42647
42648 2008-02-06  Bruno Haible  <bruno@clisp.org>
42649
42650         Fix bug introduced on 2008-01-26.
42651         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
42652
42653 2008-02-06  Bruno Haible  <bruno@clisp.org>
42654
42655         Fix bug introduced on 2007-06-10.
42656         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
42657         !NEED_PRINTF_FLAG_ZERO.
42658
42659 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
42660
42661         getloadavg: use libperfstat on AIX5
42662         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
42663
42664 2008-02-03  Bruno Haible  <bruno@clisp.org>
42665
42666         * lib/diffseq.h: Add comments about required #includes.
42667         Reported by Michael Biggs <gnulib@doubleplum.net>.
42668
42669 2008-02-01  Bruno Haible  <bruno@clisp.org>
42670
42671         * users.txt: Add gnuit.
42672
42673 2008-01-31  Bruno Haible  <bruno@clisp.org>
42674
42675         * lib/md4.c (set_uint32): Mark as inline.
42676         * lib/md5.c (set_uint32): Likewise.
42677         * lib/sha1.c (set_uint32): Likewise.
42678         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
42679         * m4/md5.m4 (gl_MD5): Likewise.
42680         * m4/sha1.m4 (gl_SHA1): Likewise.
42681
42682 2008-01-31  Jim Meyering  <meyering@redhat.com>
42683
42684         Use "sizeof VAR", rather than a literal "4".
42685         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
42686         * lib/md4.c (md4_read_ctx): Likewise.
42687         * lib/sha1.c (sha1_read_ctx): Likewise.
42688
42689 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42690
42691         * tests/test-sha1.c: New file, based on test-md5.c.
42692
42693         * modules/crypto/sha1-tests: New file.
42694
42695 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42696
42697         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
42698
42699 2008-01-31  Jim Meyering  <meyering@redhat.com>
42700
42701         Prefer "sizeof v" over the equivalent "4".
42702         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
42703         * lib/md5.c (set_uint32): Likewise.
42704         * lib/sha1.c (set_uint32): Likewise.
42705
42706 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42707
42708         * lib/sha1.c (set_uint32): Mark function as static.
42709
42710 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42711
42712         md2: clarify comments to say that alignment is not required.
42713         * lib/md2.h: Remove warning about alignment in comment.
42714         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
42715         never been required.
42716
42717 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42718
42719         md4: adapt alignment constraint fix from sha1.
42720         * lib/md4.c (set_uint32): New function, from sha1.c
42721         (md4_read_ctx): Use it.
42722         (md4_finish_ctx): Doc fix.
42723         * lib/md4.h: Doc fix.
42724
42725 2008-01-31  Simon Josefsson  <simon@josefsson.org>
42726
42727         md5: adapt alignment constraint fix from sha1.
42728         * lib/md5.c (set_uint32): New function, from sha1.c
42729         (md5_read_ctx): Use it.
42730         (md5_finish_ctx): Doc fix.
42731         * lib/md5.h: Doc fix.
42732
42733 2008-01-30  Peter Palfrader  <weasel@debian.org>
42734
42735         sha1: remove the result buffer alignment constraint
42736         * lib/sha1.c (set_uint32): New function.
42737         (sha1_read_ctx): Rewrite to remove the result buffer alignment
42738         constraint.
42739         (sha1_finish_ctx): Remove comment warning about alignment constraint.
42740         * lib/sha1.h: Likewise.
42741
42742 2008-01-30  Andreas Schwab  <schwab@suse.de>
42743             Bruno Haible  <bruno@clisp.org>
42744
42745         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
42746         correct definition of LDBL_MIN_EXP.
42747
42748 2008-01-30  Karl Berry  <karl@gnu.org>
42749
42750         * config/srclist-update: try to preserve x bit on updates.
42751         * config/srclistvars.sh: update for karl.
42752
42753 2008-01-29  Jim Meyering  <meyering@redhat.com>
42754
42755         vasnprintf.c: Avoid warning about unused label
42756         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
42757         "overflow" label definition and associated code with the
42758         same cpp condition that guards the sole use of that label.
42759
42760 2008-01-26  Bruno Haible  <bruno@clisp.org>
42761
42762         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
42763         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
42764         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
42765         * lib/isnanl-nolibm.h (isnanl): Likewise.
42766         Reported by Paul Eggert <eggert@cs.ucla.edu>.
42767
42768 2008-01-26  Bruno Haible  <bruno@clisp.org>
42769
42770         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
42771         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
42772
42773 2008-01-26  Bruno Haible  <bruno@clisp.org>
42774
42775         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
42776         GCC >= 4.0 built-in.
42777         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
42778
42779 2008-01-26  Bruno Haible  <bruno@clisp.org>
42780
42781         Rename isnan, applicable to 'double' only, to isnand.
42782         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
42783         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
42784         (configure.ac): Update.
42785         (Include): Replace "isnan.h" with "isnand.h".
42786         * m4/isnand.m4: Renamed from m4/isnan.m4.
42787         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
42788         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
42789         instead of isnan.c.
42790         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
42791         instead of HAVE_ISNAN_IN_LIBC.
42792         (isnand): Renamed from isnan.
42793         * lib/isnand.c: New file.
42794         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
42795         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
42796         (Makefile.am): Update.
42797         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
42798         Include isnand.h instead of isnan.h.
42799         (main): Test isnand instead of isnan.
42800         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
42801         isnan-nolibm.
42802         * modules/frexp (Depends-on): Likewise.
42803         * modules/frexp-tests (Depends-on): Likewise.
42804         * modules/frexp-nolibm (Depends-on): Likewise.
42805         * modules/frexp-nolibm-tests (Depends-on): Likewise.
42806         * modules/isfinite (Depends-on): Likewise.
42807         * modules/round-tests (Depends-on): Likewise.
42808         * modules/signbit (Depends-on): Likewise.
42809         * modules/signbit-tests (Depends-on): Likewise.
42810         * modules/snprintf-posix (Depends-on): Likewise.
42811         * modules/sprintf-posix (Depends-on): Likewise.
42812         * modules/trunc-tests (Depends-on): Likewise.
42813         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42814         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42815         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42816         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42817         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42818         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42819         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42820         * modules/vasnprintf-posix (Depends-on): Likewise.
42821         * modules/vasprintf-posix (Depends-on): Likewise.
42822         * modules/vfprintf-posix (Depends-on): Likewise.
42823         * modules/vsnprintf-posix (Depends-on): Likewise.
42824         * modules/vsprintf-posix (Depends-on): Likewise.
42825         * lib/frexp.c: Include isnand.h instead of isnan.h.
42826         (ISNAN): Set to isnand instead of isnan.
42827         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42828         (gl_isfinited): Use isnand instead of isnan.
42829         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42830         (gl_signbitd): Use isnand instead of isnan.
42831         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42832         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42833         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42834         (main): Use isnand instead of isnan.
42835         * tests/test-round1.c: Include isnand.h.
42836         (main): Use isnand instead of isnan.
42837         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42838         (ISNAN): Set to isnand instead of isnan.
42839         * tests/test-trunc1.c: Include isnand.h.
42840         (main): Use isnand instead of isnan.
42841         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42842         (equal): Use isnand instead of isnan.
42843         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42844         isnand-nolibm.
42845         * NEWS: Mention the change.
42846
42847 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42848             Bruno Haible  <bruno@clisp.org>
42849
42850         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42851         the GCC builtins for signbits are present and set
42852         REPLACE_SIGNBIT_USING_GCC if so.
42853         * lib/math.in.h (signbit): Define using GCC builtins if
42854         REPLACE_SIGNBIT_USING_GCC is set.
42855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42856         REPLACE_SIGNBIT_USING_GCC.
42857         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42858
42859 2008-01-25  Jim Meyering  <meyering@redhat.com>
42860
42861         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42862         * lib/poll.c: Include <config.h>, not "config.h".
42863         * tests/test-getaddrinfo.c: Likewise.
42864
42865 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42866
42867         * modules/sockets-tests: New file.
42868
42869 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42870
42871         * modules/sockets: New module, can be used to call WSA_Startup and
42872         WSA_Cleanup when needed.
42873
42874         * lib/sockets.h, lib/sockets.c: New files.
42875
42876         * m4/sockets.m4: New file.
42877
42878         * tests/test-sockets.c: New file.
42879
42880 2008-01-19  Bruno Haible  <bruno@clisp.org>
42881
42882         * doc/posix-headers: Renamed from doc/headers.
42883         * doc/posix-functions: Renamed from doc/functions.
42884         * doc/gnulib.texi: Update.
42885
42886 2008-01-19  Bruno Haible  <bruno@clisp.org>
42887
42888         * doc/glibc-functions/strcasestr.texi: Include contents of
42889         doc/functions/strcasestr.texi, fixing the list of platforms.
42890         * doc/functions/strcasestr.texi: Remove file.
42891
42892 2008-01-19  Bruno Haible  <bruno@clisp.org>
42893
42894         * doc/glibc-functions/memmem.texi: Include contents of
42895         doc/functions/memmem.texi.
42896         * doc/functions/memmem.texi: Remove file.
42897
42898 2008-01-18  Bruno Haible  <bruno@clisp.org>
42899
42900         * doc/glibc-functions/*.texi: New files.
42901         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42902         to use the new files.
42903
42904 2008-01-17  Bruno Haible  <bruno@clisp.org>
42905
42906         * tests/test-gethostname.c (main): Fix printf statement.
42907
42908 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42909
42910         * modules/gethostname-tests: New file.
42911
42912         * tests/test-gethostname.c: New file.
42913
42914 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42915
42916         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42917         used by the UNAME case.  Reported by Bruno Haible
42918         <bruno@clisp.org>.
42919
42920 2008-01-17  Eric Blake  <ebb9@byu.net>
42921
42922         Convert c-strcasestr to be more efficient.
42923         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42924         (Depends-on): Add c-strcase, remove malloca, strnlen.
42925         * tests/test-c-strcasestr.c (main): Enhance test.
42926         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42927
42928 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42929
42930         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42931         Use it in creating po/Makevars.
42932
42933 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42934
42935         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42936         Applications that requires it should initialize libgcrypt
42937         manually.
42938
42939 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42940
42941         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42942
42943 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42944
42945         Fix problem with getdate on mingw32 reported by Simon Josefsson
42946         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42947         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42948         tzname", when deciding whether to declare tzname.
42949         * lib/strftime.c (tzname): Likewise.
42950
42951 2008-01-15  Bruno Haible  <bruno@clisp.org>
42952
42953         Work around a MacOS X 10.5 bug in frexpl().
42954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42955         * doc/functions/frexpl.texi: Document the bug.
42956         Reported by Elias Pipping <pipping@gentoo.org>.
42957
42958 2008-01-14  Eric Blake  <ebb9@byu.net>
42959
42960         Touch up previous patch.
42961         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42962         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42963
42964         Convert strcasestr module to use Two-Way algorithm.
42965         * modules/strcasestr-simple: New module, based on the old
42966         strcasestr, but with Two-Way rather than KMP.
42967         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42968         * lib/string.in.h (rpl_strcasestr): Declare.
42969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42970         performance.
42971         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42972         * modules/string (Makefile.am): Support strcasestr.
42973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42974         * modules/strcasestr-tests (Depends-on): Check for alarm.
42975         * tests/test-strcasestr.c: Augment test.
42976         * lib/str-two-way.h: Clean up stray macro.
42977         * NEWS: Document new module.
42978         * MODULES.html.sh (string handling): Likewise.
42979         * doc/functions/strcasestr.texi: New file.
42980         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42981         here, since it is not a POSIX function.
42982
42983 2008-01-14  Colin Watson  <cjwatson@debian.org>
42984             Bruno Haible  <bruno@clisp.org>
42985
42986         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42987         works fine; if not, set REPLACE_STRSIGNAL.
42988         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42989         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42990         REPLACE_STRSIGNAL.
42991         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42992         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42993         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42994
42995 2008-01-14  Bruno Haible  <bruno@clisp.org>
42996
42997         * modules/strsignal (Include): Change to <string.h>.
42998
42999 2008-01-14  Colin Watson  <cjwatson@debian.org>
43000
43001         * modules/argp (Notice): Add a notice recommending to change
43002         XGETTEXT_OPTIONS.
43003         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43004
43005 2008-01-13  Colin Watson  <cjwatson@debian.org>
43006
43007         * modules/strsignal-tests: New file.
43008         * tests/test-strsignal.c: New file.
43009
43010         * lib/strsignal.c: New file, from glibc with modifications.
43011         * lib/siglist.h: New file, from glibc with modifications.
43012         * lib/string.in.h (strsignal): New declaration.
43013         * m4/strsignal.m4: New file.
43014         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43015         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43016         * modules/strsignal: New file.
43017         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43018         HAVE_DECL_STRSIGNAL.
43019
43020 2008-01-13  Bruno Haible  <bruno@clisp.org>
43021
43022         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43023         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43024         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43025         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43026
43027 2008-01-13  Bruno Haible  <bruno@clisp.org>
43028
43029         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43030         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43031         * lib/argp.h (__attribute__): Likewise.
43032         * lib/c-stack.c (__attribute__): Likewise.
43033         * lib/error.h (__attribute__): Likewise.
43034         * lib/fts.c (__attribute__): Likewise.
43035         * lib/openat.h (__attribute__): Likewise.
43036         * lib/stdio.in.h (__attribute__): Likewise.
43037         * lib/string.in.h (__attribute__): Likewise.
43038         * lib/utimens.c (__attribute__): Likewise.
43039         * lib/vasnprintf.h (__attribute__): Likewise.
43040         * lib/xalloc.h (__attribute__): Likewise.
43041         * lib/xprintf.h (__attribute__): Likewise.
43042         * lib/xstrtol.h (__attribute__): Likewise.
43043         * lib/xvasprintf.h (__attribute__): Likewise.
43044
43045 2008-01-12  Bruno Haible  <bruno@clisp.org>
43046
43047         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43048         * doc/glibc-headers/a.out.texi: New file.
43049         * doc/glibc-headers/aliases.texi: New file.
43050         * doc/glibc-headers/alloca.texi: New file.
43051         * doc/glibc-headers/ar.texi: New file.
43052         * doc/glibc-headers/argp.texi: New file.
43053         * doc/glibc-headers/argz.texi: New file.
43054         * doc/glibc-headers/byteswap.texi: New file.
43055         * doc/glibc-headers/crypt.texi: New file.
43056         * doc/glibc-headers/endian.texi: New file.
43057         * doc/glibc-headers/envz.texi: New file.
43058         * doc/glibc-headers/err.texi: New file.
43059         * doc/glibc-headers/error.texi: New file.
43060         * doc/glibc-headers/execinfo.texi: New file.
43061         * doc/glibc-headers/fpu_control.texi: New file.
43062         * doc/glibc-headers/fstab.texi: New file.
43063         * doc/glibc-headers/fts.texi: New file.
43064         * doc/glibc-headers/getopt.texi: New file.
43065         * doc/glibc-headers/ieee754.texi: New file.
43066         * doc/glibc-headers/ifaddrs.texi: New file.
43067         * doc/glibc-headers/libintl.texi: New file.
43068         * doc/glibc-headers/mcheck.texi: New file.
43069         * doc/glibc-headers/mntent.texi: New file.
43070         * doc/glibc-headers/obstack.texi: New file.
43071         * doc/glibc-headers/paths.texi: New file.
43072         * doc/glibc-headers/printf.texi: New file.
43073         * doc/glibc-headers/pty.texi: New file.
43074         * doc/glibc-headers/resolv.texi: New file.
43075         * doc/glibc-headers/shadow.texi: New file.
43076         * doc/glibc-headers/sysexits.texi: New file.
43077         * doc/glibc-headers/ttyent.texi: New file.
43078
43079 2008-01-12  Jim Meyering  <meyering@redhat.com>
43080
43081         announce-gen: emit Gnulib's git-based version string.
43082         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43083         New option --gnulib-version=V, where V is expected to be
43084         the output of running git describe in the gnulib directory.
43085         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43086         not useful, and plan to stop publishing an xdelta file with each
43087         coreutils release.
43088
43089         * build-aux/announce-gen: Also check for lzma-compressed files.
43090
43091 2008-01-11  Bruno Haible  <bruno@clisp.org>
43092
43093         * tests/test-memmem.c (main): Increase maximum allowed time.
43094         * tests/test-strstr.c (main): Likewise.
43095
43096 2008-01-11  Bruno Haible  <bruno@clisp.org>
43097
43098         * doc/functions/memmem.texi: Add more precisions about platforms.
43099         * doc/functions/strstr.texi: Likewise.
43100
43101 2008-01-10  Eric Blake  <ebb9@byu.net>
43102
43103         * m4/strstr.m4: Delete cruft from copy-n-paste.
43104         Reported by Bruno Haible.
43105
43106 2008-01-10  Bruno Haible  <bruno@clisp.org>
43107
43108         Make c-strstr rely on strstr.
43109         * lib/c-strstr.c: Don't include str-kmp.h.
43110         (c_strstr): Define in terms of strstr.
43111         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43112         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43113
43114 2008-01-10  Bruno Haible  <bruno@clisp.org>
43115
43116         * doc/gnulib.texi (String Functions in C Locale): New section.
43117         * doc/c-ctype.texi: New file.
43118         * doc/c-strcase.texi: New file.
43119         * doc/c-strcaseeq.texi: New file.
43120         * doc/c-strcasestr.texi: New file.
43121         * doc/c-strstr.texi: New file.
43122         * doc/c-strtod.texi: New file.
43123         * doc/c-strtold.texi: New file.
43124
43125 2008-01-10  Eric Blake  <ebb9@byu.net>
43126
43127         * lib/relocatable.h: Fix a comment.
43128
43129 2008-01-10  Eric Blake  <ebb9@byu.net>
43130
43131         Share two-way algorithm.
43132         * lib/str-two-way.h: New file, merged from...
43133         * lib/memmem.c: ...here...
43134         * lib/strstr.c: ...and here.
43135         * modules/memmem (Files): Use it.
43136         * modules/strstr (Files): Likewise.
43137
43138         Avoid quadratic strstr implementations.
43139         * lib/strstr.c: New file.
43140         * m4/strstr.m4: Likewise.
43141         * modules/strstr: Likewise.
43142         * modules/strstr-tests: Likewise.
43143         * tests/test-strstr.c: Likewise.
43144         * lib/string.in.h (rpl_strstr): Declare.
43145         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43147         * modules/string (Makefile.am): Likewise.
43148         * MODULES.html.sh (string handling): Mention new module.
43149         * doc/functions/strstr.texi (strstr): Document the bug.
43150
43151 2008-01-10  Bruno Haible  <bruno@clisp.org>
43152
43153         * lib/relocatable.h (relocate): State whether result is freshly
43154         allocated or not.
43155         * lib/relocatable.c (relocate): Return a freshly allocated string
43156         instead of a pointer to a privately held string.
43157         Reported by Sylvain Beucler <beuc@gnu.org>.
43158
43159 2008-01-10  Colin Watson  <cjwatson@debian.org>
43160
43161         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43162         s/S_ISNLK/S_ISLNK/.
43163
43164 2008-01-09  Bruno Haible  <bruno@clisp.org>
43165
43166         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43167         and other files.
43168         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43169         if it's only a guess.
43170         * modules/memmem: Simplify by depending on memmem-simple.
43171
43172 2008-01-09  Bruno Haible  <bruno@clisp.org>
43173
43174         Work around OpenBSD 4.0 tdelete() bug.
43175         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43176         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43177         macros and don't redefine the enum values.
43178         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43179         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43180         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43181
43182 2008-01-09  Bruno Haible  <bruno@clisp.org>
43183
43184         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43185         (main): Don't perform the tests if setlocale did not install a UTF-8
43186         locale. Needed on OpenBSD 4.0.
43187         * modules/wcwidth-tests (Depends-on): Add localcharset.
43188
43189 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43190
43191         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43192         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43193         * NEWS: announce this.
43194         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43195
43196 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43197         and Eric Blake  <ebb9@byu.net>
43198
43199         Add memmem-simple module.
43200         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43201         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43202         * modules/memmem-simple: New file.
43203         * modules/memmem (Description): Tweak.
43204         * MODULES.html.sh (string handling): Mention new module.
43205         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43206         addressed by memmem-simple.
43207         * NEWS: Document the difference.
43208
43209 2008-01-09  Eric Blake  <ebb9@byu.net>
43210
43211         Give gcc some memmem optimization hints.
43212         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43213         (strcasestr): Declare as pure.
43214         * modules/memmem (Maintainer): Claim my implementation.
43215
43216 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43217
43218         Support AIX 6.1 and higher.
43219         * build-aux/config.libpath: Likewise.
43220         * build-aux/config.rpath: Likewise.
43221
43222 2008-01-08  Jim Meyering  <meyering@redhat.com>
43223             Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43226         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43227         Reported by Peter Fales in
43228         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43229
43230 2008-01-08  Bruno Haible  <bruno@clisp.org>
43231
43232         * modules/unictype/category-of (Depends-on): Add
43233         unictype/category-none.
43234         * modules/unictype/category-and-tests (Depends-on): Add
43235         unictype/category-{L,N,Lu,Nd}.
43236         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43237         * modules/unictype/category-or-tests (Depends-on): Add
43238         unictype/category-{L,N}.
43239         * modules/unictype/category-name-tests (Depends-on): Add
43240         unictype/category-{Z,Nl}.
43241         Reported by Simon Josefsson.
43242
43243 2008-01-08  Bruno Haible  <bruno@clisp.org>
43244
43245         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43246         convention better.
43247         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43248         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43249         Reported by Peter Miller <millerp@canb.auug.org.au>.
43250
43251 2008-01-08  Eric Blake  <ebb9@byu.net>
43252
43253         Rewrite memmem to guarantee linear complexity without malloc.
43254         * lib/memmem.c (memmem): Use Two-Way rather than
43255         Knuth-Morris-Pratt, to allow O(1) space usage.
43256         (critical_factorization, two_way_short_needle)
43257         (two_way_long_needle): New functions.
43258         (knuth_morris_pratt): Delete.
43259         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43260         Add stdint.
43261         * tests/test-memmem.c (main): Add tests for periodic needle and
43262         sublinear performance.
43263         * doc/functions/memmem.texi (memmem): Document other deficiencies
43264         in cygwin and older glibc.
43265
43266 2008-01-08  Bruno Haible  <bruno@clisp.org>
43267
43268         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43269         augmentation.
43270
43271 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43272
43273         Add a configure time option: --disable-acl.
43274         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43275         AC_ARG_ENABLE(acl).
43276
43277 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43278
43279         * tests/test-localename.c: Don't include obsolete "setenv.h".
43280
43281         * modules/localename-tests (Depends-on): Need unsetenv.
43282
43283 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43284
43285         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43286
43287 2008-01-06  Colin Watson  <cjwatson@debian.org>
43288
43289         * users.txt: Add man-db.
43290
43291 2008-01-07  Bruno Haible  <bruno@clisp.org>
43292
43293         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43294         previous section name.
43295
43296 2008-01-07  Bruno Haible  <bruno@clisp.org>
43297
43298         * lib/progname.c (set_program_name): Don't strip off a leading
43299         "lt-" prefix outside a .libs directory.
43300         Suggested by Paul Eggert.
43301
43302 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43303             Bruno Haible  <bruno@clisp.org>
43304
43305         Improve memory cleanup in 'relocatable' module.
43306         * lib/relocatable.h (compute_curr_prefix): Change return type to
43307         'char *'.
43308         * lib/relocatable.c (compute_curr_prefix): Change return type to
43309         'char *'. Free curr_installdir after use.
43310         (relocate): Free curr_prefix_better after use.
43311         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43312
43313 2008-01-01  Bruno Haible  <bruno@clisp.org>
43314
43315         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43316         failure on older glibc systems.
43317         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43318
43319 2008-01-05  Eric Blake  <ebb9@byu.net>
43320
43321         Avoid quadratic system memmem.
43322         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43323         Reported by Ralf Wildenhues.
43324
43325         Fix memmem test for mingw.
43326         * modules/memmem-tests (configure.ac): Check for alarm.
43327         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43328         it.
43329         * doc/functions/memmem.texi: New file.
43330         * doc/gnulib.texi (Function Substitutes): Add memmem.
43331         Reported by Bruno Haible.
43332
43333 2008-01-04  Bruno Haible  <bruno@clisp.org>
43334
43335         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43336         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43337         gl_HEADER_STRING_H_DEFAULTS.
43338
43339 2008-01-04  Eric Blake  <ebb9@byu.net>
43340
43341         Shorten duration of memmem test.
43342         * tests/test-memmem.c (main): Use alarm to declare failure if test
43343         is taking too long.
43344         Reported by Ralf Wildenhues.
43345
43346 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43347
43348         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43349         string, needed by strerror.
43350
43351 2008-01-03  Colin Watson  <cjwatson@debian.org>
43352             Bruno Haible  <bruno@clisp.org>
43353
43354         * doc/gnulib-tool.texi (Localization): New section.
43355
43356 2008-01-02  Bruno Haible  <bruno@clisp.org>
43357
43358         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43359         variables to 'unsigned char *' type.
43360         Reported by Paul Eggert.
43361
43362 2008-01-02  Jim Meyering  <jim@meyering.net>
43363
43364         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43365
43366 2007-12-31  Jim Meyering  <jim@meyering.net>
43367
43368         Avoid use of private FTS type name.
43369         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43370
43371 2007-12-30  Karl Berry  <karl@gnu.org>
43372
43373         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43374         work around defect in Texinfo and/or the standalone Info browser.
43375
43376 2007-12-30  Bruno Haible  <bruno@clisp.org>
43377
43378         Unify 5 copies of the KMP code.
43379         * lib/str-kmp.h: New file.
43380         * lib/c-strcasestr.c: Include str-kmp.h.
43381         (knuth_morris_pratt): Remove function.
43382         (c_strcasestr): Update.
43383         * lib/c-strstr.c: Include str-kmp.h.
43384         (knuth_morris_pratt): Remove function.
43385         (c_strcasestr): Update.
43386         * lib/mbscasestr.c: Include str-kmp.h.
43387         (knuth_morris_pratt_unibyte): Remove function.
43388         * lib/mbsstr.c: Include str-kmp.h.
43389         (knuth_morris_pratt_unibyte): Remove function.
43390         * lib/strcasestr.c: Include str-kmp.h.
43391         (knuth_morris_pratt): Remove function.
43392         (strcasestr): Update.
43393         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43394         * modules/c-strstr (Files): Likewise.
43395         * modules/mbscasestr (Files): Likewise.
43396         * modules/mbsstr (Files): Likewise.
43397         * modules/strcasestr (Files): Likewise.
43398         Suggested by Paul Eggert.
43399
43400 2007-12-30  Bruno Haible  <bruno@clisp.org>
43401
43402         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43403         defined.
43404
43405 2007-12-30  Bruno Haible  <bruno@clisp.org>
43406
43407         * lib/xmalloca.h: Include xalloc.h.
43408         (xnmalloca): New macro.
43409
43410 2007-12-30  Bruno Haible  <bruno@clisp.org>
43411
43412         * lib/malloca.h (nmalloca): New macro.
43413         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43414         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43415         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43416         knuth_morris_pratt_multibyte): Likewise.
43417         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43418         knuth_morris_pratt_multibyte): Likewise.
43419         * lib/memmem.c (knuth_morris_pratt): Likewise.
43420         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43421
43422 2007-12-25  Bruno Haible  <bruno@clisp.org>
43423
43424         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43425         * lib/glob.c: Don't include openat.h.
43426         (link_exists2_p): Add back the code that deals with the
43427         !GLOB_ALTDIRFUNC case.
43428         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43429         let it do the filename concatenation.
43430         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43431         * modules/glob (Depends-on): Remove openat.
43432
43433 2007-12-31  Bruno Haible  <bruno@clisp.org>
43434
43435         * modules/dirfd (License): Change to LGPLv2+.
43436         Approved by Jim Meyering.
43437
43438 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43439
43440         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43441         when multiplying M by sizeof (size_t).
43442
43443 2007-12-10  Martin Lambers  <marlam@marlam.de>
43444
43445         Override getpagesize on mingw.
43446         * lib/getpagesize.c: New file.
43447         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43448         * modules/getpagesize (Files): Add lib/getpagesize.c.
43449         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43451         REPLACE_GETPAGESIZE.
43452         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43453
43454 2007-12-25  Bruno Haible  <bruno@clisp.org>
43455
43456         * modules/localcharset (Notice): New field.
43457         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43458         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43459
43460 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43461             Bruno Haible  <bruno@clisp.org>
43462
43463         Avoid using the syntax symbol() in formatted documentation.
43464         * MODULES.html.sh (func_module): When replacing symbol() with a
43465         hyperlink, remove the parentheses. Show an error if some remain.
43466         Recognize and render the '...' syntax.
43467         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43468         Rework. Add paragraph about GCC's inlining.
43469         * doc/alloca.texi: Likewise.
43470         * doc/error.texi: Remove parentheses from symbol reference.
43471         * doc/gnulib-intro.texi: Likewise.
43472         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43473         * modules/fnmatch (Description): Reword to say "the ... function".
43474         * modules/full-read (Description): Likewise.
43475         * modules/full-write (Description): Likewise.
43476         * modules/safe-read (Description): Likewise.
43477         * modules/safe-write (Description): Likewise.
43478         * modules/strchrnul (Description): Likewise.
43479         * modules/trim (Description): Likewise.
43480         * modules/error (Description): Remove parentheses from symbol
43481         references.
43482         * modules/verror (Description): Likewise.
43483         Reported by Karl Berry.
43484
43485 2007-12-25  Bruno Haible  <bruno@clisp.org>
43486
43487         Fixup after 2007-10-16 commit.
43488         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43489
43490 2007-12-24  Bruno Haible  <bruno@clisp.org>
43491
43492         Make --enable-relocatable work with DESTDIR.
43493         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43494         to compute installdir from destprog.
43495         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43496         also set the RELOC_DESTDIR variable.
43497         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43498
43499 2007-12-24  Bruno Haible  <bruno@clisp.org>
43500
43501         Fix link error due to xalloc_die().
43502         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43503         of xreadlink.
43504         * lib/relocwrapper.c: Update comments.
43505         * build-aux/install-reloc: Remove xreadlink.c from file list.
43506         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43507         xreadlink.c.
43508         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43509
43510 2007-12-24  Bruno Haible  <bruno@clisp.org>
43511
43512         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43513         * lib/setenv.h: Remove file.
43514         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43515         lib/setenv.h.
43516         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43517         (Depends-on): Add stdlib.
43518         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43519         gl_FUNC_UNSETENV.
43520         (Include): Replace setenv.h with <stdlib.h>.
43521         * modules/unsetenv: New file.
43522         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43523         * lib/unsetenv.c: Include <stdlib.h> first.
43524         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43525         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43526         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43527         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43528         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43529         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43531         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43532         * doc/functions/unsetenv.texi: Update.
43533         * modules/xsetenv (Depends-on): Add unsetenv.
43534         * modules/getdate (Depends-on): Likewise.
43535         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43536         * lib/xsetenv.c: Don't include setenv.h.
43537         * lib/getdate.y: Likewise.
43538         * lib/relocwrapper.c: Likewise.
43539         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43540         (Depends-on): Add stdlib.
43541         * NEWS: Mention the changes.
43542         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43543
43544 2007-12-23  Bruno Haible  <bruno@clisp.org>
43545
43546         * lib/memmem.c (memmem): Use lowercase variable names. Tab
43547         indentation.
43548
43549 2007-12-23  Bruno Haible  <bruno@clisp.org>
43550
43551         * lib/c-strcasestr.c: Add more comments.
43552         * lib/c-strstr.c: Likewise.
43553         * lib/mbscasestr.c: Likewise.
43554         * lib/mbsstr.c: Likewise.
43555         * lib/strcasestr.c: Likewise.
43556         * lib/memmem.c: Likewise.
43557
43558 2007-12-23  Bruno Haible  <bruno@clisp.org>
43559
43560         * tests/test-memmem.c: Include <string.h> first.
43561
43562 2007-12-22  Bruno Haible  <bruno@clisp.org>
43563
43564         * gnulib-tool (func_create_testdir): Change $auxdir while generating
43565         the contents of $testsbase.
43566         Reported by Ralf Wildenhues.
43567
43568 2007-12-22  Bruno Haible  <bruno@clisp.org>
43569
43570         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
43571         two variables local_ldadd_before, local_ldadd_last.
43572
43573 2007-12-20  Eric Blake  <ebb9@byu.net>
43574
43575         Work around circular library issue when cross-compiling.
43576         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
43577         that progname.o does not need to pull in rpl_memcmp.
43578
43579 2007-12-19  Eric Blake  <ebb9@byu.net>
43580
43581         Fix memmem to avoid O(n^2) worst-case complexity.
43582         * lib/memmem.c (knuth_morris_pratt): New function.
43583         (memmem): Use it if first few naive iterations fail.
43584         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
43585         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
43586         * modules/memchr (License): Likewise.
43587         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
43588         malloca.
43589         * tests/test-memmem.c: Rewrite, borrowing ideas from
43590         test-mbsstr1.c; the old version wouldn't even compile!
43591         * modules/memmem-tests: New file.
43592         * lib/string.in.h (rpl_memmem): Add declaration.
43593         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
43594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
43595         REPLACE_MEMMEM.
43596
43597 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43598
43599         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
43600         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
43601         before any system include files, and undef after them all.  This
43602         should fix a problem on VMS reported by John E. Malmberg in
43603         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
43604
43605 2007-12-17  Eric Blake  <ebb9@byu.net>
43606
43607         Revert addition of verify, for BSD/OS.
43608         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
43609         can't handle large files, for the sake of obsolete platforms.
43610         * modules/fseeko (Depends-on): Remove verify.
43611         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
43612         * doc/functions/ftello.texi (ftello): Likewise.
43613         * doc/functions/fgetpos.texi (fgetpos): Likewise.
43614         Reported by Larry Jones.
43615
43616 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
43617
43618         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
43619         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
43620
43621 2007-12-17  Jim Meyering  <meyering@redhat.com>
43622
43623         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
43624         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
43625         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
43626         * modules/getcwd (Depends-on): Add openat.
43627         Reported by Petr Salinger.
43628
43629 2007-12-17  Bruno Haible  <bruno@clisp.org>
43630
43631         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
43632         avoid a segmentation fault of the configure test on x86_64 systems.
43633
43634 2007-12-15  Jim Meyering  <meyering@redhat.com>
43635
43636         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
43637
43638 2007-12-13  Eric Blake  <ebb9@byu.net>
43639
43640         Another fseek test.
43641         * tests/test-fseek.c (main): Also test ungetc handling.
43642         * tests/test-fseeko.c (main): Likewise.
43643         * modules/fseeko (Depends-on): Add verify.
43644         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
43645         large.
43646         Reported by Larry Jones.
43647
43648         Fix fseeko on mingw.
43649         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
43650         seek.
43651
43652         Beef up fseek tests.
43653         * tests/test-fseek.c (main): Also test eof handling.
43654         * tests/test-fseeko.c (main): Likewise.
43655         Reported by Larry Jones.
43656
43657 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
43658
43659         Fix fseeko on BSD-based platforms.
43660         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
43661         successful seek.
43662
43663 2007-12-12  Eric Blake  <ebb9@byu.net>
43664
43665         Allow circular dependency of separate libtests.a
43666         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
43667         when use_libtests.
43668
43669 2007-12-11  Eric Blake  <ebb9@byu.net>
43670
43671         Fix bug with -0.0L in previous patch.
43672         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
43673         * tests/test-isnan.c (main): Also test on zeroes.
43674         * tests/test-isnanf.c (main): Likewise.
43675         * tests/test-isnanl.h (main): Likewise.
43676
43677         Detect pseudo-denormals on x86 even when cross-compiling.
43678         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
43679         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
43680         invalid bit patterns that happen to satisfy ==.
43681
43682         Avoid link failures with separate libtests.a.
43683         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
43684         last, to satisfy circular dependencies.
43685
43686 2007-12-11  Eric Blake  <ebb9@byu.net>
43687         and Bruno Haible  <bruno@clisp.org>
43688
43689         Fix OpenBSD 4.0 <float.h> handling of long double.
43690         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
43691         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
43692         * doc/headers/float.texi (float.h): Document OpenBSD bug.
43693
43694 2007-12-11  Jim Meyering  <meyering@redhat.com>
43695
43696         * users.txt: Add libvirt.
43697
43698         Support versions of autoconf prior to 2.59c.
43699         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
43700         if it is not already defined.
43701
43702 2007-12-09  Bruno Haible  <bruno@clisp.org>
43703
43704         Let 'gnulib-tool --import' collect sources needed for the tests in
43705         tests/ rather than in lib/.
43706         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
43707         argument. If true, add rules to generate libtests.a, and put libtests.a
43708         into $(LDADD). Consider source files in subdirectories and set
43709         uses_subdirs.
43710         (func_emit_initmacro_start, func_emit_initmacro_end,
43711         func_emit_initmacro_done): Pass all arguments explicitly.
43712         (func_import): Determine two module lists main_modules,
43713         testsrelated_modules. Determine use_libtests. Determine two variables
43714         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
43715         instead of just sed_transform_lib_file. Determine two variables
43716         main_files and testsrelated_files. Compute 'files' as the union of
43717         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
43718         func_add_or_update. In the generated gnulib-comp.m4, collect the
43719         object files for tests/ in different variables than those for lib/.
43720         Substitute LIBTESTS_LIBDEPS.
43721         (func_create_testdir): Combine the uses_subdirs results from
43722         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
43723
43724 2007-12-09  Bruno Haible  <bruno@clisp.org>
43725
43726         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
43727         the build-aux directory.
43728
43729 2007-12-09  Bruno Haible  <bruno@clisp.org>
43730
43731         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
43732         introduced on 2006-09-09.
43733
43734 2007-12-07  Jim Meyering  <meyering@redhat.com>
43735
43736         Let these macros work also with autoconf-2.59.
43737         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
43738         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
43739         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
43740
43741 2007-12-06  Jim Meyering  <meyering@redhat.com>
43742
43743         Avoid a configure-time syntax error in gl_FUNC_ACL.
43744         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
43745         function in each branch, before testing the cache variable.
43746
43747 2007-12-04  Eric Blake  <ebb9@byu.net>
43748
43749         Make scripts executable.
43750         * build-aux/config.guess: Add execute permissions.
43751         * build-aux/config.sub: Likewise.
43752         * build-aux/gendocs.sh: Likewise.
43753
43754         Fix frexp on mingw.
43755         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
43756         cross-compiling.
43757         * doc/functions/frexp.texi (frexp): Document the bug.
43758
43759         Make cygwin fseeko check more reliable.
43760         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
43761         version numbers, rather than unrelated feature check.
43762         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
43763         * doc/functions/ftello.texi (ftello): Likewise.
43764         Reported by Bruno Haible.
43765
43766         * m4/strerror.m4: Bump version number.
43767
43768 2007-12-03  Bruno Haible  <bruno@clisp.org>
43769
43770         * doc/functions/mprotect.texi: Mention the mingw problem.
43771
43772 2007-12-03  Eric Blake  <ebb9@byu.net>
43773
43774         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
43775         REPLACE_STRERROR is initialized before this macro.
43776
43777 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
43778
43779         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
43780         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
43781         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
43782         put -lsec in even for programs other than 'ls'.  This fixes a problem
43783         for gettext reported by Bruno Haible in
43784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
43785         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
43786         Add support for Solaris 10.  This isn't efficient, but should get the
43787         job done for now.
43788
43789 2007-12-03  James Youngman  <jay@gnu.org>
43790
43791         * doc/regexprops-generic.texi: change "an close-group" to "a
43792         close-group" and "illegal" to "not allowed".
43793
43794 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43795
43796         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
43797         pr_byname.h. Needed for the rare case when the maintainer has done
43798         "make maintainer-clean" in the source directory and then attempts a
43799         build outside the source directory.
43800         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
43801         scripts_byname.h.
43802
43803 2007-12-02  Martin Lambers <marlam@marlam.de>
43804             Bruno Haible  <bruno@clisp.org>
43805
43806         * lib/getpagesize.h: Remove file.
43807         * lib/unistd.in.h: Include declaration of getpagesize here.
43808         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
43809         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
43810         HAVE_SYS_PARAM_H.
43811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43812         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43813         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43814         (Depends-on): Add unistd.
43815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43816         (Include): Use <unistd.h> instead of getpagesize.h.
43817         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43818         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43819         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43820         gl_GETPAGESIZE invocation, already handled by module dependency.
43821         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43822
43823 2007-12-02  Bruno Haible  <bruno@clisp.org>
43824
43825         * modules/strings-tests: New file.
43826         * tests/test-strings.c: New file.
43827
43828         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43829         * lib/strings.in.h: New file.
43830         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43831         * m4/strings_h.m4: New file.
43832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43833         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43834         * modules/strings: New file.
43835         * modules/string (Makefile.am): Update.
43836         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43837         Reported by Karl Berry.
43838
43839 2007-12-01  Eric Blake  <ebb9@byu.net>
43840
43841         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43842         accomodate fix in cygwin 1.5.25.
43843
43844 2007-12-01  Jim Meyering  <meyering@redhat.com>
43845
43846         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43847         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43848         that would inhibit utf8-optimization of a regexp containing line-
43849         or buffer-anchors, e.g., `^', `$'.
43850
43851 2007-11-30  Bruno Haible  <bruno@clisp.org>
43852
43853         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43854         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43855         glthread_recursive_lock_init.
43856         * lib/lock.c (glthread_recursive_lock_init)
43857         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43858         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43859
43860 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43861
43862         New function qset_acl, like set_acl but with syscall semantics.
43863         * lib/acl.h (qset_acl): New decl.
43864         * lib/acl.c (qset_acl): New function.
43865         (set_acl): Use new function.  Use more-consistent diagnostics.
43866
43867 2007-11-28  Jim Meyering  <meyering@redhat.com>
43868
43869         * modules/physmem (License): Change from GPL to LGPLv2+.
43870
43871 2007-11-26  Bruno Haible  <bruno@clisp.org>
43872
43873         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43874         'long double' type has excess precision.
43875         Reported by Jim Meyering in
43876         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43877
43878 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43879
43880         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43881         Sync from <http://gnu.org/licenses>.
43882         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43883         with license text from same location.
43884         * doc/maintain.texi, doc/standards.texi:  Sync from
43885         <http://savannah.gnu.org/projects/gnustandards>.
43886
43887 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43888         and Jim Meyering  <meyering@redhat.com>
43889
43890         Adjust getdate' grammar to accept a slightly more regular language.
43891         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43892         Before, the former was rejected.
43893         * lib/getdate.y (digits_to_date_time): New function, factored
43894         out of ...
43895         (number): ...here.  Just call digits_to_date_time.
43896         (hybrid): New non-terminal to handle an <unsigned number,
43897         signed relative offset> sequence consistently.
43898
43899 2007-11-18  Jim Meyering  <meyering@redhat.com>
43900
43901         Pull my changes from coreutils:
43902         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43903         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43904         use of $gnulib_tool_option_extras, so that it's separated from the
43905         preceding argument.
43906
43907         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43908         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43909         parent destination directories before copying a file into place.
43910
43911 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43912
43913         bootstrap: work also with 4-argument variant of AC_INIT
43914         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43915
43916 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43917
43918         Port test-getaddrinfo to Solaris.
43919         Problem reported by Bruno Haible in
43920         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43921         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43922         explanation of setting 'hints'.
43923         Don't reject an implementation merely because it returns EAI_SERVICE.
43924         (EAI_SERVICE): Define to 0 if not defined.
43925
43926 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43927
43928         The license of gnu-make and posix-shell is now "GPLed build tool".
43929         * modules/gnu-make (License): Likewise.
43930         * modules/posix-shell (License): Likewise.
43931
43932         New module posix-shell, for determining a POSIX shell
43933         or perhaps something that is close enough to a POSIX shell.
43934         * m4/posix-shell.m4: New file.
43935         * modules/posix-shell: New file.
43936
43937         * MODULES.html.sh: Mention new module.
43938
43939         New module gnu-make, for determining whether we're using GNU Make.
43940         * m4/gnu-make.m4: New file.
43941         * modules/gnu-make: New file.
43942         * MODULES.html.sh: Mention new module.
43943
43944 2007-11-14  Jim Meyering  <meyering@redhat.com>
43945
43946         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43947         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43948         use this macro to create a function _definition_.
43949         Remove useless "#undef ARGMATCH_DIE".
43950
43951 2007-11-14  Bruno Haible  <bruno@clisp.org>
43952
43953         * lib/config.charset: Update for OpenBSD 4.1.
43954         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43955
43956 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43957
43958         Document 64-bit #if problems in stdint.texi.
43959         * doc/headers/stdint.texi (stdint.h): Mention problems with
43960         64-bit-#if, and how to work around them.
43961
43962         Don't insist on 'long long int' support in the preprocessor.  It
43963         breaks too many things.  For example, PRIdMAX still uses a 'long
43964         long int' format with the latest Sun compiler, even though
43965         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43966         preprocessor problem.  This causes the latest coreutils to dump
43967         core on Solaris 10 sparc with the Sun C compiler.
43968         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43969         the troublesome expressions at configure-time, not at #if-time.
43970         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43971         preprocessor.
43972         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43973         compile-time C checks, done at 'configure'-time.
43974         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43975         * modules/inttypes (Makefile): Substitute the new symbols that
43976         gl_INTTYPES_H now generates.
43977         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43978
43979 2007-11-12  Bruno Haible  <bruno@clisp.org>
43980
43981         Tests for Unicode character classification functions.
43982
43983         * modules/unictype/bidicategory-byname-tests: New file.
43984         * modules/unictype/bidicategory-name-tests: New file.
43985         * modules/unictype/bidicategory-of-tests: New file.
43986         * modules/unictype/bidicategory-test-tests: New file.
43987         * modules/unictype/block-list-tests: New file.
43988         * modules/unictype/block-of-tests: New file.
43989         * modules/unictype/block-test-tests: New file.
43990         * modules/unictype/category-C-tests: New file.
43991         * modules/unictype/category-Cc-tests: New file.
43992         * modules/unictype/category-Cf-tests: New file.
43993         * modules/unictype/category-Cn-tests: New file.
43994         * modules/unictype/category-Co-tests: New file.
43995         * modules/unictype/category-Cs-tests: New file.
43996         * modules/unictype/category-L-tests: New file.
43997         * modules/unictype/category-Ll-tests: New file.
43998         * modules/unictype/category-Lm-tests: New file.
43999         * modules/unictype/category-Lo-tests: New file.
44000         * modules/unictype/category-Lt-tests: New file.
44001         * modules/unictype/category-Lu-tests: New file.
44002         * modules/unictype/category-M-tests: New file.
44003         * modules/unictype/category-Mc-tests: New file.
44004         * modules/unictype/category-Me-tests: New file.
44005         * modules/unictype/category-Mn-tests: New file.
44006         * modules/unictype/category-N-tests: New file.
44007         * modules/unictype/category-Nd-tests: New file.
44008         * modules/unictype/category-Nl-tests: New file.
44009         * modules/unictype/category-No-tests: New file.
44010         * modules/unictype/category-P-tests: New file.
44011         * modules/unictype/category-Pc-tests: New file.
44012         * modules/unictype/category-Pd-tests: New file.
44013         * modules/unictype/category-Pe-tests: New file.
44014         * modules/unictype/category-Pf-tests: New file.
44015         * modules/unictype/category-Pi-tests: New file.
44016         * modules/unictype/category-Po-tests: New file.
44017         * modules/unictype/category-Ps-tests: New file.
44018         * modules/unictype/category-S-tests: New file.
44019         * modules/unictype/category-Sc-tests: New file.
44020         * modules/unictype/category-Sk-tests: New file.
44021         * modules/unictype/category-Sm-tests: New file.
44022         * modules/unictype/category-So-tests: New file.
44023         * modules/unictype/category-Z-tests: New file.
44024         * modules/unictype/category-Zl-tests: New file.
44025         * modules/unictype/category-Zp-tests: New file.
44026         * modules/unictype/category-Zs-tests: New file.
44027         * modules/unictype/category-and-not-tests: New file.
44028         * modules/unictype/category-and-tests: New file.
44029         * modules/unictype/category-byname-tests: New file.
44030         * modules/unictype/category-name-tests: New file.
44031         * modules/unictype/category-none-tests: New file.
44032         * modules/unictype/category-of-tests: New file.
44033         * modules/unictype/category-or-tests: New file.
44034         * modules/unictype/category-test-withtable-tests: New file.
44035         * modules/unictype/combining-class-tests: New file.
44036         * modules/unictype/ctype-alnum-tests: New file.
44037         * modules/unictype/ctype-alpha-tests: New file.
44038         * modules/unictype/ctype-blank-tests: New file.
44039         * modules/unictype/ctype-cntrl-tests: New file.
44040         * modules/unictype/ctype-digit-tests: New file.
44041         * modules/unictype/ctype-graph-tests: New file.
44042         * modules/unictype/ctype-lower-tests: New file.
44043         * modules/unictype/ctype-print-tests: New file.
44044         * modules/unictype/ctype-punct-tests: New file.
44045         * modules/unictype/ctype-space-tests: New file.
44046         * modules/unictype/ctype-upper-tests: New file.
44047         * modules/unictype/ctype-xdigit-tests: New file.
44048         * modules/unictype/decimal-digit-tests: New file.
44049         * modules/unictype/digit-tests: New file.
44050         * modules/unictype/mirror-tests: New file.
44051         * modules/unictype/numeric-tests: New file.
44052         * modules/unictype/property-alphabetic-tests: New file.
44053         * modules/unictype/property-ascii-hex-digit-tests: New file.
44054         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44055         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44056         * modules/unictype/property-bidi-block-separator-tests: New file.
44057         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44058         * modules/unictype/property-bidi-common-separator-tests: New file.
44059         * modules/unictype/property-bidi-control-tests: New file.
44060         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44061         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44062         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44063         * modules/unictype/property-bidi-european-digit-tests: New file.
44064         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44065         * modules/unictype/property-bidi-left-to-right-tests: New file.
44066         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44067         * modules/unictype/property-bidi-other-neutral-tests: New file.
44068         * modules/unictype/property-bidi-pdf-tests: New file.
44069         * modules/unictype/property-bidi-segment-separator-tests: New file.
44070         * modules/unictype/property-bidi-whitespace-tests: New file.
44071         * modules/unictype/property-byname-tests: New file.
44072         * modules/unictype/property-combining-tests: New file.
44073         * modules/unictype/property-composite-tests: New file.
44074         * modules/unictype/property-currency-symbol-tests: New file.
44075         * modules/unictype/property-dash-tests: New file.
44076         * modules/unictype/property-decimal-digit-tests: New file.
44077         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44078         * modules/unictype/property-deprecated-tests: New file.
44079         * modules/unictype/property-diacritic-tests: New file.
44080         * modules/unictype/property-extender-tests: New file.
44081         * modules/unictype/property-format-control-tests: New file.
44082         * modules/unictype/property-grapheme-base-tests: New file.
44083         * modules/unictype/property-grapheme-extend-tests: New file.
44084         * modules/unictype/property-grapheme-link-tests: New file.
44085         * modules/unictype/property-hex-digit-tests: New file.
44086         * modules/unictype/property-hyphen-tests: New file.
44087         * modules/unictype/property-id-continue-tests: New file.
44088         * modules/unictype/property-id-start-tests: New file.
44089         * modules/unictype/property-ideographic-tests: New file.
44090         * modules/unictype/property-ids-binary-operator-tests: New file.
44091         * modules/unictype/property-ids-trinary-operator-tests: New file.
44092         * modules/unictype/property-ignorable-control-tests: New file.
44093         * modules/unictype/property-iso-control-tests: New file.
44094         * modules/unictype/property-join-control-tests: New file.
44095         * modules/unictype/property-left-of-pair-tests: New file.
44096         * modules/unictype/property-line-separator-tests: New file.
44097         * modules/unictype/property-logical-order-exception-tests: New file.
44098         * modules/unictype/property-lowercase-tests: New file.
44099         * modules/unictype/property-math-tests: New file.
44100         * modules/unictype/property-non-break-tests: New file.
44101         * modules/unictype/property-not-a-character-tests: New file.
44102         * modules/unictype/property-numeric-tests: New file.
44103         * modules/unictype/property-other-alphabetic-tests: New file.
44104         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44105         * modules/unictype/property-other-grapheme-extend-tests: New file.
44106         * modules/unictype/property-other-id-continue-tests: New file.
44107         * modules/unictype/property-other-id-start-tests: New file.
44108         * modules/unictype/property-other-lowercase-tests: New file.
44109         * modules/unictype/property-other-math-tests: New file.
44110         * modules/unictype/property-other-uppercase-tests: New file.
44111         * modules/unictype/property-paired-punctuation-tests: New file.
44112         * modules/unictype/property-paragraph-separator-tests: New file.
44113         * modules/unictype/property-pattern-syntax-tests: New file.
44114         * modules/unictype/property-pattern-white-space-tests: New file.
44115         * modules/unictype/property-private-use-tests: New file.
44116         * modules/unictype/property-punctuation-tests: New file.
44117         * modules/unictype/property-quotation-mark-tests: New file.
44118         * modules/unictype/property-radical-tests: New file.
44119         * modules/unictype/property-sentence-terminal-tests: New file.
44120         * modules/unictype/property-soft-dotted-tests: New file.
44121         * modules/unictype/property-space-tests: New file.
44122         * modules/unictype/property-terminal-punctuation-tests: New file.
44123         * modules/unictype/property-test-tests: New file.
44124         * modules/unictype/property-titlecase-tests: New file.
44125         * modules/unictype/property-unassigned-code-value-tests: New file.
44126         * modules/unictype/property-unified-ideograph-tests: New file.
44127         * modules/unictype/property-uppercase-tests: New file.
44128         * modules/unictype/property-variation-selector-tests: New file.
44129         * modules/unictype/property-white-space-tests: New file.
44130         * modules/unictype/property-xid-continue-tests: New file.
44131         * modules/unictype/property-xid-start-tests: New file.
44132         * modules/unictype/property-zero-width-tests: New file.
44133         * modules/unictype/scripts-tests: New file.
44134         * modules/unictype/syntax-c-ident-tests: New file.
44135         * modules/unictype/syntax-c-whitespace-tests: New file.
44136         * modules/unictype/syntax-java-ident-tests: New file.
44137         * modules/unictype/syntax-java-whitespace-tests: New file.
44138         * tests/unictype/test-bidi_byname.c: New file.
44139         * tests/unictype/test-bidi_name.c: New file.
44140         * tests/unictype/test-bidi_of.c: New file.
44141         * tests/unictype/test-bidi_test.c: New file.
44142         * tests/unictype/test-block_list.c: New file.
44143         * tests/unictype/test-block_of.c: New file.
44144         * tests/unictype/test-block_test.c: New file.
44145         * tests/unictype/test-categ_and.c: New file.
44146         * tests/unictype/test-categ_and_not.c: New file.
44147         * tests/unictype/test-categ_byname.c: New file.
44148         * tests/unictype/test-categ_name.c: New file.
44149         * tests/unictype/test-categ_none.c: New file.
44150         * tests/unictype/test-categ_of.c: New file.
44151         * tests/unictype/test-categ_or.c: New file.
44152         * tests/unictype/test-categ_test_withtable.c: New file.
44153         * tests/unictype/test-combining.c: New file.
44154         * tests/unictype/test-decdigit.c: New file.
44155         * tests/unictype/test-digit.c: New file.
44156         * tests/unictype/test-mirror.c: New file.
44157         * tests/unictype/test-numeric.c: New file.
44158         * tests/unictype/test-pr_byname.c: New file.
44159         * tests/unictype/test-pr_test.c: New file.
44160         * tests/unictype/test-predicate-part1.h: New file.
44161         * tests/unictype/test-predicate-part2.h: New file.
44162         * tests/unictype/test-scripts.c: New file.
44163         * tests/unictype/test-sy_c_ident.c: New file.
44164         * tests/unictype/test-sy_java_ident.c: New file.
44165
44166         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44167         for Unicode 5.0.0.
44168         * tests/unictype/test-categ_Cc.c: Likewise.
44169         * tests/unictype/test-categ_Cf.c: Likewise.
44170         * tests/unictype/test-categ_Cn.c: Likewise.
44171         * tests/unictype/test-categ_Co.c: Likewise.
44172         * tests/unictype/test-categ_Cs.c: Likewise.
44173         * tests/unictype/test-categ_L.c: Likewise.
44174         * tests/unictype/test-categ_Ll.c: Likewise.
44175         * tests/unictype/test-categ_Lm.c: Likewise.
44176         * tests/unictype/test-categ_Lo.c: Likewise.
44177         * tests/unictype/test-categ_Lt.c: Likewise.
44178         * tests/unictype/test-categ_Lu.c: Likewise.
44179         * tests/unictype/test-categ_M.c: Likewise.
44180         * tests/unictype/test-categ_Mc.c: Likewise.
44181         * tests/unictype/test-categ_Me.c: Likewise.
44182         * tests/unictype/test-categ_Mn.c: Likewise.
44183         * tests/unictype/test-categ_N.c: Likewise.
44184         * tests/unictype/test-categ_Nd.c: Likewise.
44185         * tests/unictype/test-categ_Nl.c: Likewise.
44186         * tests/unictype/test-categ_No.c: Likewise.
44187         * tests/unictype/test-categ_P.c: Likewise.
44188         * tests/unictype/test-categ_Pc.c: Likewise.
44189         * tests/unictype/test-categ_Pd.c: Likewise.
44190         * tests/unictype/test-categ_Pe.c: Likewise.
44191         * tests/unictype/test-categ_Pf.c: Likewise.
44192         * tests/unictype/test-categ_Pi.c: Likewise.
44193         * tests/unictype/test-categ_Po.c: Likewise.
44194         * tests/unictype/test-categ_Ps.c: Likewise.
44195         * tests/unictype/test-categ_S.c: Likewise.
44196         * tests/unictype/test-categ_Sc.c: Likewise.
44197         * tests/unictype/test-categ_Sk.c: Likewise.
44198         * tests/unictype/test-categ_Sm.c: Likewise.
44199         * tests/unictype/test-categ_So.c: Likewise.
44200         * tests/unictype/test-categ_Z.c: Likewise.
44201         * tests/unictype/test-categ_Zl.c: Likewise.
44202         * tests/unictype/test-categ_Zp.c: Likewise.
44203         * tests/unictype/test-categ_Zs.c: Likewise.
44204         * tests/unictype/test-ctype_alnum.c: Likewise.
44205         * tests/unictype/test-ctype_alpha.c: Likewise.
44206         * tests/unictype/test-ctype_blank.c: Likewise.
44207         * tests/unictype/test-ctype_cntrl.c: Likewise.
44208         * tests/unictype/test-ctype_digit.c: Likewise.
44209         * tests/unictype/test-ctype_graph.c: Likewise.
44210         * tests/unictype/test-ctype_lower.c: Likewise.
44211         * tests/unictype/test-ctype_print.c: Likewise.
44212         * tests/unictype/test-ctype_punct.c: Likewise.
44213         * tests/unictype/test-ctype_space.c: Likewise.
44214         * tests/unictype/test-ctype_upper.c: Likewise.
44215         * tests/unictype/test-ctype_xdigit.c: Likewise.
44216         * tests/unictype/test-decdigit.h: Likewise.
44217         * tests/unictype/test-digit.h: Likewise.
44218         * tests/unictype/test-numeric.h: Likewise.
44219         * tests/unictype/test-pr_alphabetic.c: Likewise.
44220         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44221         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44222         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44223         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44224         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44225         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44226         * tests/unictype/test-pr_bidi_control.c: Likewise.
44227         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44228         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44229         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44230         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44231         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44232         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44233         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44234         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44235         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44236         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44237         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44238         * tests/unictype/test-pr_combining.c: Likewise.
44239         * tests/unictype/test-pr_composite.c: Likewise.
44240         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44241         * tests/unictype/test-pr_dash.c: Likewise.
44242         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44243         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44244         * tests/unictype/test-pr_deprecated.c: Likewise.
44245         * tests/unictype/test-pr_diacritic.c: Likewise.
44246         * tests/unictype/test-pr_extender.c: Likewise.
44247         * tests/unictype/test-pr_format_control.c: Likewise.
44248         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44249         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44250         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44251         * tests/unictype/test-pr_hex_digit.c: Likewise.
44252         * tests/unictype/test-pr_hyphen.c: Likewise.
44253         * tests/unictype/test-pr_id_continue.c: Likewise.
44254         * tests/unictype/test-pr_id_start.c: Likewise.
44255         * tests/unictype/test-pr_ideographic.c: Likewise.
44256         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44257         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44258         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44259         * tests/unictype/test-pr_iso_control.c: Likewise.
44260         * tests/unictype/test-pr_join_control.c: Likewise.
44261         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44262         * tests/unictype/test-pr_line_separator.c: Likewise.
44263         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44264         * tests/unictype/test-pr_lowercase.c: Likewise.
44265         * tests/unictype/test-pr_math.c: Likewise.
44266         * tests/unictype/test-pr_non_break.c: Likewise.
44267         * tests/unictype/test-pr_not_a_character.c: Likewise.
44268         * tests/unictype/test-pr_numeric.c: Likewise.
44269         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44270         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44271         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44272         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44273         * tests/unictype/test-pr_other_id_start.c: Likewise.
44274         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44275         * tests/unictype/test-pr_other_math.c: Likewise.
44276         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44277         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44278         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44279         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44280         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44281         * tests/unictype/test-pr_private_use.c: Likewise.
44282         * tests/unictype/test-pr_punctuation.c: Likewise.
44283         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44284         * tests/unictype/test-pr_radical.c: Likewise.
44285         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44286         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44287         * tests/unictype/test-pr_space.c: Likewise.
44288         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44289         * tests/unictype/test-pr_titlecase.c: Likewise.
44290         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44291         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44292         * tests/unictype/test-pr_uppercase.c: Likewise.
44293         * tests/unictype/test-pr_variation_selector.c: Likewise.
44294         * tests/unictype/test-pr_white_space.c: Likewise.
44295         * tests/unictype/test-pr_xid_continue.c: Likewise.
44296         * tests/unictype/test-pr_xid_start.c: Likewise.
44297         * tests/unictype/test-pr_zero_width.c: Likewise.
44298         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44299         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44300
44301 2007-11-12  Bruno Haible  <bruno@clisp.org>
44302
44303         Unicode character classification functions.
44304         * lib/unictype.h: New file.
44305         * modules/unictype/base: New file.
44306         * modules/unictype/category-L: New file.
44307         * modules/unictype/category-Lu: New file.
44308         * modules/unictype/category-Ll: New file.
44309         * modules/unictype/category-Lt: New file.
44310         * modules/unictype/category-Lm: New file.
44311         * modules/unictype/category-Lo: New file.
44312         * modules/unictype/category-M: New file.
44313         * modules/unictype/category-Mn: New file.
44314         * modules/unictype/category-Mc: New file.
44315         * modules/unictype/category-Me: New file.
44316         * modules/unictype/category-N: New file.
44317         * modules/unictype/category-Nd: New file.
44318         * modules/unictype/category-Nl: New file.
44319         * modules/unictype/category-No: New file.
44320         * modules/unictype/category-P: New file.
44321         * modules/unictype/category-Pc: New file.
44322         * modules/unictype/category-Pd: New file.
44323         * modules/unictype/category-Ps: New file.
44324         * modules/unictype/category-Pe: New file.
44325         * modules/unictype/category-Pi: New file.
44326         * modules/unictype/category-Pf: New file.
44327         * modules/unictype/category-Po: New file.
44328         * modules/unictype/category-S: New file.
44329         * modules/unictype/category-Sm: New file.
44330         * modules/unictype/category-Sc: New file.
44331         * modules/unictype/category-Sk: New file.
44332         * modules/unictype/category-So: New file.
44333         * modules/unictype/category-Z: New file.
44334         * modules/unictype/category-Zs: New file.
44335         * modules/unictype/category-Zl: New file.
44336         * modules/unictype/category-Zp: New file.
44337         * modules/unictype/category-C: New file.
44338         * modules/unictype/category-Cc: New file.
44339         * modules/unictype/category-Cf: New file.
44340         * modules/unictype/category-Cs: New file.
44341         * modules/unictype/category-Co: New file.
44342         * modules/unictype/category-Cn: New file.
44343         * modules/unictype/category-or: New file.
44344         * modules/unictype/category-of: New file.
44345         * modules/unictype/category-test: New file.
44346         * modules/unictype/category-test-withtable: New file.
44347         * modules/unictype/category-byname: New file.
44348         * modules/unictype/category-none: New file.
44349         * modules/unictype/category-and: New file.
44350         * modules/unictype/category-and-not: New file.
44351         * modules/unictype/category-name: New file.
44352         * modules/unictype/combining-class: New file.
44353         * modules/unictype/category-all: New file.
44354         * modules/unictype/bidicategory-all: New file.
44355         * modules/unictype/bidicategory-byname: New file.
44356         * modules/unictype/bidicategory-name: New file.
44357         * modules/unictype/bidicategory-of: New file.
44358         * modules/unictype/bidicategory-test: New file.
44359         * modules/unictype/decimal-digit: New file.
44360         * modules/unictype/digit: New file.
44361         * modules/unictype/numeric: New file.
44362         * modules/unictype/mirror: New file.
44363         * modules/unictype/property-white-space: New file.
44364         * modules/unictype/property-alphabetic: New file.
44365         * modules/unictype/property-other-alphabetic: New file.
44366         * modules/unictype/property-not-a-character: New file.
44367         * modules/unictype/property-default-ignorable-code-point: New file.
44368         * modules/unictype/property-other-default-ignorable-code-point: New
44369         file.
44370         * modules/unictype/property-deprecated: New file.
44371         * modules/unictype/property-logical-order-exception: New file.
44372         * modules/unictype/property-variation-selector: New file.
44373         * modules/unictype/property-private-use: New file.
44374         * modules/unictype/property-unassigned-code-value: New file.
44375         * modules/unictype/property-uppercase: New file.
44376         * modules/unictype/property-other-uppercase: New file.
44377         * modules/unictype/property-lowercase: New file.
44378         * modules/unictype/property-other-lowercase: New file.
44379         * modules/unictype/property-titlecase: New file.
44380         * modules/unictype/property-soft-dotted: New file.
44381         * modules/unictype/property-id-start: New file.
44382         * modules/unictype/property-other-id-start: New file.
44383         * modules/unictype/property-id-continue: New file.
44384         * modules/unictype/property-other-id-continue: New file.
44385         * modules/unictype/property-xid-start: New file.
44386         * modules/unictype/property-xid-continue: New file.
44387         * modules/unictype/property-pattern-white-space: New file.
44388         * modules/unictype/property-pattern-syntax: New file.
44389         * modules/unictype/property-join-control: New file.
44390         * modules/unictype/property-grapheme-base: New file.
44391         * modules/unictype/property-grapheme-extend: New file.
44392         * modules/unictype/property-other-grapheme-extend: New file.
44393         * modules/unictype/property-grapheme-link: New file.
44394         * modules/unictype/property-bidi-control: New file.
44395         * modules/unictype/property-bidi-left-to-right: New file.
44396         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44397         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44398         * modules/unictype/property-bidi-european-digit: New file.
44399         * modules/unictype/property-bidi-eur-num-separator: New file.
44400         * modules/unictype/property-bidi-eur-num-terminator: New file.
44401         * modules/unictype/property-bidi-arabic-digit: New file.
44402         * modules/unictype/property-bidi-common-separator: New file.
44403         * modules/unictype/property-bidi-block-separator: New file.
44404         * modules/unictype/property-bidi-segment-separator: New file.
44405         * modules/unictype/property-bidi-whitespace: New file.
44406         * modules/unictype/property-bidi-non-spacing-mark: New file.
44407         * modules/unictype/property-bidi-boundary-neutral: New file.
44408         * modules/unictype/property-bidi-pdf: New file.
44409         * modules/unictype/property-bidi-embedding-or-override: New file.
44410         * modules/unictype/property-bidi-other-neutral: New file.
44411         * modules/unictype/property-hex-digit: New file.
44412         * modules/unictype/property-ascii-hex-digit: New file.
44413         * modules/unictype/property-ideographic: New file.
44414         * modules/unictype/property-unified-ideograph: New file.
44415         * modules/unictype/property-radical: New file.
44416         * modules/unictype/property-ids-binary-operator: New file.
44417         * modules/unictype/property-ids-trinary-operator: New file.
44418         * modules/unictype/property-zero-width: New file.
44419         * modules/unictype/property-space: New file.
44420         * modules/unictype/property-non-break: New file.
44421         * modules/unictype/property-iso-control: New file.
44422         * modules/unictype/property-format-control: New file.
44423         * modules/unictype/property-dash: New file.
44424         * modules/unictype/property-hyphen: New file.
44425         * modules/unictype/property-punctuation: New file.
44426         * modules/unictype/property-line-separator: New file.
44427         * modules/unictype/property-paragraph-separator: New file.
44428         * modules/unictype/property-quotation-mark: New file.
44429         * modules/unictype/property-sentence-terminal: New file.
44430         * modules/unictype/property-terminal-punctuation: New file.
44431         * modules/unictype/property-currency-symbol: New file.
44432         * modules/unictype/property-math: New file.
44433         * modules/unictype/property-other-math: New file.
44434         * modules/unictype/property-paired-punctuation: New file.
44435         * modules/unictype/property-left-of-pair: New file.
44436         * modules/unictype/property-combining: New file.
44437         * modules/unictype/property-composite: New file.
44438         * modules/unictype/property-decimal-digit: New file.
44439         * modules/unictype/property-numeric: New file.
44440         * modules/unictype/property-diacritic: New file.
44441         * modules/unictype/property-extender: New file.
44442         * modules/unictype/property-ignorable-control: New file.
44443         * modules/unictype/property-test: New file.
44444         * modules/unictype/property-byname: New file.
44445         * modules/unictype/property-all: New file.
44446         * modules/unictype/scripts: New file.
44447         * modules/unictype/scripts-all: New file.
44448         * modules/unictype/block-of: New file.
44449         * modules/unictype/block-test: New file.
44450         * modules/unictype/block-list: New file.
44451         * modules/unictype/block-all: New file.
44452         * modules/unictype/syntax-c-whitespace: New file.
44453         * modules/unictype/syntax-java-whitespace: New file.
44454         * modules/unictype/syntax-c-ident: New file.
44455         * modules/unictype/syntax-java-ident: New file.
44456         * modules/unictype/ctype-alnum: New file.
44457         * modules/unictype/ctype-alpha: New file.
44458         * modules/unictype/ctype-cntrl: New file.
44459         * modules/unictype/ctype-digit: New file.
44460         * modules/unictype/ctype-graph: New file.
44461         * modules/unictype/ctype-lower: New file.
44462         * modules/unictype/ctype-print: New file.
44463         * modules/unictype/ctype-punct: New file.
44464         * modules/unictype/ctype-space: New file.
44465         * modules/unictype/ctype-upper: New file.
44466         * modules/unictype/ctype-xdigit: New file.
44467         * modules/unictype/ctype-blank: New file.
44468         * lib/unictype/bidi_byname.c: New file.
44469         * lib/unictype/bidi_name.c: New file.
44470         * lib/unictype/bidi_of.c: New file.
44471         * lib/unictype/bidi_test.c: New file.
44472         * lib/unictype/bitmap.h: New file.
44473         * lib/unictype/block_test.c: New file.
44474         * lib/unictype/blocks.c: New file.
44475         * lib/unictype/categ_C.c: New file.
44476         * lib/unictype/categ_Cc.c: New file.
44477         * lib/unictype/categ_Cf.c: New file.
44478         * lib/unictype/categ_Cn.c: New file.
44479         * lib/unictype/categ_Co.c: New file.
44480         * lib/unictype/categ_Cs.c: New file.
44481         * lib/unictype/categ_L.c: New file.
44482         * lib/unictype/categ_Ll.c: New file.
44483         * lib/unictype/categ_Lm.c: New file.
44484         * lib/unictype/categ_Lo.c: New file.
44485         * lib/unictype/categ_Lt.c: New file.
44486         * lib/unictype/categ_Lu.c: New file.
44487         * lib/unictype/categ_M.c: New file.
44488         * lib/unictype/categ_Mc.c: New file.
44489         * lib/unictype/categ_Me.c: New file.
44490         * lib/unictype/categ_Mn.c: New file.
44491         * lib/unictype/categ_N.c: New file.
44492         * lib/unictype/categ_Nd.c: New file.
44493         * lib/unictype/categ_Nl.c: New file.
44494         * lib/unictype/categ_No.c: New file.
44495         * lib/unictype/categ_P.c: New file.
44496         * lib/unictype/categ_Pc.c: New file.
44497         * lib/unictype/categ_Pd.c: New file.
44498         * lib/unictype/categ_Pe.c: New file.
44499         * lib/unictype/categ_Pf.c: New file.
44500         * lib/unictype/categ_Pi.c: New file.
44501         * lib/unictype/categ_Po.c: New file.
44502         * lib/unictype/categ_Ps.c: New file.
44503         * lib/unictype/categ_S.c: New file.
44504         * lib/unictype/categ_Sc.c: New file.
44505         * lib/unictype/categ_Sk.c: New file.
44506         * lib/unictype/categ_Sm.c: New file.
44507         * lib/unictype/categ_So.c: New file.
44508         * lib/unictype/categ_Z.c: New file.
44509         * lib/unictype/categ_Zl.c: New file.
44510         * lib/unictype/categ_Zp.c: New file.
44511         * lib/unictype/categ_Zs.c: New file.
44512         * lib/unictype/categ_and.c: New file.
44513         * lib/unictype/categ_and_not.c: New file.
44514         * lib/unictype/categ_byname.c: New file.
44515         * lib/unictype/categ_name.c: New file.
44516         * lib/unictype/categ_none.c: New file.
44517         * lib/unictype/categ_of.c: New file.
44518         * lib/unictype/categ_or.c: New file.
44519         * lib/unictype/categ_test.c: New file.
44520         * lib/unictype/combining.c: New file.
44521         * lib/unictype/ctype_alnum.c: New file.
44522         * lib/unictype/ctype_alpha.c: New file.
44523         * lib/unictype/ctype_blank.c: New file.
44524         * lib/unictype/ctype_cntrl.c: New file.
44525         * lib/unictype/ctype_digit.c: New file.
44526         * lib/unictype/ctype_graph.c: New file.
44527         * lib/unictype/ctype_lower.c: New file.
44528         * lib/unictype/ctype_print.c: New file.
44529         * lib/unictype/ctype_punct.c: New file.
44530         * lib/unictype/ctype_space.c: New file.
44531         * lib/unictype/ctype_upper.c: New file.
44532         * lib/unictype/ctype_xdigit.c: New file.
44533         * lib/unictype/decdigit.c: New file.
44534         * lib/unictype/digit.c: New file.
44535         * lib/unictype/identsyntaxmap.h: New file.
44536         * lib/unictype/mirror.c: New file.
44537         * lib/unictype/numeric.c: New file.
44538         * lib/unictype/pr_alphabetic.c: New file.
44539         * lib/unictype/pr_ascii_hex_digit.c: New file.
44540         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44541         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
44542         * lib/unictype/pr_bidi_block_separator.c: New file.
44543         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
44544         * lib/unictype/pr_bidi_common_separator.c: New file.
44545         * lib/unictype/pr_bidi_control.c: New file.
44546         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
44547         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
44548         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
44549         * lib/unictype/pr_bidi_european_digit.c: New file.
44550         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
44551         * lib/unictype/pr_bidi_left_to_right.c: New file.
44552         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
44553         * lib/unictype/pr_bidi_other_neutral.c: New file.
44554         * lib/unictype/pr_bidi_pdf.c: New file.
44555         * lib/unictype/pr_bidi_segment_separator.c: New file.
44556         * lib/unictype/pr_bidi_whitespace.c: New file.
44557         * lib/unictype/pr_byname.c: New file.
44558         * lib/unictype/pr_byname.gperf: New file.
44559         * lib/unictype/pr_combining.c: New file.
44560         * lib/unictype/pr_composite.c: New file.
44561         * lib/unictype/pr_currency_symbol.c: New file.
44562         * lib/unictype/pr_dash.c: New file.
44563         * lib/unictype/pr_decimal_digit.c: New file.
44564         * lib/unictype/pr_default_ignorable_code_point.c: New file.
44565         * lib/unictype/pr_deprecated.c: New file.
44566         * lib/unictype/pr_diacritic.c: New file.
44567         * lib/unictype/pr_extender.c: New file.
44568         * lib/unictype/pr_format_control.c: New file.
44569         * lib/unictype/pr_grapheme_base.c: New file.
44570         * lib/unictype/pr_grapheme_extend.c: New file.
44571         * lib/unictype/pr_grapheme_link.c: New file.
44572         * lib/unictype/pr_hex_digit.c: New file.
44573         * lib/unictype/pr_hyphen.c: New file.
44574         * lib/unictype/pr_id_continue.c: New file.
44575         * lib/unictype/pr_id_start.c: New file.
44576         * lib/unictype/pr_ideographic.c: New file.
44577         * lib/unictype/pr_ids_binary_operator.c: New file.
44578         * lib/unictype/pr_ids_trinary_operator.c: New file.
44579         * lib/unictype/pr_ignorable_control.c: New file.
44580         * lib/unictype/pr_iso_control.c: New file.
44581         * lib/unictype/pr_join_control.c: New file.
44582         * lib/unictype/pr_left_of_pair.c: New file.
44583         * lib/unictype/pr_line_separator.c: New file.
44584         * lib/unictype/pr_logical_order_exception.c: New file.
44585         * lib/unictype/pr_lowercase.c: New file.
44586         * lib/unictype/pr_math.c: New file.
44587         * lib/unictype/pr_non_break.c: New file.
44588         * lib/unictype/pr_not_a_character.c: New file.
44589         * lib/unictype/pr_numeric.c: New file.
44590         * lib/unictype/pr_other_alphabetic.c: New file.
44591         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
44592         * lib/unictype/pr_other_grapheme_extend.c: New file.
44593         * lib/unictype/pr_other_id_continue.c: New file.
44594         * lib/unictype/pr_other_id_start.c: New file.
44595         * lib/unictype/pr_other_lowercase.c: New file.
44596         * lib/unictype/pr_other_math.c: New file.
44597         * lib/unictype/pr_other_uppercase.c: New file.
44598         * lib/unictype/pr_paired_punctuation.c: New file.
44599         * lib/unictype/pr_paragraph_separator.c: New file.
44600         * lib/unictype/pr_pattern_syntax.c: New file.
44601         * lib/unictype/pr_pattern_white_space.c: New file.
44602         * lib/unictype/pr_private_use.c: New file.
44603         * lib/unictype/pr_punctuation.c: New file.
44604         * lib/unictype/pr_quotation_mark.c: New file.
44605         * lib/unictype/pr_radical.c: New file.
44606         * lib/unictype/pr_sentence_terminal.c: New file.
44607         * lib/unictype/pr_soft_dotted.c: New file.
44608         * lib/unictype/pr_space.c: New file.
44609         * lib/unictype/pr_terminal_punctuation.c: New file.
44610         * lib/unictype/pr_test.c: New file.
44611         * lib/unictype/pr_titlecase.c: New file.
44612         * lib/unictype/pr_unassigned_code_value.c: New file.
44613         * lib/unictype/pr_unified_ideograph.c: New file.
44614         * lib/unictype/pr_uppercase.c: New file.
44615         * lib/unictype/pr_variation_selector.c: New file.
44616         * lib/unictype/pr_white_space.c: New file.
44617         * lib/unictype/pr_xid_continue.c: New file.
44618         * lib/unictype/pr_xid_start.c: New file.
44619         * lib/unictype/pr_zero_width.c: New file.
44620         * lib/unictype/scripts.c: New file.
44621         * lib/unictype/sy_c_ident.c: New file.
44622         * lib/unictype/sy_c_whitespace.c: New file.
44623         * lib/unictype/sy_java_ident.c: New file.
44624         * lib/unictype/sy_java_whitespace.c: New file.
44625
44626         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
44627         Unicode 5.0.0.
44628         * lib/unictype/blocks.h: Likewise.
44629         * lib/unictype/categ_C.h: Likewise.
44630         * lib/unictype/categ_Cc.h: Likewise.
44631         * lib/unictype/categ_Cf.h: Likewise.
44632         * lib/unictype/categ_Cn.h: Likewise.
44633         * lib/unictype/categ_Co.h: Likewise.
44634         * lib/unictype/categ_Cs.h: Likewise.
44635         * lib/unictype/categ_L.h: Likewise.
44636         * lib/unictype/categ_Ll.h: Likewise.
44637         * lib/unictype/categ_Lm.h: Likewise.
44638         * lib/unictype/categ_Lo.h: Likewise.
44639         * lib/unictype/categ_Lt.h: Likewise.
44640         * lib/unictype/categ_Lu.h: Likewise.
44641         * lib/unictype/categ_M.h: Likewise.
44642         * lib/unictype/categ_Mc.h: Likewise.
44643         * lib/unictype/categ_Me.h: Likewise.
44644         * lib/unictype/categ_Mn.h: Likewise.
44645         * lib/unictype/categ_N.h: Likewise.
44646         * lib/unictype/categ_Nd.h: Likewise.
44647         * lib/unictype/categ_Nl.h: Likewise.
44648         * lib/unictype/categ_No.h: Likewise.
44649         * lib/unictype/categ_P.h: Likewise.
44650         * lib/unictype/categ_Pc.h: Likewise.
44651         * lib/unictype/categ_Pd.h: Likewise.
44652         * lib/unictype/categ_Pe.h: Likewise.
44653         * lib/unictype/categ_Pf.h: Likewise.
44654         * lib/unictype/categ_Pi.h: Likewise.
44655         * lib/unictype/categ_Po.h: Likewise.
44656         * lib/unictype/categ_Ps.h: Likewise.
44657         * lib/unictype/categ_S.h: Likewise.
44658         * lib/unictype/categ_Sc.h: Likewise.
44659         * lib/unictype/categ_Sk.h: Likewise.
44660         * lib/unictype/categ_Sm.h: Likewise.
44661         * lib/unictype/categ_So.h: Likewise.
44662         * lib/unictype/categ_Z.h: Likewise.
44663         * lib/unictype/categ_Zl.h: Likewise.
44664         * lib/unictype/categ_Zp.h: Likewise.
44665         * lib/unictype/categ_Zs.h: Likewise.
44666         * lib/unictype/categ_of.h: Likewise.
44667         * lib/unictype/combining.h: Likewise.
44668         * lib/unictype/ctype_alnum.h: Likewise.
44669         * lib/unictype/ctype_alpha.h: Likewise.
44670         * lib/unictype/ctype_blank.h: Likewise.
44671         * lib/unictype/ctype_cntrl.h: Likewise.
44672         * lib/unictype/ctype_digit.h: Likewise.
44673         * lib/unictype/ctype_graph.h: Likewise.
44674         * lib/unictype/ctype_lower.h: Likewise.
44675         * lib/unictype/ctype_print.h: Likewise.
44676         * lib/unictype/ctype_punct.h: Likewise.
44677         * lib/unictype/ctype_space.h: Likewise.
44678         * lib/unictype/ctype_upper.h: Likewise.
44679         * lib/unictype/ctype_xdigit.h: Likewise.
44680         * lib/unictype/decdigit.h: Likewise.
44681         * lib/unictype/digit.h: Likewise.
44682         * lib/unictype/mirror.h: Likewise.
44683         * lib/unictype/numeric.h: Likewise.
44684         * lib/unictype/pr_alphabetic.h: Likewise.
44685         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
44686         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
44687         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
44688         * lib/unictype/pr_bidi_block_separator.h: Likewise.
44689         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
44690         * lib/unictype/pr_bidi_common_separator.h: Likewise.
44691         * lib/unictype/pr_bidi_control.h: Likewise.
44692         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
44693         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
44694         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
44695         * lib/unictype/pr_bidi_european_digit.h: Likewise.
44696         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
44697         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
44698         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
44699         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
44700         * lib/unictype/pr_bidi_pdf.h: Likewise.
44701         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
44702         * lib/unictype/pr_bidi_whitespace.h: Likewise.
44703         * lib/unictype/pr_combining.h: Likewise.
44704         * lib/unictype/pr_composite.h: Likewise.
44705         * lib/unictype/pr_currency_symbol.h: Likewise.
44706         * lib/unictype/pr_dash.h: Likewise.
44707         * lib/unictype/pr_decimal_digit.h: Likewise.
44708         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
44709         * lib/unictype/pr_deprecated.h: Likewise.
44710         * lib/unictype/pr_diacritic.h: Likewise.
44711         * lib/unictype/pr_extender.h: Likewise.
44712         * lib/unictype/pr_format_control.h: Likewise.
44713         * lib/unictype/pr_grapheme_base.h: Likewise.
44714         * lib/unictype/pr_grapheme_extend.h: Likewise.
44715         * lib/unictype/pr_grapheme_link.h: Likewise.
44716         * lib/unictype/pr_hex_digit.h: Likewise.
44717         * lib/unictype/pr_hyphen.h: Likewise.
44718         * lib/unictype/pr_id_continue.h: Likewise.
44719         * lib/unictype/pr_id_start.h: Likewise.
44720         * lib/unictype/pr_ideographic.h: Likewise.
44721         * lib/unictype/pr_ids_binary_operator.h: Likewise.
44722         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
44723         * lib/unictype/pr_ignorable_control.h: Likewise.
44724         * lib/unictype/pr_iso_control.h: Likewise.
44725         * lib/unictype/pr_join_control.h: Likewise.
44726         * lib/unictype/pr_left_of_pair.h: Likewise.
44727         * lib/unictype/pr_line_separator.h: Likewise.
44728         * lib/unictype/pr_logical_order_exception.h: Likewise.
44729         * lib/unictype/pr_lowercase.h: Likewise.
44730         * lib/unictype/pr_math.h: Likewise.
44731         * lib/unictype/pr_non_break.h: Likewise.
44732         * lib/unictype/pr_not_a_character.h: Likewise.
44733         * lib/unictype/pr_numeric.h: Likewise.
44734         * lib/unictype/pr_other_alphabetic.h: Likewise.
44735         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
44736         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
44737         * lib/unictype/pr_other_id_continue.h: Likewise.
44738         * lib/unictype/pr_other_id_start.h: Likewise.
44739         * lib/unictype/pr_other_lowercase.h: Likewise.
44740         * lib/unictype/pr_other_math.h: Likewise.
44741         * lib/unictype/pr_other_uppercase.h: Likewise.
44742         * lib/unictype/pr_paired_punctuation.h: Likewise.
44743         * lib/unictype/pr_paragraph_separator.h: Likewise.
44744         * lib/unictype/pr_pattern_syntax.h: Likewise.
44745         * lib/unictype/pr_pattern_white_space.h: Likewise.
44746         * lib/unictype/pr_private_use.h: Likewise.
44747         * lib/unictype/pr_punctuation.h: Likewise.
44748         * lib/unictype/pr_quotation_mark.h: Likewise.
44749         * lib/unictype/pr_radical.h: Likewise.
44750         * lib/unictype/pr_sentence_terminal.h: Likewise.
44751         * lib/unictype/pr_soft_dotted.h: Likewise.
44752         * lib/unictype/pr_space.h: Likewise.
44753         * lib/unictype/pr_terminal_punctuation.h: Likewise.
44754         * lib/unictype/pr_titlecase.h: Likewise.
44755         * lib/unictype/pr_unassigned_code_value.h: Likewise.
44756         * lib/unictype/pr_unified_ideograph.h: Likewise.
44757         * lib/unictype/pr_uppercase.h: Likewise.
44758         * lib/unictype/pr_variation_selector.h: Likewise.
44759         * lib/unictype/pr_white_space.h: Likewise.
44760         * lib/unictype/pr_xid_continue.h: Likewise.
44761         * lib/unictype/pr_xid_start.h: Likewise.
44762         * lib/unictype/pr_zero_width.h: Likewise.
44763         * lib/unictype/scripts.h: Likewise.
44764         * lib/unictype/scripts_byname.gperf: Likewise.
44765         * lib/unictype/sy_c_ident.h: Likewise.
44766         * lib/unictype/sy_c_whitespace.h: Likewise.
44767         * lib/unictype/sy_java_ident.h: Likewise.
44768         * lib/unictype/sy_java_whitespace.h: Likewise.
44769
44770         * lib/unictype/Makefile: New file.
44771         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
44772         glibc.
44773         * lib/unictype/3level.h: New file, copied from glibc.
44774         * lib/unictype/3levelbit.h: New file.
44775
44776 2007-11-11  Bruno Haible  <bruno@clisp.org>
44777
44778         * modules/gperf: New file.
44779         * modules/iconv_open (Depends-on): Add it.
44780         (Makefile.am): Remove the GPERF definition.
44781
44782 2007-11-11  Bruno Haible  <bruno@clisp.org>
44783
44784         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
44785         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
44786
44787 2007-11-11  Bruno Haible  <bruno@clisp.org>
44788
44789         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
44790         (usage): Remove function.
44791
44792 2007-11-11  Bruno Haible  <bruno@clisp.org>
44793
44794         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
44795         gl_FUNC_CEILF_LIBS.
44796         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
44797         gl_FUNC_CEIL_LIBS.
44798         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
44799         gl_FUNC_CEILL_LIBS.
44800         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
44801         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
44802         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
44803
44804 2007-11-11  Bruno Haible  <bruno@clisp.org>
44805
44806         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
44807         roundf were declared but do not exist on functions.
44808         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
44809         roundl were declared but do not exist on functions.
44810         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
44811         HAVE_FLOORL_AND_CEILL, respectively.
44812         Needed for Sun C on Solaris 10.
44813
44814 2007-11-11  Bruno Haible  <bruno@clisp.org>
44815
44816         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44817         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44818         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44819         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44820         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44821         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44822         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44823         HAVE_DECL_ROUNDF.
44824         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44825         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44827         of HAVE_DECL_ROUND*.
44828         * modules/math (Makefile.am): Update.
44829
44830 2007-11-10  Bruno Haible  <bruno@clisp.org>
44831
44832         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44833         ptrdiff_t as m4/intl.m4.
44834
44835 2007-11-10  Jim Meyering  <meyering@redhat.com>
44836
44837         Avoid link failure for the argmatch test.
44838         * tests/test-argmatch.c (usage): Define function to avoid a link
44839         failure: argmatch_die requires a usage function.
44840
44841 2007-11-09  Bruno Haible  <bruno@clisp.org>
44842
44843         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44844         * doc/functions/vsnprintf.texi: Likewise.
44845         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44846         with a size argument < 2.
44847
44848 2007-11-09  Bruno Haible  <bruno@clisp.org>
44849
44850         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44851         buffer. Fixes an inefficiency introduced on 2007-11-03.
44852
44853 2007-11-09  Bruno Haible  <bruno@clisp.org>
44854
44855         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44856         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44857
44858 2007-11-08  Jim Meyering  <meyering@redhat.com>
44859
44860         Change cache variable name prefix "jm_" to "gl_" everywhere.
44861         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44862         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44863         * m4/uptime.m4: s/gl_/jm_/
44864
44865 2007-11-07  Bruno Haible  <bruno@clisp.org>
44866
44867         Update to GNU gettext 0.17.
44868         * m4/intl.m4: Update to GNU gettext 0.17.
44869         * m4/po.m4: Likewise.
44870         * modules/gettext (Files): Remove m4/ulonglong.m4.
44871         (configure.ac): Require gettext infrastructure from version 0.17.
44872
44873 2007-11-06  Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44876         symbolic values are not defined in a public header.
44877         * lib/freadable.c (freadable) [QNX]: Likewise.
44878         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44879         * lib/freading.c (freading) [QNX]: Likewise.
44880         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44881         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44882         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44883         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44884         Reported by Alain Magloire.
44885
44886         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44887
44888 2007-11-05  Bruno Haible  <bruno@clisp.org>
44889
44890         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44891         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44892         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44893         Reported by Eric Blake.
44894
44895 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44896             Bruno Haible  <bruno@clisp.org>
44897
44898         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44899         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44900         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44901         (malloc): Undefine also before including <stdlib.h>.
44902         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44903         Needed on OSF/1 4.0.
44904
44905 2007-11-05  Jim Meyering  <meyering@redhat.com>
44906
44907         git-version-gen: sync from coreutils.
44908         * build-aux/git-version-gen: Add comments.
44909         Change the first '-' to '.' in the snapshot version string,
44910         e.g., 6.9-377-08144 -> 6.9.377-08144
44911         Remove first parameter.
44912         Don't declare a version "-dirty" merely because a time
44913         stamp has changed.
44914
44915 2007-11-04  Bruno Haible  <bruno@clisp.org>
44916
44917         * lib/lock.h: Protect all macro definitions containing an 'if'
44918         statement through a "do { ... } while (0)".
44919         * lib/tls.h: Likewise.
44920
44921 2007-11-04  Bruno Haible  <bruno@clisp.org>
44922
44923         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44924
44925 2007-11-04  Bruno Haible  <bruno@clisp.org>
44926
44927         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44928         * modules/fprintf-posix (Depends-on): Add nocrash.
44929         * modules/snprintf-posix (Depends-on): Likewise.
44930         * modules/sprintf-posix (Depends-on): Likewise.
44931         * modules/vasnprintf-posix (Depends-on): Likewise.
44932         * modules/vasprintf-posix (Depends-on): Likewise.
44933         * modules/vfprintf-posix (Depends-on): Likewise.
44934         * modules/vsnprintf-posix (Depends-on): Likewise.
44935         * modules/vsprintf-posix (Depends-on): Likewise.
44936         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44937         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44938         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44939         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44940         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44941         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44942         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44943
44944 2007-11-04  Bruno Haible  <bruno@clisp.org>
44945
44946         * modules/nocrash: New file.
44947         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44948         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44949
44950 2007-11-04  Bruno Haible  <bruno@clisp.org>
44951
44952         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44953         precision handling.
44954         * tests/test-vasprintf-posix.c (test_function): Likewise.
44955         * tests/test-snprintf-posix.h (test_function): Likewise.
44956         * tests/test-sprintf-posix.h (test_function): Likewise.
44957
44958         Fix *printf behaviour for large precisions on mingw and BeOS.
44959         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44960         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44962         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44963         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44964         gl_PRINTF_PRECISION and test its result. Invoke
44965         gl_PREREQ_VASNPRINTF_PRECISION.
44966         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44967         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44968         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44969         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44970         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44972         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44973         * doc/functions/fprintf.texi: Update.
44974         * doc/functions/printf.texi: Update.
44975         * doc/functions/snprintf.texi: Update.
44976         * doc/functions/sprintf.texi: Update.
44977         * doc/functions/vfprintf.texi: Update.
44978         * doc/functions/vprintf.texi: Update.
44979         * doc/functions/vsnprintf.texi: Update.
44980         * doc/functions/vsprintf.texi: Update.
44981
44982 2007-11-04  Bruno Haible  <bruno@clisp.org>
44983
44984         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44985
44986 2007-11-04  Bruno Haible  <bruno@clisp.org>
44987
44988         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44989         Reported by Sylvain Beucler <beuc@gnu.org>.
44990
44991 2007-11-03  Bruno Haible  <bruno@clisp.org>
44992
44993         * tests/test-fprintf-posix2.sh: New file.
44994         * tests/test-fprintf-posix2.c: New file.
44995         * modules/fprintf-posix-tests (Files): Add them.
44996         (TESTS): Add test-fprintf-posix2.sh.
44997         (configure.ac): Check for getrlimit and setrlimit.
44998         (check_PROGRAMS): Add test-fprintf-posix2.
44999
45000         * tests/test-printf-posix2.sh: New file.
45001         * tests/test-printf-posix2.c: New file.
45002         * modules/printf-posix-tests (Files): Add them.
45003         (TESTS): Add test-printf-posix2.sh.
45004         (configure.ac): Check for getrlimit and setrlimit.
45005         (check_PROGRAMS): Add test-printf-posix2.
45006
45007         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45008         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45009         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45010         (decode_double): New function, copied from decode_long_double.
45011         (scale10_round_decimal_decoded): New function, extracted from
45012         scale10_round_decimal_long_double.
45013         (scale10_round_decimal_long_double): Use it.
45014         (scale10_round_decimal_double): New function.
45015         (floorlog10): New function.
45016         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45018         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45020         gl_PRINTF_ENOMEM and test its result. Invoke
45021         gl_PREREQ_VASNPRINTF_ENOMEM.
45022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45023         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45024         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45025         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45029         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45030         * modules/snprintf-posix (Depends-on): Likewise.
45031         * modules/sprintf-posix (Depends-on): Likewise.
45032         * modules/vasnprintf-posix (Depends-on): Likewise.
45033         * modules/vasprintf-posix (Depends-on): Likewise.
45034         * modules/vfprintf-posix (Depends-on): Likewise.
45035         * modules/vsnprintf-posix (Depends-on): Likewise.
45036         * modules/vsprintf-posix (Depends-on): Likewise.
45037         * doc/functions/fprintf.texi: Update.
45038         * doc/functions/printf.texi: Update.
45039         * doc/functions/snprintf.texi: Update.
45040         * doc/functions/sprintf.texi: Update.
45041         * doc/functions/vfprintf.texi: Update.
45042         * doc/functions/vprintf.texi: Update.
45043         * doc/functions/vsnprintf.texi: Update.
45044         * doc/functions/vsprintf.texi: Update.
45045
45046 2007-11-03  Bruno Haible  <bruno@clisp.org>
45047
45048         * modules/frexp-nolibm-tests: New file.
45049
45050         * modules/frexp-nolibm: New file.
45051         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45052
45053 2007-11-03  Bruno Haible  <bruno@clisp.org>
45054
45055         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45056         value is C99 compliant.
45057         Needed for OSF/1 5.1.
45058
45059 2007-11-03  Bruno Haible  <bruno@clisp.org>
45060
45061         Fix out-of-memory handling of vasnprintf.
45062         * lib/printf-parse.c: Include <errno.h>.
45063         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45064         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45065         is already set.
45066
45067 2007-11-02  Eric Blake  <ebb9@byu.net>
45068
45069         Fix tests on cygwin.
45070         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45071
45072 2007-11-01  Bruno Haible  <bruno@clisp.org>
45073
45074         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45075         warning.
45076         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45077         needed for POSIX compatibility.
45078
45079 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45080
45081         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45082         for compatibility with GNU.
45083
45084 2007-11-01  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45087         (putenv): Renamed from rpl_putenv. Change argument type from
45088         'const char *' to 'char *'.
45089         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45090         of defining putenv in config.h, just set REPLACE_PUTENV.
45091         * modules/putenv (Depends-on): Add stdlib.
45092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45093         (Include): Use <stdlib.h>.
45094         * lib/stdlib.in.h (putenv): New declaration.
45095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45096         REPLACE_PUTENV.
45097         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45098         REPLACE_PUTENV.
45099         Needed for MacOS X 10.5.0.
45100         Reported by Peter O'Gorman <peter@pogma.com>.
45101
45102 2007-11-01  Jim Meyering  <meyering@redhat.com>
45103
45104         Treat an empty date string exactly like "0".
45105         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45106         if the remaining date string (to be parsed) is empty, use "0".
45107         Reported by Mischa Molhoek and discussed in this thread:
45108         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45109
45110 2007-10-31  Bruno Haible  <bruno@clisp.org>
45111
45112         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45113         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45114         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45115         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45116         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45117         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45118
45119 2007-10-31  Bruno Haible  <bruno@clisp.org>
45120
45121         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45122         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45123         (AC_TYPE_LONG_LONG_INT): Use it.
45124         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45125         it as well.
45126         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45127         to m4/longlong.m4.
45128         * modules/stdint (Files): Remove m4/ulonglong.m4.
45129         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45130         m4/ulonglong.m4.
45131         * modules/strtoumax (Files): Likewise.
45132
45133 2007-10-30  Bruno Haible  <bruno@clisp.org>
45134
45135         * modules/xvasprintf-posix: New file.
45136         Suggested by Eric Blake.
45137
45138 2007-10-30  Bruno Haible  <bruno@clisp.org>
45139
45140         * modules/xprintf-posix-tests: New file.
45141         * tests/test-xprintf-posix.sh: New file.
45142         * tests/test-xprintf-posix.c: New file.
45143         * tests/test-xfprintf-posix.c: New file.
45144
45145         * modules/xprintf-posix: New file.
45146
45147 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45148
45149         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45150         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45151         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45152
45153 2007-10-29  Bruno Haible  <bruno@clisp.org>
45154
45155         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45156         contain the special marker '_cv_'.
45157         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45158         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45159         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45160         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45161         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45162         Reported by Ralf Wildenhues.
45163
45164 2007-10-29  Bruno Haible  <bruno@clisp.org>
45165
45166         * gnulib-tool (func_import): When --lgpl is not specified, set
45167         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45168         GPLv3.
45169         Reported by Simon Josefsson.
45170
45171 2007-10-28  Bruno Haible  <bruno@clisp.org>
45172
45173         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45174         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45175         HAVE_DECL_ISFINITE.
45176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45177         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45178         HAVE_DECL_ISFINITE.
45179
45180 2007-10-28  Bruno Haible  <bruno@clisp.org>
45181
45182         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45183         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45184
45185 2007-10-28  Bruno Haible  <bruno@clisp.org>
45186
45187         Fix link errors with Sun C 5.0 on Solaris 10.
45188         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45189         function is declared but not present in the compiler's libm.
45190         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45191         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45192         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45193         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45194         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45195         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45196         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45197         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45198         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45199         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45200         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45201         HAVE_DECL_FLOORL.
45202
45203 2007-10-28  Bruno Haible  <bruno@clisp.org>
45204
45205         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45206         gl_FUNC_FLOORL. Cache the result.
45207         (gl_FUNC_FLOORL): Use it.
45208         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45209         gl_FUNC_CEILL. Cache the result.
45210         (gl_FUNC_CEILL): Use it.
45211
45212         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45213         gl_FUNC_FLOOR. Cache the result.
45214         (gl_FUNC_FLOOR): Use it.
45215         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45216         gl_FUNC_CEIL. Cache the result.
45217         (gl_FUNC_CEIL): Use it.
45218
45219         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45220         gl_FUNC_FLOORF. Cache the result.
45221         (gl_FUNC_FLOORF): Use it.
45222         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45223         gl_FUNC_CEILF. Cache the result.
45224         (gl_FUNC_CEILF): Use it.
45225
45226 2007-10-28  Bruno Haible  <bruno@clisp.org>
45227
45228         * gnulib-tool: Allow specifying the LGPL version number through
45229         --lgpl=2 or --lgpl=3.
45230         (func_usage): Document --lgpl with argument.
45231         Handle --lgpl=... arguments.
45232         (func_import): Recognize also gl_LGPL calls with an argument. When
45233         --lgpl=2 is used and the module's license is just LGPL, report an
45234         error. Set sed_transform_lib_file according to the lgpl variable. In
45235         the generated files, use --lgpl or gl_LGPL invocations with argument,
45236         if necessary.
45237         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45238         an LGPv2+ license.
45239         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45240         gl_LGPL macro.
45241
45242 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45243             Bruno Haible  <bruno@clisp.org>
45244
45245         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45246         (u16_uctomb_aux): Likewise.
45247         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45248         !HAVE_INLINE.
45249         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45250
45251 2007-10-28  Bruno Haible  <bruno@clisp.org>
45252
45253         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45254         Invoke AM_GETTEXT_OPTION if it exists.
45255         * modules/vasprintf: Likewise.
45256         * modules/verror: Likewise.
45257         * modules/xprintf: Likewise.
45258         * modules/xvasprintf: Likewise.
45259
45260 2007-10-27  Ben Pfaff  <blp@gnu.org>
45261
45262         * lib/math.in.h: Define isfinite macro and prototypes for
45263         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45264         implementations.
45265         * m4/math_h.m4: New substitutions for isfinite module.
45266         * lib/isfinite.c: New file.
45267         * m4/isfinite.m4: New file.
45268         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45269         * modules/isfinite: New file.
45270         * modules/isfinite-tests: New file.
45271         * tests/tests-isfinite.c: New file.
45272         * doc/functions/isfinite.texi: Mention isfinite module.
45273         * MODULES.html.sh: Mention new module.
45274
45275 2007-10-27  Ben Pfaff  <blp@gnu.org>
45276
45277         Ralf Wildenhues reported that Tru64 4.0D declares the round
45278         functions but does not have definitions.
45279         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45280         cannot be found in any library, set the output variable to
45281         "missing" instead of "".
45282         * m4/round.m4: Also use our substitute if we cannot find round in
45283         any library, even if it is declared.
45284         * m4/roundf.m4: Likewise for roundf.
45285         * m4/roundl.m4: Likewise for roundl.
45286         * lib/math.in.h: Undefine roundf, round, roundl before defining
45287         their replacements, to allow for hypothetical systems where these
45288         may be defined as macros but not available in libraries.
45289
45290 2007-10-27  Bruno Haible  <bruno@clisp.org>
45291
45292         * doc/gnulib.texi: Invoke @firstparagraphindent.
45293         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45294         changes in gnulib.
45295         (Source changes): New section.
45296
45297 2007-10-26  Bruno Haible  <bruno@clisp.org>
45298
45299         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45300         borrowed from autoconf.
45301
45302 2007-10-26  Bruno Haible  <bruno@clisp.org>
45303
45304         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45305         strerror returned the empty string. Needed on HP-UX 11.00.
45306
45307 2007-10-24  Micah Cowan  <micah@cowan.name>
45308
45309         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45310         * build-aux/bootstrap: Remove support for now-unnecessary option,
45311         --cvs-user, and envvars CVS_USER, CVS_RSH.
45312
45313 2007-10-24  Jim Meyering  <meyering@redhat.com>
45314
45315         Avoid diagnostics from sha1sum when there is no cached checksum.
45316         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45317         if the po.s1 file hasn't been created yet.
45318
45319         * build-aux/bootstrap: Sync from coreutils:
45320         2007-10-24  Jim Meyering  <meyering@redhat.com>
45321         Get gnulib from the git repository, not from an obsolete cvs one.
45322         * build-aux/bootstrap: Suggestion from Micah Cowan.
45323         2007-10-04  Jim Meyering  <jim@meyering.net>
45324         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45325         (update_po_files): Work also when there are no .po files in po/.
45326
45327 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45328
45329         * README: Append ".git" to git and cg examples.
45330         Problem reported by Benoit Sigoure.
45331
45332 2007-10-23  Micah Cowan  <micah@cowan.name>
45333
45334         * users.txt: Add wget.
45335
45336 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45337
45338         Fix linking of some unistdio tests on FreeBSD.
45339         * modules/unistdio/u16-vsnprintf-tests
45340         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45341         * modules/unistdio/u16-vsprintf-tests
45342         (test_u16_vsnprintf1_LDADD): Likewise.
45343         * modules/unistdio/u32-vsnprintf-tests
45344         (test_u32_vsnprintf1_LDADD): Likewise.
45345         * modules/unistdio/u32-vsprintf-tests
45346         (test_u32_vsprintf1_LDADD): Likewise.
45347         * modules/unistdio/u8-vsnprintf-tests
45348         (test_u8_vsnprintf1_LDADD): Likewise.
45349         * modules/unistdio/u8-vsprintf-tests
45350         (test_u8_vsprintf1_LDADD): Likewise.
45351         * modules/unistdio/ulc-vsnprintf-tests
45352         (test_ulc_vsnprintf1_LDADD): Likewise.
45353         * modules/unistdio/ulc-vsprintf-tests
45354         (test_ulc_vsprintf1_LDADD): Likewise.
45355
45356         Fix linking of some uniconv tests on FreeBSD.
45357         * modules/uniconv/u16-conv-from-enc-tests
45358         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45359         * modules/uniconv/u16-conv-to-enc-tests
45360         (test_u16_conv_to_enc_LDADD): Likewise.
45361         * modules/uniconv/u16-strconv-from-enc-tests
45362         (test_u16_strconv_from_enc_LDADD): Likewise.
45363         * modules/uniconv/u16-strconv-to-enc-tests
45364         (test_u16_strconv_to_enc_LDADD): Likewise.
45365         * modules/uniconv/u32-conv-from-enc-tests
45366         (test_u32_conv_from_enc_LDADD): Likewise.
45367         * modules/uniconv/u32-conv-to-enc-tests
45368         (test_u32_conv_to_enc_LDADD): Likewise.
45369         * modules/uniconv/u32-strconv-from-enc-tests
45370         (test_u32_strconv_from_enc_LDADD): Likewise.
45371         * modules/uniconv/u32-strconv-to-enc-tests
45372         (test_u32_strconv_to_enc_LDADD): Likewise.
45373         * modules/uniconv/u8-conv-from-enc-tests
45374         (test_u8_conv_from_enc_LDADD): Likewise.
45375         * modules/uniconv/u8-conv-to-enc-tests
45376         (test_u8_conv_to_enc_LDADD): Likewise.
45377         * modules/uniconv/u8-strconv-from-enc-tests
45378         (test_u8_strconv_from_enc_LDADD): Likewise.
45379         * modules/uniconv/u8-strconv-to-enc-tests
45380         (test_u8_strconv_to_enc_LDADD): Likewise.
45381
45382 2007-10-22  Bruno Haible  <bruno@clisp.org>
45383
45384         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45385         size.
45386
45387 2007-10-22  Eric Blake  <ebb9@byu.net>
45388
45389         Tweak x*printf documentation.
45390         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45391         variable name and comments.
45392         Suggested by Bruno Haible.
45393
45394 2007-10-22  Bruno Haible  <bruno@clisp.org>
45395
45396         * lib/acl.c (copy_acl): Fix file name in comment.
45397
45398 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45399
45400         Fix Tru64 problem with stdbool.h.
45401         * lib/stdbool.in.h (false, true):
45402         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45403         Don't declare as an enum in this situation; it runs afoul of Tru64.
45404         Problem reported by Steven M. Schweda in
45405         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45406
45407 2007-10-22  Eric Blake  <ebb9@byu.net>
45408
45409         Also wrap vf?printf.
45410         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45411         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45412         (xvprintf, xvfprintf): New functions.
45413
45414 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45415
45416         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45417         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45418
45419         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45420         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45421
45422 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45423
45424         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45425         by Bruno Haible.
45426
45427 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45428
45429         * lib/getloadavg.c
45430         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45431         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45432
45433         * tests/test-i-ring.c: Work for C89.
45434
45435 2007-10-22  Bruno Haible  <bruno@clisp.org>
45436
45437         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45438         -1u, in preprocessor expression, so that we don't test for the bug
45439         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45440         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45441
45442 2007-10-22  Eric Blake  <ebb9@byu.net>
45443
45444         * tests/test-yesno.sh: Silence stderr during test.
45445
45446 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45447
45448         * modules/crypto/gc-camellia: New file.
45449
45450         * m4/gc-camellia.m4: New file.
45451
45452         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45453
45454         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45455
45456 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45457
45458         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45459         --help to stdout.  Reported by sms@antinode.org (Steven
45460         M. Schweda).
45461
45462 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45463
45464         * users.txt: Fix link to libksba.
45465
45466 2007-10-21  Ben Pfaff  <blp@gnu.org>
45467
45468         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45469         round.c roundf implementation that depends on floorf and ceilf to
45470         be tested unconditionally.
45471
45472 2007-10-21  Ben Pfaff  <blp@gnu.org>
45473
45474         * m4/check-libm-func.m4: Removed.
45475         * m4/check-math-lib.m4: New file.
45476         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45477         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45478         definition and lack of AC_LIBOBJ([roundf]).
45479         * m4/roundl.m4: Ditto, and similarly for roundl.
45480         * modules/round: Reference new m4 file.
45481         * modules/roundf: Ditto.
45482         * modules/roundl: Ditto.
45483         * tests/test-round2.c (main): Use ROUND instead of round.
45484         Bug report from Bruno Haible.
45485
45486 2007-10-21  Bruno Haible  <bruno@clisp.org>
45487
45488         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45489         context.
45490
45491 2007-10-21  Bruno Haible  <bruno@clisp.org>
45492
45493         * tests/test-wcwidth.c (main): Allow negative result for some control
45494         characters.
45495
45496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45497         Needed on OSF/1 5.1.
45498
45499 2007-10-21  Bruno Haible  <bruno@clisp.org>
45500
45501         * tests/test-floorf1.c: Include isnanf.h.
45502         (main): Use isnanf() instead of isnan().
45503         * tests/test-ceilf1.c: Include isnanf.h.
45504         (main): Use isnanf() instead of isnan().
45505         * tests/test-truncf1.c: Include isnanf.h.
45506         (main): Use isnanf() instead of isnan().
45507         * tests/test-roundf1.c: Include isnanf.h.
45508         (main): Use isnanf() instead of isnan().
45509
45510 2007-10-21  Eric Blake  <ebb9@byu.net>
45511
45512         * users.txt: Update URL for m4.
45513
45514 2007-10-21  Bruno Haible  <bruno@clisp.org>
45515
45516         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45517
45518 2007-10-21  Bruno Haible  <bruno@clisp.org>
45519
45520         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45521         Git's management files if the CVS files are not present.
45522
45523 2007-10-20  Bruno Haible  <bruno@clisp.org>
45524
45525         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45526         gcc-3.4.x.
45527
45528 2007-10-20  Ben Pfaff  <blp@gnu.org>
45529
45530         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45531         implementations.
45532         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45533         * lib/round.c: New file.
45534         * lib/roundf.c: New file.
45535         * lib/roundl.c: New file.
45536         * m4/round.m4: New file.
45537         * m4/roundf.m4: New file.
45538         * m4/roundl.m4: New file.
45539         * m4/check-libm-func-m4: New file.
45540         * modules/math: Replace round, roundf, roundl related @VARS@ in
45541         math.in.h.
45542         * modules/round: New file.
45543         * modules/round-tests: New file.
45544         * modules/roundf: New file.
45545         * modules/roundf-tests: New file.
45546         * modules/roundl: New file.
45547         * modules/roundl-tests: New file.
45548         * tests/test-round1.c: New file.
45549         * tests/test-round2.c: New file.
45550         * tests/test-roundf1.c: New file.
45551         * tests/test-roundf2.c: New file.
45552         * tests/test-roundl.c: New file.
45553         * doc/functions/round.texi: Mention round module.
45554         * doc/functions/roundf.texi: Mention roundf module.
45555         * doc/functions/roundl.texi: Mention roundl module.
45556         * MODULES.html.sh: Mention new modules.
45557         Thanks to Bruno Haible for suggestions.
45558
45559 2007-10-20  Jim Meyering  <meyering@redhat.com>
45560
45561         * lib/xprintf.c: Include <config.h> unconditionally.
45562
45563         Change xprintf's license to GPL.
45564         * modules/xprintf (License): s/LGPL/GPL/, since this module
45565         depends on modules (exit and exitfail) which are GPL.
45566         Suggestion from Bruno Haible.
45567
45568         xprintf fixes.
45569         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
45570         Use a clearer diagnostic.
45571         Patch from Bruno Haible.
45572
45573 2007-10-20  Bruno Haible  <bruno@clisp.org>
45574
45575         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
45576         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
45577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45578
45579 2007-10-20  Bruno Haible  <bruno@clisp.org>
45580
45581         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
45582         precision in the comparison result > x - 1 or similar.
45583         * tests/test-ceilf2.c (correct_result_p): Likewise.
45584         * tests/test-truncf2.c (correct_result_p): Likewise.
45585         * tests/test-trunc2.c (correct_result_p): Likewise.
45586         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45587
45588 2007-10-20  Bruno Haible  <bruno@clisp.org>
45589
45590         * modules/ceil: New file.
45591         * m4/ceil.m4: New file.
45592         * doc/functions/ceil.texi: Mention the 'ceil' module.
45593
45594 2007-10-20  Bruno Haible  <bruno@clisp.org>
45595
45596         * modules/floor: New file.
45597         * m4/floor.m4: New file.
45598         * doc/functions/floor.texi: Mention the 'floor' module.
45599
45600 2007-10-20  Bruno Haible  <bruno@clisp.org>
45601
45602         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
45603         of %a.
45604         * modules/floorf-tests (Depends-on): Likewise.
45605         * modules/truncf-tests (Depends-on): Likewise.
45606         * modules/trunc-tests (Depends-on): Likewise.
45607         Reported by Ben Pfaff.
45608
45609 2007-10-19  Jim Meyering  <meyering@redhat.com>
45610
45611         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
45612         Don't bother testing specific errno values.  Just test ferror.
45613
45614         New module: xprintf
45615         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
45616
45617 2007-10-19  Bruno Haible  <bruno@clisp.org>
45618
45619         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
45620         syntax.
45621         * modules/javaexec (Makefile.am): Likewise.
45622         * modules/relocatable-prog (Makefile.am): Likewise.
45623         Suggested by Jim Meyering.
45624
45625 2007-10-18  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
45628         Reported by Jim Meyering.
45629
45630 2007-10-18  Eric Blake  <ebb9@byu.net>
45631
45632         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
45633
45634 2007-10-18  Bruno Haible  <bruno@clisp.org>
45635
45636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
45637         the format string into writable memory. Needed in Fortify conditions.
45638
45639 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
45640             Bruno Haible  <bruno@clisp.org>
45641
45642         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
45643         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
45644         * modules/trim (Depends-on): Add mbchar.
45645         (configure.ac): Add gl_FUNC_MBRTOWC.
45646         (Makefile.am): Augment lib_SOURCES.
45647
45648 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45649
45650         Modify glob.c to use fstatat and dirfd, to simplify it.
45651         Suggested by Eric Blake.
45652         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
45653         Don't include <stdbool.h>; not used.
45654         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
45655         (link_exists_p): Simplify implementation, since we can now assume
45656         dirfd and fstatat.
45657         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
45658
45659 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45660
45661         * gnulib-tool (func_get_dependencies): Fix sed script to
45662         match only tests.
45663
45664 2007-10-17  Bruno Haible  <bruno@clisp.org>
45665
45666         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
45667         allow locale names without encoding suffix.
45668         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
45669         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45670
45671 2007-10-16  Bruno Haible  <bruno@clisp.org>
45672
45673         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
45674         * lib/getgroups.c (getgroups): Likewise.
45675         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
45676
45677 2007-10-16  Bruno Haible  <bruno@clisp.org>
45678
45679         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
45680         * modules/malloc-posix (License): Likewise.
45681         * modules/realloc-posix (License): Likewise.
45682         * modules/calloc-posix (License): Likewise.
45683         * modules/intprops (License): Change from GPL to LGPL, with
45684         Paul Eggert's approval.
45685
45686 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45687
45688         Merge glibc changes into lib/glob.c.
45689
45690         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
45691         2007-10-15 04:59:03 UTC.  Here are the changes:
45692
45693         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
45694
45695         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
45696
45697         * lib/glob.c: Add some branch prediction throughout.
45698
45699         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
45700
45701         [BZ #5103]
45702         * lib/glob.c (glob): Recognize patterns starting \/.
45703
45704         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
45705
45706         [BZ #3996]
45707         * lib/glob.c (attribute_hidden): Define if not defined.
45708         (glob): Unescape dirname, filename or username when needed and not
45709         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
45710         is NULL.  Handle unescaped [ in pattern without closing ].
45711         Don't pass GLOB_CHECK down to recursive glob for directories.
45712         (__glob_pattern_type): New function.
45713         (__glob_pattern_p): Implement using __glob_pattern_type.
45714         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
45715         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
45716         Remove unreachable code.
45717
45718         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
45719
45720         * lib/glob.c (glob_in_dir): Add some comments and asserts to
45721         explain why there are no leaks.
45722
45723         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
45724
45725         [BZ #3253]
45726         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
45727         time, rather allocate increasingly bigger arrays of pointers, if
45728         possible with alloca, if too large with malloc.
45729
45730 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45731
45732         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
45733         Problem reported by H.Merijn Brand in
45734         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
45735         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
45736         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
45737
45738 2007-10-15  Bruno Haible  <bruno@clisp.org>
45739
45740         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
45741         with explicit rpl_ prefix.
45742         * lib/fopen.c (fopen): Likewise.
45743         * lib/freopen.c (freopen): Likewise.
45744         * lib/iconv.c (iconv): Likewise.
45745         * lib/iconv_close.c (iconv_close): Likewise.
45746
45747 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45748
45749         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
45750
45751 2007-10-15  Bruno Haible  <bruno@clisp.org>
45752
45753         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
45754         <stddef.h> instead of <stdlib.h> since we only need NULL.
45755         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45756
45757 2007-10-15  Bruno Haible  <bruno@clisp.org>
45758
45759         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
45760         Replace paragraph talking about LIBOBJS.
45761         Reported by Colin Watson <cjwatson@debian.org>.
45762
45763 2007-10-15  Bruno Haible  <bruno@clisp.org>
45764
45765         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
45766         <stdlib.h> before using NULL.
45767
45768 2007-10-15  Simon Josefsson  <simon@josefsson.org>
45769
45770         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
45771         Reported by Albert Chin <china@thewrittenword.com>.
45772
45773 2007-10-14  Bruno Haible  <bruno@clisp.org>
45774
45775         * modules/iconv_open-utf-tests: New file.
45776         * tests/test-iconv-utf.c: New file.
45777
45778         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
45779         * modules/iconv_open-utf: New file.
45780         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
45781         (iconv, iconv_close): New declarations.
45782         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
45783         be defined.
45784         (iconv_open): Add special handling of conversion between UTF-8 and
45785         UTF-{16,32}{BE,LE}.
45786         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
45787         * lib/iconv_close.c: New file.
45788         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
45789         gl_FUNC_ICONV_OPEN.
45790         (gl_FUNC_ICONV_OPEN): Use it.
45791         (gl_FUNC_ICONV_OPEN_UTF): New macro.
45792         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
45793         and REPLACE_ICONV_UTF.
45794         * modules/iconv_open (Depends-on): Add c-strcase.
45795         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
45796         ICONV_CONST.
45797         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
45798
45799 2007-10-13  Albert Chin  <china@thewrittenword.com>
45800             Bruno Haible  <bruno@clisp.org>
45801
45802         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
45803         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
45804
45805 2007-10-13  Bruno Haible  <bruno@clisp.org>
45806
45807         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
45808         defined, use the ISO C99 inline semantics.
45809         * lib/argp.h (ARGP_EI): Likewise.
45810
45811 2007-10-13  Bruno Haible  <bruno@clisp.org>
45812
45813         Handle 'inline' change in gcc 4.3.0.
45814         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45815         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45816         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45817         argp_fmtstream_point): Disable 'extern' declaration if the function
45818         definition is going to be provided inline.
45819         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45820         semantics, not the ISO C99 inline semantics.
45821         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45822         'extern' declaration if the function definition is going to be provided
45823         inline.
45824         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45825         the GNU C inline semantics, not the ISO C99 inline semantics. With
45826         GCC 4.2, avoid a warning.
45827
45828 2007-10-13  Bruno Haible  <bruno@clisp.org>
45829
45830         * lib/freading.h (freading): Enable the use of __freading for
45831         glibc >= 2.7.
45832         * lib/freading.c (freading): Likewise.
45833
45834 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45835
45836         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45837         "warning: C99 inline functions are not supported; using GNU89".
45838
45839 2007-10-12  Bruno Haible  <bruno@clisp.org>
45840
45841         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45842         of 2.
45843         * tests/test-ceilf2.c: New file.
45844         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45845
45846         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45847         * modules/ceilf-tests: Update.
45848
45849 2007-10-12  Bruno Haible  <bruno@clisp.org>
45850
45851         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45852         of 2.
45853         * tests/test-floorf2.c: New file.
45854         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45855
45856         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45857         * modules/floorf-tests: Update.
45858
45859 2007-10-12  Bruno Haible  <bruno@clisp.org>
45860
45861         * tests/test-trunc2.c: New file.
45862         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45863
45864         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45865         * modules/trunc-tests: Update.
45866
45867 2007-10-12  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45870         of 2.
45871         * tests/test-truncf2.c: New file.
45872         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45873
45874         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45875         * modules/truncf-tests: Update.
45876
45877 2007-10-11  Eric Blake  <ebb9@byu.net>
45878
45879         Don't claim strerror is broken on Interix.
45880         * doc/functions/strerror.texi (strerror): Known broken systems are
45881         now Solaris 8, and not Interix.
45882         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45883         Interix on cross-compile.
45884         Reported by Martin Koeppe in
45885         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45886
45887 2007-10-11  Bruno Haible  <bruno@clisp.org>
45888
45889         * modules/i-ring-tests: New file.
45890         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45891         instead of assert.
45892
45893 2007-10-11  Bruno Haible  <bruno@clisp.org>
45894
45895         * modules/filenamecat-tests: New file.
45896         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45897         * lib/filenamecat.c: Remove test code.
45898
45899 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45900
45901         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45902
45903         * lib/strerror.c: Include <string.h> always, to test interface,
45904         and to remove the need for the dummy.
45905         Include intprops.h to compute width instead of doing it ourselves
45906         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45907         (strerror): Define it to return NULL if there's no system strerror.
45908         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45909         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45910         ancient pre-strerror Unix systems well any more.  Saying "unknown
45911         system error" is enough.
45912         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45913         simpler strerror.c implementation.
45914         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45915         Simplify the tests to reflect the simpler strerror implementation.
45916         * modules/strerror (Depends-on): Add intprops.
45917
45918 2007-10-09  Eric Blake  <ebb9@byu.net>
45919
45920         Silence test-fpending.
45921         * modules/fpending-tests (Files): Add wrapper script.
45922         * tests/test-fpending.sh: New file.
45923
45924 2007-10-09  Bruno Haible  <bruno@clisp.org>
45925
45926         * MODULES.html.sh (func_module): Don't create a hyperlink for
45927         function names like 'printf_frexp'.
45928         (Misc): Add crc, memxor.
45929         (Characteristics of floating types): New section.
45930         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45931         isnanf-nolibm, signbit, trunc, truncf, truncl.
45932         (Enhancements for ISO C 99 functions): New subsection Input/output.
45933         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45934         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45935         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45936         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45937         (Enhancements for POSIX:2001 functions): Add chdir-long.
45938         (File system functions): Add areadlink, chdir-safer, read-file.
45939         Remove cycle-check.
45940         (File system as inode set): New section.
45941         (Date and time): Add gethrxtime.
45942         (Multithreading): Add openmp.
45943         (Internationalization functions): Add localename.
45944         (Unicode string functions): Add unistr/u*-mbsnlen.
45945         (Support for maintaining and releasing projects): Add git-version-gen.
45946         (Lone files): Remove directories.
45947
45948 2007-10-08  Ben Pfaff  <blp@gnu.org>
45949
45950         * lib/xmalloca.h: Fix typo in comment.
45951
45952 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45953
45954         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45955         when avoiding problems with integer overflow.  Use a portable test
45956         instead.
45957
45958 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45959
45960         * modules/dummy (License): Change to LGPLv2+.
45961         * modules/float (License): Likewise
45962         * modules/realloc (License): Likewise
45963         * modules/stdlib (License): Likewise
45964
45965 2007-10-07  Bruno Haible  <bruno@clisp.org>
45966
45967         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45968         * floor.c (TWO_MANT_DIG): Likewise.
45969         * ceil.c (TWO_MANT_DIG): Likewise.
45970         Reported by Ben Pfaff.
45971
45972 2007-10-07  Bruno Haible  <bruno@clisp.org>
45973
45974         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45975         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45976         * lib/frexp.c (FUNC): Likewise.
45977         * lib/printf-frexp.h (printf_frexp): Likewise.
45978         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45979         * lib/printf-frexp.c (FUNC): Likewise.
45980         Suggested by Jim Meyering.
45981
45982 2007-10-07  Jim Meyering  <meyering@redhat.com>
45983
45984         Make xnanosleep's integer overflow test more robust.
45985         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45986         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45987
45988 2007-10-07  Bruno Haible  <bruno@clisp.org>
45989
45990         * NEWS: Mention the license change.
45991
45992         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45993         abbreviations in the modules files.
45994
45995         Change copyright notice from GPLv2+ to GPLv3+.
45996         * README: Change copyright notice.
45997         * MODULES.html.sh: Likewise.
45998         * build-aux/bootstrap.conf: Likewise.
45999         * build-aux/config.libpath: Likewise.
46000         * build-aux/csharpcomp.sh.in: Likewise.
46001         * build-aux/csharpexec.sh.in: Likewise.
46002         * build-aux/install-reloc: Likewise.
46003         * build-aux/javacomp.sh.in: Likewise.
46004         * build-aux/javaexec.sh.in: Likewise.
46005         * build-aux/ldd.sh.in: Likewise.
46006         * build-aux/reloc-ldflags: Likewise.
46007         * build-aux/relocatable.sh.in: Likewise.
46008         * build-aux/x-to-1.in: Likewise.
46009         * check-module: Likewise.
46010         * config/srclistvars.sh: Likewise.
46011         * gnulib-tool: Likewise.
46012         * lib/acl-internal.h: Likewise.
46013         * lib/acl.c: Likewise.
46014         * lib/acl.h: Likewise.
46015         * lib/acl_entries.c: Likewise.
46016         * lib/areadlink-with-size.c: Likewise.
46017         * lib/areadlink.c: Likewise.
46018         * lib/areadlink.h: Likewise.
46019         * lib/argmatch.c: Likewise.
46020         * lib/argmatch.h: Likewise.
46021         * lib/argp-ba.c: Likewise.
46022         * lib/argp-eexst.c: Likewise.
46023         * lib/argp-fmtstream.c: Likewise.
46024         * lib/argp-fmtstream.h: Likewise.
46025         * lib/argp-fs-xinl.c: Likewise.
46026         * lib/argp-help.c: Likewise.
46027         * lib/argp-namefrob.h: Likewise.
46028         * lib/argp-parse.c: Likewise.
46029         * lib/argp-pin.c: Likewise.
46030         * lib/argp-pv.c: Likewise.
46031         * lib/argp-pvh.c: Likewise.
46032         * lib/argp-xinl.c: Likewise.
46033         * lib/argp.h: Likewise.
46034         * lib/at-func.c: Likewise.
46035         * lib/atanl.c: Likewise.
46036         * lib/backupfile.c: Likewise.
46037         * lib/backupfile.h: Likewise.
46038         * lib/basename.c: Likewise.
46039         * lib/binary-io.h: Likewise.
46040         * lib/byteswap.in.h: Likewise.
46041         * lib/c-stack.c: Likewise.
46042         * lib/c-stack.h: Likewise.
46043         * lib/c-strcasestr.c: Likewise.
46044         * lib/c-strcasestr.h: Likewise.
46045         * lib/c-strstr.c: Likewise.
46046         * lib/c-strstr.h: Likewise.
46047         * lib/c-strtod.c: Likewise.
46048         * lib/calloc.c: Likewise.
46049         * lib/canon-host.c: Likewise.
46050         * lib/canon-host.h: Likewise.
46051         * lib/canonicalize-lgpl.c: Likewise.
46052         * lib/canonicalize.c: Likewise.
46053         * lib/canonicalize.h: Likewise.
46054         * lib/ceil.c: Likewise.
46055         * lib/ceilf.c: Likewise.
46056         * lib/ceill.c: Likewise.
46057         * lib/chdir-long.c: Likewise.
46058         * lib/chdir-long.h: Likewise.
46059         * lib/chdir-safer.c: Likewise.
46060         * lib/chdir-safer.h: Likewise.
46061         * lib/chown.c: Likewise.
46062         * lib/classpath.c: Likewise.
46063         * lib/classpath.h: Likewise.
46064         * lib/clean-temp.c: Likewise.
46065         * lib/clean-temp.h: Likewise.
46066         * lib/cloexec.c: Likewise.
46067         * lib/close-stream.c: Likewise.
46068         * lib/closein.c: Likewise.
46069         * lib/closein.h: Likewise.
46070         * lib/closeout.c: Likewise.
46071         * lib/closeout.h: Likewise.
46072         * lib/concat-filename.c: Likewise.
46073         * lib/copy-file.c: Likewise.
46074         * lib/copy-file.h: Likewise.
46075         * lib/count-one-bits.h: Likewise.
46076         * lib/crc.c: Likewise.
46077         * lib/crc.h: Likewise.
46078         * lib/creat-safer.c: Likewise.
46079         * lib/csharpcomp.c: Likewise.
46080         * lib/csharpcomp.h: Likewise.
46081         * lib/csharpexec.c: Likewise.
46082         * lib/csharpexec.h: Likewise.
46083         * lib/cycle-check.c: Likewise.
46084         * lib/cycle-check.h: Likewise.
46085         * lib/diacrit.c: Likewise.
46086         * lib/diacrit.h: Likewise.
46087         * lib/diffseq.h: Likewise.
46088         * lib/dirchownmod.c: Likewise.
46089         * lib/dirent.in.h: Likewise.
46090         * lib/dirfd.c: Likewise.
46091         * lib/dirfd.h: Likewise.
46092         * lib/dirname.c: Likewise.
46093         * lib/dirname.h: Likewise.
46094         * lib/dummy.c: Likewise.
46095         * lib/dup-safer.c: Likewise.
46096         * lib/dup2.c: Likewise.
46097         * lib/eealloc.h: Likewise.
46098         * lib/error.c: Likewise.
46099         * lib/error.h: Likewise.
46100         * lib/euidaccess.c: Likewise.
46101         * lib/exclude.c: Likewise.
46102         * lib/exclude.h: Likewise.
46103         * lib/execute.c: Likewise.
46104         * lib/execute.h: Likewise.
46105         * lib/exitfail.c: Likewise.
46106         * lib/exitfail.h: Likewise.
46107         * lib/expl.c: Likewise.
46108         * lib/fatal-signal.c: Likewise.
46109         * lib/fatal-signal.h: Likewise.
46110         * lib/fbufmode.c: Likewise.
46111         * lib/fbufmode.h: Likewise.
46112         * lib/fchdir.c: Likewise.
46113         * lib/fchmodat.c: Likewise.
46114         * lib/fchownat.c: Likewise.
46115         * lib/fcntl--.h: Likewise.
46116         * lib/fcntl-safer.h: Likewise.
46117         * lib/fcntl.in.h: Likewise.
46118         * lib/fd-safer.c: Likewise.
46119         * lib/fflush.c: Likewise.
46120         * lib/file-has-acl.c: Likewise.
46121         * lib/file-set.c: Likewise.
46122         * lib/file-type.c: Likewise.
46123         * lib/file-type.h: Likewise.
46124         * lib/fileblocks.c: Likewise.
46125         * lib/filemode.c: Likewise.
46126         * lib/filemode.h: Likewise.
46127         * lib/filename.h: Likewise.
46128         * lib/filenamecat.c: Likewise.
46129         * lib/filenamecat.h: Likewise.
46130         * lib/findprog.c: Likewise.
46131         * lib/findprog.h: Likewise.
46132         * lib/float.in.h: Likewise.
46133         * lib/floor.c: Likewise.
46134         * lib/floorf.c: Likewise.
46135         * lib/floorl.c: Likewise.
46136         * lib/fopen-safer.c: Likewise.
46137         * lib/fopen.c: Likewise.
46138         * lib/fpending.c: Likewise.
46139         * lib/fpending.h: Likewise.
46140         * lib/fprintf.c: Likewise.
46141         * lib/fprintftime.h: Likewise.
46142         * lib/fpucw.h: Likewise.
46143         * lib/fpurge.c: Likewise.
46144         * lib/fpurge.h: Likewise.
46145         * lib/freadable.c: Likewise.
46146         * lib/freadable.h: Likewise.
46147         * lib/freadahead.c: Likewise.
46148         * lib/freadahead.h: Likewise.
46149         * lib/freading.c: Likewise.
46150         * lib/freading.h: Likewise.
46151         * lib/free.c: Likewise.
46152         * lib/freopen.c: Likewise.
46153         * lib/frexp.c: Likewise.
46154         * lib/frexpl.c: Likewise.
46155         * lib/fseek.c: Likewise.
46156         * lib/fseterr.c: Likewise.
46157         * lib/fseterr.h: Likewise.
46158         * lib/fstatat.c: Likewise.
46159         * lib/fstrcmp.c: Likewise.
46160         * lib/fstrcmp.h: Likewise.
46161         * lib/fsusage.c: Likewise.
46162         * lib/fsusage.h: Likewise.
46163         * lib/ftell.c: Likewise.
46164         * lib/ftello.c: Likewise.
46165         * lib/fts-cycle.c: Likewise.
46166         * lib/fts.c: Likewise.
46167         * lib/fts_.h: Likewise.
46168         * lib/full-read.c: Likewise.
46169         * lib/full-read.h: Likewise.
46170         * lib/full-write.c: Likewise.
46171         * lib/full-write.h: Likewise.
46172         * lib/fwritable.c: Likewise.
46173         * lib/fwritable.h: Likewise.
46174         * lib/fwriteerror.c: Likewise.
46175         * lib/fwriteerror.h: Likewise.
46176         * lib/fwriting.c: Likewise.
46177         * lib/fwriting.h: Likewise.
46178         * lib/gcd.c: Likewise.
46179         * lib/gcd.h: Likewise.
46180         * lib/getcwd.c: Likewise.
46181         * lib/getdate.h: Likewise.
46182         * lib/getdate.y: Likewise.
46183         * lib/getdomainname.c: Likewise.
46184         * lib/getdomainname.h: Likewise.
46185         * lib/getgroups.c: Likewise.
46186         * lib/gethostname.c: Likewise.
46187         * lib/gethrxtime.c: Likewise.
46188         * lib/gethrxtime.h: Likewise.
46189         * lib/getloadavg.c: Likewise.
46190         * lib/getndelim2.c: Likewise.
46191         * lib/getndelim2.h: Likewise.
46192         * lib/getnline.c: Likewise.
46193         * lib/getnline.h: Likewise.
46194         * lib/getopt.c: Likewise.
46195         * lib/getopt.in.h: Likewise.
46196         * lib/getopt1.c: Likewise.
46197         * lib/getopt_int.h: Likewise.
46198         * lib/getpagesize.h: Likewise.
46199         * lib/getsubopt.c: Likewise.
46200         * lib/gettime.c: Likewise.
46201         * lib/getugroups.c: Likewise.
46202         * lib/getugroups.h: Likewise.
46203         * lib/getusershell.c: Likewise.
46204         * lib/gl_anyavltree_list1.h: Likewise.
46205         * lib/gl_anyavltree_list2.h: Likewise.
46206         * lib/gl_anyhash_list1.h: Likewise.
46207         * lib/gl_anyhash_list2.h: Likewise.
46208         * lib/gl_anylinked_list1.h: Likewise.
46209         * lib/gl_anylinked_list2.h: Likewise.
46210         * lib/gl_anyrbtree_list1.h: Likewise.
46211         * lib/gl_anyrbtree_list2.h: Likewise.
46212         * lib/gl_anytree_list1.h: Likewise.
46213         * lib/gl_anytree_list2.h: Likewise.
46214         * lib/gl_anytree_oset.h: Likewise.
46215         * lib/gl_anytreehash_list1.h: Likewise.
46216         * lib/gl_anytreehash_list2.h: Likewise.
46217         * lib/gl_array_list.c: Likewise.
46218         * lib/gl_array_list.h: Likewise.
46219         * lib/gl_array_oset.c: Likewise.
46220         * lib/gl_array_oset.h: Likewise.
46221         * lib/gl_avltree_list.c: Likewise.
46222         * lib/gl_avltree_list.h: Likewise.
46223         * lib/gl_avltree_oset.c: Likewise.
46224         * lib/gl_avltree_oset.h: Likewise.
46225         * lib/gl_avltreehash_list.c: Likewise.
46226         * lib/gl_avltreehash_list.h: Likewise.
46227         * lib/gl_carray_list.c: Likewise.
46228         * lib/gl_carray_list.h: Likewise.
46229         * lib/gl_linked_list.c: Likewise.
46230         * lib/gl_linked_list.h: Likewise.
46231         * lib/gl_linkedhash_list.c: Likewise.
46232         * lib/gl_linkedhash_list.h: Likewise.
46233         * lib/gl_list.c: Likewise.
46234         * lib/gl_list.h: Likewise.
46235         * lib/gl_oset.c: Likewise.
46236         * lib/gl_oset.h: Likewise.
46237         * lib/gl_rbtree_list.c: Likewise.
46238         * lib/gl_rbtree_list.h: Likewise.
46239         * lib/gl_rbtree_oset.c: Likewise.
46240         * lib/gl_rbtree_oset.h: Likewise.
46241         * lib/gl_rbtreehash_list.c: Likewise.
46242         * lib/gl_rbtreehash_list.h: Likewise.
46243         * lib/gl_sublist.c: Likewise.
46244         * lib/gl_sublist.h: Likewise.
46245         * lib/group-member.c: Likewise.
46246         * lib/group-member.h: Likewise.
46247         * lib/hard-locale.c: Likewise.
46248         * lib/hard-locale.h: Likewise.
46249         * lib/hash-pjw.c: Likewise.
46250         * lib/hash-pjw.h: Likewise.
46251         * lib/hash-triple.c: Likewise.
46252         * lib/hash.c: Likewise.
46253         * lib/hash.h: Likewise.
46254         * lib/human.c: Likewise.
46255         * lib/human.h: Likewise.
46256         * lib/i-ring.c: Likewise.
46257         * lib/i-ring.h: Likewise.
46258         * lib/idcache.c: Likewise.
46259         * lib/imaxabs.c: Likewise.
46260         * lib/imaxdiv.c: Likewise.
46261         * lib/inet_pton.c: Likewise.
46262         * lib/inet_pton.h: Likewise.
46263         * lib/intprops.h: Likewise.
46264         * lib/inttostr.c: Likewise.
46265         * lib/inttostr.h: Likewise.
46266         * lib/inttypes.in.h: Likewise.
46267         * lib/isapipe.c: Likewise.
46268         * lib/isdir.c: Likewise.
46269         * lib/isnan.c: Likewise.
46270         * lib/isnan.h: Likewise.
46271         * lib/isnanf.c: Likewise.
46272         * lib/isnanf.h: Likewise.
46273         * lib/isnanl-nolibm.h: Likewise.
46274         * lib/isnanl.c: Likewise.
46275         * lib/isnanl.h: Likewise.
46276         * lib/javacomp.c: Likewise.
46277         * lib/javacomp.h: Likewise.
46278         * lib/javaexec.c: Likewise.
46279         * lib/javaexec.h: Likewise.
46280         * lib/javaversion.c: Likewise.
46281         * lib/javaversion.h: Likewise.
46282         * lib/javaversion.java: Likewise.
46283         * lib/lbrkprop.h: Likewise.
46284         * lib/lchmod.h: Likewise.
46285         * lib/lchown.c: Likewise.
46286         * lib/ldexpl.c: Likewise.
46287         * lib/linebreak.c: Likewise.
46288         * lib/linebreak.h: Likewise.
46289         * lib/linebuffer.c: Likewise.
46290         * lib/linebuffer.h: Likewise.
46291         * lib/locale.in.h: Likewise.
46292         * lib/logl.c: Likewise.
46293         * lib/long-options.c: Likewise.
46294         * lib/long-options.h: Likewise.
46295         * lib/lstat.c: Likewise.
46296         * lib/lstat.h: Likewise.
46297         * lib/math.in.h: Likewise.
46298         * lib/mbchar.c: Likewise.
46299         * lib/mbchar.h: Likewise.
46300         * lib/mbfile.h: Likewise.
46301         * lib/mbiter.h: Likewise.
46302         * lib/mbscasecmp.c: Likewise.
46303         * lib/mbscasestr.c: Likewise.
46304         * lib/mbschr.c: Likewise.
46305         * lib/mbscspn.c: Likewise.
46306         * lib/mbslen.c: Likewise.
46307         * lib/mbsncasecmp.c: Likewise.
46308         * lib/mbsnlen.c: Likewise.
46309         * lib/mbspbrk.c: Likewise.
46310         * lib/mbspcasecmp.c: Likewise.
46311         * lib/mbsrchr.c: Likewise.
46312         * lib/mbssep.c: Likewise.
46313         * lib/mbsspn.c: Likewise.
46314         * lib/mbsstr.c: Likewise.
46315         * lib/mbstok_r.c: Likewise.
46316         * lib/mbswidth.c: Likewise.
46317         * lib/mbswidth.h: Likewise.
46318         * lib/mbuiter.h: Likewise.
46319         * lib/memcasecmp.c: Likewise.
46320         * lib/memcasecmp.h: Likewise.
46321         * lib/memchr.c: Likewise.
46322         * lib/memcmp.c: Likewise.
46323         * lib/memcoll.c: Likewise.
46324         * lib/memcoll.h: Likewise.
46325         * lib/memcpy.c: Likewise.
46326         * lib/memrchr.c: Likewise.
46327         * lib/mkancesdirs.c: Likewise.
46328         * lib/mkdir-p.c: Likewise.
46329         * lib/mkdir-p.h: Likewise.
46330         * lib/mkdir.c: Likewise.
46331         * lib/mkdirat.c: Likewise.
46332         * lib/mkdtemp.c: Likewise.
46333         * lib/mkstemp-safer.c: Likewise.
46334         * lib/mkstemp.c: Likewise.
46335         * lib/modechange.c: Likewise.
46336         * lib/modechange.h: Likewise.
46337         * lib/mountlist.c: Likewise.
46338         * lib/mountlist.h: Likewise.
46339         * lib/mpsort.c: Likewise.
46340         * lib/nanosleep.c: Likewise.
46341         * lib/obstack.c: Likewise.
46342         * lib/obstack.h: Likewise.
46343         * lib/open-safer.c: Likewise.
46344         * lib/open.c: Likewise.
46345         * lib/openat-die.c: Likewise.
46346         * lib/openat-priv.h: Likewise.
46347         * lib/openat-proc.c: Likewise.
46348         * lib/openat.c: Likewise.
46349         * lib/openat.h: Likewise.
46350         * lib/pagealign_alloc.c: Likewise.
46351         * lib/pagealign_alloc.h: Likewise.
46352         * lib/physmem.c: Likewise.
46353         * lib/physmem.h: Likewise.
46354         * lib/pipe-safer.c: Likewise.
46355         * lib/pipe.c: Likewise.
46356         * lib/pipe.h: Likewise.
46357         * lib/posixtm.c: Likewise.
46358         * lib/posixtm.h: Likewise.
46359         * lib/posixver.c: Likewise.
46360         * lib/printf-frexp.c: Likewise.
46361         * lib/printf-frexp.h: Likewise.
46362         * lib/printf-frexpl.c: Likewise.
46363         * lib/printf-frexpl.h: Likewise.
46364         * lib/printf.c: Likewise.
46365         * lib/progname.c: Likewise.
46366         * lib/progname.h: Likewise.
46367         * lib/progreloc.c: Likewise.
46368         * lib/putenv.c: Likewise.
46369         * lib/quote.c: Likewise.
46370         * lib/quote.h: Likewise.
46371         * lib/quotearg.c: Likewise.
46372         * lib/quotearg.h: Likewise.
46373         * lib/raise.c: Likewise.
46374         * lib/readline.c: Likewise.
46375         * lib/readline.h: Likewise.
46376         * lib/readlink.c: Likewise.
46377         * lib/readtokens.c: Likewise.
46378         * lib/readtokens.h: Likewise.
46379         * lib/readtokens0.c: Likewise.
46380         * lib/readtokens0.h: Likewise.
46381         * lib/readutmp.c: Likewise.
46382         * lib/readutmp.h: Likewise.
46383         * lib/realloc.c: Likewise.
46384         * lib/relocwrapper.c: Likewise.
46385         * lib/rename-dest-slash.c: Likewise.
46386         * lib/rename.c: Likewise.
46387         * lib/rmdir.c: Likewise.
46388         * lib/rpmatch.c: Likewise.
46389         * lib/safe-read.c: Likewise.
46390         * lib/safe-read.h: Likewise.
46391         * lib/safe-write.c: Likewise.
46392         * lib/safe-write.h: Likewise.
46393         * lib/same-inode.h: Likewise.
46394         * lib/same.c: Likewise.
46395         * lib/same.h: Likewise.
46396         * lib/save-cwd.c: Likewise.
46397         * lib/save-cwd.h: Likewise.
46398         * lib/savedir.c: Likewise.
46399         * lib/savedir.h: Likewise.
46400         * lib/savewd.c: Likewise.
46401         * lib/savewd.h: Likewise.
46402         * lib/search.in.h: Likewise.
46403         * lib/setenv.c: Likewise.
46404         * lib/setenv.h: Likewise.
46405         * lib/settime.c: Likewise.
46406         * lib/sh-quote.c: Likewise.
46407         * lib/sh-quote.h: Likewise.
46408         * lib/sig2str.c: Likewise.
46409         * lib/sig2str.h: Likewise.
46410         * lib/signal.in.h: Likewise.
46411         * lib/signbitd.c: Likewise.
46412         * lib/signbitf.c: Likewise.
46413         * lib/signbitl.c: Likewise.
46414         * lib/sigprocmask.c: Likewise.
46415         * lib/sincosl.c: Likewise.
46416         * lib/sleep.c: Likewise.
46417         * lib/sprintf.c: Likewise.
46418         * lib/sqrtl.c: Likewise.
46419         * lib/stat-time.h: Likewise.
46420         * lib/stdio--.h: Likewise.
46421         * lib/stdio-safer.h: Likewise.
46422         * lib/stdlib--.h: Likewise.
46423         * lib/stdlib-safer.h: Likewise.
46424         * lib/stdlib.in.h: Likewise.
46425         * lib/stpcpy.c: Likewise.
46426         * lib/stpncpy.c: Likewise.
46427         * lib/strchrnul.c: Likewise.
46428         * lib/strcspn.c: Likewise.
46429         * lib/strerror.c: Likewise.
46430         * lib/strftime.c: Likewise.
46431         * lib/strftime.h: Likewise.
46432         * lib/striconveh.c: Likewise.
46433         * lib/striconveh.h: Likewise.
46434         * lib/striconveha.c: Likewise.
46435         * lib/striconveha.h: Likewise.
46436         * lib/stripslash.c: Likewise.
46437         * lib/strnlen1.c: Likewise.
46438         * lib/strnlen1.h: Likewise.
46439         * lib/strtod.c: Likewise.
46440         * lib/strtoimax.c: Likewise.
46441         * lib/strtok_r.c: Likewise.
46442         * lib/strtol.c: Likewise.
46443         * lib/strtoll.c: Likewise.
46444         * lib/strtoul.c: Likewise.
46445         * lib/strtoull.c: Likewise.
46446         * lib/sysexits.in.h: Likewise.
46447         * lib/tempname.c: Likewise.
46448         * lib/tempname.h: Likewise.
46449         * lib/timespec.h: Likewise.
46450         * lib/tls.c: Likewise.
46451         * lib/tls.h: Likewise.
46452         * lib/tmpdir.c: Likewise.
46453         * lib/tmpdir.h: Likewise.
46454         * lib/tmpfile-safer.c: Likewise.
46455         * lib/tmpfile.c: Likewise.
46456         * lib/trigl.c: Likewise.
46457         * lib/trigl.h: Likewise.
46458         * lib/trim.c: Likewise.
46459         * lib/trim.h: Likewise.
46460         * lib/trunc.c: Likewise.
46461         * lib/truncf.c: Likewise.
46462         * lib/truncl.c: Likewise.
46463         * lib/tsearch.c: Likewise.
46464         * lib/unicodeio.c: Likewise.
46465         * lib/unicodeio.h: Likewise.
46466         * lib/unistd--.h: Likewise.
46467         * lib/unistd-safer.h: Likewise.
46468         * lib/unistdio/ulc-fprintf.c: Likewise.
46469         * lib/unistdio/ulc-vfprintf.c: Likewise.
46470         * lib/unlinkdir.c: Likewise.
46471         * lib/unlinkdir.h: Likewise.
46472         * lib/unlocked-io.h: Likewise.
46473         * lib/unsetenv.c: Likewise.
46474         * lib/userspec.c: Likewise.
46475         * lib/utime.c: Likewise.
46476         * lib/utimecmp.c: Likewise.
46477         * lib/utimecmp.h: Likewise.
46478         * lib/utimens.c: Likewise.
46479         * lib/verify.h: Likewise.
46480         * lib/verror.c: Likewise.
46481         * lib/verror.h: Likewise.
46482         * lib/version-etc-fsf.c: Likewise.
46483         * lib/version-etc.c: Likewise.
46484         * lib/version-etc.h: Likewise.
46485         * lib/vfprintf.c: Likewise.
46486         * lib/vprintf.c: Likewise.
46487         * lib/vsprintf.c: Likewise.
46488         * lib/w32spawn.h: Likewise.
46489         * lib/wait-process.c: Likewise.
46490         * lib/wait-process.h: Likewise.
46491         * lib/wcwidth.c: Likewise.
46492         * lib/write-any-file.c: Likewise.
46493         * lib/xalloc-die.c: Likewise.
46494         * lib/xalloc.h: Likewise.
46495         * lib/xasprintf.c: Likewise.
46496         * lib/xgetcwd.c: Likewise.
46497         * lib/xgetcwd.h: Likewise.
46498         * lib/xgetdomainname.c: Likewise.
46499         * lib/xgetdomainname.h: Likewise.
46500         * lib/xgethostname.c: Likewise.
46501         * lib/xmalloc.c: Likewise.
46502         * lib/xmalloca.c: Likewise.
46503         * lib/xmalloca.h: Likewise.
46504         * lib/xmemcoll.c: Likewise.
46505         * lib/xnanosleep.c: Likewise.
46506         * lib/xreadlink.c: Likewise.
46507         * lib/xreadlink.h: Likewise.
46508         * lib/xsetenv.c: Likewise.
46509         * lib/xsetenv.h: Likewise.
46510         * lib/xstriconv.c: Likewise.
46511         * lib/xstriconv.h: Likewise.
46512         * lib/xstrndup.c: Likewise.
46513         * lib/xstrndup.h: Likewise.
46514         * lib/xstrtod.c: Likewise.
46515         * lib/xstrtod.h: Likewise.
46516         * lib/xstrtol-error.c: Likewise.
46517         * lib/xstrtol.c: Likewise.
46518         * lib/xstrtol.h: Likewise.
46519         * lib/xtime.h: Likewise.
46520         * lib/xvasprintf.c: Likewise.
46521         * lib/xvasprintf.h: Likewise.
46522         * lib/yesno.c: Likewise.
46523         * lib/yesno.h: Likewise.
46524         * posix-modules: Likewise.
46525         * tests/test-alloca-opt.c: Likewise.
46526         * tests/test-arcfour.c: Likewise.
46527         * tests/test-arctwo.c: Likewise.
46528         * tests/test-argmatch.c: Likewise.
46529         * tests/test-argp-2.sh: Likewise.
46530         * tests/test-argp.c: Likewise.
46531         * tests/test-arpa_inet.c: Likewise.
46532         * tests/test-array_list.c: Likewise.
46533         * tests/test-array_oset.c: Likewise.
46534         * tests/test-atexit.c: Likewise.
46535         * tests/test-avltree_list.c: Likewise.
46536         * tests/test-avltree_oset.c: Likewise.
46537         * tests/test-avltreehash_list.c: Likewise.
46538         * tests/test-base64.c: Likewise.
46539         * tests/test-binary-io.c: Likewise.
46540         * tests/test-byteswap.c: Likewise.
46541         * tests/test-c-ctype.c: Likewise.
46542         * tests/test-c-strcasecmp.c: Likewise.
46543         * tests/test-c-strcasestr.c: Likewise.
46544         * tests/test-c-strncasecmp.c: Likewise.
46545         * tests/test-c-strstr.c: Likewise.
46546         * tests/test-canonicalize-lgpl.c: Likewise.
46547         * tests/test-canonicalize.c: Likewise.
46548         * tests/test-carray_list.c: Likewise.
46549         * tests/test-ceilf.c: Likewise.
46550         * tests/test-ceill.c: Likewise.
46551         * tests/test-count-one-bits.c: Likewise.
46552         * tests/test-crc.c: Likewise.
46553         * tests/test-dirname.c: Likewise.
46554         * tests/test-fbufmode.c: Likewise.
46555         * tests/test-fcntl.c: Likewise.
46556         * tests/test-fflush.c: Likewise.
46557         * tests/test-floorf.c: Likewise.
46558         * tests/test-floorl.c: Likewise.
46559         * tests/test-fopen.c: Likewise.
46560         * tests/test-fprintf-posix.c: Likewise.
46561         * tests/test-fprintf-posix.h: Likewise.
46562         * tests/test-fpurge.c: Likewise.
46563         * tests/test-freadable.c: Likewise.
46564         * tests/test-freadahead.c: Likewise.
46565         * tests/test-freading.c: Likewise.
46566         * tests/test-freopen.c: Likewise.
46567         * tests/test-frexp.c: Likewise.
46568         * tests/test-frexpl.c: Likewise.
46569         * tests/test-fseek.c: Likewise.
46570         * tests/test-fseeko.c: Likewise.
46571         * tests/test-fseterr.c: Likewise.
46572         * tests/test-fstrcmp.c: Likewise.
46573         * tests/test-ftell.c: Likewise.
46574         * tests/test-ftello.c: Likewise.
46575         * tests/test-fwritable.c: Likewise.
46576         * tests/test-fwriting.c: Likewise.
46577         * tests/test-getaddrinfo.c: Likewise.
46578         * tests/test-getpass.c: Likewise.
46579         * tests/test-gettimeofday.c: Likewise.
46580         * tests/test-hmac-md5.c: Likewise.
46581         * tests/test-hmac-sha1.c: Likewise.
46582         * tests/test-iconv.c: Likewise.
46583         * tests/test-iconvme.c: Likewise.
46584         * tests/test-inttypes.c: Likewise.
46585         * tests/test-isnan.c: Likewise.
46586         * tests/test-isnanf.c: Likewise.
46587         * tests/test-isnanl-nolibm.c: Likewise.
46588         * tests/test-isnanl.c: Likewise.
46589         * tests/test-isnanl.h: Likewise.
46590         * tests/test-ldexpl.c: Likewise.
46591         * tests/test-linked_list.c: Likewise.
46592         * tests/test-linkedhash_list.c: Likewise.
46593         * tests/test-locale.c: Likewise.
46594         * tests/test-localename.c: Likewise.
46595         * tests/test-lock.c: Likewise.
46596         * tests/test-lseek.c: Likewise.
46597         * tests/test-malloca.c: Likewise.
46598         * tests/test-math.c: Likewise.
46599         * tests/test-mbscasecmp.c: Likewise.
46600         * tests/test-mbscasestr1.c: Likewise.
46601         * tests/test-mbscasestr2.c: Likewise.
46602         * tests/test-mbscasestr3.c: Likewise.
46603         * tests/test-mbscasestr4.c: Likewise.
46604         * tests/test-mbschr.c: Likewise.
46605         * tests/test-mbscspn.c: Likewise.
46606         * tests/test-mbsncasecmp.c: Likewise.
46607         * tests/test-mbspbrk.c: Likewise.
46608         * tests/test-mbspcasecmp.c: Likewise.
46609         * tests/test-mbsrchr.c: Likewise.
46610         * tests/test-mbsspn.c: Likewise.
46611         * tests/test-mbsstr1.c: Likewise.
46612         * tests/test-mbsstr2.c: Likewise.
46613         * tests/test-mbsstr3.c: Likewise.
46614         * tests/test-md5.c: Likewise.
46615         * tests/test-memmem.c: Likewise.
46616         * tests/test-netinet_in.c: Likewise.
46617         * tests/test-open.c: Likewise.
46618         * tests/test-printf-frexp.c: Likewise.
46619         * tests/test-printf-frexpl.c: Likewise.
46620         * tests/test-printf-posix.c: Likewise.
46621         * tests/test-printf-posix.h: Likewise.
46622         * tests/test-rbtree_list.c: Likewise.
46623         * tests/test-rbtree_oset.c: Likewise.
46624         * tests/test-rbtreehash_list.c: Likewise.
46625         * tests/test-read-file.c: Likewise.
46626         * tests/test-rijndael.c: Likewise.
46627         * tests/test-search.c: Likewise.
46628         * tests/test-signbit.c: Likewise.
46629         * tests/test-sleep.c: Likewise.
46630         * tests/test-snprintf-posix.c: Likewise.
46631         * tests/test-snprintf-posix.h: Likewise.
46632         * tests/test-snprintf.c: Likewise.
46633         * tests/test-sprintf-posix.c: Likewise.
46634         * tests/test-sprintf-posix.h: Likewise.
46635         * tests/test-stat-time.c: Likewise.
46636         * tests/test-stdbool.c: Likewise.
46637         * tests/test-stdint.c: Likewise.
46638         * tests/test-stdio.c: Likewise.
46639         * tests/test-stdlib.c: Likewise.
46640         * tests/test-stpncpy.c: Likewise.
46641         * tests/test-strcasestr.c: Likewise.
46642         * tests/test-striconv.c: Likewise.
46643         * tests/test-striconveh.c: Likewise.
46644         * tests/test-striconveha.c: Likewise.
46645         * tests/test-string.c: Likewise.
46646         * tests/test-sys_select.c: Likewise.
46647         * tests/test-sys_socket.c: Likewise.
46648         * tests/test-sys_stat.c: Likewise.
46649         * tests/test-sys_time.c: Likewise.
46650         * tests/test-sysexits.c: Likewise.
46651         * tests/test-time.c: Likewise.
46652         * tests/test-tls.c: Likewise.
46653         * tests/test-trunc.c: Likewise.
46654         * tests/test-truncf.c: Likewise.
46655         * tests/test-truncl.c: Likewise.
46656         * tests/test-unistd.c: Likewise.
46657         * tests/test-vasnprintf-posix.c: Likewise.
46658         * tests/test-vasnprintf-posix2.c: Likewise.
46659         * tests/test-vasnprintf.c: Likewise.
46660         * tests/test-vasprintf-posix.c: Likewise.
46661         * tests/test-vasprintf.c: Likewise.
46662         * tests/test-verify.c: Likewise.
46663         * tests/test-vfprintf-posix.c: Likewise.
46664         * tests/test-vprintf-posix.c: Likewise.
46665         * tests/test-vsnprintf-posix.c: Likewise.
46666         * tests/test-vsnprintf.c: Likewise.
46667         * tests/test-vsprintf-posix.c: Likewise.
46668         * tests/test-wchar.c: Likewise.
46669         * tests/test-wctype.c: Likewise.
46670         * tests/test-wcwidth.c: Likewise.
46671         * tests/test-xstrtol.c: Likewise.
46672         * tests/test-xvasprintf.c: Likewise.
46673         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
46674         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
46675         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
46676         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
46677         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
46678         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
46679         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
46680         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
46681         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
46682         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
46683         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
46684         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
46685         * tests/uniname/test-uninames.c: Likewise.
46686         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
46687         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
46688         * tests/unistdio/test-u16-printf1.h: Likewise.
46689         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
46690         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
46691         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
46692         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
46693         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
46694         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
46695         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
46696         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
46697         * tests/unistdio/test-u32-printf1.h: Likewise.
46698         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
46699         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
46700         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
46701         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
46702         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
46703         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
46704         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
46705         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
46706         * tests/unistdio/test-u8-printf1.h: Likewise.
46707         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
46708         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
46709         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
46710         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
46711         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
46712         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
46713         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
46714         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
46715         * tests/unistdio/test-ulc-printf1.h: Likewise.
46716         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
46717         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
46718         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
46719         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
46720         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
46721         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
46722         * tests/uniwidth/test-u16-strwidth.c: Likewise.
46723         * tests/uniwidth/test-u16-width.c: Likewise.
46724         * tests/uniwidth/test-u32-strwidth.c: Likewise.
46725         * tests/uniwidth/test-u32-width.c: Likewise.
46726         * tests/uniwidth/test-u8-strwidth.c: Likewise.
46727         * tests/uniwidth/test-u8-width.c: Likewise.
46728         * tests/uniwidth/test-uc_width.c: Likewise.
46729         * config/srclist-update: Likewise.
46730         (fixlicense): Update to GPLv3+.
46731
46732         Change copyright notice from LGPLv2.1+ to LGPLv3+.
46733         * tests/test-tsearch.c: Change copyright notice.
46734
46735         Change copyright notice from LGPLv2.0+ to LGPLv3+.
46736         * lib/c-strcaseeq.h: Change copyright notice.
46737         * lib/streq.h: Likewise.
46738         * lib/uniconv.h: Likewise.
46739         * lib/uniconv/u-conv-from-enc.h: Likewise.
46740         * lib/uniconv/u-conv-to-enc.h: Likewise.
46741         * lib/uniconv/u-strconv-from-enc.h: Likewise.
46742         * lib/uniconv/u-strconv-to-enc.h: Likewise.
46743         * lib/uniconv/u16-conv-from-enc.c: Likewise.
46744         * lib/uniconv/u16-conv-to-enc.c: Likewise.
46745         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
46746         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
46747         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
46748         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
46749         * lib/uniconv/u32-conv-from-enc.c: Likewise.
46750         * lib/uniconv/u32-conv-to-enc.c: Likewise.
46751         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
46752         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
46753         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
46754         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
46755         * lib/uniconv/u8-conv-from-enc.c: Likewise.
46756         * lib/uniconv/u8-conv-to-enc.c: Likewise.
46757         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
46758         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
46759         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
46760         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
46761         * lib/uniname.h: Likewise.
46762         * lib/uniname/uniname.c: Likewise.
46763         * lib/unistdio.h: Likewise.
46764         * lib/unistdio/u-asnprintf.h: Likewise.
46765         * lib/unistdio/u-asprintf.h: Likewise.
46766         * lib/unistdio/u-printf-args.c: Likewise.
46767         * lib/unistdio/u-printf-args.h: Likewise.
46768         * lib/unistdio/u-printf-parse.h: Likewise.
46769         * lib/unistdio/u-snprintf.h: Likewise.
46770         * lib/unistdio/u-sprintf.h: Likewise.
46771         * lib/unistdio/u-vasprintf.h: Likewise.
46772         * lib/unistdio/u-vsnprintf.h: Likewise.
46773         * lib/unistdio/u-vsprintf.h: Likewise.
46774         * lib/unistdio/u16-asnprintf.c: Likewise.
46775         * lib/unistdio/u16-asprintf.c: Likewise.
46776         * lib/unistdio/u16-printf-parse.c: Likewise.
46777         * lib/unistdio/u16-snprintf.c: Likewise.
46778         * lib/unistdio/u16-sprintf.c: Likewise.
46779         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
46780         * lib/unistdio/u16-u16-asprintf.c: Likewise.
46781         * lib/unistdio/u16-u16-snprintf.c: Likewise.
46782         * lib/unistdio/u16-u16-sprintf.c: Likewise.
46783         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
46784         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
46785         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
46786         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
46787         * lib/unistdio/u16-vasnprintf.c: Likewise.
46788         * lib/unistdio/u16-vasprintf.c: Likewise.
46789         * lib/unistdio/u16-vsnprintf.c: Likewise.
46790         * lib/unistdio/u16-vsprintf.c: Likewise.
46791         * lib/unistdio/u32-asnprintf.c: Likewise.
46792         * lib/unistdio/u32-asprintf.c: Likewise.
46793         * lib/unistdio/u32-printf-parse.c: Likewise.
46794         * lib/unistdio/u32-snprintf.c: Likewise.
46795         * lib/unistdio/u32-sprintf.c: Likewise.
46796         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
46797         * lib/unistdio/u32-u32-asprintf.c: Likewise.
46798         * lib/unistdio/u32-u32-snprintf.c: Likewise.
46799         * lib/unistdio/u32-u32-sprintf.c: Likewise.
46800         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
46801         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
46802         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
46803         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
46804         * lib/unistdio/u32-vasnprintf.c: Likewise.
46805         * lib/unistdio/u32-vasprintf.c: Likewise.
46806         * lib/unistdio/u32-vsnprintf.c: Likewise.
46807         * lib/unistdio/u32-vsprintf.c: Likewise.
46808         * lib/unistdio/u8-asnprintf.c: Likewise.
46809         * lib/unistdio/u8-asprintf.c: Likewise.
46810         * lib/unistdio/u8-printf-parse.c: Likewise.
46811         * lib/unistdio/u8-snprintf.c: Likewise.
46812         * lib/unistdio/u8-sprintf.c: Likewise.
46813         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46814         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46815         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46816         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46817         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46818         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46819         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46820         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46821         * lib/unistdio/u8-vasnprintf.c: Likewise.
46822         * lib/unistdio/u8-vasprintf.c: Likewise.
46823         * lib/unistdio/u8-vsnprintf.c: Likewise.
46824         * lib/unistdio/u8-vsprintf.c: Likewise.
46825         * lib/unistdio/ulc-asnprintf.c: Likewise.
46826         * lib/unistdio/ulc-asprintf.c: Likewise.
46827         * lib/unistdio/ulc-printf-parse.c: Likewise.
46828         * lib/unistdio/ulc-snprintf.c: Likewise.
46829         * lib/unistdio/ulc-sprintf.c: Likewise.
46830         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46831         * lib/unistdio/ulc-vasprintf.c: Likewise.
46832         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46833         * lib/unistdio/ulc-vsprintf.c: Likewise.
46834         * lib/unistr.h: Likewise.
46835         * lib/unistr/u-cpy-alloc.h: Likewise.
46836         * lib/unistr/u-cpy.h: Likewise.
46837         * lib/unistr/u-endswith.h: Likewise.
46838         * lib/unistr/u-move.h: Likewise.
46839         * lib/unistr/u-set.h: Likewise.
46840         * lib/unistr/u-startswith.h: Likewise.
46841         * lib/unistr/u-stpcpy.h: Likewise.
46842         * lib/unistr/u-stpncpy.h: Likewise.
46843         * lib/unistr/u-strcat.h: Likewise.
46844         * lib/unistr/u-strcpy.h: Likewise.
46845         * lib/unistr/u-strcspn.h: Likewise.
46846         * lib/unistr/u-strdup.h: Likewise.
46847         * lib/unistr/u-strlen.h: Likewise.
46848         * lib/unistr/u-strncat.h: Likewise.
46849         * lib/unistr/u-strncpy.h: Likewise.
46850         * lib/unistr/u-strnlen.h: Likewise.
46851         * lib/unistr/u-strpbrk.h: Likewise.
46852         * lib/unistr/u-strspn.h: Likewise.
46853         * lib/unistr/u-strstr.h: Likewise.
46854         * lib/unistr/u-strtok.h: Likewise.
46855         * lib/unistr/u16-check.c: Likewise.
46856         * lib/unistr/u16-chr.c: Likewise.
46857         * lib/unistr/u16-cmp.c: Likewise.
46858         * lib/unistr/u16-cpy-alloc.c: Likewise.
46859         * lib/unistr/u16-cpy.c: Likewise.
46860         * lib/unistr/u16-endswith.c: Likewise.
46861         * lib/unistr/u16-mblen.c: Likewise.
46862         * lib/unistr/u16-mbsnlen.c: Likewise.
46863         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46864         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46865         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46866         * lib/unistr/u16-mbtouc.c: Likewise.
46867         * lib/unistr/u16-mbtoucr.c: Likewise.
46868         * lib/unistr/u16-move.c: Likewise.
46869         * lib/unistr/u16-next.c: Likewise.
46870         * lib/unistr/u16-prev.c: Likewise.
46871         * lib/unistr/u16-set.c: Likewise.
46872         * lib/unistr/u16-startswith.c: Likewise.
46873         * lib/unistr/u16-stpcpy.c: Likewise.
46874         * lib/unistr/u16-stpncpy.c: Likewise.
46875         * lib/unistr/u16-strcat.c: Likewise.
46876         * lib/unistr/u16-strchr.c: Likewise.
46877         * lib/unistr/u16-strcmp.c: Likewise.
46878         * lib/unistr/u16-strcpy.c: Likewise.
46879         * lib/unistr/u16-strcspn.c: Likewise.
46880         * lib/unistr/u16-strdup.c: Likewise.
46881         * lib/unistr/u16-strlen.c: Likewise.
46882         * lib/unistr/u16-strmblen.c: Likewise.
46883         * lib/unistr/u16-strmbtouc.c: Likewise.
46884         * lib/unistr/u16-strncat.c: Likewise.
46885         * lib/unistr/u16-strncmp.c: Likewise.
46886         * lib/unistr/u16-strncpy.c: Likewise.
46887         * lib/unistr/u16-strnlen.c: Likewise.
46888         * lib/unistr/u16-strpbrk.c: Likewise.
46889         * lib/unistr/u16-strrchr.c: Likewise.
46890         * lib/unistr/u16-strspn.c: Likewise.
46891         * lib/unistr/u16-strstr.c: Likewise.
46892         * lib/unistr/u16-strtok.c: Likewise.
46893         * lib/unistr/u16-to-u32.c: Likewise.
46894         * lib/unistr/u16-to-u8.c: Likewise.
46895         * lib/unistr/u16-uctomb-aux.c: Likewise.
46896         * lib/unistr/u16-uctomb.c: Likewise.
46897         * lib/unistr/u32-check.c: Likewise.
46898         * lib/unistr/u32-chr.c: Likewise.
46899         * lib/unistr/u32-cmp.c: Likewise.
46900         * lib/unistr/u32-cpy-alloc.c: Likewise.
46901         * lib/unistr/u32-cpy.c: Likewise.
46902         * lib/unistr/u32-endswith.c: Likewise.
46903         * lib/unistr/u32-mblen.c: Likewise.
46904         * lib/unistr/u32-mbsnlen.c: Likewise.
46905         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46906         * lib/unistr/u32-mbtouc.c: Likewise.
46907         * lib/unistr/u32-mbtoucr.c: Likewise.
46908         * lib/unistr/u32-move.c: Likewise.
46909         * lib/unistr/u32-next.c: Likewise.
46910         * lib/unistr/u32-prev.c: Likewise.
46911         * lib/unistr/u32-set.c: Likewise.
46912         * lib/unistr/u32-startswith.c: Likewise.
46913         * lib/unistr/u32-stpcpy.c: Likewise.
46914         * lib/unistr/u32-stpncpy.c: Likewise.
46915         * lib/unistr/u32-strcat.c: Likewise.
46916         * lib/unistr/u32-strchr.c: Likewise.
46917         * lib/unistr/u32-strcmp.c: Likewise.
46918         * lib/unistr/u32-strcpy.c: Likewise.
46919         * lib/unistr/u32-strcspn.c: Likewise.
46920         * lib/unistr/u32-strdup.c: Likewise.
46921         * lib/unistr/u32-strlen.c: Likewise.
46922         * lib/unistr/u32-strmblen.c: Likewise.
46923         * lib/unistr/u32-strmbtouc.c: Likewise.
46924         * lib/unistr/u32-strncat.c: Likewise.
46925         * lib/unistr/u32-strncmp.c: Likewise.
46926         * lib/unistr/u32-strncpy.c: Likewise.
46927         * lib/unistr/u32-strnlen.c: Likewise.
46928         * lib/unistr/u32-strpbrk.c: Likewise.
46929         * lib/unistr/u32-strrchr.c: Likewise.
46930         * lib/unistr/u32-strspn.c: Likewise.
46931         * lib/unistr/u32-strstr.c: Likewise.
46932         * lib/unistr/u32-strtok.c: Likewise.
46933         * lib/unistr/u32-to-u16.c: Likewise.
46934         * lib/unistr/u32-to-u8.c: Likewise.
46935         * lib/unistr/u32-uctomb.c: Likewise.
46936         * lib/unistr/u8-check.c: Likewise.
46937         * lib/unistr/u8-chr.c: Likewise.
46938         * lib/unistr/u8-cmp.c: Likewise.
46939         * lib/unistr/u8-cpy-alloc.c: Likewise.
46940         * lib/unistr/u8-cpy.c: Likewise.
46941         * lib/unistr/u8-endswith.c: Likewise.
46942         * lib/unistr/u8-mblen.c: Likewise.
46943         * lib/unistr/u8-mbsnlen.c: Likewise.
46944         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46945         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46946         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46947         * lib/unistr/u8-mbtouc.c: Likewise.
46948         * lib/unistr/u8-mbtoucr.c: Likewise.
46949         * lib/unistr/u8-move.c: Likewise.
46950         * lib/unistr/u8-next.c: Likewise.
46951         * lib/unistr/u8-prev.c: Likewise.
46952         * lib/unistr/u8-set.c: Likewise.
46953         * lib/unistr/u8-startswith.c: Likewise.
46954         * lib/unistr/u8-stpcpy.c: Likewise.
46955         * lib/unistr/u8-stpncpy.c: Likewise.
46956         * lib/unistr/u8-strcat.c: Likewise.
46957         * lib/unistr/u8-strchr.c: Likewise.
46958         * lib/unistr/u8-strcmp.c: Likewise.
46959         * lib/unistr/u8-strcpy.c: Likewise.
46960         * lib/unistr/u8-strcspn.c: Likewise.
46961         * lib/unistr/u8-strdup.c: Likewise.
46962         * lib/unistr/u8-strlen.c: Likewise.
46963         * lib/unistr/u8-strmblen.c: Likewise.
46964         * lib/unistr/u8-strmbtouc.c: Likewise.
46965         * lib/unistr/u8-strncat.c: Likewise.
46966         * lib/unistr/u8-strncmp.c: Likewise.
46967         * lib/unistr/u8-strncpy.c: Likewise.
46968         * lib/unistr/u8-strnlen.c: Likewise.
46969         * lib/unistr/u8-strpbrk.c: Likewise.
46970         * lib/unistr/u8-strrchr.c: Likewise.
46971         * lib/unistr/u8-strspn.c: Likewise.
46972         * lib/unistr/u8-strstr.c: Likewise.
46973         * lib/unistr/u8-strtok.c: Likewise.
46974         * lib/unistr/u8-to-u16.c: Likewise.
46975         * lib/unistr/u8-to-u32.c: Likewise.
46976         * lib/unistr/u8-uctomb-aux.c: Likewise.
46977         * lib/unistr/u8-uctomb.c: Likewise.
46978         * lib/unitypes.h: Likewise.
46979         * lib/uniwidth.h: Likewise.
46980         * lib/uniwidth/cjk.h: Likewise.
46981         * lib/uniwidth/u16-strwidth.c: Likewise.
46982         * lib/uniwidth/u16-width.c: Likewise.
46983         * lib/uniwidth/u32-strwidth.c: Likewise.
46984         * lib/uniwidth/u32-width.c: Likewise.
46985         * lib/uniwidth/u8-strwidth.c: Likewise.
46986         * lib/uniwidth/u8-width.c: Likewise.
46987         * lib/uniwidth/width.c: Likewise.
46988
46989 2007-10-07  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46992         The file is still under LGPL (see modules/inttypes).
46993
46994 2007-10-06  Bruno Haible  <bruno@clisp.org>
46995
46996         * modules/trunc (Dependencies): Add 'extensions'.
46997         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46998         Reported by Ben Pfaff <blp@gnu.org>.
46999
47000 2007-10-06  Bruno Haible  <bruno@clisp.org>
47001
47002         * modules/freopen-tests: New file.
47003         * tests/test-freopen.c: New file.
47004
47005         * modules/fopen-tests: New file.
47006         * tests/test-fopen.c: New file.
47007
47008         * modules/fopen: New file.
47009         * lib/fopen.c: New file.
47010         * m4/fopen.m4: New file.
47011         * modules/freopen: New file.
47012         * lib/freopen.c: New file.
47013         * m4/freopen.m4: New file.
47014         * lib/stdio.in.h (fopen, freopen): New declarations.
47015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47016         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47017         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47018         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47019         * doc/functions/fopen.texi: Mention the 'fopen' module.
47020         * doc/functions/freopen.texi: Mention the 'freopen' module.
47021
47022 2007-10-06  Bruno Haible  <bruno@clisp.org>
47023
47024         * modules/open-tests: New file.
47025         * tests/test-open.c: New file.
47026
47027         * modules/open: New file.
47028         * lib/open.c: New file.
47029         * m4/open.m4: New file.
47030         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47031         lib/open.c does.
47032         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47033         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47034         macros.
47035         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47036         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47037         REPLACE_OPEN.
47038         * doc/functions/open.texi: Mention the 'open' module.
47039
47040 2007-10-04  Bruno Haible  <bruno@clisp.org>
47041
47042         * modules/ceill-tests: New file.
47043         * tests/test-ceill.c: New file.
47044
47045         * modules/ceill: New file.
47046         * lib/ceill.c: Replace entire file.
47047         * m4/ceill.m4: New file.
47048         * lib/math.in.h (ceill): Replace declaration.
47049         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47050         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47051         * doc/functions/ceill.texi: Mention the 'ceill' module.
47052         * modules/mathl (Files): Remove lib/ceill.c.
47053         (Depends-on): Add ceill.
47054
47055 2007-10-04  Bruno Haible  <bruno@clisp.org>
47056
47057         * modules/ceilf-tests: New file.
47058         * tests/test-ceilf.c: New file.
47059
47060         * modules/ceilf: New file.
47061         * lib/ceil.c: New file.
47062         * lib/ceilf.c: New file.
47063         * m4/ceilf.m4: New file.
47064         * lib/math.in.h (ceilf): New declaration.
47065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47066         HAVE_DECL_CEILF.
47067         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47068         HAVE_DECL_CEILF.
47069         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47070
47071 2007-10-04  Bruno Haible  <bruno@clisp.org>
47072
47073         * modules/floorl-tests: New file.
47074         * tests/test-floorl.c: New file.
47075
47076         * modules/floorl: New file.
47077         * lib/floorl.c: Replace entire file.
47078         * m4/floorl.m4: New file.
47079         * lib/math.in.h (floorl): Replace declaration.
47080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47081         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47082         * doc/functions/floorl.texi: Mention the 'floorl' module.
47083         * modules/mathl (Files): Remove lib/floorl.c.
47084         (Depends-on): Add floorl.
47085
47086 2007-10-04  Bruno Haible  <bruno@clisp.org>
47087
47088         * modules/floorf-tests: New file.
47089         * tests/test-floorf.c: New file.
47090
47091         * modules/floorf: New file.
47092         * lib/floor.c: New file.
47093         * lib/floorf.c: New file.
47094         * m4/floorf.m4: New file.
47095         * lib/math.in.h (floorf): New declaration.
47096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47097         HAVE_DECL_FLOORF.
47098         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47099         HAVE_DECL_FLOORF.
47100         * doc/functions/floorf.texi: Mention the 'floorf' module.
47101
47102 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47103             Bruno Haible  <bruno@clisp.org>
47104
47105         Advertise for the Git server instead of the CVS server.
47106         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47107         repository instead of the CVS one.
47108         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47109         about all VCS systems generically.
47110         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47111
47112 2007-10-04  Bruno Haible  <bruno@clisp.org>
47113
47114         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47115         means.
47116         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47117
47118 2007-10-04  Bruno Haible  <bruno@clisp.org>
47119
47120         * modules/truncl-tests: New file.
47121         * tests/test-truncl.c: New file.
47122
47123         * modules/truncl: New file.
47124         * lib/truncl.c: New file.
47125         * m4/truncl.m4: New file.
47126         * lib/math.in.h (truncl): New declaration.
47127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47128         HAVE_DECL_TRUNCL.
47129         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47130         HAVE_DECL_TRUNCL.
47131         * doc/functions/truncl.texi: Mention the 'truncl' module.
47132
47133 2007-10-04  Bruno Haible  <bruno@clisp.org>
47134
47135         * modules/truncf-tests: New file.
47136         * tests/test-truncf.c: New file.
47137
47138         * modules/truncf: New file.
47139         * lib/trunc.c: Make paramerizable through USE_* macros.
47140         * lib/truncf.c: New file.
47141         * m4/truncf.m4: New file.
47142         * lib/math.in.h (truncf): New declaration.
47143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47144         HAVE_DECL_TRUNCF.
47145         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47146         HAVE_DECL_TRUNCF.
47147         * doc/functions/truncf.texi: Mention the 'truncf' module.
47148
47149 2007-10-03  Bruno Haible  <bruno@clisp.org>
47150
47151         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47152         augmentation also for tests modules.
47153         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47154         * modules/atexit-tests (Makefile.am): Likewise.
47155         * modules/binary-io-tests (Makefile.am): Likewise.
47156         * modules/c-strcase-tests (Makefile.am): Likewise.
47157         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47158         * modules/canonicalize-tests (Makefile.am): Likewise.
47159         * modules/closein-tests (Makefile.am): Likewise.
47160         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47161         * modules/freadahead-tests (Makefile.am): Likewise.
47162         * modules/fseek-tests (Makefile.am): Likewise.
47163         * modules/fseeko-tests (Makefile.am): Likewise.
47164         * modules/ftell-tests (Makefile.am): Likewise.
47165         * modules/ftello-tests (Makefile.am): Likewise.
47166         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47167         * modules/isnanl-tests (Makefile.am): Likewise.
47168         * modules/lseek-tests (Makefile.am): Likewise.
47169         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47170         * modules/mbscasestr-tests (Makefile.am): Likewise.
47171         * modules/mbschr-tests (Makefile.am): Likewise.
47172         * modules/mbscspn-tests (Makefile.am): Likewise.
47173         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47174         * modules/mbspbrk-tests (Makefile.am): Likewise.
47175         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47176         * modules/mbsrchr-tests (Makefile.am): Likewise.
47177         * modules/mbsspn-tests (Makefile.am): Likewise.
47178         * modules/mbsstr-tests (Makefile.am): Likewise.
47179         * modules/printf-posix-tests (Makefile.am): Likewise.
47180         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47181         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47182         * modules/tsearch-tests (Makefile.am): Likewise.
47183         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47184         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47185         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47186         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47187         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47188         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47189         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47190         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47191         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47192         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47193         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47194         * modules/xstrtol-tests (Makefile.am): Likewise.
47195         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47196         * modules/yesno-tests (Makefile.am): Likewise.
47197
47198 2007-10-03  Bruno Haible  <bruno@clisp.org>
47199
47200         * modules/trunc-tests: New file.
47201         * tests/test-trunc.c: New file.
47202
47203         * modules/trunc: New file.
47204         * lib/trunc.c: New file.
47205         * m4/trunc.m4: New file.
47206         * lib/math.in.h (trunc): New declaration.
47207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47208         HAVE_DECL_TRUNC.
47209         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47210         HAVE_DECL_TRUNC.
47211         * doc/functions/trunc.texi: Mention the 'trunc' module.
47212
47213 2007-10-03  Bruno Haible  <bruno@clisp.org>
47214
47215         * tests/test-fpending.c: New file, mostly copied
47216         from coreutils/lib/t-fpending.c.
47217         * modules/fpending-tests: New file.
47218
47219 2007-10-03  Bruno Haible  <bruno@clisp.org>
47220
47221         Port the stdio extensions to QNX (untested).
47222         * lib/fseterr.c (fseterr): Add support for QNX.
47223         * lib/fbufmode.c (fbufmode): Likewise.
47224         * lib/freadable.c (freadable): Likewise.
47225         * lib/fwritable.c (fwritable): Likewise.
47226         * lib/freading.c (freading): Likewise.
47227         * lib/fwriting.c (fwriting): Likewise.
47228         * lib/freadahead.c (freadahed): Likewise.
47229         * lib/fpurge.c (fpurge): Likewise.
47230         * lib/fseeko.c (rpl_fseeko): Likewise.
47231
47232 2007-10-03  Bruno Haible  <bruno@clisp.org>
47233             Jim Meyering  <jim@meyering.net>
47234             Eric Blake  <ebb9@byu.net>
47235
47236         * doc/relocatable.texi: Use @command instead of @program.
47237
47238 2007-10-02  Jim Meyering  <jim@meyering.net>
47239
47240         Perform one more "_.h" -> ".in.h" substitution.
47241         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47242         instead of unistd_.h here, too.
47243
47244 2007-10-01  Bruno Haible  <bruno@clisp.org>
47245
47246         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47247         Needed for the alloca-opt module.
47248
47249 2007-09-30  Bruno Haible  <bruno@clisp.org>
47250
47251         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47252         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47253         alloca_.h.
47254         * lib/argz.in.h: Renamed from lib/argz_.h.
47255         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47256         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47257         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47258         byteswap_.h.
47259         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47260         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47261         dirent_.h.
47262         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47263         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47264         fcntl_.h.
47265         * lib/float.in.h: Renamed from lib/float_.h.
47266         * modules/float (Files, Makefile.am): Use float.in.h instead of
47267         float_.h.
47268         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47269         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47270         fnmatch_.h.
47271         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47272         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47273         getopt_.h.
47274         * lib/glob.in.h: Renamed from lib/glob_.h.
47275         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47276         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47277         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47278         iconv_.h.
47279         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47280         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47281         inttypes_.h.
47282         * lib/locale.in.h: Renamed from lib/locale_.h.
47283         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47284         locale_.h.
47285         * lib/math.in.h: Renamed from lib/math_.h.
47286         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47287         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47288         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47289         of netinet_in_.h. Add dependency.
47290         * lib/poll.in.h: Renamed from lib/poll_.h.
47291         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47292         * lib/search.in.h: Renamed from lib/search_.h.
47293         * modules/search (Files, Makefile.am): Use search.in.h instead of
47294         search_.h.
47295         * lib/signal.in.h: Renamed from lib/signal_.h.
47296         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47297         _signal.h.
47298         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47299         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47300         stdbool_.h.
47301         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47302         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47303         stdint_.h.
47304         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47305         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47306         stdio_.h.
47307         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47308         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47309         stdlib_.h.
47310         * lib/string.in.h: Renamed from lib/string_.h.
47311         * modules/string (Files, Makefile.am): Use string.in.h instead of
47312         string_.h.
47313         * doc/gnulib-tool.texi (Initial import): Update.
47314         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47315         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47316         of sys_select_.h. Add dependency.
47317         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47318         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47319         of sys_socket_.h.
47320         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47321         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47322         sys_stat_.h.
47323         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47324         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47325         sys_time_.h.
47326         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47327         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47328         sysexits_.h.
47329         * lib/time.in.h: Renamed from lib/time_.h.
47330         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47331         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47332         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47333         unistd_.h.
47334         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47335         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47336         wchar_.h.
47337         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47338         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47339         wctype_.h.
47340         * build-aux/bootstrap (slurp): Update.
47341         * lib/.cppi-disable: Update.
47342
47343 2007-09-30  Bruno Haible  <bruno@clisp.org>
47344
47345         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47346         Needed on BeOS.
47347
47348 2007-09-30  Bruno Haible  <bruno@clisp.org>
47349
47350         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47351
47352 2007-09-29  Bruno Haible  <bruno@clisp.org>
47353
47354         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47355
47356 2007-09-29  Bruno Haible  <bruno@clisp.org>
47357
47358         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47359         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47360         * build-aux/install-reloc: Compile also areadlink.c.
47361         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47362
47363 2007-09-29  Bruno Haible  <bruno@clisp.org>
47364
47365         * gnulib-tool (func_emit_initmacro_done): Indentation.
47366
47367 2007-09-29  Bruno Haible  <bruno@clisp.org>
47368
47369         * README: Add CVS checkout update instructions.
47370         Info from Bob Proulx <bob@proulx.com>.
47371
47372 2007-09-28  Eric Blake  <ebb9@byu.net>
47373
47374         Provide move-if-change.
47375         * build-aux/move-if-change: New file, based on best practice
47376         rather than any canonical upstream location.
47377
47378 2007-09-28  Jim Meyering  <jim@meyering.net>
47379
47380         Fix canonicalize loop-detection corner case.
47381         Do not attempt to stat the symlink values stored via seen_triple.
47382         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47383         on linux-2.6.18, (but not 2.6.22).
47384         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47385         triple_compare.  The former compares dev,ino,filename, while the latter
47386         would actually stat dirname(filename) when dev and ino were equal.
47387         * lib/hash-triple.c: Install <string.h>.
47388         (STREQ): Define.
47389         (triple_compare_ino_str): New function.
47390         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47391
47392 2007-09-28  Eric Blake  <ebb9@byu.net>
47393
47394         Enforce that AC_REPLACE_FUNCS files exist.
47395         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47396         override check for typos.
47397
47398         Fix test-closein on Solaris 10.
47399         * tests/test-closein.c (main): Don't assume stdin can be inherited
47400         closed on all systems.
47401         * tests/test-closein.sh: Likewise.
47402         Reported by Piotr Tarnowski.
47403
47404 2007-09-28  Jim Meyering  <jim@meyering.net>
47405
47406         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47407
47408 2007-09-27  Jim Meyering  <jim@meyering.net>
47409
47410         canonicalize: Avoid a false-positive cycle failure.
47411         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47412         Sort.  Remove cycle-check.
47413         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47414         not cycle-check.h.
47415         (seen_triple): New function.
47416         (canonicalize_filename_mode): Use it instead of cycle-check.
47417         * tests/test-canonicalize.c: Add a test for this bug.
47418         * tests/test-canonicalize.sh: Set up and run the test.
47419
47420         New module, file-set, from coreutils.
47421         * modules/file-set: Define it.
47422         * lib/file-set.c, lib/file-set.h: Implement.
47423
47424         New module, hash-triple, from coreutils.
47425         * modules/hash-triple: Define it.
47426         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47427
47428 2007-09-25  Eric Blake  <ebb9@byu.net>
47429
47430         Fix strerror on Interix.
47431         * lib/string_.h (strerror): Declare replacement.
47432         * doc/functions/strerror.texi (strerror): Document the Interix
47433         shortcoming.
47434         * modules/string (Makefile.am): Support new hooks.
47435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47436         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47437         gl_FUNC_STRERROR_SEPARATE.
47438         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47439         * lib/strerror.c (rpl_strerror): Provide replacement.
47440         * modules/strerror (Depends-on): Add string.
47441         (configure.ac): Detect use of module.
47442         * tests/test-strerror.c: New file.
47443         * modules/strerror-tests: New test module.
47444         * modules/argp (Depends-on): Add strerror.
47445         * modules/error (Depends-on): Likewise.
47446         Reported by Martin Koeppe.
47447
47448 2007-09-24  Bruno Haible  <bruno@clisp.org>
47449
47450         * README: Update git instructions.
47451
47452 2007-09-24  Eric Blake  <ebb9@byu.net>
47453
47454         Revert fpending breakage from 2007-09-08.
47455         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47456         __fpending.c.
47457
47458 2007-09-24  Jim Meyering  <jim@meyering.net>
47459
47460         filenamecat.c: Add a test.
47461         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47462         showing how the function works when DIR is the empty string.
47463
47464 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47465
47466         * tests/test-canonicalize.sh: Turn on executable bit.
47467
47468 2007-09-19  Eric Blake  <ebb9@byu.net>
47469
47470         * README: Update CVS instructions.
47471
47472 2007-09-18  Bruno Haible  <bruno@clisp.org>
47473
47474         * modules/areadlink: New file.
47475         * lib/areadlink.h (areadlink): New declaration.
47476         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47477
47478 2007-09-17  Jim Meyering  <jim@meyering.net>
47479
47480         * lib/savewd.c (ESTALE) [!defined]: Define.
47481         Reported to be required on Interix by Martin Koeppe.
47482
47483 2007-09-17  Bruno Haible  <bruno@clisp.org>
47484
47485         * gnulib-tool (func_version): Use $version.
47486
47487 2007-09-16  Bruno Haible  <bruno@clisp.org>
47488
47489         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47490         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47491         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47492         Reported by Greg Schafer <gschafer@zip.com.au>.
47493
47494 2007-09-15  Bruno Haible  <bruno@clisp.org>
47495
47496         * gnulib-tool (sed): Try a little harder to make bash understand the
47497         alias.
47498         Reported by Bruce Korb <bruce.korb@gmail.com>.
47499
47500 2007-09-13  Eric Blake  <ebb9@byu.net>
47501
47502         * ChangeLog: Remove conflict markers.
47503
47504 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47505
47506         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47507         Reported by Bruno Haible <bruno@clisp.org>.
47508
47509 2007-09-12  Bruno Haible  <bruno@clisp.org>
47510
47511         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47512         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47513         is not defined.
47514
47515 2007-09-12  Eric Blake  <ebb9@byu.net>
47516
47517         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47518         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47519         Autoconf definition.
47520         * modules/euidaccess (Depends-on): Add extensions, for
47521         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47522         * modules/fnmatch (Depends-on): Likewise.
47523         * modules/getaddrinfo (Depends-on): Likewise.
47524         * modules/getdelim (Depends-on): Likewise.
47525         * modules/getline (Depends-on): Likewise.
47526         * modules/getsubopt (Depends-on): Likewise.
47527         * modules/gettext (Depends-on): Likewise.
47528         * modules/group-member (Depends-on): Likewise.
47529         * modules/mbchar (Depends-on): Likewise.
47530         * modules/memmem (Depends-on): Likewise.
47531         * modules/mempcpy (Depends-on): Likewise.
47532         * modules/memrchr (Depends-on): Likewise.
47533         * modules/pagealign_alloc (Depends-on): Likewise.
47534         * modules/readutmp (Depends-on): Likewise.
47535         * modules/stpcpy (Depends-on): Likewise.
47536         * modules/stpncpy (Depends-on): Likewise.
47537         * modules/strchrnul (Depends-on): Likewise.
47538         * modules/strndup (Depends-on): Likewise.
47539         * modules/strsep (Depends-on): Likewise.
47540         * modules/strverscmp (Depends-on): Likewise.
47541         * modules/vasprintf (Depends-on): Likewise.
47542         * modules/wcwidth (Depends-on): Likewise.
47543         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
47544         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
47545         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
47546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
47547         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47548         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47549         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
47550         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
47551         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
47552         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
47553         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47554         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
47555         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
47556         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47557         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
47558         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47559         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47560         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
47561         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47562         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
47563         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47564         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
47565         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
47566         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
47567         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
47568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47569         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
47570         so that lock.m4 can be used in gettext without extensions module.
47571
47572 2007-09-11  Bruno Haible  <bruno@clisp.org>
47573
47574         * m4/isc-posix.m4: Remove file.
47575         Suggested by Eric Blake.
47576
47577 2007-09-11  Eric Blake  <ebb9@byu.net>
47578
47579         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
47580
47581 2007-09-10  Bruno Haible  <bruno@clisp.org>
47582
47583         * posix-modules: Fix typo in error message.
47584         Reported by Matt <mkraai@beckman.com>.
47585
47586 2007-09-09  Bruno Haible  <bruno@clisp.org>
47587
47588         * doc/functions/getdelim.texi: Update list of platforms lacking the
47589         function.
47590         * doc/functions/getline.texi: Likewise.
47591
47592 2007-09-09  Jim Meyering  <jim@meyering.net>
47593
47594         * lib/hash.c (hash_initialize): Detect calloc failure.
47595         Reported by Bruno Haible.
47596
47597 2007-09-09  Bruno Haible  <bruno@clisp.org>
47598
47599         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
47600         malloc or realloc fails.
47601
47602 2007-09-09  Bruno Haible  <bruno@clisp.org>
47603
47604         * modules/getcwd (Depends-on): Add malloc-posix.
47605         * modules/glob (Depends-on): Likewise.
47606         * modules/putenv (Depends-on): Likewise.
47607         * modules/strdup (Depends-on): Likewise.
47608         * modules/getdelim (Depends-on): Add realloc-posix.
47609         * modules/read-file (Depends-on): Likewise.
47610
47611 2007-09-09  Bruno Haible  <bruno@clisp.org>
47612
47613         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
47614         (gl_FUNC_MALLOC_POSIX): Require it.
47615         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
47616         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
47617         * modules/realloc (Files): Add m4/malloc.m4.
47618         * modules/calloc (Files): Likewise.
47619
47620 2007-09-09  Bruno Haible  <bruno@clisp.org>
47621
47622         * modules/malloc-posix: New file.
47623         * modules/malloc (Depends-on): Add malloc-posix.
47624         * lib/malloc.c: Include errno.h.
47625         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
47626         and a POSIX-compatible malloc into a single function. Set ENOMEM
47627         when returning NULL.
47628         * m4/malloc.m4: New file.
47629         * doc/functions/malloc.texi: Mention the malloc-posix module.
47630         * lib/stdlib_.h (malloc): New declaration.
47631         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47632         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
47633         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
47634         and HAVE_MALLOC_POSIX.
47635
47636 2007-09-09  Bruno Haible  <bruno@clisp.org>
47637
47638         * modules/realloc-posix: New file.
47639         * modules/realloc (Depends-on): Add realloc-posix.
47640         * lib/realloc.c: Include errno.h.
47641         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
47642         and a POSIX-compatible realloc into a single function. Set ENOMEM
47643         when returning NULL.
47644         * m4/realloc.m4: New file.
47645         * doc/functions/realloc.texi: Mention the realloc-posix module.
47646         * lib/stdlib_.h (realloc): New declaration.
47647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47648         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
47649         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
47650         and HAVE_REALLOC_POSIX.
47651
47652 2007-09-09  Bruno Haible  <bruno@clisp.org>
47653
47654         * modules/calloc-posix: New file.
47655         * modules/calloc (Depends-on): Add calloc-posix.
47656         * lib/calloc.c: Include errno.h.
47657         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
47658         and a POSIX-compatible calloc into a single function. Set ENOMEM
47659         when returning NULL.
47660         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
47661         * doc/functions/calloc.texi: Mention the calloc-posix module.
47662         * lib/stdlib_.h (calloc): New declaration.
47663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
47664         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
47665         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
47666         and HAVE_CALLOC_POSIX.
47667
47668 2007-09-09  Bruno Haible  <bruno@clisp.org>
47669
47670         Allow for modules to show an arbitrary notice.
47671         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
47672         * gnulib-tool: New option --extract-notice.
47673         (func_usage): Document it.
47674         (sed_extract_prog): Update.
47675         (func_get_notice): New function.
47676         (func_modules_notice): New function.
47677         (func_import, func_create_testdir): Invoke it.
47678         Suggested by Jim Meyering.
47679
47680 2007-09-09  Bruno Haible  <bruno@clisp.org>
47681
47682         * gnulib-tool: New options --verbose, --quiet.
47683         (func_usage): Document them.
47684         (verbose): New variable.
47685         (func_execute_command): New function.
47686         (func_import): Don't show the module list and the file list if
47687         $verbose < 0.
47688         (func_create_testdir): Likewise. Use func_execute_command.
47689         (func_create_megatestdir): Use func_execute_command.
47690
47691 2007-09-08  Bruno Haible  <bruno@clisp.org>
47692
47693         * gnulib-tool (func_import): Prefer rsync over wget when available,
47694         for fetching the PO files.
47695
47696 2007-09-08  Bruno Haible  <bruno@clisp.org>
47697
47698         * posix-modules: New file. Portions copied from gnulib-tool.
47699         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
47700
47701 2007-09-08  Jim Meyering  <jim@meyering.net>
47702
47703         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
47704         * lib/fpending.h: Rename from __fpending.h.
47705         * lib/fpending.c: Rename from __fpending.c.
47706         Include "fpending.h", not "__fpending.h".
47707         * lib/__fpending.h, lib/__fpending.c: Remove files.
47708         * modules/fpending (Files): Reflect new file names.
47709         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
47710
47711 2007-09-08  Bruno Haible  <bruno@clisp.org>
47712
47713         * m4/inttypes-h.m4: Remove stub file.
47714
47715 2007-09-07  Simon Josefsson  <simon@josefsson.org>
47716
47717         * doc/headers/stdint.texi: Discuss #include_next issue.
47718
47719 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
47720
47721         * build-aux/bootstrap: Remove obsolete comment about wget --help.
47722
47723 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47724
47725         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
47726         in variable name.
47727
47728 2007-09-03  Jim Meyering  <jim@meyering.net>
47729
47730         New module: git-version-gen.
47731         * modules/git-version-gen: New file.
47732
47733         Import changes from coreutils for bootstrap script.
47734
47735         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
47736
47737         bootstrap: uses rsync to download the .po files
47738         * build-aux/bootstrap (po_download_command_format): New global.
47739         (download_po_files): Use rsync.
47740         (update_po_files): Don't remove .po files after download,
47741         so future rsync runs can take advantage of the copies.
47742
47743         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
47744
47745         Solve the unnecessary-.po-file-regeneration problem once and for all.
47746         * build-aux/bootstrap (download_po_files): New function, renamed from
47747         get_translations.  Now, downloads, but doesn't update LINGUAS.
47748         (update_po_files): New function.
47749
47750         bootstrap: Ignore more.
47751         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
47752         uniwidth to e.g., lib/.gitignore.
47753         (slurp): Handle the sys_stat_.h -> sys mapping, too.
47754
47755         * build-aux/bootstrap: New setting: vc_ignore.
47756         (insert_sorted_if_absent): Create $file if absent.
47757         Adapt to new, possibly empty, list: $vc_ignore.
47758
47759         bootstrap: generate more ignorable names
47760         * build-aux/bootstrap (slurp): When generating ignorable names,
47761         also map .sin to .sed, .gperf to .c, and .y to .c.
47762
47763 2007-09-03  Jim Meyering  <jim@meyering.net>
47764
47765         * build-aux/git-version-gen: New file, from coreutils.  For details, see
47766         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
47767
47768 2007-09-02  Bruno Haible  <bruno@clisp.org>
47769
47770         Fix mis-recognition of 'mcs' on QNX 6.
47771         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
47772         output contains the string "Mono".
47773         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
47774         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
47775
47776 2007-09-01  Bruno Haible  <bruno@clisp.org>
47777
47778         Fix collision between uniwidth/* and linebreak modules.
47779         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
47780         u32_width): Remove declarations.
47781         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
47782         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
47783         streq3, streq2, streq1, streq0): Remove functions.
47784         (STREQ): Remove macro.
47785         (is_cjk_encoding): Remove function.
47786         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
47787         (uc_width, u8_width, u16_width, u32_width): Remove functions.
47788         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
47789         * NEWS: Document the change.
47790
47791 2007-09-01  Bruno Haible  <bruno@clisp.org>
47792
47793         * lib/streq.h: Add double-inclusion guard.
47794
47795 2007-09-01  Karl Berry  <karl@gnu.org>
47796
47797         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
47798
47799 2007-08-28  Jim Meyering  <jim@meyering.net>
47800
47801         Rename mreadlink_with_size to areadlink_with_size.
47802         * NEWS: Document the change.
47803         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
47804         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
47805         * lib/mreadlink.h: Rename this to...
47806         * lib/areadlink.h: ...this.
47807         * modules/mreadlink-with-size: Rename this to...
47808         * modules/areadlink-with-size: ...this.
47809         * lib/canonicalize.c: Reflect the renaming.
47810         * modules/canonicalize: Likewise.
47811
47812 2007-08-26  Bruno Haible  <bruno@clisp.org>
47813
47814         * gnulib-tool (func_import): When deciding which files to remove,
47815         consider also dangling symbolic links.
47816         Reported by Eric Blake.
47817
47818 2007-08-26  Bruno Haible  <bruno@clisp.org>
47819
47820         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47821
47822 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47823
47824         * lib/readline.c: Don't include getline.h, the prototype is now
47825         found in stdio.h.
47826
47827 2007-08-23  Jim Meyering  <jim@meyering.net>
47828
47829         Getdelim touchup.
47830         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47831         around the funlockfile call, since funlockfile never sets errno.
47832         Don't set errno upon failed realloc.
47833
47834 2007-08-22  Eric Blake  <ebb9@byu.net>
47835
47836         Getline touchups.
47837         * lib/getdelim.c (getdelim): Revert regression that required *n to
47838         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47839         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47840         getdelim, rather than whether implementation is missing.
47841         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47842         * lib/stdio_.h (getline): Also declare if replacement is
47843         required.
47844         * doc/functions/getdelim.texi: New file.
47845         * doc/functions/getline.texi: Likewise.
47846         * doc/gnulib.texi (Function Substitutes): Add new files.
47847         Reported by Bruno Haible.
47848
47849 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47850
47851         * users.txt: Add Guile.
47852
47853 2007-08-22  Eric Blake  <ebb9@byu.net>
47854
47855         * tests/test-getdelim.c (main): Use remove, not unlink.
47856         * tests/test-getline.c (main): Likewise.
47857
47858         Move getline and getdelim into stdio.h, per POSIX 200x.
47859         * modules/getline (Files): Remove getline.h.
47860         (Depends-on): Add stdio.
47861         (configure.ac): Add module indicator.
47862         * modules/getdelim (Files): Remove getdelim.h.
47863         (Depends-on): Add stdio.
47864         (configure.ac): Add module indicator.
47865         * modules/stdio (Makefile.am): Work with new indicators.
47866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47867         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47868         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47869         * lib/getdelim.h: Delete.
47870         * lib/getline.h: Delete.
47871         * lib/stdio_.h (getdelim, getline): Declare.
47872         * modules/getdelim-tests: New module.
47873         * modules/getline-tests: Likewise.
47874         * tests/test-getdelim.c: New file.
47875         * tests/test-getline.c: Likewise.
47876         * NEWS: Document the change.
47877         * lib/getline.c: Update choice of header.
47878         * lib/csharpcomp.c: Likewise.
47879         * lib/getpass.c: Likewise.
47880         * lib/javacomp.c: Likewise.
47881         * lib/javaversion.c: Likewise.
47882         * lib/yesno.c: Likewise.
47883         * lib/getdelim.c: Likewise.
47884         (getdelim): Set errno on failure, and avoid memory leak.
47885
47886 2007-08-19  Bruno Haible  <bruno@clisp.org>
47887
47888         * modules/closein (Depends-on): Add freadahead.
47889         * lib/closein.c: Include freadahead.h.
47890         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47891         is zero.
47892
47893 2007-08-19  Bruno Haible  <bruno@clisp.org>
47894
47895         * modules/freadahead-tests: New file.
47896         * tests/test-freadahead.sh: New file.
47897         * tests/test-freadahead.c: New file.
47898
47899         * modules/freadahead: New file.
47900         * lib/freadahead.h: New file.
47901         * lib/freadahead.c: New file.
47902         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47903         fbufmode, fpurge, freadable, fwritable.
47904
47905 2007-08-19  Eric Blake  <ebb9@byu.net>
47906
47907         Test yesno in combination with closein.
47908         * lib/yesno.c (yesno): Document use of stdin.
47909         * modules/yesno-tests (Files): New module.
47910         * tests/test-yesno.c (main): New file.
47911         * tests/test-yesno.sh: Likewise.
47912
47913 2007-08-19  Bruno Haible  <bruno@clisp.org>
47914
47915         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47916         * lib/fseeko.c (rpl_fseeko): Likewise.
47917         * lib/fseterr.c (fseterr): Likewise.
47918
47919 2007-08-19  Bruno Haible  <bruno@clisp.org>
47920
47921         * tests/test-lseek.c (main): Disable a test for BeOS.
47922         * doc/functions/lseek.texi: Document the BeOS bug.
47923
47924 2007-08-19  Bruno Haible  <bruno@clisp.org>
47925             Eric Blake  <ebb9@byu.net>
47926
47927         * lib/lseek.c: Include <sys/stat.h>.
47928         (rpl_lseek): Add workaround code also for Unix platforms.
47929         Needed for BeOS.
47930         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47931         * doc/functions/lseek.texi: Document BeOS definiency.
47932
47933 2007-08-18  Bruno Haible  <bruno@clisp.org>
47934
47935         * modules/fstrcmp-tests: New file.
47936         * tests/test-fstrcmp.c: New file.
47937
47938 2007-08-18  Bruno Haible  <bruno@clisp.org>
47939
47940         * modules/fstrcmp: New file, from GNU gettext with modifications.
47941         * lib/fstrcmp.h: New file, from GNU gettext.
47942         * lib/fstrcmp.c: New file, from GNU gettext.
47943         * MODULES.html.sh (String handling): Add fstrcmp.
47944
47945 2007-08-18  Bruno Haible  <bruno@clisp.org>
47946
47947         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47948         'bool'.
47949         (diag, compareseq): Remove const from the ctxt argument.
47950         (USE_HEURISTIC): Undefine at the end.
47951
47952 2007-08-18  Jim Meyering  <jim@meyering.net>
47953
47954         New file: lib/idcache.h
47955         * NEWS: Mention the addition.
47956         * modules/idcache (Files): Add lib/idcache.h
47957         * lib/idcache.c: Include "idcache.h".
47958         Don't include <sys/types.h>.
47959         Add a FIXME comment.
47960         Move file-scoped "static" declarations to the top.
47961         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47962
47963 2007-08-17  Bruno Haible  <bruno@clisp.org>
47964         and Paul Eggert  <eggert@cs.ucla.edu>
47965
47966         * MODULES.html.sh: Add diffseq.
47967         * modules/diffseq: New file.
47968         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47969         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47970
47971 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47972
47973         Import changes from coreutils for bootstrap script.
47974
47975         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47976
47977         * build-aux/bootstrap (slurp): Work even in environments where
47978         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47979         current code does not slurp files whose names start with ".", and
47980         this looks like it might be a troublesome area.
47981
47982         2007-07-11  Jim Meyering  <jim@meyering.net>
47983
47984         If there's a GPL vN copyright comment, require that N == 3.
47985
47986         2007-07-08  Jim Meyering  <jim@meyering.net>
47987
47988         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47989         * build-aux/bootstrap (mam_template): Move definition out of loop.
47990
47991         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47992
47993         * build-aux/bootstrap (symlink_to_dir): Rename function from
47994         symlink_to_gnulib.  Add a directory parameter.  Update all
47995         callers.
47996         (cp_mark_as_generated): Also check for -- and link to -- files in
47997         gl/.
47998
47999         2007-07-08  Jim Meyering  <jim@meyering.net>
48000
48001         Adapt to deeper hierarchy in gnulib.
48002         * build-aux/bootstrap (symlink_to_dir): If the destination
48003         directory doesn't exist, create it. This is required at least for
48004         "lib/uniwidth/cjk.h".
48005
48006         2007-05-15  Jim Meyering  <jim@meyering.net>
48007
48008         * build-aux/bootstrap: Now that generated Makefile.am files
48009         are no longer under version control, they must be created at
48010         bootstrap time.
48011
48012 2007-08-14  Ben Pfaff  <blp@gnu.org>
48013
48014         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48015
48016 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48017
48018         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48019         given the changes below.
48020         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48021         even on hosts that have padding bits beyond the supported 64.
48022
48023 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48024
48025         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48026         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48027         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48028         depends on it.
48029         (xstrtol_error): Remove.
48030         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48031         but with a different signature.
48032         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48033         * lib/xstrtol-error.c: Include exitfail.h.
48034         (xstrtol_fatal): New function, with a different signature from the
48035         old xstrtol_error, so that the caller need not worry about passing
48036         in an exit status, or about storage management of the option argument.
48037         (xstrtol_error): Now a static function.  Redo signature to
48038         implement xstrtol_fatal.  Output the correct number of hyphens in
48039         front of the option so that the caller need not worry about
48040         storage management.
48041         (N_): New macro.
48042         (_): Remove; not used now.
48043         * modules/xstrtol: Depend on getopt.
48044         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48045         of old STRTOL_FATAL_ERROR macro.
48046         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48047         of test program.
48048         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48049         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48050
48051 2007-08-08  Eric Blake  <ebb9@byu.net>
48052
48053         * lib/xstrtol-error.c: Add missing include.
48054
48055         Move xstrtol messages into gnulib domain, when --pobase is used.
48056         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48057         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48058         * modules/xstrtol (Files): Distribute new file.
48059         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48060         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48061         * tests/test-xstrtol.c: ...into new file.
48062         * tests/test-xstrtoul.c: Also test xstrtoul.
48063         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48064         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48065         * tests/test-xstrtol.sh: Drive the tests.
48066         * tests/test-xstrtoimax.sh: Likewise.
48067         * tests/test-xstrtoumax.sh: Likewise.
48068         * modules/xstrtol-tests: New module.
48069         * modules/xstrtoimax-tests: Likewise.
48070         * modules/xstrtoumax-tests: Likewise.
48071
48072 2007-08-08  Jim Meyering  <jim@meyering.net>
48073
48074         New function: mfile_name_concat.
48075         * lib/filenamecat.c (mfile_name_concat): New function, just like
48076         file_name_concat, but return NULL upon failure rather than exiting
48077         with a diagnostic.
48078         * lib/filenamecat.h: Declare it.
48079
48080 2007-08-07  Bruno Haible  <bruno@clisp.org>
48081
48082         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48083         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48084         warning from gcc.
48085         Reported by Eric Blake.
48086
48087 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48088
48089         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48090         * modules/crypto/arcfour (License): Likewise.
48091         * modules/crypto/des-tests (License): Likewise.
48092         * modules/crypto/gc-arctwo-tests (License): Likewise.
48093         * modules/crypto/gc-des-tests (License): Likewise.
48094         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48095         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48096         * modules/crypto/gc-md2-tests (License): Likewise.
48097         * modules/crypto/gc-md4-tests (License): Likewise.
48098         * modules/crypto/gc-md5-tests (License): Likewise.
48099         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48100         * modules/crypto/gc-rijndael-tests (License): Likewise.
48101         * modules/crypto/gc-sha1-tests (License): Likewise.
48102         * modules/crypto/gc-tests (License): Likewise.
48103         * modules/crypto/hmac-md5 (License): Likewise.
48104         * modules/crypto/hmac-sha1 (License): Likewise.
48105         * modules/crypto/md2-tests (License): Likewise.
48106         * modules/crypto/md4-tests (License): Likewise.
48107         * modules/crypto/md5 (License): Likewise.
48108         * modules/crypto/rijndael (License): Likewise.
48109         * modules/crypto/sha1 (License): Likewise.
48110         * modules/memxor (License): Likewise.
48111
48112 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48113         and Bruno Haible  <bruno@clisp.org>
48114
48115         * NEWS: Describe interface changes to human, xstrtol.
48116         * lib/human.h: Include <xstrtol.h>.
48117         (human_options): Return enum strtol_error, not int.  Remove
48118         bool arg; take int * instead.
48119         * lib/human.c: Don't include "gettext.h".
48120         (_): Remove; no longer used.
48121         Don't include <xstrtol.h>, since human.h does it.
48122         (human_options): Adjust to abovementioned interface changes.
48123         Do not report error to stderr; that's now the caller's
48124         responsibility.
48125         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48126         interface change.
48127         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48128         Str, Argument_type_string.  All uses changed.  Put " argument"
48129         in diagnostics to make them clearer.  Change wording of suffix
48130         message for clarity.
48131         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48132         Argument_type_string.
48133         (STRTOL_FATAL_WARN): Remove; no longer used.
48134         * modules/human (Depends-on): Remove gettext-h.
48135
48136 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48137
48138         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48139
48140 2007-07-31  Bruno Haible  <bruno@clisp.org>
48141
48142         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48143         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48144         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48145
48146 2007-07-31  Bruno Haible  <bruno@clisp.org>
48147
48148         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48149         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48150
48151 2007-07-30  Bruno Haible  <bruno@clisp.org>
48152
48153         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48154         * modules/c-ctype (License): Likewise.
48155         * modules/c-strcase (License): Likewise.
48156         * modules/check-version (License): Likewise.
48157         * modules/iconv (License): Likewise.
48158         * modules/iconv_open (License): Likewise.
48159         * modules/read-file (License): Likewise.
48160         * modules/striconv (License): Likewise.
48161         * modules/strverscmp (License): Likewise.
48162         * modules/vasprintf (License): Likewise.
48163         * modules/crypto/des (License): Likewise.
48164         * modules/crypto/gc (License): Likewise.
48165         * modules/crypto/gc-arcfour (License): Likewise.
48166         * modules/crypto/gc-arctwo (License): Likewise.
48167         * modules/crypto/gc-des (License): Likewise.
48168         * modules/crypto/gc-hmac-md5 (License): Likewise.
48169         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48170         * modules/crypto/gc-md2 (License): Likewise.
48171         * modules/crypto/gc-md4 (License): Likewise.
48172         * modules/crypto/gc-md5 (License): Likewise.
48173         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48174         * modules/crypto/gc-random (License): Likewise.
48175         * modules/crypto/gc-rijndael (License): Likewise.
48176         * modules/crypto/gc-sha1 (License): Likewise.
48177         * modules/crypto/md2 (License): Likewise.
48178         * modules/crypto/md4 (License): Likewise.
48179
48180 2007-07-30  Jim Meyering  <jim@meyering.net>
48181
48182         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48183         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48184         it has valid stat data.  This bug would cause du not to count the
48185         sizes of inaccessible directories.
48186         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48187         in <http://bugzilla.redhat.com/250077>.
48188
48189 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48190             Bruno Haible  <bruno@clisp.org>
48191
48192         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48193         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48194         #include_next, gives a diagnostic about it, but reports no error in
48195         the exit code.
48196         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48197
48198 2007-07-24  Ben Pfaff  <blp@gnu.org>
48199
48200         Improve name: "count-one-bits" is better than "popcount".
48201         * MODULES.html.sh: Update name.
48202         * lib/popcount.h: Renamed lib/count-one-bits.h.
48203         (popcount): Renamed count_one_bits.
48204         (popcountl): Renamed count_one_bits_l.
48205         (popcountll): Renamed count_one_bits_ll.
48206         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48207         * modules/popcount: Renamed module/count-one-bits.
48208         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48209         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48210
48211 2007-07-23  Ben Pfaff  <blp@gnu.org>
48212
48213         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48214         better code generation, and add U to large constants to avoid
48215         warnings, in non-GCC case.
48216         Suggested by Bruno Haible.
48217
48218 2007-07-23  Ben Pfaff  <blp@gnu.org>
48219
48220         * lib/popcount.h: Use verify_true instead of if...abort.
48221         * modules/popcount: Depend on verify module.
48222         Suggested by Jim Meyering.
48223
48224 2007-07-23  Bruno Haible  <bruno@clisp.org>
48225
48226         * gnulib-tool (func_import): Create a .cvsignore file also when the
48227         directory is not yet in CVS but the toplevel directory is. When
48228         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48229         Reported by Karl Berry.
48230
48231 2007-07-22  Ben Pfaff  <blp@gnu.org>
48232
48233         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48234         case.
48235         Suggested by Eric Blake.
48236
48237 2007-07-22  Ben Pfaff  <blp@gnu.org>
48238
48239         New module: popcount.
48240         * MODULES.html.sh: Add popcount.
48241         * modules/popcount: New file.
48242         * modules/popcount-tests: New file.
48243         * tests/test-popcount.c: New file.
48244         * lib/popcount.h: New file.
48245         * m4/popcount.m4: New file.
48246
48247 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48248
48249         * build-aux/announce-gen: Update to GPLv3.
48250
48251         * build-aux/config.guess: Update from config.
48252
48253 2007-07-21  Bruno Haible  <bruno@clisp.org>
48254
48255         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48256         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48257
48258 2007-07-20  Jim Meyering  <jim@meyering.net>
48259
48260         * check-module: Diagnose a self-dependency.
48261
48262 2007-07-19  Bruno Haible  <bruno@clisp.org>
48263
48264         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48265         empty.
48266         Reported by Eric Blake.
48267
48268 2007-07-18  Bruno Haible  <bruno@clisp.org>
48269
48270         * gnulib-tool: New options --po-base, --po-domain.
48271         (func_usage): Document them.
48272         (pobase, po_domain): New variables.
48273         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48274         DEFAULT_TEXT_DOMAIN.
48275         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48276         (func_import): Consider pobase and po_domain. Create a po/ directory.
48277         (func_create_testdir): Set pobase and po_domain to empty.
48278         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48279         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48280
48281 2007-07-18  Bruno Haible  <bruno@clisp.org>
48282
48283         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48284         EXTRA_DIST augmentation for files in build-aux/.
48285
48286 2007-07-16  Bruno Haible  <bruno@clisp.org>
48287
48288         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48289         * modules/getdelim (License): Likewise.
48290
48291 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48292
48293         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48294         * modules/d-type (License): Likewise.
48295         * modules/extensions (License): Likewise.
48296         * modules/fnmatch (License): Likewise.
48297         * modules/fseeko (License): Likewise.
48298         * modules/getaddrinfo (License): Likewise.
48299         * modules/getline (License): Likewise.
48300         * modules/getlogin_r (License): Likewise.
48301         * modules/getpass (License): Likewise.
48302         * modules/gettimeofday (License): Likewise.
48303         * modules/glob (License): Likewise.
48304         * modules/inet_ntop (License): Likewise.
48305         * modules/malloc (License): Likewise.
48306         * modules/malloca (License): Likewise.
48307         * modules/memmem (License): Likewise.
48308         * modules/mempcpy (License): Likewise.
48309         * modules/memset (License): Likewise.
48310         * modules/minmax (License): Likewise.
48311         * modules/mktime (License): Likewise.
48312         * modules/netinet_in (License): Likewise.
48313         * modules/pathmax (License): Likewise.
48314         * modules/poll (License): Likewise.
48315         * modules/regex (License): Likewise.
48316         * modules/snprintf (License): Likewise.
48317         * modules/stdbool (License): Likewise.
48318         * modules/stdint (License): Likewise.
48319         * modules/stdio (License): Likewise.
48320         * modules/strcase (License): Likewise.
48321         * modules/strcasestr (License): Likewise.
48322         * modules/strdup (License): Likewise.
48323         * modules/string (License): Likewise.
48324         * modules/strndup (License): Likewise.
48325         * modules/strnlen (License): Likewise.
48326         * modules/strpbrk (License): Likewise.
48327         * modules/strptime (License): Likewise.
48328         * modules/strsep (License): Likewise.
48329         * modules/sys_select (License): Likewise.
48330         * modules/sys_socket (License): Likewise.
48331         * modules/sys_stat (License): Likewise.
48332         * modules/sys_time (License): Likewise.
48333         * modules/time (License): Likewise.
48334         * modules/time_r (License): Likewise.
48335         * modules/timegm (License): Likewise.
48336         * modules/unistd (License): Likewise.
48337         * modules/vsnprintf (License): Likewise.
48338         * modules/wctype (License): Likewise.
48339
48340 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48341
48342         * modules/argz (License): LGPLv2+.
48343
48344 2007-07-15  Karl Berry  <karl@gnu.org>
48345
48346         * doc/gnulib.texi: revise node structure per new fdl.texi.
48347
48348 2007-07-14  Bruno Haible  <bruno@clisp.org>
48349
48350         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48351         the output file.
48352         * lib/uniname/uninames.h: Regenerated.
48353
48354 2007-07-14  Karl Berry  <karl@gnu.org>
48355
48356         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48357         omitting sectioning and index commands.
48358
48359 2007-07-13  Bruno Haible  <bruno@clisp.org>
48360
48361         New gnulib-tool option --more-symlinks.
48362         * gnulib-tool (func_usage): Document --more-symlinks.
48363         (do_copyrights): New variable.
48364         Recognize option --more-symlinks.
48365         (func_import): Don't add a copyright notice transform to
48366         sed_transform_lib_file if do_copyrights is empty.
48367
48368 2007-07-13  Bruno Haible  <bruno@clisp.org>
48369
48370         * lib/vasnprintf.c (decimal_point_char): Define also if
48371         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48372         && !NEED_PRINTF_DIRECTIVE_A.
48373         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48374         Gary V. Vaughan <gary@gnu.org>.
48375
48376 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48377
48378         * lib/inttypes_.h: Undo previous change, since it was fixed
48379         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48380
48381 2007-07-13  Bruno Haible  <bruno@clisp.org>
48382
48383         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48384         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48385
48386 2007-07-13  Jim Meyering  <jim@meyering.net>
48387
48388         df: Don't fail for Tru64's "file-on-file mount".
48389         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48390         so we fall through and use statfs instead.  Details here:
48391         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48392         Reported by Albert Chin.
48393
48394 2007-07-13  Bruno Haible  <bruno@clisp.org>
48395
48396         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48397         * modules/configmake (License): Likewise.
48398         * modules/gettext (License): Likewise.
48399         * modules/gettext-h (License): Likewise.
48400         * modules/include_next (License): Likewise.
48401         * modules/link-warning (License): Likewise.
48402         * modules/localcharset (License): Likewise.
48403         * modules/localename (License): Likewise.
48404         * modules/lock (License): Likewise.
48405         * modules/relocatable-lib-lgpl (License): Likewise.
48406         * modules/size_max (License): Likewise.
48407         * modules/vasnprintf (License): Likewise.
48408         * modules/wchar (License): Likewise.
48409         * modules/xsize (License): Likewise.
48410
48411 2007-07-13  Bruno Haible  <bruno@clisp.org>
48412
48413         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48414         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48415
48416 2007-07-12  Bruno Haible  <bruno@clisp.org>
48417
48418         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48419         in the modules files.
48420
48421 2007-07-11  Karl Berry  <karl@gnu.org>
48422
48423         * MODULES.html.sh (func_module): use
48424          sed -e '\|^'"${includefile}"'$|d'
48425          instead of /.../d, to avoid errors on $includefile's containing /.
48426
48427 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48428
48429         * gnulib-tool (func_import): Avoid duplication of --avoid
48430         statements
48431         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48432         names to `_' in variable names.
48433
48434 2007-07-10  Eric Blake  <ebb9@byu.net>
48435
48436         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48437         * NEWS: Document this change.
48438
48439 2007-07-08  Bruno Haible  <bruno@clisp.org>
48440
48441         Update to Unicode 5.0.
48442         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48443         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48444         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48445         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48446         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48447         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48448         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48449         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48450         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48451         U+10A3F, U+1D242..U+1D244.
48452         (nonspacing_table_ind): Update.
48453         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48454         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48455
48456 2007-07-08  Bruno Haible  <bruno@clisp.org>
48457
48458         Update to Unicode 5.0.
48459         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48460         code transform. Extend the name index field of unicode_name_to_code and
48461         unicode_code_to_name from 16 to 24 bits.
48462         * lib/uniname/uniname.c (unicode_character_name,
48463         unicode_name_character): Add the range 0x12xxx to the code transform.
48464         * lib/uniname/uninames.h: Regenerated.
48465         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48466
48467 2007-07-07  Bruno Haible  <bruno@clisp.org>
48468
48469         * modules/wcwidth-tests: New file.
48470         * tests/test-wcwidth.c: New file.
48471
48472         Work around MacOS X wcwidth() bug.
48473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48474         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48475         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48476         original wcwidth in non-UTF-8 locales.
48477         * modules/wcwidth (Depends-on): Add localcharset, streq,
48478         uniwidth/width.
48479         * doc/functions/wcwidth.texi: Update.
48480
48481 2007-07-07  Bruno Haible  <bruno@clisp.org>
48482
48483         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48484         (wcwidth): New declaration.
48485         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48486         macros.
48487         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48488         here. Prepare for creating <wchar.h> unconditionally.
48489         * modules/wchar (Depends-on): Add link-warning.
48490         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48491         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48492         * lib/wcwidth.h: Remove file.
48493         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48494         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48495         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48496         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48497         (Include): Replace wcwidth.h with <wchar.h>.
48498         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48499         * lib/mbchar.h: Don't include wcwidth.h.
48500         * lib/mbswidth.c: Likewise.
48501         * NEWS: Mention the change.
48502
48503 2007-07-07  Bruno Haible  <bruno@clisp.org>
48504
48505         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48506         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48507         definition with an external declaration.
48508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48509         defined as a function. Remove AC_C_INLINE requirement.
48510         * modules/wcwidth (Files): Add lib/wcwidth.c.
48511         (Makefile.am): Remove redundant statement.
48512
48513 2007-07-07  Bruno Haible  <bruno@clisp.org>
48514
48515         * MODULES.html.sh (Unicode string functions): Add the new modules.
48516
48517         * tests/uniwidth/test-u32-strwidth.c: New file.
48518         * modules/uniwidth/u32-strwidth-tests: New file.
48519
48520         * lib/uniwidth/u32-strwidth.c: New file.
48521         * modules/uniwidth/u32-strwidth: New file.
48522
48523         * tests/uniwidth/test-u16-strwidth.c: New file.
48524         * modules/uniwidth/u16-strwidth-tests: New file.
48525
48526         * lib/uniwidth/u16-strwidth.c: New file.
48527         * modules/uniwidth/u16-strwidth: New file.
48528
48529         * tests/uniwidth/test-u8-strwidth.c: New file.
48530         * modules/uniwidth/u8-strwidth-tests: New file.
48531
48532         * lib/uniwidth/u8-strwidth.c: New file.
48533         * modules/uniwidth/u8-strwidth: New file.
48534
48535         * tests/uniwidth/test-u32-width.c: New file.
48536         * modules/uniwidth/u32-width-tests: New file.
48537
48538         * lib/uniwidth/u32-width.c: New file.
48539         * modules/uniwidth/u32-width: New file.
48540
48541         * tests/uniwidth/test-u16-width.c: New file.
48542         * modules/uniwidth/u16-width-tests: New file.
48543
48544         * lib/uniwidth/u16-width.c: New file.
48545         * modules/uniwidth/u16-width: New file.
48546
48547         * tests/uniwidth/test-u8-width.c: New file.
48548         * modules/uniwidth/u8-width-tests: New file.
48549
48550         * lib/uniwidth/u8-width.c: New file.
48551         * modules/uniwidth/u8-width: New file.
48552
48553         * tests/uniwidth/test-uc_width.c: New file.
48554         * modules/uniwidth/width-tests: New file.
48555
48556         * lib/uniwidth/width.c: New file, from GNU libiconv.
48557         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
48558         * modules/uniwidth/width: New file.
48559
48560         * lib/uniwidth.h: New file, from GNU libiconv.
48561         * modules/uniwidth/base: New file.
48562
48563 2007-07-07  Bruno Haible  <bruno@clisp.org>
48564
48565         * lib/uniname.h: New file, from GNU gettext.
48566         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
48567         * lib/uniname/uninames.h: New file, from GNU gettext.
48568         * lib/uniname/uniname.c: New file, from GNU gettext.
48569         * tests/uniname/test-uninames.sh: New file.
48570         * tests/uniname/test-uninames.c: New file, from GNU gettext.
48571         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
48572         * modules/uniname/base: New file.
48573         * modules/uniname/uniname: New file.
48574         * modules/uniname/uniname-tests: New file.
48575         * MODULES.html.sh (Unicode string functions): Add the new modules.
48576
48577 2007-07-06  Bruno Haible  <bruno@clisp.org>
48578
48579         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
48580
48581 2007-07-06  Bruno Haible  <bruno@clisp.org>
48582
48583         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
48584         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
48585         includes <cygwin/sys_time.h> which includes <sys/select.h> which
48586         include <sys/time.h>.
48587         Reported by Eric Blake.
48588
48589 2007-07-06  Eric Blake  <ebb9@byu.net>
48590
48591         Fix testing canonicalize on cygwin.
48592         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48593         Revert patch from 2007-06-19.
48594         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
48595         canonicalize module is also in use.
48596         * tests/test-canonicalize.c: New file.
48597         * tests/test-canonicalize.sh: Likewise.
48598         * modules/canonicalize-tests: Likewise.
48599
48600 2007-07-06  Jim Meyering  <jim@meyering.net>
48601
48602         * lib/getugroups.c (getugroups): Detect getgrent failure.
48603         Adjust comment to reflect reality: this function may return -1.
48604
48605 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
48606
48607         * build-aux/bootstrap (TP_URL,get_translations): Update to use
48608         the new TP address.
48609         (usage): Fix typo
48610         (gnulib_mk): New variable.
48611
48612 2007-07-05  Jim Meyering  <jim@meyering.net>
48613
48614         Don't let endgrent clobber errno, no matter how improbable.
48615         * lib/getugroups.c (getugroups): Save and restore errno around
48616         endgrent call.
48617
48618         Close the group DB even when failing with 2^31 or more members.
48619         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
48620
48621 2007-07-04  Jim Meyering  <jim@meyering.net>
48622
48623         * lib/getugroups.h: New file.
48624         * lib/getugroups.c: Include "getugroups.h".
48625         Remove uses of "register" keyword.
48626         Move local variable, "cp", down into scope where used.
48627         Give "username" parameter the "const" attribute.
48628         * modules/getugroups (Files): Add lib/getugroups.h
48629
48630 2007-07-04  Karl Berry  <karl@gnu.org>
48631
48632         * MODULES.html.sh (func_all_modules): Complete rename of
48633         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
48634
48635 2007-07-02  Bruno Haible  <bruno@clisp.org>
48636
48637         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
48638         mode, when inttypes.h comes from gnulib.
48639         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48640
48641 2007-07-02  Simon Josefsson  <simon@josefsson.org>
48642
48643         * NEWS: Mention lgpl module name change.
48644
48645         * modules/lgpl-2.1: Renamed from lgpl.
48646
48647         * NEWS: Mention gpl module name change.
48648
48649         * modules/gpl-3.0: New file, based on gpl-2.0.
48650
48651         * modules/gpl-2.0: Renamed from gpl.
48652
48653         * modules/gpl: Fix filename, doc/gpl.texi is now found at
48654         doc/gpl-2.0.texi.
48655
48656 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
48657
48658         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
48659         #define __STDC_LIMIT_MACROS temporarily while including
48660         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
48661         Problem reported by Joel E. Denny in
48662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
48663
48664 2007-07-01  Bruno Haible  <bruno@clisp.org>
48665
48666         * lib/unistdio.h: New file.
48667         * lib/unistdio/u-asnprintf.h: New file.
48668         * lib/unistdio/u-asprintf.h: New file.
48669         * lib/unistdio/u-printf-args.c: New file.
48670         * lib/unistdio/u-printf-args.h: New file.
48671         * lib/unistdio/u-printf-parse.h: New file.
48672         * lib/unistdio/u-snprintf.h: New file.
48673         * lib/unistdio/u-sprintf.h: New file.
48674         * lib/unistdio/u-vasprintf.h: New file.
48675         * lib/unistdio/u-vsnprintf.h: New file.
48676         * lib/unistdio/u-vsprintf.h: New file.
48677         * lib/unistdio/ulc-asnprintf.c: New file.
48678         * lib/unistdio/ulc-asprintf.c: New file.
48679         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
48680         * lib/unistdio/ulc-printf-parse.c: New file.
48681         * lib/unistdio/ulc-snprintf.c: New file.
48682         * lib/unistdio/ulc-sprintf.c: New file.
48683         * lib/unistdio/ulc-vasnprintf.c: New file.
48684         * lib/unistdio/ulc-vasprintf.c: New file.
48685         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
48686         * lib/unistdio/ulc-vsnprintf.c: New file.
48687         * lib/unistdio/ulc-vsprintf.c: New file.
48688         * lib/unistdio/u8-asnprintf.c: New file.
48689         * lib/unistdio/u8-asprintf.c: New file.
48690         * lib/unistdio/u8-printf-parse.c: New file.
48691         * lib/unistdio/u8-snprintf.c: New file.
48692         * lib/unistdio/u8-sprintf.c: New file.
48693         * lib/unistdio/u8-vasnprintf.c: New file.
48694         * lib/unistdio/u8-vasprintf.c: New file.
48695         * lib/unistdio/u8-vsnprintf.c: New file.
48696         * lib/unistdio/u8-vsprintf.c: New file.
48697         * lib/unistdio/u8-u8-asnprintf.c: New file.
48698         * lib/unistdio/u8-u8-asprintf.c: New file.
48699         * lib/unistdio/u8-u8-snprintf.c: New file.
48700         * lib/unistdio/u8-u8-sprintf.c: New file.
48701         * lib/unistdio/u8-u8-vasnprintf.c: New file.
48702         * lib/unistdio/u8-u8-vasprintf.c: New file.
48703         * lib/unistdio/u8-u8-vsnprintf.c: New file.
48704         * lib/unistdio/u8-u8-vsprintf.c: New file.
48705         * lib/unistdio/u16-asnprintf.c: New file.
48706         * lib/unistdio/u16-asprintf.c: New file.
48707         * lib/unistdio/u16-printf-parse.c: New file.
48708         * lib/unistdio/u16-snprintf.c: New file.
48709         * lib/unistdio/u16-sprintf.c: New file.
48710         * lib/unistdio/u16-vasnprintf.c: New file.
48711         * lib/unistdio/u16-vasprintf.c: New file.
48712         * lib/unistdio/u16-vsnprintf.c: New file.
48713         * lib/unistdio/u16-vsprintf.c: New file.
48714         * lib/unistdio/u16-u16-asnprintf.c: New file.
48715         * lib/unistdio/u16-u16-asprintf.c: New file.
48716         * lib/unistdio/u16-u16-snprintf.c: New file.
48717         * lib/unistdio/u16-u16-sprintf.c: New file.
48718         * lib/unistdio/u16-u16-vasnprintf.c: New file.
48719         * lib/unistdio/u16-u16-vasprintf.c: New file.
48720         * lib/unistdio/u16-u16-vsnprintf.c: New file.
48721         * lib/unistdio/u16-u16-vsprintf.c: New file.
48722         * lib/unistdio/u32-asnprintf.c: New file.
48723         * lib/unistdio/u32-asprintf.c: New file.
48724         * lib/unistdio/u32-printf-parse.c: New file.
48725         * lib/unistdio/u32-snprintf.c: New file.
48726         * lib/unistdio/u32-sprintf.c: New file.
48727         * lib/unistdio/u32-vasnprintf.c: New file.
48728         * lib/unistdio/u32-vasprintf.c: New file.
48729         * lib/unistdio/u32-vsnprintf.c: New file.
48730         * lib/unistdio/u32-vsprintf.c: New file.
48731         * lib/unistdio/u32-u32-asnprintf.c: New file.
48732         * lib/unistdio/u32-u32-asprintf.c: New file.
48733         * lib/unistdio/u32-u32-snprintf.c: New file.
48734         * lib/unistdio/u32-u32-sprintf.c: New file.
48735         * lib/unistdio/u32-u32-vasnprintf.c: New file.
48736         * lib/unistdio/u32-u32-vasprintf.c: New file.
48737         * lib/unistdio/u32-u32-vsnprintf.c: New file.
48738         * lib/unistdio/u32-u32-vsprintf.c: New file.
48739         * tests/unistdio/test-ulc-asnprintf1.c: New file.
48740         * tests/unistdio/test-ulc-asnprintf1.h: New file.
48741         * tests/unistdio/test-ulc-printf1.h: New file.
48742         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
48743         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
48744         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
48745         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
48746         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
48747         * tests/unistdio/test-ulc-vasprintf1.c: New file.
48748         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
48749         * tests/unistdio/test-ulc-vsprintf1.c: New file.
48750         * tests/unistdio/test-u8-asnprintf1.c: New file.
48751         * tests/unistdio/test-u8-asnprintf1.h: New file.
48752         * tests/unistdio/test-u8-printf1.h: New file.
48753         * tests/unistdio/test-u8-vasnprintf1.c: New file.
48754         * tests/unistdio/test-u8-vasnprintf2.c: New file.
48755         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
48756         * tests/unistdio/test-u8-vasnprintf3.c: New file.
48757         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
48758         * tests/unistdio/test-u8-vasprintf1.c: New file.
48759         * tests/unistdio/test-u8-vsnprintf1.c: New file.
48760         * tests/unistdio/test-u8-vsprintf1.c: New file.
48761         * tests/unistdio/test-u16-asnprintf1.c: New file.
48762         * tests/unistdio/test-u16-asnprintf1.h: New file.
48763         * tests/unistdio/test-u16-printf1.h: New file.
48764         * tests/unistdio/test-u16-vasnprintf1.c: New file.
48765         * tests/unistdio/test-u16-vasnprintf2.c: New file.
48766         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
48767         * tests/unistdio/test-u16-vasnprintf3.c: New file.
48768         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
48769         * tests/unistdio/test-u16-vasprintf1.c: New file.
48770         * tests/unistdio/test-u16-vsnprintf1.c: New file.
48771         * tests/unistdio/test-u16-vsprintf1.c: New file.
48772         * tests/unistdio/test-u32-asnprintf1.c: New file.
48773         * tests/unistdio/test-u32-asnprintf1.h: New file.
48774         * tests/unistdio/test-u32-printf1.h: New file.
48775         * tests/unistdio/test-u32-vasnprintf1.c: New file.
48776         * tests/unistdio/test-u32-vasnprintf2.c: New file.
48777         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
48778         * tests/unistdio/test-u32-vasnprintf3.c: New file.
48779         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
48780         * tests/unistdio/test-u32-vasprintf1.c: New file.
48781         * tests/unistdio/test-u32-vsnprintf1.c: New file.
48782         * tests/unistdio/test-u32-vsprintf1.c: New file.
48783         * modules/unistdio/base: New file.
48784         * modules/unistdio/u-printf-args: New file.
48785         * modules/unistdio/ulc-asnprintf: New file.
48786         * modules/unistdio/ulc-asprintf: New file.
48787         * modules/unistdio/ulc-fprintf: New file.
48788         * modules/unistdio/ulc-printf-parse: New file.
48789         * modules/unistdio/ulc-snprintf: New file.
48790         * modules/unistdio/ulc-sprintf: New file.
48791         * modules/unistdio/ulc-vasnprintf: New file.
48792         * modules/unistdio/ulc-vasprintf: New file.
48793         * modules/unistdio/ulc-vfprintf: New file.
48794         * modules/unistdio/ulc-vsnprintf: New file.
48795         * modules/unistdio/ulc-vsprintf: New file.
48796         * modules/unistdio/u8-asnprintf: New file.
48797         * modules/unistdio/u8-asprintf: New file.
48798         * modules/unistdio/u8-printf-parse: New file.
48799         * modules/unistdio/u8-snprintf: New file.
48800         * modules/unistdio/u8-sprintf: New file.
48801         * modules/unistdio/u8-vasnprintf: New file.
48802         * modules/unistdio/u8-vasprintf: New file.
48803         * modules/unistdio/u8-vsnprintf: New file.
48804         * modules/unistdio/u8-vsprintf: New file.
48805         * modules/unistdio/u8-u8-asnprintf: New file.
48806         * modules/unistdio/u8-u8-asprintf: New file.
48807         * modules/unistdio/u8-u8-snprintf: New file.
48808         * modules/unistdio/u8-u8-sprintf: New file.
48809         * modules/unistdio/u8-u8-vasnprintf: New file.
48810         * modules/unistdio/u8-u8-vasprintf: New file.
48811         * modules/unistdio/u8-u8-vsnprintf: New file.
48812         * modules/unistdio/u8-u8-vsprintf: New file.
48813         * modules/unistdio/u16-asnprintf: New file.
48814         * modules/unistdio/u16-asprintf: New file.
48815         * modules/unistdio/u16-printf-parse: New file.
48816         * modules/unistdio/u16-snprintf: New file.
48817         * modules/unistdio/u16-sprintf: New file.
48818         * modules/unistdio/u16-vasnprintf: New file.
48819         * modules/unistdio/u16-vasprintf: New file.
48820         * modules/unistdio/u16-vsnprintf: New file.
48821         * modules/unistdio/u16-vsprintf: New file.
48822         * modules/unistdio/u16-u16-asnprintf: New file.
48823         * modules/unistdio/u16-u16-asprintf: New file.
48824         * modules/unistdio/u16-u16-snprintf: New file.
48825         * modules/unistdio/u16-u16-sprintf: New file.
48826         * modules/unistdio/u16-u16-vasnprintf: New file.
48827         * modules/unistdio/u16-u16-vasprintf: New file.
48828         * modules/unistdio/u16-u16-vsnprintf: New file.
48829         * modules/unistdio/u16-u16-vsprintf: New file.
48830         * modules/unistdio/u32-asnprintf: New file.
48831         * modules/unistdio/u32-asprintf: New file.
48832         * modules/unistdio/u32-printf-parse: New file.
48833         * modules/unistdio/u32-snprintf: New file.
48834         * modules/unistdio/u32-sprintf: New file.
48835         * modules/unistdio/u32-vasnprintf: New file.
48836         * modules/unistdio/u32-vasprintf: New file.
48837         * modules/unistdio/u32-vsnprintf: New file.
48838         * modules/unistdio/u32-vsprintf: New file.
48839         * modules/unistdio/u32-u32-asnprintf: New file.
48840         * modules/unistdio/u32-u32-asprintf: New file.
48841         * modules/unistdio/u32-u32-snprintf: New file.
48842         * modules/unistdio/u32-u32-sprintf: New file.
48843         * modules/unistdio/u32-u32-vasnprintf: New file.
48844         * modules/unistdio/u32-u32-vasprintf: New file.
48845         * modules/unistdio/u32-u32-vsnprintf: New file.
48846         * modules/unistdio/u32-u32-vsprintf: New file.
48847         * modules/unistdio/ulc-asnprintf-tests: New file.
48848         * modules/unistdio/ulc-vasnprintf-tests: New file.
48849         * modules/unistdio/ulc-vasprintf-tests: New file.
48850         * modules/unistdio/ulc-vsnprintf-tests: New file.
48851         * modules/unistdio/ulc-vsprintf-tests: New file.
48852         * modules/unistdio/u8-asnprintf-tests: New file.
48853         * modules/unistdio/u8-vasnprintf-tests: New file.
48854         * modules/unistdio/u8-vasprintf-tests: New file.
48855         * modules/unistdio/u8-vsnprintf-tests: New file.
48856         * modules/unistdio/u8-vsprintf-tests: New file.
48857         * modules/unistdio/u16-asnprintf-tests: New file.
48858         * modules/unistdio/u16-vasnprintf-tests: New file.
48859         * modules/unistdio/u16-vasprintf-tests: New file.
48860         * modules/unistdio/u16-vsnprintf-tests: New file.
48861         * modules/unistdio/u16-vsprintf-tests: New file.
48862         * modules/unistdio/u32-asnprintf-tests: New file.
48863         * modules/unistdio/u32-vasnprintf-tests: New file.
48864         * modules/unistdio/u32-vasprintf-tests: New file.
48865         * modules/unistdio/u32-vsnprintf-tests: New file.
48866         * modules/unistdio/u32-vsprintf-tests: New file.
48867         * MODULES.html.sh (Unicode string functions): Add the new modules.
48868
48869 2007-07-01  Bruno Haible  <bruno@clisp.org>
48870
48871         * lib/sprintf.c (sprintf): Limit the available length estimation,
48872         to avoid address wraparound.
48873         * lib/vsprintf.c (vsprintf): Likewise.
48874         * modules/sprintf-posix (Dependencies): Add stdint.
48875         * modules/vsprintf-posix (Dependencies): Likewise.
48876
48877 2007-07-01  Bruno Haible  <bruno@clisp.org>
48878
48879         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48880         Windows PATH as well. Conservative double-quoting. Comments.
48881
48882 2007-07-01  Bruno Haible  <bruno@clisp.org>
48883             Eric Blake  <ebb9@byu.net>
48884             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48885
48886         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48887         empty components in $PATH, denoting '.'.
48888
48889 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48890
48891         * gnulib-tool: Fix indentation.
48892         (func_create_megatestdir): Likewise.
48893         Report by Bruno Haible.
48894
48895 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48896
48897         Sync from Automake.
48898         * build-aux/gnupload: Fix shell portability issues with for loops.
48899         Report by Karl Berry.
48900
48901 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48902
48903         * build-aux/maint.mk (POURL): Use translationproject.org.
48904
48905 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48906             Bruno Haible  <bruno@clisp.org>
48907
48908         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48909         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48910         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48911         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48912         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48913
48914 2007-06-27  Bruno Haible  <bruno@clisp.org>
48915
48916         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48917         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48918
48919 2007-06-26  Karl Berry  <karl@gnu.org>
48920
48921         * MODULES.html.sh: remove xreadlink-with-size.
48922
48923 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48924
48925         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48926         method that I hope also handles the double-include problem noted
48927         by Bruno Haible in
48928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48929
48930 2007-06-23  Bruno Haible  <bruno@clisp.org>
48931
48932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48933         Don't let the 'mostlyclean' target fail if the last subdirectory could
48934         not be removed.
48935         Reported by Karl Berry.
48936
48937 2007-06-23  Bruno Haible  <bruno@clisp.org>
48938
48939         * gnulib-tool (echo): Add a speedier workaround for ksh.
48940         * tests/test-echo.sh: Likewise.
48941
48942 2007-06-23  Bruno Haible  <bruno@clisp.org>
48943
48944         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48945         * tests/test-echo.sh: Likewise.
48946
48947 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48948
48949         * gnulib-tool (IFS): Initialize early, so we don't set it to
48950         empty later.
48951         (self_abspathname): Rewrite algorithm to set it, reindent.
48952         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48953         (func_create_megatestdir): Merge some sed scripts.
48954
48955 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48956
48957         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48958         exposed by Sun Studio 11 cc on Solaris 8.
48959
48960 2007-06-22  Bruno Haible  <bruno@clisp.org>
48961
48962         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48963         backslashes.
48964         * tests/test-echo.sh: New file.
48965
48966 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48967
48968         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48969         simplify `sed_replace_build_aux' scripts, they are portable but
48970         echoing them with `echo' is not.
48971         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48972
48973 2007-06-21  Karl Berry  <karl@gnu.org>
48974
48975         * config/srclist.txt: guess we can't handle the licenses via
48976         srclist at the moment.
48977
48978 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48979
48980         * MODULES.html.sh: Add include_next.
48981         * modules/include_next: New file.
48982
48983 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48984
48985         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48986         INCLUDE_NEXT.
48987         (gl_CHECK_NEXT_HEADERS): New macro.
48988         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48989         the obsolescent gl_ABSOLUTE_HEADER.
48990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48991         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48992         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48993         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48994         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48995         * m4/math_h.m4 (gl_MATH_H): Likewise.
48996         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48997         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48998         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48999         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49000         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49001         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49002         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49003         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49004         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49005         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49006         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49007         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49008         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49009         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49010         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49011         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49012         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49013         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49014         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49015         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49016         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49017         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49018         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49019         * lib/float_.h: Likewise.
49020         * lib/inttypes_.h: Likewise.
49021         * lib/math_.h: Likewise.
49022         * lib/search_.h: Likewise.
49023         * lib/signal_.h: Likewise.
49024         * lib/stdint_.h: Likewise.
49025         * lib/stdio_.h: Likewise.
49026         * lib/stdlib_.h: Likewise.
49027         * lib/string_.h: Likewise.
49028         * lib/sys_stat_.h: Likewise.
49029         * lib/sys_time_.h: Likewise.
49030         * lib/time_.h: Likewise.
49031         * lib/unistd_.h: Likewise.
49032         * lib/wchar_.h: Likewise.
49033         * lib/wctype_.h: Likewise.
49034         * lib/dirent_.h: Likewise.
49035         * lib/iconv_.h: Likewise.
49036         * lib/locale_.h: Likewise.
49037         * lib/netinet_in_.h: Likewise.
49038         * lib/sys_select_.h: Likewise.
49039         * lib/sys_socket_.h: Likewise.
49040         * lib/sysexits_.h: Likewise.
49041         * modules/fcntl (Depends-on): Depend on include_next, not
49042         absolute_header.
49043         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49044         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49045         * modules/fchdir: Likewise.
49046         * modules/float: Likewise.
49047         * modules/iconv_open: Likewise.
49048         * modules/inttypes: Likewise.
49049         * modules/locale: Likewise.
49050         * modules/math: Likewise.
49051         * modules/netinet_in: Likewise.
49052         * modules/search: Likewise.
49053         * modules/signal: Likewise.
49054         * modules/stdint: Likewise.
49055         * modules/stdio: Likewise.
49056         * modules/stdlib: Likewise.
49057         * modules/string: Likewise.
49058         * modules/sys_select: Likewise.
49059         * modules/sys_socket: Likewise.
49060         * modules/sys_stat: Likewise.
49061         * modules/sys_time: Likewise.
49062         * modules/sysexits: Likewise.
49063         * modules/time: Likewise.
49064         * modules/unistd: Likewise.
49065         * modules/wchar: Likewise.
49066         * modules/wctype: Likewise.
49067         * modules/sys_stat: Change maintainer to "all".
49068         * modules/unistd: Likewise.
49069
49070 2007-06-20  Karl Berry  <karl@gnu.org>
49071
49072         * config/srclist.txt: track www changes in license files.
49073
49074 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49075
49076         * build-aux/bootstrap: Remove stray dot.
49077         Make sure build_aux settings are honored when linking
49078         gnulib_extra_files.
49079
49080 2007-06-19  Eric Blake  <ebb9@byu.net>
49081
49082         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49083         Allow compilation on cygwin.
49084
49085 2007-06-19  Jim Meyering  <jim@meyering.net>
49086
49087         xreadlink-with-size: Remove module.  No longer used.
49088         Ex-callers now use xreadlink or mreadlink-with-size.
49089         * modules/xreadlink-with-size: Remove module.
49090         * lib/xreadlink-with-size.c: Remove file.
49091         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49092         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49093         just before the function definition *is* accurate.
49094
49095         Eliminate one way canonicalize_filename_mode could exit.
49096         * lib/canonicalize.c (canonicalize_filename_mode):
49097         Use mreadlink_with_size, not xreadlink_with_size.
49098
49099 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49100
49101         Detect porting problems to FreeBSD/arm, which has time_t wider than
49102         long int.  Original problem reported for GNU diff by Xin Li in
49103         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49104         * modules/getdate (Depends-on): Add intprops, verify.
49105         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49106         is an integer type no wider than long int.
49107
49108 2007-06-18  Jim Meyering  <jim@meyering.net>
49109
49110         New module: mreadlink-with-size.
49111         * MODULES.html.sh: Add mreadlink-with-size.
49112         * modules/mreadlink-with-size: New module
49113         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49114         not xreadlink-with-size.
49115         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49116
49117 2007-06-16  Bruno Haible  <bruno@clisp.org>
49118
49119         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49120         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49121         Reported by Gary V. Vaughan <gary@gnu.org>.
49122
49123 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49124
49125         Revamp lchown so that it lives in unistd.h where it belongs.
49126         * lib/lchown.h: Remove.
49127         * lib/dirchownmod.c: Don't include lib/lchown.h.
49128         * lib/fchownat.c: Likewise.
49129         * lib/openat.c: Likewise.
49130         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49131         does not follow symlinks.
49132         (EOPNOTSUPP): Define if not defined.
49133         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49134         is defined to 0.
49135         (lchown): New decl.
49136         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49137         Do not check for lchown decl.
49138         Set REPLACE_LCHOWN.
49139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49140         REPLACE_LCHOWN.
49141         * modules/chown: Make it clear it follows symlinks.
49142         * modules/lchown: Make it clear it doesn't follow symlinks.
49143         (Files): Remove lib/lchown.h
49144         (Depends-on): Add unistd.
49145         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49146         (Include): Include <unistd.h>, not "lchown.h".
49147         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49148         REPLACE_LCHOWN.
49149
49150 2007-06-15  Jim Meyering  <jim@meyering.net>
49151
49152         Change license (GPL to LGPL) of fsusage and dependents.
49153         * modules/fsusage (License): Change to LGPL.
49154         * modules/full-read (License): Likewise.
49155         * modules/full-write (License): Likewise.
49156         * modules/safe-read (License): Likewise.
49157         * modules/safe-write (License): Likewise.
49158
49159 2007-06-14  Ben Pfaff  <blp@gnu.org>
49160
49161         Missing part of allocsa -> malloca transition.
49162         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49163         gl_MALLOCA.
49164
49165 2007-06-12  Bruno Haible  <bruno@clisp.org>
49166
49167         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49168         to ia64, x86_64, i386.
49169         Reported by Eric Blake.
49170
49171 2007-06-12  Bruno Haible  <bruno@clisp.org>
49172
49173         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49174         cross-compiling to x86_64.
49175
49176 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49177
49178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49179         glitch reported by Ralf Wildenhues in
49180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49181
49182         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49183         Vin Shelton.
49184
49185 2007-06-11  Bruno Haible  <bruno@clisp.org>
49186
49187         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49188         replacement string.
49189         Reported by Eric Blake.
49190
49191 2007-06-10  Bruno Haible  <bruno@clisp.org>
49192
49193         Prepare vasnprintf code for use with Unicode strings.
49194         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49195         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49196         TYPE_U32_STRING.
49197         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49198         a_u32_string variants.
49199         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49200         * lib/printf-args.c: Don't include config.h and the specification
49201         header if PRINTF_FETCHARGS is already defined.
49202         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49203         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49204         TYPE_U16_STRING, TYPE_U32_STRING.
49205         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49206         u16_directive, u16_directives, u32_directive, u32_directives): New
49207         types.
49208         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49209         New declarations.
49210         * lib/printf-parse.c: Don't include config.h and the specification
49211         header if PRINTF_PARSE is already defined. Eliminate the set of
49212         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49213         them now. Include c-ctype.h.
49214         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49215         directive and CHAR_T_ONLY_ASCII.
49216         * lib/vasnprintf.c: Don't include config.h and the specification header
49217         if VASNPRINTF is already defined.
49218         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49219         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49220         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49221         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49222         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49223         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49224         code accordingly.
49225         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49226         pad_ourselves also in this case, with the 'c' and 's' directives, and
49227         with a different notion of "width".
49228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49229
49230 2007-06-10  Bruno Haible  <bruno@clisp.org>
49231
49232         * modules/unistr/u32-mbsnlen: New file.
49233         * lib/unistr/u32-mbsnlen.c: New file.
49234
49235         * modules/unistr/u16-mbsnlen: New file.
49236         * lib/unistr/u16-mbsnlen.c: New file.
49237
49238         * modules/unistr/u8-mbsnlen: New file.
49239         * lib/unistr/u8-mbsnlen.c: New file.
49240
49241         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49242         declarations.
49243
49244 2007-06-10  Bruno Haible  <bruno@clisp.org>
49245
49246         * lib/string_.h (mbsnlen): New declaration.
49247         * lib/mbsnlen.c: New file.
49248         * m4/mbsnlen.m4: New file.
49249         * modules/mbsnlen: New file.
49250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49251         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49252         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49253
49254 2007-06-10  Bruno Haible  <bruno@clisp.org>
49255
49256         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49257
49258 2007-06-10  Bruno Haible  <bruno@clisp.org>
49259
49260         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49261         * lib/mbuiter.h: Likewise.
49262
49263 2007-06-10  Bruno Haible  <bruno@clisp.org>
49264
49265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49266         declaration.
49267
49268 2007-06-10  Karl Berry  <karl@gnu.org>
49269
49270         * config/srclist.txt: remove gettext entries, Bruno prefers
49271         to update individually.
49272
49273 2007-06-10  Bruno Haible  <bruno@clisp.org>
49274
49275         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49276         'maxlen'. Ensure only length + width bytes are allocated, not
49277         length + 1 + width.
49278
49279 2007-06-09  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49282         (CHAR_T): Remove macro.
49283         (VASNPRINTF): Update.
49284
49285 2007-06-09  Bruno Haible  <bruno@clisp.org>
49286
49287         * MODULES.html.sh (Unicode string functions): Add the new modules.
49288
49289         * modules/uniconv/u32-conv-to-enc: New file.
49290         * lib/uniconv/u32-conv-to-enc.c: New file.
49291         * modules/uniconv/u32-conv-to-enc-tests: New file.
49292         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49293
49294         * modules/uniconv/u16-conv-to-enc: New file.
49295         * lib/uniconv/u16-conv-to-enc.c: New file.
49296         * lib/uniconv/u-conv-to-enc.h: New file.
49297         * modules/uniconv/u16-conv-to-enc-tests: New file.
49298         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49299
49300         * modules/uniconv/u8-conv-to-enc: New file.
49301         * lib/uniconv/u8-conv-to-enc.c: New file.
49302         * modules/uniconv/u8-conv-to-enc-tests: New file.
49303         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49304
49305         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49306         u32_conv_to_encoding): New declarations.
49307
49308 2007-06-09  Bruno Haible  <bruno@clisp.org>
49309
49310         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49311
49312 2007-06-09  Bruno Haible  <bruno@clisp.org>
49313
49314         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49315         * modules/malloca: Renamed from modules/allocsa, updated.
49316         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49317         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49318         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49319         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49320         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49321         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49322         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49323         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49324         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49325         * modules/c-strcasestr (Depends-on): Update.
49326         * lib/c-strcasestr.c: Update.
49327         * modules/c-strstr (Depends-on): Update.
49328         * lib/c-strstr.c: Update.
49329         * modules/canonicalize-lgpl (Depends-on): Update.
49330         * lib/canonicalize-lgpl.c: Update.
49331         * modules/clean-temp (Depends-on): Update.
49332         * lib/clean-temp.c: Update.
49333         * modules/csharpcomp (Depends-on): Update.
49334         * lib/csharpcomp.c: Update.
49335         * modules/csharpexec (Depends-on): Update.
49336         * lib/csharpexec.c: Update.
49337         * modules/javacomp (Depends-on): Update.
49338         * lib/javacomp.c: Update.
49339         * modules/javaexec (Depends-on): Update.
49340         * lib/javaexec.c: Update.
49341         * modules/mbscasestr (Depends-on): Update.
49342         * lib/mbscasestr.c: Update.
49343         * modules/mbsstr (Depends-on): Update.
49344         * lib/mbsstr.c: Update.
49345         * modules/setenv (Depends-on): Update.
49346         * lib/setenv.c: Update.
49347         * modules/strcasestr (Depends-on): Update.
49348         * lib/strcasestr.c: Update.
49349         * modules/striconveha (Depends-on): Update.
49350         * lib/striconveha.c: Update.
49351         * modules/relocatable-prog-wrapper (Files): Update.
49352         * lib/relocwrapper.c: Update.
49353         * build-aux/install-reloc: Update.
49354         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49355
49356 2007-06-08  Bruno Haible  <bruno@clisp.org>
49357
49358         Port to uClibc.
49359         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49360         * lib/fpurge.c (fpurge): Likewise.
49361         * lib/freading.c (freading): Likewise.
49362         * lib/fseeko.c (rpl_fseeko): Likewise.
49363         * lib/fseterr.c (fseterr): Likewise.
49364         * lib/fwriting.c (fwriting): Likewise.
49365         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49366
49367 2007-06-08  Bruno Haible  <bruno@clisp.org>
49368
49369         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49370         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49371         * modules/gettext (Files): Add m4/intlmacosx.m4.
49372
49373 2007-06-07  Bruno Haible  <bruno@clisp.org>
49374
49375         * modules/localename-tests: New file.
49376         * tests/test-localename.c: New file.
49377
49378         New module 'localename'.
49379         * lib/localename.h: New file.
49380         * lib/localename.c: New file, from GNU gettext.
49381         * m4/localename.m4: New file.
49382         * modules/localename: New file.
49383
49384 2007-06-07  Bruno Haible  <bruno@clisp.org>
49385
49386         Work around the lack of <wchar.h> on some builds of uClibc.
49387         * doc/headers/wchar.texi: Update.
49388         * lib/wchar_.h: Include <wchar.h> only if it exists.
49389         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49390         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49391         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49392         doesn't exist.
49393         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49394         * modules/mbfile (Depends-on): Add wchar.
49395         * modules/mbiter (Depends-on): Likewise.
49396         * modules/mbuiter (Depends-on): Likewise.
49397         Reported by Simon Josefsson.
49398
49399 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49400
49401         Work around problem reported by Steven M. Schweda in
49402         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49403         Tru64 5.1B with the Compaq compiler environment installed declares
49404         an 'isblank' function but does not define it in the C library.
49405         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49406         * lib/regex_internal.h (isblank): Likewise.
49407         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49408         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49409
49410 2007-06-05  Bruno Haible  <bruno@clisp.org>
49411
49412         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49413         ia64.
49414         * modules/printf-safe: New file.
49415         * modules/fprintf-posix (Depends-on): Add printf-safe.
49416         * modules/printf-posix (Depends-on): Likewise.
49417         * modules/snprintf-posix (Depends-on): Likewise.
49418         * modules/sprintf-posix (Depends-on): Likewise.
49419         * modules/vasnprintf-posix (Depends-on): Likewise.
49420         * modules/vasprintf-posix (Depends-on): Likewise.
49421         * modules/vfprintf-posix (Depends-on): Likewise.
49422         * modules/vprintf-posix (Depends-on): Likewise.
49423         * modules/vsnprintf-posix (Depends-on): Likewise.
49424         * modules/vsprintf-posix (Depends-on): Likewise.
49425         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49426         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49427         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49428         "no" on i386, x86_64, ia64.
49429         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49430         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49431         on i386, x86_64, ia64.
49432         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49433         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49434         on i386, x86_64, ia64.
49435         * tests/test-vasnprintf-posix.c: Include float.h.
49436         (LDBL80_WORDS): New macro.
49437         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49438         on i386, x86_64, ia64.
49439         * tests/test-vasprintf-posix.c: Include float.h.
49440         (LDBL80_WORDS): New macro.
49441         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49442         on i386, x86_64, ia64.
49443         * tests/test-snprintf-posix.c: Include float.h.
49444         * tests/test-sprintf-posix.c: Likewise.
49445         * tests/test-vsnprintf-posix.c: Likewise.
49446         * tests/test-vsprintf-posix.c: Likewise.
49447
49448 2007-06-05  Bruno Haible  <bruno@clisp.org>
49449
49450         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49451         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49452         non-IEEE numbers on i386, x86_64, ia64.
49453         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49454         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49455         * tests/test-isnanl.h: Include float.h.
49456         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49457
49458 2007-06-05  Bruno Haible  <bruno@clisp.org>
49459
49460         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49461         also the %a / %A. Handle the %a / %A code before this extra handling.
49462
49463 2007-06-05  Bruno Haible  <bruno@clisp.org>
49464
49465         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49466         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49467
49468 2007-06-05  Bruno Haible  <bruno@clisp.org>
49469
49470         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49471         typo in variable name.
49472
49473 2007-06-05  Eric Blake  <ebb9@byu.net>
49474
49475         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49476         Reported by Simon Josefsson.
49477
49478 2007-06-04  Bruno Haible  <bruno@clisp.org>
49479
49480         Avoid test failures on some PowerPC platforms.
49481         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49482         Define differently for PowerPC.
49483         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49484         Reported by Gary V. Vaughan <gary@gnu.org>.
49485
49486 2007-06-02  Bruno Haible  <bruno@clisp.org>
49487
49488         Fix test-stdint failure on FreeBSD/ia64.
49489         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49490         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49491         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49492         * doc/headers/stdint.texi: Update.
49493
49494 2007-06-01  Bruno Haible  <bruno@clisp.org>
49495
49496         * tests/test-binary-io.c (main): Pass a third argument to open().
49497         Reported by Gary V. Vaughan <gary@gnu.org>.
49498
49499 2007-06-01  Bruno Haible  <bruno@clisp.org>
49500
49501         * doc/functions/frexpl.texi: Update for mingw.
49502
49503 2007-06-01  Bruno Haible  <bruno@clisp.org>
49504
49505         * tests/test-lseek.c (main): Disable test of errno for invalid third
49506         argument.
49507         * doc/functions/lseek.texi: Update.
49508         Reported by Gary V. Vaughan <gary@gnu.org>.
49509
49510 2007-05-28  Bruno Haible  <bruno@clisp.org>
49511
49512         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49513
49514 2007-05-31  Eric Blake  <ebb9@byu.net>
49515
49516         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49517         cross compiling.
49518
49519 2007-05-30  Eric Blake  <ebb9@byu.net>
49520         and Bruno Haible  <bruno@clisp.org>
49521
49522         Work around mingw test failures exposed by m4-1.4.9b.
49523         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49524         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49525         moment.
49526
49527 2007-05-30  Bruno Haible  <bruno@clisp.org>
49528
49529         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49530         assuming that they are closed. Needed on HP-UX 11.
49531
49532 2007-05-29  Bruno Haible  <bruno@clisp.org>
49533
49534         Fix a problem with #include_next.
49535         * lib/dirent_.h: Split the double-inclusion guard.
49536         * lib/fcntl_.h: Likewise.
49537         * lib/float_.h: Likewise.
49538         * lib/iconv_.h: Likewise.
49539         * lib/inttypes_.h: Likewise.
49540         * lib/locale_.h: Likewise.
49541         * lib/math_.h: Likewise.
49542         * lib/netinet_in_.h: Likewise.
49543         * lib/search_.h: Likewise.
49544         * lib/signal_.h: Likewise.
49545         * lib/stdint_.h: Likewise.
49546         * lib/stdio_.h: Likewise.
49547         * lib/stdlib_.h: Likewise.
49548         * lib/string_.h: Likewise.
49549         * lib/sys_select_.h: Likewise.
49550         * lib/sys_socket_.h: Likewise.
49551         * lib/sys_stat_.h: Likewise.
49552         * lib/sys_time_.h: Likewise.
49553         * lib/sysexits_.h: Likewise.
49554         * lib/time_.h: Likewise.
49555         * lib/unistd_.h: Likewise.
49556         * lib/wchar_.h: Likewise.
49557         * lib/wctype_.h: Likewise.
49558
49559 2007-05-29  Bruno Haible  <bruno@clisp.org>
49560
49561         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
49562         for the moment.
49563
49564 2007-05-29  Bruno Haible  <bruno@clisp.org>
49565
49566         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
49567         invocation.
49568         Reported by Eric Blake.
49569
49570 2007-05-29  Bruno Haible  <bruno@clisp.org>
49571
49572         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
49573         compiling case.
49574
49575 2007-05-29  Eric Blake  <ebb9@byu.net>
49576             Bruno Haible  <bruno@clisp.org>
49577
49578         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
49579         cross compiles.
49580
49581 2007-05-28  Eric Blake  <ebb9@byu.net>
49582
49583         * modules/closein-tests (test_closein_LDADD): Support test on
49584         cygwin with libtool.
49585
49586 2007-05-28  Bruno Haible  <bruno@clisp.org>
49587
49588         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
49589         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
49590         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
49591         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
49592         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
49593         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
49594         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
49595         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
49596         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
49597
49598 2007-05-28  Eric Blake  <ebb9@byu.net>
49599
49600         Unconditionally include <config.h> in unit tests.
49601         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
49602         * tests/test-allocsa.c, tests/test-arcfour.c,
49603         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
49604         tests/test-array_list.c, tests/test-array_oset.c,
49605         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
49606         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
49607         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
49608         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
49609         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
49610         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
49611         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
49612         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
49613         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
49614         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
49615         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
49616         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
49617         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
49618         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
49619         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
49620         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
49621         test-md5.c, test-memmem.c, test-printf-posix.c,
49622         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
49623         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
49624         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
49625         test-strcasestr.c, test-striconv.c, test-striconveh.c,
49626         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
49627         test-vasnprintf-posix2.c, test-vasnprintf.c,
49628         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
49629         test-vfprintf-posix.c, test-vprintf-posix.c,
49630         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
49631         test-xvasprintf.c: Likewise.
49632
49633 2007-05-28  Bruno Haible  <bruno@clisp.org>
49634
49635         * gnulib-tool (func_import): Remember the --with-tests command-line
49636         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
49637         Reported by Eric Blake.
49638
49639 2007-05-28  Bruno Haible  <bruno@clisp.org>
49640
49641         * modules/ftell-tests: New file.
49642         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
49643         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
49644
49645         * lib/ftell.c: New file.
49646         * modules/ftell: New file.
49647         * m4/ftell.m4: New file.
49648         * doc/functions/ftell.texi: Update.
49649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
49650         REPLACE_FTELL.
49651         * lib/stdio_.h (rpl_ftell): New declaration.
49652         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
49653         REPLACE_FTELL.
49654
49655 2007-05-28  Eric Blake  <ebb9@byu.net>
49656
49657         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
49658
49659 2007-05-28  Bruno Haible  <bruno@clisp.org>
49660
49661         * modules/fseek-tests: New file.
49662         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
49663         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
49664
49665         * lib/fseek.c: New file.
49666         * modules/fseek: New file.
49667         * m4/fseek.m4: New file.
49668         * doc/functions/fseek.texi: Update.
49669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
49670         REPLACE_FSEEK.
49671         * lib/stdio_.h (rpl_fseek): New declaration.
49672         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
49673         REPLACE_FSEEK.
49674
49675 2007-05-28  Bruno Haible  <bruno@clisp.org>
49676
49677         * lib/stdio_.h (fflush): More comments.
49678
49679 2007-05-28  Bruno Haible  <bruno@clisp.org>
49680
49681         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
49682         runtime test.
49683
49684 2007-05-28  Eric Blake  <ebb9@byu.net>
49685
49686         Improve lseek module.
49687         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
49688         * lib/unistd_.h (lseek): Scale back link warning message.
49689         * tests/test-lseek.c: Beef up test.
49690         * tests/test-lseek.sh: Exercise more facets of lseek.
49691         Reported by Bruno Haible.
49692
49693 2007-05-28  Bruno Haible  <bruno@clisp.org>
49694
49695         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
49696         to define.
49697
49698 2007-05-27  Bruno Haible  <bruno@clisp.org>
49699
49700         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
49701
49702 2007-05-27  Bruno Haible  <bruno@clisp.org>
49703
49704         * modules/openmp: New file.
49705         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
49706         Noah Misch.
49707
49708 2007-05-26  Bruno Haible  <bruno@clisp.org>
49709
49710         * modules/chdir-long (Depends-on): Add fchdir.
49711         * modules/chdir-safer (Depends-on): Likewise.
49712         * modules/fts (Depends-on): Likewise.
49713         * modules/fts-lgpl (Depends-on): Likewise.
49714         * modules/openat (Depends-on): Likewise.
49715         * modules/savewd (Depends-on): Likewise.
49716
49717 2007-05-24  Eric Blake  <ebb9@byu.net>
49718
49719         Fix lseek on mingw.
49720         * modules/lseek: New module.
49721         * m4/lseek.m4: New file.
49722         * lib/lseek.c: New file.
49723         * modules/lseek-tests: New file.
49724         * tests/test-lseek.c: New file.
49725         * tests/test-lseek.sh: New file.
49726         * MODULES.html.sh: Document lseek module.
49727         * modules/fflush (Depends-on): Add lseek, fseeko.
49728         * modules/fseeko (Depends-on): Likewise.
49729         * modules/ftello (Depends-on): Likewise.
49730         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
49731         broken.
49732         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
49733         broken.
49734         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
49735         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
49736         * lib/ftello.c (rpl_ftello): Likewise.
49737         * tests/test-fseeko.c (main): Test this.
49738         * tests/test-fseeko.sh: Likewise.
49739         * tests/test-ftello.c (main): Likewise.
49740         * tests/test-ftello.sh: Likewise.
49741         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
49742         implies replacing fseek.
49743         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
49744         HAVE_FTELLO.
49745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
49746         * modules/unistd (Makefile.am): Likewise.
49747         * lib/unistd_.h (lseek): Declare a replacement.
49748         * doc/functions/lseek.texi (lseek): Document this fix.
49749         * doc/functions/fseek.texi (fseek): Likewise.
49750         * doc/functions/ftell.texi (ftell): Likewise.
49751
49752 2007-05-24  Bruno Haible  <bruno@clisp.org>
49753
49754         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
49755         in the printed representation of a NaN.
49756         * tests/test-vasprintf-posix.c (test_function): Likewise.
49757         * tests/test-snprintf-posix.h (test_function): Likewise.
49758         * tests/test-sprintf-posix.h (test_function): Likewise.
49759         Reported by Eric Blake.
49760
49761 2007-05-23  Eric Blake  <ebb9@byu.net>
49762
49763         Fix fseeko/ftello on cygwin 1.5.24.
49764         * doc/functions/fseeko.texi (fseeko): Document the fix.
49765         * doc/functions/ftello.texi (ftello): Document the fix.
49766         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
49767         * doc/functions/stdout.text (stdout): New file.
49768         * doc/functions/stderr.text (stderr): New file.
49769         * doc/gnulib.texi (Function Substitutes): Use new files.
49770         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
49771         prior to 1.7.0.
49772         * tests/test-ftello.c (main): Likewise for ftello.
49773         * tests/test-fseeko.sh: New file.
49774         * tests/test-ftello.sh: New file.
49775         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
49776         with seekable stdin.
49777         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
49778         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
49779         (gl_REPLACE_FSEEKO): New macro.
49780         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
49781         * modules/fseeko (Files): Distribute fseeko.c.
49782         * modules/ftello (Files): Distribute ftello.c.
49783         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
49784         mode.
49785         * lib/ftello.c (rpl_ftello): New file.
49786         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
49787         fseeko, ftello.
49788         (gl_STDIN_LARGE_OFFSET): New macro.
49789         * modules/stdio (Makefile.am): Perform the replacement.
49790         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
49791
49792 2007-05-23  Bruno Haible  <bruno@clisp.org>
49793
49794         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
49795         GNULIB_POSIXCHECK is defined.
49796
49797 2007-05-21  Bruno Haible  <bruno@clisp.org>
49798
49799         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
49800         Check also the output for NaN arguments. When cross-compiling, guess
49801         no on IRIX.
49802         * lib/vasnprintf.c: Update comments.
49803         * tests/test-vasnprintf-posix.c (strisnan): New function.
49804         (test_function): Use it.
49805         * tests/test-vasprintf-posix.c (strisnan): New function.
49806         (test_function): Use it.
49807         * tests/test-snprintf-posix.h (strisnan): New function.
49808         (test_function): Use it.
49809         * tests/test-sprintf-posix.h (strisnan): New function.
49810         (test_function): Use it.
49811         Reported by Eric Blake.
49812
49813 2007-05-20  Bruno Haible  <bruno@clisp.org>
49814
49815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49816         numbers that fails on BeOS.
49817         * doc/functions/frexpl.texi: Update.
49818
49819 2007-05-20  Jim Meyering  <jim@meyering.net>
49820
49821         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49822         forced upon us by glibc-2.6.
49823
49824 2007-05-20  Bruno Haible  <bruno@clisp.org>
49825
49826         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49827         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49828         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49829         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49830         NEED_PRINTF_INFINITE.
49831         (is_infinitel): New function.
49832         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49834         gl_PREREQ_VASNPRINTF_INFINITE.
49835         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49836         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49837         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49838         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49839         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49840         gl_PREREQ_VASNPRINTF_INFINITE.
49841         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49842         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49843         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49844         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49845         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49846         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49847         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49848         * doc/functions/fprintf.texi: Update.
49849         * doc/functions/printf.texi: Update.
49850         * doc/functions/snprintf.texi: Update.
49851         * doc/functions/sprintf.texi: Update.
49852         * doc/functions/vfprintf.texi: Update.
49853         * doc/functions/vprintf.texi: Update.
49854         * doc/functions/vsnprintf.texi: Update.
49855         * doc/functions/vsprintf.texi: Update.
49856
49857 2007-05-20  Bruno Haible  <bruno@clisp.org>
49858
49859         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49860         was not found in libc.
49861         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49862
49863 2007-05-20  Bruno Haible  <bruno@clisp.org>
49864
49865         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49866         printed as "-nan" instead of "nan".
49867         * tests/test-vasprintf-posix.c (test_function): Likewise.
49868         * tests/test-snprintf-posix.h (test_function): Likewise.
49869         * tests/test-sprintf-posix.h (test_function): Likewise.
49870         Needed for HP-UX 11.
49871
49872 2007-05-20  Jim Meyering  <jim@meyering.net>
49873
49874         Fix buggy test for the fchownat-deref bug.
49875         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49876         symlink required for the run-test.  Without it, this test would
49877         always declare that fchownat doesn't work, and client code would
49878         unnecessarily use the replacement function with fixed libc.
49879         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49880         Reported by Greg Schafer.
49881
49882 2007-05-19  Bruno Haible  <bruno@clisp.org>
49883
49884         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49885         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49886         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49887         Needed for IRIX 6.5 and Solaris 2.5.1.
49888
49889 2007-05-19  Bruno Haible  <bruno@clisp.org>
49890
49891         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49892         (test_function): Skip tests involving -0.0 on platforms where
49893         -0.0 = 0.0.
49894         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49895         (test_function): Skip tests involving -0.0 on platforms where
49896         -0.0 = 0.0.
49897         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49898         (test_function): Skip tests involving -0.0 on platforms where
49899         -0.0 = 0.0.
49900         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49901         (test_function): Skip tests involving -0.0 on platforms where
49902         -0.0 = 0.0.
49903         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49904         tests.
49905         * tests/test-printf-posix.h (test_function): Likewise.
49906         * tests/test-printf-posix.output: Remove all -0.0 related results.
49907         Needed for IRIX 6.5.
49908
49909 2007-05-19  Bruno Haible  <bruno@clisp.org>
49910
49911         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49912         printed as "nan0x7fffffff" instead of "nan".
49913         * tests/test-vasprintf-posix.c (test_function): Likewise.
49914         * tests/test-snprintf-posix.h (test_function): Likewise.
49915         * tests/test-sprintf-posix.h (test_function): Likewise.
49916         * tests/test-fprintf-posix.h (NaN): Remove macro.
49917         (test_function): Remove all NaN related tests.
49918         * tests/test-printf-posix.h (NaN): Remove macro.
49919         (test_function): Remove all NaN related tests.
49920         * tests/test-printf-posix.output: Remove all NaN related results.
49921         Needed for IRIX 6.5.
49922
49923 2007-05-19  Bruno Haible  <bruno@clisp.org>
49924
49925         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49926         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49927
49928 2007-05-19  Bruno Haible  <bruno@clisp.org>
49929
49930         * lib/float_.h: New file.
49931         * m4/float_h.m4: New file.
49932         * modules/float: New file.
49933         * modules/isnanl (Dependencies): Add float.
49934         * modules/isnanl-nolibm (Dependencies): Likewise.
49935         * modules/mathl (Dependencies): Likewise.
49936         * modules/printf-frexpl (Dependencies): Likewise.
49937         * modules/signbit (Dependencies): Likewise.
49938         * modules/vasnprintf (Dependencies): Likewise.
49939         * doc/headers/float.texi: Update.
49940
49941 2007-05-19  Jim Meyering  <jim@meyering.net>
49942
49943         * lib/utimens.c (gl_futimens): Rename from futimens,
49944         now that glibc-2.6 declares futimens.
49945         * lib/utimens.h: Likewise.
49946
49947 2007-05-19  Bruno Haible  <bruno@clisp.org>
49948
49949         Avoid test failures on mingw.
49950         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49951         * tests/test-printf-posix.sh: Likewise.
49952         * tests/test-vfprintf-posix.sh: Likewise.
49953         * tests/test-vprintf-posix.sh: Likewise.
49954
49955 2007-05-19  Bruno Haible  <bruno@clisp.org>
49956
49957         Fix *printf result for NaN, Inf, -0.0 on mingw.
49958         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49959         * lib/vasnprintf.c: Include math.h and isnan.h.
49960         (is_infinite_or_zero): New function.
49961         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49962         values in the %f, %F, %e, %E, %g, %G directives.
49963         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49965         gl_PRINTF_INFINITE and test its result. Invoke
49966         gl_PREREQ_VASNPRINTF_INFINITE.
49967         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49968         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49969         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49970         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49972         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49973         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49974         * doc/functions/fprintf.texi: Update.
49975         * doc/functions/printf.texi: Update.
49976         * doc/functions/snprintf.texi: Update.
49977         * doc/functions/sprintf.texi: Update.
49978         * doc/functions/vfprintf.texi: Update.
49979         * doc/functions/vprintf.texi: Update.
49980         * doc/functions/vsnprintf.texi: Update.
49981         * doc/functions/vsprintf.texi: Update.
49982
49983 2007-05-19  Bruno Haible  <bruno@clisp.org>
49984
49985         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49986         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49987         Instead of multiplying with 10^k, set extra_zeroes to k.
49988         (scale10_round_long_double): Remove function.
49989
49990 2007-05-18  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49993         introduced on 2007-05-06.
49994
49995 2007-05-18  Bruno Haible  <bruno@clisp.org>
49996
49997         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49998         %g directives.
49999         * tests/test-vasprintf-posix.c (test_function): Likewise.
50000         * tests/test-snprintf-posix.h (test_function): Likewise.
50001         * tests/test-sprintf-posix.h (test_function): Likewise.
50002
50003 2007-05-18  Bruno Haible  <bruno@clisp.org>
50004
50005         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50006         (strmatch): New function.
50007         (test_function): Test the %f directive on numbers of various exponents.
50008         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50009         (strmatch): New function.
50010         (test_function): Test the %f directive on numbers of various exponents.
50011         * tests/test-snprintf-posix.h (strmatch): New function.
50012         (test_function): Test the %f directive on numbers of various exponents.
50013         * tests/test-sprintf-posix.h (strmatch): New function.
50014         (test_function): Test the %f directive on numbers of various exponents.
50015         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50016         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50017         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50018         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50019
50020 2007-05-18  Bruno Haible  <bruno@clisp.org>
50021
50022         Add support for 'long double' number output.
50023         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50024         * lib/vasnprintf.c: Include math.h and float+.h.
50025         (mp_limb_t): New type.
50026         (GMP_LIMB_BITS): New macro.
50027         (mp_twolimb_t): New type.
50028         (GMP_TWOLIMB_BITS): New macro.
50029         (mpn_t): New type.
50030         (multiply, divide, convert_to_decimal, decode_long_double,
50031         scale10_round_long_double, scale10_round_decimal_long_double,
50032         floorlog10l): New functions.
50033         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50034         for the %f, %F, %e, %E, %g, %G directives.
50035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50036         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50037         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50038         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50039         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50040         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50042         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50043         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50044         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50045         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50046         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50047         * modules/snprintf-posix (Depends-on): Likewise.
50048         * modules/sprintf-posix (Depends-on): Likewise.
50049         * modules/vasnprintf-posix (Depends-on): Likewise.
50050         * modules/vasprintf-posix (Depends-on): Likewise.
50051         * modules/vfprintf-posix (Depends-on): Likewise.
50052         * modules/vsnprintf-posix (Depends-on): Likewise.
50053         * modules/vsprintf-posix (Depends-on): Likewise.
50054         * modules/vasnprintf (Files): Add lib/float+.h.
50055         * doc/functions/fprintf.texi: Update.
50056         * doc/functions/printf.texi: Update.
50057         * doc/functions/snprintf.texi: Update.
50058         * doc/functions/sprintf.texi: Update.
50059         * doc/functions/vfprintf.texi: Update.
50060         * doc/functions/vprintf.texi: Update.
50061         * doc/functions/vsnprintf.texi: Update.
50062         * doc/functions/vsprintf.texi: Update.
50063
50064 2007-05-18  Bruno Haible  <bruno@clisp.org>
50065
50066         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50067
50068 2007-05-18  Bruno Haible  <bruno@clisp.org>
50069
50070         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50071         for printing 64-bit integers. Needed for mingw.
50072
50073 2007-05-18  Bruno Haible  <bruno@clisp.org>
50074
50075         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50076         gl_FUNC_FREXPL_WORKS.
50077         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50078
50079 2007-05-18  Bruno Haible  <bruno@clisp.org>
50080
50081         * modules/frexpl-nolibm-tests: New file.
50082
50083         * modules/frexpl-nolibm: New file.
50084         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50085
50086 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50087
50088         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50089         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50090         GCC 4.2, which otherwise issues a lot of warnings.
50091         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50092         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50093         Likewise.
50094         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50095         * modules/iconv_open (iconv.h): Likewise.
50096         * modules/locale (locale.h): Likewise.
50097         * modules/netinet_in (netinet/in.h): Likewise.
50098         * modules/sys_select (sys_select.h): Likewise.
50099         * modules/sys_socket (sys/socket.h): Likewise.
50100         * modules/sys_stat (sys/stat.h): Likewise.
50101         * modules/sysexits (sysexits.h): Likewise.
50102         * modules/unistd (unistd.h): Likewise.
50103
50104 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50105
50106         * modules/closein-tests (Makefile.am): Distribute
50107         `test-closein.sh'.
50108
50109 2007-05-17  Bruno Haible  <bruno@clisp.org>
50110
50111         * tests/test-printf-posix.output: Renamed from
50112         tests/test-fprintf-posix.out.
50113         * modules/fprintf-posix-tests: Update.
50114         * modules/printf-posix-tests: Update.
50115         * modules/vfprintf-posix-tests: Update.
50116         * modules/vprintf-posix-tests: Update.
50117         * tests/test-fprintf-posix.sh: Update.
50118         * tests/test-printf-posix.sh: Update.
50119         * tests/test-vfprintf-posix.sh: Update.
50120         * tests/test-vprintf-posix.sh: Update.
50121         Reported by Ralf Wildenhues.
50122
50123 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50124
50125         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50126         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50127         GCC 4.2, which otherwise issues a lot of warnings.
50128         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50129         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50130         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50131         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50132         it should no longer be needed.
50133         * lib/string_.h: Likewise.
50134         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50135         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50136         * modules/inttypes (inttypes.h): Likewise.
50137         * modules/math (math.h): Likewise.
50138         * modules/search (search.h): Likewise.
50139         * modules/signal (signal.h): Likewise.
50140         * modules/stdint (stdint.h): Likewise.
50141         * modules/stdio (stdio.h): Likewise.
50142         * modules/stdlib (stdlib.h): Likewise.
50143         * modules/string (string.h): Likewise.
50144         * modules/sys_time (sys/time.h): Likewise.
50145         * modules/time (time.h): Likewise.
50146         * modules/wchar (wchar.h): Likewise.
50147         * modules/wctype (wtype.h): Likewise.
50148
50149 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50150
50151         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50152
50153 2007-05-13  Bruno Haible  <bruno@clisp.org>
50154
50155         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50156         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50157         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50158         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50159         (gl_PREREQ_STRTOK_R): Don't require it here.
50160
50161 2007-05-13  Bruno Haible  <bruno@clisp.org>
50162
50163         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50164         when used in C++ mode.
50165
50166 2007-05-12  Bruno Haible  <bruno@clisp.org>
50167
50168         * lib/linebuffer.h: Tweak doc.
50169         * lib/linebuffer.c: Likewise.
50170
50171 2007-05-12  James Youngman  <jay@gnu.org>
50172
50173         * lib/linebuffer.c (readlinebuffer_delim): New function,
50174         like readlinebuffer, but use a caller-specified delimiter.
50175         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50176         as the delimiter.
50177         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50178
50179 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50180
50181         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50182         * modules/openat (Files): Remove openat-die.c.
50183         (Depends-on): Add openat-die.
50184         * modules/openat-die: New module.
50185
50186 2007-05-06  Bruno Haible  <bruno@clisp.org>
50187
50188         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50189         Update with info about Cygwin.
50190         * doc/functions/fprintf.texi: Update.
50191         * doc/functions/printf.texi: Update.
50192         * doc/functions/snprintf.texi: Update.
50193         * doc/functions/sprintf.texi: Update.
50194         * doc/functions/vfprintf.texi: Update.
50195         * doc/functions/vprintf.texi: Update.
50196         * doc/functions/vsnprintf.texi: Update.
50197         * doc/functions/vsprintf.texi: Update.
50198         Reported by Eric Blake.
50199
50200 2007-05-06  Bruno Haible  <bruno@clisp.org>
50201
50202         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50203         padding ourselves for the floating-point directives.
50204         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50207         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50208         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50209         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50210         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50211         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50212         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50213         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50214         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50215         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50216         * tests/test-snprintf-posix.h (test_function): Also check the width
50217         and some flags in the %f directive.
50218         * tests/test-sprintf-posix.h (test_function): Likewise.
50219         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50220         * tests/test-vasprintf-posix.c (test_function): Likewise.
50221         * doc/functions/fprintf.texi: Update.
50222         * doc/functions/printf.texi: Update.
50223         * doc/functions/snprintf.texi: Update.
50224         * doc/functions/sprintf.texi: Update.
50225         * doc/functions/vfprintf.texi: Update.
50226         * doc/functions/vprintf.texi: Update.
50227         * doc/functions/vsnprintf.texi: Update.
50228         * doc/functions/vsprintf.texi: Update.
50229
50230 2007-05-06  Bruno Haible  <bruno@clisp.org>
50231
50232         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50233         pass the ' flag character to sprintf or snprintf.
50234         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50235         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50236         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50237         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50238         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50239         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50240         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50241         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50242         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50243         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50245         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50246         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50247         flag.
50248         * tests/test-sprintf-posix.h (test_function): Likewise.
50249         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50250         * tests/test-vasprintf-posix.c (test_function): Likewise.
50251         * doc/functions/fprintf.texi: Update.
50252         * doc/functions/printf.texi: Update.
50253         * doc/functions/snprintf.texi: Update.
50254         * doc/functions/sprintf.texi: Update.
50255         * doc/functions/vfprintf.texi: Update.
50256         * doc/functions/vprintf.texi: Update.
50257         * doc/functions/vsnprintf.texi: Update.
50258         * doc/functions/vsprintf.texi: Update.
50259
50260 2007-05-01  Bruno Haible  <bruno@clisp.org>
50261
50262         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50263
50264 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50265
50266         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50267         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50268
50269 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50270
50271         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50272         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50274
50275 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50276
50277         * lib/argp-help.c (struct hol_entry): New member `ord'.
50278         (HOL_ENTRY_PTRCMP): Use ord for comparison
50279         (hol_sort): Initialize ord.
50280
50281 2007-05-01  Bruno Haible  <bruno@clisp.org>
50282
50283         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50284         Reported by Eric Blake.
50285         * doc/gnulib.texi (Function Substitutes): Update.
50286
50287 2007-05-01  Bruno Haible  <bruno@clisp.org>
50288
50289         * doc/functions.texi: Remove file, now redundant through
50290         doc/functions/*.texi.
50291
50292 2007-05-01  Bruno Haible  <bruno@clisp.org>
50293
50294         * modules/argp (Depends-on): Add sleep.
50295
50296 2007-05-01  Bruno Haible  <bruno@clisp.org>
50297
50298         * modules/sleep-tests: New file.
50299         * tests/test-sleep.c: New file.
50300
50301         * modules/sleep: New file.
50302         * lib/sleep.c: New file.
50303         * m4/sleep.m4: New file.
50304         * lib/unistd_.h (sleep): New declaration.
50305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50306         HAVE_SLEEP.
50307         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50308         * doc/functions/sleep.texi: Document the sleep module.
50309
50310 2007-05-01  Bruno Haible  <bruno@clisp.org>
50311
50312         * lib/sigprocmask.h: Remove file.
50313         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50314         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50315         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50316         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50317         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50318         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50319         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50320         HAVE_SIGSET_T as a shell variable.
50321         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50322         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50323         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50324         (Depends-on): Add signal. Remove verify.
50325         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50326         (Include): Mention <signal.h> instead of sigprocmask.h.
50327         * NEWS: Mention the change.
50328         * lib/fatal-signal.c: Don't include sigprocmask.h.
50329
50330 2007-05-01  Bruno Haible  <bruno@clisp.org>
50331
50332         * modules/signal: New file.
50333         * lib/signal_.h: New file.
50334         * m4/signal_h.m4: New file.
50335
50336 2007-05-01  Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50339         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50340         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50341         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50342
50343 2007-05-01  Bruno Haible  <bruno@clisp.org>
50344
50345         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50346         configure time.
50347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50348         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50349         * modules/sys_stat (Makefile.am): Substitute their values into
50350         sys/stat.h.
50351
50352 2007-05-01  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50355         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50356         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50357
50358 2007-05-01  Bruno Haible  <bruno@clisp.org>
50359
50360         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50361         'assert' module here.
50362
50363 2007-05-01  Bruno Haible  <bruno@clisp.org>
50364
50365         * doc/functions/*.texi: New files.
50366         * doc/functions/google-ranking.txt: New file.
50367         * doc/gnulib.texi (Function Substitutes): New chapter.
50368         (ctime, inet_ntoa): Remove sections.
50369         * doc/ctime.texi: Remove file.
50370         * doc/inet_ntoa.texi: Remove file.
50371         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50372         dependencies.
50373         (%.info): New rule, specifying a --reference-limit.
50374
50375 2007-05-01  Bruno Haible  <bruno@clisp.org>
50376
50377         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50378
50379 2007-05-01  Bruno Haible  <bruno@clisp.org>
50380
50381         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50382         the portability of 'mkdir' to mingw systems.
50383
50384 2007-05-01  Bruno Haible  <bruno@clisp.org>
50385
50386         * doc/headers/google-ranking.txt: New file.
50387
50388 2007-04-30  Eric Blake  <ebb9@byu.net>
50389
50390         Prefer fseeko to fseek.
50391         * modules/getpass (Depends-on): Add fseeko.
50392         * lib/getpass.c (getpass): Use fseeko, not fseek.
50393
50394 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50395
50396         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50397         assumes the sorting is stable, while most qsort implementations
50398         are not.  Use argument addresses to ensure they never compare as
50399         equal.
50400
50401         * tests/test-argp-2.sh (usage-indent test): Fix output
50402         (func_compare): Restore diff options
50403         * tests/test-argp.c: Restore #include "progname.h"
50404
50405 2007-04-29  Bruno Haible  <bruno@clisp.org>
50406
50407         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50409         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50410         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50411         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50412         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50413         (TESTS, check_PROGRAMS): Add test-snprintf.
50414         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50415         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50416         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50417         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50418         assertions that fail on HP-UX, OSF/1, or IRIX.
50419         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50420
50421 2007-04-29  Bruno Haible  <bruno@clisp.org>
50422
50423         * MODULES.html.sh (posix_functions): Remove 'contents'.
50424
50425 2007-04-29  Karl Berry  <karl@gnu.org>
50426
50427         * config/srclist.txt (gendocs_template_min): new entry.
50428
50429 2007-04-29  Bruno Haible  <bruno@clisp.org>
50430
50431         Work around fpurge bug on BSD systems.
50432         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50433         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50434         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50435         fpurge to rpl_fpurge if the system already has this function.
50436         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50437         the case where the system already has this function. Correct invariants
50438         on BSD systems.
50439         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50440         BSD systems.
50441
50442 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50443
50444         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50445         proposed by Sven Verdoolaege.
50446
50447         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50448         options.
50449         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50450         (usage and help tests): Update
50451
50452 2007-04-29  Bruno Haible  <bruno@clisp.org>
50453
50454         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50455         Print more information in case of failure. Disable a test on BeOS.
50456
50457 2007-04-29  Bruno Haible  <bruno@clisp.org>
50458
50459         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50460         This helps debugging on systems on which no gdb is available.
50461
50462 2007-04-29  Bruno Haible  <bruno@clisp.org>
50463
50464         * lib/freading.h: Improve comments.
50465         * lib/fwriting.h: Likewise.
50466         * tests/test-freading.c (main): Don't check freading immediately after
50467         repositioning. Needed for glibc.
50468
50469 2007-04-29  Bruno Haible  <bruno@clisp.org>
50470
50471         * lib/freading.c (freading): Trivial simplification.
50472
50473 2007-04-28  Bruno Haible  <bruno@clisp.org>
50474
50475         * tests/test-fwriting.c (main): Also test the interaction between
50476         fflush and fwriting.
50477         * modules/fwriting-tests (Depends-on): Add fflush.
50478
50479         * tests/test-freading.c (main): Also test the interaction between
50480         fflush and freading.
50481         * modules/freading-tests (Depends-on): Add fflush.
50482
50483 2007-04-28  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50486         fseeko and ftello.
50487         Suggested by Eric Blake.
50488
50489 2007-04-28  Jim Meyering  <jim@meyering.net>
50490
50491         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50492         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50493         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50494
50495 2007-04-27  Eric Blake  <ebb9@byu.net>
50496
50497         * doc/headers/assert.texi (assert.h): Document assert module use.
50498
50499 2007-04-27  Bruno Haible  <bruno@clisp.org>
50500
50501         * doc/headers/*.texi: New files.
50502         * doc/gnulib.texi (Header File Substitutes): New chapter.
50503         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50504         dependencies.
50505         (standards.info ,standards.html, standards.dvi): Update dependencies.
50506         (mostlyclean, clean): New targets.
50507
50508 2007-04-27  Bruno Haible  <bruno@clisp.org>
50509
50510         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50511         * modules/sysexits (Files, Makefile.am): Update.
50512
50513         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50514         * modules/sys_socket (Files, Makefile.am): Update.
50515
50516         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50517         * modules/sys_stat (Files, Makefile.am): Update.
50518
50519 2007-04-27  Eric Blake  <ebb9@byu.net>
50520
50521         * lib/freading.h: Improve comments.
50522         * lib/fwriting.h: Likewise.
50523         * lib/fflush.c: Likewise.
50524
50525         Fix closein for mingw.
50526         * modules/closein-tests: Add tests for closein.
50527         * tests/test-closein.c: New file.
50528         * tests/test-closein.sh: Likewise.
50529         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50530         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50531
50532 2007-04-27  Bruno Haible  <bruno@clisp.org>
50533
50534         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50535         version is < 6.
50536         * lib/math_.h [__DECC]: Likewise.
50537         * lib/stdio_.h [__DECC]: Likewise.
50538         * lib/stdlib_.h [__DECC]: Likewise.
50539         * lib/string_.h [__DECC]: Likewise.
50540         * lib/time_.h [__DECC]: Likewise.
50541         * lib/wchar_.h [__DECC]: Likewise.
50542         * lib/wctype_.h [__DECC]: Likewise.
50543
50544 2007-04-27  Bruno Haible  <bruno@clisp.org>
50545
50546         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
50547
50548 2007-04-27  Bruno Haible  <bruno@clisp.org>
50549
50550         * lib/fflush.c: Add comments.
50551         * modules/fpurge-tests (Depends-on): Add fflush.
50552         * modules/freadable-tests (Depends-on): Likewise.
50553         * modules/fwritable-tests (Depends-on): Likewise.
50554
50555 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
50556
50557         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
50558         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
50559         Report by Bruno Haible <bruno@clisp.org>.
50560
50561 2007-04-26  Eric Blake  <ebb9@byu.net>
50562
50563         Fix fflush on mingw.
50564         * modules/fflush (Depends-on): Add freading.
50565         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
50566         but unread data.
50567
50568 2007-04-26  Eric Blake  <ebb9@byu.net>
50569         and Bruno Haible  <bruno@clisp.org>
50570
50571         Implement freading and fwriting.
50572         * lib/freading.c: New file.
50573         * lib/freading.h: Likewise.
50574         * m4/freading.m4: Likewise.
50575         * modules/freading: Likewise.
50576         * modules/freading-tests: Likewise.
50577         * tests/test-freading.c: Likewise.
50578         * lib/fwriting.c: New file.
50579         * lib/fwriting.h: Likewise.
50580         * m4/fwriting.m4: Likewise.
50581         * modules/fwriting: Likewise.
50582         * modules/fwriting-tests: Likewise.
50583         * tests/test-fwriting.c: Likewise.
50584         * MODULES.html.sh (File stream based Input/Output): Mention them.
50585
50586 2007-04-26  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
50589         'long' when we assume it.
50590         Suggested by Eric Blake.
50591
50592 2007-04-26  Bruno Haible  <bruno@clisp.org>
50593
50594         Ensure fseeko, ftello are declared on glibc systems.
50595         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
50596         * modules/fseeko (configure.ac-early): Likewise.
50597         * modules/ftello (configure.ac-early): Likewise.
50598         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
50599         AC_FUNC_FSEEKO for this.
50600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
50601         (gl_CHECK_FSEEKO): Remove macro.
50602
50603 2007-04-26  Bruno Haible  <bruno@clisp.org>
50604
50605         * tests/test-fflush.c (main): Also check the ftell result after
50606         fflush and fseek/fseeko.
50607         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
50608         file descriptor position cache in the stream.
50609         * lib/fseeko.c (rpl_fseeko): Likewise.
50610
50611 2007-04-26  Bruno Haible  <bruno@clisp.org>
50612
50613         * modules/fflush-tests (Depends-on): Add fseeko.
50614
50615 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
50616             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50617
50618         * lib/argz_.h: ensure error_t definition is obtained in same
50619         mechanism system argz.h would have.
50620         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
50621         argz facilities are known bad.  Err on the side of caution if
50622         cross-compiling.
50623
50624 2007-04-25  Eric Blake  <ebb9@byu.net>
50625
50626         * lib/fpurge.c (includes): Use stdlib.h for free.
50627         * tests/test-fflush.c (main): Also test fflush-fseeko.
50628
50629 2007-04-25  Bruno Haible  <bruno@clisp.org>
50630
50631         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
50632         * lib/fseeko.c: New file.
50633         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
50634         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
50635         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
50636         gl_FUNC_FSEEKO.
50637         (gl_FUNC_FSEEKO): Invoke it.
50638         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
50639         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
50640         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
50641
50642 2007-04-25  Bruno Haible  <bruno@clisp.org>
50643
50644         * modules/fflush (Depends-on): Add ftello.
50645
50646 2007-04-25  Bruno Haible  <bruno@clisp.org>
50647
50648         * modules/ftello-tests: New file.
50649         * tests/test-ftello.c: New file.
50650
50651         * modules/ftello: New file.
50652         * m4/ftello.m4: New file.
50653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
50654         HAVE_FTELLO.
50655         * lib/stdio_.h (ftello): New declaration.
50656         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
50657         HAVE_FTELLO.
50658
50659 2007-04-25  Bruno Haible  <bruno@clisp.org>
50660
50661         * modules/fseeko-tests: New file.
50662         * tests/test-fseeko.c: New file.
50663
50664         * modules/fseeko: New file.
50665         * m4/fseeko.m4: New file.
50666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
50667         HAVE_FSEEKO.
50668         * lib/stdio_.h (fseeko): New declaration.
50669         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
50670         HAVE_FSEEKO.
50671
50672 2007-04-25  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
50675
50676 2007-04-25  Bruno Haible  <bruno@clisp.org>
50677
50678         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
50679         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
50680         * tests/test-unistd.c: Likewise.
50681         * tests/test-fcntl.c: Likewise.
50682
50683 2007-04-23  Eric Blake  <ebb9@byu.net>
50684
50685         * lib/fflush.c: Fix missing include.
50686         Reported by Bruno Haible.
50687
50688 2007-04-23  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
50691         Reported by Eric Blake.
50692
50693 2007-04-23  Bruno Haible  <bruno@clisp.org>
50694
50695         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
50696
50697 2007-04-23  Bruno Haible  <bruno@clisp.org>
50698
50699         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
50700
50701 2007-04-23  Bruno Haible  <bruno@clisp.org>
50702
50703         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
50704         Needed on HP-UX 11.
50705
50706 2007-04-16  Eric Blake  <ebb9@byu.net>
50707
50708         Make fflush rely on fpurge.
50709         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
50710         open coding all variants.
50711         * modules/fflush (Depends-on): Add fpurge and unistd.
50712         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
50713         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
50714
50715         Fix --with-tests compilation on cygwin.
50716         * modules/argmatch-tests (Makefile.am): List gnulib library first
50717         in LDADD.
50718         * modules/argp-tests (Makefile.am): Likewise.
50719         * modules/array-list-tests (Makefile.am): Likewise.
50720         * modules/array-oset-tests (Makefile.am): Likewise.
50721         * modules/avltree-list-tests (Makefile.am): Likewise.
50722         * modules/avltree-oset-tests (Makefile.am): Likewise.
50723         * modules/avltreehash-list-tests (Makefile.am): Likewise.
50724         * modules/carray-list-tests (Makefile.am): Likewise.
50725         * modules/dirname-tests (Makefile.am): Likewise.
50726         * modules/frexp-tests (Makefile.am): Likewise.
50727         * modules/isnanl-tests (Makefile.am): Likewise.
50728         * modules/linked-list-tests (Makefile.am): Likewise.
50729         * modules/linkedhash-list-tests (Makefile.am): Likewise.
50730         * modules/lock-tests (Makefile.am): Likewise.
50731         * modules/rbtree-list-tests (Makefile.am): Likewise.
50732         * modules/rbtree-oset-tests (Makefile.am): Likewise.
50733         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
50734         * modules/tls-tests (Makefile.am): Likewise.
50735         * modules/tsearch-tests (Makefile.am): Likewise.
50736         * modules/xvasprintf-tests (Makefile.am): Likewise.
50737
50738         Fix fpurge for cygwin.
50739         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
50740         value.
50741         * modules/fpurge-tests (Depends-on): Clean up trash.
50742
50743 2007-04-16  Simon Josefsson  <simon@josefsson.org>
50744
50745         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
50746
50747         * m4/autobuild.m4: Re-indent.
50748
50749 2007-04-13  Bruno Haible  <bruno@clisp.org>
50750
50751         * modules/fpurge-tests: New file.
50752         * tests/test-fpurge.c: New file.
50753
50754         * modules/fpurge: New file.
50755         * lib/fpurge.h: New file.
50756         * lib/fpurge.c: New file.
50757         * m4/fpurge.m4: New file.
50758
50759 2007-04-13  Bruno Haible  <bruno@clisp.org>
50760
50761         * modules/fbufmode-tests: New file.
50762         * tests/test-fbufmode.c: New file.
50763
50764         * modules/fbufmode: New file.
50765         * lib/fbufmode.h: New file.
50766         * lib/fbufmode.c: New file.
50767         * m4/fbufmode.m4: New file.
50768
50769 2007-04-13  Bruno Haible  <bruno@clisp.org>
50770
50771         * modules/fwritable-tests: New file.
50772         * tests/test-fwritable.c: New file.
50773
50774         * modules/fwritable: New file.
50775         * lib/fwritable.h: New file.
50776         * lib/fwritable.c: New file.
50777         * m4/fwritable.m4: New file.
50778
50779 2007-04-13  Bruno Haible  <bruno@clisp.org>
50780
50781         * modules/freadable-tests: New file.
50782         * tests/test-freadable.c: New file.
50783
50784         * modules/freadable: New file.
50785         * lib/freadable.h: New file.
50786         * lib/freadable.c: New file.
50787         * m4/freadable.m4: New file.
50788
50789 2007-04-13  Bruno Haible  <bruno@clisp.org>
50790
50791         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
50792         MOSTLYCLEANFILES.
50793
50794 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50795
50796         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
50797         gzip bootstrap.conf to avoid dragging in i18n machinery.
50798         (gnulib_tool_option): Use it.
50799
50800 2007-04-13  Bruno Haible  <bruno@clisp.org>
50801
50802         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
50803         %F directives.
50804         * tests/test-vasprintf-posix.c (test_function): Likewise.
50805         * tests/test-snprintf-posix.h (test_function): Likewise.
50806         * tests/test-sprintf-posix.h (test_function): Likewise.
50807         * tests/test-fprintf-posix.h (test_function): Likewise.
50808         * tests/test-printf-posix.h (test_function): Likewise.
50809         * tests/test-fprintf-posix.out: Likewise.
50810
50811 2007-04-13  Bruno Haible  <bruno@clisp.org>
50812
50813         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50814         * modules/tls-tests (configure.ac): Likewise.
50815         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50816
50817 2007-04-13  Bruno Haible  <bruno@clisp.org>
50818
50819         * lib/tls.c (glthread_tls_get): Fix return type.
50820         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50821
50822 2007-04-12  Eric Blake  <ebb9@byu.net>
50823
50824         * modules/gettime (Depends-on): Remove gettime.
50825         Reported by Dmitry V. Levin.
50826
50827 2007-04-12  Bruno Haible  <bruno@clisp.org>
50828
50829         * modules/fflush (Include): Mention <stdio.h>.
50830         * modules/strtoimax (Include): Mention <inttypes.h>.
50831         * modules/strtoumax (Include): Likewise.
50832
50833 2007-04-12  Eric Blake  <ebb9@byu.net>
50834
50835         * .cvsignore: New file.
50836         * .gitignore: Likewise.
50837
50838 2007-04-12  Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50841         not before, since $(LDADD) often contains libgnu.a.
50842         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50843         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50844         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50845         Needed on Cygwin.
50846
50847 2007-04-12  Eric Blake  <ebb9@byu.net>
50848
50849         Work around glibc's failure to flush stdin on fclose.
50850         * lib/closein.c (close_stdin): Flush stdin before closing.
50851
50852         Work around glibc's failure to reset seekable stdin on exit.
50853         * modules/closein: New module.
50854         * lib/closein.c: New file.
50855         * lib/closein.h: Likewise.
50856         * m4/closein.m4: Likewise.
50857         * MODULES.html.sh (File stream based Input/Output): Document it.
50858
50859 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50860
50861         * gnulib-tool: Rename generated 'autobuild' script to
50862         'do-autobuild' in --create-megatestdir output.
50863
50864         * doc/gnulib.texi (Build robot for gnulib): Fix.
50865
50866 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50867
50868         * modules/sysexits (Depends-on): Add absolute-header.
50869
50870 2007-04-12  Eric Blake  <ebb9@byu.net>
50871
50872         No need to preserve errno on success.
50873         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50874         Reported by Bruno Haible.
50875
50876 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50877
50878         * MODULES.html.sh (Support for maintaining and releasing
50879         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50880
50881 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50882
50883         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50884
50885 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50886
50887         * modules/autobuild: New module.
50888
50889         * m4/autobuild.m4: New file.
50890
50891 2007-04-11  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50894         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50895         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50897         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50898         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50899         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50903         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
50922
50923 2007-04-11  Bruno Haible  <bruno@clisp.org>
50924
50925         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50926
50927 2007-04-10  Bruno Haible  <bruno@clisp.org>
50928
50929         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50930         for NaN and Infinity. Needed on FreeBSD 6.1.
50931         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50932         regarding results for "%010a" of Infinity and NaN.
50933         * tests/test-vasprintf-posix.c (test_function): Likewise.
50934         * tests/test-snprintf-posix.h (test_function): Likewise.
50935         * tests/test-sprintf-posix.h (test_function): Likewise.
50936         * tests/test-fprintf-posix.h (test_function): Likewise.
50937         * tests/test-printf-posix.h (test_function): Likewise.
50938         * tests/test-fprintf-posix.out: Likewise.
50939
50940 2007-04-10  Bruno Haible  <bruno@clisp.org>
50941
50942         * modules/locale-tests: New file.
50943         * tests/test-locale.c: New file.
50944
50945         * modules/locale: New file.
50946         * lib/locale_.h: New file.
50947         * m4/locale_h.m4: New file.
50948
50949 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50950             Bruno Haible  <bruno@clisp.org>
50951
50952         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50953         be determined, test for availability of the copysignf, copysign,
50954         copysignl functions.
50955         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50956         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50957         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50958
50959 2007-04-09  Eric Blake  <ebb9@byu.net>
50960
50961         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50962         * modules/stdio (Makefile.am): Support fflush.
50963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50964         * modules/fflush: New file.
50965         * lib/fflush.c: Likewise.
50966         * m4/fflush.m4: Likewise.
50967         * modules/fflush-tests: New test.
50968         * tests/test-fflush.c: Likewise.
50969         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50970
50971 2007-04-06  Bruno Haible  <bruno@clisp.org>
50972
50973         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50974         (VASNPRINTF): Use signbit for faster determination whether to print a
50975         minus sign.
50976         * modules/vasnprintf (Files): Remove lib/float+.h.
50977         * modules/fprintf-posix (Depends-on): Add signbit.
50978         * modules/snprintf-posix (Depends-on): Likewise.
50979         * modules/sprintf-posix (Depends-on): Likewise.
50980         * modules/vasnprintf-posix (Depends-on): Likewise.
50981         * modules/vasprintf-posix (Depends-on): Likewise.
50982         * modules/vfprintf-posix (Depends-on): Likewise.
50983         * modules/vsnprintf-posix (Depends-on): Likewise.
50984         * modules/vsprintf-posix (Depends-on): Likewise.
50985
50986 2007-04-06  Bruno Haible  <bruno@clisp.org>
50987
50988         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50989         * tests/test-frexpl.c (main): Likewise.
50990         * tests/test-ldexpl.c (main): Likewise.
50991         * modules/frexp-tests (Depends-on): Add signbit.
50992         * modules/frexpl-tests (Depdends-on): Likewise.
50993         * modules/ldexpl-tests (Depdends-on): Likewise.
50994
50995 2007-04-06  Bruno Haible  <bruno@clisp.org>
50996
50997         * modules/signbit-tests: New file.
50998         * tests/test-signbit.c: New file.
50999
51000         * modules/signbit: New file.
51001         * lib/signbitf.c: New file.
51002         * lib/signbitd.c: New file.
51003         * lib/signbitl.c: New file.
51004         * m4/signbit.m4: New file.
51005         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51006         (signbit): New macro.
51007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51008         REPLACE_SIGNBIT.
51009         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51010         REPLACE_FREXPL into math.h.
51011
51012 2007-04-06  Bruno Haible  <bruno@clisp.org>
51013
51014         * modules/isnanf-nolibm-tests: New file.
51015         * tests/test-isnanf.c: New file.
51016
51017         * modules/isnanf-nolibm: New file.
51018         * lib/isnanf.h: New file.
51019         * lib/isnanf.c: New file.
51020         * lib/isnan.c: Consider the USE_FLOAT macro.
51021         * m4/isnanf.m4: New file.
51022
51023 2007-04-06  Bruno Haible  <bruno@clisp.org>
51024
51025         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51026         (Link): New section.
51027
51028         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51029
51030 2007-04-06  Bruno Haible  <bruno@clisp.org>
51031
51032         Assume the 'long double' type.
51033         * m4/longdouble.m4: Remove file.
51034         * config/srclist.txt: Don't mention longdouble.m4.
51035         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51036         * lib/float+.h: Likewise.
51037         * lib/frexp.c: Likewise.
51038         * lib/printf-args.h: Likewise.
51039         * lib/printf-args.c: Likewise.
51040         * lib/printf-frexp.c: Likewise.
51041         * lib/printf-parse.c: Likewise.
51042         * lib/vasnprintf.c: Likewise.
51043         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51044         * m4/intl.m4: Likewise.
51045         * m4/isnanl.m4: Likewise.
51046         * m4/printf.m4: Likewise.
51047         * m4/printf-frexpl.m4: Likewise.
51048         * m4/vasnprintf.m4: Likewise.
51049         * modules/allocsa (Files): Remove m4/longdouble.m4.
51050         * modules/gettext (Files): Likewise.
51051         * modules/relocatable-prog-wrapper (Files): Likewise.
51052         * modules/vasnprintf (Files): Likewise.
51053         * modules/isnanl (Files): Likewise.
51054         (Include): Simplify.
51055         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51056         (Include): Simplify.
51057         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51058         (Include): Simplify.
51059         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51060         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51061         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51062         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51063         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51064         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51065         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51066         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51067         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51068         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51069         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51070         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51071         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51072         * tests/test-isnanl.c: Likewise.
51073         * tests/test-snprintf-posix.h: Likewise.
51074         * tests/test-sprintf-posix.h: Likewise.
51075         * tests/test-vasnprintf-posix.c: Likewise.
51076         * tests/test-vasnprintf-posix2.c: Likewise.
51077         * tests/test-vasprintf-posix.c: Likewise.
51078
51079 2007-04-06  Bruno Haible  <bruno@clisp.org>
51080
51081         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51082         * lib/math_.h [__DECC]: Include the overridden include file through
51083         #include_next, outside the double-inclusion guard.
51084         * lib/stdio_.h [__DECC]: Likewise.
51085         * lib/stdlib_.h [__DECC]: Likewise.
51086         * lib/string_.h [__DECC]: Likewise.
51087         * lib/time_.h [__DECC]: Likewise.
51088         * lib/wchar_.h [__DECC]: Likewise.
51089         * lib/wctype_.h [__DECC]: Likewise.
51090         * lib/inttypes_.h [__DECC]: Likewise.
51091         Reported by Albert Chin <china@thewrittenword.com> in
51092         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51093
51094 2007-04-04  Eric Blake  <ebb9@byu.net>
51095
51096         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51097         1.5.x.
51098
51099 2007-04-04  Bruno Haible  <bruno@clisp.org>
51100
51101         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51102         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51103
51104 2007-04-04  Bruno Haible  <bruno@clisp.org>
51105
51106         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51107         results for "%010a" of Infinity and NaN.
51108         * tests/test-vasprintf-posix.c (test_function): Likewise.
51109         * tests/test-snprintf-posix.h (test_function): Likewise.
51110         * tests/test-sprintf-posix.h (test_function): Likewise.
51111         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51112         * tests/test-printf-posix.h (test_function): Likewise.
51113         * tests/test-fprintf-posix.out: Update.
51114         Needed for FreeBSD 6.1.
51115
51116 2007-04-04  Bruno Haible  <bruno@clisp.org>
51117
51118         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51119         directly used by the gnulib modules nor by gnulib-tool.
51120
51121 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51122
51123         * DEPENDENCIES: Give overall description of version dependency
51124         desirability.  Use more-typical names for apps.
51125         Add shell, coreutils, diffutils, grep, tar, gzip.
51126
51127 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51128
51129         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51130
51131 2007-04-04  Karl Berry  <karl@gnu.org>
51132
51133         * MODULES.html.sh (func_module): missing '.
51134
51135 2007-04-03  Bruno Haible  <bruno@clisp.org>
51136
51137         * modules/argmatch-tests (Makefile.am): New variable
51138         test_argmatch_LDADD.
51139         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51140         * modules/array-list-tests (Makefile.am): New variable
51141         test_array_list_LDADD.
51142         * modules/array-oset-tests (Makefile.am): New variable
51143         test_array_oset_LDADD.
51144         * modules/avltree-list-tests (Makefile.am): New variable
51145         test_avltree_list_LDADD.
51146         * modules/avltree-oset-tests (Makefile.am): New variable
51147         test_avltree_oset_LDADD.
51148         * modules/avltreehash-list-tests (Makefile.am): New variable
51149         test_avltreehash_list_LDADD.
51150         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51151         test_canonicalize_lgpl_LDADD.
51152         * modules/carray-list-tests (Makefile.am): New variable
51153         test_carray_list_LDADD.
51154         * modules/dirname-tests (Makefile.am): New variable
51155         test_dirname_LDADD.
51156         * modules/linked-list-tests (Makefile.am): New variable
51157         test_linked_list_LDADD.
51158         * modules/linkedhash-list-tests (Makefile.am): New variable
51159         test_linkedhash_list_LDADD.
51160         * modules/rbtree-list-tests (Makefile.am): New variable
51161         test_rbtree_list_LDADD.
51162         * modules/rbtree-oset-tests (Makefile.am): New variable
51163         test_rbtree_oset_LDADD.
51164         * modules/rbtreehash-list-tests (Makefile.am): New variable
51165         test_rbtreehash_list_LDADD.
51166         * modules/xvasprintf-tests (Makefile.am): New variable
51167         test_xvasprintf_LDADD.
51168         Reported by Eric Blake.
51169
51170 2007-04-03  Eric Blake  <ebb9@byu.net>
51171
51172         * DEPENDENCIES: Weaken m4 requirements.
51173
51174 2007-04-03  Bruno Haible  <bruno@clisp.org>
51175
51176         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51177         * modules/isnanl-tests (configure.ac): Likewise.
51178
51179 2007-04-03  Ben Pfaff  <blp@gnu.org>
51180
51181         * modules/iconv_open: Add $(srcdir)/ to source directory
51182         references in Makefile fragments that call gperf, to fix VPATH
51183         builds.
51184
51185 2007-04-03  Bruno Haible  <bruno@clisp.org>
51186
51187         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51188         * lib/ldexpl.c: Undo last change.
51189
51190 2007-04-03  Bruno Haible  <bruno@clisp.org>
51191
51192         * modules/printf-frexpl (Depends-on): Undo last change.
51193         (Files): Add m4/ldexpl.m4.
51194
51195 2007-04-03  Bruno Haible  <bruno@clisp.org>
51196
51197         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51198         * modules/isnanl (Link): New section.
51199
51200         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51201         * modules/frexp (Link): New section.
51202
51203         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51204         * modules/frexpl (Link): New section.
51205
51206         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51207         * modules/ldexpl (Link): New section.
51208
51209 2007-04-03  Bruno Haible  <bruno@clisp.org>
51210
51211         * modules/TEMPLATE-EXTENDED: New file.
51212         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51213
51214 2007-04-03  Bruno Haible  <bruno@clisp.org>
51215
51216         * DEPENDENCIES: New file.
51217         Suggested by Simon Josefsson.
51218
51219 2007-04-03  Bruno Haible  <bruno@clisp.org>
51220
51221         * doc/gnulib.texi: Escape @.
51222
51223 2007-04-03  James Youngman  <jay@gnu.org>
51224         and Paul Eggert  <eggert@cs.ucla.edu>
51225
51226         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51227         birthtime on all systems that have birthtime, not just those which
51228         use st_birthtimensec rather than st_birthtim.  Putting zero in
51229         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51230         that the birth time is not available for files on an NFS mount.
51231
51232 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51233
51234         * modules/memxor: Move back from crypto/, suggested by Bruno.
51235         * modules/crypto/hmac-sha1: Fix memxor dependency.
51236
51237         * modules/crypto/gc: Moved from ../.
51238
51239 2007-04-02  Eric Blake  <ebb9@byu.net>
51240
51241         * lib/ldexpl.c (includes): Avoid libm.
51242
51243         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51244
51245 2007-04-02  Bruno Haible  <bruno@clisp.org>
51246
51247         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51248         on IRIX.
51249
51250 2007-04-02  Bruno Haible  <bruno@clisp.org>
51251
51252         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51253         x86 or x86_64 platforms running MacOS X.
51254         Reported by Ryan Schmidt <@ryandesign.com>.
51255
51256 2007-04-02  Bruno Haible  <bruno@clisp.org>
51257
51258         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51259         i386.
51260
51261 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51262
51263         * modules/crypto/arcfour: Moved from ../.
51264         * modules/crypto/arcfour-tests: Moved from ../.
51265         * modules/crypto/arctwo: Moved from ../.
51266         * modules/crypto/arctwo-tests: Moved from ../.
51267         * modules/crypto/des: Moved from ../.
51268         * modules/crypto/des-tests: Moved from ../.
51269         * modules/crypto/gc-arcfour: Moved from ../.
51270         * modules/crypto/gc-arcfour-tests: Moved from ../.
51271         * modules/crypto/gc-arctwo: Moved from ../.
51272         * modules/crypto/gc-arctwo-tests: Moved from ../.
51273         * modules/crypto/gc-des: Moved from ../.
51274         * modules/crypto/gc-des-tests: Moved from ../.
51275         * modules/crypto/gc-hmac-md5: Moved from ../.
51276         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51277         * modules/crypto/gc-hmac-sha1: Moved from ../.
51278         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51279         * modules/crypto/gc-md2: Moved from ../.
51280         * modules/crypto/gc-md2-tests: Moved from ../.
51281         * modules/crypto/gc-md4: Moved from ../.
51282         * modules/crypto/gc-md4-tests: Moved from ../.
51283         * modules/crypto/gc-md5: Moved from ../.
51284         * modules/crypto/gc-md5-tests: Moved from ../.
51285         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51286         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51287         * modules/crypto/gc-random: Moved from ../.
51288         * modules/crypto/gc-rijndael: Moved from ../.
51289         * modules/crypto/gc-rijndael-tests: Moved from ../.
51290         * modules/crypto/gc-sha1: Moved from ../.
51291         * modules/crypto/gc-sha1-tests: Moved from ../.
51292         * modules/crypto/gc-tests: Moved from ../.
51293         * modules/crypto/hmac-md5: Moved from ../.
51294         * modules/crypto/hmac-md5-tests: Moved from ../.
51295         * modules/crypto/hmac-sha1: Moved from ../.
51296         * modules/crypto/hmac-sha1-tests: Moved from ../.
51297         * modules/crypto/md2: Moved from ../.
51298         * modules/crypto/md2-tests: Moved from ../.
51299         * modules/crypto/md4: Moved from ../.
51300         * modules/crypto/md4-tests: Moved from ../.
51301         * modules/crypto/md5: Moved from ../.
51302         * modules/crypto/md5-tests: Moved from ../.
51303         * modules/crypto/memxor: Moved from ../.
51304         * modules/crypto/rijndael: Moved from ../.
51305         * modules/crypto/rijndael-tests: Moved from ../.
51306         * modules/crypto/sha1: Moved from ../.
51307
51308 2007-03-30  James Youngman  <jay@gnu.org>
51309
51310         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51311         rename() to change the ctime of a file (because ctime is unaffected
51312         by rename on jfs2 on AIX 5.1).
51313         (main): Start by doing cleanup, in case a previous run failed leaving
51314         test files behind.
51315
51316 2007-03-31  Bruno Haible  <bruno@clisp.org>
51317
51318         Support old proprietary implementations of iconv.
51319         * modules/iconv_open: New file.
51320         * lib/iconv_.h: New file.
51321         * m4/iconv_h.m4: New file.
51322         * lib/iconv_open.c: New file.
51323         * lib/iconv_open-aix.gperf: New file.
51324         * lib/iconv_open-hpux.gperf: New file.
51325         * lib/iconv_open-irix.gperf: New file.
51326         * lib/iconv_open-osf.gperf: New file.
51327         * m4/iconv_open.m4: New file.
51328         * modules/linebreak (Depends-on): Add iconv_open.
51329         * modules/striconv (Depends-on): Likewise.
51330         * modules/striconveh (Depends-on): Likewise.
51331         * modules/unicodeio (Depends-on): Likewise.
51332         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51333         (iconv_t)(-1).
51334         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51335         conversion if cd is (iconv_t)(-1).
51336         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51337         is not possible.
51338
51339 2007-03-31  Bruno Haible  <bruno@clisp.org>
51340
51341         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51342         work on Solaris either. Protect also second use of "autodetect_jp".
51343
51344 2007-03-31  Bruno Haible  <bruno@clisp.org>
51345
51346         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51347         the function is not present.
51348
51349 2007-03-31  Bruno Haible  <bruno@clisp.org>
51350
51351         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51352         the function is not present.
51353
51354 2007-03-31  Bruno Haible  <bruno@clisp.org>
51355
51356         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51357         a bug in HP-UX iconv_open().
51358
51359 2007-03-31  Bruno Haible  <bruno@clisp.org>
51360
51361         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51362         (Mathematics <math.h>): New section, add fpieee.
51363         (Input/output <stdio.h>): Add fseterr.
51364         (Mathematics <math.h>): New section, add printf-frexp.
51365         (Container data structures): Add sublist.
51366         (Core language properties): Add fpucw, inline.
51367         (Functions for greatest-width integer types <inttypes.h>): Add
51368         imaxabs, imaxdiv, inttypes.
51369         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51370         isnanl-nolibm, ldexp.
51371         (Mathematics <math.h>): New section, add printf-frexpl.
51372         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51373         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51374         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51375         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51376         (Unicode string functions): Add unistr/u*-mbtoucr.
51377         (Java): Add javacomp-script, javaexec-script.
51378         (C#): Add csharpcomp-script, csharpexec-script.
51379         (Support for building libraries and executables): Add havelib,
51380         relocatable-*.
51381         (Support for maintaining and releasing projects): Renamed from
51382         'Support for maintaining and release projects'. Add announce-gen.
51383
51384 2007-03-31  Bruno Haible  <bruno@clisp.org>
51385
51386         * README: Talk primarily about git.
51387         (git and CVS): Renamed from CVS.
51388         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51389         gnulib is available through git.
51390         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51391
51392 2007-03-30  Bruno Haible  <bruno@clisp.org>
51393
51394         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51395         * lib/poll_.h: Likewise.
51396         * lib/stat_.h: Likewise.
51397         * lib/sys_time_.h: Likewise.
51398         * lib/sysexit_.h: Likewise.
51399         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51400         * lib/stdbool_.h: Likewise.
51401         * lib/byteswap_.h: Add double-inclusion guard.
51402
51403 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51404
51405         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51406
51407 2007-03-30  Karl Berry  <karl@gnu.org>
51408
51409         * config/srclist-update: double space after USA in the license
51410         substitution, since that's how it's usually (?) written.
51411
51412 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51413
51414         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51415         reported by Bruno Haible.
51416
51417 2007-03-29  Bruno Haible  <bruno@clisp.org>
51418
51419         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51420         a bug in AIX iconv().
51421
51422 2007-03-29  Bruno Haible  <bruno@clisp.org>
51423
51424         * modules/ldexpl-tests: New file.
51425         * tests/test-ldexpl.c: New file.
51426
51427 2007-03-29  Bruno Haible  <bruno@clisp.org>
51428
51429         * lib/ldexpl.c: Include fpucw.h.
51430         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51431         multiplication.
51432         * modules/ldexpl (Depends-on): Add fpucw.
51433
51434 2007-03-29  Bruno Haible  <bruno@clisp.org>
51435
51436         * modules/ldexpl: New file.
51437         * m4/ldexpl.m4: New file.
51438         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51439         set.
51440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51441         REPLACE_LDEXPL.
51442         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51443         REPLACE_LDEXPL.
51444         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51445         gl_FUNC_LDEXPL_WORKS.
51446         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51447         * modules/mathl (Files): Remove lib/ldexpl.c.
51448         (Depends-on): Add ldexpl.
51449
51450 2007-03-29  Bruno Haible  <bruno@clisp.org>
51451
51452         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51453
51454 2007-03-29  Bruno Haible  <bruno@clisp.org>
51455
51456         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51457         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51458         and possibly also HP-UX.
51459         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51460         work on AIX, IRIX, HP-UX, OSF/1.
51461         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51462         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51463         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51464         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51465         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51466         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51467
51468 2007-03-29  Bruno Haible  <bruno@clisp.org>
51469
51470         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51471
51472 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51473
51474         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51475         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51476
51477 2007-03-29  Eric Blake  <ebb9@byu.net>
51478
51479         * lib/acl-internal.h: Remove redundant include.
51480         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51481         Cygwin when a file is locked.
51482
51483 2007-03-29  Bruno Haible  <bruno@clisp.org>
51484
51485         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51486         file.
51487         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51488
51489 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51490
51491         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51492         try to remove a parent directory if the child couldn't be removed
51493         (except for the first rmdir, which could fail because the child
51494         doesn't exist).  Problem reported by Jeff Blaine in
51495         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51496
51497 2007-03-28  Bruno Haible  <bruno@clisp.org>
51498
51499         * lib/striconveh.c (utf8conv_carefully): New function.
51500         (mem_cd_iconveh_internal): Invoke it.
51501
51502 2007-03-28  Bruno Haible  <bruno@clisp.org>
51503
51504         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51505         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51506         input.
51507         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51508         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51509         unistr/u8-uctomb.
51510
51511 2007-03-28  Bruno Haible  <bruno@clisp.org>
51512
51513         * modules/unistr/u8-mbtoucr: New file.
51514         * lib/unistr/u8-mbtoucr.c: New file.
51515         * modules/unistr/u16-mbtoucr: New file.
51516         * lib/unistr/u16-mbtoucr.c: New file.
51517         * modules/unistr/u16-mbtoucr: New file.
51518         * lib/unistr/u16-mbtoucr.c: New file.
51519         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51520
51521 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51522             Bruno Haible  <bruno@clisp.org>
51523
51524         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51525         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51526         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51527
51528         * m4/stdio_h.m4: Add stubs for vasprintf too.
51529
51530         * modules/stdio: Support vasprintf in sed command.
51531
51532         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51533         vasprintf.h.  Add stdio module indicator.
51534
51535         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51536         vasprintf.h.
51537
51538         * lib/vasprintf.h: File removed.
51539
51540         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51541         * lib/vasprintf.c: Ditto.
51542         * lib/xvasprintf.c: Ditto.
51543         * tests/test-vasprintf-posix.c: Ditto.
51544         * tests/test-vasprintf.c: Ditto.
51545
51546 2007-03-27  Bruno Haible  <bruno@clisp.org>
51547
51548         Make vasnprintf multithread-safe.
51549         * lib/vasnprintf.c (decimal_point_char): New function.
51550         (VASNPRINTF): Use it.
51551         Suggested by Simon Josefsson.
51552
51553 2007-03-27  Eric Blake  <ebb9@byu.net>
51554
51555         Support sub-second birthtime on cygwin.
51556         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
51557         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
51558         (get_stat_birthtime): Also work with st_birthtim.
51559
51560 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
51561
51562         * lib/stat-time.h (USE_BIRTHTIME): Remove.
51563         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
51564         (get_stat_birthtime_ns): Do not try to use "spare" fields.
51565         (get_stat_birthtime_ns): Simplify compile-time tests.
51566         (get_stat_birthtime): Change the API to look like
51567         get_stat_mtime etc., except return a negative tv_nsec on error.
51568         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
51569         Don't check for "spare" fields.
51570         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
51571         or for struct stat.st_birthtime, as these tests aren't used.
51572         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
51573
51574 2007-03-27  Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/stat-time.h: Include <sys/stat.h>.
51577
51578 2007-03-27  James Youngman  <jay@gnu.org>
51579
51580         * lib/stat-time.h (get_stat_birthtime): New function for
51581           retrieving st_birthtime as provided by UFS2 (hence *BSD).
51582         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
51583           and its variants.
51584         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
51585         * modules/stat-time-test: New file.
51586         * tests/test-stat-time.c: New test, devised by Bruno Haible.
51587
51588 2007-03-26  Bruno Haible  <bruno@clisp.org>
51589
51590         Better support of signalling NaNs.
51591         * lib/atanl.c: Include isnanl.h.
51592         (atanl): Perform test for NaN at the beginning of the function and
51593         through a call to isnanl.
51594         * lib/cosl.c: Include isnanl.h.
51595         (cosl): Perform test for NaN at the beginning of the function and
51596         through a call to isnanl.
51597         * lib/ldexpl.c: Include isnanl.h.
51598         (ldexpl): Perform test for NaN through a call to isnanl.
51599         * lib/logl.c: Include isnanl.h.
51600         (logl): Perform test for NaN at the beginning of the function and
51601         through a call to isnanl.
51602         * lib/sinl.c: Include isnanl.h.
51603         (sinl): Perform test for NaN at the beginning of the function and
51604         through a call to isnanl.
51605         * lib/sqrtl.c: Include isnanl.h.
51606         (sqrtl): Perform test for NaN at the beginning of the function and
51607         through a call to isnanl.
51608         * lib/tanl.c: Include isnanl.h.
51609         (tanl): Perform test for NaN at the beginning of the function and
51610         through a call to isnanl.
51611         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
51612         * modules/mathl (Depends-on): Add isnanl.
51613
51614 2007-03-26  Eric Blake  <ebb9@byu.net>
51615
51616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
51617         regression in logic sense of previous patch.
51618
51619 2007-03-26  Bruno Haible  <bruno@clisp.org>
51620
51621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
51622         unportable shell command "if ! ...".
51623         Reported by Ralf Wildenhues.
51624
51625 2007-03-25  Bruno Haible  <bruno@clisp.org>
51626
51627         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
51628         <sysexits.h> file, and only add EX_CONFIG.
51629         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
51630         absolute file name and whether it is sufficient. Substitute also
51631         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
51632         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
51633         ABSOLUTE_SYSEXITS_H into sysexits.h.
51634
51635 2007-03-25  Bruno Haible  <bruno@clisp.org>
51636
51637         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
51638         hints is NULL.
51639
51640 2007-03-25  Bruno Haible  <bruno@clisp.org>
51641
51642         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
51643         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
51644
51645 2007-03-25  Bruno Haible  <bruno@clisp.org>
51646
51647         * lib/vasnprintf.c: Include langinfo.h.
51648         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
51649         multithread-safe.
51650         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
51651         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
51652         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51653         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51654         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51655         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51656         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51657         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
51658         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51659         Reported by Simon Josefsson.
51660
51661 2007-03-25  Bruno Haible  <bruno@clisp.org>
51662
51663         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
51664         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
51665         * modules/vasnprintf (Depends-on): Add stdint.
51666
51667 2007-03-25  Bruno Haible  <bruno@clisp.org>
51668
51669         * modules/fpieee: New file.
51670         * m4/fpieee.m4: New file.
51671         * modules/isnan-nolibm (Depends-on): Add fpieee.
51672         * modules/isnanl-nolibm (Depends-on): Add fpieee.
51673         * modules/isnanl (Depends-on): Add fpieee.
51674
51675 2007-03-25  Bruno Haible  <bruno@clisp.org>
51676
51677         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
51678
51679 2007-03-25  Bruno Haible  <bruno@clisp.org>
51680
51681         Avoid test failures on IRIX 6.5.
51682         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
51683         (main): Use it.
51684         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
51685         macros.
51686         (main): Use them.
51687
51688 2007-03-25  Bruno Haible  <bruno@clisp.org>
51689
51690         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
51691         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
51692         exists but doesn't work.
51693         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
51694         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
51695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
51696         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
51697         math.h.
51698
51699 2007-03-25  Bruno Haible  <bruno@clisp.org>
51700
51701         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
51702         returns inf. Needed on IRIX 6.5.
51703
51704 2007-03-25  Bruno Haible  <bruno@clisp.org>
51705
51706         * tests/test-frexpl.c: Include isnanl-nolibm.h.
51707         (main): Use isnanl instead of x != x idiom.
51708         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
51709
51710         * tests/test-frexp.c: Include isnan.h.
51711         (main): Use isnan instead of x != x idiom.
51712         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
51713
51714 2007-03-25  Bruno Haible  <bruno@clisp.org>
51715
51716         * tests/test-frexp.c (NaN): New function/macro.
51717         (main): Use it instead of 0.0 / 0.0.
51718         * tests/test-isnan.c (NaN): New function/macro.
51719         (main): Use it instead of 0.0 / 0.0.
51720         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
51721         (test_function): Use it instead of 0.0 / 0.0.
51722         * tests/test-vasprintf-posix.c (NaN): New function/macro.
51723         (test_function): Use it instead of 0.0 / 0.0.
51724         * tests/test-snprintf-posix.h (NaN): New function/macro.
51725         (test_function): Use it instead of 0.0 / 0.0.
51726         * tests/test-sprintf-posix.h (NaN): New function/macro.
51727         (test_function): Use it instead of 0.0 / 0.0.
51728         * tests/test-fprintf-posix.h (NaN): New function/macro.
51729         (test_function): Use it instead of 0.0 / 0.0.
51730         * tests/test-printf-posix.h (NaN): New function/macro.
51731         (test_function): Use it instead of 0.0 / 0.0.
51732
51733         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
51734
51735 2007-03-25  Bruno Haible  <bruno@clisp.org>
51736
51737         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
51738
51739 2007-03-25  Bruno Haible  <bruno@clisp.org>
51740
51741         * lib/regexec.c (merge_state_with_log): Make static.
51742
51743 2007-03-25  Bruno Haible  <bruno@clisp.org>
51744
51745         * lib/trigl.c (kernel_rem_pio2): Make static.
51746
51747 2007-03-25  Bruno Haible  <bruno@clisp.org>
51748
51749         * lib/sincosl.c (sincosl_table): Make static.
51750
51751 2007-03-25  Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
51754         if the compiler does not support C99.
51755
51756 2007-03-25  Bruno Haible  <bruno@clisp.org>
51757
51758         * modules/time (Makefile.am): Ensure all rule action lines start with a
51759         tab.
51760
51761 2007-03-24  Bruno Haible  <bruno@clisp.org>
51762
51763         * modules/tsearch-tests: New file.
51764         * tests/test-tsearch.sh: New file.
51765         * tests/test-tsearch.c: New file, mostly copied from glibc.
51766
51767         * modules/search-tests: New file.
51768         * tests/test-search.c: New file.
51769
51770         * modules/search: New file.
51771         * lib/search_.h: New file, incorporating lib/tsearch.h.
51772         * m4/search_h.m4: New file.
51773         * lib/tsearch.h: Remove file.
51774         * lib/tsearch.c: Include search.h instead of tsearch.h.
51775         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
51776         HAVE_TSEARCH.
51777         * modules/tsearch (Files): Remove lib/tsearch.h.
51778         (Depends-on): Add search.
51779         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
51780         (Include): Change tsearch.h into search.h.
51781
51782 2007-03-24  Bruno Haible  <bruno@clisp.org>
51783
51784         * modules/fpucw: New file.
51785         * lib/fpucw.h: New file.
51786         * lib/frexp.c: Include fpucw.h.
51787         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51788         (FUNC): Use them.
51789         * lib/printf-frexp.c: Include fpucw.h.
51790         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
51791         (FUNC): Use them.
51792         * lib/vasnprintf.c: Include fpucw.h.
51793         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
51794         'long double' calculations.
51795         * tests/test-frexpl.c: Include fpucw.h.
51796         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51797         * tests/test-printf-frexpl.c: Include fpucw.h.
51798         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
51799         * modules/frexpl (Depends-on): Add fpucw.
51800         * modules/printf-frexpl (Depends-on): Likewise.
51801         * modules/fprintf-posix (Depends-on): Likewise.
51802         * modules/snprintf-posix (Depends-on): Likewise.
51803         * modules/sprintf-posix (Depends-on): Likewise.
51804         * modules/vasnprintf-posix (Depends-on): Likewise.
51805         * modules/vasprintf-posix (Depends-on): Likewise.
51806         * modules/vfprintf-posix (Depends-on): Likewise.
51807         * modules/vsnprintf-posix (Depends-on): Likewise.
51808         * modules/vsprintf-posix (Depends-on): Likewise.
51809         * modules/frexpl-tests (Depends-on): Likewise.
51810         * modules/printf-frexpl-tests (Depends-on): Likewise.
51811
51812 2007-03-24  Bruno Haible  <bruno@clisp.org>
51813
51814         * lib/float+.h: New file.
51815         * lib/isnan.c: Include float+.h.
51816         (SIZE): New macro.
51817         (FUNC): Compare only SIZE bytes of the value.
51818         * lib/vasnprintf.c: Include float+.h.
51819         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51820         SIZEOF_LDBL or SIZEOF_DBL bytes.
51821         * modules/isnan-nolibm (Files): Add lib/float+.h.
51822         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51823         * modules/isnanl (Files): Add lib/float+.h.
51824         * modules/vasnprintf (Files): Add lib/float+.h.
51825
51826 2007-03-24  Bruno Haible  <bruno@clisp.org>
51827
51828         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51829         include isnanl-nolibm.h.
51830
51831 2007-03-24  Bruno Haible  <bruno@clisp.org>
51832
51833         * tests/test-read-file.c (main): Don't produce spurious output for
51834         expected situations. Make the test fail if it encountered unexpected
51835         results.
51836
51837 2007-03-24  Bruno Haible  <bruno@clisp.org>
51838
51839         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51840         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51841
51842 2007-03-24  Bruno Haible  <bruno@clisp.org>
51843
51844         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51845
51846 2007-03-24  Bruno Haible  <bruno@clisp.org>
51847
51848         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51849         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51850
51851         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51852         * modules/utf8-ucs4: Turn into a symbolic link to module
51853         unistr/u8-mbtouc.
51854
51855         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51856         utf8-ucs4-unsafe.
51857         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51858         unistr/u8-mbtouc-unsafe.
51859
51860         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51861         * modules/utf16-ucs4: Turn into a symbolic link to module
51862         unistr/u16-mbtouc.
51863
51864         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51865         utf16-ucs4-unsafe.
51866         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51867         unistr/u16-mbtouc-unsafe.
51868
51869         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51870         * modules/ucs4-utf8: Turn into a symbolic link to module
51871         unistr/u8-ubtomb.
51872
51873         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51874         * modules/ucs4-utf16: Turn into a symbolic link to module
51875         unistr/u16-ubtomb.
51876
51877 2007-03-24  Bruno Haible  <bruno@clisp.org>
51878
51879         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51880         Enable the function only if HAVE_INLINE.
51881         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51882         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51883         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51884         Enable the function only if HAVE_INLINE.
51885         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51886         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51887         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51888         Enable the function only if HAVE_INLINE.
51889         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51890         Enable the function only if HAVE_INLINE.
51891         * modules/utf8-ucs4: Update.
51892         * modules/utf8-ucs4-unsafe: Update.
51893         * modules/utf16-ucs4: Update.
51894         * modules/utf16-ucs4-unsafe: Update.
51895         * modules/ucs4-utf8: Update.
51896         * modules/ucs4-utf16: Update.
51897
51898 2007-03-24  Bruno Haible  <bruno@clisp.org>
51899
51900         * lib/utf8-ucs4.h: Remove file.
51901         * lib/utf8-ucs4-unsafe.h: Remove file.
51902         * lib/utf16-ucs4.h: Remove file.
51903         * lib/utf16-ucs4-unsafe.h: Remove file.
51904         * lib/ucs4-utf8.h: Remove file.
51905         * lib/ucs4-utf16.h: Remove file.
51906         * lib/unistr.h: Include their previous contents.
51907         * m4/utf-ucs4.m4: Remove file.
51908         * m4/ucs4-utf.m4: Remove file.
51909         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51910         (Depends-on): Add unistr/base.
51911         (configure.ac): Remove gl_UTF_UCS4.
51912         (Makefile.am): Update.
51913         (Include): Change to unistr.h.
51914         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51915         (Depends-on): Add unistr/base.
51916         (configure.ac): Remove gl_UTF_UCS4.
51917         (Makefile.am): Update.
51918         (Include): Change to unistr.h.
51919         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51920         (Depends-on): Add unistr/base.
51921         (configure.ac): Remove gl_UTF_UCS4.
51922         (Makefile.am): Update.
51923         (Include): Change to unistr.h.
51924         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51925         (Depends-on): Add unistr/base.
51926         (configure.ac): Remove gl_UTF_UCS4.
51927         (Makefile.am): Update.
51928         (Include): Change to unistr.h.
51929         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51930         (Depends-on): Add unistr/base.
51931         (configure.ac): Remove gl_UCS4_UTF.
51932         (Makefile.am): Update.
51933         (Include): Change to unistr.h.
51934         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51935         (Depends-on): Add unistr/base.
51936         (configure.ac): Remove gl_UCS4_UTF.
51937         (Makefile.am): Update.
51938         (Include): Change to unistr.h.
51939         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51940         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51941         utf8-ucs4-unsafe.h.
51942         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51943         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51944         utf16-ucs4-unsafe.h.
51945         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51946         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51947         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51948         * lib/unistr/u8-strchr.c: Likewise.
51949         * lib/unistr/u8-strrchr.c: Likewise.
51950         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51951         * lib/unistr/u16-strchr.c: Likewise.
51952         * lib/unistr/u16-strrchr.c: Likewise.
51953         * lib/striconveh.c: Update.
51954         * lib/linebreak.c: Update.
51955
51956 2007-03-24  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51959         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51960
51961 2007-03-22  Bruno Haible  <bruno@clisp.org>
51962
51963         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51964
51965 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51966
51967         * MODULES.html.sh (File system functions): New module write-any-file.
51968         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51969         * m4/write-any-file.m4: New files.
51970
51971 2007-03-23  Eric Blake  <ebb9@byu.net>
51972
51973         * gnulib-tool: Rearrange space-tab sequences, since some editors
51974         like to eat them.
51975
51976 2007-03-23  Eric Blake  <ebb9@byu.net>
51977
51978         * lib/version-etc.c (version_etc_va): Update license wording to
51979         be more concise.  Recommended by Richard Stallman.
51980
51981 2007-03-22  Bruno Haible  <bruno@clisp.org>
51982
51983         * lib/poll.c (MSG_PEEK): New fallback definition.
51984
51985 2007-03-22  Bruno Haible  <bruno@clisp.org>
51986
51987         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51988         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51989         (main): Update.
51990         Fixes a compilation error on BeOS.
51991
51992 2007-03-22  Bruno Haible  <bruno@clisp.org>
51993
51994         * modules/frexpl-tests: New file.
51995         * tests/test-frexpl.c: New file.
51996
51997         * modules/frexpl: New file.
51998         * m4/frexpl.m4: New file.
51999         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52000         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52001         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52002         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52003         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52004         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52005
52006 2007-03-22  Bruno Haible  <bruno@clisp.org>
52007
52008         * lib/frexpl.c: Share code with lib/frexp.c.
52009         * modules/mathl (Files): Add lib/frexp.c.
52010         (Depends-on): Add isnanl-nolibm.
52011
52012 2007-03-22  Bruno Haible  <bruno@clisp.org>
52013
52014         * modules/printf-frexp (Files): Add m4/frexp.m4.
52015         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52016         only if the found frexp function actually works.
52017
52018 2007-03-22  Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/frexp.c: Remove older implementation that uses divisions.
52021
52022 2007-03-21  Bruno Haible  <bruno@clisp.org>
52023
52024         * modules/frexp-tests: New file.
52025         * tests/test-frexp.c: New file.
52026
52027         * modules/frexp: New file.
52028         * lib/frexp.c: New file.
52029         * m4/frexp.m4: New file.
52030         * lib/math_.h (frexp): New declaration.
52031         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52032         REPLACE_FREXP.
52033         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52034
52035 2007-03-21  Bruno Haible  <bruno@clisp.org>
52036
52037         * modules/isnanl-tests: New file.
52038         * tests/test-isnanl.c: New file.
52039
52040         * modules/isnanl: New file.
52041         * lib/isnanl.h: New file.
52042         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52043         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52044         gl_FUNC_ISNANL_WORKS.
52045         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52046         New macros.
52047
52048 2007-03-21  Bruno Haible  <bruno@clisp.org>
52049
52050         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52051         lib/isnanl.h.
52052         (Include): Update.
52053         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52054         * lib/vasnprintf.c: Update.
52055         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52056         tests/test-isnanl.h, remove tests/test-isnanl.c.
52057         (Makefile.am): Update.
52058         * tests/test-isnanl-nolibm.c: New file.
52059         * tests/test-isnanl.h: New file.
52060         * tests/test-isnanl.c: Remove file.
52061
52062 2007-03-21  Jim Meyering  <jim@meyering.net>
52063
52064         When trying to open ".", treat ESTALE like EACCES.
52065         * lib/savewd.c (savewd_save): Resort to forking not just upon
52066         failure with EACCES, but also when errno is ESTALE.
52067
52068 2007-03-20  Bruno Haible  <bruno@clisp.org>
52069
52070         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52071         Needed on AIX 5.1. Reported by Matthew Woehlke.
52072
52073 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52074
52075         Suggestions by Bruno Haible:
52076         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52077         our own.
52078         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52079         * modules/acl (Depends-on): Add gettext.
52080
52081 2007-03-19  Bruno Haible  <bruno@clisp.org>
52082
52083         * modules/iconvme: Remove file.
52084         * lib/iconvme.h: Remove file.
52085         * lib/iconvme.c: Remove file.
52086         * m4/iconvme.m4: Remove file.
52087
52088 2007-03-19  Bruno Haible  <bruno@clisp.org>
52089
52090         * doc/relocatable-maint.texi: Break long shell script line.
52091         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52092
52093 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52094
52095         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52096         handle file_has_acl.
52097         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52098         * lib/acl.c: Move header inclusions and related macro defns into
52099         lib/acl-internal.h.
52100         (S_ISLNK): Remove defn, since that's now done for us.
52101         (file_has_acl): Move to lib/file-has-acl.c.
52102         Call acl_trivial if available.  This is the crucial part of the fix.
52103         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52104         shared within the library.  Rewrite a bit, partly to make it compatible
52105         with the GNU coding style.
52106         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52107         Remove unnecessary double-quotes.
52108         Don't test for acl_to_text; the build will catch that.
52109         Replace acl_entries if it doesn't exist and it is needed.
52110         Check for -lsec and acl_trivial (as used on Solaris 10).
52111         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52112         lib/file-has-acl.c.
52113         (Depends-on): Add sys_stat, for S_ISLNK.
52114
52115 2007-03-19  Ben Pfaff  <blp@gnu.org>
52116
52117         * doc/gnulib.texi: Fix typos.
52118         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52119
52120 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52121
52122         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52123         If size is zero here, buf must be zero.
52124
52125 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52126
52127         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52128         <bruno@clisp.org>.
52129
52130 2007-03-18  Bruno Haible  <bruno@clisp.org>
52131
52132         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52133         Suggested by Eric Blake.
52134
52135 2007-03-18  Ben Pfaff  <blp@gnu.org>
52136
52137         * doc/relocatable.texi: Recommend using as prefix a directory
52138         that does not exist and will never be created.  Based on
52139         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52140         and others.
52141
52142 2007-03-17  Bruno Haible  <bruno@clisp.org>
52143
52144         * lib/fchownat.c: Include lchown.h.
52145
52146 2007-03-17  Bruno Haible  <bruno@clisp.org>
52147
52148         Fix endless loop when the given allocated size was > INT_MAX.
52149         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52150         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52151         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52152         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52153         * lib/sprintf.c (sprintf): Likewise.
52154
52155 2007-03-17  Bruno Haible  <bruno@clisp.org>
52156
52157         * tests/test-argp-2.sh (func_compare): Output a context diff.
52158
52159 2007-03-17  Bruno Haible  <bruno@clisp.org>
52160
52161         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52162         locale's decimal-point character.
52163
52164 2007-03-17  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52167         before comparing it. Needed because on some platforms (e.g. x86) a
52168         'long double' occupies less bytes than sizeof (long double).
52169
52170 2007-03-17  Bruno Haible  <bruno@clisp.org>
52171
52172         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52173         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52174         * tests/test-getaddrinfo.c (simple): Likewise.
52175         * tests/test-read-file.c (main): Likewise.
52176
52177 2007-03-17  Bruno Haible  <bruno@clisp.org>
52178
52179         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52180
52181 2007-03-17  Bruno Haible  <bruno@clisp.org>
52182
52183         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52184         unused variable.
52185
52186 2007-03-17  Bruno Haible  <bruno@clisp.org>
52187
52188         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52189         * tests/test-c-strncasecmp.c: Likewise.
52190
52191 2007-03-17  Bruno Haible  <bruno@clisp.org>
52192
52193         * modules/stdlib (Depends-on): Add unistd.
52194         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52195         Needed for MacOS X 10.3.
52196
52197 2007-03-17  Bruno Haible  <bruno@clisp.org>
52198
52199         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52200
52201 2007-03-17  Bruno Haible  <bruno@clisp.org>
52202
52203         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52204
52205 2007-03-17  Bruno Haible  <bruno@clisp.org>
52206
52207         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52208         to reflect files copied from gnulib (with or without modifications).
52209         Suggested by Jim Meyering.
52210
52211 2007-03-17  Eric Blake  <ebb9@byu.net>
52212
52213         * NEWS: Document stdlib change from 2007-02-18.
52214
52215 2007-03-17  Jim Meyering  <jim@meyering.net>
52216
52217         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52218         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52219         someone uses a name containing shell meta-characters.
52220         Reported by Alfred M. Szmidt.
52221
52222         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52223
52224 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52225
52226         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52227         and copy gettext configuration files only if configure.ac contains
52228         a use of AM_GNU_GETTEXT_VERSION.
52229
52230 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52231
52232         * build-aux/bootstrap (gnulib_name): New variable.
52233         (gnulib_tool_options): Use it.
52234
52235 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52236
52237         * tests/test-des.c: Use new namespace.
52238
52239 2007-03-15  Bruno Haible  <bruno@clisp.org>
52240
52241         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52242         Reported by James Youngman <jay@gnu.org>.
52243
52244 2007-03-15  Bruno Haible  <bruno@clisp.org>
52245
52246         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52247         declared prototype. Needed with cc on OSF/1 5.1.
52248
52249 2007-03-15  Bruno Haible  <bruno@clisp.org>
52250
52251         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52252         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52253         (struct gl_list_implementation): Add dispose_fn argument to the
52254         'create_empty', 'create' methods.
52255         (struct gl_list_impl_base): Add field 'dispose_fn'.
52256         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52257         argument.
52258         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52259         dispose_fn argument.
52260         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52261         dispose_fn on the dropped values.
52262         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52263         dispose_fn argument.
52264         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52265         dropped values.
52266         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52267         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52268         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52269         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52270         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52271         argument.
52272         (gl_tree_list_free): Call dispose_fn on the dropped values.
52273         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52274         the dropped values.
52275         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52276         Add dispose_fn argument.
52277         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52278         Call dispose_fn on the dropped values.
52279         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52280         Add dispose_fn argument.
52281         (gl_sublist_create): Initialize the 'dispose_fn' field.
52282         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52283         * tests/test-array_list.c (main): Update.
52284         * tests/test-carray_list.c (main): Update.
52285         * tests/test-avltree_list.c (main): Update.
52286         * tests/test-rbtree_list.c (main): Update.
52287         * tests/test-avltreehash_list.c (main): Update.
52288         * tests/test-rbtreehash_list.c (main): Update.
52289         * tests/test-linked_list.c (main): Update.
52290         * tests/test-linkedhash_list.c (main): Update.
52291         * tests/test-array_oset.c (main): Update.
52292
52293 2007-03-15  Bruno Haible  <bruno@clisp.org>
52294
52295         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52296         (gl_oset_create_empty): Add dispose_fn argument.
52297         (struct gl_oset_implementation): Add dispose_fn argument to
52298         'create_empty' method.
52299         (struct gl_oset_impl_base): Add dispose_fn field.
52300         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52301         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52302         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52303         values.
52304         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52305         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52306         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52307         dropped value.
52308         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52309         dropped value.
52310         * tests/test-array_oset.c (main): Update.
52311         * tests/test-avltree_oset.c (main): Update.
52312         * tests/test-rbtree_oset.c (main): Update.
52313         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52314
52315 2007-03-13  Bruno Haible  <bruno@clisp.org>
52316
52317         * tests/test-stdbool.c (i): Update after last patch.
52318
52319 2007-03-12  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52322         the iswprint macro. Needed on Solaris 2.5.1.
52323
52324 2007-03-12  Bruno Haible  <bruno@clisp.org>
52325
52326         * tests/test-printf-frexp.c (main): Declare x as volatile.
52327
52328 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52329
52330         * doc/gnulib.texi (Build robot for gnulib): New section.
52331
52332 2007-03-12  Jim Meyering  <jim@meyering.net>
52333
52334         * build-aux/bootstrap: New file.
52335         * build-aux/bootstrap.conf: New file, from coreutils.
52336
52337 2007-03-11  Bruno Haible  <bruno@clisp.org>
52338
52339         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52340
52341 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52342
52343         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52344         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52345         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52346
52347 2007-03-11  Bruno Haible  <bruno@clisp.org>
52348
52349         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52350         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52351
52352 2007-03-11  Bruno Haible  <bruno@clisp.org>
52353
52354         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52355         formula. Needed for SunPRO C 5.0.
52356
52357 2007-03-11  Bruno Haible  <bruno@clisp.org>
52358
52359         * modules/long-options (Depends-on): Add getopt.
52360
52361 2007-03-11  Bruno Haible  <bruno@clisp.org>
52362
52363         * modules/modechange (Depends-on): Add stdbool.
52364
52365 2007-03-11  Bruno Haible  <bruno@clisp.org>
52366
52367         * modules/i-ring (Depends-on): Add stdbool.
52368
52369 2007-03-11  Bruno Haible  <bruno@clisp.org>
52370
52371         * modules/gc-des (Depends-on): Add stdbool.
52372
52373 2007-03-11  Bruno Haible  <bruno@clisp.org>
52374
52375         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52376
52377 2007-03-11  Bruno Haible  <bruno@clisp.org>
52378
52379         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52380
52381 2007-03-11  Bruno Haible  <bruno@clisp.org>
52382
52383         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52384
52385 2007-03-11  Bruno Haible  <bruno@clisp.org>
52386
52387         * lib/vasnprintf.c (sprintf): Undefine.
52388
52389 2007-03-11  Bruno Haible  <bruno@clisp.org>
52390
52391         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52392         initializers in SunPRO C and Compaq C compilers.
52393
52394 2007-03-11  Bruno Haible  <bruno@clisp.org>
52395
52396         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52397         decrementing code ANSI C compliant.
52398
52399 2007-03-11  Bruno Haible  <bruno@clisp.org>
52400
52401         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52402         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52403
52404 2007-03-11  Bruno Haible  <bruno@clisp.org>
52405
52406         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52407         <stdbool.h> substitute doesn't pass.
52408
52409 2007-03-11  Bruno Haible  <bruno@clisp.org>
52410
52411         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52412
52413 2007-03-11  Bruno Haible  <bruno@clisp.org>
52414
52415         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52416         script, for submission to autobuild.josefsson.org.
52417
52418 2007-03-10  Bruno Haible  <bruno@clisp.org>
52419
52420         * modules/canonicalize-lgpl-tests: New file.
52421         * tests/test-canonicalize-lgpl.sh: New file.
52422         * tests/test-canonicalize-lgpl.c: New file.
52423
52424         * modules/c-strcase-tests: New file.
52425         * tests/test-c-strcase.sh: New file.
52426         * tests/test-c-strcasecmp.c: New file.
52427         * tests/test-c-strncasecmp.c: New file.
52428
52429         * modules/atexit-tests: New file.
52430         * tests/test-atexit.sh: New file.
52431         * tests/test-atexit.c: New file.
52432
52433 2007-03-10  Bruno Haible  <bruno@clisp.org>
52434
52435         * tests/test-binary-io.sh: Use temporary filenames that are not so
52436         likely to clash with those of other tests (in a parallel make).
52437         * tests/test-binary-io.c: Likewise.
52438
52439 2007-03-10  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52442         fallback; use #error instead.
52443         Suggested by Simon Josefsson.
52444
52445 2007-03-10  Bruno Haible  <bruno@clisp.org>
52446
52447         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52448         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52449         first and the last.
52450
52451 2007-03-10  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52454
52455 2007-03-10  Bruno Haible  <bruno@clisp.org>
52456
52457         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52458         "make distcheck".
52459         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52460         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52461         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52462
52463 2007-03-10  Bruno Haible  <bruno@clisp.org>
52464
52465         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52466         variable.
52467         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52468         variable.
52469
52470 2007-03-09  Eric Blake  <ebb9@byu.net>
52471         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52472
52473         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52474         types are not being provided by gnulib.
52475         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52476         types are supported.
52477
52478 2007-03-10  Bruno Haible  <bruno@clisp.org>
52479
52480         * lib/stdio_.h (__attribute__): New macro.
52481         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52482         vsprintf): Specify __attribute__ __format__ for GCC.
52483         Suggested by Eric Blake.
52484
52485 2007-03-09  Bruno Haible  <bruno@clisp.org>
52486
52487         * modules/printf-posix-tests: New file.
52488         * tests/test-printf-posix.sh: New file.
52489         * tests/test-printf-posix.c: New file.
52490
52491         * modules/printf-posix: New file.
52492         * lib/printf.c: New file.
52493         * m4/printf-posix-rpl.m4: New file.
52494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52495         REPLACE_PRINTF.
52496         * lib/stdio_.h (printf): New declaration.
52497         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52498         ____strfmon____): New macros.
52499         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52500         REPLACE_PRINTF.
52501
52502 2007-03-09  Bruno Haible  <bruno@clisp.org>
52503
52504         * tests/test-vasnprintf-posix2.sh: New file.
52505         * tests/test-vasnprintf-posix2.c: New file.
52506         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52507         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52508         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52509
52510         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52511         a locale dependent decimal point, rather than always '.'.
52512
52513 2007-03-09  Eric Blake  <ebb9@byu.net>
52514
52515         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52516         spite of platforms like Tandem/NSK that define it to -1.
52517
52518 2007-03-08  Bruno Haible  <bruno@clisp.org>
52519
52520         * modules/vprintf-posix-tests: New file.
52521         * tests/test-vprintf-posix.sh: New file.
52522         * tests/test-vprintf-posix.c: New file.
52523         * tests/test-printf-posix.h: New file.
52524
52525         * modules/vprintf-posix: New file.
52526         * lib/vprintf.c: New file.
52527         * m4/vprintf-posix.m4: New file.
52528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52529         REPLACE_VPRINTF.
52530         * lib/stdio_.h (vprintf): New declaration.
52531         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52532         REPLACE_VPRINTF.
52533
52534 2007-03-08  Bruno Haible  <bruno@clisp.org>
52535
52536         * modules/fprintf-posix-tests: New file.
52537         * tests/test-fprintf-posix.sh: New file.
52538         * tests/test-fprintf-posix.c: New file.
52539
52540         * modules/fprintf-posix: New file.
52541         * lib/fprintf.c: New file.
52542         * m4/fprintf-posix.m4: New file.
52543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
52544         REPLACE_FPRINTF.
52545         * lib/stdio_.h (fprintf): New declaration.
52546         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
52547         REPLACE_FPRINTF.
52548
52549 2007-03-08  Bruno Haible  <bruno@clisp.org>
52550
52551         * modules/vfprintf-posix-tests: New file.
52552         * tests/test-vfprintf-posix.sh: New file.
52553         * tests/test-vfprintf-posix.c: New file.
52554         * tests/test-fprintf-posix.h: New file.
52555         * tests/test-fprintf-posix.out: New file.
52556
52557         * modules/vfprintf-posix: New file.
52558         * lib/vfprintf.c: New file.
52559         * m4/vfprintf-posix.m4: New file.
52560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
52561         REPLACE_VFPRINTF.
52562         * lib/stdio_.h (vfprintf): New declaration.
52563         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
52564         REPLACE_VFPRINTF.
52565
52566 2007-03-08  Bruno Haible  <bruno@clisp.org>
52567
52568         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
52569
52570 2007-03-08  Bruno Haible  <bruno@clisp.org>
52571
52572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
52573         instead of 'expr' invocations.
52574         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52575         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52576         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52577         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52579         Suggested by Paul Eggert.
52580
52581 2007-03-08  Bruno Haible  <bruno@clisp.org>
52582
52583         * modules/fseterr-tests: New file.
52584         * tests/test-fseterr.c: New file.
52585
52586         * modules/fseterr: New file.
52587         * lib/fseterr.h: New file.
52588         * lib/fseterr.c: New file.
52589
52590 2007-03-08  Bruno Haible  <bruno@clisp.org>
52591
52592         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
52593         * lib/getopt_.h: Likewise.
52594         * lib/mbswidth.h: Likewise.
52595         * lib/setenv.h: Likewise.
52596         * lib/vasnprintf.h: Likewise.
52597         * lib/vasprintf.h: Likewise.
52598         * lib/verror.h: Likewise.
52599         * lib/xsetenv.h: Likewise.
52600         * lib/xvasprintf.h: Likewise.
52601
52602 2007-03-08  Jim Meyering  <jim@meyering.net>
52603
52604         * users.txt: Add parted.
52605
52606         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
52607
52608 2007-03-07  Bruno Haible  <bruno@clisp.org>
52609
52610         * m4/printf.m4: Make the shell script snippets copy&pastable.
52611
52612 2007-03-02  Bruno Haible  <bruno@clisp.org>
52613
52614         * lib/netinet_in_.h: New file.
52615         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
52616         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
52617         * modules/netinet_in (Files): Add lib/netinet_in_.h.
52618         (Depends-on): Add absolute-header.
52619         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
52620         into netinet/in.h.
52621
52622 2007-03-03  Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/sys_select_.h: New file.
52625         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
52626         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
52627         * modules/sys_select (Files): Add lib/sys_select_.h.
52628         (Depends-on): Add absolute-header.
52629         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
52630         into sys/select.h.
52631
52632 2007-03-02  Bruno Haible  <bruno@clisp.org>
52633
52634         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
52635         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
52636         values.
52637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
52638         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
52639         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
52640         * modules/sys_socket (Depends-on): Add absolute-header.
52641         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
52642         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
52643         (Include): Remove requirement of inclusion of <sys/types.h>.
52644
52645 2007-03-02  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/byteswap_.h (bswap_32): Fix formula.
52648
52649 2007-03-06  Bruno Haible  <bruno@clisp.org>
52650
52651         * modules/sprintf-posix-tests: New file.
52652         * tests/test-sprintf-posix.c: New file.
52653
52654         * modules/sprintf-posix: New file.
52655         * lib/sprintf.c: New file.
52656         * m4/sprintf-posix.m4: New file.
52657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
52658         REPLACE_SPRINTF.
52659         * lib/stdio_.h (sprintf): New declaration.
52660         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
52661         REPLACE_SPRINTF.
52662
52663 2007-03-06  Bruno Haible  <bruno@clisp.org>
52664
52665         * modules/vsprintf-posix-tests: New file.
52666         * tests/test-vsprintf-posix.c: New file.
52667         * tests/test-sprintf-posix.h: New file.
52668
52669         * modules/vsprintf-posix: New file.
52670         * lib/vsprintf.c: New file.
52671         * m4/vsprintf-posix.m4: New file.
52672         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
52673         REPLACE_VSPRINTF.
52674         * lib/stdio_.h (vsprintf): New declaration.
52675         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
52676         REPLACE_VSPRINTF.
52677
52678 2007-03-06  Bruno Haible  <bruno@clisp.org>
52679
52680         * modules/vsnprintf (Depend-on): Remove minmax.
52681
52682 2007-03-06  Bruno Haible  <bruno@clisp.org>
52683
52684         * modules/snprintf-posix-tests: New file.
52685         * tests/test-snprintf-posix.c: New file.
52686
52687         * modules/snprintf-posix: New file.
52688         * m4/snprintf-posix.m4: New file.
52689         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
52690         gl_FUNC_SNPRINTF.
52691         (gl_FUNC_SNPRINTF): Invoke it.
52692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
52693         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
52694         is set.
52695         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
52696
52697 2007-03-06  Bruno Haible  <bruno@clisp.org>
52698
52699         * modules/vsnprintf-posix-tests: New file.
52700         * tests/test-vsnprintf-posix.c: New file.
52701         * tests/test-snprintf-posix.h: New file.
52702
52703         * modules/vsnprintf-posix: New file.
52704         * m4/vsnprintf-posix.m4: New file.
52705         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
52706         gl_FUNC_VSNPRINTF.
52707         (gl_FUNC_VSNPRINTF): Invoke it.
52708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
52709         * lib/stdio_.h (vsnprintf): Define as a replacement if
52710         REPLACE_VSNPRINTF is set.
52711         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
52712
52713 2007-03-06  Bruno Haible  <bruno@clisp.org>
52714
52715         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
52716         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
52717
52718 2007-03-06  Bruno Haible  <bruno@clisp.org>
52719
52720         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
52721         (asinl): Declare also if HAVE_DECL_ASINL is set.
52722         (atanl): Declare also if HAVE_DECL_ATANL is set.
52723         (ceill): Declare also if HAVE_DECL_CEILL is set.
52724         (cosl): Declare also if HAVE_DECL_COSL is set.
52725         (expl): Declare also if HAVE_DECL_EXPL is set.
52726         (floorl): Declare also if HAVE_DECL_FLOORL is set.
52727         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
52728         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
52729         (logl): Declare also if HAVE_DECL_LOGL is set.
52730         (sinl): Declare also if HAVE_DECL_SINL is set.
52731         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
52732         (tanl): Declare also if HAVE_DECL_TANL is set.
52733         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
52734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
52735         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
52736         declaration of frexpl, ldexpl.
52737         * modules/printf-frexpl (Depends-on): Add math.
52738         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
52739
52740 2007-03-05  Bruno Haible  <bruno@clisp.org>
52741
52742         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
52743         frexpl and ldexpl are declared.
52744         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
52745
52746 2007-03-05  Bruno Haible  <bruno@clisp.org>
52747
52748         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
52749         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
52750
52751 2007-03-05  Bruno Haible  <bruno@clisp.org>
52752
52753         * lib/stdio_.h: Include <stddef.h>.
52754
52755 2007-03-05  Bruno Haible  <bruno@clisp.org>
52756
52757         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
52758
52759 2007-03-05  Bruno Haible  <bruno@clisp.org>
52760
52761         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
52762         NetBSD 4, from Ralf Wildenhues.
52763
52764 2007-03-04  Bruno Haible  <bruno@clisp.org>
52765
52766         * lib/vasprintf.h: Update #if logic for the case when the functions
52767         exist but are overridden.
52768
52769 2007-03-04  Bruno Haible  <bruno@clisp.org>
52770
52771         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
52772         implementations: glibc-2.4 and MacOS X 10.3.
52773         * tests/test-vasnprintf-posix.c (test_function): Test also the case
52774         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
52775         * tests/test-vasprintf-posix.c (test_function): Likewise.
52776
52777 2007-03-04  Bruno Haible  <bruno@clisp.org>
52778
52779         * modules/vasprintf-posix-tests: New file.
52780         * tests/test-vasprintf-posix.c: New file.
52781
52782         * modules/vasprintf-posix: New file.
52783         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
52784         defined.
52785         * m4/vasprintf-posix.m4: New file.
52786         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
52787         gl_FUNC_VASPRINTF.
52788         (gl_FUNC_VASPRINTF): Invoke it.
52789         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
52790         here.
52791         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
52792
52793 2007-03-04  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
52796         REPLACE_GETTIMEOFDAY.
52797         * modules/sys_time (Makefile.am): Likewise.
52798         * m4/sys_time_h.m4: Likewise.
52799         * m4/gettimeofday.m4: Likewise.
52800
52801 2007-03-04  Bruno Haible  <bruno@clisp.org>
52802
52803         * modules/vasnprintf-posix-tests: New file.
52804         * tests/test-vasnprintf-posix.c: New file.
52805
52806         * modules/vasnprintf-posix: New file.
52807         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
52808         printf-frexpl.h.
52809         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
52810         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
52811         REPLACE_VASNPRINTF is defined.
52812         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52813         gl_FUNC_VASNPRINTF.
52814         (gl_FUNC_VASNPRINTF): Invoke it.
52815         * m4/vasnprintf-posix.m4: New file.
52816         * m4/printf.m4: New file.
52817
52818 2007-03-04  Bruno Haible  <bruno@clisp.org>
52819
52820         Compile progreloc.c only if --enable-relocatable is specified.
52821         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52822         if --enable-relocatable was specified.
52823         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52824         lib_SOURCES.
52825
52826 2007-03-04  Jim Meyering  <jim@meyering.net>
52827
52828         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52829         Use it consistently, rather than enumerating errno constants.
52830
52831 2007-03-04  Bruno Haible  <bruno@clisp.org>
52832
52833         * modules/xvasprintf-tests: New file.
52834         * tests/test-xvasprintf.c: New file.
52835
52836         * modules/vasprintf-tests: New file.
52837         * tests/test-vasprintf.c: New file.
52838
52839         * modules/vasnprintf-tests: New file.
52840         * tests/test-vasnprintf.c: New file.
52841
52842         * modules/vsnprintf-tests: New file.
52843         * tests/test-vsnprintf.c: New file.
52844
52845         * modules/snprintf-tests: New file.
52846         * tests/test-snprintf.c: New file.
52847
52848 2007-03-04  Bruno Haible  <bruno@clisp.org>
52849
52850         Compile relocatable.c only if --enable-relocatable is specified.
52851         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52852         gl_RELOCATABLE_LIBRARY.
52853         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52854         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52855         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52856         gl_RELOCATABLE_LIBRARY.
52857         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52858         (Makefile.am): Remove lib_SOURCES.
52859         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52860         gl_RELOCATABLE_LIBRARY.
52861         (Makefile.am): Remove lib_SOURCES.
52862         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52863         always.
52864         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52865         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52866
52867 2007-03-04  Bruno Haible  <bruno@clisp.org>
52868
52869         * modules/argmatch-tests: New file.
52870         * tests/test-argmatch.c: New file.
52871
52872         * tests/test-allocsa.c (main): Halve the number of loop runs.
52873
52874         * modules/alloca-opt-tests: New file.
52875         * tests/test-alloca-opt.c: New file.
52876
52877 2007-03-04  Jim Meyering  <jim@meyering.net>
52878
52879         Work around difference between Linux ACLs and Solaris 10 ZFS.
52880         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52881         for EINVAL.
52882
52883 2007-03-03  Bruno Haible  <bruno@clisp.org>
52884
52885         * modules/relocatable-prog (Depends-on): Add back progreloc's
52886         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52887
52888 2007-03-03  Bruno Haible  <bruno@clisp.org>
52889
52890         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52891         * modules/relocatable-lib: New file.
52892
52893 2007-03-03  Bruno Haible  <bruno@clisp.org>
52894
52895         * modules/relocatable-prog: Renamed from modules/relocatable.
52896         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52897
52898 2007-03-03  Bruno Haible  <bruno@clisp.org>
52899
52900         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52901         m4/relocatable-lib.m4.
52902         (Depends-on): Remove 'relocatable'.
52903         (configure.ac): Add gl_RELOCATABLE_NOP.
52904
52905 2007-03-03  Bruno Haible  <bruno@clisp.org>
52906
52907         * modules/relocatable-prog-wrapper: New file.
52908         * modules/relocatable (Depends-on): Add it. Remove all other
52909         dependencies except progname.
52910         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52911
52912         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52913         (gl_FUNC_STRERROR): Nop.
52914         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52915
52916         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52917         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52918
52919         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52920         (gl_FUNC_READLINK): Update.
52921
52922         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52923
52924 2007-03-03  Bruno Haible  <bruno@clisp.org>
52925
52926         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52927         * modules/xreadlink (Depends-on): Add unistd.
52928         * modules/xreadlink-with-size (Depends-on): Likewise.
52929
52930 2007-03-03  Bruno Haible  <bruno@clisp.org>
52931
52932         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52933         extracted from gt_FUNC_SETENV.
52934         (gt_FUNC_SETENV): Remove macro.
52935         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52936         remove gt_FUNC_SETENV.
52937
52938 2007-03-03  Bruno Haible  <bruno@clisp.org>
52939
52940         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52941         ENABLE_RELOCATABLE here.
52942         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52943
52944 2007-03-03  Bruno Haible  <bruno@clisp.org>
52945
52946         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52947         * tests/test-rbtreehash_list.c: Include progname.h.
52948         (main): Call set_program_name.
52949
52950         * modules/rbtree-oset-tests (Depends-on): Add progname.
52951         * tests/test-rbtree_oset.c: Include progname.h.
52952         (main): Call set_program_name.
52953
52954         * modules/rbtree-list-tests (Depends-on): Add progname.
52955         * tests/test-rbtree_list.c: Include progname.h.
52956         (main): Call set_program_name.
52957
52958         * modules/linked-list-tests (Depends-on): Add progname.
52959         * tests/test-linked_list.c: Include progname.h.
52960         (main): Call set_program_name.
52961
52962 2007-03-03  Bruno Haible  <bruno@clisp.org>
52963
52964         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52965         All uses of __restrict changed to _Restrict_.
52966         * lib/glob_.h (__restrict): Remove macro.
52967
52968 2007-03-02  Bruno Haible  <bruno@clisp.org>
52969
52970         * modules/gettext (configure.ac): Require gettext infrastructure
52971         from version 0.16.1.
52972
52973 2007-03-02  Bruno Haible  <bruno@clisp.org>
52974
52975         * modules/linkedhash-list-tests (Depends-on): Add progname.
52976         * tests/test-linkedhash_list.c: Include progname.h.
52977         (main): Call set_program_name.
52978
52979         * modules/carray-list-tests (Depends-on): Add progname.
52980         * tests/test-carray_list.c: Include progname.h.
52981         (main): Call set_program_name.
52982
52983         * modules/avltreehash-list-tests (Depends-on): Add progname.
52984         * tests/test-avltreehash_list.c: Include progname.h.
52985         (main): Call set_program_name.
52986
52987         * modules/avltree-oset-tests (Depends-on): Add progname.
52988         * tests/test-avltree_oset.c: Include progname.h.
52989         (main): Call set_program_name.
52990
52991         * modules/avltree-list-tests (Depends-on): Add progname.
52992         * tests/test-avltree_list.c: Include progname.h.
52993         (main): Call set_program_name.
52994
52995         * modules/array-oset-tests (Depends-on): Add progname.
52996         * tests/test-array_oset.c: Include progname.h.
52997         (main): Call set_program_name.
52998
52999         * modules/array-list-tests (Depends-on): Add progname.
53000         * tests/test-array_list.c: Include progname.h.
53001         (main): Call set_program_name.
53002
53003         * modules/argp-tests (Depends-on): Add progname.
53004         * tests/test-argp.c: Include argp.h first. Include progname.h.
53005         (main): Call set_program_name.
53006
53007 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53008
53009         * doc/gnulib-tool.texi (Initial import): Reword description of
53010         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53011         limited effect even if defined after the first system include.
53012
53013 2007-03-01  Bruno Haible  <bruno@clisp.org>
53014
53015         * build-aux/config.libpath: Update to libtool-1.5.22.
53016         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53017
53018 2007-03-01  Bruno Haible  <bruno@clisp.org>
53019
53020         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53021         foo_CFLAGS.
53022         Reported by Ralf Wildenhues.
53023
53024 2007-03-01  Bruno Haible  <bruno@clisp.org>
53025
53026         * build-aux/install-reloc: Remove object files left over by some
53027         compilers.
53028         Reported by Ralf Wildenhues.
53029
53030 2007-03-01  Bruno Haible  <bruno@clisp.org>
53031
53032         * build-aux/install-reloc: Break long lines.
53033
53034 2007-03-01  Bruno Haible  <bruno@clisp.org>
53035
53036         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53037         Reported by Ralf Wildenhues.
53038
53039 2007-03-01  Bruno Haible  <bruno@clisp.org>
53040
53041         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53042         include ordering constraints.
53043
53044 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53045
53046         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53048         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53049         as another example.
53050         * lib/time_.h: Fix misspelling.
53051         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53052         Require gl_HEADER_TIME_H_DEFAULTS.
53053         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53054         * m4/time_r.m4 (gl_TIME_R): Likewise.
53055         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53056
53057 2007-03-01  Bruno Haible  <bruno@clisp.org>
53058
53059         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53060         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53061
53062 2007-03-01  Jim Meyering  <jim@meyering.net>
53063
53064         * modules/xreadlink (Maintainer): Add my name.
53065         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53066
53067 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53068             Bruno Haible  <bruno@clisp.org>
53069
53070         * build-aux/install-reloc: Compile also c-ctype.c.
53071         * build-aux/relocatable.sh.in: New file.
53072         * doc/relocatable.texi: New file.
53073         * doc/relocatable-maint.texi: New file.
53074         * doc/gnulib.texi: Include relocatable-maint.texi.
53075         * lib/progreloc.c: Include unistd.h unconditionally.
53076         * lib/relocwrapper.c: Include unistd.h unconditionally.
53077         Include c-ctype.h.
53078         (add_dotbin): Use c_tolower.
53079         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53080         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53081         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53082         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53083         to m4/relocatable-lib.m4.
53084         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53085         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53086         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53087         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53088         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53089         * modules/relocatable: New file.
53090         * modules/relocatable-lib: New file.
53091         * modules/relocatable-script: New file.
53092
53093 2007-02-28  Bruno Haible  <bruno@clisp.org>
53094
53095         Import --enable-relocatable infrastructure.
53096         * build-aux/config.libpath: New file, from GNU gettext.
53097         * build-aux/install-reloc: New file, from GNU gettext.
53098         * build-aux/reloc-ldflags: New file, from GNU gettext.
53099         * lib/relocatable.h: New file, from GNU gettext.
53100         * lib/relocatable.c: New file, from GNU gettext.
53101         * lib/relocwrapper.c: New file, from GNU gettext.
53102         * m4/relocatable.m4: New file, from GNU gettext.
53103
53104 2007-02-28  Bruno Haible  <bruno@clisp.org>
53105
53106         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53107
53108         * modules/xreadlink: New file, from GNU gettext with modifications.
53109         * lib/xreadlink.c: New file, from GNU gettext.
53110         * lib/xreadlink.h: Add comments.
53111         (xreadlink): New declaration.
53112
53113         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53114         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53115         lib/xreadlink-with-size.c.
53116         (configure.ac): Remove gl_XREADLINK invocation.
53117         (Makefile.am): Augment lib_SOURCES.
53118         * m4/xreadlink.m4: Remove file.
53119         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53120         (xreadlink_with_size): Renamed from xreadink.
53121         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53122         * modules/canonicalize (Depends-on): Replace xreadlink with
53123         xreadlink-with-size.
53124         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53125
53126 2007-02-25  Jim Meyering  <jim@meyering.net>
53127
53128         * build-aux/announce-gen: When complaining about excess arguments,
53129         list them.
53130
53131 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53132
53133         * README: Document signed integer overflow situation more
53134         accurately.
53135
53136 2007-02-25  Bruno Haible  <bruno@clisp.org>
53137
53138         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53139         'a' or 'A' conversion.
53140
53141 2007-02-25  Bruno Haible  <bruno@clisp.org>
53142
53143         * modules/filename: Renamed from modules/pathname.
53144         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53145         lib/concatpath.c with lib/concat-filename.c.
53146         (Makefile.am): Update.
53147         (Include): Replace pathname.h with filename.h.
53148         * lib/filename.h: Renamed from lib/pathname.h.
53149         (concatenated_filename): Renamed from concatenated_pathname.
53150         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53151         (concatenated_filename): Renamed from concatenated_pathname.
53152         * lib/findprog.c: Include filename.h instead of pathname.h.
53153         (find_in_path): Update.
53154         * lib/javacomp.c: Include filename.h instead of pathname.h.
53155         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53156         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53157         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53158         is_oldgcj_14_13_usable, is_javac_usable): Update.
53159         * lib/javaexec.c: Include filename.h instead of pathname.h.
53160         (execute_java_class): Update.
53161         * modules/findprog: Update.
53162         * modules/javacomp: Update.
53163         * modules/javaexec: Update.
53164         * MODULES.html.sh (File system functions): Add 'filename', remove
53165         'pathname'.
53166
53167 2007-02-25  Bruno Haible  <bruno@clisp.org>
53168
53169         * modules/printf-frexpl-tests: New file.
53170         * tests/test-printf-frexpl.c: New file.
53171
53172         * modules/printf-frexpl: New file.
53173         * lib/printf-frexpl.h: New file.
53174         * lib/printf-frexpl.c: New file.
53175         * m4/printf-frexpl.m4: New file.
53176
53177 2007-02-25  Bruno Haible  <bruno@clisp.org>
53178
53179         * modules/printf-frexp-tests: New file.
53180         * tests/test-printf-frexp.c: New file.
53181
53182         * modules/printf-frexp: New file.
53183         * lib/printf-frexp.h: New file.
53184         * lib/printf-frexp.c: New file.
53185         * m4/printf-frexp.m4: New file.
53186
53187 2007-02-25  Bruno Haible  <bruno@clisp.org>
53188
53189         Assume automake >= 1.10 for the tests.
53190         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53191         * modules/arctwo-tests: Likewise.
53192         * modules/argp-tests: Likewise.
53193         * modules/avltree-list-tests: Likewise.
53194         * modules/avltree-oset-tests: Likewise.
53195         * modules/avltreehash-list-tests: Likewise.
53196         * modules/carray-list-tests: Likewise.
53197         * modules/crc-tests: Likewise.
53198         * modules/des-tests: Likewise.
53199         * modules/gc-arcfour-tests: Likewise.
53200         * modules/gc-arctwo-tests: Likewise.
53201         * modules/gc-des-tests: Likewise.
53202         * modules/gc-hmac-md5-tests: Likewise.
53203         * modules/gc-hmac-sha1-tests: Likewise.
53204         * modules/gc-md2-tests: Likewise.
53205         * modules/gc-md4-tests: Likewise.
53206         * modules/gc-md5-tests: Likewise.
53207         * modules/gc-pbkdf2-sha1-tests: Likewise.
53208         * modules/gc-rijndael-tests: Likewise.
53209         * modules/gc-sha1-tests: Likewise.
53210         * modules/gc-tests: Likewise.
53211         * modules/getaddrinfo-tests: Likewise.
53212         * modules/hmac-md5-tests: Likewise.
53213         * modules/hmac-sha1-tests: Likewise.
53214         * modules/linked-list-tests: Likewise.
53215         * modules/linkedhash-list-tests: Likewise.
53216         * modules/lock-tests: Likewise.
53217         * modules/md2-tests: Likewise.
53218         * modules/md4-tests: Likewise.
53219         * modules/md5-tests: Likewise.
53220         * modules/rbtree-list-tests: Likewise.
53221         * modules/rbtree-oset-tests: Likewise.
53222         * modules/rbtreehash-list-tests: Likewise.
53223         * modules/read-file-tests: Likewise.
53224         * modules/rijndael-tests: Likewise.
53225         * modules/stdint-tests: Likewise.
53226         * modules/tls-tests: Likewise.
53227
53228 2007-02-24  Bruno Haible  <bruno@clisp.org>
53229
53230         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53231         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53232         function; instead check whether isnan with a double argument links.
53233         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53234         function; instead check whether isnan with a 'long double' argument
53235         links.
53236         Reported by Eric Blake <ebb9@byu.net>.
53237
53238 2007-02-24  Bruno Haible  <bruno@clisp.org>
53239
53240         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53241         defined.
53242         * lib/isnanl.c: Remove all code. Just include isnan.c.
53243         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53244
53245 2007-02-25  Jim Meyering  <jim@meyering.net>
53246
53247         Avoid conflicting types for 'unsetenv' on FreeBSD.
53248         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53249         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53250         in stdlib.h.
53251
53252 2007-02-24  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/isnanl-nolibm-tests: New file.
53255         * tests/test-isnanl.c: New file.
53256
53257         * modules/isnanl-nolibm: New file.
53258         * lib/isnanl.h: New file.
53259         * lib/isnanl.c: New file.
53260         * m4/isnanl.m4: New file.
53261
53262 2007-02-24  Bruno Haible  <bruno@clisp.org>
53263
53264         * modules/isnan-nolibm-tests: New file.
53265         * tests/test-isnan.c: New file.
53266
53267         * modules/isnan-nolibm: New file.
53268         * lib/isnan.h: New file.
53269         * lib/isnan.c: New file.
53270         * m4/isnan.m4: New file.
53271
53272 2007-02-24  Bruno Haible  <bruno@clisp.org>
53273
53274         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53275         assume that an exponent fits in 20 bits.
53276
53277 2007-02-24  Jim Meyering  <jim@meyering.net>
53278
53279         * m4/regex.m4: Update the description of the configure-time option,
53280         --without-included-regex, to state accurately what the defaults are,
53281         and perhaps to give people an idea why using this option is risky.
53282
53283 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53286         loops on small arguments.  This attempts to avoid the problem
53287         Bruno Haible reported for AIX 4.3.2 in
53288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53289
53290 2007-02-23  Bruno Haible  <bruno@clisp.org>
53291
53292         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53293         Needed for help2man.
53294
53295 2007-02-23  Karl Berry  <karl@gnu.org>
53296
53297         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53298         exists, foo.h should be cvs-ignored, not committed.
53299
53300 2007-02-23  Eric Blake  <ebb9@byu.net>
53301
53302         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53303         * lib/stat-time.h (includes): Likewise.
53304         * lib/utimecmp.c (includes): Likewise.
53305         * lib/utimens.h (includes): Likewise.
53306         * lib/getdate.y (includes): Also include "timespec.h" for use
53307         internal to the module.
53308         * modules/utimens (Depends-on): Revert yesterday's patch.
53309         * modules/nanosleep (Depends-on): Add missing dependency.
53310
53311 2007-02-22  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/glob.c: Don't include getlogin_r.h.
53314
53315 2007-02-22  Jim Meyering  <jim@meyering.net>
53316
53317         * modules/utimens (Depends-on): Add timespec, required for
53318         utimens.h's inclusion of timespec.h.
53319
53320 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53321
53322         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53323         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53324         Schwab in
53325         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53326         I'll try to think of a better way to fix the Solaris problem.
53327
53328         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53329         like glibc; on Solaris 10, it fails with errno == EINVAL.
53330         POSIX says the behavior is unspecified if the first argument is NULL,
53331         so play it safe and never pass NULL to the system getcwd.
53332
53333 2007-02-21  Jim Meyering  <jim@meyering.net>
53334
53335         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53336         of gettimeofday.  It would conflict with the one now always
53337         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53338         an IRIX 6.5 build failure.
53339
53340 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53341
53342         Minor fixups to port to Solaris 10 with Sun C 5.8.
53343         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53344         * modules/getcwd (Depends-on): Add dirfd.
53345         * lib/putenv.c (putenv): #undef it.
53346         (rpl_putenv): New decl.
53347         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53348
53349 2007-02-20  Bruno Haible  <bruno@clisp.org>
53350
53351         * modules/stdio-tests: New file.
53352         * tests/test-stdio.c: New file.
53353
53354         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53355         (Depends-on): Add stdio.
53356         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53357         (Include): Use <stdio.h> instead of vsnprintf.h.
53358         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53359         HAVE_DECL_VSNPRINTF.
53360         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53361
53362         * modules/snprintf (Files): Remove lib/snprintf.h.
53363         (Depends-on): Add stdio.
53364         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53365         (Include): Use <stdio.h> instead of snprintf.h.
53366         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53367         HAVE_DECL_SNPRINTF.
53368         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53369         * lib/getaddrinfo.c: Likewise.
53370
53371         * modules/stdio: New file.
53372         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53373         * lib/snprintf.h: Remove file.
53374         * lib/vsnprintf.h: Remove file.
53375         * lib/.cppi-disable: Remove snprintf.h.
53376         * m4/stdio_h.m4: New file.
53377         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53378
53379 2007-02-20  Jim Meyering  <jim@meyering.net>
53380
53381         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53382         used by e.g., mingw.  From Bruno Haible.
53383
53384 2007-02-19  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53387         warnings.
53388         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53389
53390 2007-02-19  Bruno Haible  <bruno@clisp.org>
53391
53392         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53393         from mingw users.
53394
53395 2007-02-19  Bruno Haible  <bruno@clisp.org>
53396
53397         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53398         warnings.
53399         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53400
53401 2007-02-19  Jim Meyering  <jim@meyering.net>
53402
53403         Don't use FD after a successful "fdopendir (fd)".
53404         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53405         Reset it by calling dirfd on the just-obtained DIR*.
53406
53407         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53408         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53409
53410 2007-02-18  Bruno Haible  <bruno@clisp.org>
53411
53412         * lib/readlink.c: Include <unistd.h>.
53413         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53414         HAVE_READLINK.
53415         * modules/readlink (Depends-on): Add unistd.
53416         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53417         (Include): Add <unistd.h>.
53418
53419         * lib/getlogin_r.h: Remove file.
53420         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53421         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53422         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53423         HAVE_DECL_GETLOGIN_R.
53424         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53426         (Include): Use <unistd.h> instead of getlogin_r.h.
53427
53428         * lib/getcwd.h: Remove file.
53429         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53430         * lib/xgetcwd.c: Likewise.
53431         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53432         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53433         * modules/getcwd (Files): Remove lib/getcwd.h.
53434         (Depends-on): Add unistd.
53435         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53436         (Include): Use <unistd.h> instad of getcwd.h.
53437
53438         * lib/ftruncate.c: Include <unistd.h> first.
53439         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53440         Set HAVE_FTRUNCATE.
53441         * modules/ftruncate (Depends-on): Add unistd.
53442         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53443
53444         * lib/fchdir.c: Include <unistd.h> first.
53445         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53446         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53447         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53448         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53449         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53450
53451         * lib/dup2.c: Include <unistd.h> first.
53452         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53453         HAVE_DUP2.
53454         * modules/dup2 (Depends-on): Add unistd.
53455         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53456
53457         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53458         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53459         REPLACE_CHOWN. Don't define chown as a macro here.
53460         * modules/chown (Depends-on): Add unistd.
53461         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53462
53463         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53464         Add definition for GL_LINK_WARNING.
53465         (chown, dup2): New declarations.
53466         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53467         link warning.
53468         (ftruncate): New declaration.
53469         (getcwd): New declaration, taken from old getcwd.h.
53470         (getlogin_r): New declaration, taken from old getlogin_r.h.
53471         (readlink): New declaration.
53472         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53473         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53474         (gl_PREREQ_UNISTD): Remove macro.
53475         (gl_UNISTD_MODULE_INDICATOR): New macro.
53476         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53477         many new variables. Don't set UNISTD_H.
53478         * modules/unistd (Description): Change.
53479         (Depends-on): Add link-warning.
53480         (configure.ac): Update.
53481         (Makefile.am): Create unistd.h always. Substitute many new variables
53482         into it.
53483
53484 2007-02-18  Bruno Haible  <bruno@clisp.org>
53485
53486         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53487         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53488         HAVE_GETSUBOPT.
53489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53490         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53491         * lib/getsubopt.h: Remove file.
53492         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53493         (Depends-on): Add stdlib.
53494         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53495         (Includes): Use <stdlib.h> instead of getsubopt.h.
53496         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53497         Set HAVE_GETSUBOPT.
53498         * lib/getsubopt.c: Don't include getsubopt.h.
53499
53500 2007-02-18  Bruno Haible  <bruno@clisp.org>
53501
53502         * modules/fchdir (Depends-on): Add dup2.
53503
53504 2007-02-18  Bruno Haible  <bruno@clisp.org>
53505
53506         * lib/stdlib_.h: Handle glibc's special invocation convention
53507         specially.
53508
53509 2007-02-18  Bruno Haible  <bruno@clisp.org>
53510
53511         * modules/stdlib-tests: New file.
53512         * tests/test-stdlib.c: New file.
53513
53514         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53515         (Depends-on): Add stdlib.
53516         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53517         (Includes): Use <stdlib.h> instead of mkstemp.h.
53518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53519         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53520         * lib/mkstemp.c: Don't include mkstemp.h.
53521         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53522         * lib/stdlib--.h: Don't include mkstemp.h.
53523
53524         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53525         (Depends-on): Add stdlib.
53526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53527         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53528         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53529         HAVE_MKDTEMP.
53530         * lib/mkdtemp.c: Don't include mkdtemp.h.
53531         * lib/clean-temp.c: Don't include mkdtemp.h.
53532
53533         * modules/exit (Files): Remove lib/exit.h.
53534         (Depends-on): Add stdlib.
53535         (Makefile.am): Remove lib_SOURCES.
53536         (Include): Use <stdlib.h> instead of exit.h.
53537         * lib/argmatch.c: Don't include exit.h.
53538         * lib/execute.c: Likewise.
53539         * lib/pagealign_alloc.c: Likewise.
53540         * lib/pipe.c: Likewise.
53541         * lib/wait-process.c: Likewise.
53542         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
53543         * lib/exitfail.c: Likewise.
53544         * lib/savewd.c: Likewise.
53545         * lib/xsetenv.c: Likewise.
53546
53547         * modules/stdlib: New file.
53548         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
53549         and extra comments about mkstemp().
53550         * lib/exit.h: Remove file.
53551         * lib/mkdtemp.h: Remove file.
53552         * lib/mkstemp.h: Remove file.
53553         * m4/stdlib_h.m4: New file.
53554         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
53555
53556 2007-02-18  Bruno Haible  <bruno@clisp.org>
53557
53558         * modules/math-tests: New file.
53559         * tests/test-math.c: New file.
53560
53561         * modules/math: New file.
53562         * modules/mathl (Files): Remove lib/mathl.h.
53563         (Depends-on): Add math.
53564         (Makefile.am): Don't mention mathl.h.
53565         (Include): Use <math.h> instead of mathl.h.
53566         * lib/math_.h: New file.
53567         * lib/mathl.h: Remove file.
53568         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
53569         mathl.h.
53570         * lib/asinl.c: Likewise.
53571         * lib/atanl.c: Likewise.
53572         * lib/ceill.c: Likewise.
53573         * lib/cosl.c: Likewise.
53574         * lib/expl.c: Likewise.
53575         * lib/floorl.c: Likewise.
53576         * lib/frexpl.c: Likewise.
53577         * lib/ldexpl.c: Likewise.
53578         * lib/logl.c: Likewise.
53579         * lib/sincosl.c: Likewise.
53580         * lib/sinl.c: Likewise.
53581         * lib/sqrtl.c: Likewise.
53582         * lib/tanl.c: Likewise.
53583         * lib/trigl.c: Likewise.
53584         * m4/math_h.m4: New file.
53585         * MODULES.html.sh (Mathematics): Add math.
53586
53587 2007-02-17  Bruno Haible  <bruno@clisp.org>
53588
53589         * modules/wctype-tests: New file.
53590         * tests/test-wctype.c: New file.
53591
53592         * modules/wchar-tests: New file.
53593         * tests/test-wchar.c: New file.
53594
53595         * modules/unistd-tests: New file.
53596         * tests/test-unistd.c: New file.
53597
53598         * modules/time-tests: New file.
53599         * tests/test-time.c: New file.
53600
53601         * modules/sysexits-tests: New file.
53602         * tests/test-sysexits.c: New file.
53603
53604         * modules/sys_time-tests: New file.
53605         * tests/test-sys_time.c: New file.
53606
53607         * modules/sys_stat-tests: New file.
53608         * tests/test-sys_stat.c: New file.
53609
53610         * modules/sys_socket-tests: New file.
53611         * tests/test-sys_socket.c: New file.
53612
53613         * modules/sys_select-tests: New file.
53614         * tests/test-sys_select.c: New file.
53615
53616         * modules/string-tests: New file.
53617         * tests/test-string.c: New file.
53618
53619         * modules/stdbool-tests: New file.
53620         * tests/test-stdbool.c: New file.
53621
53622         * modules/netinet_in-tests: New file.
53623         * tests/test-netinet_in.c: New file.
53624
53625         * modules/inttypes-tests: New file.
53626         * tests/test-inttypes.c: New file.
53627
53628         * modules/fcntl-tests: New file.
53629         * tests/test-fcntl.c: New file.
53630
53631         * modules/byteswap-tests: New file.
53632         * tests/test-byteswap.c: New file.
53633
53634         * modules/arpa_inet-tests: New file.
53635         * tests/test-arpa_inet.c: New file.
53636
53637 2007-02-17  Bruno Haible  <bruno@clisp.org>
53638
53639         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
53640         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
53641         if the corresponding module is not enabled. Emit link warnings if
53642         the function is used nevertheless.
53643         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
53644         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
53645         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
53646         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
53647         * modules/inttypes (Depends-on): Add link-warning.
53648         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53649         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
53650         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
53651         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
53652         * modules/imaxdiv (configure.ac): Likewise.
53653         * modules/strtoimax (configure.ac): Likewise.
53654         * modules/strtoumax (configure.ac): Likewise.
53655
53656 2007-02-17  Bruno Haible  <bruno@clisp.org>
53657
53658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
53659         gl_STRING_MODULE_INDICATOR_DEFAULTS.
53660         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
53661         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
53662
53663 2007-02-17  Bruno Haible  <bruno@clisp.org>
53664
53665         * modules/link-warning: New file.
53666         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
53667         * lib/string_.h (GL_LINK_WARNING): Remove definition.
53668         * modules/string (Depends-on): Add link-warning.
53669         (Makefile.am): Copy the contents of build-aux/link-warning.h into
53670         string.h.
53671         * MODULES.html.sh (Support for building libraries and executables): Add
53672         link-warning.
53673
53674 2007-02-17  Bruno Haible  <bruno@clisp.org>
53675
53676         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
53677         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
53678         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
53679         long lines.
53680
53681 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
53682             Bruno Haible  <bruno@clisp.org>
53683
53684         * modules/tmpfile: New file.
53685         * lib/tmpfile.c: New file.
53686         * m4/tmpfile.m4: New file.
53687         * MODULES.html.sh (func_all_modules): New section "Input/output".
53688
53689 2007-02-15  Bruno Haible  <bruno@clisp.org>
53690
53691         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
53692         (supports_delete_on_close): New function.
53693         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
53694
53695 2007-02-14  Bruno Haible  <bruno@clisp.org>
53696
53697         * modules/mbspcasecmp-tests: New file.
53698         * tests/test-mbspcasecmp.sh: New file.
53699         * tests/test-mbspcasecmp.c: New file.
53700
53701         New module mbspcasecmp.
53702         * modules/mbspcasecmp: New file.
53703         * lib/mbspcasecmp.c: New file.
53704         * lib/string_.h (strncasecmp): Change warning message.
53705         (mbspcasecmp): New declaration.
53706         * m4/mbspcasecmp.m4: New file.
53707         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53708         GNULIB_MBSPCASECMP.
53709         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
53710         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
53711
53712 2007-02-14  Bruno Haible  <bruno@clisp.org>
53713
53714         * modules/mbsncasecmp-tests: New file.
53715         * tests/test-mbsncasecmp.sh: New file.
53716         * tests/test-mbsncasecmp.c: New file.
53717
53718         New module mbsncasecmp.
53719         * modules/mbsncasecmp: New file.
53720         * lib/mbsncasecmp.c: New file.
53721         * lib/string_.h (mbsncasecmp): New declaration.
53722         * m4/mbsncasecmp.m4: New file.
53723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53724         GNULIB_MBSNCASECMP.
53725         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
53726         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
53727
53728 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53729
53730         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
53731         Verify that it doesn't overlap with our flags.
53732         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
53733         do not have the desired effect in multibyte locales; instead, use
53734         mbscasecmp.
53735         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
53736         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
53737         we don't require GNU fnmatch ourselves (if our users require it, they
53738         should do so explicitly).
53739
53740         Fix regex code so it doesn't rely on strcasecmp.
53741         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
53742         Otherwise, include gnulib's langinfo.h.
53743         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
53744         undesirable behavior in non-C locales.  Instead, rely on localecharset.
53745         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
53746         * modules/regex (FILES): Remove m4/codeset.m4.
53747         (Depends-on): Add localcharset.  Remove strcase.
53748
53749 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53750
53751         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
53752         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53753
53754 2007-02-13  Bruno Haible  <bruno@clisp.org>
53755
53756         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
53757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53758
53759 2007-02-12  Bruno Haible  <bruno@clisp.org>
53760
53761         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53762         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
53763         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
53764         time warning rather than a link error.
53765
53766 2007-02-12  Bruno Haible  <bruno@clisp.org>
53767
53768         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
53769         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53770         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53771
53772 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53773
53774         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
53775         args, not 2.
53776
53777 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
53778
53779         New module 'time', so that apps can include <time.h> as per
53780         POSIX and GNU instead of separate include files like time_r.h
53781         and timegm.h.  This implementation tries out a simpler approach
53782         for replacing decls in standard include files (as compared to
53783         the string module), somewhat as an experiment.
53784
53785         * config/srclist.txt: Comment out mktime.c for now.
53786         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
53787         since it doesn't apply any more.  Use generic wording instead.
53788         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
53789         'time'.
53790         * lib/time_.h, m4/time_h.m4, modules/time: New files.
53791         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
53792         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
53793         Don't include <sys/types.h>; no longer needed since we assume C89.
53794         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
53795         * lib/strftime.c: Likewise.
53796         * lib/time_r.c: Likewise.
53797         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
53798         * lib/nanosleep.c: Include <time.h> first, to check interface.
53799         * lib/strptime.c: Likewise.
53800         * lib/time_r.c: Likewise.
53801         * lib/timegm.c: Likewise.
53802         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
53803         needed.
53804         * lib/timegm.c: Don't include timegm.h; no longer needed.
53805         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
53806         time.h now handles any problems in that area.
53807         (struct timespec, nanosleep): Remove; time.h now arranges for these.
53808         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
53809         that time.h defines struct timespec.
53810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
53811         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
53812         handles that.
53813         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53814         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53815         needed.  Set REPLACE_LOCALTIME.
53816         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53817         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53818         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53819         nanosleep; time_h.m4 now does that.  Don't require
53820         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53821         module handles this now.
53822         * modules/getdate (Depends-on): Remove timespec.  Add time.
53823         * modules/nanosleep (Depends-on): Likewise.
53824         * modules/stat-time (Depends-on): Likewise.
53825         * modules/nanosleep (Include): Include time.h, not timespec.h.
53826         * modules/strptime (Files): Remove lib/strptime.h.
53827         (Depends-on): Add extensions, time.
53828         (Include): Include time.h, not strptime.h.
53829         * modules/time_r (Files): Remove lib/time_r.h.
53830         (Depends-on): Add time.
53831         (Include): Include time.h, not time_r.h.
53832         * modules/timegm: Likewise.
53833         * modules/timespec (Description): Now does timespec-related decls
53834         of our own, instead of struct timespec itself.
53835         (Depends-on): Add time; remove extensions.
53836         (Maintainer): Add self.
53837         * modules/utimecmp (Depends-on): Add time; remove timespec.
53838         * modules/utimens (Depends-on): Likewise.
53839         * modules/xnanosleep (Depends-on): Likewise.
53840
53841 2007-02-11  Bruno Haible  <bruno@clisp.org>
53842
53843         * lib/c-strstr.c: Include allocsa.h.
53844         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53845         * lib/c-strcasestr.c: Include allocsa.h.
53846         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53847         * lib/strcasestr.c: Include allocsa.h.
53848         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53849         * lib/mbsstr.c: Include allocsa.h.
53850         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53851         allocsa/freesa instead of malloc/free.
53852         * lib/mbscasestr.c: Include allocsa.h.
53853         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53854         allocsa/freesa instead of malloc/free.
53855         * modules/c-strstr (Depends-on): Add allocsa.
53856         * modules/c-strcasestr (Depends-on): Likewise.
53857         * modules/strcasestr (Depends-on): Likewise.
53858         * modules/mbsstr (Depends-on): Likewise.
53859         * modules/mbscasestr (Depends-on): Likewise.
53860
53861 2007-02-11  Bruno Haible  <bruno@clisp.org>
53862
53863         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53864
53865         * modules/mbsspn-tests: New file.
53866         * tests/test-mbsspn.sh: New file.
53867         * tests/test-mbsspn.c: New file.
53868
53869 2007-02-11  Bruno Haible  <bruno@clisp.org>
53870
53871         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53872
53873         * modules/mbspbrk-tests: New file.
53874         * tests/test-mbspbrk.sh: New file.
53875         * tests/test-mbspbrk.c: New file.
53876
53877 2007-02-11  Bruno Haible  <bruno@clisp.org>
53878
53879         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53880         unneeded cast.
53881
53882         * modules/mbscspn-tests: New file.
53883         * tests/test-mbscspn.sh: New file.
53884         * tests/test-mbscspn.c: New file.
53885
53886 2007-02-11  Bruno Haible  <bruno@clisp.org>
53887
53888         * modules/mbscasecmp-tests: New file.
53889         * tests/test-mbscasecmp.sh: New file.
53890         * tests/test-mbscasecmp.c: New file.
53891
53892 2007-02-11  Bruno Haible  <bruno@clisp.org>
53893
53894         Ensure O(n) worst-case complexity of mbscasestr.
53895         * lib/mbscasestr.c: Include stdbool.h.
53896         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53897         functions.
53898         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53899         the bookkeeping indicates that it's worth it.
53900         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53901
53902         * modules/mbscasestr-tests: New file.
53903         * tests/test-mbscasestr1.c: New file.
53904         * tests/test-mbscasestr2.sh: New file.
53905         * tests/test-mbscasestr2.c: New file.
53906         * tests/test-mbscasestr3.sh: New file.
53907         * tests/test-mbscasestr3.c: New file.
53908         * tests/test-mbscasestr4.sh: New file.
53909         * tests/test-mbscasestr4.c: New file.
53910         * m4/locale-tr.m4: New file.
53911
53912 2007-02-11  Bruno Haible  <bruno@clisp.org>
53913
53914         Ensure O(n) worst-case complexity of mbsstr.
53915         * lib/mbsstr.c: Include stdbool.h.
53916         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53917         functions.
53918         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53919         bookkeeping indicates that it's worth it.
53920         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53921
53922         * modules/mbsstr-tests: New file.
53923         * tests/test-mbsstr1.c: New file.
53924         * tests/test-mbsstr2.sh: New file.
53925         * tests/test-mbsstr2.c: New file.
53926         * tests/test-mbsstr3.sh: New file.
53927         * tests/test-mbsstr3.c: New file.
53928         * m4/locale-fr.m4: New file.
53929
53930 2007-02-11  Bruno Haible  <bruno@clisp.org>
53931
53932         * lib/mbsrchr.c (mbsrchr): Fix bug.
53933
53934         * modules/mbsrchr-tests: New file.
53935         * tests/test-mbsrchr.sh: New file.
53936         * tests/test-mbsrchr.c: New file.
53937
53938 2007-02-11  Bruno Haible  <bruno@clisp.org>
53939
53940         * lib/mbschr.c (mbschr): Fix bug.
53941
53942         * modules/mbschr-tests: New file.
53943         * tests/test-mbschr.sh: New file.
53944         * tests/test-mbschr.c: New file.
53945         * m4/locale-zh.m4: New file.
53946
53947 2007-02-11  Bruno Haible  <bruno@clisp.org>
53948
53949         Support for copying multibyte string iterators.
53950         * lib/mbiter.h: Include <string.h>.
53951         (mbiter_multi_copy): New function.
53952         (mbi_copy): New macro.
53953         * lib/mbuiter.h: Include <string.h>.
53954         (mbuiter_multi_copy): New function.
53955         (mbui_copy): New macro.
53956
53957 2007-02-11  Bruno Haible  <bruno@clisp.org>
53958
53959         New module mbslen.
53960         * modules/mbslen: New file.
53961         * lib/mbslen.c: New file.
53962         * lib/string_.h (mbslen): New declaration.
53963         * m4/mbslen.m4: New file.
53964         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53965         GNULIB_MBSLEN.
53966         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53967         * MODULES.html.sh (Internationalization functions): Add mbslen.
53968
53969 2007-02-11  Bruno Haible  <bruno@clisp.org>
53970
53971         Ensure O(n) worst-case complexity of strcasestr substitute.
53972         * lib/strcasestr.c: Include stdbool.h.
53973         (knuth_morris_pratt): New function.
53974         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53975         bookkeeping indicates that it's worth it.
53976         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53977
53978         * modules/strcasestr-tests: New file.
53979         * tests/test-strcasestr.c: New file.
53980
53981 2007-02-11  Bruno Haible  <bruno@clisp.org>
53982
53983         Ensure O(n) worst-case complexity of c_strcasestr.
53984         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53985         (knuth_morris_pratt): New function.
53986         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53987         the bookkeeping indicates that it's worth it.
53988         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53989
53990         * modules/c-strcasestr-tests: New file.
53991         * tests/test-c-strcasestr.c: New file.
53992
53993 2007-02-11  Bruno Haible  <bruno@clisp.org>
53994
53995         Ensure O(n) worst-case complexity of c_strstr.
53996         * lib/c-strstr.c: Include stdbool.h, string.h.
53997         (knuth_morris_pratt): New function.
53998         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53999         bookkeeping indicates that it's worth it.
54000         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54001
54002         * lib/c-strstr.c: Complete rewrite for maintainability.
54003
54004         * modules/c-strstr-tests: New file.
54005         * tests/test-c-strstr.c: New file.
54006
54007 2007-02-11  Bruno Haible  <bruno@clisp.org>
54008
54009         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54010         5.2.1 and earlier, whereby \055 was treated just like the range
54011         delimiter '-'.
54012         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54013
54014 2007-02-08  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/regex (Depends-on): Add stdbool.
54017         Reported by Dalibor Topic <robilad@kaffe.org>.
54018
54019 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54020
54021         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54022         Prefer returning from main to exiting from it.
54023         Remove unnecessary parens after sizeof.
54024
54025 2007-02-05  Bruno Haible  <bruno@clisp.org>
54026
54027         New module mbssep.
54028         * modules/mbssep: New file.
54029         * lib/mbssep.c: New file.
54030         * lib/string_.h (strsep): Add a conditional link warning.
54031         (mbssep): New declaration.
54032         * m4/mbssep.m4: New file.
54033         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54034         GNULIB_MBSSEP.
54035         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54036         * MODULES.html.sh (Internationalization functions): Add mbssep.
54037
54038 2007-02-05  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54041         Optimize search in case of 1 delimiter.
54042
54043 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54044
54045         * lib/acl.h: Include sys/types.h before sys/acl.h.
54046
54047 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54048
54049         Merge upstream fix for glibc bugzilla #3957:
54050
54051         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54052
54053         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54054         bit for RE_HAT_LISTS_NOT_NEWLINE.
54055         (build_charclass_op): Remove bogus comment.
54056
54057 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54058
54059         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54060
54061 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54062
54063         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54064         * lib/memmem.c [!defined _LIBC]: Include config.h.
54065
54066 2007-02-04  Bruno Haible  <bruno@clisp.org>
54067
54068         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54069         warning message.
54070
54071 2007-02-04  Bruno Haible  <bruno@clisp.org>
54072
54073         New module mbstok_r.
54074         * modules/mbstok_r: New file.
54075         * lib/mbstok_r.c: New file.
54076         * lib/string_.h (strtok_r): Change argument names to match the
54077         comments. Add a conditional link warning.
54078         (mbstok_r): New declaration.
54079         * m4/mbstok_r.m4: New file.
54080         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54081         GNULIB_MBSTOK_R.
54082         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54083         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54084
54085 2007-02-04  Bruno Haible  <bruno@clisp.org>
54086
54087         New module mbsspn.
54088         * modules/mbsspn: New file.
54089         * lib/mbsspn.c: New file.
54090         * lib/string_.h (strspn): Add a conditional link warning.
54091         (mbsspn): New declaration.
54092         * m4/mbsspn.m4: New file.
54093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54094         GNULIB_MBSSPN.
54095         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54096         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54097
54098 2007-02-04  Bruno Haible  <bruno@clisp.org>
54099
54100         New module mbspbrk.
54101         * modules/mbspbrk: New file.
54102         * lib/mbspbrk.c: New file.
54103         * lib/string_.h (strpbrk): Add a conditional link warning.
54104         (mbspbrk): New declaration.
54105         * m4/mbspbrk.m4: New file.
54106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54107         GNULIB_MBSPBRK.
54108         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54109         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54110
54111 2007-02-04  Bruno Haible  <bruno@clisp.org>
54112
54113         New module mbscspn.
54114         * modules/mbscspn: New file.
54115         * lib/mbscspn.c: New file.
54116         * lib/string_.h (strcspn): Add a conditional link warning.
54117         (mbscspn): New declaration.
54118         * m4/mbscspn.m4: New file.
54119         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54120         GNULIB_MBSCSPN.
54121         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54122         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54123
54124 2007-02-04  Bruno Haible  <bruno@clisp.org>
54125
54126         New module mbscasestr, reduced goal of strcasestr.
54127         * modules/mbscasestr: New file.
54128         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54129         (mbscasestr): Renamed from strcasestr.
54130         * lib/strcasestr.c: Don't include mbuiter.h.
54131         (strcasestr): Remove support for multibyte locales.
54132         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54133         Change the conditional link warning.
54134         (mbscasestr): New declaration.
54135         * m4/mbscasestr.m4: New file.
54136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54137         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54138         REPLACE_STRCASESTR.
54139         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54140         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54141         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54142         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54143         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54144         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54145         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54146         (Depends-on): Remove mbuiter.
54147         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54148
54149 2007-02-04  Bruno Haible  <bruno@clisp.org>
54150
54151         Simplify handling of strncasecmp.
54152         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54153         the conditional link warning.
54154         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54155         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54156         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54157         * modules/strcase (configure.ac): Don't invoke
54158         gl_STRING_MODULE_INDICATOR.
54159         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54160
54161 2007-02-04  Bruno Haible  <bruno@clisp.org>
54162
54163         New module mbscasecmp, reduced goal of strcasecmp.
54164         * modules/mbscasecmp: New file.
54165         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54166         (mbscasecmp): Renamed from strcasecmp.
54167         * lib/strcasecmp.c: Don't include mbuiter.h.
54168         (strcasecmp): Remove support for multibyte locales.
54169         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54170         Change the conditional link warning.
54171         (mbscasecmp): New declaration.
54172         * m4/mbscasecmp.m4: New file.
54173         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54174         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54175         REPLACE_STRCASECMP.
54176         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54178         GNULIB_MBSCASECMP.
54179         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54180         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54181         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54182         (Depends-on): Remove mbuiter.
54183         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54184
54185 2007-02-04  Bruno Haible  <bruno@clisp.org>
54186
54187         New module mbsstr. Remove module strstr.
54188         * modules/mbsstr: New file.
54189         * modules/strstr: Remove file.
54190         * lib/mbsstr.c: Renamed from lib/strstr.c.
54191         (mbsstr): Renamed from strstr.
54192         * lib/string_.h (strstr): Remove declaration. Change the conditional
54193         link warning.
54194         (mbsstr): New declaration.
54195         * m4/mbsstr.m4: New file.
54196         * m4/strstr.m4: Remove file.
54197         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54198         REPLACE_STRSTR.
54199         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54200         Don't initialize GNULIB_STRSTR.
54201         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54202         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54203         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54204         (Support for systems lacking ANSI C 89): Remove strstr.
54205
54206 2007-02-04  Bruno Haible  <bruno@clisp.org>
54207
54208         New module mbsrchr.
54209         * modules/mbsrchr: New file.
54210         * lib/mbsrchr.c: New file.
54211         * lib/string_.h (strrchr): Add a conditional link warning.
54212         (mbsrchr): New declaration.
54213         * m4/mbsrchr.m4: New file.
54214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54215         GNULIB_MBSRCHR.
54216         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54217         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54218
54219 2007-02-04  Bruno Haible  <bruno@clisp.org>
54220
54221         New module mbschr.
54222         * modules/mbschr: New file.
54223         * lib/mbschr.c: New file.
54224         * lib/string_.h (strchr): Add a conditional link warning.
54225         (mbschr): New declaration.
54226         * m4/mbschr.m4: New file.
54227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54228         GNULIB_MBSCHR.
54229         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54230         * MODULES.html.sh (Internationalization functions): Add mbschr.
54231
54232 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54233
54234         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54235
54236         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54237
54238 2007-02-04  Bruno Haible  <bruno@clisp.org>
54239
54240         New module description section 'configure.ac-early'.
54241         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54242         (func_get_autoconf_early_snippet): New function.
54243         (func_import, func_create_testdir): Use it. Remove special cases for
54244         modules 'extensions' and 'lock'.
54245         * modules/extensions (configure.ac-early): Require
54246         gl_USE_SYSTEM_EXTENSIONS.
54247         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54248
54249 2007-02-04  Bruno Haible  <bruno@clisp.org>
54250
54251         Make use of gcj-4.3's -fsource and -ftarget option.
54252         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54253         and if so try the options -fsource and -ftarget.
54254         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54255         source_version, ftarget_option, target_version arguments.
54256         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54257         (is_envjavac_oldgcj_14_14_usable): Renamed from
54258         is_envjavac_gcj_14_14_usable.
54259         (is_envjavac_oldgcj_14_13_usable): Renamed from
54260         is_envjavac_gcj_14_13_usable.
54261         (is_gcj_present): Update.
54262         (is_gcj_43, is_gcj43_usable): New functions.
54263         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54264         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54265         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54266         try the options -fsource and -ftarget.
54267
54268 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54269
54270         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54271         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54272         larger value.
54273
54274 2007-02-03  Jim Meyering  <jim@meyering.net>
54275
54276         Give tools a better chance to allocate space for very large buffers.
54277         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54278
54279         Make pwd and readlink work also when run with an unreadable parent dir
54280         on systems with openat support.
54281         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54282         provided getcwd function, even when we have openat support.
54283         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54284
54285 2007-02-02  Bruno Haible  <bruno@clisp.org>
54286
54287         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54288         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54289         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54290         portability problems if one of these functions is only used on specific
54291         platforms.
54292         Reported by Paul Eggert.
54293
54294 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54295
54296         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54297         is causing more trouble than it's curing.
54298         * lib/regex_internal.h (__mempcpy): Remove.
54299         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54300         (and make the code a tad smaller to boot).
54301         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54302
54303 2007-02-02  Jim Meyering  <jim@meyering.net>
54304
54305         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54306         section, not in the Makefile.am: one.
54307
54308 2007-02-02  Eric Blake  <ebb9@byu.net>
54309
54310         * lib/strchrnul.c: Always include config.h first.
54311
54312         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54313         gnulib strstr is not necessary here.
54314
54315 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54316
54317         * m4/socklen.m4: Fix typo.
54318
54319 2007-02-02  Eric Blake  <ebb9@byu.net>
54320
54321         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54322         * modules/netinet_in (Makefile.am): Likewise.
54323
54324 2007-02-01  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/string_.h (GL_LINK_WARNING): New macro.
54327         (strcasecmp, strstr, strcasestr): If provided by the system,
54328         conditionally define as a macro that leads to a warning instead of to
54329         an error.
54330         (strncasecmp): Conditionally define as a macro that leads to a warning.
54331
54332 2007-02-01  Karl Berry  <karl@gnu.org>
54333
54334         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54335
54336 2007-02-01  Bruno Haible  <bruno@clisp.org>
54337
54338         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54339         renamings.
54340
54341 2007-02-01  Eric Blake  <ebb9@byu.net>
54342
54343         * modules/regex (Depends-on): Revert dependence on mempcpy.
54344         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54345         module's definition of mempcpy.
54346         Reported by Paul Eggert.
54347
54348 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54349
54350         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54351         the symbol XYZ before redefining it.  This fixes a problem with
54352         programs that don't use XYZ, when compiled on systems that define
54353         XYZ to something else.
54354
54355 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54356
54357         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54358         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54359         writeable to group or other and (2) is intended to have a special
54360         mode bit that is set or cleared.  In such a case, the directory
54361         should be neither group- nor other-writeable until the special
54362         mode bits are right.
54363
54364 2007-01-31  Eric Blake  <ebb9@byu.net>
54365
54366         * modules/mountlist (Depends-on): Add strstr.
54367
54368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54369         bug.
54370         * modules/string (Makefile.am): Remove redundant replacement.
54371         * modules/regex (Depends-on): Add mempcpy.
54372
54373 2007-01-31  Bruno Haible  <bruno@clisp.org>
54374
54375         New module description field 'Link'.
54376         * gnulib-tool (func_usage): Document --extract-link-directive.
54377         (sed_extract_prog): Recognize 'Link' directive.
54378         (func_get_link_directive): New function.
54379         (func_import): Show summary of link directives.
54380         Handle --extract-link-directive option.
54381         * modules/acl (Link): New section.
54382         * modules/clock-time (Link): New section.
54383         * modules/euidaccess (Link): New section.
54384         * modules/gettext (Link): New section.
54385         * modules/iconv (Link): New section.
54386         * modules/lock (Link): New section.
54387         * modules/nanosleep (Link): New section.
54388         * modules/readline (Link): New section.
54389
54390 2007-01-27  Bruno Haible  <bruno@clisp.org>
54391
54392         Enforce the use of gnulib modules for unportable <string.h> functions.
54393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54394         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54395         (gl_HEADER_STRING_H_BODY): Require it.
54396         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54397         the symbol XYZ to one that gives a link error.
54398         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54399         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54400         * modules/mempcpy (configure.ac): Likewise.
54401         * modules/memrchr (configure.ac): Likewise.
54402         * modules/stpcpy (configure.ac): Likewise.
54403         * modules/stpncpy (configure.ac): Likewise.
54404         * modules/strcase (configure.ac): Likewise.
54405         * modules/strcasestr (configure.ac): Likewise.
54406         * modules/strchrnul (configure.ac): Likewise.
54407         * modules/strdup (configure.ac): Likewise.
54408         * modules/strndup (configure.ac): Likewise.
54409         * modules/strnlen (configure.ac): Likewise.
54410         * modules/strpbrk (configure.ac): Likewise.
54411         * modules/strsep (configure.ac): Likewise.
54412         * modules/strstr (configure.ac): Likewise.
54413         * modules/strtok_r (configure.ac): Likewise.
54414
54415 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54416
54417         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54418
54419 2007-01-30  Jim Meyering  <jim@meyering.net>
54420
54421         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54422
54423 2007-01-29  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54426         * lib/execute.c: Likewise.
54427         * lib/pipe.c: Likewise.
54428         * lib/printf-args.h: Likewise.
54429         * lib/printf-args.c: Likewise.
54430         * lib/printf-parse.c: Likewise.
54431         * lib/vasnprintf.c: Likewise.
54432
54433 2007-01-29  Eric Blake  <ebb9@byu.net>
54434
54435         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54436         declaration.
54437
54438 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54439
54440         * lib/strptime.h (strptime): Use 'restrict' for args where
54441         POSIX requires this.
54442         * lib/strptime.c (strptime): Likewise.
54443         Change license notice from LGPL to GPL, since gnulib-tool will
54444         change this as needed.
54445         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54446         defined.
54447         Include "strptime.h" first, to check interface.
54448         Do not #undef _LIBC and _NL_CURRENT.
54449         Do not include <stdlib.h>; no longer needed.
54450         Include "time_r.h" and declare ptime_locale_status
54451         only if _LIBC is not defined.
54452         (__P): Remove unused macro.
54453         (match_string): Bring back glibc version, but use it only if _LIBC
54454         is defined.
54455         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54456         Remove unnecessary assertion and abort() call.
54457         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54458         * m4/strptime.m4: Fix serial number comment.
54459         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54460         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54461         (Depends-on): Add time_r.
54462
54463 2007-01-29  Bruno Haible  <bruno@clisp.org>
54464
54465         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54466         strptime.
54467         * modules/strptime (Depends-on): Add stdbool.
54468         * lib/strptime.h: Include <time.h> always. Add comments.
54469
54470 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54471
54472         * modules/strptime: New file.
54473         * lib/strptime.h: New file.
54474         * lib/strptime.c: New file.
54475         * m4/strptime.m4: New file.
54476
54477 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * MODULES.html.sh: New module mpsort.
54480         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54481
54482         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54483         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54485         All uses changed.
54486         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54487         All uses changed.
54488         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54489         to _Restrict_.
54490         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54491         the parameter matches the prototype.
54492
54493 2007-01-28  Jim Meyering  <jim@meyering.net>
54494
54495         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54496         sys/time.h here, reverting that part of the previous patch:
54497         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54498
54499 2007-01-28  Bruno Haible  <bruno@clisp.org>
54500
54501         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54502         value of $(SYS_TIME_H).
54503         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54504         remove it conditionally, too. [added by Jim Meyering]
54505         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54506         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54508         GETTIMEOFDAY_REPLACEMENT to 1.
54509
54510 2007-01-28  Bruno Haible  <bruno@clisp.org>
54511
54512         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54513         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54515         Set UNISTD_H instead of UNISTD_H2.
54516         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54517
54518 2007-01-28  Bruno Haible  <bruno@clisp.org>
54519
54520         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54521         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54522
54523 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54524
54525         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54526         (func_create_testdir): Ensure C locale for `grep' and `tr'
54527         character ranges.
54528         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54529         ACLOCAL_AMFLAGS parsing state machine.
54530
54531 2007-01-27  Bruno Haible  <bruno@clisp.org>
54532
54533         * modules/unistr/base: Update.
54534
54535 2007-01-27  Bruno Haible  <bruno@clisp.org>
54536
54537         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54538         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54539         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54540         modules/unistr/u32-mbtouc.
54541         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
54542         * lib/unistr.h: Update.
54543         * lib/linebreak.c: Update.
54544         * modules/unistr/u32-mbtouc: Renamed from
54545         modules/unistr/u32-mbtouc-safe.
54546         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
54547         * lib/unistr.h: Update.
54548         * lib/unistr/u32-to-u8.c: Update.
54549         * lib/unistr/u32-to-u16.c: Update.
54550
54551 2007-01-27  Bruno Haible  <bruno@clisp.org>
54552
54553         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
54554         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
54555         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
54556         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
54557         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
54558         * modules/unistr/u16-mbtouc-unsafe: Renamed from
54559         modules/unistr/u16-mbtouc.
54560         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
54561         * lib/unistr.h: Update.
54562         * lib/linebreak.c: Update.
54563         * modules/linebreak: Update.
54564         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
54565         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
54566         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
54567         * modules/unistr/u16-mbtouc: Renamed from
54568         modules/unistr/u16-mbtouc-safe.
54569         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
54570         * lib/unistr.h: Update.
54571         * lib/unistr/u16-to-u8.c: Update.
54572         * modules/unistr/u16-to-u8: Update.
54573         * lib/unistr/u16-to-u32.c: Update.
54574         * modules/unistr/u16-to-u32: Update.
54575
54576 2007-01-27  Bruno Haible  <bruno@clisp.org>
54577
54578         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
54579         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
54580         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
54581         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
54582         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
54583         * modules/unistr/u8-mbtouc-unsafe: Renamed from
54584         modules/unistr/u8-mbtouc.
54585         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
54586         * lib/unistr.h: Update.
54587         * lib/striconveh.c: Update.
54588         * modules/striconveh: Update.
54589         * lib/linebreak.c: Update.
54590         * modules/linebreak: Update.
54591         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
54592         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
54593         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
54594         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
54595         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
54596         * lib/unistr.h: Update.
54597         * lib/striconveh.c: Update.
54598         * modules/striconveh: Update.
54599         * lib/unistr/u8-to-u16.c: Update.
54600         * modules/unistr/u8-to-u16: Update.
54601         * lib/unistr/u8-to-u32.c: Update.
54602         * modules/unistr/u8-to-u32: Update.
54603
54604 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54605
54606         Sync from Libtool.
54607         * lib/argz.c: Do not include strings.h nor memory.h, include
54608         string.h unconditionally.  Patch by Simon Josefsson.
54609
54610 2007-01-27  Bruno Haible  <bruno@clisp.org>
54611
54612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
54613         from gl_HEADER_STRING_H_BODY.
54614         (gl_HEADER_STRING_H_BODY): Require it.
54615         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
54616         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
54617         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
54618         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
54619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
54620         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
54621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54622         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
54623         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
54624         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54625         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
54626         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
54627         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
54628         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54629         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
54630
54631 2007-01-27  Bruno Haible  <bruno@clisp.org>
54632
54633         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
54634         check_PROGRAMS into noinst_PROGRAMS.
54635         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
54636         check_PROGRAMS in this case.
54637         (func_import): Set for_test to false.
54638         (func_create_testdir): Set for_test to true.
54639
54640 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
54641             Bruno Haible  <bruno@clisp.org>
54642
54643         * modules/strcasestr (Files): Remove lib/strcasestr.h.
54644         (Depends-on): Add string.
54645         (Includes): Use <string.h> instead of strcasestr.h.
54646         * modules/string (Makefile.am): Also substitute the value of
54647         REPLACE_STRCASESTR.
54648         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
54649         assume strcasestr is declared in <string.h> not <strings.h>. Also
54650         set REPLACE_STRCASESTR.
54651         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
54652         REPLACE_STRCASESTR.
54653         * lib/strcasestr.h: Remove file.
54654         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
54655         * lib/string_.h (strcasestr): New declaration.
54656
54657 2007-01-27  Bruno Haible  <bruno@clisp.org>
54658
54659         * lib/string_.h: Use 'extern'.
54660
54661 2007-01-27  Jim Meyering  <jim@meyering.net>
54662
54663         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
54664         of set-but-not-used local, "q".
54665
54666         * lib/mempcpy.c: Include <config.h> before <string.h>.
54667         This fixes a compilation error on HP-UX, due to the system's
54668         "restrict"-using mempcpy prototype.
54669
54670 2007-01-26  Bruno Haible  <bruno@clisp.org>
54671
54672         Small optimization.
54673         * lib/javacomp.c: Include c-strstr.h.
54674          (is_envjavac_gcj): Use c_strstr instead of strstr.
54675         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
54676
54677 2007-01-26  Bruno Haible  <bruno@clisp.org>
54678
54679         * MODULES.html.sh (Unicode string functions): Add the new modules.
54680
54681         * modules/uniconv/u32-strconv-to-locale: New file.
54682         * lib/uniconv/u32-strconv-to-locale.c: New file.
54683
54684         * modules/uniconv/u16-strconv-to-locale: New file.
54685         * lib/uniconv/u16-strconv-to-locale.c: New file.
54686
54687         * modules/uniconv/u8-strconv-to-locale: New file.
54688         * lib/uniconv/u8-strconv-to-locale.c: New file.
54689
54690         * modules/uniconv/u32-strconv-from-locale: New file.
54691         * lib/uniconv/u32-strconv-from-locale.c: New file.
54692
54693         * modules/uniconv/u16-strconv-from-locale: New file.
54694         * lib/uniconv/u16-strconv-from-locale.c: New file.
54695
54696         * modules/uniconv/u8-strconv-from-locale: New file.
54697         * lib/uniconv/u8-strconv-from-locale.c: New file.
54698
54699         * modules/uniconv/u32-strconv-to-enc: New file.
54700         * lib/uniconv/u32-strconv-to-enc.c: New file.
54701         * modules/uniconv/u32-strconv-to-enc-tests: New file.
54702         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
54703
54704         * modules/uniconv/u16-strconv-to-enc: New file.
54705         * lib/uniconv/u16-strconv-to-enc.c: New file.
54706         * lib/uniconv/u-strconv-to-enc.h: New file.
54707         * modules/uniconv/u16-strconv-to-enc-tests: New file.
54708         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
54709
54710         * modules/uniconv/u8-strconv-to-enc: New file.
54711         * lib/uniconv/u8-strconv-to-enc.c: New file.
54712         * modules/uniconv/u8-strconv-to-enc-tests: New file.
54713         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
54714
54715         * modules/uniconv/u32-strconv-from-enc: New file.
54716         * lib/uniconv/u32-strconv-from-enc.c: New file.
54717         * modules/uniconv/u32-strconv-from-enc-tests: New file.
54718         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
54719
54720         * modules/uniconv/u16-strconv-from-enc: New file.
54721         * lib/uniconv/u16-strconv-from-enc.c: New file.
54722         * modules/uniconv/u16-strconv-from-enc-tests: New file.
54723         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
54724
54725         * modules/uniconv/u8-strconv-from-enc: New file.
54726         * lib/uniconv/u8-strconv-from-enc.c: New file.
54727         * lib/uniconv/u-strconv-from-enc.h: New file.
54728         * modules/uniconv/u8-strconv-from-enc-tests: New file.
54729         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
54730
54731         * modules/uniconv/u32-conv-from-enc: New file.
54732         * lib/uniconv/u32-conv-from-enc.c: New file.
54733         * modules/uniconv/u32-conv-from-enc-tests: New file.
54734         * tests/uniconv/test-u32-conv-from-enc.c: New file.
54735
54736         * modules/uniconv/u16-conv-from-enc: New file.
54737         * lib/uniconv/u16-conv-from-enc.c: New file.
54738         * lib/uniconv/u-conv-from-enc.h: New file.
54739         * modules/uniconv/u16-conv-from-enc-tests: New file.
54740         * tests/uniconv/test-u16-conv-from-enc.c: New file.
54741
54742         * modules/uniconv/u8-conv-from-enc: New file.
54743         * lib/uniconv/u8-conv-from-enc.c: New file.
54744         * modules/uniconv/u8-conv-from-enc-tests: New file.
54745         * tests/uniconv/test-u8-conv-from-enc.c: New file.
54746
54747         * modules/uniconv/base: New file.
54748         * lib/uniconv.h: New file.
54749
54750 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         * doc/gnulib-tool.texi (Initial import): Update to match current
54753         behavior with strdup module.
54754         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
54755         * lib/memmem.h: Remove; all uses removed.  This is now done
54756         by <string.h>.
54757         * lib/mempcpy.h: Likewise.
54758         * lib/memrchr.h: Likewise.
54759         * lib/stpcpy.h: Likewise.
54760         * lib/stpncpy.h: Likewise.
54761         * lib/strcase.h: Likewise.
54762         * lib/strchrnul.h: Likewise.
54763         * lib/strdup.h: Likewise.
54764         * lib/strndup.h: Likewise.
54765         * lib/strnlen.h: Likewise.
54766         * lib/strpbrk.h: Likewise.
54767         * lib/strsep.h: Likewise.
54768         * lib/strstr.h: Likewise.
54769         * lib/strtok_r.h: Likewise.
54770         * lib/string_.h: New file.
54771         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
54772         Rely on <string.h> instead.
54773         * lib/canon-host.c: Likewise.
54774         * lib/chdir-long.c: Likewise.
54775         * lib/concatpath.c: Likewise.
54776         * lib/exclude.c: Likewise.
54777         * lib/fchdir.c: Likewise.
54778         * lib/getaddrinfo.c: Likewise.
54779         * lib/getcwd.c: Likewise.
54780         * lib/getsubopt.c: Likewise.
54781         * lib/glob.c: Likewise.
54782         * lib/hard-locale.c: Likewise.
54783         * lib/iconvme.c: Likewise.
54784         * lib/javacomp.c: Likewise.
54785         * lib/mempcpy.c: Likewise.
54786         * lib/memrchr.c: Likewise.
54787         * lib/regex_internal.h: Likewise.
54788         * lib/stpncpy.c: Likewise.
54789         * lib/strcasecmp.c: Likewise.
54790         * lib/strchrnul.c: Likewise.
54791         * lib/strdup.c: Likewise.
54792         * lib/striconv.c: Likewise.
54793         * lib/striconveh.c: Likewise.
54794         * lib/striconveha.c: Likewise.
54795         * lib/strncasecmp.c: Likewise.
54796         * lib/strndup.c: Likewise.
54797         * lib/strnlen.c: Likewise.
54798         * lib/strsep.c: Likewise.
54799         * lib/strstr.c: Likewise.
54800         * lib/strtok_r.c: Likewise.
54801         * lib/userspec.c: Likewise.
54802         * lib/w32spawn.h: Likewise.
54803         * lib/xstrndup.c: Likewise.
54804         * lib/mountlist.c (strstr): Remove decl.
54805         * m4/string_h.m4: New file.
54806         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
54807         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
54808         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
54809         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
54810         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
54811         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
54812         Set REPLACE_STRCASECMP if necessary.
54813         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54814         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54815         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54816         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54817         HAVE_DECL_STRDUP if necessary.
54818         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54819         since gl_FUNC_STRNDUP does that now.
54820         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54821         Check for decl here...
54822         (gl_PREREQ_STRNLEN): ... not here.
54823         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54824         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54825         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54826         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54827         necessary.
54828         * modules/string: New file.
54829         * modules/memmem (Files): Remove special-purpose include file.
54830         (Depends-on): Add string.
54831         (Include): Include <string.h>, not the removed file.
54832         * modules/mempcpy: Likewise.
54833         * modules/memrchr: Likewise.
54834         * modules/stpcpy: Likewise.
54835         * modules/stpncpy: Likewise.
54836         * modules/strcase: Likewise.
54837         * modules/strchrnul: Likewise.
54838         * modules/strdup: Likewise.
54839         * modules/strndup: Likewise.
54840         * modules/strnlen: Likewise.
54841         * modules/strpbrk: Likewise.
54842         * modules/strsep: Likewise.
54843         * modules/strstr: Likewise.
54844         * modules/strtok_r: Likewise.
54845         * tests/test-dirname.c: Don't include "strdup.h", since
54846         <string.h> now suffices.
54847         * tests/test-memmem.c: Don't include "memmem.h", since
54848         <string.h> now suffices.
54849
54850 2007-01-25  Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54853         *resultp is 0.
54854
54855         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54856         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54857         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54858         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54859
54860         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54861         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54862         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54863         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54864         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54865         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54866
54867 2007-01-24  Bruno Haible  <bruno@clisp.org>
54868
54869         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54870         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54871         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54872         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54873         gl_FUNC_FTS_CORE.
54874         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54875         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54876         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54877         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54878         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54879         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54880         gl_FUNC_FCHOWNAT.
54881         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54882         gl_FUNC_STRFTIME.
54883         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54884         Reported by Ralf Wildenhues.
54885
54886 2007-01-24  Bruno Haible  <bruno@clisp.org>
54887
54888         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54889         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54890         gl_GETADDRINFO.
54891         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54892         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54893         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54894
54895 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54896
54897         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54898         Don't use 'exit'; just return from 'main'.
54899         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54900
54901         * lib/fnmatch_.h: Readjust white space and comments to match
54902         glibc, to avoid spurious diffs.
54903
54904 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54905
54906         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54907         2004-12-01 change by Jakub Jelinek, since this code won't compile
54908         if !LIBC.  Problem reported by Bob Proulx.
54909
54910 2007-01-23  Bruno Haible  <bruno@clisp.org>
54911
54912         * lib/striconveh.c: Include c-strcaseeq.h.
54913         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54914         * modules/striconveh (Depends-on): Add c-strcaseeq.
54915
54916 2007-01-23  Bruno Haible  <bruno@clisp.org>
54917
54918         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54919
54920         * modules/c-strcaseeq: New file.
54921         * lib/c-strcaseeq.h: New file.
54922
54923         * modules/streq: New file.
54924         * lib/streq.h: New file.
54925
54926 2007-01-23  Bruno Haible  <bruno@clisp.org>
54927
54928         * modules/striconveha-tests: New file.
54929         * tests/test-striconveha.c: New file.
54930
54931         * lib/striconveha.h: Include <stdbool.h>.
54932         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54933         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54934         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54935         (mem_iconveha): New function.
54936         (str_iconveha_notranslit): Renamed from str_iconveha.
54937         (str_iconveha): New function.
54938         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54939         c-strcase.
54940
54941 2007-01-23  Bruno Haible  <bruno@clisp.org>
54942
54943         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54944         encodings without forgiving before trying any encoding with handler.
54945         (str_iconveha): Try all encodings without forgiving before trying any
54946         encoding with handler.
54947
54948 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54949
54950         Import the following changes from libc.
54951
54952         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54953
54954         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54955
54956         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54957
54958         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54959         normal_bracket label.
54960
54961         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54962
54963         [BZ #361]
54964         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54965         to normal_bracket after fetching the next character.
54966
54967 2007-01-22  Bruno Haible  <bruno@clisp.org>
54968
54969         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54970         argument.
54971         * lib/striconveh.c (iconv_carefully_1): New function.
54972         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54973         argument.
54974         (str_cd_iconveh): Update.
54975         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54976         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54977         * tests/test-striconveh.c (MAGIC): New macro.
54978         (new_offsets): New function.
54979         (main): Test call with and without offsets.
54980
54981 2007-01-22  Bruno Haible  <bruno@clisp.org>
54982
54983         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54984         * modules/sys_select (Makefile.am): Likewise.
54985         * modules/sys_socket (Makefile.am): Likewise.
54986         * modules/sys_time (Makefile.am): Likewise.
54987
54988 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54989
54990         * modules/gettimeofday (License): Change from GPL to LGPL, since
54991         gettimeofday is a library function.
54992
54993 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54994
54995         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54996
54997 2007-01-21  Bruno Haible  <bruno@clisp.org>
54998
54999         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55000
55001 2007-01-21  Bruno Haible  <bruno@clisp.org>
55002
55003         * modules/striconveha: New file.
55004         * lib/striconveha.h: New file.
55005         * lib/striconveha.c: New file.
55006         * MODULES.html.sh (Internationalization functions): Add striconveha.
55007         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55008         string.
55009         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55010
55011 2007-01-21  Bruno Haible  <bruno@clisp.org>
55012
55013         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55014         * lib/striconveh.c (str_iconveh): Likewise.
55015
55016 2007-01-21  Bruno Haible  <bruno@clisp.org>
55017
55018         * lib/striconveh.h (mem_iconveh): New declaration.
55019         * lib/striconveh.c (mem_iconveh): New function.
55020         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55021
55022 2007-01-21  Bruno Haible  <bruno@clisp.org>
55023
55024         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55025
55026         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55027         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55028         original result buffer.
55029         (str_cd_iconveh): Update.
55030         * tests/test-striconveh.c (main): Update.
55031
55032         * lib/striconv.h (mem_cd_iconv): Change specification.
55033         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55034         result buffer.
55035         (str_cd_iconv): Update.
55036         * tests/test-striconv.c (main): Update.
55037
55038 2007-01-21  Bruno Haible  <bruno@clisp.org>
55039
55040         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55041
55042 2007-01-20  Jim Meyering  <jim@meyering.net>
55043
55044         * lib/userspec.c (parse_with_separator): If a user or group string
55045         starts with "+", skip the corresponding name-to-ID look-up, since
55046         such a look-up must fail: user and group names may not include "+".
55047
55048 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55049
55050         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55051         since we now assume the sys_time module.
55052         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55053         check for sys/time.h; no longer needed.
55054         * modules/poll (Depends-on): Depend on sys_time.
55055
55056 2007-01-18  Bruno Haible  <bruno@clisp.org>
55057
55058         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55060
55061         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55062         gettimeofday.
55063
55064         * tests/test-gettimeofday.c: Include <time.h>.
55065         (dummy): Remove variable.
55066
55067         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55068         gl_HEADER_SYS_TIME_H.
55069         (gl_HEADER_SYS_TIME_H): New macro.
55070
55071         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55072         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55074         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55075         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55077         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55078         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55079         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55080         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55081         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55082
55083         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55084         last change; it caused a compilation error when cross-compiling to
55085         Cygwin.
55086
55087 2007-01-18  Jim Meyering  <jim@meyering.net>
55088
55089         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55090         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55091         than the race-prone "test -d sys || mkdir sys".
55092         (configure.ac): Use AC_PROG_MKDIR_P.
55093         * modules/sys_select: Likewise.
55094         * modules/sys_socket: Likewise.
55095         * modules/sys_time: Likewise.
55096
55097 2007-01-18  Eric Blake  <ebb9@byu.net>
55098
55099         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55100         replace gettimeofday.
55101         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55102         name, to avoid infinite recursion.
55103
55104 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55105
55106         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55107         module sys_time.
55108         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55109         assume timespec.h defines struct timeval.
55110         * lib/settime.c: Likewise.
55111         * lib/utimens.c: Likewise.
55112         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55113         since we now assume the gettimeofday module.
55114         * lib/tempname.c (__gen_tempname): Likewise.
55115         * lib/gettimeofday.h: Remove.
55116         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55117         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55118         Include <time.h>, for 'time()'.
55119         (localtime_buffer_addr): Also use this workaround if
55120         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55121         to simplify the uses.  All uses changed.
55122         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55123         that #undef is inside {}, and 'const' follows type name consistently.
55124         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55125         (gettimeofday): Do not use the maximum possible value for
55126         tv->tv_usec, since that might break usages other than ls.c.
55127         Instead, we'll leave ls.c alone.  This undoes today's patch
55128         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55129         we've never observed the problem but might as well keep the
55130         canary.
55131         * lib/nanosleep.c: Include timespec.h first, for interface check.
55132         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55133         now assume the sys_time module.
55134         * lib/tempname.c: Likewise.
55135         * lib/timespec.h: Likewise.
55136         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55137         needed.
55138         * lib/strftime.c: Likewise.
55139         * lib/timespec.h: Likewise.
55140         * lib/posixtm.c: Include posixtm.h first, for interface check.
55141         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55142         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55143         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55144         * lib/sys_time_.h: New file.
55145         * lib/timespec.h (struct timespec): Use long int, not long.
55146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55147         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55148         Remove obsolescent call to AC_HEADER_TIME.
55149         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55150         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55151         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55152         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55153         Likewise.
55154         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55155         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55157         into the sys_time module.  Check for gettimeofday just once.
55158         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55159         for gettimeofday signature to just check the signature.  Merely
55160         compile it, since linking doesn't test signature.  Improve test for
55161         whether gettimeofday.o is actually needed.
55162         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55163         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55164         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55165         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55166         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55167         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55168         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55169         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55170         than worrying about sys/time.h.
55171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55172         Don't bother worrying about TIME_WITH_SYS_TIME.
55173         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55174         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55175         * m4/sys_time_h.m4: New file.
55176         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55177         Don't include sys/time.h.  Return from main rather than exiting.
55178         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55179         all uses changed.
55180         * modules/gethrxtime (Depends-on): Add sys_time.
55181         * modules/gettime (Depends-on): Likewise.
55182         * modules/gettimeofday (Depends-on): Likewise.
55183         * modules/nanosleep (Depends-on): Likewise.
55184         * modules/settime (Depends-on): Likewise.
55185         * modules/tempname (Depends-on): Likewise.
55186         * modules/utimens (Depends-on): Likewise.
55187         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55188         (Include): Change back to <sys/time.h>.
55189         (Maintainer): Add self.
55190         * modules/sys_time: New file.
55191         * modules/tempname (Depends-on): Add gettimeofday.
55192         * tests/test-gettimeofday.c: Include <sys/time.h>
55193         rather than gettimeofday.h.
55194
55195 2007-01-17  Bruno Haible  <bruno@clisp.org>
55196
55197         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55198         the license default to GPL.
55199         (func_create_testdir): Don't complain if a module is LGPL and its
55200         tests module depends on GPLed modules.
55201
55202 2007-01-17  Bruno Haible  <bruno@clisp.org>
55203
55204         * lib/gettimeofday.c (gettimeofday): Add code for the case
55205         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55206         maximum possible value for tv->tv_usec, rather than the minimum one.
55207
55208 2005-10-08  Martin Lambers  <marlam@marlam.de>
55209 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55210 2007-01-16  Bruno Haible  <bruno@clisp.org>
55211
55212         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55213         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55214         gl_FUNC_GETTIMEOFDAY.
55215         (Include): Add gettimeofday.h.
55216         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55217         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55218         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55219         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55220         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55221         * lib/gettimeofday.h: New file.
55222         * lib/gettimeofday.c: Include <sys/timeb.h>.
55223         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55224         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55225         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55226         fall back on time().
55227
55228         * tests/test-gettimeofday.c: New file.
55229         * modules/gettimeofday-tests: New file.
55230
55231 2007-01-16  Eric Blake  <ebb9@byu.net>
55232
55233         * modules/fnmatch (Depends-on): Depend on wchar.
55234         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55235         * m4/fnmatch.m4: Likewise.
55236         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55237         * m4/mbchar.m4: Likewise.
55238         * modules/mbswidth (Depends-on): Depend on wchar.
55239         * lib/mbswidth.c: Assume <wchar.h>.
55240         * m4/mbswidth.m4: Likewise.
55241         * modules/quotearg (Depends-on): Depend on wchar.
55242         * lib/quotearg.c: Assume <wchar.h>.
55243         * m4/quotearg.m4: Likewise.
55244         * modules/regex (Depends-on): Depend on wchar.
55245         * lib/regex_internal.h: Assume <wchar.h>.
55246         * m4/regex.m4: Likewise.
55247         * modules/stdint (Depends-on): Depend on wchar.
55248         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55249         * m4/stdint.m4: Likewise.
55250         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55251         * modules/strftime (Depends-on): Depend on wchar.
55252         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55253         * modules/strtol (Depends-on): Depend on wchar.
55254         * lib/strtol.c: Assume <wchar.h>.
55255         * modules/wcwidth (Depends-on): Depend on wchar.
55256         * lib/wcwidth.h: Assume <wchar.h>.
55257         * m4/wcwidth.m4: Likewise.
55258
55259 2007-01-16  Bruno Haible  <bruno@clisp.org>
55260
55261         * modules/csharpexec-script: New, created from...
55262         * modules/csharpexec: ... this.
55263
55264 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55265
55266         * modules/javaexec-script: New, created from...
55267         * modules/javaexec: ... this.
55268
55269 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55270
55271         * modules/poll (Dependencies): Add sys_select.
55272
55273 2007-01-15  Jim Meyering  <jim@meyering.net>
55274
55275         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55276         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55277         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55278         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55279
55280 2007-01-15  Bruno Haible  <bruno@clisp.org>
55281
55282         * modules/striconveh: New file.
55283         * lib/striconveh.h: New file.
55284         * lib/striconveh.c: New file.
55285         * MODULES.html.sh (Internationalization functions): Add striconveh.
55286
55287         * modules/striconveh-tests: New file.
55288         * tests/test-striconveh.c: New file.
55289
55290 2007-01-15  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55293         not from GNU libiconv or GNU libc.
55294
55295 2007-01-15  Bruno Haible  <bruno@clisp.org>
55296
55297         * doc/gnulib-intro.texi (Copyright): Explain the different license
55298         terms for module descriptions, autoconf macros, tests, documentation.
55299
55300 2007-01-14  Bruno Haible  <bruno@clisp.org>
55301
55302         * modules/striconv-tests: New file.
55303         * tests/test-striconv.c: New file.
55304
55305 2007-01-14  Bruno Haible  <bruno@clisp.org>
55306
55307         * modules/iconv-tests: New file.
55308         * tests/test-iconv.c: New file.
55309
55310 2007-01-14  Bruno Haible  <bruno@clisp.org>
55311
55312         * gnulib-tool (func_get_license): For test modules, use the license of
55313         the main module.
55314
55315 2007-01-14  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55318         if iconv is found to exist.
55319
55320 2007-01-14  Bruno Haible  <bruno@clisp.org>
55321
55322         * modules/c-ctype-tests: New file.
55323         * tests/test-c-ctype.c: New file.
55324
55325 2007-01-14  Bruno Haible  <bruno@clisp.org>
55326
55327         * modules/binary-io-tests: New file.
55328         * tests/test-binary-io.sh: New file.
55329         * tests/test-binary-io.c: New file.
55330
55331 2007-01-14  Bruno Haible  <bruno@clisp.org>
55332
55333         * modules/array-oset-tests: New file.
55334         * tests/test-array_oset.c: New file.
55335
55336 2007-01-14  Bruno Haible  <bruno@clisp.org>
55337
55338         * modules/array-list-tests: New file.
55339         * tests/test-array_list.c: New file.
55340
55341 2007-01-14  Bruno Haible  <bruno@clisp.org>
55342
55343         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55344         and make.
55345         Reported by Simon Josefsson in
55346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55347
55348 2007-01-14  Bruno Haible  <bruno@clisp.org>
55349
55350         * modules/allocsa-tests: New file.
55351         * tests/test-allocsa.c: New file.
55352
55353 2007-01-14  Bruno Haible  <bruno@clisp.org>
55354
55355         * modules/fchdir (Depends-on): Add absolute-header.
55356         * modules/unistd (Depends-on): Likewise.
55357
55358 2006-12-30  Bruno Haible  <bruno@clisp.org>
55359
55360         * modules/fchdir: New file.
55361         * modules/unistd (Files): Add lib/unistd_.h.
55362         (Makefile.am): Generate unistd.h from unistd_.h.
55363         * lib/fchdir.c: New file.
55364         * lib/dirent_.h: New file.
55365         * lib/unistd_.h: New file.
55366         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55367         * m4/fchdir.m4: New file.
55368         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55369         (gl_HEADER_UNISTD): Invoke it.
55370         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55371         function.
55372         * lib/backupfile.c (opendir, closedir): Undefine.
55373         * lib/chown.c (open, close): Undefine.
55374         * lib/clean-temp.c (open, close): Undefine.
55375         * lib/copy-file.c (open, close): Undefine.
55376         * lib/execute.c (open, close): Undefine.
55377         * lib/fsusage.c (open, close): Undefine.
55378         * lib/gc-gnulib.c (open, close): Undefine.
55379         * lib/getcwd.c (opendir, closedir): Undefine.
55380         * lib/glob.c (opendir, closedir): Undefine.
55381         * lib/javacomp.c (open, close): Undefine.
55382         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55383         * lib/openat-proc.c (open, close): Undefine.
55384         * lib/pagealign_alloc.c (open, close): Undefine.
55385         * lib/pipe.c (open, close): Undefine.
55386         * lib/progreloc.c (open, close): Undefine.
55387         * lib/savedir.c (opendir, closedir): Undefine.
55388         * lib/utime.c (open, close): Undefine.
55389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55390
55391 2007-01-10  Bruno Haible  <bruno@clisp.org>
55392
55393         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55394
55395 2007-01-12  Eric Blake  <ebb9@byu.net>
55396
55397         Provide a robust <wchar.h>.  Further simplifications are now
55398         possible in other modules, but not included here.
55399         * modules/wchar: New module.
55400         * m4/wchar.m4: New file.
55401         * lib/wchar_.h: Likewise.
55402         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55403         of the new module.
55404         * MODULES.html.sh (Extended multibyte and wide character utilities):
55405         New section.
55406
55407 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55410         to a reasonable default for memory allocation.
55411         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55412         file system that reports garbage st_size values for symlinks.
55413         Problem reported by Liyang Hu.
55414
55415 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55416
55417         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55418         Emacs .#* auto-save files).
55419
55420 2007-01-11  Bruno Haible  <bruno@clisp.org>
55421
55422         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55423         directory.
55424
55425 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55426
55427         Use @...@ consistently in lib/wctype_.h.
55428         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55429         on it being set to 1 or 0.
55430         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55431         go back to AC_SUBSTing it.
55432         * modules/wctype (Makefile.am): Undo previous change.
55433
55434 2007-01-10  Eric Blake  <ebb9@byu.net>
55435
55436         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55437         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55438         * modules/wctype (Makefile.am): Likewise.
55439         Reported by Chris McGuire.
55440
55441 2007-01-10  Jim Meyering  <jim@meyering.net>
55442
55443         fts.c: a small readability/maintainability improvement
55444         * lib/fts.c (fts_read): Make this code slightly more readable and
55445         maintainable by hoisting the "sp->fts_cur = p" assignments to
55446         immediately follow the statements that set P.  Derived from
55447         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55448
55449 2007-01-10  Eric Blake  <ebb9@byu.net>
55450
55451         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55452         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55453         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55454         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55455         Reported by Chris McGuire.
55456
55457 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55458
55459         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55460         in sed script.
55461
55462 2007-01-09  Bruno Haible  <bruno@clisp.org>
55463
55464         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55465         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55466         variables.
55467         (func_module): Use them.
55468
55469 2007-01-09  Bruno Haible  <bruno@clisp.org>
55470
55471         * modules/unistr/base: New file.
55472         * lib/unistr.h: New file.
55473
55474         * modules/unistr/u8-to-u16: New file.
55475         * lib/unistr/u8-to-u16.c: New file.
55476
55477         * modules/unistr/u8-to-u32: New file.
55478         * lib/unistr/u8-to-u32.c: New file.
55479
55480         * modules/unistr/u16-to-u8: New file.
55481         * lib/unistr/u16-to-u8.c: New file.
55482
55483         * modules/unistr/u16-to-u32: New file.
55484         * lib/unistr/u16-to-u32.c: New file.
55485
55486         * modules/unistr/u32-to-u8: New file.
55487         * lib/unistr/u32-to-u8.c: New file.
55488
55489         * modules/unistr/u32-to-u16: New file.
55490         * lib/unistr/u32-to-u16.c: New file.
55491
55492         * modules/unistr/u8-check: New file.
55493         * modules/unistr/u16-check: New file.
55494         * modules/unistr/u32-check: New file.
55495         * lib/unistr/u8-check.c: New file.
55496         * lib/unistr/u16-check.c: New file.
55497         * lib/unistr/u32-check.c: New file.
55498
55499         * modules/unistr/u8-chr: New file.
55500         * modules/unistr/u16-chr: New file.
55501         * modules/unistr/u32-chr: New file.
55502         * lib/unistr/u8-chr.c: New file.
55503         * lib/unistr/u16-chr.c: New file.
55504         * lib/unistr/u32-chr.c: New file.
55505
55506         * modules/unistr/u8-cmp: New file.
55507         * modules/unistr/u16-cmp: New file.
55508         * modules/unistr/u32-cmp: New file.
55509         * lib/unistr/u8-cmp.c: New file.
55510         * lib/unistr/u16-cmp.c: New file.
55511         * lib/unistr/u32-cmp.c: New file.
55512
55513         * modules/unistr/u8-cpy: New file.
55514         * modules/unistr/u16-cpy: New file.
55515         * modules/unistr/u32-cpy: New file.
55516         * lib/unistr/u8-cpy.c: New file.
55517         * lib/unistr/u16-cpy.c: New file.
55518         * lib/unistr/u32-cpy.c: New file.
55519         * lib/unistr/u-cpy.h: New file.
55520
55521         * modules/unistr/u8-cpy-alloc: New file.
55522         * modules/unistr/u16-cpy-alloc: New file.
55523         * modules/unistr/u32-cpy-alloc: New file.
55524         * lib/unistr/u8-cpy-alloc.c: New file.
55525         * lib/unistr/u16-cpy-alloc.c: New file.
55526         * lib/unistr/u32-cpy-alloc.c: New file.
55527         * lib/unistr/u-cpy-alloc.h: New file.
55528
55529         * modules/unistr/u8-endswith: New file.
55530         * modules/unistr/u16-endswith: New file.
55531         * modules/unistr/u32-endswith: New file.
55532         * lib/unistr/u8-endswith.c: New file.
55533         * lib/unistr/u16-endswith.c: New file.
55534         * lib/unistr/u32-endswith.c: New file.
55535         * lib/unistr/u-endswith.h: New file.
55536
55537         * modules/unistr/u8-mblen: New file.
55538         * modules/unistr/u16-mblen: New file.
55539         * modules/unistr/u32-mblen: New file.
55540         * lib/unistr/u8-mblen.c: New file.
55541         * lib/unistr/u16-mblen.c: New file.
55542         * lib/unistr/u32-mblen.c: New file.
55543
55544         * modules/unistr/u8-mbtouc: New file.
55545         * modules/unistr/u16-mbtouc: New file.
55546         * modules/unistr/u32-mbtouc: New file.
55547         * lib/unistr/u8-mbtouc.c: New file.
55548         * lib/unistr/u16-mbtouc.c: New file.
55549         * lib/unistr/u32-mbtouc.c: New file.
55550
55551         * modules/unistr/u8-mbtouc-safe: New file.
55552         * modules/unistr/u16-mbtouc-safe: New file.
55553         * modules/unistr/u32-mbtouc-safe: New file.
55554         * lib/unistr/u8-mbtouc-safe.c: New file.
55555         * lib/unistr/u16-mbtouc-safe.c: New file.
55556         * lib/unistr/u32-mbtouc-safe.c: New file.
55557
55558         * modules/unistr/u8-move: New file.
55559         * modules/unistr/u16-move: New file.
55560         * modules/unistr/u32-move: New file.
55561         * lib/unistr/u8-move.c: New file.
55562         * lib/unistr/u16-move.c: New file.
55563         * lib/unistr/u32-move.c: New file.
55564         * lib/unistr/u-move.h: New file.
55565
55566         * modules/unistr/u8-next: New file.
55567         * modules/unistr/u16-next: New file.
55568         * modules/unistr/u32-next: New file.
55569         * lib/unistr/u8-next.c: New file.
55570         * lib/unistr/u16-next.c: New file.
55571         * lib/unistr/u32-next.c: New file.
55572
55573         * modules/unistr/u8-prev: New file.
55574         * modules/unistr/u16-prev: New file.
55575         * modules/unistr/u32-prev: New file.
55576         * lib/unistr/u8-prev.c: New file.
55577         * lib/unistr/u16-prev.c: New file.
55578         * lib/unistr/u32-prev.c: New file.
55579
55580         * modules/unistr/u8-set: New file.
55581         * modules/unistr/u16-set: New file.
55582         * modules/unistr/u32-set: New file.
55583         * lib/unistr/u8-set.c: New file.
55584         * lib/unistr/u16-set.c: New file.
55585         * lib/unistr/u32-set.c: New file.
55586         * lib/unistr/u-set.h: New file.
55587
55588         * modules/unistr/u8-startswith: New file.
55589         * modules/unistr/u16-startswith: New file.
55590         * modules/unistr/u32-startswith: New file.
55591         * lib/unistr/u8-startswith.c: New file.
55592         * lib/unistr/u16-startswith.c: New file.
55593         * lib/unistr/u32-startswith.c: New file.
55594         * lib/unistr/u-startswith.h: New file.
55595
55596         * modules/unistr/u8-stpcpy: New file.
55597         * modules/unistr/u16-stpcpy: New file.
55598         * modules/unistr/u32-stpcpy: New file.
55599         * lib/unistr/u8-stpcpy.c: New file.
55600         * lib/unistr/u16-stpcpy.c: New file.
55601         * lib/unistr/u32-stpcpy.c: New file.
55602         * lib/unistr/u-stpcpy.h: New file.
55603
55604         * modules/unistr/u8-stpncpy: New file.
55605         * modules/unistr/u16-stpncpy: New file.
55606         * modules/unistr/u32-stpncpy: New file.
55607         * lib/unistr/u8-stpncpy.c: New file.
55608         * lib/unistr/u16-stpncpy.c: New file.
55609         * lib/unistr/u32-stpncpy.c: New file.
55610         * lib/unistr/u-stpncpy.h: New file.
55611
55612         * modules/unistr/u8-strcat: New file.
55613         * modules/unistr/u16-strcat: New file.
55614         * modules/unistr/u32-strcat: New file.
55615         * lib/unistr/u8-strcat.c: New file.
55616         * lib/unistr/u16-strcat.c: New file.
55617         * lib/unistr/u32-strcat.c: New file.
55618         * lib/unistr/u-strcat.h: New file.
55619
55620         * modules/unistr/u8-strchr: New file.
55621         * modules/unistr/u16-strchr: New file.
55622         * modules/unistr/u32-strchr: New file.
55623         * lib/unistr/u8-strchr.c: New file.
55624         * lib/unistr/u16-strchr.c: New file.
55625         * lib/unistr/u32-strchr.c: New file.
55626
55627         * modules/unistr/u8-strcmp: New file.
55628         * modules/unistr/u16-strcmp: New file.
55629         * modules/unistr/u32-strcmp: New file.
55630         * lib/unistr/u8-strcmp.c: New file.
55631         * lib/unistr/u16-strcmp.c: New file.
55632         * lib/unistr/u32-strcmp.c: New file.
55633
55634         * modules/unistr/u8-strcpy: New file.
55635         * modules/unistr/u16-strcpy: New file.
55636         * modules/unistr/u32-strcpy: New file.
55637         * lib/unistr/u8-strcpy.c: New file.
55638         * lib/unistr/u16-strcpy.c: New file.
55639         * lib/unistr/u32-strcpy.c: New file.
55640         * lib/unistr/u-strcpy.h: New file.
55641
55642         * modules/unistr/u8-strcspn: New file.
55643         * modules/unistr/u16-strcspn: New file.
55644         * modules/unistr/u32-strcspn: New file.
55645         * lib/unistr/u8-strcspn.c: New file.
55646         * lib/unistr/u16-strcspn.c: New file.
55647         * lib/unistr/u32-strcspn.c: New file.
55648         * lib/unistr/u-strcspn.h: New file.
55649
55650         * modules/unistr/u8-strdup: New file.
55651         * modules/unistr/u16-strdup: New file.
55652         * modules/unistr/u32-strdup: New file.
55653         * lib/unistr/u8-strdup.c: New file.
55654         * lib/unistr/u16-strdup.c: New file.
55655         * lib/unistr/u32-strdup.c: New file.
55656         * lib/unistr/u-strdup.h: New file.
55657
55658         * modules/unistr/u8-strlen: New file.
55659         * modules/unistr/u16-strlen: New file.
55660         * modules/unistr/u32-strlen: New file.
55661         * lib/unistr/u8-strlen.c: New file.
55662         * lib/unistr/u16-strlen.c: New file.
55663         * lib/unistr/u32-strlen.c: New file.
55664         * lib/unistr/u-strlen.h: New file.
55665
55666         * modules/unistr/u8-strmblen: New file.
55667         * modules/unistr/u16-strmblen: New file.
55668         * modules/unistr/u32-strmblen: New file.
55669         * lib/unistr/u8-strmblen.c: New file.
55670         * lib/unistr/u16-strmblen.c: New file.
55671         * lib/unistr/u32-strmblen.c: New file.
55672
55673         * modules/unistr/u8-strmbtouc: New file.
55674         * modules/unistr/u16-strmbtouc: New file.
55675         * modules/unistr/u32-strmbtouc: New file.
55676         * lib/unistr/u8-strmbtouc.c: New file.
55677         * lib/unistr/u16-strmbtouc.c: New file.
55678         * lib/unistr/u32-strmbtouc.c: New file.
55679
55680         * modules/unistr/u8-strncat: New file.
55681         * modules/unistr/u16-strncat: New file.
55682         * modules/unistr/u32-strncat: New file.
55683         * lib/unistr/u8-strncat.c: New file.
55684         * lib/unistr/u16-strncat.c: New file.
55685         * lib/unistr/u32-strncat.c: New file.
55686         * lib/unistr/u-strncat.h: New file.
55687
55688         * modules/unistr/u8-strncmp: New file.
55689         * modules/unistr/u16-strncmp: New file.
55690         * modules/unistr/u32-strncmp: New file.
55691         * lib/unistr/u8-strncmp.c: New file.
55692         * lib/unistr/u16-strncmp.c: New file.
55693         * lib/unistr/u32-strncmp.c: New file.
55694
55695         * modules/unistr/u8-strncpy: New file.
55696         * modules/unistr/u16-strncpy: New file.
55697         * modules/unistr/u32-strncpy: New file.
55698         * lib/unistr/u8-strncpy.c: New file.
55699         * lib/unistr/u16-strncpy.c: New file.
55700         * lib/unistr/u32-strncpy.c: New file.
55701         * lib/unistr/u-strncpy.h: New file.
55702
55703         * modules/unistr/u8-strnlen: New file.
55704         * modules/unistr/u16-strnlen: New file.
55705         * modules/unistr/u32-strnlen: New file.
55706         * lib/unistr/u8-strnlen.c: New file.
55707         * lib/unistr/u16-strnlen.c: New file.
55708         * lib/unistr/u32-strnlen.c: New file.
55709         * lib/unistr/u-strnlen.h: New file.
55710
55711         * modules/unistr/u8-strpbrk: New file.
55712         * modules/unistr/u16-strpbrk: New file.
55713         * modules/unistr/u32-strpbrk: New file.
55714         * lib/unistr/u8-strpbrk.c: New file.
55715         * lib/unistr/u16-strpbrk.c: New file.
55716         * lib/unistr/u32-strpbrk.c: New file.
55717         * lib/unistr/u-strpbrk.h: New file.
55718
55719         * modules/unistr/u8-strrchr: New file.
55720         * modules/unistr/u16-strrchr: New file.
55721         * modules/unistr/u32-strrchr: New file.
55722         * lib/unistr/u8-strrchr.c: New file.
55723         * lib/unistr/u16-strrchr.c: New file.
55724         * lib/unistr/u32-strrchr.c: New file.
55725
55726         * modules/unistr/u8-strspn: New file.
55727         * modules/unistr/u16-strspn: New file.
55728         * modules/unistr/u32-strspn: New file.
55729         * lib/unistr/u8-strspn.c: New file.
55730         * lib/unistr/u16-strspn.c: New file.
55731         * lib/unistr/u32-strspn.c: New file.
55732         * lib/unistr/u-strspn.h: New file.
55733
55734         * modules/unistr/u8-strstr: New file.
55735         * modules/unistr/u16-strstr: New file.
55736         * modules/unistr/u32-strstr: New file.
55737         * lib/unistr/u8-strstr.c: New file.
55738         * lib/unistr/u16-strstr.c: New file.
55739         * lib/unistr/u32-strstr.c: New file.
55740         * lib/unistr/u-strstr.h: New file.
55741
55742         * modules/unistr/u8-strtok: New file.
55743         * modules/unistr/u16-strtok: New file.
55744         * modules/unistr/u32-strtok: New file.
55745         * lib/unistr/u8-strtok.c: New file.
55746         * lib/unistr/u16-strtok.c: New file.
55747         * lib/unistr/u32-strtok.c: New file.
55748         * lib/unistr/u-strtok.h: New file.
55749
55750         * modules/unistr/u8-uctomb: New file.
55751         * modules/unistr/u16-uctomb: New file.
55752         * modules/unistr/u32-uctomb: New file.
55753         * lib/unistr/u8-uctomb.c: New file.
55754         * lib/unistr/u16-uctomb.c: New file.
55755         * lib/unistr/u32-uctomb.c: New file.
55756
55757         * MODULES.html.sh (Unicode string functions): Add the new modules.
55758
55759 2007-01-08  Bruno Haible  <bruno@clisp.org>
55760
55761         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
55762         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
55763         subdirectories.
55764
55765 2007-01-08  Karl Berry  <karl@gnu.org>
55766
55767         * doc/error.texi: mention that main() fns must set program_name
55768         when progname is used.
55769
55770 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
55771
55772         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
55773         WCTYPE_H is empty, for the benefit of builds from non-distclean
55774         directories.  Problem reported by Eric Blake in
55775         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
55776
55777 2007-01-08  Bruno Haible  <bruno@clisp.org>
55778
55779         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
55780         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
55781         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
55782         PROVIDE_CANONICALIZE_FILENAME_MODE.
55783         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
55784
55785 2007-01-08  Bruno Haible  <bruno@clisp.org>
55786
55787         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
55788         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
55789         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
55790         * lib/fts.c: Likewise.
55791         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
55792
55793 2006-12-25  Bruno Haible  <bruno@clisp.org>
55794
55795         * modules/utf8-ucs4-safe: New file.
55796         * lib/utf8-ucs4-safe.h: New file.
55797         * lib/unistr/utf8-ucs4-safe.c: New file.
55798
55799         * modules/utf16-ucs4-safe: New file.
55800         * lib/utf16-ucs4-safe.h: New file.
55801         * lib/unistr/utf16-ucs4-safe.c: New file.
55802
55803         * MODULES.html.sh (Unicode string functions): Add the new modules.
55804
55805 2007-01-08  Bruno Haible  <bruno@clisp.org>
55806
55807         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
55808         (Depends-on): Add unitypes.
55809         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55810         (u8_mbtouc_aux): Move out to separate file.
55811         (u8_mbtouc): Use ucs4_t, uint8_t types.
55812         * lib/unistr/utf8-ucs4.c: New file.
55813
55814         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55815         (Depends-on): Add unitypes.
55816         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55817         (u16_mbtouc_aux): Move out to separate file.
55818         (u16_mbtouc): Use ucs4_t, uint16_t types.
55819         * lib/unistr/utf16-ucs4.c: New file.
55820
55821         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55822         (Depends-on): Add unitypes.
55823         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55824         (u8_uctomb_aux): Move out to separate file.
55825         (u8_uctomb): Use ucs4_t, uint8_t types.
55826         * lib/unistr/ucs4-utf8.c: New file.
55827
55828         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55829         (Depends-on): Add unitypes.
55830         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55831         (u16_uctomb_aux): Move out to separate file.
55832         (u16_uctomb): Use ucs4_t, uint16_t types.
55833         * lib/unistr/ucs4-utf16.c: New file.
55834
55835 2006-12-25  Bruno Haible  <bruno@clisp.org>
55836
55837         * modules/unitypes: New file.
55838         * lib/unitypes.h: New file.
55839         * MODULES.html.sh (func_all_modules): New section "Unicode string
55840         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55841         this section. Add unitypes.
55842
55843 2007-01-08  Bruno Haible  <bruno@clisp.org>
55844
55845         Avoid variable names that conflict with those from libtool.
55846         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55847         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55848         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55849         library_names_spec to acl_library_names_spec, hardcode_* to
55850         acl_hardcode_*.
55851         Reported by Ralf Wildenhues.
55852
55853 2007-01-08  Bruno Haible  <bruno@clisp.org>
55854
55855         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55856         definition.
55857         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55858         definition.
55859         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55860         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55861         definition.
55862         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55863         definition.
55864         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55865         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55866         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55867         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55868         definition.
55869         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55870         definition.
55871         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55872         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55873         GC_USE_<algorithm>.
55874         * lib/gc-libgcrypt.c: Likewise.
55875         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55876         * modules/gc-arctwo (configure.ac): Likewise.
55877         * modules/gc-des (configure.ac): Likewise.
55878         * modules/gc-hmac-md5 (configure.ac): Likewise.
55879         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55880         * modules/gc-md2 (configure.ac): Likewise.
55881         * modules/gc-md4 (configure.ac): Likewise.
55882         * modules/gc-md5 (configure.ac): Likewise.
55883         * modules/gc-random (configure.ac): Likewise.
55884         * modules/gc-rijndael (configure.ac): Likewise.
55885         * modules/gc-sha1 (configure.ac): Likewise.
55886
55887 2007-01-08  Bruno Haible  <bruno@clisp.org>
55888
55889         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55890         macro definition.
55891         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55892         definition.
55893         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55894         definition.
55895         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55896         * modules/fcntl-safer (configure.ac): Likewise.
55897         * modules/fopen-safer (configure.ac): Likewise.
55898         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55899         GNULIB_FWRITEERROR macro definition.
55900
55901 2007-01-08  Bruno Haible  <bruno@clisp.org>
55902
55903         * m4/gnulib-common.m4: New file.
55904         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55905         (func_get_filelist): Add m4/gnulib-common.m4.
55906
55907 2007-01-08  Bruno Haible  <bruno@clisp.org>
55908
55909         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55910         command.
55911
55912 2007-01-08  Jim Meyering  <jim@meyering.net>
55913
55914         Use a more robust test for a "can't happen" condition.
55915         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55916         narrowed the st_size value.  Presuming the "can't happen" condition
55917         is true, that narrowing could conceivably convert an invalid st_size
55918         value into a valid one.  Instead, use a change based on Matthew
55919         Woehlke's original patch.
55920
55921         Slight readability improvement: use an assert-like macro
55922         in place of literal "abort ()" uses.
55923         * lib/fts.c (fts_assert): Define.
55924         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55925         Use this macro instead of a bare 'abort'.
55926
55927 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55930         simply work around them.
55931         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55932         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55933         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55934         declaring.
55935         Don't bother to define as macros, since the standard doesn't require it.
55936         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55937         longer worry about IRIX 5.3.
55938         (HAVE_WCTYPE_CTMP_BUG): Remove.
55939
55940 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55941
55942         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55943         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55944         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55945         Problems reported by Georg Schwarz for IRIX 5.3.
55946
55947         * gnulib-tool (autoconf_minversion): Take the maximum version number
55948         found, not the minimum.  Problem reported by James Youngman.
55949
55950 2007-01-03  Karl Berry  <karl@gnu.org>
55951
55952         * doc/error.texi: new file, explaining interaction with progname.
55953         * doc/gnulib.texi: include it.  Update copyright.
55954
55955 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55956
55957         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55958         AC_CANONICAL_HOST, to improve autobuild outputs.
55959
55960 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55961             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55962
55963         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55964         sockets, server sockets, and other file descriptors.  Count errors
55965         to compute the return value.  Reorder the code a bit to be easier
55966         to follow.  Don't set event bits that were not requested (except
55967         POLLERR and POLLHUP).
55968
55969 2007-01-01  Bruno Haible  <bruno@clisp.org>
55970
55971         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55972
55973 2007-01-03  Jim Meyering  <jim@meyering.net>
55974
55975         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55976
55977 2007-01-02  Bruno Haible  <bruno@clisp.org>
55978
55979         * modules/settime (Include): Require timespec.h.
55980         * modules/nanosleep (Include): Likewise.
55981
55982 2007-01-01  Bruno Haible  <bruno@clisp.org>
55983
55984         * gnulib-tool (func_emit_copyright_notice): Bump year.
55985         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55986
55987 2007-01-01  Bruno Haible  <bruno@clisp.org>
55988
55989         Improve support for OpenBSD.
55990         * build-aux/config.rpath (libname_spec): Export.
55991         (library_names_spec): New variable. Export.
55992         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55993         library_names_spec from the config.rpath output. Locate shared library
55994         through the name pattern in library_names_spec.
55995
55996 2007-01-01  Eric Blake  <ebb9@byu.net>
55997
55998         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55999
56000 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56001
56002         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56003         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56004         assume the C locale, and avoid an "eval" that could cause trouble.
56005         Problem with SORT reported by Bob Proulx.
56006
56007         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56008         Define.  Trivial patch from Henning Nielsen Lund, originally
56009         sent to bug-grep@gnu.org today.
56010
56011 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56012
56013         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56014         struct stat.  Problem reported by Henning Nielsen Lund.
56015         * lib/acl.c: Include acl.h first, to check interface.  Don't
56016         bother to include sys/types.h and sys/stat.h again.
56017
56018 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56019
56020         Import the following change from libc; problem reported by
56021         Sven Verdoolaege.
56022
56023         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56024
56025         [BZ #1373]
56026         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56027
56028 2006-12-28  Jim Meyering  <jim@meyering.net>
56029
56030         * build-aux/announce-gen: Do not assume that the package
56031         builds any of tar.gz, tar.bz2, and .xdelta files.
56032         Suggestion from Simon Josefsson.
56033
56034 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56035
56036         * modules/announce-gen: New file.
56037
56038 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56039
56040         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56041         handles its gotchas now.
56042         * lib/mbswidth.c: Likewise.
56043         * lib/wcwidth.h: Likewise.
56044         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56045         and iswcntrl; the wctype module does this stuff now.
56046         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56048         * modules/mbchar (Depends-on): Add wctype.
56049         * modules/mbswidth (Depends-on): Likewise.
56050         * modules/wcwidth (Depends-on): Likewise.
56051
56052 2006-12-27  Eric Blake  <ebb9@byu.net>
56053
56054         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56055         module uses more than what <wctype.h> is required to provide.
56056
56057 2006-12-26  Eric Blake  <ebb9@byu.net>
56058
56059         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56060
56061 2006-12-26  Eric Blake  <ebb9@byu.net>
56062
56063         * modules/absolute-header: New module.
56064         * modules/fcntl (Depends-on): Depend on it.
56065         * modules/inttypes (Depends-on): Likewise.
56066         * modules/stdint (Depends-on): Likewise.
56067         * modules/sys_stat (Depends-on): Likewise.
56068         * modules/wctype (Depends-on): Likewise.
56069         * MODULES.html.sh (Support for building libraries and
56070         executables): Document it.
56071
56072 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56073
56074         * gnulib-tool (SED): Remove, undoing previous change.
56075         The problem was that it broke coreutils on Solaris, because
56076         "sed --posix" leaked into a makefile.
56077         (sed): New alias, if 'alias' and GNU sed.
56078
56079 2006-12-24  Jim Meyering  <jim@meyering.net>
56080
56081         Work around an fchownat bug in glibc-2.4:
56082         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56083         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56084         in spite of the -P option.
56085         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56086         New macros.
56087         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56088         * modules/openat (Files): Add lib/fchownat.c.
56089         * lib/openat.c (fchownat): Don't define here.  Move to...
56090         * lib/fchownat.c: ...this new file.
56091
56092 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56093
56094         Fix bug reported by Bruno Haible in
56095         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56096         where quotearg.c didn't compile on Mac OS X 10.2 because it
56097         lacks <wchar.h> and wint_t.
56098         * lib/wctype_.h (__wctype_wint_t): New type.
56099         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56100         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56101         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56102         Arg is now of type __wctype_wint_t, not wint_t.
56103         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56104         substitute HAVE_WINT_T.
56105         * modules/wctype (Files): Add m4/wint_t.m4.
56106         (wctype.h): Substitute HAVE_WINT_T.
56107
56108 2006-12-23  Bruno Haible  <bruno@clisp.org>
56109
56110         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56111
56112 2006-12-23  Bruno Haible  <bruno@clisp.org>
56113
56114         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56115         S_ISLNK.
56116         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56117         mingw.
56118
56119 2006-12-22  Bruno Haible  <bruno@clisp.org>
56120
56121         * lib/copy-file.c: Include acl.h.
56122         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56123         Close the file descriptors only after being done with copy_acl.
56124         * modules/copy-file (Depends-on): Add acl.
56125
56126 2006-12-22  Bruno Haible  <bruno@clisp.org>
56127
56128         * gnulib-tool (SED): New variable.
56129         Use $SED instead of sed everywhere.
56130
56131 2006-12-22  Bruno Haible  <bruno@clisp.org>
56132
56133         * modules/no-c++: New file.
56134         * m4/no-c++.m4: New file.
56135         * MODULES.html.sh (Support for building libraries and executables):
56136         Add no-c++.
56137
56138 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56139
56140         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56141         Include <limits.h>, and use its INT_MAX to rewrite the
56142         j loop so that it does not overflow 'int'.  Problem reported by
56143         Ralf Wildenhues in
56144         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56145         Play it safe by shifting left by 1 rather than multiplying by 2,
56146         as GCC is less likely to optimize this away when the value
56147         is signed (when it assumes overflow leads to undefined behavior).
56148         Also, don't assume time_t uses two's complement.
56149
56150 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56151
56152         * MODULES.html.sh: New module wctype.
56153         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56154         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56155         <wctype.h>, since the new wctype module should fix this.
56156         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56157         the wctype module should arrange for it.
56158         * lib/regex_internal.h: Likewise.
56159         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56160         since the wctype module should handle this now.
56161         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56162         * modules/fnmatch (Depends-on): Add wctype.
56163         * modules/quotearg (Depends-on): Likewise.
56164         * modules/regex (Depends-on): Likewise.
56165
56166 2006-12-19  Bruno Haible  <bruno@clisp.org>
56167
56168         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56169         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56170
56171 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56172
56173         * modules/savewd (Depends-on): Fix dependency on fcntl.
56174
56175 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56176
56177         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56178         conforms to C99, rather than relying on the user's environment
56179         setting of STDINT_H.
56180
56181 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56182         and Eric Blake  <ebb9@byu.net>
56183
56184         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56185         This is more consistent with the other defines here.
56186         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56187         Port to z/OS.  Problem reported by Paul Gilmartin.
56188         Change local vars to use gl_ prefix rather than ac_.
56189         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56190         with other defines.
56191         * modules/double-slash-root: New module.
56192         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56193         (Depends-on): Add double-slash-root.
56194         * MODULES.html.sh (File system functions): Mention new module.
56195
56196 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56197
56198         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56199         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56200         This is for the benefit of gzip, which doesn't do i18n.
56201
56202 2006-12-12  Jim Meyering  <jim@meyering.net>
56203
56204         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56205         Reported by Andreas Schwab <schwab@suse.de>.
56206
56207 2006-12-12  Bruno Haible  <bruno@clisp.org>
56208
56209         Merge these changes.
56210         2006-09-05  Bruno Haible  <bruno@clisp.org>
56211         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56212         iconv_alloc succeeded.
56213         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56214         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56215         test for " && dest " at the end - dest is always != NULL there. Call
56216         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56217         with 2xNULL arguments, also to flush the state storage. Handle the
56218         IRIX iconv behaviour. Realloc the final result, to throw away unused
56219         memory.
56220
56221 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56222
56223         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56224         and fchmodat unconditionally, since glibc 2.4 has them.
56225         Problem reported by Arkadiusz Miskiewicz.
56226
56227 2006-12-10  Bruno Haible  <bruno@clisp.org>
56228
56229         * gnulib-tool (func_import): Show the include files only for those
56230         modules that are copied and specified.
56231         Reported by Karl Berry.
56232
56233 2006-12-08  Jim Meyering  <jim@meyering.net>
56234
56235         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56236         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56237
56238         * build-aux/announce-gen: Add two new options, both optional:
56239         --bootstrap-tools=TOOL_LIST
56240               a comma-separated list of tools, e.g.,
56241               autoconf,automake,bison,gnulib
56242         --gnulib-snapshot-date=DATE
56243               if gnulib is in the bootstrap tool list,
56244               then report this as the snapshot date.
56245               If not specified, use the current date/time.
56246               If you specify a date here, be sure it's UTC.
56247
56248 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56249
56250         * tests/test-argp-2.sh: Fix test to match actual output.
56251         (func_compare): Fix sed script to be portable.
56252
56253 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56256         workaround for this case.  It is not autoconfigured now; offhand
56257         it's hard to see how to autoconfigure it.
56258
56259 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56260
56261         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56262         a directory that is about to be chowned.  Such a directory's
56263         initial file permissions should permit the owner only and this
56264         should not be changed until after the chown, since the group and
56265         other bits would be incorrect if they granted permission before
56266         the chown.
56267
56268         Fix porting problem for iswctype reported by Georg Schwarz in:
56269         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56270         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56271         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56273         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56274
56275 2006-12-03  Jim Meyering  <jim@meyering.net>
56276
56277         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56278         p->fts_statp may not yet be defined.
56279         (fts_read): Instead, set it in the caller, once p->fts_statp is
56280         sure to be defined, and corresponds to a top-level directory.
56281         This bug made du -x fail.  Here's the coreutils test case:
56282         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56283         Reported by Mike Frysinger.
56284
56285 2006-12-01  Jim Meyering  <jim@meyering.net>
56286
56287         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56288         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56289         Reported by Simon Josefsson.
56290
56291 2006-11-30  Jim Meyering  <jim@meyering.net>
56292
56293         * m4/warning.m4: Use the all-permissive copyright notice
56294         recommended by RMS (rather than LGPL).
56295         * m4/vararrays.m4: Likewise.
56296         * m4/flexmember.m4: Likewise.
56297
56298 2006-11-29  Bruno Haible  <bruno@clisp.org>
56299
56300         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56301         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56302         using +=.
56303         Reported by Simon Josefsson <simon@josefsson.org>.
56304
56305 2006-11-28  James Youngman <jay@gnu.org>
56306
56307         * README: Advise users that they might find the bug-gnulib@gnu.org
56308         and autotools-announce@gnu.org mailing lists useful.
56309
56310 2006-11-28  Bruno Haible  <bruno@clisp.org>
56311
56312         * m4/ptrdiff_max.m4: Remove file.
56313
56314 2006-11-21  Bruno Haible  <bruno@clisp.org>
56315
56316         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56317         _AC_COMPUTE_INT.
56318         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56319         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56320         _AC_COMPUTE_INT.
56321         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56322         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56323         _AC_COMPUTE_INT.
56324         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56325
56326 2006-11-28  Jim Meyering  <jim@meyering.net>
56327
56328         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56329         warning from "gcc -Wshadow" about shadowing the builtin.
56330
56331 2006-11-27  Bruno Haible  <bruno@clisp.org>
56332
56333         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56334         _AC_COMPUTE_INT.
56335         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56336
56337 2006-11-27  Bruno Haible  <bruno@clisp.org>
56338             Paul Eggert  <eggert@cs.ucla.edu>
56339
56340         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56341
56342 2006-11-26  Bruno Haible  <bruno@clisp.org>
56343
56344         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56345         noinst_LTLIBRARIES.
56346
56347 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56348             Bruno Haible  <bruno@clisp.org>
56349
56350         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56351         if compiling with "gcc -ansi".
56352
56353 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56354
56355         Fix some incompatibilities with gcc -ansi -pedantic.
56356         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56357         if compiling pedantically with GCC, unless it's C99 or later.
56358         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56359         it mishandles gcc -ansi -pedantic as well.
56360         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56361         if gcc -pedantic.
56362         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56363         initializers for struct if -pedantic, unless it's C99 or later.
56364
56365 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56366
56367         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56368         Don't close an fd more than once. Identical atimes indicate
56369         success, not failure.
56370
56371 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56372
56373         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56374
56375 2006-11-23  Jim Meyering  <jim@meyering.net>
56376
56377         * build-aux/announce-gen: New file.  From coreutils.
56378
56379 2006-11-22  Jim Meyering  <jim@meyering.net>
56380
56381         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56382         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56383         (fts_read): Use a temporary to narrow the overused st_size member
56384         before using it in a switch statement.  Reported by Matthew Woehlke.
56385
56386         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56387         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56388
56389 2006-11-20  Bruno Haible  <bruno@clisp.org>
56390
56391         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56392         changequote instead of pairs of brackets.
56393         Reported by Andreas Schwab <schwab@suse.de>.
56394
56395 2006-11-21  Jim Meyering  <jim@meyering.net>
56396
56397         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56398         so as to remain compatible with older compilers.
56399         Patch from Michael Deutschmann.
56400
56401 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56402
56403         * MODULES.html.sh (File system functions): Add openat.
56404
56405         * lib/openat.h (rpl_fstatat): New macro, if
56406         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56407         (fstatat): Define to rpl_fstatat under the same conditions,
56408         unless COMPILING_FSTATAT.
56409         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56410         seems to have the bug.
56411         * lib/fstatat.c: New file.
56412         * modules/openat (Files): Add it.
56413
56414 2006-11-20  Bruno Haible  <bruno@clisp.org>
56415
56416         * Makefile: New file.
56417
56418 2006-11-20  Jim Meyering  <jim@meyering.net>
56419
56420         The beginnings of syntax-related checks for gnulib.
56421         * lib/Makefile: New file.
56422         * lib/t-idcache: New script.  Ensure that the two halves of
56423         idcache.c stay in sync.
56424
56425         * lib/idcache.c: Adjust comments in user- and group- portions to
56426         be more accurate, and to be consistent with one another.
56427
56428 2006-11-20  Jim Meyering  <jim@meyering.net>
56429
56430         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56431         continue using the flexible array member (thus, this module performs
56432         half as many malloc calls), with the addition that...
56433         (getgroup, getuser): Consistently record a non-match via an empty
56434         "name" string, and map an empty string match to a NULL return value.
56435         * modules/idcache (Depends-on): Re-add flexmember.
56436
56437         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56438         (getuidbyname, getgroup, getgidbyname): Likewise.
56439
56440         Use cleaner syntax: NULL rather than 0.
56441         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56442
56443 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56444
56445         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56446         It mishandled the case where the group was missing.
56447         Problem reported by Greg Schafer.
56448         * modules/idcache: Likewise.
56449
56450 2006-11-18  Jim Meyering  <jim@meyering.net>
56451
56452         * check-module (%exempt_header): Add exception for some
56453         conditionally-included headers.
56454
56455         * modules/i-ring (Depends-on): Add verify.
56456         (License): Change to LGPL.
56457
56458 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56461         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56462         and inttostr.h.  Use snprintf rather than uinttostr, so that
56463         LGPLed code doesn't depend on GPLed.
56464
56465 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56466
56467         * modules/inline (License): Change from GPL to LGPL.
56468
56469 2006-11-17  Jim Meyering  <jim@meyering.net>
56470
56471         * modules/d-type (License): Switch to LGPL.
56472
56473 2006-11-15  Bruno Haible  <bruno@clisp.org>
56474
56475         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56476
56477 2006-11-15  Eric Blake  <ebb9@byu.net>
56478
56479         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56480         the module dependency.
56481
56482 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56483             Bruno Haible  <bruno@clisp.org>
56484
56485         * gnulib-tool (func_create_testdir): Add license consistency check.
56486
56487 2006-11-15  Eric Blake  <ebb9@byu.net>
56488
56489         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56490         random "(cached)" in configure output.
56491
56492 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56493
56494         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56495         test for conforming inttypes.h is both announced and cached.
56496
56497         * MODULES.html.sh (seen_modules, seen_files): New variables.
56498         (func_module): Rewrite to use a few less gnulib-tool and sed
56499         invocations.  Avoid a couple of quadratic algorithms for ...
56500         (missed_modules, missed_files): ... these, with ...
56501         (func_append, func_tmpdir): ... these new functions, from
56502         gnulib-tool.  Analogously, install traps for cleanup.
56503
56504         * tests/test-gc.c (main): Remove unused variables.
56505         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56506
56507 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56508
56509         * modules/inttostr (License): Change to LGPL.
56510
56511 2006-11-14  Eric Blake  <ebb9@byu.net>
56512
56513         * modules/tempname (License): Change to LGPL.
56514
56515 2006-11-14  Eric Blake  <ebb9@byu.net>
56516
56517         * doc/functions.texi (Function Portability): *printf functions on
56518         Cygwin now understand all POSIX size specifiers.
56519
56520 2006-11-14  Bruno Haible  <bruno@clisp.org>
56521
56522         * modules/c-ctype (License): Change to LGPL.
56523
56524 2006-11-12  Bruno Haible  <bruno@clisp.org>
56525
56526         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56527         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56528         for GNOME libraries, for which the include files are installed in
56529         subdirectories of $prefix/include.
56530
56531 2006-11-12  Bruno Haible  <bruno@clisp.org>
56532
56533         * m4/lib-link.m4: Require at least autoconf-2.54.
56534         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56535         name to underscores for the --with option.
56536
56537 2006-11-13  Bruno Haible  <bruno@clisp.org>
56538
56539         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56540         the tests directory.
56541         Reported by Ralf Wildenhues.
56542
56543 2006-11-13  Bruno Haible  <bruno@clisp.org>
56544
56545         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
56546         (func_emit_initmacro_end): Undo the override here.
56547         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
56548         Works around the famous automake error in coreutils.
56549
56550 2006-11-13  Eric Blake  <ebb9@byu.net>
56551
56552         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
56553         element, not its node.
56554
56555 2006-11-12  Bruno Haible  <bruno@clisp.org>
56556
56557         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
56558         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
56559
56560 2006-11-12  Bruno Haible  <bruno@clisp.org>
56561
56562         * gnulib-tool: New option --local-symlink.
56563         (func_usage): Document it.
56564         (lsymbolic): New variable.
56565         (func_import, func_create_testdir): If --symlink was not specified,
56566         test whether --local-symlink was specified and the file comes from
56567         the local_gnulib_dir.
56568
56569 2006-11-12  Bruno Haible  <bruno@clisp.org>
56570
56571         * gnulib-tool (func_ln): New function.
56572         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
56573
56574 2006-11-12  Bruno Haible  <bruno@clisp.org>
56575
56576         Finish support for source files in subdirectories.
56577         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
56578         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
56579         AUTOMAKE_OPTIONS.
56580         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
56581
56582 2006-11-12  Bruno Haible  <bruno@clisp.org>
56583
56584         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56585         EXTRA_lib_SOURCES augmentation.
56586         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
56587
56588 2006-11-12  Jim Meyering  <jim@meyering.net>
56589
56590         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
56591         file descriptors.  This also averts a failure on systems with
56592         native openat support when a traversed directory lacks "x" access.
56593         * lib/fts_.h: Include "i-ring.h"
56594         (struct FTS) [fts_fd_ring]: New member.
56595         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
56596         (FCHDIR): Add parentheses.
56597         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
56598         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
56599         When descending, rather than simply closing the previous
56600         fts_cwd_fd value, push that file descriptor onto the ring.
56601         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
56602         (fts_open): Initialize the new fd_ring member.
56603         (fts_close): Clear the ring.
56604         (fts_safe_changedir): When possible, use our new fd_ring to skip
56605         the diropen and fstat and dev/ino comparison that would normally
56606         accompany a virtual `chdir ("..")'.
56607
56608         * modules/fts (Depends-on): Add i-ring.
56609         * modules/i-ring: New module.
56610         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
56611         * m4/i-ring.m4: New file.
56612
56613 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56614
56615         * gnulib-tool (func_create_testdir): Fix replacement of
56616         `build-aux' in configure.ac.  Run autotools in gltests
56617         subdirectory.
56618         (func_create_testdir, func_create_megatestdir, test): There is
56619         no need for '--force' in most autotool invocations in a new
56620         tree.  Actually fail the whole test if any of the tools, or the
56621         configure or make stages fail.
56622
56623         Sync from Automake.
56624         * build-aux/gnupload: Revert last change.  Add pointer to upload
56625         instructions of the GNU Maintenance Instructions.
56626         Suggestion by Karl Berry.
56627
56628 2006-11-10  Jim Meyering  <jim@meyering.net>
56629
56630         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
56631
56632 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56633
56634         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
56635         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
56636         (bind_textdomain_codeset) [! ENABLE_NLS]:
56637         Evaluate all the arguments.  That way, callers get compatible behavior
56638         if the arguments have side effects.  Also, it avoids some GCC
56639         diagnostics in some cases; Joel E. Denny reported problems when Bison
56640         was configured with --enable-gcc-warnigs.
56641
56642 2006-11-10  Jim Meyering  <jim@meyering.net>
56643
56644         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
56645         relevant options in CFLAGS (like -O, -fno-inline) are taken into
56646         account.
56647
56648 2006-11-10  Jim Meyering  <jim@meyering.net>
56649
56650         * modules/inline: New file/module.
56651         * modules/xalloc (Files): Remove m4/inline.m4.
56652         (Depends-on): Add inline, instead.
56653         * modules/oset: Likewise.
56654         * modules/list: Likewise.
56655
56656 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
56657
56658         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
56659         Problem reported by Matthew Woehlke.
56660
56661 2006-11-09  Bruno Haible  <bruno@clisp.org>
56662
56663         * lib/tempname.c (gen_tempname): Remove variant that invokes
56664         __gen_tempname.
56665         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
56666         __gen_tempname.
56667
56668 2006-11-08  Bruno Haible  <bruno@clisp.org>
56669
56670         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
56671         to 'yes' instead of 'cross-compiling'.
56672
56673 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
56674
56675         * lib/quotearg.h (quotearg_free): New decl.
56676         * lib/quotearg.c (quotearg_free): New function.
56677         (slot0, nslots, slotvec0, slotvec):
56678         Now file-scope so that quotearg_free can get at them.
56679
56680 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56681
56682         Sync from Automake.
56683         * build-aux/gnupload: Add missing 'gnu' to example URL.
56684         Report by Karl Berry.
56685
56686 2006-11-08  Bruno Haible  <bruno@clisp.org>
56687
56688         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
56689         Suggested by Paul Eggert.
56690
56691 2006-11-08  Jim Meyering  <jim@meyering.net>
56692
56693         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
56694         It's already included if !_LIBC.
56695         (fts_safe_changedir): Add a comment.
56696
56697 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
56700         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
56701         Matthew Woehlke.
56702
56703         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
56704         definitions up, to avoid colliding with change below.
56705         (static_inline) [HAVE_INLINE]: New macro.
56706         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
56707         Provide extern decls when !HAVE_INLINE.  Do not define unless
56708         static_inline is defined, either by us or by xmalloc.c.  Use
56709         static_inline rather than static inline.
56710         (XCALLOC): Optimize sizeof(T) = 1 case.
56711         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
56712
56713 2006-11-07  Bruno Haible  <bruno@clisp.org>
56714
56715         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
56716         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
56717         AC_C_INLINE.
56718         * modules/xalloc (Files): Add m4/inline.m4.
56719
56720 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56721
56722         * README: Fix typo.
56723         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
56724         (Miscellanous Notes): ...from this.
56725
56726 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
56727
56728         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
56729         Mention that offsetof should be used instead of sizeof.
56730         From Bruno Haible.
56731
56732 2006-11-07  Bruno Haible  <bruno@clisp.org>
56733
56734         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
56735
56736 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56737
56738         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56739         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
56740         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56741         (gl_tree_add_before, gl_tree_add_after):
56742         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
56743         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
56744         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
56745         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
56746         (gl_linked_add_after, gl_linked_add_at): Likewise.
56747         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
56748         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
56749         (gl_tree_add_before, gl_tree_add_after): Likewise.
56750         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
56751         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
56752         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56753
56754 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56755
56756         * lib/gl_oset.h: Use C comment style, not C++ comment style.
56757
56758 2006-11-06  Bruno Haible  <bruno@clisp.org>
56759
56760         * m4/inline.m4: New file.
56761         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
56762         * modules/list (Files): Add m4/inline.m4.
56763         * modules/oset (Files): Likewise.
56764
56765 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
56766
56767         * lib/idcache.c: Include <stddef.h>, for offsetof.
56768         (struct userid.name): Change from char * to a flexible array member.
56769         All uses changed.
56770         * modules/idcache (Depends-on): Add flexmember.
56771
56772         * MODULES.html.sh (Core language properties): New module flexmember.
56773         * modules/flexmember, m4/flexmember.m4: New files.
56774
56775         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
56776         inline functions that are identical with the old xnmalloc_inline,
56777         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
56778         that we can avoid some unnecessary integer multiplications and
56779         divisions in the common case where the element size is known at
56780         compile time.
56781         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
56782         needed.
56783         (xnboundedmalloc): Remove.
56784         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
56785         arguments, for consistency with rest of this header.
56786         (xcharalloc): Rewrite using XNMALLOC.
56787         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
56788         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
56789         versions have been moved to lib/xalloc.h and renamed to be the
56790         non-*_inline versions.
56791         (xmalloc, xrealloc): Implement without reference to the xnmalloc
56792         and xnrealloc functions, since those functions are now inline and
56793         now call us.
56794         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
56795         renaming described above.
56796         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
56797         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
56798         captures the dependency in AC_C_INLINE.
56799
56800         New module canonicalize-lgpl, proposed by Charles Wilson in
56801         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
56802         with a few small changes afterwards.
56803         * MODULES.html.sh (File system functions): New module
56804         canonicalize-lgpl.
56805         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
56806         and canonicalize_file_name.
56807         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
56808         * modules/canonicalize-lgpl: New files.
56809
56810 2006-11-05  Bruno Haible  <bruno@clisp.org>
56811
56812         * gnulib-tool (func_import, func_create_testdir): Create directories
56813         also for files in subdirectories of lib/.
56814
56815 2006-11-05  Bruno Haible  <bruno@clisp.org>
56816
56817         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56818         ANSI C compliant.
56819
56820 2006-11-03  Bruno Haible  <bruno@clisp.org>
56821
56822         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56823         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56824         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56825         (xnboundedmalloc): New inline function.
56826         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56827         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56828         xmalloc.
56829         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56830         xmalloc.
56831         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56832         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56833         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56834         xmalloc.
56835         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56836         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56837         xmalloc.
56838         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56839         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56840         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56841         xmalloc.
56842         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56843         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56844         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56845         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56846         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56847         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56848         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56849
56850 2006-11-03  Bruno Haible  <bruno@clisp.org>
56851
56852         * lib/c-ctype.h [C++]: Define functions without name mangling.
56853         * lib/fwriteerror.h [C++]: Likewise.
56854         * lib/gcd.h [C++]: Likewise.
56855         * lib/linebreak.h [C++]: Likewise.
56856
56857 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56858
56859         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56860         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56861         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56862         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56863         Check for functions and headers just once.
56864         Check for declaration of canonicalize_file_name.
56865         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56866
56867 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56868
56869         * gnulib-tool (func_import): Fix typo in actioncmd.
56870
56871 2006-11-02  Bruno Haible  <bruno@clisp.org>
56872
56873         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56874         newline sequence in the Makefile.am snippet as a space, like "make"
56875         does.
56876         Reported by Roger Persson <perrog@gmail.com>.
56877
56878 2006-11-01  Bruno Haible  <bruno@clisp.org>
56879
56880         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56881         already declared in <string.h>.
56882         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56883
56884 2006-11-01  Bruno Haible  <bruno@clisp.org>
56885
56886         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56887         * lib/strcase.h: Include <string.h>.
56888         (strcasecmp): Define to rpl_strcasecmp here.
56889
56890 2006-11-01  Bruno Haible  <bruno@clisp.org>
56891
56892         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56893
56894 2006-11-01  Eric Blake  <ebb9@byu.net>
56895
56896         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56897
56898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56899
56900 2006-10-29  Bruno Haible  <bruno@clisp.org>
56901
56902         Make it compile in C++ mode.
56903         * lib/full-write.c (full_rw): Add a cast.
56904
56905 2006-11-01  Bruno Haible  <bruno@clisp.org>
56906
56907         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56908         be POSIX compliant.
56909         Reported by Roger Persson <perrog@gmail.com>.
56910
56911 2006-11-01  Eric Blake  <ebb9@byu.net>
56912
56913         * lib/getopt_.h: Fix comments.
56914
56915 2006-10-31  Eric Blake  <ebb9@byu.net>
56916
56917         * modules/tmpdir (Depends-on): Add sys_stat.
56918         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56919         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56920         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56921         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56922         tempname.
56923
56924 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56925
56926         Avoid some C++ diagnostics reported by Bruno Haible.
56927         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56928         xmalloc.
56929         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56930         (struct slotvec): Move to top level.
56931         (quotearg_n_options): Rewrite to avoid xmalloc.
56932         * lib/xalloc.h (xcharalloc): New function.
56933         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56934         [defined __cplusplus]: Add function template that provides result
56935         type propagation.  This part of the change is from Bruno Haible.
56936
56937 2006-10-29  Bruno Haible  <bruno@clisp.org>
56938
56939         Make it compile in C++ mode.
56940         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56941         * lib/strnlen1.c (strnlen1): Cast memchr result.
56942         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56943         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56944         (create_temp_dir): Rename local variable 'template'.
56945         (compile_csharp_using_sscli): Add cast.
56946         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56947         * lib/findprog.c (find_in_path): Likewise.
56948         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56949         * lib/wait-process.c (register_slave_subprocess): Likewise.
56950
56951 2006-10-22  Bruno Haible  <bruno@clisp.org>
56952
56953         * modules/tsearch: New file.
56954         * lib/tsearch.h: New file.
56955         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56956         * m4/tsearch.m4: New file.
56957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56958
56959 2006-10-29  Eric Blake  <ebb9@byu.net>
56960
56961         * lib/arcfour.c: Assume config.h.
56962         * lib/arctwo.c: Likewise.
56963         * lib/base64.c: Likewise.
56964         * lib/check-version.c: Likewise.
56965         * lib/crc.c: Likewise.
56966         * lib/des.c: Likewise.
56967         * lib/gc-gnulib.c: Likewise.
56968         * lib/gc-libgcrypt.c: Likewise.
56969         * lib/gc-pbkdf2-sha1.c: Likewise.
56970         * lib/getaddrinfo.c: Likewise.
56971         * lib/getdelim.c: Likewise.
56972         * lib/getline.c: Likewise.
56973         * lib/hmac-md5.c: Likewise.
56974         * lib/hmac-sha1.c: Likewise.
56975         * lib/iconvme.c: Likewise.
56976         * lib/md2.c: Likewise.
56977         * lib/md4.c: Likewise.
56978         * lib/memxor.c: Likewise.
56979         * lib/read-file.c: Likewise.
56980         * lib/readline.c: Likewise.
56981         * lib/rijndael-alg-fst.c: Likewise.
56982         * lib/rijndael-api-fst.c: Likewise.
56983         * lib/xgetdomainname.c: Likewise.
56984
56985 2006-10-28  Eric Blake  <ebb9@byu.net>
56986
56987         * lib/xstrndup.c: Assume config.h.
56988
56989 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56990
56991         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56992         stat-macros.h is now for our own macros, whereas stat_h is for
56993         macros in the <sys/stat.h> name space.
56994         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56995         (STAT_MACROS_H): Remove.
56996         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56997         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56998         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56999         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57000         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57001         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57002         Move these macros to ...
57003         * lib/stat_.h: here.  Don't include stat-macros.h.
57004         * lib/canonicalize.c: Don't include stat-macros.h.
57005         * lib/chown.c: Likewise.
57006         * lib/euidaccess.c: Likewise.
57007         * lib/file-type.c: Likewise.
57008         * lib/filemode.c: Likewise.
57009         * lib/glob.c: Likewise.
57010         * lib/isapipe.c: Likewise.
57011         * lib/lchown.c: Likewise.
57012         * lib/lstat.c: Likewise.
57013         * lib/mkdir-p.c: Likewise.
57014         * lib/rmdir.c: Likewise.
57015         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57016         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57017         unless mkdir isn't declared, to speed up 'configure'.
57018         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57019         would define all the S_* symbols.
57020         * modules/canonicalize (Depends-on):
57021         Depend on sys_stat, not stat-macros.
57022         * modules/chown: Likewise.
57023         * modules/euidaccess: Likewise.
57024         * modules/filemode: Likewise.
57025         * modules/file-type: Likewise.
57026         * modules/glob: Likewise.
57027         * modules/isapipe: Likewise.
57028         * modules/lchown: Likewise.
57029         * modules/lstat: Likewise.
57030         * modules/mkancesdirs: Likewise.
57031         * modules/rmdir: Likewise.
57032         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57033         * modules/modechange: Likewise.
57034         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57035         (configure.ac): Remove gl_STAT_MACROS.
57036         * modules/sys_stat (Depends-on): Remove stat-macros.
57037
57038 2006-10-27  Bruno Haible  <bruno@clisp.org>
57039
57040         * m4/signed.m4: Remove file.
57041         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57042         invocation.
57043         * modules/vasnprintf (Files): Remove m4/signed.m4.
57044
57045 2006-10-27  Bruno Haible  <bruno@clisp.org>
57046
57047         Update to GNU gettext 0.16.
57048         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57049         m4/inttypes-h.m4, m4/signed.m4.
57050         * m4/gettext.m4: Update to GNU gettext 0.16.
57051         * m4/intl.m4: New file, from GNU gettext.
57052         * m4/intldir.m4: New file, from GNU gettext.
57053         * config/srclist.txt: Update
57054
57055 2006-10-27  Eric Blake  <ebb9@byu.net>
57056
57057         * MODULES.html.sh: Document tempname.
57058         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57059         dependencies.
57060         (Files): Move lib/tempname.c...
57061         * modules/tempname: ...to this new module.
57062         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57063         (gl_PREREQ_TEMPNAME): Move...
57064         * m4/tempname.m4: ...to this new file.
57065         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57066         * modules/sys_stat (Depends-on): Add stat-macros.
57067         * lib/stat_.h (includes): Pick up stat macros.
57068         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57069         if stat macros are broken.
57070         * lib/tempname.c (includes): No need to include "stat-macros.h".
57071         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57072         (direxists, __path_search) [!_LIBC]: Don't compile these in
57073         gnulib; the tmpdir module covers that.
57074         * lib/tempname.h: New file.
57075
57076 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57077
57078         * COPYING: Explain how gnulib-tool converts licence headers.
57079         Almost all wording by Eric Blake.
57080
57081 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57082
57083         * lib/mbchar.h (is_basic_table): Make read-only.
57084         * lib/mbchar.c (is_basic_table): Likewise.
57085         Reported by John Darrington.
57086
57087 2006-10-25  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/progname.h (set_program_name): Undefine before defining.
57090
57091 2006-10-25  Bruno Haible  <bruno@clisp.org>
57092
57093         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57094         false for non-gcc C++ compilers.
57095         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57096
57097 2006-10-24  Bruno Haible  <bruno@clisp.org>
57098
57099         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57100         iconv implementations like Irix iconv.
57101
57102 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57103
57104         * modules/vararrays: New file.
57105         * m4/vararrays.m4: New file, taken from diffutils.
57106         * MODULES.html.sh: New module vararrays.
57107
57108 2006-10-24  Karl Berry  <karl@gnu.org>
57109
57110         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57111         Don't call GNU Unix.
57112
57113 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57114
57115         * users.txt: Add Libtool.
57116
57117         Sync from Libtool:
57118
57119         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57120
57121         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57122         to gnulib's policy of including config.h unconditionally.
57123
57124 2006-10-24  Bruno Haible  <bruno@clisp.org>
57125
57126         * modules/wcwidth (Files): Add m4/wint_t.m4.
57127         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57128         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57129
57130 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57131
57132         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57133         to pacify GCC with some -W flags enabled.  Problem reported by
57134         Bruno Haible.
57135
57136 2006-10-24  Jim Meyering  <jim@meyering.net>
57137
57138         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57139         Reported by Karl Berry.
57140
57141 2006-10-23  Bruno Haible  <bruno@clisp.org>
57142
57143         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57144
57145 2006-10-24  Bruno Haible  <bruno@clisp.org>
57146
57147         * lib/gl_list.h: Use C comment style, not C++ comment style.
57148
57149 2006-10-23  Eric Blake  <ebb9@byu.net>
57150
57151         * lib/getaddrinfo.c (includes): Add missing include.
57152
57153 2006-10-23  Bruno Haible  <bruno@clisp.org>
57154             Paul Eggert  <eggert@cs.ucla.edu>
57155
57156         Ability to rename obstack_free.
57157         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57158         obstack_free.
57159         (obstack_free): Invoke the __obstack_free macro.
57160         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57161
57162 2006-10-23  Bruno Haible  <bruno@clisp.org>
57163             Paul Eggert  <eggert@cs.ucla.edu>
57164
57165         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57166         __argc, __argv from the declaration. (They are defined as macros on
57167         mingw.)
57168
57169 2006-10-22  Bruno Haible  <bruno@clisp.org>
57170
57171         * doc/gnulib-intro.texi: New file.
57172         * doc/gnulib.texi: Include it.
57173
57174 2006-10-21  Bruno Haible  <bruno@clisp.org>
57175
57176         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57177         "Introduction", "Miscellanous Notes", "Particular Modules".
57178
57179 2006-10-21  Bruno Haible  <bruno@clisp.org>
57180
57181         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57182         Change mostlyclean-local rule to avoid sh syntax error from bash
57183         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57184
57185 2006-10-23  Jim Meyering  <jim@meyering.net>
57186
57187         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57188         in place of snprintf.
57189
57190         * modules/inttostr (Files): Add lib/uinttostr.c.
57191         * lib/uinttostr.c (inttostr): New file/function.
57192         * lib/inttostr.h (uinttostr): Declare.
57193         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57194         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57195         Add uinttostr.
57196         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57197
57198 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57199
57200         * lib/canonicalize.c (ELOOP): Define if not already defined.
57201         Problem reported by Bruno Haible in
57202         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57203
57204 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57205
57206         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57207         Problem reported by Perry Smith and Ville Laurikari.
57208
57209         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57210         uses.
57211
57212 2006-10-19  Bruno Haible  <bruno@clisp.org>
57213
57214         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57215         for mingw.
57216
57217 2006-10-19  Bruno Haible  <bruno@clisp.org>
57218
57219         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57220         Needed for mingw.
57221
57222 2006-10-19  Bruno Haible  <bruno@clisp.org>
57223
57224         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57225
57226 2006-10-19  Bruno Haible  <bruno@clisp.org>
57227
57228         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57229         it.
57230
57231 2006-10-19  Bruno Haible  <bruno@clisp.org>
57232
57233         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57234         invocation.
57235
57236 2006-10-19  Bruno Haible  <bruno@clisp.org>
57237
57238         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57239         mountlist by default.
57240
57241 2006-10-16  Bruno Haible  <bruno@clisp.org>
57242
57243         * lib/c-strstr.c: Include c-strstr.h.
57244
57245 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57246
57247         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57248         in a slash.
57249
57250 2006-10-18  Bruno Haible  <bruno@clisp.org>
57251
57252         * lib/lock.h [C++]: Wrap definitions in extern "C".
57253
57254 2006-10-18  Bruno Haible  <bruno@clisp.org>
57255
57256         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57257         gl_LIBOBJS list.
57258
57259 2006-10-18  Bruno Haible  <bruno@clisp.org>
57260
57261         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57262
57263 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57264
57265         * lib/xstrtol.h: Include gettext.h.
57266         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57267         Problem reported by Eric Blake.
57268         * modules/xstrtol (Depends-on): Add gettext-h.
57269
57270 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57271
57272         * lib/strftime.c (advance): New macro.
57273         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57274         incomplete type, so you can't add 0 to it.  Problem and patch
57275         reported by Eelco Dolstra for dietlibc.
57276
57277 2006-10-18  Jim Meyering  <jim@meyering.net>
57278
57279         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57280         type for a local, and rename it: s/up/user_proc/.
57281
57282 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57283
57284         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57285         READ_UTMP_USER_PROCESS.
57286         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57287
57288 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57289
57290         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57291         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57292
57293 2006-10-17  Eric Blake  <ebb9@byu.net>
57294
57295         * lib/sigprocmask.c (sigprocmask): Fix typo.
57296
57297         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57298
57299         * modules/clean-temp (Makefile.am): Don't add to make output...
57300         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57301         config.h.
57302
57303 2006-10-17  Bruno Haible  <bruno@clisp.org>
57304
57305         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57306         differently if DEFAULT_TEXT_DOMAIN is set.
57307
57308 2006-10-16  Bruno Haible  <bruno@clisp.org>
57309
57310         * lib/clean-temp.c: Include fwriteerror.h.
57311
57312 2006-10-16  Bruno Haible  <bruno@clisp.org>
57313
57314         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57315
57316 2006-10-16  Bruno Haible  <bruno@clisp.org>
57317
57318         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57319         * lib/sigprocmask.h: Include <sys/types.h>.
57320         (sigset_t): Use the system's definition if present.
57321
57322 2006-10-17  Eric Blake  <ebb9@byu.net>
57323
57324         * lib/xvasprintf.c (includes): Assume config.h.
57325         * lib/xasprintf.c (includes): Likewise.
57326
57327 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57328
57329         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57330         at least as wide as intmax_t.
57331
57332 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57333
57334         (Imported from Automake.)
57335         * build-aux/gnupload: Update to version 1.1 of directive file.
57336
57337 2006-10-16  Eric Blake  <ebb9@byu.net>
57338
57339         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57340         match Automake 1.10a.
57341
57342 2006-10-14  Bruno Haible  <bruno@clisp.org>
57343
57344         * modules/sigprocmask: New file.
57345         * lib/sigprocmask.h: New file.
57346         * lib/sigprocmask.c: New file.
57347         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57348         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57349         request sigprocmask.o.
57350         (gl_PREREQ_SIGPROCMASK): New macro.
57351         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57352         (Depends-on): Add sigprocmask.
57353         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57354         gt_SIGNALBLOCKING. Test for 'raise' only once.
57355         * lib/fatal-signal.c: Include sigprocmask.h.
57356         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57357         unblock_fatal_signals): Define always.
57358         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57359         sigprocmask.
57360
57361 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         Sync from Automake.
57364         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57365         which incorrectly sets the mode of an existing destination
57366         directory.  In some cases the unpatched install-sh could do the
57367         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57368         system.  We hope this is rare in practice, but it's clearly worth
57369         fixing.  Problem reported by Alex Unleashed in
57370         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57371         Also, don't bother to check for -m bugs unless we're using -m;
57372         suggested by Stepan Kasal.
57373
57374 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57375
57376         Sync from Automake.
57377         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57378         `-c' flag, so they appear at the same position as in %FASTDEP%
57379         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57380         which ignores unknown options only after the first non-option.
57381         Bug report against M4 by Nelson H. F. Beebe.
57382
57383 2006-10-13  Jim Meyering  <jim@meyering.net>
57384
57385         Fix a bug in yesterday's change.
57386         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57387         p->fts_statp->st_dev would be used uninitialized.
57388         Ensures that we always call fts_stat on the very first entry.
57389         Miklos Szeredi reported that find -xdev stopped working.
57390
57391 2006-10-12  Bruno Haible  <bruno@clisp.org>
57392
57393         * gnulib-tool (func_get_automake_snippet): Append an automatically
57394         computed EXTRA_DIST augmentation.
57395         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57396         * modules/alloca-opt (Makefile.am): Likewise.
57397         * modules/allocsa (Makefile.am): Likewise.
57398         * modules/arcfour (Makefile.am): Likewise.
57399         * modules/arctwo (Makefile.am): Likewise.
57400         * modules/argmatch (Makefile.am): Likewise.
57401         * modules/argz (Makefile.am): Likewise.
57402         * modules/atexit (Makefile.am): Likewise.
57403         * modules/backupfile (Makefile.am): Likewise.
57404         * modules/byteswap (Makefile.am): Likewise.
57405         * modules/c-strtod (Makefile.am): Likewise.
57406         * modules/c-strtold (Makefile.am): Likewise.
57407         * modules/calloc (Makefile.am): Likewise.
57408         * modules/canon-host (Makefile.am): Likewise.
57409         * modules/canonicalize (Makefile.am): Likewise.
57410         * modules/chdir-long (Makefile.am): Likewise.
57411         * modules/chdir-safer (Makefile.am): Likewise.
57412         * modules/check-version (Makefile.am): Likewise.
57413         * modules/chown (Makefile.am): Likewise.
57414         * modules/cloexec (Makefile.am): Likewise.
57415         * modules/close-stream (Makefile.am): Likewise.
57416         * modules/closeout (Makefile.am): Likewise.
57417         * modules/crc (Makefile.am): Likewise.
57418         * modules/csharpexec (Makefile.am): Likewise.
57419         * modules/cycle-check (Makefile.am): Likewise.
57420         * modules/des (Makefile.am): Likewise.
57421         * modules/dev-ino (Makefile.am): Likewise.
57422         * modules/dirfd (Makefile.am): Likewise.
57423         * modules/dirname (Makefile.am): Likewise.
57424         * modules/dup2 (Makefile.am): Likewise.
57425         * modules/eealloc (Makefile.am): Likewise.
57426         * modules/error (Makefile.am): Likewise.
57427         * modules/euidaccess (Makefile.am): Likewise.
57428         * modules/exclude (Makefile.am): Likewise.
57429         * modules/exitfail (Makefile.am): Likewise.
57430         * modules/fcntl-safer (Makefile.am): Likewise.
57431         * modules/fcntl (Makefile.am): Likewise.
57432         * modules/file-type (Makefile.am): Likewise.
57433         * modules/fileblocks (Makefile.am): Likewise.
57434         * modules/filemode (Makefile.am): Likewise.
57435         * modules/filenamecat (Makefile.am): Likewise.
57436         * modules/fnmatch (Makefile.am): Likewise.
57437         * modules/fopen-safer (Makefile.am): Likewise.
57438         * modules/fpending (Makefile.am): Likewise.
57439         * modules/fprintftime (Makefile.am): Likewise.
57440         * modules/free (Makefile.am): Likewise.
57441         * modules/fsusage (Makefile.am): Likewise.
57442         * modules/ftruncate (Makefile.am): Likewise.
57443         * modules/fts (Makefile.am): Likewise.
57444         * modules/gc-arcfour (Makefile.am): Likewise.
57445         * modules/gc-des (Makefile.am): Likewise.
57446         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57447         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57448         * modules/gc-md4 (Makefile.am): Likewise.
57449         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57450         * modules/gc-sha1 (Makefile.am): Likewise.
57451         * modules/gc (Makefile.am): Likewise.
57452         * modules/getaddrinfo (Makefile.am): Likewise.
57453         * modules/getcwd (Makefile.am): Likewise.
57454         * modules/getdelim (Makefile.am): Likewise.
57455         * modules/getdomainname (Makefile.am): Likewise.
57456         * modules/getgroups (Makefile.am): Likewise.
57457         * modules/gethostname (Makefile.am): Likewise.
57458         * modules/gethrxtime (Makefile.am): Likewise.
57459         * modules/getline (Makefile.am): Likewise.
57460         * modules/getloadavg (Makefile.am): Likewise.
57461         * modules/getlogin_r (Makefile.am): Likewise.
57462         * modules/getndelim2 (Makefile.am): Likewise.
57463         * modules/getopt (Makefile.am): Likewise.
57464         * modules/getpagesize (Makefile.am): Likewise.
57465         * modules/getpass-gnu (Makefile.am): Likewise.
57466         * modules/getpass (Makefile.am): Likewise.
57467         * modules/getsubopt (Makefile.am): Likewise.
57468         * modules/gettime (Makefile.am): Likewise.
57469         * modules/gettimeofday (Makefile.am): Likewise.
57470         * modules/getugroups (Makefile.am): Likewise.
57471         * modules/getusershell (Makefile.am): Likewise.
57472         * modules/glob (Makefile.am): Likewise.
57473         * modules/group-member (Makefile.am): Likewise.
57474         * modules/hard-locale (Makefile.am): Likewise.
57475         * modules/hash (Makefile.am): Likewise.
57476         * modules/hmac-md5 (Makefile.am): Likewise.
57477         * modules/hmac-sha1 (Makefile.am): Likewise.
57478         * modules/human (Makefile.am): Likewise.
57479         * modules/idcache (Makefile.am): Likewise.
57480         * modules/imaxabs (Makefile.am): Likewise.
57481         * modules/imaxdiv (Makefile.am): Likewise.
57482         * modules/inet_ntop (Makefile.am): Likewise.
57483         * modules/inet_pton (Makefile.am): Likewise.
57484         * modules/intprops (Makefile.am): Likewise.
57485         * modules/inttostr (Makefile.am): Likewise.
57486         * modules/inttypes (Makefile.am): Likewise.
57487         * modules/isapipe (Makefile.am): Likewise.
57488         * modules/javaversion (Makefile.am): Likewise.
57489         * modules/lchmod (Makefile.am): Likewise.
57490         * modules/lchown (Makefile.am): Likewise.
57491         * modules/localcharset (Makefile.am): Likewise.
57492         * modules/long-options (Makefile.am): Likewise.
57493         * modules/lstat (Makefile.am): Likewise.
57494         * modules/malloc (Makefile.am): Likewise.
57495         * modules/mathl (Makefile.am): Likewise.
57496         * modules/mbchar (Makefile.am): Likewise.
57497         * modules/md2 (Makefile.am): Likewise.
57498         * modules/md4 (Makefile.am): Likewise.
57499         * modules/md5 (Makefile.am): Likewise.
57500         * modules/memcasecmp (Makefile.am): Likewise.
57501         * modules/memchr (Makefile.am): Likewise.
57502         * modules/memcmp (Makefile.am): Likewise.
57503         * modules/memcoll (Makefile.am): Likewise.
57504         * modules/memcpy (Makefile.am): Likewise.
57505         * modules/memmem (Makefile.am): Likewise.
57506         * modules/memmove (Makefile.am): Likewise.
57507         * modules/mempcpy (Makefile.am): Likewise.
57508         * modules/memrchr (Makefile.am): Likewise.
57509         * modules/memset (Makefile.am): Likewise.
57510         * modules/memxor (Makefile.am): Likewise.
57511         * modules/mkancesdirs (Makefile.am): Likewise.
57512         * modules/mkdir-p (Makefile.am): Likewise.
57513         * modules/mkdir (Makefile.am): Likewise.
57514         * modules/mkdtemp (Makefile.am): Likewise.
57515         * modules/mkstemp (Makefile.am): Likewise.
57516         * modules/mktime (Makefile.am): Likewise.
57517         * modules/modechange (Makefile.am): Likewise.
57518         * modules/mountlist (Makefile.am): Likewise.
57519         * modules/nanosleep (Makefile.am): Likewise.
57520         * modules/obstack (Makefile.am): Likewise.
57521         * modules/openat (Makefile.am): Likewise.
57522         * modules/pagealign_alloc (Makefile.am): Likewise.
57523         * modules/pathmax (Makefile.am): Likewise.
57524         * modules/physmem (Makefile.am): Likewise.
57525         * modules/poll (Makefile.am): Likewise.
57526         * modules/posixtm (Makefile.am): Likewise.
57527         * modules/posixver (Makefile.am): Likewise.
57528         * modules/putenv (Makefile.am): Likewise.
57529         * modules/quote (Makefile.am): Likewise.
57530         * modules/quotearg (Makefile.am): Likewise.
57531         * modules/raise (Makefile.am): Likewise.
57532         * modules/read-file (Makefile.am): Likewise.
57533         * modules/readline (Makefile.am): Likewise.
57534         * modules/readlink (Makefile.am): Likewise.
57535         * modules/readtokens (Makefile.am): Likewise.
57536         * modules/readutmp (Makefile.am): Likewise.
57537         * modules/realloc (Makefile.am): Likewise.
57538         * modules/regex (Makefile.am): Likewise.
57539         * modules/rename-dest-slash (Makefile.am): Likewise.
57540         * modules/rename (Makefile.am): Likewise.
57541         * modules/rijndael (Makefile.am): Likewise.
57542         * modules/rmdir (Makefile.am): Likewise.
57543         * modules/rpmatch (Makefile.am): Likewise.
57544         * modules/safe-read (Makefile.am): Likewise.
57545         * modules/safe-write (Makefile.am): Likewise.
57546         * modules/same-inode (Makefile.am): Likewise.
57547         * modules/same (Makefile.am): Likewise.
57548         * modules/save-cwd (Makefile.am): Likewise.
57549         * modules/savedir (Makefile.am): Likewise.
57550         * modules/setenv (Makefile.am): Likewise.
57551         * modules/settime (Makefile.am): Likewise.
57552         * modules/sha1 (Makefile.am): Likewise.
57553         * modules/sig2str (Makefile.am): Likewise.
57554         * modules/snprintf (Makefile.am): Likewise.
57555         * modules/stat-macros (Makefile.am): Likewise.
57556         * modules/stat-time (Makefile.am): Likewise.
57557         * modules/stdbool (Makefile.am): Likewise.
57558         * modules/stdint (Makefile.am): Likewise.
57559         * modules/stdlib-safer (Makefile.am): Likewise.
57560         * modules/stpcpy (Makefile.am): Likewise.
57561         * modules/stpncpy (Makefile.am): Likewise.
57562         * modules/strcase (Makefile.am): Likewise.
57563         * modules/strcasestr (Makefile.am): Likewise.
57564         * modules/strchrnul (Makefile.am): Likewise.
57565         * modules/strcspn (Makefile.am): Likewise.
57566         * modules/strdup (Makefile.am): Likewise.
57567         * modules/strerror (Makefile.am): Likewise.
57568         * modules/strftime (Makefile.am): Likewise.
57569         * modules/strndup (Makefile.am): Likewise.
57570         * modules/strnlen (Makefile.am): Likewise.
57571         * modules/strpbrk (Makefile.am): Likewise.
57572         * modules/strsep (Makefile.am): Likewise.
57573         * modules/strstr (Makefile.am): Likewise.
57574         * modules/strtod (Makefile.am): Likewise.
57575         * modules/strtoimax (Makefile.am): Likewise.
57576         * modules/strtok_r (Makefile.am): Likewise.
57577         * modules/strtol (Makefile.am): Likewise.
57578         * modules/strtoll (Makefile.am): Likewise.
57579         * modules/strtoul (Makefile.am): Likewise.
57580         * modules/strtoull (Makefile.am): Likewise.
57581         * modules/strtoumax (Makefile.am): Likewise.
57582         * modules/strverscmp (Makefile.am): Likewise.
57583         * modules/sys_socket (Makefile.am): Likewise.
57584         * modules/sys_stat (Makefile.am): Likewise.
57585         * modules/sysexits (Makefile.am): Likewise.
57586         * modules/time_r (Makefile.am): Likewise.
57587         * modules/timegm (Makefile.am): Likewise.
57588         * modules/timespec (Makefile.am): Likewise.
57589         * modules/tmpfile-safer (Makefile.am): Likewise.
57590         * modules/trim (Makefile.am): Likewise.
57591         * modules/unistd-safer (Makefile.am): Likewise.
57592         * modules/unlinkdir (Makefile.am): Likewise.
57593         * modules/unlocked-io (Makefile.am): Likewise.
57594         * modules/userspec (Makefile.am): Likewise.
57595         * modules/utime (Makefile.am): Likewise.
57596         * modules/utimecmp (Makefile.am): Likewise.
57597         * modules/utimens (Makefile.am): Likewise.
57598         * modules/vasnprintf (Makefile.am): Likewise.
57599         * modules/vasprintf (Makefile.am): Likewise.
57600         * modules/vsnprintf (Makefile.am): Likewise.
57601         * modules/xalloc (Makefile.am): Likewise.
57602         * modules/xgetcwd (Makefile.am): Likewise.
57603         * modules/xnanosleep (Makefile.am): Likewise.
57604         * modules/xreadlink (Makefile.am): Likewise.
57605         * modules/xstrtod (Makefile.am): Likewise.
57606         * modules/xstrtol (Makefile.am): Likewise.
57607         * modules/xstrtold (Makefile.am): Likewise.
57608         * modules/yesno (Makefile.am): Likewise.
57609         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
57610
57611 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         * modules/error (Makefile.am): Distribute files through
57614         EXTRA_DIST, not lib_SOURCES.
57615
57616 2006-10-12  Eric Blake  <ebb9@byu.net>
57617
57618         * modules/error (Makefile.am): Distribute files in /lib.
57619         * modules/obstack (Makefile.am): Likewise.
57620
57621 2006-10-12  Bruno Haible  <bruno@clisp.org>
57622
57623         * modules/acl (Makefile.am): Distribute all files in lib/ through
57624         EXTRA_DIST.
57625         * modules/arcfour (Makefile.am): Likewise.
57626         * modules/arctwo (Makefile.am): Likewise.
57627         * modules/argmatch (Makefile.am): Likewise.
57628         * modules/argz (Makefile.am): Likewise.
57629         * modules/atexit (Makefile.am): Likewise.
57630         * modules/backupfile (Makefile.am): Likewise.
57631         * modules/c-strtod (Makefile.am): Likewise.
57632         * modules/c-strtold (Makefile.am): Likewise.
57633         * modules/calloc (Makefile.am): Likewise.
57634         * modules/canon-host (Makefile.am): Likewise.
57635         * modules/canonicalize (Makefile.am): Likewise.
57636         * modules/chdir-long (Makefile.am): Likewise.
57637         * modules/chdir-safer (Makefile.am): Likewise.
57638         * modules/check-version (Makefile.am): Likewise.
57639         * modules/chown (Makefile.am): Likewise.
57640         * modules/cloexec (Makefile.am): Likewise.
57641         * modules/close-stream (Makefile.am): Likewise.
57642         * modules/closeout (Makefile.am): Likewise.
57643         * modules/crc (Makefile.am): Likewise.
57644         * modules/cycle-check (Makefile.am): Likewise.
57645         * modules/des (Makefile.am): Likewise.
57646         * modules/dirfd (Makefile.am): Likewise.
57647         * modules/dirname (Makefile.am): Likewise.
57648         * modules/dup2 (Makefile.am): Likewise.
57649         * modules/euidaccess (Makefile.am): Likewise.
57650         * modules/exclude (Makefile.am): Likewise.
57651         * modules/exitfail (Makefile.am): Likewise.
57652         * modules/fcntl-safer (Makefile.am): Likewise.
57653         * modules/file-type (Makefile.am): Likewise.
57654         * modules/fileblocks (Makefile.am): Likewise.
57655         * modules/filemode (Makefile.am): Likewise.
57656         * modules/filenamecat (Makefile.am): Likewise.
57657         * modules/fnmatch (Makefile.am): Likewise.
57658         * modules/fopen-safer (Makefile.am): Likewise.
57659         * modules/fpending (Makefile.am): Likewise.
57660         * modules/fprintftime (Makefile.am): Likewise.
57661         * modules/free (Makefile.am): Likewise.
57662         * modules/fsusage (Makefile.am): Likewise.
57663         * modules/ftruncate (Makefile.am): Likewise.
57664         * modules/fts (Makefile.am): Likewise.
57665         * modules/gc (Makefile.am): Likewise.
57666         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57667         * modules/getaddrinfo (Makefile.am): Likewise.
57668         * modules/getcwd (Makefile.am): Likewise.
57669         * modules/getdelim (Makefile.am): Likewise.
57670         * modules/getdomainname (Makefile.am): Likewise.
57671         * modules/getgroups (Makefile.am): Likewise.
57672         * modules/gethostname (Makefile.am): Likewise.
57673         * modules/gethrxtime (Makefile.am): Likewise.
57674         * modules/getline (Makefile.am): Likewise.
57675         * modules/getloadavg (Makefile.am): Likewise.
57676         * modules/getlogin_r (Makefile.am): Likewise.
57677         * modules/getopt (Makefile.am): Likewise.
57678         * modules/getpass (Makefile.am): Likewise.
57679         * modules/getpass-gnu (Makefile.am): Likewise.
57680         * modules/getsubopt (Makefile.am): Likewise.
57681         * modules/gettime (Makefile.am): Likewise.
57682         * modules/gettimeofday (Makefile.am): Likewise.
57683         * modules/getugroups (Makefile.am): Likewise.
57684         * modules/getusershell (Makefile.am): Likewise.
57685         * modules/glob (Makefile.am): Likewise.
57686         * modules/group-member (Makefile.am): Likewise.
57687         * modules/hard-locale (Makefile.am): Likewise.
57688         * modules/hash (Makefile.am): Likewise.
57689         * modules/hmac-md5 (Makefile.am): Likewise.
57690         * modules/hmac-sha1 (Makefile.am): Likewise.
57691         * modules/human (Makefile.am): Likewise.
57692         * modules/idcache (Makefile.am): Likewise.
57693         * modules/imaxabs (Makefile.am): Likewise.
57694         * modules/imaxdiv (Makefile.am): Likewise.
57695         * modules/inet_ntop (Makefile.am): Likewise.
57696         * modules/inet_pton (Makefile.am): Likewise.
57697         * modules/inttostr (Makefile.am): Likewise.
57698         * modules/isapipe (Makefile.am): Likewise.
57699         * modules/lchown (Makefile.am): Likewise.
57700         * modules/long-options (Makefile.am): Likewise.
57701         * modules/lstat (Makefile.am): Likewise.
57702         * modules/malloc (Makefile.am): Likewise.
57703         * modules/mathl (Makefile.am): Likewise.
57704         * modules/mbchar (Makefile.am): Likewise.
57705         * modules/md2 (Makefile.am): Likewise.
57706         * modules/md4 (Makefile.am): Likewise.
57707         * modules/md5 (Makefile.am): Likewise.
57708         * modules/memcasecmp (Makefile.am): Likewise.
57709         * modules/memchr (Makefile.am): Likewise.
57710         * modules/memcmp (Makefile.am): Likewise.
57711         * modules/memcoll (Makefile.am): Likewise.
57712         * modules/memcpy (Makefile.am): Likewise.
57713         * modules/memmem (Makefile.am): Likewise.
57714         * modules/memmove (Makefile.am): Likewise.
57715         * modules/mempcpy (Makefile.am): Likewise.
57716         * modules/memrchr (Makefile.am): Likewise.
57717         * modules/memset (Makefile.am): Likewise.
57718         * modules/memxor (Makefile.am): Likewise.
57719         * modules/mkancesdirs (Makefile.am): Likewise.
57720         * modules/mkdir (Makefile.am): Likewise.
57721         * modules/mkdir-p (Makefile.am): Likewise.
57722         * modules/mkdtemp (Makefile.am): Likewise.
57723         * modules/mkstemp (Makefile.am): Likewise.
57724         * modules/mktime (Makefile.am): Likewise.
57725         * modules/modechange (Makefile.am): Likewise.
57726         * modules/mountlist (Makefile.am): Likewise.
57727         * modules/nanosleep (Makefile.am): Likewise.
57728         * modules/openat (Makefile.am): Likewise.
57729         * modules/pagealign_alloc (Makefile.am): Likewise.
57730         * modules/physmem (Makefile.am): Likewise.
57731         * modules/poll (Makefile.am): Likewise.
57732         * modules/posixtm (Makefile.am): Likewise.
57733         * modules/posixver (Makefile.am): Likewise.
57734         * modules/putenv (Makefile.am): Likewise.
57735         * modules/quote (Makefile.am): Likewise.
57736         * modules/quotearg (Makefile.am): Likewise.
57737         * modules/raise (Makefile.am): Likewise.
57738         * modules/read-file (Makefile.am): Likewise.
57739         * modules/readline (Makefile.am): Likewise.
57740         * modules/readlink (Makefile.am): Likewise.
57741         * modules/readtokens (Makefile.am): Likewise.
57742         * modules/readutmp (Makefile.am): Likewise.
57743         * modules/realloc (Makefile.am): Likewise.
57744         * modules/regex (Makefile.am): Likewise.
57745         * modules/rename (Makefile.am): Likewise.
57746         * modules/rename-dest-slash (Makefile.am): Likewise.
57747         * modules/rijndael (Makefile.am): Likewise.
57748         * modules/rmdir (Makefile.am): Likewise.
57749         * modules/rpmatch (Makefile.am): Likewise.
57750         * modules/safe-read (Makefile.am): Likewise.
57751         * modules/safe-write (Makefile.am): Likewise.
57752         * modules/same (Makefile.am): Likewise.
57753         * modules/save-cwd (Makefile.am): Likewise.
57754         * modules/savedir (Makefile.am): Likewise.
57755         * modules/setenv (Makefile.am): Likewise.
57756         * modules/settime (Makefile.am): Likewise.
57757         * modules/sha1 (Makefile.am): Likewise.
57758         * modules/sig2str (Makefile.am): Likewise.
57759         * modules/snprintf (Makefile.am): Likewise.
57760         * modules/stdlib-safer (Makefile.am): Likewise.
57761         * modules/stpcpy (Makefile.am): Likewise.
57762         * modules/stpncpy (Makefile.am): Likewise.
57763         * modules/strcase (Makefile.am): Likewise.
57764         * modules/strcasestr (Makefile.am): Likewise.
57765         * modules/strchrnul (Makefile.am): Likewise.
57766         * modules/strcspn (Makefile.am): Likewise.
57767         * modules/strdup (Makefile.am): Likewise.
57768         * modules/strerror (Makefile.am): Likewise.
57769         * modules/strftime (Makefile.am): Likewise.
57770         * modules/strndup (Makefile.am): Likewise.
57771         * modules/strnlen (Makefile.am): Likewise.
57772         * modules/strpbrk (Makefile.am): Likewise.
57773         * modules/strsep (Makefile.am): Likewise.
57774         * modules/strstr (Makefile.am): Likewise.
57775         * modules/strtod (Makefile.am): Likewise.
57776         * modules/strtoimax (Makefile.am): Likewise.
57777         * modules/strtok_r (Makefile.am): Likewise.
57778         * modules/strtol (Makefile.am): Likewise.
57779         * modules/strtoll (Makefile.am): Likewise.
57780         * modules/strtoul (Makefile.am): Likewise.
57781         * modules/strtoull (Makefile.am): Likewise.
57782         * modules/strtoumax (Makefile.am): Likewise.
57783         * modules/strverscmp (Makefile.am): Likewise.
57784         * modules/time_r (Makefile.am): Likewise.
57785         * modules/timegm (Makefile.am): Likewise.
57786         * modules/tmpfile-safer (Makefile.am): Likewise.
57787         * modules/unistd-safer (Makefile.am): Likewise.
57788         * modules/unlinkdir (Makefile.am): Likewise.
57789         * modules/userspec (Makefile.am): Likewise.
57790         * modules/utime (Makefile.am): Likewise.
57791         * modules/utimecmp (Makefile.am): Likewise.
57792         * modules/utimens (Makefile.am): Likewise.
57793         * modules/vasnprintf (Makefile.am): Likewise.
57794         * modules/vasprintf (Makefile.am): Likewise.
57795         * modules/vsnprintf (Makefile.am): Likewise.
57796         * modules/xalloc (Makefile.am): Likewise.
57797         * modules/xgetcwd (Makefile.am): Likewise.
57798         * modules/xnanosleep (Makefile.am): Likewise.
57799         * modules/xreadlink (Makefile.am): Likewise.
57800         * modules/xstrtod (Makefile.am): Likewise.
57801         * modules/xstrtol (Makefile.am): Likewise.
57802         * modules/xstrtold (Makefile.am): Likewise.
57803         * modules/yesno (Makefile.am): Likewise.
57804
57805 2006-10-12  Jim Meyering  <jim@meyering.net>
57806
57807         * m4/getloadavg.m4: Revert the change below.
57808
57809         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
57810         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
57811         fail with a symlink, which is what coreutils' ./bootstrap now
57812         creates by default.
57813
57814 2006-10-12  Bruno Haible  <bruno@clisp.org>
57815
57816         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57817         mingw.
57818         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57819         MSVC and mingw explicitly.
57820
57821 2006-10-11  Simon Josefsson  <jas@extundo.com>
57822             Bruno Haible  <bruno@clisp.org>
57823
57824         Add support for multiple gnulib-tool invocations in the scope of a
57825         single configure.ac file.
57826         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57827         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57828         with the same contents as the _LIBADD variable.
57829         (func_emit_initmacro_start, func_emit_initmacro_end,
57830         func_emit_initmacro_done): New functions.
57831         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57832         gl_LIBOBJS and gl_LTLIBOBJS.
57833
57834 2006-10-11  Bruno Haible  <bruno@clisp.org>
57835
57836         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57837         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57838         autoreconf. Instead, invoke autopoint explicitly but move back the
57839         *.m4 files from gnulib.
57840
57841 2006-10-11  Bruno Haible  <bruno@clisp.org>
57842
57843         * gnulib-tool (func_usage): Make module names after --create-testdir
57844         optional.
57845         (func_create_testdir): If no module was specified, use nearly all
57846         modules.
57847
57848 2006-10-12  Jim Meyering  <jim@meyering.net>
57849
57850         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57851         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57852         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57853         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57854         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57855         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57856         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57857         (fts_set_stat_required): New function.
57858         (fts_open): Defer the calls to fts_stat, if possible or requested.
57859         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57860         into fts_stat itself.
57861         (fts_read): Perform any required (deferred) fts_stat call.
57862         (fts_build): Likewise, for the directory we're about to open and read.
57863         In the readdir loop, carefully decide whether each entry will require
57864         an eventual call to fts_stat, using dirent.d_type info if available.
57865         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57866         a command line argument into this function.  Update all callers.
57867         Map a return value of FTS_DOT to FTS_D for a command line argument.
57868         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57869         Thanks to Miklos Szeredi for his tenacity and for the initial
57870         bug report about "find" failing on a FUSE-based file system.
57871
57872         * lib/fts.c (fts_open): Use consistent indentation.
57873
57874 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57875
57876         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57877         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57878         reported by Jim Meyering.  All uses of cache variables renamed
57879         to match Autoconf's.
57880         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57881         the other one.
57882
57883         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57884         Fix misspelling in diagnostic.
57885
57886 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57889         defined.  Problem reported by Matthew Woehlke.
57890
57891         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57892         Add support for Tandem NonStop R series.
57893         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57894         Use new macro.
57895
57896         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57897         (has_trailing_slash): Omit size arg; all callers changed.
57898         Omit 'inline', since it doesn't help performance and we'd
57899         need to configure it.
57900         Don't count //, ///, etc. as having a trailing slash.
57901         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57902         (rpl_rename_dest_slash): On failure, use rename's errno rather
57903         than (in some cases) an incorrect or junk errno.
57904         Simplify code by removing need to compute length; this does
57905         cause it to make two passes instead of one over the file name,
57906         but it's worth it.
57907
57908         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57909         change, since Autoconf's version may no longer be appropriate now
57910         that we are using CVS Autoconf's version.  Add support for Tandem.
57911
57912 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57913             Bruno Haible  <bruno@clisp.org>
57914
57915         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57916         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57917         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57918         gl_AC_TYPE_LONG_LONG.
57919
57920         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57921         instead of HAVE_LONG_LONG.
57922         * lib/printf-args.c (printf_fetchargs): Likewise.
57923         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57924         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57925         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57926         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57927         gl_AC_TYPE_LONG_LONG.
57928
57929 2006-10-11  Bruno Haible  <bruno@clisp.org>
57930
57931         * m4/longlong.m4: Add comments.
57932         * m4/ulonglong.m4: Likewise.
57933
57934 2006-10-10  Bruno Haible  <bruno@clisp.org>
57935
57936         Make it possible to #define stpcpy, strdup to aliases.
57937         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57938         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57939
57940 2006-10-10  Bruno Haible  <bruno@clisp.org>
57941
57942         Make it possible to #define gcd to an alias.
57943         * lib/gcd.c: Include config.h.
57944
57945 2006-10-10  Bruno Haible  <bruno@clisp.org>
57946
57947         Make it possible to #define c_isascii to an alias.
57948         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57949         defined. Undefine the macros before defining them, to avoid gcc
57950         warnings.
57951         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57952         define NO_C_CTYPE_MACROS early.
57953
57954 2006-10-10  Bruno Haible  <bruno@clisp.org>
57955
57956         Make it possible to #define set_program_name to an alias.
57957         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57958         ENABLE_RELOCATABLE early.
57959
57960 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57961
57962         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57963         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57964         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57965         More generally, don't assume that 64-bit signed int is available
57966         if unsigned int is, and vice versa.
57967         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57968         unsigned symbols, not on their signed counterparts.
57969         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57970         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57971         (UINT64_C, UINTMAX_C):
57972         Likewise.
57973         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57974         unsigned counterparts.
57975         (Have_long_long, Unsigned): New macros.
57976         (Int): Renamed from INT.
57977         (strtoimax): Use the new macros.
57978         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57979         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57980         * modules/inttypes (inttypes.h): Substitute
57981         HAVE_UNSIGNED_LONG_LONG_INT.
57982         * modules/stdint (stdint.h): Likewise.
57983         (Files): Add m4/ulonglong.m4.
57984
57985 2006-10-10  Bruno Haible  <bruno@clisp.org>
57986
57987         Fix a gcc -Wshadow warning.
57988         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57989         to 'bucket'.
57990         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57991         gl_linked_indexof_from_to): Likewise.
57992         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57993         Likewise.
57994         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57995         Likewise.
57996         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57997         Reported by Eric Blake.
57998
57999 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58000
58001         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58002         for NetBSD.  Problem reported by Bruno Haible.
58003
58004 2006-10-09  Jim Meyering  <jim@meyering.net>
58005
58006         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58007         Patch from Bruno Haible.
58008
58009 2006-10-09  Jim Meyering  <jim@meyering.net>
58010
58011         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58012         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58013         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58014
58015 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         Don't include <config.h> twice; this doesn't work in some cases,
58018         e.g., when config.h has "#define intmax_t long long int" and
58019         we include <config.h>, <inttypes.h>, <config.h> in that order.
58020         Problem reported by Matthew Woehlke in:
58021         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58022         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58023         * lib/fts-cycle.c: Don't include config.h.
58024         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58025         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58026         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58027         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58028         inttypes.h.
58029         * lib/xstrtoumax.c: Likewise.
58030         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58031         __strtol and the like, so that this module is more like its siblings.
58032         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58033         Remove; no longer needed now that we assume gnulib inttypes.h.
58034
58035 2006-10-08  Bruno Haible  <bruno@clisp.org>
58036
58037         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58038         option.
58039
58040 2006-10-07  Jim Meyering  <jim@meyering.net>
58041
58042         * modules/inttypes (inttypes.h): Revert what seems to have been
58043         an inadvertent part of today's change: use "|", not "/" in the
58044         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58045
58046 2006-10-07  Bruno Haible  <bruno@clisp.org>
58047
58048         * modules/sublist: New file.
58049
58050 2006-10-07  Bruno Haible  <bruno@clisp.org>
58051
58052         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58053         * modules/argz (argz.h): Likewise.
58054         * modules/arpa_inet (arpa/inet.h): Likewise.
58055         * modules/byteswap (byteswap.h): Likewise.
58056         * modules/configmake (configmake.h): Likewise.
58057         * modules/fcntl (fcntl.h): Likewise.
58058         * modules/fnmatch (fnmatch.h): Likewise.
58059         * modules/getopt (getopt.h): Likewise.
58060         * modules/glob (glob.h): Likewise.
58061         * modules/inttypes (inttypes.h): Likewise.
58062         * modules/netinet_in (netinet/in.h): Likewise.
58063         * modules/poll (poll.h): Likewise.
58064         * modules/stdbool (stdbool.h): Likewise.
58065         * modules/stdint (stdint.h): Likewise.
58066         * modules/sys_select (sys/select.h): Likewise.
58067         * modules/sys_socket (sys/socket.h): Likewise.
58068         * modules/sys_stat (sys/stat.h): Likewise.
58069         * modules/sysexits (sysexits.h): Likewise.
58070         * modules/unistd (unistd.h): Likewise.
58071         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58072         Add a "DO NOT EDIT" comment to the generated file.
58073         (func_import): Likewise for gnulib-comp.m4.
58074
58075 2006-10-07  Bruno Haible  <bruno@clisp.org>
58076
58077         * lib/gl_sublist.h: New file.
58078         * lib/gl_sublist.c: New file.
58079
58080 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58081
58082         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58083         name (relative to the original working directory) and the file
58084         name component (relative to the temporary working directory).  All
58085         callers changed.
58086         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58087         * lib/mkdir-p.c (make_dir_parents): Likewise.
58088         * lib/mkdir-p.h (make_dir_parents): Likewise.
58089
58090 2006-10-06  Eric Blake  <ebb9@byu.net>
58091
58092         Define several macros for use by the clean-temp module.
58093         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58094         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58095         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58096
58097         * lib/clean-temp.h (close_stream_temp): New declaration.
58098         * lib/clean-temp.c (includes): Pull in headers according to what
58099         other modules are in use.
58100         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58101
58102 2006-10-06  Bruno Haible  <bruno@clisp.org>
58103
58104         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58105         instead of fopen, fwriteerror.
58106
58107 2006-10-06  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58110         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58111         int.
58112         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58113         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58114         Return an error indicator.
58115         Suggested by Eric Blake.
58116
58117 2006-10-06  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58120         Reported by Eric Blake.
58121
58122 2006-10-06  Bruno Haible  <bruno@clisp.org>
58123
58124         * modules/closeout (Description): Mention stderr too.
58125
58126 2006-10-06  Bruno Haible  <bruno@clisp.org>
58127         and Paul Eggert  <eggert@cs.ucla.edu>
58128
58129         * lib/closeout.c (close_stdout): Also close stderr.
58130         * lib/closeout.h: Update comment.
58131
58132 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58133
58134         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58135         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58136         * lib/dirchownmod.c: Include lchown.h.
58137         * lib/lchown.c: Don't include files that lchown.h now includes.
58138         Don't declare chown, since lchown.h now does that.
58139         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58140         (lchown): Define to rpl_chown if lchown is declared but
58141         does not exist.  Declare using a prototype if lchown is not
58142         declared.  Add a copyright notice.
58143         * lib/mkstemp.h: Include <unistd.h>.
58144         * lib/openat.c: Include lchown.h.
58145
58146         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58147         we now test for that separately.
58148         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58149         rather than O_NOFOLLOW, when testing whether it's possible to
58150         avoid a race condition reliably.
58151         * lib/savewd.c (savewd_chdir): Likewise.
58152
58153         Remove macros that are no longer needed now that stdint.h is
58154         reliable.
58155         * lib/fsusage.c (UINTMAX_MAX): Remove.
58156         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58157         * lib/utimecmp.c (SIZE_MAX): Remove.
58158
58159         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58160
58161         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58162         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58163         O_NOATIME works.
58164
58165 2006-10-05  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/gl_list.h (gl_sortedlist_search_from_to,
58168         gl_sortedlist_indexof_from_to): New declarations.
58169         (gl_list_implementation): New fields sortedlist_search_from_to,
58170         sortedlist_indexof_from_to.
58171         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58172         inline functions.
58173         * lib/gl_list.c (gl_sortedlist_search_from_to,
58174         gl_sortedlist_indexof_from_to): New functions.
58175         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58176         function.
58177         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58178         (gl_array_sortedlist_search_from_to): New function.
58179         (gl_array_list_implementation): Update.
58180         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58181         function.
58182         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58183         (gl_carray_sortedlist_search_from_to): New function.
58184         (gl_carray_list_implementation): Update.
58185         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58186         gl_linked_sortedlist_indexof_from_to): New functions.
58187         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58188         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58189         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58190         gl_tree_sortedlist_indexof_from_to): New functions.
58191         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58192         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58193         Update.
58194         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58195         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58196         Update.
58197
58198 2006-10-05  Bruno Haible  <bruno@clisp.org>
58199
58200         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58201         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58202         (struct gl_list_implementation): Add fields search_from_to,
58203         indexof_from_to. Remove fields search, indexof.
58204         (gl_list_search): Use the search_from_to method.
58205         (gl_list_search_from, gl_list_search_from_to): New functions.
58206         (gl_list_indexof): Use the indexof_from_to method.
58207         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58208         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58209         (gl_list_search_from, gl_list_search_from_to): New functions.
58210         (gl_list_indexof): Use the indexof_from_to method.
58211         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58212         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58213         gl_array_indexof. Add start_index, end_index arguments.
58214         (gl_array_search_from_to): Renamed from gl_array_search. Add
58215         start_index, end_index arguments.
58216         (gl_array_remove, gl_array_list_implementation): Update.
58217         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58218         gl_carray_indexof. Add start_index, end_index arguments.
58219         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58220         start_index, end_index arguments.
58221         (gl_carray_remove, gl_carray_list_implementation): Update.
58222         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58223         gl_linked_search. Add start_index, end_index arguments.
58224         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58225         start_index, end_index arguments.
58226         (gl_linked_remove): Update.
58227         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58228         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58229         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58230         field to 'size_t'.
58231         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58232         gl_tree_search. Add start_index, end_index arguments.
58233         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58234         start_index, end_index arguments.
58235         (gl_tree_remove): Update.
58236         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58237         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58238         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58239         function.
58240         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58241         gl_tree_search. Add start_index, end_index arguments.
58242         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58243         start_index, end_index arguments.
58244         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58245         Update.
58246         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58247
58248 2006-10-05  Bruno Haible  <bruno@clisp.org>
58249
58250         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58251
58252         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58253         fwriteerror_temp): New declarations.
58254         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58255         (descriptors): New variable.
58256         (cleanup): First, close the descriptors.
58257         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58258         fclose_temp, fwriteerror_temp): New functions.
58259
58260 2006-10-04  Jim Meyering  <jim@meyering.net>
58261
58262         * lib/fts.c (fts_open): Tiny comment change.
58263
58264 2006-10-04  Bruno Haible  <bruno@clisp.org>
58265
58266         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58267         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58268         gl_LOCK_BODY.
58269         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58270         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58271         gl_LOCK_EARLY_BODY.
58272         (gl_LOCK): Require gl_LOCK_BODY.
58273
58274 2006-10-04  Bruno Haible  <bruno@clisp.org>
58275
58276         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58277         (gl_oset_search_atleast): New declaration.
58278         (struct gl_oset_implementation): Add field 'search_atleast'.
58279         (gl_oset_search_atleast): New inline function.
58280         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58281         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58282         (gl_array_oset_implementation): Update.
58283         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58284         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58285         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58286
58287 2006-10-04  Bruno Haible  <bruno@clisp.org>
58288
58289         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58290
58291 2006-10-03  Bruno Haible  <bruno@clisp.org>
58292
58293         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58294         from gl_avltreehash_list_implementation.
58295
58296 2006-10-03  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/gl_oset.c (gl_oset_add): Fix return type.
58299
58300 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58301
58302         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58303
58304 2006-10-02  Eric Blake  <ebb9@byu.net>
58305
58306         * modules/strnlen (Depends-on): Add extensions.
58307
58308 2006-10-02  Eric Blake  <ebb9@byu.net>
58309
58310         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58311         definition in 2.60+.
58312
58313 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58314
58315         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58316         checks.
58317
58318 2006-10-02  Bruno Haible  <bruno@clisp.org>
58319
58320         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58321         to the AUTOMAKE_OPTIONS.
58322         Reported by Jim Meyering.
58323
58324 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58325
58326         Work around bug in Solaris 10 /proc file system:
58327         /proc/self/fd/NNN/.. isn't the parent directory of
58328         the directory whose file descriptor is NNN.  This needs to
58329         be worked around at run time, not compile time, since a
58330         program might be built on Solaris 8, where things work, and
58331         run on Solaris 10.
58332         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58333         to use the following interface instead:
58334         (OPENAT_BUFFER_SIZE): New macro.
58335         (openat_proc_name): New function.
58336         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58337         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58338         Likewise.
58339         * lib/openat-proc.c: New file.
58340         * modules/openat (Files): Add lib/openat-proc.c.
58341         (Depends-on): Add same-inode, stdbool.
58342         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58343
58344 2006-09-29  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58347         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58348         argument. Set stdout_closed before testing for ferror, not after.
58349         (fwriteerror, fwriteerror_no_ebadf): New functions.
58350
58351 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58352
58353         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58354
58355 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58356
58357         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58358         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58359
58360 2006-09-28  Jim Meyering  <jim@meyering.net>
58361
58362         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58363         Include <unistd.h>.
58364
58365 2006-09-28  Bruno Haible  <bruno@clisp.org>
58366
58367         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58368         * modules/linkedhash-list (Depends-on): Likewise.
58369         * modules/rbtreehash-list (Depends-on): Likewise.
58370
58371 2006-09-28  Bruno Haible  <bruno@clisp.org>
58372
58373         * lib/strndup.h: Simplify the redefinition of strndup.
58374         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58375         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58376
58377 2006-09-28  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58380         * lib/gl_linkedhash_list.c: Likewise.
58381         * lib/gl_rbtreehash_list.c: Likewise.
58382
58383 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58384
58385         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58386         getaddrinfo.
58387
58388         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58389         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58390         it causes <stdio_ext.h> to cause a compile-time error.
58391         Problem reported by Nelson H. F. Beebe.
58392         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58393         of HAVE_DECL___PENDING.
58394
58395         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58396         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58397         declaration.
58398
58399 2006-09-27  Jim Meyering  <jim@meyering.net>
58400
58401         This file could end up with a definition for a function
58402         named __strndup, rather than rpl_strndup on a system with
58403         incomplete weak_alias support.
58404         * lib/strndup.c (strndup): Rename from __strndup.
58405         Remove #defines that used to map __strndup to strndup.
58406         Don't use K&R prototypes.
58407         Remove LIBC-related code, since this file is not sync'd with glibc.
58408         * lib/strndup.h: Revamp, accordingly.
58409         * m4/strndup.m4: Modernize.
58410
58411 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58412
58413         * modules/savewd (Depends-on): Add 'raise'.
58414         * lib/savewd.c: Include <signal.h>, for 'raise'.
58415
58416 2006-09-26  Jim Meyering  <jim@meyering.net>
58417
58418         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58419         when we detect Darwin 8.7.0's acl_get_file bug.
58420         Rearrange to perform the new (below) run-test while $LIBS
58421         contains any acl-related library.  Set USE_ACL at the end.
58422         (gl_ACL_GET_FILE): New function.
58423
58424 2006-09-26  Eric Blake  <ebb9@byu.net>
58425
58426         * lib/verror.c: Include <config.h> unconditionally.
58427
58428 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         * modules/clock-time (Maintainer): Add self.
58431         * modules/getlogin_r (Depends-on): Add extensions.
58432
58433 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58434
58435         * modules/clock-time: New module.
58436         * modules/nanosleep (Depends-on): Add clock-time.
58437         * modules/gethrxtime (Depends-on): Likewise.
58438         * modules/gettime (Depends-on): Likewise.
58439         * modules/settime (Depends-on): Likewise.
58440
58441         * modules/fts-lgpl: Depend on openat.
58442         * modules/mkancesdirs: Depend on savewd.
58443         * modules/mkdir-p: Likewise.
58444
58445 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58446
58447         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58448
58449         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58450         `gl_have_arbitrary_file_name_length_limit' to
58451         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58452         actually works between configure runs.
58453
58454 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58455             Bruno Haible  <bruno@clisp.org>
58456
58457         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58458
58459 2006-09-25  Jim Meyering  <jim@meyering.net>
58460
58461         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58462         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58463
58464 2006-09-25  Eric Blake  <ebb9@byu.net>
58465
58466         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58467         exec's in 2006-09-18 patch when shuffling fds.
58468
58469 2006-09-25  Bruno Haible  <bruno@clisp.org>
58470
58471         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58472         Reported by Jim Meyering.
58473
58474 2006-09-24  Jim Meyering  <jim@meyering.net>
58475
58476         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58477         compare a pointer against a literal "0".  That caused failures with
58478         at least HP-UX's hpcc.
58479
58480 2006-09-22  Simon Josefsson  <jas@extundo.com>
58481
58482         * modules/gc-sha1:
58483         * modules/gc-md4:
58484         * modules/gc-hmac-sha1:
58485         * modules/gc-hmac-md5:
58486         * modules/gc-des:
58487         * modules/gc-arcfour: Distribute more files.
58488
58489 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58490
58491         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58492         (gl_linked_iterator_from_to): Initialize struct completely.
58493         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58494         (gl_tree_iterator_from_to): Likewise
58495         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58496         * lib/gl_array_list.c [lint] (gl_array_iterator)
58497         (gl_array_iterator_from_to): Likewise.
58498         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58499         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58500         (gl_carray_iterator_from_to): Likewise.
58501
58502         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58503         * lib/md4.c (md4_process_block): Remove unused variable.
58504         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58505         parentheses for clarity.
58506
58507 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58508
58509         * modules/bison-i18n (Depends-on): Add gettext.
58510
58511 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58512
58513         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58514         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58515         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58516         also add missing comma that caused broken test.
58517         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58518         stdlib.h, for `abort'.
58519         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58520         variables.
58521         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58522         include unistd.h if present, for `rmdir'.
58523         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58524         variables.
58525         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58526         in the process include standard headers for prototypes.
58527         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58528         gets declared on GNU/Linux.
58529         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58530         unistd.h, for `rmdir'.
58531         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58532
58533         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58534         always true.
58535         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58536
58537         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58538
58539 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58540
58541         * gnulib-tool (func_version): Create output all at once.  This
58542         may help avoid triggering unnecessary SIGPIPEs, and at any
58543         rate it doesn't hurt.
58544
58545 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58546             Bruno Haible  <bruno@clisp.org>
58547
58548         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
58549         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
58550         * m4/signed.m4 (bh_C_SIGNED): Likewise.
58551
58552         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
58553         (gl_FUNC_VASPRINTF): Invoke it.
58554
58555 2006-09-22  Bruno Haible  <bruno@clisp.org>
58556
58557         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
58558         getloadavg.c as first argument.
58559
58560 2006-09-22  Bruno Haible  <bruno@clisp.org>
58561
58562         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
58563         at the beginning of the gl_INIT macro.
58564         * modules/getloadavg (configure.ac): Pass $gl_source_base to
58565         gl_GETLOADAVG.
58566
58567 2006-09-22  Bruno Haible  <bruno@clisp.org>
58568
58569         * gnulib-tool (func_create_megatestdir): Don't include the config-h
58570         module.
58571         Suggested by Ralf Wildenhues.
58572
58573 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58574
58575         Import this patch from libc:
58576
58577         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
58578
58579         * lib/regex_internal.c (re_string_reconstruct): Handle
58580         offset < pstr->valid_raw_len && pstr->offsets_needed case.
58581         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
58582         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
58583         re_string_context_at.
58584
58585         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
58586         now requires it.
58587         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
58588         gl_REGEX now does it for us.
58589         (gl_REGEX): Add test taken from
58590         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
58591
58592         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
58593         Check that large offsets work.  Modernize Autoconf usages.
58594         Prefer "yes" to mean a good thing rather than a bad.
58595         Don't put "#define mkstemp" in config.h, as this might interfere
58596         with standard system headers that "#define mkstemp mkstemp64".
58597
58598         * modules/mkstemp (Depends-on): Add extensions, so that
58599         mkstemp is visible on some platforms.
58600         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
58601         (Include): Change to "mkstemp.h" from <stdlib.h>.
58602         (Files): Add mkstemp.h.
58603
58604         * lib/mkstemp.h: New file, since some standard headers
58605         #define mkstemp.
58606         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
58607         Include "mkstemp.h".
58608         Make the _LIBC code resemble glibc original more,
58609         e.g., use K&R style.
58610         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
58611         (mkstemp): Remove, since mkstemp.h does this for us.
58612         * lib/stdlib--.h: Include mkstemp.h.
58613
58614         Import this patch from libc:
58615
58616         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58617
58618         * lib/tempname.c (__gen_tempname): Change attempts_min
58619         into a macro.  Use preprocessor to decide how to initialize
58620         attempts [Coverity CID 67].
58621
58622 2006-09-20  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/mkdtemp.c: Import from libc.
58625         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
58626                 * sysdeps/posix/tempname.c (__gen_tempname): Change
58627                 attempts_min into a macro.  Use preprocessor to decide how to
58628                 initialize attempts [Coverity CID 67].
58629         2001-11-27  Paul Eggert  <eggert@twinsun.com>
58630                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
58631                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
58632
58633 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58634
58635         * gnulib-tool (func_exit): New function, to allow to pass the
58636         exit status portably through the trap.  Use everywhere.
58637         (--help, --version): Signal a write error.
58638         (trap): catch SIGPIPE, for write errors.
58639         Exit at the end of the trap, with the correct exit status.
58640
58641 2006-09-19  Karl Berry  <karl@gnu.org>
58642
58643         * doc/gnulib.texi: note about the license texinfo files.
58644
58645 2006-09-19  Eric Blake  <ebb9@byu.net>
58646
58647         * gnulib-tool: Avoid space-tab.
58648
58649 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58650
58651         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
58652         that prevented coreutils 6.1 from building.  Problem reported
58653         by Petter Reinholdtsen.
58654
58655 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
58656
58657         * gnulib-tool (avoidlist): Fix typo that broke options like
58658         --avoid=lock that are used by coreutils bootstrap.
58659
58660 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
58661
58662         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
58663         more systematically.
58664
58665 2006-09-18  Jim Meyering  <jim@meyering.net>
58666
58667         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
58668
58669 2006-09-18  Bruno Haible  <bruno@clisp.org>
58670
58671         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
58672
58673 2006-09-18  Bruno Haible  <bruno@clisp.org>
58674
58675         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
58676         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
58677         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
58678         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
58679         * m4/gettext.m4: Require autoconf >= 2.52.
58680         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
58681         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
58682         of gl_cv_header_inttypes_h.
58683
58684 2006-09-18  Bruno Haible  <bruno@clisp.org>
58685
58686         * lib/javaversion.c: Include configmake.h.
58687
58688 2006-09-18  Bruno Haible  <bruno@clisp.org>
58689
58690         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
58691         avoid that the while loops be executed in a subshell.
58692
58693 2006-09-18  Bruno Haible  <bruno@clisp.org>
58694
58695         * MODULES.html.sh (func_module): Break long lines.
58696         Suggested by Bruce Korb <bkorb@gnu.org>.
58697
58698 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58699
58700         Speed up by a factor of 1.12.
58701         * gnulib-tool (nl): New variable.
58702         (func_import): Rewrite include directive extraction to only read each
58703         directive once.
58704
58705 2006-09-17  Bruno Haible  <bruno@clisp.org>
58706
58707         * modules/javaversion (Makefile.am): Remove DEFS setting.
58708         (Depends-on): Add configmake, for PKGDATADIR definition.
58709
58710 2006-09-17  Bruno Haible  <bruno@clisp.org>
58711
58712         * gnulib-tool (func_create_testdir): Rewrite all files at once.
58713
58714 2006-09-17  Bruno Haible  <bruno@clisp.org>
58715
58716         * gnulib-tool (func_append): New function, stolen from libtool.m4.
58717         (func_modules_transitive_closure, func_modules_add_dummy,
58718         func_modules_to_filelist, func_import, func_create_testdir,
58719         func_create_megatestdir, ...): Use it wherever possible.
58720         Suggested by Ralf Wildenhues.
58721
58722 2006-09-16  Karl Berry  <karl@gnu.org>
58723
58724         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
58725         to avoid sectioning errors.
58726         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
58727         [ifinfo]: blank line after @center-ed titles.
58728         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
58729         Spell FSF address consistently with others.
58730         (These changes approved by rms.)
58731
58732 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58733
58734         Speed up by a factor of 1.61.
58735         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
58736         already checked module names again.
58737
58738 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58739
58740         Speed up by a factor of 1.13.
58741         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
58742         for new_files, and the input to func_add_or_update.
58743
58744 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58745
58746         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
58747         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
58748
58749 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58750
58751         * modules/mkancesdirs (Depends-on): Add fcntl.
58752         * modules/savewd: New file.
58753         * MODULES.html.sh (File system functions): Add savewd.
58754
58755         * modules/configmake (Makefile.am): Add support for the
58756         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
58757
58758 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58759
58760         * m4/savewd.m4: New file.
58761
58762 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
58763
58764         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
58765         (dirchownmod): New arg FD.  All callers changed.
58766         Use FD rather than opening the directory ourself, as opening is
58767         now the caller's responsibility.
58768         * lib/dirchownmod.h: Likewise.
58769         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
58770         hosts that require <sys/types.h> before <sys/stat.h>.  Include
58771         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
58772         (test_dir): Remove.
58773         (mkancesdirs): Return length of prefix of FILE that has already
58774         been made, or -2 if there is a child doing the work.  Redo
58775         algorithm so that it is O(N) rather than O(N**2).  Optimize away
58776         ".", and treat ".." specially since it might stray back into
58777         already-created areas.  Use a subprocess if necessary.  New arg
58778         WD; all users changed.  MAKE_DIR function should now return 1
58779         if it creates a directory that is not readable.  Return -2 if
58780         a child process is spun off.
58781         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
58782         Adjust signature to match code.
58783         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
58784         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
58785         all users changed.
58786         * lib/savewd.c, lib/savewd.h: New files.
58787
58788 2006-09-15  Jim Meyering  <jim@meyering.net>
58789
58790         * modules/rename-dest-slash: New module.
58791         * MODULES.html.sh (posix_compat): Add it here.
58792
58793         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
58794
58795 2006-09-15  Jim Meyering  <jim@meyering.net>
58796
58797         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
58798         file.
58799
58800         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
58801
58802 2006-09-15  Jim Meyering  <jim@meyering.net>
58803
58804         * lib/rename-dest-slash.c (has_trailing_slash): Use
58805         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
58806         (rpl_rename_dest_slash): Perform the cheaper trailing slash
58807         test before testing whether SRC is a directory.
58808         Suggestions from Bruno Haible.
58809
58810         Avoid a warning about an unused variable.
58811         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
58812         into the #ifdef block where it's used.
58813
58814         * lib/rename-dest-slash.c: New file.
58815
58816 2006-09-14  Bruno Haible  <bruno@clisp.org>
58817
58818         * lib/allocsa.c: Include <config.h> unconditionally.
58819         * lib/asnprintf.c: Likewise.
58820         * lib/asprintf.c: Likewise.
58821         * lib/c-strcasecmp.c: Likewise.
58822         * lib/c-strcasestr.c: Likewise.
58823         * lib/c-strncasecmp.c: Likewise.
58824         * lib/c-strstr.c: Likewise.
58825         * lib/classpath.c: Likewise.
58826         * lib/clean-temp.c: Likewise.
58827         * lib/concatpath.c: Likewise.
58828         * lib/copy-file.c: Likewise.
58829         * lib/csharpcomp.c: Likewise.
58830         * lib/csharpexec.c: Likewise.
58831         * lib/execute.c: Likewise.
58832         * lib/fatal-signal.c: Likewise.
58833         * lib/findprog.c: Likewise.
58834         * lib/fwriteerror.c: Likewise.
58835         * lib/gl_array_list.c: Likewise.
58836         * lib/gl_array_oset.c: Likewise.
58837         * lib/gl_avltree_list.c: Likewise.
58838         * lib/gl_avltree_oset.c: Likewise.
58839         * lib/gl_avltreehash_list.c: Likewise.
58840         * lib/gl_carray_list.c: Likewise.
58841         * lib/gl_linked_list.c: Likewise.
58842         * lib/gl_linkedhash_list.c: Likewise.
58843         * lib/gl_list.c: Likewise.
58844         * lib/gl_oset.c: Likewise.
58845         * lib/gl_rbtree_list.c: Likewise.
58846         * lib/gl_rbtree_oset.c: Likewise.
58847         * lib/gl_rbtreehash_list.c: Likewise.
58848         * lib/imaxabs.c: Likewise.
58849         * lib/imaxdiv.c: Likewise.
58850         * lib/javacomp.c: Likewise.
58851         * lib/javaexec.c: Likewise.
58852         * lib/javaversion.c: Likewise.
58853         * lib/linebreak.c: Likewise.
58854         * lib/localcharset.c: Likewise.
58855         * lib/lock.c: Likewise.
58856         * lib/mbchar.c: Likewise.
58857         * lib/mbswidth.c: Likewise.
58858         * lib/mkdtemp.c: Likewise.
58859         * lib/pipe.c: Likewise.
58860         * lib/printf-args.c: Likewise.
58861         * lib/printf-parse.c: Likewise.
58862         * lib/progname.c: Likewise.
58863         * lib/progreloc.c: Likewise.
58864         * lib/readlink.c: Likewise.
58865         * lib/sh-quote.c: Likewise.
58866         * lib/stpcpy.c: Likewise.
58867         * lib/stpncpy.c: Likewise.
58868         * lib/strcasecmp.c: Likewise.
58869         * lib/strcasestr.c: Likewise.
58870         * lib/strcspn.c: Likewise.
58871         * lib/striconv.c: Likewise.
58872         * lib/strncasecmp.c: Likewise.
58873         * lib/strnlen1.c: Likewise.
58874         * lib/strstr.c: Likewise.
58875         * lib/strtok_r.c: Likewise.
58876         * lib/tls.c: Likewise.
58877         * lib/tmpdir.c: Likewise.
58878         * lib/unicodeio.c: Likewise.
58879         * lib/unsetenv.c: Likewise.
58880         * lib/vasnprintf.c: Likewise.
58881         * lib/vasprintf.c: Likewise.
58882         * lib/wait-process.c: Likewise.
58883         * lib/xallocsa.c: Likewise.
58884         * lib/xsetenv.c: Likewise.
58885         * lib/xstriconv.c: Likewise.
58886
58887 2006-09-13  Simon Josefsson  <jas@extundo.com>
58888
58889         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58890         that internally, suggested by Ralf Wildenhues
58891         <Ralf.Wildenhues@gmx.de>.
58892
58893 2006-09-13  Simon Josefsson  <jas@extundo.com>
58894
58895         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58896         @LIBOBJS@.
58897         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58898
58899 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58900
58901         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58902         longer worry about uses that don't define HAVE_CONFIG_H.
58903         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58904         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58905         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58906         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58907         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58908         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58909         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58910         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58911         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58912         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58913         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58914         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58915         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58916         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58917         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58918         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58919         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58920         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58921         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58922         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58923         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58924         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58925         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58926         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58927         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58928         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58929         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58930         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58931         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58932         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58933         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58934         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58935         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58936         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58937         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58938         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58939         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58940         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58941         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58942         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58943         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58944         Likewise.
58945
58946 2006-09-13  Eric Blake  <ebb9@byu.net>
58947
58948         * lib/getopt.c: Fix typo in last commit.
58949
58950 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58951
58952         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58953         dgettext.
58954
58955 2006-09-12  Jim Meyering  <jim@meyering.net>
58956
58957         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58958         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58959         Reported by Nelson H. F. Beebe.
58960
58961 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58962
58963         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58964         program_invocation_name and program_invocation_short_name are
58965         initialized.
58966         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58967         and program_invocation_short_name to argp.h, so they are visible
58968         to user programs.
58969         * lib/argp.h: Likewise
58970
58971 2006-09-10  Bruno Haible  <bruno@clisp.org>
58972
58973         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58974         m4/inttypes_h.m4, m4/uintmax_t.m4.
58975
58976 2006-09-10  Bruno Haible  <bruno@clisp.org>
58977
58978         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58979         gl_AC_TYPE_UINTMAX_T.
58980
58981 2006-09-10  Bruno Haible  <bruno@clisp.org>
58982
58983         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58984
58985 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58986
58987         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58988         convention.  Text proposed by Bruno Haible.
58989         (struct argp_option): Document the use of N_() wrappers.
58990
58991         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58992         '\v', and translate the two parts separately, instead of feeding
58993         the whole string to gettext.  This allows to exclude
58994         '\v' from the strings visible to the translator by writing doc
58995         strings as N_("..") "\v" N_("..").
58996
58997 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58998
58999         * config/srclist.txt: Undo latest change; the bug was fixed.
59000
59001 2006-09-09  Bruno Haible  <bruno@clisp.org>
59002
59003         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59004         assignments if building a library without libtool.
59005         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59006         in func_emit_lib_Makefile_am.
59007         (func_import): When building a static library libfoo.a, arrange to
59008         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59009         (func_create_testdir): Likewise.
59010         * modules/gc (configure.ac, Makefile.am): If building statically,
59011         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59012         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59013         * modules/striconv (configure.ac, Makefile.am): Likewise.
59014         Based on a suggestion by Ralf Wildenhues.
59015
59016 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59017
59018         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59019         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59020         Also:
59021
59022         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59023         Add year_2050_test to catch glibc bug 2821
59024         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59025
59026         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59027         Prefer #ifdef to #if.
59028
59029         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59030         Return from 'main' instead of calling 'exit'.
59031
59032 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59033
59034         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59035         returned the maximum time_t value rather than (time_t) -1.
59036         Problem originally reported by William Bardwell
59037         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59038
59039         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59040         Moved to here ...
59041         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59042         ... from here.
59043
59044 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59045
59046         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59047         2821 is fixed.
59048
59049 2006-09-08  Jim Meyering  <jim@meyering.net>
59050
59051         Don't make generated files read-only.  That would bother too many
59052         people.  However, do retain the ability to work when targets are
59053         read-only: remove the destination and temporary files before writing
59054         them (when generated via sed or echo), or by using the -f option for
59055         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59056         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59057         * modules/byteswap, modules/configmake, modules/fcntl:
59058         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59059         * modules/localcharset, modules/netinet_in, modules/poll:
59060         * modules/stdbool, modules/stdint, modules/sys_select:
59061         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59062
59063 2006-09-08  Jim Meyering  <jim@meyering.net>
59064
59065         Avoid new build failure on FreeBSD 6.0.
59066         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59067         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59068         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59069
59070 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59071
59072         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59073
59074 2006-09-07  Jim Meyering  <jim@meyering.net>
59075
59076         Fix global typo in last change: use chmod u-w, not chmod u-x.
59077         Spotted by Paul Eggert and Bruce Korb.
59078         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59079         * modules/byteswap, modules/configmake, modules/fcntl:
59080         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59081         * modules/localcharset, modules/netinet_in, modules/poll:
59082         * modules/stdbool, modules/stdint, modules/sys_select:
59083         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59084
59085 2006-09-06  Jim Meyering  <jim@meyering.net>
59086
59087         Make generated files be read-only.
59088         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59089         Ensure that each generated file is now read-only.
59090         * modules/argz: Likewise.
59091         * modules/arpa_inet: Likewise.
59092         * modules/byteswap: Likewise.
59093         * modules/configmake: Likewise.
59094         * modules/fcntl: Likewise.
59095         * modules/fnmatch: Likewise.
59096         * modules/getopt: Likewise.
59097         * modules/glob: Likewise.
59098         * modules/inttypes: Likewise.
59099         * modules/netinet_in: Likewise.
59100         * modules/poll: Likewise.
59101         * modules/stdbool: Likewise.
59102         * modules/stdint: Likewise.
59103         * modules/sys_select: Likewise.
59104         * modules/sys_socket: Likewise.
59105         * modules/sys_stat: Likewise.
59106         * modules/sysexits: Likewise.
59107         * modules/localcharset: Same as above, but continue using temporary
59108         file named "t-$@" (why different?) rather than the "$@-t" used
59109         everywhere else.
59110
59111         * modules/sysexits (Makefile.am): Replace literal occurrences
59112         of "sysexit.h" more readable, and more consistent, "$@".
59113
59114 2006-09-06  Bruno Haible  <bruno@clisp.org>
59115
59116         * modules/striconv: New file.
59117         * modules/xstriconv: New file.
59118         * MODULES.html.sh (Internationalization functions): Add striconv,
59119         xstriconv.
59120
59121 2006-09-06  Bruno Haible  <bruno@clisp.org>
59122
59123         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59124         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59125         not using libtool correctly.
59126
59127 2006-09-06  Bruno Haible  <bruno@clisp.org>
59128
59129         * lib/striconv.h: New file.
59130         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59131         iconvstring.c.
59132         * lib/xstriconv.h: New file.
59133         * lib/xstriconv.c: New file.
59134
59135 2006-09-06  Bruno Haible  <bruno@clisp.org>
59136
59137         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59138         lib_..._LDFLAGS.
59139
59140 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59141
59142         * lib/argz_.h: Sync from Libtool.
59143
59144         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59145                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59146
59147         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59148
59149 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59150
59151         * modules/trim: New file.
59152
59153 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59154
59155         * lib/trim.h: New file.
59156         * lib/trim.c: New file.
59157
59158 2006-09-05  Bruno Haible  <bruno@clisp.org>
59159
59160         * MODULES.html.sh (String handling): Add trim.
59161
59162 2006-09-04  Karl Berry  <karl@gnu.org>
59163
59164         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59165         until next release.
59166
59167 2006-09-03  Bruno Haible  <bruno@clisp.org>
59168
59169         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59170         correctly.
59171
59172 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59173
59174         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59175         not gl_GETLOADAVG.  Omit unneeded semicolons.
59176         Problems reported by Ralf Wildenhues in
59177         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59178         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59179         at the end, which is the usual gnulib style.
59180
59181         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59182         of doing all the work ourselves.
59183         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59184         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59185
59186 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59187
59188         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59189         Problem reported by Ralf Wildenhues in
59190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59191
59192         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59193         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59194
59195 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59196
59197         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59198         yesterday's patch by changing test -n to test -z.
59199
59200 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59201
59202         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59203         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59204         the former is now obsolescent.
59205
59206         * modules/chdir-long (Depends-on): Add fcntl.
59207
59208 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59209
59210         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59211         obsolescent, and programs should use gnulib instead.
59212         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59213         but with prefixes changed.
59214
59215 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59218         or stdbool.h, because they might not exist while configuring.
59219
59220         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59221         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59222         does that for us.
59223         (O_DIRECTORY): Remove.
59224
59225 2006-08-31  Eric Blake  <ebb9@byu.net>
59226
59227         * gnulib-tool: Don't let emacs change spaces to TAB.
59228
59229 2006-08-31  Bruno Haible  <bruno@clisp.org>
59230
59231         * gnulib-tool: When calling func_import more than once, do it in a
59232         subshell.
59233         Reported by Eric Blake <ebb9@byu.net>.
59234
59235 2006-08-31  Bruno Haible  <bruno@clisp.org>
59236
59237         * gnulib-tool (nl): Remove variable.
59238         (sed_transform_lib_file): Use more robust test for config-h module.
59239         (func_import): Fix typo in 2006-08-25 patch.
59240
59241 2006-08-31  Bruno Haible  <bruno@clisp.org>
59242
59243         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59244         specified, augment Makefile.am variables instead of assigning them.
59245
59246 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59247
59248         Work around a bug in both the Linux and SunOS 64-bit kernels:
59249         nanosleep mishandles sleeps for longer than 2**31 seconds.
59250         Problem reported by Frank v Waveren in
59251         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59253         Check for nanosleep bug.
59254         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59255
59256 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59257
59258         Work around a bug in both the Linux and SunOS 64-bit kernels:
59259         nanosleep mishandles sleeps for longer than 2**31 seconds.
59260         Problem reported by Frank v Waveren in
59261         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59262         * lib/nanosleep.c (BILLION): New constant.
59263         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59264         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59265         implementation.
59266
59267 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59268
59269         * modules/nanosleep (Depends-on): Add gettime.
59270
59271 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59272         and Simon Josefsson  <jas@extundo.com>
59273         and Oskar Liljeblad  <oskar@osk.mine.nu>
59274
59275         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59276         * gnulib-tool (func_import): New license type 'unmodifiable license
59277         text'.
59278         * modules/fdl: Use it.  Longer description.
59279         * module/gpl, module/lgpl: New files.
59280
59281 2006-08-30  Jim Meyering  <jim@meyering.net>
59282
59283         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59284         shadowing the parameter.
59285
59286 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59287
59288         Sync from Libtool:
59289
59290         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59291
59292         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59293         sharing with gnulib.  Report by Eric Blake.
59294
59295 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59296
59297         * modules/isapipe: New file.
59298         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59299
59300 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59301
59302         * modules/configmake (Makefile.am): Add a comment, and omit
59303         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59304         by Bruno Haible.
59305
59306 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         * m4/isapipe.m4: New file.
59309
59310 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59311
59312         * lib/isapipe.c, lib/isapipe.h: New files.
59313
59314 2006-08-29  Jim Meyering  <jim@meyering.net>
59315
59316         * modules/configmake (Makefile.am): Make configmake.h depend on
59317         Makefile.  Otherwise, a stale configmake.h could hang around.
59318
59319 2006-08-29  Eric Blake  <ebb9@byu.net>
59320
59321         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59322         resolution of upstream bug 3044.
59323
59324 2006-08-29  Bruno Haible  <bruno@clisp.org>
59325
59326         * modules/localcharset (Depends-on): Add configmake.
59327         (Makefile.am): Remove setting of LIBDIR through DEFS.
59328
59329 2006-08-29  Bruno Haible  <bruno@clisp.org>
59330
59331         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59332         defined.
59333
59334 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59335
59336         * modules/fcntl: New file.
59337         * modules/chdir-safer (Depends-on): Add fcntl.
59338         * modules/fts: Likewise.
59339         * modules/mkdir-p: Likewise.
59340
59341         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59342         This undoes the most recent change, since we're now addressing the
59343         problem in a different way.
59344
59345         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59346         into output, since the output might be called Makefile.am even
59347         if $makefile_name is something different.
59348         (func_import): Use $makefile_am rather than
59349         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59350         empty.
59351
59352         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59353
59354 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59355
59356         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59357         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59358         recent change to stdint.m4, since we're now addressing the problem in a
59359         different way.
59360
59361 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         * m4/fcntl_h.m4: New file.
59364
59365 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59366
59367         * lib/fcntl_.h: New file.
59368         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59369         the fcntl module.
59370         * lib/dirchownmod.c: Likewise.
59371         * lib/fts.c: Likewise.
59372
59373         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59374         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59375         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59376         just before including <inttypes.h>, to avoid circular inclusion.
59377
59378 2006-08-28  Jim Meyering  <jim@meyering.net>
59379
59380         * doc/visibility.texi: Actually read and correct the grammar of the
59381         sentence affected by yesterday's change.
59382
59383 2006-08-28  Eric Blake  <ebb9@byu.net>
59384
59385         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59386         needs wrapper.
59387
59388 2006-08-28  Eric Blake  <ebb9@byu.net>
59389
59390         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59391
59392 2006-08-28  Eric Blake  <ebb9@byu.net>
59393
59394         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59395
59396 2006-08-28  Bruno Haible  <bruno@clisp.org>
59397
59398         * modules/c-strstr: New file, from GNU gettext.
59399         * MODULES.html.sh (String handling): Add c-strstr.
59400
59401 2006-08-28  Bruno Haible  <bruno@clisp.org>
59402
59403         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59404         macros.
59405         Reported by Eric Blake.
59406
59407 2006-08-28  Bruno Haible  <bruno@clisp.org>
59408
59409         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59410         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59411         * lib/vasprintf.c: Include errno.h, limits.h.
59412         (EOVERFLOW): New fallback definition.
59413         (vasprintf): Test here whether the string length is > INT_MAX.
59414         * lib/vsnprintf.c: Include errno.h, limits.h.
59415         (EOVERFLOW): New fallback definition.
59416         (vsnprintf): Fix bug when generated string was too long for the buffer.
59417         Test here whether the string length is > INT_MAX.
59418
59419 2006-08-28  Bruno Haible  <bruno@clisp.org>
59420
59421         * lib/inttypes_.h (SCNX*): Remove definitions.
59422         Reported by Eric Blake.
59423
59424 2006-08-28  Bruno Haible  <bruno@clisp.org>
59425
59426         * lib/c-strstr.h: New file, from GNU gettext.
59427         * lib/c-strstr.c: New file, from GNU gettext.
59428
59429 2006-08-28  Bruno Haible  <bruno@clisp.org>
59430
59431         * gnulib-tool: Reorder some statements.
59432
59433 2006-08-28  Bruno Haible  <bruno@clisp.org>
59434
59435         * gnulib-tool: New option --makefile-name.
59436         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59437         $makefile_name.
59438         (func_import): Write $makefile_name to the cache file, and read it from
59439         there unless explicitly specified. Use $makefile_name as file name
59440         instead of Makefile.am. Adjust the recommendations accordingly.
59441
59442 2006-08-28  Bruno Haible  <bruno@clisp.org>
59443
59444         * gnulib-tool (func_verify_module): Check against misapplying patch.
59445
59446 2006-08-28  Bruno Haible  <bruno@clisp.org>
59447
59448         * gnulib-tool (func_relativize, func_relconcat): New functions.
59449         Give an error if --local-dir is given with --update.
59450         Remove trailing slashes from $local_gnulib_dir.
59451         (func_import): Store the relativized $local_gnulib_dir in
59452         gnulib-cache.m4, and read it from there if not specified explicitly.
59453
59454 2006-08-28  Bruno Haible  <bruno@clisp.org>
59455
59456         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59457         is the current directory. Respect also $local_gnulib_dir.
59458
59459 2006-08-28  Bruno Haible  <bruno@clisp.org>
59460             Simon Josefsson  <jas@extundo.com>
59461
59462         BeOS portability.
59463         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59464
59465 2006-08-27  Jim Meyering  <jim@meyering.net>
59466
59467         * doc/visibility.texi: Remove duplicate word: "pointer".
59468
59469 2006-08-26  Bruno Haible  <bruno@clisp.org>
59470
59471         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59472         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59473         (Makefile.am): Create inttypes.h from inttypes_.h.
59474         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59475
59476         * modules/imaxabs: New file.
59477
59478         * modules/imaxdiv: New file.
59479
59480 2006-08-26  Bruno Haible  <bruno@clisp.org>
59481
59482         * m4/inttypes.m4: New file.
59483         * m4/_inttypes_h.m4: Remove file.
59484         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59485         PRI_MACROS_BROKEN.
59486         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59487
59488         * m4/imaxabs.m4: New file.
59489
59490         * m4/imaxdiv.m4: New file.
59491
59492 2006-08-26  Bruno Haible  <bruno@clisp.org>
59493
59494         * lib/inttypes_.h: New file.
59495         * lib/inttypes.h: Remove file.
59496         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59497
59498         * lib/imaxabs.c: New file.
59499
59500         * lib/imaxdiv.c: New file.
59501
59502 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         New config-h module, so that "make" output needn't be cluttered
59505         by -DHAVE_CONFIG_H.
59506         * MODULES.html.sh (Support for building libraries and executables):
59507         Add config-h.
59508         * modules/config-h: New file.
59509         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59510         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59511         the config-h module is used.
59512
59513         New configmake module, so that "make" output needn't be cluttered
59514         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59515         * MODULES.html.sh (Support for building libraries and executables):
59516         Add configmake.
59517         * modules/configmake: New file.
59518
59519 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59520
59521         * m4/config-h.m4: New file.
59522
59523 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59524
59525         * config/srclist.txt: Add elisp-comp.
59526
59527 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59528
59529         * MODULES.html.sh (Support for building libraries and executables):
59530         Add elisp-comp.
59531         * build-aux/elisp-comp: New file.
59532         * modules/elisp-comp: New file.
59533
59534 2006-08-24  Bruno Haible  <bruno@clisp.org>
59535
59536         * gnulib-tool (func_create_testdir): Use non-default values of
59537         sourcebase and m4base.
59538
59539 2006-08-24  Bruno Haible  <bruno@clisp.org>
59540
59541         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
59542         HTML structure.
59543
59544 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
59545
59546         * modules/openat (Depends-on): Add lchown.
59547
59548 2006-08-23  Bruno Haible  <bruno@clisp.org>
59549
59550         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
59551         of gl_LOCK_EARLY instead of gl_LOCK.
59552
59553 2006-08-23  Bruno Haible  <bruno@clisp.org>
59554
59555         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
59556         on OSF/1 to no.
59557         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
59558
59559 2006-08-23  Bruno Haible  <bruno@clisp.org>
59560
59561         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
59562         as unusable.
59563
59564         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
59565         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
59566         (gl_LOCK): New macro.
59567
59568 2006-08-22  Simon Josefsson  <jas@extundo.com>
59569
59570         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
59571         to md5 module.
59572
59573 2006-08-22  Simon Josefsson  <jas@extundo.com>
59574
59575         * MODULES.html.sh: Add "Support for maintaining and release
59576         projects".
59577
59578         * build-aux/gnupload: New file, from coreutils.
59579
59580 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59581
59582         Avoid the need for AC_LIBSOURCES in m4 macros.
59583         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
59584         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
59585         * modules/check-version (EXTRA_DIST): Add check-version.h.
59586         * modules/crc (EXTRA_DIST): Add crc.h.
59587         * modules/des (EXTRA_DIST): Add des.h.
59588         * modules/gc (EXTRA_DIST): Add gc.h.
59589         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
59590         * modules/getline (EXTRA_DIST): Add getline.h.
59591         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
59592         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
59593         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
59594         * modules/md2 (EXTRA_DIST): Add md2.h.
59595         * modules/md4 (EXTRA_DIST): Add md4.h.
59596         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
59597         * modules/read-file (EXTRA_DIST): Add read-file.h.
59598         * modules/readline (EXTRA_DIST): Add readline.h.
59599         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
59600         rijndael-api-fst.h.
59601
59602 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59603
59604         * m4/rijndael.m4 (gl_ARCFOUR):
59605         * m4/arctwo.m4 (gl_ARCTWO):
59606         * m4/check-version.m4 (gl_CHECK_VERSION):
59607         * m4/crc.m4 (gl_CRC):
59608         * m4/des.m4 (gl_DES):
59609         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
59610         * m4/gc.m4 (gl_GC):
59611         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
59612         * m4/getline.m4 (gl_FUNC_GETLINE):
59613         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
59614         * m4/hmac-md5.m4 (gl_HMAC_MD5):
59615         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
59616         * m4/md2.m4 (gl_MD2):
59617         * m4/md4.m4 (gl_MD4):
59618         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
59619         * m4/read-file.m4 (gl_FUNC_READ_FILE):
59620         * m4/readline.m4 (gl_FUNC_READLINE):
59621         * m4/rijndael.m4 (gl_RIJNDAEL):
59622         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59623         to get the necessary .h files and whatnot.
59624
59625 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
59628         gnulib rather than the other way around.
59629         * config/srclistvars.sh (COREUTILS): Remove.
59630
59631 2006-08-22  Jim Meyering  <jim@meyering.net>
59632
59633         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
59634
59635         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
59636
59637 2006-08-22  Eric Blake  <ebb9@byu.net>
59638
59639         * modules/regexprops-generic: New file.
59640         * MODULES.html.sh (Support for building documentation): List it.
59641
59642 2006-08-22  Eric Blake  <ebb9@byu.net>
59643
59644         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
59645         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
59646         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
59647         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
59648
59649 2006-08-22  Bruno Haible  <bruno@clisp.org>
59650
59651         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
59652         and lib_LTLIBRARIES like the other lib_* variables.
59653
59654 2006-08-22  Bruno Haible  <bruno@clisp.org>
59655
59656         * build-aux/x-to-1.in: New file, from GNU gettext.
59657
59658 2006-08-22  Bruno Haible  <bruno@clisp.org>
59659
59660         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
59661         <utmpx.h> exists.
59662
59663 2006-08-22  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
59666         <utmpx.h> exists.
59667
59668 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59669
59670         BeOS portability.
59671         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
59672         exist.
59673         Problem reported by Bruno Haible.
59674
59675 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59676
59677         Avoid the need for AC_LIBSOURCES in m4 macros.
59678         * modules/acl (EXTRA_DIST): Add acl.h.
59679         * modules/argmatch (Files): Add m4/argmatch.m4.
59680         (configure.ac): Add gl_ARGMATCH.
59681         (EXTRA_DIST): Renamed from lib_SOURCES, for
59682         consistency with the other modules.  Remove argmatch.c.
59683         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
59684         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
59685         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
59686         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
59687         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
59688         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
59689         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
59690         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
59691         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
59692         * modules/closeout (EXTRA_DIST): Add closeout.h.
59693         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
59694         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
59695         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
59696         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
59697         dirname.h; remove basename.c and stripslash.c.
59698         * modules/exclude (EXTRA_DIST): Add exclude.h.
59699         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
59700         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
59701         * modules/file-type (EXTRA_DIST): Add file-type.h.
59702         * modules/filemode (EXTRA_DIST): Add filemode.h.
59703         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
59704         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59705         * modules/fpending (EXTRA_DIST): Add __fpending.h.
59706         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
59707         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
59708         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
59709         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
59710         * modules/getdate (EXTRA_DIST): Add getdate.c.
59711         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
59712         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
59713         * modules/getpass (EXTRA_DIST): Add getpass.h.
59714         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
59715         * modules/group-member (EXTRA_DIST): Add group-member.h.
59716         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
59717         * modules/hash (EXTRA_DIST): Add hash.h.
59718         * modules/human (EXTRA_DIST): Add human.h.
59719         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
59720         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
59721         * modules/lchown (EXTRA_DIST): Add lchown.h.
59722         * modules/long-options (EXTRA_DIST): Add long-options.h.
59723         * modules/lstat (EXTRA_DIST): Add lstat.h.
59724         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
59725         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
59726         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
59727         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
59728         * modules/memxor (EXTRA_DIST): Add memxor.h.
59729         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
59730         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
59731         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
59732         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
59733         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
59734         * modules/physmem (EXTRA_DIST): Add physmem.h.
59735         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
59736         * modules/posixver (EXTRA_DIST): Add posixver.h.
59737         * modules/quote (EXTRA_DIST): Add quote.h.
59738         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
59739         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
59740         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
59741         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
59742         regex_internal.h regexec.c.
59743         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
59744         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
59745         * modules/same (EXTRA_DIST): Add same.h.
59746         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
59747         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
59748         * modules/savedir (EXTRA_DIST): Add savedir.h.
59749         * modules/sha1 (EXTRA_DIST): Add sha1.h.
59750         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
59751         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
59752         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
59753         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
59754         * modules/strdup (EXTRA_DIST): Add strdup.h.
59755         * modules/strftime (EXTRA_DIST): Add strftime.h.
59756         * modules/strndup (EXTRA_DIST): Add strndup.h.
59757         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
59758         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
59759         * modules/time_r (EXTRA_DIST): Add time_r.h.
59760         * modules/timespec (EXTRA_DIST): Add timespec.h.
59761         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
59762         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
59763         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
59764         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
59765         * modules/userspec (EXTRA_DIST): Add userspec.h.
59766         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
59767         * modules/utimens (EXTRA_DIST): Add utimens.h.
59768         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
59769         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
59770         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
59771         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
59772         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
59773         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
59774         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
59775         * modules/yesno (EXTRA_DIST): Add yesno.h.
59776
59777 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
59778
59779         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
59780
59781         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
59782         * m4/dev-ino.m4, same-inode.m4: Remove.
59783
59784         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
59785         * m4/acl.m4 (AC_FUNC_ACL):
59786         * m4/backupfile.m4 (gl_BACKUPFILE):
59787         * m4/c-strtod.m4 (gl_C99_STRTOLD):
59788         * m4/canon-host.m4 (gl_CANON_HOST):
59789         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
59790         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
59791         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
59792         * m4/cloexec.m4 (gl_CLOEXEC):
59793         * m4/close-stream.m4 (gl_CLOSE_STREAM):
59794         * m4/closeout.m4 (gl_CLOSEOUT):
59795         * m4/dirfd.m4 (gl_FUNC_DIRFD):
59796         * m4/dirname.m4 (gl_DIRNAME):
59797         * m4/exclude.m4 (gl_EXCLUDE):
59798         * m4/exitfail.m4 (gl_EXITFAIL):
59799         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
59800         * m4/file-type.m4 (gl_FILE_TYPE):
59801         * m4/filemode.m4 (gl_FILEMODE):
59802         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
59803         * m4/fpending.m4 (gl_FUNC_FPENDING):
59804         * m4/fprintftime.m4 (gl_FPRINTFTIME):
59805         * m4/fts.m4 (gl_FUNC_FTS):
59806         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
59807         * m4/getdate.m4 (gl_GETDATE):
59808         * m4/gethrxtime.m4 (gl_GETHRXTIME):
59809         * m4/getpagesize.m4 (gl_GETPAGESIZE):
59810         * m4/getpass.m4 (gl_FUNC_GETPASS):
59811         * m4/gettime.m4 (gl_GETTIME):
59812         * m4/getugroups.m4 (gl_GETUGROUPS):
59813         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59814         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59815         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59816         * m4/hash.m4 (gl_HASH):
59817         * m4/idcache.m4 (gl_IDCACHE):
59818         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59819         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59820         * m4/long-options.m4 (gl_LONG_OPTIONS):
59821         * m4/lstat.m4 (gl_FUNC_LSTAT):
59822         * m4/md5.m4 (gl_MD5):
59823         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59824         * m4/memcoll.m4 (gl_MEMCOLL):
59825         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59826         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59827         * m4/memxor.m4 (gl_MEMXOR):
59828         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59829         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59830         * m4/modechange.m4 (gl_MODECHANGE):
59831         * m4/mountlist.m4 (gl_MOUNTLIST):
59832         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59833         * m4/openat.m4 (gl_FUNC_OPENAT):
59834         * m4/pathmax.m4 (gl_PATHMAX):
59835         * m4/physmem.m4 (gl_PHYSMEM):
59836         * m4/posixtm.m4 (gl_POSIXTM):
59837         * m4/posixver.m4 (gl_POSIXVER):
59838         * m4/quote.m4 (gl_QUOTE):
59839         * m4/quotearg.m4 (gl_QUOTEARG):
59840         * m4/readtokens.m4 (gl_READTOKENS):
59841         * m4/readutmp.m4 (gl_READUTMP):
59842         * m4/regex.m4 (gl_REGEX):
59843         * m4/safe-read.m4 (gl_SAFE_READ):
59844         * m4/safe-write.m4 (gl_SAFE_WRITE):
59845         * m4/same.m4 (gl_SAME):
59846         * m4/save-cwd.m4 (gl_SAVE_CWD):
59847         * m4/savedir.m4 (gl_SAVEDIR):
59848         * m4/settime.m4 (gl_SETTIME):
59849         * m4/sha1.m4 (gl_SHA1):
59850         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59851         * m4/stat-macros.m4 (gl_STAT_MACROS):
59852         * m4/stat-time.m4 (gl_STAT_TIME):
59853         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59854         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59855         * m4/strdup.m4 (gl_FUNC_STRDUP):
59856         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59857         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59858         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59859         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59860         * m4/time_r.m4 (gl_TIME_R):
59861         * m4/timespec.m4 (gl_TIMESPEC):
59862         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59863         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59864         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59865         * m4/userspec.m4 (gl_USERSPEC):
59866         * m4/utimecmp.m4 (gl_UTIMECMP):
59867         * m4/utimens.m4 (gl_UTIMENS):
59868         * m4/xalloc.m4 (gl_XALLOC):
59869         * m4/xgetcwd.m4 (gl_XGETCWD):
59870         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59871         * m4/xreadlink.m4 (gl_XREADLINK):
59872         * m4/xstrtod.m4 (gl_XSTRTOD):
59873         * m4/yesno.m4 (gl_YESNO):
59874         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59875         to get the necessary .h files and whatnot.
59876
59877 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59878             Bruno Haible  <bruno@clisp.org>
59879
59880         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59881         /bin/sh understanding of '!' conditional negation.
59882
59883 2006-08-21  Jim Meyering  <jim@meyering.net>
59884
59885         * modules/openat (Depends-on): Really alphabetize.
59886
59887         * modules/acl (Depends-on): Add error and quote.
59888
59889         * check-module (find_included_lib_files): Add at-func.c to the
59890         ok-to-include-more-than-once white list.
59891
59892         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59893
59894 2006-08-21  Bruno Haible  <bruno@clisp.org>
59895
59896         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59897         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59898         Reported by Martin Lambers <marlam@marlam.de>.
59899
59900 2006-08-21  Bruno Haible  <bruno@clisp.org>
59901
59902         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59903         specify an installation location, don't emit a noinst_LIBRARIES or
59904         noinst_LTLIBRARIES assignment.
59905
59906 2006-08-21  Bruno Haible  <bruno@clisp.org>
59907
59908         BeOS portability.
59909         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59910         BeOS has mbrtowc() but no <wctype.h>.
59911
59912 2006-08-21  Bruno Haible  <bruno@clisp.org>
59913
59914         BeOS portability.
59915         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59916         exist.
59917
59918 2006-08-21  Bruno Haible  <bruno@clisp.org>
59919
59920         BeOS portability.
59921         * lib/mbchar.h: Include <wctype.h> only if it exists.
59922
59923 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59924
59925         Remove files that are no longer needed by their respective modules.
59926         * m4/obstack.m4: Remove.
59927         * m4/strerror_r.m4: Remove.
59928         * m4/uint32_t.m4: Remove.
59929         * m4/uintptr_t.m4: Remove.
59930         * m4/ullong_max.m4: Remove.
59931         * m4/xstrtoimax.m4: Remove.
59932         * m4/xstrtoumax.m4: Remove.
59933
59934         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59935         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59936         dependencies now capture this.
59937
59938         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59939         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59940         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59941         * m4/human.m4 (gl_HUMAN): Likewise.
59942         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59943         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59944
59945         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59946
59947         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59948         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59949         stdint.
59950         * m4/human.m4 (gl_HUMAN): Likewise.
59951         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59952         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59953         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59954         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59955         * m4/xstrtol (gl_XSTRTOL): Likewise.
59956
59957         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59958         AC_TYPE_LONG_LONG_INT.
59959         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59960         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59961         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59962         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59963
59964         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59965         on stdbool.
59966
59967         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59968         (gl_PREREQ_XSTRTOUL): Remove.
59969
59970         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59971
59972         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59973         mode.
59974
59975 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59976
59977         Add and change modules to make it easier for coreutils to use
59978         gnulib-tool.
59979         * modules/backupfile (Files): Remove m4/d-ino.m4.
59980         (Depends-on): Add d-ino.
59981         * modules/cycle-check (Depends-on): Add stdint.
59982         (lib_SOURCES): Add cycle-check.h.
59983         * modules/d-ino: New module.
59984         * modules/d-type: New module.
59985         * modules/error (Files): Remove m4/strerror_r.m4.
59986         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59987         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59988         m4/inttypes_h.m4, m4/uintmax_t.m4.
59989         (Depends-on): Add stdint.
59990         (lib_SOURCES): Add fsusage.h.
59991         * modules/getcwd (Files): Remove d-ino.m4.
59992         (Depends-on): Add d-ino.
59993         * modules/getndelim2 (Depends-on): Add stdint.
59994         * modules/glob (Files): Remove m4/d-type.m4.
59995         (Depends-on): Add d-type.
59996         * modules/host-os: New module.
59997         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59998         m4/inttypes_h.m4, m4/uintmax_t.m4.
59999         * Depends-on: Add stdint.
60000         (lib_SOURCES): Add human.h.
60001         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60002         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60003         m4/uintmax_t.m4, m4/ulonglong.m4.
60004         (Depends-on): Add stdint.
60005         (EXTRA_DIST): Add inttostr.h.
60006         * modules/lchmod: New module.
60007         * modules/link-follow: New module.
60008         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60009         (Depends-on): Add lchmod.
60010         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60011         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60012         (Depends-on): Add stdint.
60013         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60014         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60015         (Depends-on): Add stdint.
60016         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60017         * modules/perl: New module.
60018         * modules/regex (Depends-on): Add stdint.
60019         * modules/rmdir-errno: New module.
60020         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60021         m4/intmax_t.m4.
60022         (Depends-on): Add stdint.
60023         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60024         m4/uintmax_t.m4.
60025         (Depends-on): Add stdint.
60026         * modules/unlink-busy: New module.
60027         * modules/utimecmp (Depends-on): Add stdint.
60028         * modules/uptime: New module.
60029         * modules/winsz-ioctl: New module.
60030         * modules/winsz-termios: New module.
60031         * modules/xnanosleep (Depends-on): Add nanosleep.
60032         * modules/ullong_max: Remove.
60033         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60034         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60035         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60036         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60037         (Depends-on): Add inttypes.
60038         (lib_SOURCES): Add xstrtol.h.
60039         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60040         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60041         * MODULES.html.sh: Move 'assert' into the assert section.
60042         Move 'dummy' into the linking section.
60043         Remove ullong_max.
60044         Add section for compatibility checks for POSIX:2001 functions,
60045         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60046         winsz-ioctl, and winsz-termios into it.
60047         Add lchmod.
60048         Add top-level Misc section and put host-os, perl, and uptime
60049         into it.
60050
60051 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60052
60053         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60054         now assume the stdint module.  Do not include inttypes.h.
60055         * lib/fsusage.h: Likewise.
60056         * lib/getndelim2.c: Likewise.
60057         * lib/human.h: Likewise.
60058         * lib/inttostr.h: Likewise.
60059         * lib/obstack.c: Likewise.
60060         * lib/regex_internal.h: Likewise.
60061         * lib/tempname.c: Likewise.
60062         * lib/utimecmp.c: Likewise.
60063         * lib/xstrtol.h: Likewise.
60064
60065         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60066
60067         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60068         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60069         * lib/xtime.h: Likewise.
60070
60071 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60072
60073         * modules/openat (Files): Add lib/fchmodat.c.
60074         Fixes problem reported by Jay Youngman.
60075
60076 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60077
60078         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60079         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60080
60081 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60082             Bruno Haible  <bruno@clisp.org>
60083
60084         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60085         and is a script that invokes bison. Tighten the code. Add comments.
60086
60087 2006-08-18  Jim Meyering  <jim@meyering.net>
60088
60089         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60090         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60091         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60092         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60093
60094 2006-08-18  Bruno Haible  <bruno@clisp.org>
60095
60096         * modules/bison-i18n: New file.
60097         * MODULES.html.sh (Internationalization functions): Add it.
60098
60099 2006-08-18  Bruno Haible  <bruno@clisp.org>
60100
60101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60102         sys/statvfs.h. When getmntinfo was found, check its declaration and
60103         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60104
60105 2006-08-18  Bruno Haible  <bruno@clisp.org>
60106
60107         * m4/bison-i18n.m4: New file, from bison.
60108
60109 2006-08-18  Bruno Haible  <bruno@clisp.org>
60110
60111         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60112         (ME_DUMMY): Treat "kernfs" as a dummy.
60113         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60114
60115 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         Update from coreutils.
60118
60119         2006-08-15  Jim Meyering  <jim@meyering.net>
60120
60121         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60122
60123         2006-01-17  Jim Meyering  <jim@meyering.net>
60124
60125         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60126
60127         2006-01-11  Jim Meyering  <jim@meyering.net>
60128
60129         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60130         Check for the lchmod function.
60131
60132 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60133
60134         Update from coreutils.
60135
60136         * lib/__fpending.h: Add copyright notice.
60137         * lib/fprintftime.h: Likewise.
60138         * lib/savedir.c: Use (C) in copyright notice.
60139         * lib/savedir.h: Likewise.
60140
60141         2006-08-15  Jim Meyering  <jim@meyering.net>
60142
60143         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60144         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60145         in support of the EXPECTED_ERRNO macro.
60146         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60147         definitions.  Instead, define the appropriate symbols and include
60148         "at-func.c".
60149         * lib/mkdirat.c (mkdirat): Likewise.
60150         * lib/fchmodat.c (fchmodat): Likewise.
60151         (ENOSYS): Remove definition.
60152         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60153         it.  Don't include "unistd--.h" -- it wasn't ever used.
60154
60155         2006-01-17  Jim Meyering  <jim@meyering.net>
60156
60157         Rewrite fts.c not to change the current working directory,
60158         by using openat, fstatat, fdopendir, etc..
60159
60160         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60161         (HAVE_OPENAT_SUPPORT): Define.
60162         [_LIBC] (fchdir): Don't undef or define; no longer used.
60163         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60164         Now, this `function' always succeeds, and consumes its file descriptor
60165         parameter -- so callers must not close such FDs.  Update callers.
60166         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60167         (diropen): Add parameter, SP.  Adjust all callers.
60168         Implement using diropen_fd, rather than open.
60169         (fts_open): Initialize new member, fts_cwd_fd.
60170         Remove fts_rft-setting code.
60171         (fts_close): Close fts_cwd_fd, if necessary.
60172         (__opendir2): Define in terms of opendir or opendirat,
60173         depending on whether the FST_NOCHDIR flag is set.
60174         (fts_build): Since fts_safe_changedir consumes its FD, and since
60175         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60176         and close the dup'd file descriptor upon failure.
60177         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60178         (fts_safe_changedir): Tweak semantics to reflect that this function
60179         now calls cwd_advance_fd and hence consumes its FD argument.
60180         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60181         [struct FTS] (fts_rft): Remove now-unused member.
60182         [struct FTS] (fts_cycle.state): Improve comment.
60183
60184         * lib/openat.c (openat_needs_fchdir): New function.
60185         * lib/openat.h (openat_needs_fchdir): Declare it.
60186
60187 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60188
60189         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60190         Problem and fix reported by Pádraig Brady in
60191         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60192
60193 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60194
60195         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60196
60197 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60198
60199         * lib/memcoll.c (memcoll): Optimize for the common case where the
60200         arguments are bytewise equal.
60201
60202 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60203
60204         * doc/regexprops-generic.texi: Add a copyright notice.
60205
60206 2006-08-15  Bruno Haible  <bruno@clisp.org>
60207
60208         * modules/tmpdir (License): Change to LGPL.
60209
60210 2006-08-15  Bruno Haible  <bruno@clisp.org>
60211
60212         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60213         module.
60214
60215 2006-08-14  Simon Josefsson  <jas@extundo.com>
60216
60217         * config/srclist.txt: Add gnupload.
60218
60219 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60220
60221         Change copyright notice from LGPL 2 to GPL 2, since that's the
60222         standard form used in the gnulib repository.
60223         * tests/test-lock.c: Likewise.
60224         * tests/test-stdint.c: Likewise.
60225         * tests/test-tls.c: Likewise.
60226
60227         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60228         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60229         Add copyright notice.
60230
60231         * check-module: Add copyright notice.  Output a copyright
60232         notice if "--version" is specified.
60233         * modules/COPYING: New file.
60234         * tests/test-getaddrinfo.c: Add copyright notice.
60235         * tests/test-verify.c: Likewise.
60236
60237 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60238
60239         Change copyright notice from LGPL 2 to GPL 2, since that's the
60240         standard form used in the gnulib repository.
60241         * lib/lock.c: LGPL -> GPL.
60242         * lib/lock.h: Likewise.
60243         * lib/strnlen1.c: Likewise.
60244         * lib/strnlen1.h: Likewise.
60245         * lib/tls.c: Likewise.
60246         * lib/tls.h: Likewise.
60247         * lib/tmpdir.c: Likewise.
60248
60249         * lib/TODO: Remove; this belongs only in coreutils.
60250
60251 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         Add copyright notices to long-enough files that lack them, since
60254         otherwise the files aren't clearly free.  Use the same notice that
60255         getdate.texi already uses.
60256         * doc/alloca-opt.texi: Add copyright notice.
60257         * doc/alloca.texi: Likewise.
60258         * doc/ctime.texi: Likewise.
60259         * doc/functions.texi: Likewise.
60260         * doc/gcd.texi: Likewise.
60261         * doc/gnulib-tool.texi: Likewise.
60262         * doc/inet_ntoa.texi: Likewise.
60263         * doc/visibility.texi: Likewise.
60264
60265         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60266         * doc/quote.texi: Add copyright notice.
60267
60268         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60269         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60270         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60271         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60272         is now obsolete, and give a pointer to the Sun list.
60273         Add copyright notice.
60274
60275 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60276
60277         * config/srclistvars.sh: Add copyright notice.
60278
60279 2006-08-14  Eric Blake  <ebb9@byu.net>
60280
60281         Import the following change from libc:
60282
60283         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60284
60285         Upstream bug 2997.
60286         * lib/misc/error.c: Add space between program name and message if file
60287         name is missing.
60288
60289 2006-08-12  Karl Berry  <karl@gnu.org>
60290
60291         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60292         remove, these originate in gnulib now.
60293
60294 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60295
60296         * doc/Makefile (standards.info standards.html standards.dvi):
60297         Also depend on make-stds.texi.
60298
60299 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60300
60301         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60302         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60303
60304         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60305         in wchar_t.  Problem reported by Eric Blake.
60306
60307         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60308         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60309         Also, help the compiler to keep LEN in a register.
60310
60311 2006-08-11  Eric Blake  <ebb9@byu.net>
60312
60313         * users.txt: Sort.  Add tar.
60314
60315 2006-08-11  Bruno Haible  <bruno@clisp.org>
60316
60317         * users.txt: New file.
60318
60319 2006-08-11  Bruno Haible  <bruno@clisp.org>
60320
60321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60322         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60323
60324 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60325
60326         * modules/snprintf (Depends-on): Remove minmax.
60327         (Maintainer): Add self and Bruno.
60328
60329 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60330
60331         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60332         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60333         (EOVERFLOW): Define if the system does not.
60334         Do not include "minmax.h"; it wasn't used.
60335         (snprintf): Don't assume size_t promotes to an unsigned type.
60336         Fix bug when generated string was too long for the buffer: the
60337         buffer's contents are supposed to be the initial prefix of the
60338         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60339         exceeds INT_MAX; do the check ourselves.
60340
60341         Import the following changes from libc:
60342
60343         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60344
60345         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60346         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60347         set wc to the byte which couldn't be converted.
60348         (re_string_reconstruct): Don't clear valid_raw_len before calling
60349         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60350         tip_context using re_string_context_at.
60351
60352         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60353
60354         * lib/posix/regex.h: g++ still cannot handled [restrict].
60355
60356         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60357
60358         * lib/posix/regex.h: Remove special handling for VMS.
60359
60360 2006-08-10  Jim Meyering  <jim@meyering.net>
60361
60362         * modules/same-inode: New module.
60363         * modules/dev-ino: New module.
60364         * modules/cycle-check: Depend on these modules, rather than simply
60365         including their .h files.
60366         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60367         required via m4/cycle-check.m4.
60368         * modules/same: Depend on new same-inode module, rather than
60369         including same-inode.h.
60370         * modules/chdir-safer: New file.
60371
60372         * modules/chown (Depends-on): Add stat-macros.
60373
60374 2006-08-10  Jim Meyering  <jim@meyering.net>
60375
60376         * m4/cycle-check.m4: New file.
60377         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60378         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60379
60380 2006-08-10  Eric Blake  <ebb9@byu.net>
60381
60382         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60383         in from original proposal.
60384
60385 2006-08-10  Eric Blake  <ebb9@byu.net>
60386         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60387
60388         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60389         namespace.
60390
60391 2006-08-10  Bruno Haible  <bruno@clisp.org>
60392
60393         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60394         as well.
60395
60396 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60397
60398         Sync from coreutils.
60399
60400         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60401
60402         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60403         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60404
60405 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * modules/restrict: Remove; no longer needed now that we assume
60408         Autoconf 2.59 or later.
60409         * MODULES.html.sh: Remove 'restrict'.
60410         * modules/argp (Depends-on): Remove 'restrict'.
60411         * modules/base64 (Depends-on): Likewise.
60412         * modules/gc (Depends-on): Likewise.
60413         * modules/getaddrinfo (Depends-on): Likewise.
60414         * modules/glob (Depends-on): Likewise.
60415         * modules/inet_ntop (Depends-on): Likewise.
60416         * modules/inet_pton (Depends-on): Likewise.
60417         * modules/memxor (Depends-on): Likewise.
60418         * modules/regex (Depends-on): Likewise.
60419         * modules/strtok_r (Depends-on): Likewise.
60420         * modules/time_r (Depends-on): Likewise.
60421
60422 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60425         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60426         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60427         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60428         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60429         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60430         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60431         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60432
60433         Merge from coreutils.
60434         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60435         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60437         * m4/time_r.m4 (gl_TIME_R): Likewise.
60438
60439 2006-08-09  Karl Berry  <karl@gnu.org>
60440
60441         * config/srclist.txt: no more gettext-tools, per Bruno.
60442
60443 2006-08-08  Eric Blake  <ebb9@byu.net>
60444
60445         * modules/verror: New module.
60446         * MODULES.html.sh: Document it.
60447
60448 2006-08-08  Eric Blake  <ebb9@byu.net>
60449
60450         * lib/verror.h, lib/verror.c: New files.
60451
60452 2006-08-08  Eric Blake  <ebb9@byu.net>
60453
60454         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60455         verror_at_line output complies with GNU Coding Standards even when
60456         file is NULL.
60457
60458 2006-08-07  Bruno Haible  <bruno@clisp.org>
60459
60460         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60461         versions of AIX.
60462         Reported by Ralf Wildenhues.
60463
60464 2006-08-07  Bruno Haible  <bruno@clisp.org>
60465
60466         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60467         in an AC_DEFUN. Needed so that the autoconf snippets can use
60468         AC_REQUIRE.
60469
60470 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60471
60472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60473         Initialize pkgdata_DATA.
60474         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60475         overriding it.
60476
60477 2006-08-06  Eric Blake  <ebb9@byu.net>
60478
60479         * lib/error.h: Fold in some upstream changes from glibc.
60480         * lib/error.c: Likewise.
60481
60482 2006-08-04  Bruno Haible  <bruno@clisp.org>
60483
60484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60485         Make the mostlyclean-local rule depend on mostlyclean-generic.
60486         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60487
60488 2006-07-31  Bruno Haible  <bruno@clisp.org>
60489
60490         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60491         <stdlib.h>, <string.h>.
60492
60493 2006-07-30  Bruno Haible  <bruno@clisp.org>
60494
60495         * modules/readlink (License): Change to LGPL.
60496
60497 2006-07-30  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60500         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60501         set PKGDATADIR to point to it.
60502
60503 2006-07-30  Bruno Haible  <bruno@clisp.org>
60504
60505         * modules/csharpexec (configure.ac): Comment out macro invocation.
60506         * modules/javaexec (configure.ac): Likewise.
60507         * modules/javacomp-script (configure.ac): Likewise.
60508
60509         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60510
60511 2006-07-30  Bruno Haible  <bruno@clisp.org>
60512
60513         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60514         linked-list.
60515
60516 2006-07-30  Bruno Haible  <bruno@clisp.org>
60517
60518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60519
60520 2006-07-30  Bruno Haible  <bruno@clisp.org>
60521
60522         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60523         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60524         get removed.
60525
60526 2006-07-29  Bruno Haible  <bruno@clisp.org>
60527
60528         Make it possible for gnulib-tool to work with locally modified or
60529         augmented gnulib repositories.
60530         * gnulib-tool (func_usage): Document --local-dir option.
60531         (local_gnulib_dir): New variable.
60532         Handle --local-dir option.
60533         (func_lookup_file): New function.
60534         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60535         (func_get_description, func_get_filelist, func_get_description,
60536         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60537         func_get_automake_snippet, func_get_include_directive,
60538         func_get_license, func_get_maintainer): Use func_lookup_file.
60539         (func_import, func_create_testdir): Use func_lookup_file.
60540
60541 2006-07-29  Bruno Haible  <bruno@clisp.org>
60542
60543         * modules/setenv (Depends-on): Add unistd.
60544
60545 2006-07-29  Bruno Haible  <bruno@clisp.org>
60546
60547         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
60548
60549 2006-07-29  Bruno Haible  <bruno@clisp.org>
60550
60551         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
60552
60553 2006-07-29  Bruno Haible  <bruno@clisp.org>
60554
60555         * gnulib-tool (import, update): If there is no Makefile.am, look at
60556         aclocal.m4, instead of bailing out.
60557
60558 2006-07-29  Bruno Haible  <bruno@clisp.org>
60559
60560         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
60561         Categorize the options by when they are useful.
60562
60563 2006-07-29  Bruno Haible  <bruno@clisp.org>
60564
60565         * gnulib-tool (func_usage): Document option --no-libtool.
60566         Handle option --no-libtool.
60567         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
60568         for changed semantics of $libtool variable.
60569         (func_import): Likewise. If libtool is not used, show this through
60570         an option --no-libtool.
60571         (func_create_testdir): Update.
60572
60573 2006-07-29  Bruno Haible  <bruno@clisp.org>
60574
60575         * gnulib-tool (func_import): Extend error message about missing
60576         --doc-base.
60577
60578 2006-07-29  Bruno Haible  <bruno@clisp.org>
60579
60580         * gnulib-tool (func_import): Don't create the $docbase directory if
60581         there is no file to store there.
60582
60583 2006-07-29  Bruno Haible  <bruno@clisp.org>
60584
60585         * gnulib-tool (autoconf_minversion): If a --dir option is given and
60586         relevant, look for configure.ac there, not in the current directory.
60587         Also use a simple search for AC_PREREQ, not "autoconf --trace".
60588
60589 2006-07-29  Bruno Haible  <bruno@clisp.org>
60590
60591         * gnulib-tool (SORT): New variable.
60592         (func_usage): Undocument --assume-autoconf option.
60593         Remove --assume-autoconf option handling.
60594         (autoconf_minversion): Determine from the contents of configure.ac.
60595         (func_import): Remove autoconf_minversion handling.
60596         Suggested by Eric Blake.
60597
60598 2006-07-29  Bruno Haible  <bruno@clisp.org>
60599
60600         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
60601
60602 2006-07-29  Bruno Haible  <bruno@clisp.org>
60603
60604         * config/srclist.txt (*setenv.[ch]): Remove rules.
60605
60606 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60607
60608         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
60609
60610 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60611
60612         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
60613         arpa/inet.h.
60614
60615 2006-07-28  Simon Josefsson  <jas@extundo.com>
60616
60617         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
60618         * modules/inet_pton (Depends-on): Likewise.
60619
60620 2006-07-28  Simon Josefsson  <jas@extundo.com>
60621
60622         * m4/netinet_in_h.m4: New file.
60623
60624 2006-07-28  Simon Josefsson  <jas@extundo.com>
60625
60626         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
60627         #include's.
60628
60629 2006-07-28  Simon Josefsson  <jas@extundo.com>
60630
60631         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
60632         #include's.
60633
60634 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
60635
60636         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
60637         setgid on directories only if they set these bits.
60638         * lib/modechange.h: Remove obsolete comment about masks.
60639
60640 2006-07-28  Eric Blake  <ebb9@byu.net>
60641
60642         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
60643         macro expansion.
60644
60645 2006-07-28  Bruno Haible  <bruno@clisp.org>
60646
60647         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
60648
60649 2006-07-28  Bruno Haible  <bruno@clisp.org>
60650
60651         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
60652
60653 2006-07-28  Bruno Haible  <bruno@clisp.org>
60654
60655         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60656         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
60657         Define fallbacks.
60658         Avoids link error on FreeBSD 4.x.
60659         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60660
60661         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
60662         encoding.
60663         * lib/mbswidth.c (iswcntrl): Likewise.
60664
60665 2006-07-27  Bruno Haible  <bruno@clisp.org>
60666
60667         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
60668         test.
60669
60670 2006-07-27  Bruno Haible  <bruno@clisp.org>
60671
60672         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
60673         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
60674         defined.
60675
60676 2006-07-26  Eric Blake  <ebb9@byu.net>
60677
60678         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
60679
60680 2006-07-26  Eric Blake  <ebb9@byu.net>
60681
60682         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
60683         like mingw that lack mkstemp.
60684         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
60685         avoid compilation warning on mingw.
60686
60687 2006-07-26  Bruno Haible  <bruno@clisp.org>
60688
60689         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
60690         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
60691         INT_FAST*_MIN, INTPTR_MIN.
60692
60693 2006-07-25  Bruno Haible  <bruno@clisp.org>
60694
60695         * modules/version-etc (Depends-on): Add stdarg.
60696
60697 2006-07-25  Bruno Haible  <bruno@clisp.org>
60698
60699         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
60700         complex commands.
60701
60702 2006-07-25  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
60705         defined in <stdarg.h> or config.h.
60706
60707 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60708
60709         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
60710         (gl_STDIO_SAFER): Remove.
60711
60712 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * MODULES.html.sh (File stream based Input/Output):
60715         Add fopen-safer, tmpfile-safer; remove stdio-safer.
60716         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
60717         * modules/fopen-safer, modules/tmpfile-safer: New files.
60718         * modules/stdio-safer: Remove.
60719
60720 2006-07-24  Bruno Haible  <bruno@clisp.org>
60721
60722         * modules/tmpdir: New file.
60723         * MODULES.html.sh (File system functions): Add it.
60724
60725 2006-07-24  Bruno Haible  <bruno@clisp.org>
60726
60727         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
60728         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
60729
60730 2006-07-24  Bruno Haible  <bruno@clisp.org>
60731
60732         * modules/clean-temp: New file.
60733
60734 2006-07-24  Bruno Haible  <bruno@clisp.org>
60735
60736         * m4/tmpdir.m4: New file, from GNU gettext.
60737
60738 2006-07-24  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/tmpdir.h: New file, from GNU gettext.
60741         * lib/tmpdir.c: New file, from GNU gettext.
60742
60743 2006-07-24  Bruno Haible  <bruno@clisp.org>
60744
60745         * lib/clean-temp.h: New file, from GNU gettext.
60746         * lib/clean-temp.c: New file, from GNU gettext.
60747
60748 2006-07-23  Eric Blake  <ebb9@byu.net>
60749
60750         * modules/stdio-safer (Files): Add tmpfile-safer.c.
60751         (Depends-on): Add binary-io.
60752
60753 2006-07-23  Eric Blake  <ebb9@byu.net>
60754
60755         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
60756
60757 2006-07-23  Eric Blake  <ebb9@byu.net>
60758
60759         * lib/tmpfile-safer.c: New file.
60760         * lib/stdio-safer.h (fopen_safer): Add prototype.
60761         * lib/stdio--.h (tmpfile): Make safer.
60762
60763 2006-07-23  Bruno Haible  <bruno@clisp.org>
60764
60765         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
60766         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
60767         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
60768         gl_linked_remove_at): Use it.
60769
60770 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60771         and Simon Josefsson <jas@extundo.com>
60772
60773         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
60774
60775         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
60776
60777 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60778
60779         * modules/close-stream: New file.
60780         * modules/closeout (Description): Make it clear that it exits
60781         with a diagnostic on error.
60782         (Depends-on): Add close-stream.  Remove fpending, stdbool.
60783         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
60784
60785 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * m4/close-stream.m4: New file.
60788
60789 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60790
60791         * lib/close-stream.c, lib/close-stream.h: New files.
60792
60793 2006-07-22  Bruno Haible  <bruno@clisp.org>
60794
60795         Merge from GNU gettext 0.15.
60796
60797         2006-05-01  Bruno Haible  <bruno@clisp.org>
60798
60799                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
60800
60801         2006-07-22  Bruno Haible  <bruno@clisp.org>
60802
60803                 * modules/javaversion: New file.
60804                 * MODULES.html.sh (Java): Add javaversion.
60805
60806         2006-03-12  Bruno Haible  <bruno@clisp.org>
60807
60808                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
60809
60810         2005-12-04  Bruno Haible  <bruno@clisp.org>
60811
60812                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60813                 (untested).
60814
60815         2006-06-21  Bruno Haible  <bruno@clisp.org>
60816
60817                 Avoid warnings from recent versions of mcs.
60818                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60819                 -o, -L, -r any more. Use options documented since mcs-1.0
60820                 instead. Similarly for -g.
60821
60822         2005-12-04  Bruno Haible  <bruno@clisp.org>
60823
60824                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60825                 .resources, not .resource.
60826
60827         2005-07-09  Bruno Haible  <bruno@clisp.org>
60828
60829                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60830                 add a .dll suffix.
60831                 Reported by Mark Junker <mjscod@gmx.de>.
60832
60833         2006-07-22  Bruno Haible  <bruno@clisp.org>
60834
60835                 * modules/gettext: Upgrade to gettext-0.15.
60836                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60837                 m4/visibility.m4.
60838                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60839
60840 2006-07-22  Bruno Haible  <bruno@clisp.org>
60841
60842         Merge from GNU gettext 0.15.
60843
60844         2006-03-25  Bruno Haible  <bruno@clisp.org>
60845
60846                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60847
60848         2006-07-21  Bruno Haible  <bruno@clisp.org>
60849
60850                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60851                 "1.1".
60852
60853         2006-05-09  Bruno Haible  <bruno@clisp.org>
60854
60855                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60856                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60857                 for the conftestver execution.
60858
60859         2006-05-01  Bruno Haible  <bruno@clisp.org>
60860
60861                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60862                 optional target-version argument. Verify that the compiler
60863                 groks source of the specified source-version, or add -source
60864                 option as necessary. Verify that the compiler produces
60865                 bytecode in the specified target-version, or add -target and
60866                 -source options as necessary. Make the result of the test
60867                 available as variable CONF_JAVAC. Also log error output in
60868                 config.log.
60869
60870         2006-03-11  Bruno Haible  <bruno@clisp.org>
60871
60872                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60873
60874         2006-05-09  Bruno Haible  <bruno@clisp.org>
60875
60876                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60877                 CLASSPATH_SEPARATOR to a semicolon.
60878
60879         2006-03-12  Bruno Haible  <bruno@clisp.org>
60880
60881                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60882                 available as variable CONF_JAVA, for subsequent autoconf
60883                 tests. Also log error output in config.log.
60884
60885         2006-07-19  Bruno Haible  <bruno@clisp.org>
60886
60887                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60888                 that getline works on glibc2 systems. Needed to avoid trouble
60889                 in relocatable.c.
60890                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60891
60892         2005-12-04  Bruno Haible  <bruno@clisp.org>
60893
60894                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60895                 launcher (untested).
60896
60897         2005-12-04  Bruno Haible  <bruno@clisp.org>
60898
60899                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60900
60901         2006-07-22  Bruno Haible  <bruno@clisp.org>
60902
60903                 * gettext.m4: Update from GNU gettext-0.15.
60904                 * nls.m4: Likewise.
60905                 * po.m4: Likewise.
60906                 * inttypes-pri.m4: Likewise.
60907                 * inttypes-h.m4: Renamed from inttypes.m4.
60908                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60909
60910 2006-07-22  Bruno Haible  <bruno@clisp.org>
60911
60912         Merge from GNU gettext 0.15.
60913
60914         2005-07-05  Bruno Haible  <bruno@clisp.org>
60915
60916                 * printf-args.c (printf_fetchargs): Work around broken
60917                 definition of wint_t on mingw.
60918
60919         2005-02-12  Bruno Haible  <bruno@clisp.org>
60920
60921                 * xallocsa.h: Add extern "C" for C++.
60922
60923         2006-05-17  Bruno Haible  <bruno@clisp.org>
60924
60925                 Cygwin portability.
60926                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60927
60928         2006-04-30  Bruno Haible  <bruno@clisp.org>
60929
60930                 * progreloc.c: Include <mach-o/dyld.h> if available.
60931                 (find_executable): Use _NSGetExecutablePath when possible.
60932
60933         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60934
60935                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60936                 function.
60937
60938         2005-12-29  Bruno Haible  <bruno@clisp.org>
60939
60940                 * progreloc.c (set_program_name_and_installdir): Fix
60941                 compilation error.
60942
60943         2005-12-04  Bruno Haible  <bruno@clisp.org>
60944
60945                 Cygwin portability.
60946                 * progreloc.c: Include <windows.h> also on Cygwin.
60947                 (find_executable): Add support for Cygwin.
60948                 (set_program_name_and_installdir): Handle also platforms with
60949                 nonempty EXEEXT.
60950
60951         2006-07-11  Bruno Haible  <bruno@clisp.org>
60952
60953                 * javacomp.c: Fix a comment.
60954                 Reported by Jim Meyering.
60955
60956         2006-04-30  Bruno Haible  <bruno@clisp.org>
60957
60958                 * javacomp.h (compile_java_class): Add source_version,
60959                 target_version arguments.
60960                 * javacomp.c: Rewritten to choose only a compiler that
60961                 respects the specified source_version and target_version.
60962
60963         2006-06-27  Bruno Haible  <bruno@clisp.org>
60964
60965                 Assume correct S_ISDIR macro.
60966                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60967
60968         2006-07-22  Bruno Haible  <bruno@clisp.org>
60969
60970                 * javaversion.h: New file, from GNU gettext.
60971                 * javaversion.c: New file, from GNU gettext.
60972                 * javaversion.java: New file, from GNU gettext.
60973                 * javaversion.class: New file, from GNU gettext.
60974
60975         2006-05-17  Bruno Haible  <bruno@clisp.org>
60976
60977                 Cygwin portability.
60978                 * javaexec.c (execute_java_class): Test for jview program
60979                 also on Cygwin.
60980
60981         2006-04-09  Bruno Haible  <bruno@clisp.org>
60982
60983                 * fatal-signal.c: Don't include string.h.
60984                 (at_fatal_signal): Use a copying loop instead of memcpy.
60985
60986         2005-12-04  Bruno Haible  <bruno@clisp.org>
60987
60988                 * csharpexec.c: Add support for 'clix' launcher (untested).
60989                 (execute_csharp_using_sscli): New function.
60990                 (execute_csharp_program): Call it.
60991
60992         2006-06-21  Bruno Haible  <bruno@clisp.org>
60993
60994                 Avoid warnings from recent versions of mcs.
60995                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60996                 -o, -L, -r any more. Use options documented since mcs-1.0
60997                 instead. Similarly for -g.
60998
60999         2005-07-09  Bruno Haible  <bruno@clisp.org>
61000
61001                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61002                 add a .dll suffix.
61003                 Reported by Mark Junker <mjscod@gmx.de>.
61004
61005         2006-06-17  Bruno Haible  <bruno@clisp.org>
61006
61007                 * config.charset: Update for NetBSD 3.0.
61008
61009         2006-05-17  Bruno Haible  <bruno@clisp.org>
61010
61011                 Cygwin portability.
61012                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61013
61014         2006-05-16  Bruno Haible  <bruno@clisp.org>
61015
61016                 * localcharset.c [CYGWIN]: Include <windows.h>.
61017                 (get_charset_aliases): For Cygwin, return the same CPxxx
61018                 aliases list as under WIN32.
61019                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61020                 the environment variables. Fall back to GetACP().
61021
61022         2006-04-05  Bruno Haible  <bruno@clisp.org>
61023
61024                 * config.charset: Update Juan Manuel Guerrero's address.
61025
61026         2005-02-12  Bruno Haible  <bruno@clisp.org>
61027
61028                 * allocsa.h: Add extern "C" for C++.
61029
61030         2005-02-10  Bruno Haible  <bruno@clisp.org>
61031
61032                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61033                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61034
61035         2006-07-22  Bruno Haible  <bruno@clisp.org>
61036
61037                 * gettext.h: Update to GNU gettext-0.15.
61038
61039 2006-07-22  Bruno Haible  <bruno@clisp.org>
61040
61041         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61042         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61043         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61044
61045 2006-07-21  Eric Blake  <ebb9@byu.net>
61046
61047         * modules/stdlib-safer: New file.
61048         * MODULES.html.sh (File stream based Input/Output): Add
61049         stdlib-safer.
61050
61051 2006-07-21  Eric Blake  <ebb9@byu.net>
61052
61053         * lib/stdlib-safer.h: New file from coreutils, required by
61054         stdlib--.h.
61055
61056 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61057
61058         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61059
61060 2006-07-20  Bruno Haible  <bruno@clisp.org>
61061
61062         * gnulib-tool: Recognize new option --assume-autoconf.
61063         (autoconf_minversion): New variable.
61064         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61065
61066 2006-07-20  Bruno Haible  <bruno@clisp.org>
61067
61068         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61069
61070 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61071
61072         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61073         Reindent and repaginate.
61074
61075 2006-07-19  Derek Price  <derek@ximbiot.com>
61076
61077         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61078         Correct grammar.
61079
61080 2006-07-17  Bruno Haible  <bruno@clisp.org>
61081
61082         * modules/list: New file.
61083         * modules/array-list: New file.
61084         * modules/carray-list, modules/carray-list-tests: New files.
61085         * modules/linked-list, modules/linked-list-tests: New files.
61086         * modules/avltree-list, modules/avltree-list-tests: New files.
61087         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61088         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61089         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61090         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61091         * modules/oset: New file.
61092         * modules/array-oset: New file.
61093         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61094         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61095         * tests/test-carray_list.c: New file.
61096         * tests/test-linked_list.c: New file.
61097         * tests/test-avltree_list.c: New file.
61098         * tests/test-rbtree_list.c: New file.
61099         * tests/test-linkedhash_list.c: New file.
61100         * tests/test-avltreehash_list.c: New file.
61101         * tests/test-rbtreehash_list.c: New file.
61102         * tests/test-avltree_oset.c: New file.
61103         * tests/test-rbtree_oset.c: New file.
61104         * MODULES.html.sh (Container data structures): New section.
61105
61106 2006-07-17  Bruno Haible  <bruno@clisp.org>
61107
61108         * m4/gl_list.m4: New file.
61109
61110 2006-07-17  Bruno Haible  <bruno@clisp.org>
61111
61112         * lib/gl_list.h: New file.
61113         * lib/gl_list.c: New file.
61114         * lib/gl_array_list.h: New file.
61115         * lib/gl_array_list.c: New file.
61116         * lib/gl_carray_list.h: New file.
61117         * lib/gl_carray_list.c: New file.
61118         * lib/gl_linked_list.h: New file.
61119         * lib/gl_linked_list.c: New file.
61120         * lib/gl_anylinked_list1.h: New file.
61121         * lib/gl_anylinked_list2.h: New file.
61122         * lib/gl_avltree_list.h: New file.
61123         * lib/gl_avltree_list.c: New file.
61124         * lib/gl_anyavltree_list1.h: New file.
61125         * lib/gl_anyavltree_list2.h: New file.
61126         * lib/gl_rbtree_list.h: New file.
61127         * lib/gl_rbtree_list.c: New file.
61128         * lib/gl_anyrbtree_list1.h: New file.
61129         * lib/gl_anyrbtree_list2.h: New file.
61130         * lib/gl_anytree_list1.h: New file.
61131         * lib/gl_anytree_list2.h: New file.
61132         * lib/gl_linkedhash_list.h: New file.
61133         * lib/gl_linkedhash_list.c: New file.
61134         * lib/gl_anyhash_list1.h: New file.
61135         * lib/gl_anyhash_list2.h: New file.
61136         * lib/gl_avltreehash_list.h: New file.
61137         * lib/gl_avltreehash_list.c: New file.
61138         * lib/gl_rbtreehash_list.h: New file.
61139         * lib/gl_rbtreehash_list.c: New file.
61140         * lib/gl_anytreehash_list1.h: New file.
61141         * lib/gl_anytreehash_list2.h: New file.
61142
61143         * lib/gl_oset.h: New file.
61144         * lib/gl_oset.c: New file.
61145         * lib/gl_array_oset.h: New file.
61146         * lib/gl_array_oset.c: New file.
61147         * lib/gl_avltree_oset.h: New file.
61148         * lib/gl_avltree_oset.c: New file.
61149         * lib/gl_rbtree_oset.h: New file.
61150         * lib/gl_rbtree_oset.c: New file.
61151         * lib/gl_anytree_oset.h: New file.
61152
61153 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61154
61155         * m4/mkancesdirs.m4: New file.
61156         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61157         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61158         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61159         it.
61160
61161 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61162
61163         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61164         * lib/mkancesdirs.h: New files.
61165         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61166         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61167         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61168         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61169         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61170         callers changed.  Revamp internals significantly, by not
61171         attempting to create directories that are temporarily more
61172         permissive than the final results.  Do not attempt to use
61173         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61174         This removes some race conditions, fixes some bugs, and simplifies
61175         things.  Use new dirchownmod function to do owner and mode changes.
61176         * lib/mkdir-p.h: Likewise.
61177         * lib/modechange.c (octal_to_mode): New function.
61178         (struct mode_change): New member mentioned.
61179         (make_node_op_equals): New arg mentioned.  All callers changed.
61180         (mode_compile): Keep track of which mode bits the user has explicitly
61181         mentioned.
61182         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61183         New arg PMODE_BITS, to keep track of which mode bits the user
61184         mentioned; it treats S_ISUID and S_ISGID speciall.
61185         All callers changed.
61186         * lib/modechange.h: Likewise.
61187
61188 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61189
61190         * MODULES.html.sh: Add mkancestors.
61191         * modules/mkancesdirs: New module.
61192         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61193         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61194         The chdir-safer and afs files are now orphans; I'll remove them
61195         unless someone speaks up.
61196         Add lib/dirchownmod.c, lib/dirchownmod.h.
61197         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61198         Add lchown, mkancesdirs.
61199         (Maintainer): Add self.
61200
61201 2006-07-15  Karl Berry  <karl@gnu.org>
61202
61203         * gnulib-tool: help message wording/arrangement.
61204
61205 2006-07-14  Simon Josefsson  <jas@extundo.com>
61206
61207         * doc/gnulib.texi (Libtool and Windows): New section.
61208
61209 2006-07-12  Simon Josefsson  <jas@extundo.com>
61210
61211         * modules/gendocs (License): Fix license, approved by Karl.
61212
61213 2006-07-12  Eric Blake  <ebb9@byu.net>
61214
61215         * MODULES.html.sh: Add gendocs.
61216
61217 2006-07-11  Eric Blake  <ebb9@byu.net>
61218
61219         * modules/fdl: New module, to install doc/fdl.texi.
61220         * MODULES.html.sh: Add new section for documentation modules.
61221         * gnulib-tool: Avoid space-tab.
61222         (--doc-base): New option, to manage files from doc.
61223
61224 2006-07-11  Eric Blake  <ebb9@byu.net>
61225
61226         * m4/absolute-header.m4: Fix comments to match recent change.
61227
61228 2006-07-11  Eric Blake  <ebb9@byu.net>
61229
61230         * gnulib-tool: List --doc-base before --tests-base.
61231
61232 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61233
61234         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61235
61236 2006-07-11  Bruno Haible  <bruno@clisp.org>
61237
61238         * README: Mention where to put documentation.
61239
61240 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61241
61242         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61243
61244 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61245
61246         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61247         to stdint.m4.
61248
61249 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61250
61251         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61252         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61253         "no/such/file/stdint.h" when there is no such file, so that
61254         the resulting C code can be parsed by dodgy compilers.
61255         Problems reported by Bob Proulx.
61256
61257 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61258
61259         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61260         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61261         macros into the GNU _D_EXACT_NAMLEN.
61262         * lib/savedir.c:  Likewise.
61263         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61264
61265 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61266         and Paul Eggert  <eggert@cs.ucla.edu>
61267
61268         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61269         * m4/savedir.m4:
61270         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61271         macros into the GNU _D_EXACT_NAMLEN.
61272
61273 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61274
61275         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61276         around the absolute name, to work around a problem with the HP-UX
61277         11.23 native C compiler, reported by Bob Proulx.
61278
61279 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61280
61281         * doc/maintain.texi, make-stds.texi: Sync from
61282         <http://savannah.gnu.org/projects/gnustandards>.
61283
61284 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61285
61286         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61287
61288 2006-07-09  Jim Meyering  <jim@meyering.net>
61289
61290         * m4/glob.m4: Remove a doubled word in a comment.
61291
61292 2006-07-09  Jim Meyering  <jim@meyering.net>
61293
61294         * lib/argp-pv.c: Remove a doubled word in a comment.
61295         * lib/check-version.c (check_version): Likewise.
61296         * lib/javacomp.c (compile_java_class): Likewise.
61297
61298 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61299
61300         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61301         for the benefit of people using Autoconf 2.60.  If you want to
61302         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61303         (or m4/onceonly.m4, if pre-2.57) manually.
61304
61305 2006-07-08  Jim Meyering  <jim@meyering.net>
61306
61307         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61308         comment.
61309         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61310         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61311         comment.
61312
61313 2006-07-08  Jim Meyering  <jim@meyering.net>
61314
61315         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61316
61317 2006-07-07  Simon Josefsson  <jas@extundo.com>
61318
61319         * tests/test-crc.c: Change expected crc value, the test vector
61320         were probably computed using the old broken crc.c?
61321
61322 2006-07-06  Simon Josefsson  <jas@extundo.com>
61323
61324         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61325         now the canonical place for the M4 file).
61326
61327         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61328         from the sys_socket dependency now.
61329
61330         * modules/inet_pton (Files): Ditto.
61331
61332         * modules/inet_ntop (Files): Ditto.
61333
61334 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61335
61336         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61337         not gl_PREREQ_GETUSERSHELL.
61338
61339 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61340
61341         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61342         with only one argument, for Autoconf 2.60.
61343         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61344         expand to nothing, so add a shell command to avoid syntax error.
61345         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61346
61347 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61348
61349         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61350
61351 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61352
61353         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61354         no longer needed.  Check for isblank decl.
61355         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61356         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61357         of existence.
61358
61359 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61360
61361         * lib/getloadavg.c: Use __VMS, not VMS.
61362         * lib/getopt.c: Likewise.
61363         * lib/getpagesize.h: Likewise.
61364         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61365         and probably does not work.
61366
61367 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61368
61369         * lib/.cppi-disable: Add wcwidth.
61370         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61371         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61372         (ISGRAPH): Remove.  All uses changed to isgraph.
61373         (FOLD) [!defined _LIBC]: Remove special case.
61374         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61375         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61376         HAVE_ISBLANK.
61377         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61378         case.
61379
61380 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61381
61382         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61383         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61384         brackets.  Other minor changes to suppress some compiler
61385         warnings.
61386
61387 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61388         and Paul Eggert  <eggert@cs.ucla.edu>
61389
61390         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61391         of invoking obsolescent AC_HEADER_DIRENT macro.
61392         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61393         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61394         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61395         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61396         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61397         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61398         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61399         * m4/readdir.m4: Remove; no longer needed.
61400
61401 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61402         and Paul Eggert  <eggert@cs.ucla.edu>
61403
61404         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61405         Don't worry about this obsolete case any more.
61406         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61407         directories.
61408         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61409         worry about this obsolete case any more.
61410         * lib/fts.c: Likewise.
61411         * lib/getcwd.c: Likewise.
61412         * lib/glob.h: Likewise.
61413         * lib/savedir.c: Likewise.
61414
61415 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61416
61417         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61418         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61419         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61420         needed.
61421         All uses removed.
61422         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61423         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61424         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61425         needed.
61426         * m4/getdate.m4 (gl_GETDATE): Likewise.
61427         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61428         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61429         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61430         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61431         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61432         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61433         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61434         needed.
61435
61436 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61437
61438         * lib/memcasecmp.c: Include <limits.h>.
61439         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61440         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61441         Don't assume isdigit succeeds only on '0' through '9'.
61442
61443 2006-07-05  Eric Blake  <ebb9@byu.net>
61444
61445         * modules/getaddrinfo (Depends-on): Add snprintf.
61446
61447 2006-07-05  Eric Blake  <ebb9@byu.net>
61448
61449         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61450         to avoid 'header present but could not be compiled' on cygwin.
61451
61452 2006-07-05  Eric Blake  <ebb9@byu.net>
61453
61454         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61455         missing from netdb.h.
61456         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61457
61458 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61459
61460         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61461         no longer needed.
61462         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61463         * m4/getdate.m4 (gl_GETDATE): Likewise.
61464         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61465         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61466         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61467         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61468         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61469
61470 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61471
61472         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61473         All uses of is_space replaced by isspace.
61474         * lib/exit.h: Don't talk about STDC_HEADERS.
61475         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61476         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61477         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61478         replaced by isprint etc.
61479         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61480         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61481         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61482         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61483         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61484         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61485
61486 2006-07-05  Bruno Haible  <bruno@clisp.org>
61487
61488         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61489         the function exists, before testing against AIX.
61490         Reported by Martin Lambers <marlam@marlam.de>.
61491
61492 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61493
61494         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61495         From Mark D. Baushke.
61496
61497 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61498
61499         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61500         to the absolute name, not just one, to bypass Sun C 5.8's
61501         "warning: #include of /usr/include/... may be non-portable".
61502
61503 2006-07-04  Eric Blake  <ebb9@byu.net>
61504
61505         * modules/dirname-tests: New test module.
61506         * tests/test-dirname.c: New file, replacing dirname.c
61507         TEST_DIRNAME section that was recently deleted.
61508
61509 2006-07-04  Bruno Haible  <bruno@clisp.org>
61510
61511         Assume ANSI C header files and <ctype.h> functions.
61512         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61513         (mbsnwidth): Use isprint, iscntrl instead.
61514
61515 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61516
61517         Merge from coreutils.
61518         * MODULES.html.sh: Add xstrtold.
61519         * modules/xstrtold: New file.
61520         * modules/cycle-check (Files): Add lib/same-inode.h.
61521         * modules/dirname (Files): Add m4/double-slash-root.m4.
61522         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61523         * modules/mkdir-p (Files): Add lib/same-inode.h.
61524         * modules/same (Files): Add lib/same-inode.h.
61525
61526 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61527
61528         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61529         This is to keep the terminology clean; POSIX talks about
61530         "absolute pathnames", not "full pathnames", but the GNU
61531         Coding Standards say to use "path" for something else;
61532         so use "absolute" to keep both sides happy.
61533         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61534         Set gl_absolute_header, not gl_full_header_path.
61535         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61536         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61537         All uses changed.
61538
61539         Merge from coreutils.
61540
61541         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61542
61543         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
61544         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
61545         want to require the building of c-strtod.o.
61546         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
61547         needs -lm directly.
61548         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
61549
61550         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61551
61552         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
61553         --as-needed option if available.  Problem reported by Albert Chin in
61554         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
61555         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
61556         cc merely issues a bunch of annoying warnings for --as-needed
61557         (this problem was reported by Bob Proulx).  Also, try linking with
61558         -lm to detect a bug in binutils 2.16 (this problem was reported
61559         by Ralf Wildenhues).
61560
61561         2006-06-18  Jim Meyering  <jim@meyering.net>
61562
61563         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
61564         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
61565         macro.
61566         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
61567         also check for glibc-2.4's abort-inducing bug.
61568
61569         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
61570         Low-probability clean-up should be to use rmdir to get rid of
61571         the just-created directory, not unlink.
61572
61573         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
61574         configure fail, and request a bug report to inform us about it.
61575         Add a comment that, barring reports to the contrary, in 2007 we'll
61576         assume ftruncate is universally available.
61577
61578         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61579
61580         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
61581
61582         2006-03-12  Jim Meyering  <jim@meyering.net>
61583
61584         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
61585         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
61586         * m4/same.m4 (gl_SAME): Likewise.
61587         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
61588
61589         2006-03-11  Eric Blake  <ebb9@byu.net>
61590
61591         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
61592         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
61593         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
61594         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
61595
61596 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61597
61598         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
61599         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
61600         reported by Mark D. Baushke, one in
61601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
61602
61603         Merge from coreutils.
61604
61605         * lib/.cppi-disable: Add stdint_.h.
61606         * lib/.cvsignore: Add stdint.h.
61607
61608         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
61609
61610         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
61611         both double and long double versions.
61612         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
61613         * lib/xstrtold.c: New file.
61614         * lib/xstrtod.h (xstrtold): New decl.
61615
61616         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
61617
61618         * lib/filemode.c (setst): Remove.
61619         (strmode): Rewrite to avoid setst.  This makes the code shorter,
61620         (arguably) clearer, and the generated code is a bit smaller on my
61621         Debian GNU/Linux stable x86 host.
61622
61623         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
61624
61625         * lib/filemode.c: Include "filemode.h" first, to test the interface.
61626         Assume that filemode.h includes sys/types.h and sys/stat.h.
61627         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
61628         (ftypelet): Reorder to put common cases first, for efficiency.
61629         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
61630         to do 'M'.
61631         (strmode): Renamed from mode_string, and now stores 12 bytes instead
61632         of 10, for compatibility with FreeBSD.  All callers changed.
61633         (filemodestring): Now stores 12 bytes instead of 10, and sets file
61634         types that can't be deduced solely from st_mode.  First arg is now a
61635         const pointer.
61636         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
61637         (strmode): Renamed from mode_string.
61638         (filemodestring): New decl.
61639         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
61640         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
61641         needed.
61642         (S_ISPORT, S_ISWHT): New macros, if not already defined.
61643
61644         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
61645
61646         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
61647         fsusage.h now does that.  Include fsusage.h first, to test interface.
61648         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
61649         at most one method (the old code could have generated decls that
61650         didn't conform to C89, not that this was ever exercised).
61651         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
61652
61653         2006-03-19  Jim Meyering  <jim@meyering.net>
61654
61655         Work even in a chroot where d_ino values for entries in "/"
61656         don't match the stat.st_ino values for the same names.
61657         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
61658         number, iterate through all entries again, using lstat instead.
61659         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
61660         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
61661
61662         * lib/getcwd.c (__getcwd): Clarify a comment.
61663         Use memcpy in place of a call to strcpy.
61664
61665         2006-03-12  Jim Meyering  <jim@meyering.net>
61666
61667         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
61668         matches that of the current directory (which we're about to chdir ".."
61669         out of), then save the dev-ino of the parent, instead.
61670
61671         * lib/same-inode.h (SAME_INODE): New file/macro.
61672         * lib/chdir-safer.c (SAME_INODE): Remove definition.
61673         Include "same-inode.h", instead.
61674         * lib/same.c: Likewise.
61675         * lib/cycle-check.h: Include "same-inode.h".
61676         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
61677         * lib/cycle-check.c (SAME_INODE): Remove definition.
61678         * lib/root-dev-ino.h: Include "same-inode.h".
61679
61680         2006-03-11  Eric Blake  <ebb9@byu.net>
61681
61682         * lib/same.c (same_name): s/base_name/last_component/
61683         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
61684         * lib/filenamecat.c (file_name_concat): Likewise.
61685
61686         2006-03-11  Eric Blake  <ebb9@byu.net>,
61687                     Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
61690         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
61691         drive prefix.
61692         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
61693         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
61694         (last_component): New method.
61695         * lib/dirname.c (dir_len): Determine when drive letters need a
61696         subsequent slash.  Preserve // when it is special.
61697         (dir_name): Don't append dot when drive letter is absolute.
61698         [TEST_DIRNAME]: Move into a full-blown gnulib test.
61699         * lib/basename.c (base_name): New semantics - malloc the result.
61700         Preserve // when it is special.  Preserve relative files that look
61701         like drive letters.
61702         (base_len): Preserve // when it is special.
61703         (last_component): New method, similar to old base_name semantics.
61704         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
61705         base_name.  Strip redundant slashes from ///.
61706
61707 2006-07-03  Jim Meyering  <jim@meyering.net>
61708
61709         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
61710         macro is used before the first cycle_check call.
61711
61712 2006-07-03  Eric Blake  <ebb9@byu.net>
61713
61714         * modules/dirname (Depends-on): Add xstrndup.
61715
61716 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
61719         test cases, so that config.log is a bit easier to follow.
61720
61721 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
61722
61723         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
61724         both are 64 bits, since this seems to be the tradition, and this
61725         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
61726         we ever run into a host that prefers long long to long in this
61727         case, we'll need another configure-time test.  Problem reported by
61728         Jim Meyering.
61729
61730 2006-07-02  Eric Blake  <ebb9@byu.net>
61731
61732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
61733
61734 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61735
61736         * modules/inttypes (Depends-on): No longer depends on stdint.
61737         * modules/stdint (Description): Say more about assumptions.
61738         Say that the fast types might differ.  Say macros are used.
61739         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
61740         (Makefile.am): Revise list of substituted symbols to match
61741         new stdint.m4.
61742         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
61743         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
61744         * tests/test-stdint.c (verify_same_types)
61745         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
61746         the code conforms to C99/C89.
61747         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
61748         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
61749
61750 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
61753         but fix a bug, by requiring at least 64 bits.
61754         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61755         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
61756         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
61757         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
61758
61759         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
61760         changes.  Make 2.59 a prerequisite.  Check and substitute for
61761         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
61762         inttypes.h.  Do not use special include files; just use the
61763         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
61764         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
61765         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
61766         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
61767         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
61768         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
61769         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
61770         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
61771         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
61772         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
61773         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
61774         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
61775         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
61776         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
61777         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
61778         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
61779         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
61780         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
61781         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
61782         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
61783         WINT_MAX.  Check for C99 conformance more strictly, by detecting
61784         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
61785         not check for things that C99 does not require, e.g., int8_t.  If
61786         a test isn't needed unless <stdint.h> isn't working, and is
61787         unlikely to be needed for any other reason, then don't do it
61788         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
61789         size_t, since we assume C89 freestanding at least.  Do not check
61790         for sig_atomic_t, wchar_t, or wint_t, since the code now does
61791         the right thing even if the types are not defined.  Instead use:
61792         (gl_STDINT_TYPE_PROPERTIES): New macro.
61793         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
61794         testing whether <sys/types.h> clashes, as Autoconf does this for
61795         us now.  All uses removed.
61796         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
61797         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
61798         (gl_CHECK_TYPE_SAME):
61799         Remove; no longer needed.
61800         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
61801         exists, since we'll return 0 anyway in that case.
61802         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
61803
61804 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
61805
61806         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
61807         possible collision with system files.
61808         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
61809         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
61810         WCHAR_MIN and WCHAR_MAX in this case.
61811         (<stddef.h>): Do not include; no longer needed.
61812         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61813         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61814         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61815         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61816         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61817         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61818         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61819         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61820         !defined(__c99))]: Include in this case too, since it's harmless
61821         now.
61822         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61823         dangerous to do so.
61824         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61825         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61826         (_STDINT_MIN, _STDINT_MAX): New macros.
61827         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61828         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61829         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61830         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61831         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61832         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61833         macros, not typedefs; this simplifies things quite a bit.
61834         Use long int for all types narrower than int64_t.
61835         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61836         Define in terms of long long int or int64_t or long int,
61837         not int64_t or int32_t.  This saves some compile-time testing.
61838         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61839         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61840         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61841         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61842         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61843         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61844         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61845         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61846         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61847         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61848         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61849         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61850         undef any previous version and define our own version, for
61851         simplicity and consistency with the new macros for types.
61852         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61853         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61854         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61855         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61856         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61857         @WINT_T_SUFFIX@ to keep things simple here.
61858         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61859         Simplify by assuming typical 8/16/32/64 host, since we're
61860         already doing that elsewhere anyway.
61861         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61862         and assume long long int is 64 bits if available.  This
61863         speeds up 'configure'.
61864
61865 2006-07-01  Eric Blake  <ebb9@byu.net>
61866
61867         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61868         Reported by Andreas Buening.
61869
61870 2006-07-01  Eric Blake  <ebb9@byu.net>
61871
61872         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61873
61874 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61875
61876         * lib/getaddrinfo.c: fixed typo
61877
61878 2006-06-29  Jim Meyering  <jim@meyering.net>
61879
61880         * modules/strftime (Maintainer): Add my name, since with the
61881         FPRINTFTIME changes strftime.c has forked from glibc.
61882
61883 2006-06-29  Eric Blake  <ebb9@byu.net>
61884
61885         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61886
61887 2006-06-29  Eric Blake  <ebb9@byu.net>
61888
61889         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61890
61891 2006-06-29  Eric Blake  <ebb9@byu.net>
61892
61893         * lib/stat_.h: New file.
61894
61895 2006-06-29  Eric Blake  <ebb9@byu.net>
61896
61897         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61898         unused static function.
61899
61900 2006-06-29  Eric Blake  <ebb9@byu.net>
61901
61902         * doc/functions.texi (Function Portability): Document missing lstat
61903         on mingw.
61904
61905 2006-06-29  Eric Blake  <ebb9@byu.net>
61906
61907         * MODULES.html.sh: Add sys_stat.
61908         * modules/sys_stat: New module.
61909         * modules/mkstemp (Depends-on): Add sys_stat.
61910
61911 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61912
61913         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61914
61915 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61916
61917         * m4/c-bs-a.m4: Removed.
61918
61919 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61920
61921         * lib/strftime.c: Assume strftime() exists.
61922
61923 2006-06-29  Derek Price  <derek@ximbiot.com>
61924
61925         * modules/c-bs-a: Removed - \a is C89.
61926         * MODULES.html.sh: Remove c-bs-a.
61927
61928 2006-06-29  Bruno Haible  <bruno@clisp.org>
61929
61930         * modules/wcwidth (License): Change to LGPL.
61931
61932 2006-06-28  Simon Josefsson  <jas@extundo.com>
61933
61934         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61935         on _WIN32.
61936
61937         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61938         getnameinfo.
61939
61940 2006-06-28  Simon Josefsson  <jas@extundo.com>
61941
61942         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61943
61944 2006-06-28  Simon Josefsson  <jas@extundo.com>
61945
61946         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61947         functions there.  It will succeed on Windows XP, but on Windows
61948         2000 and (presumably) earlier, it will fail, and use the internal
61949         re-implementation.
61950         (use_win32_p): New function.
61951         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61952         Support AI_NUMERICSERV to disable getservbyname.
61953         (getnameinfo): New function, only supports
61954         NI_NUMERICHOST|NI_NUMERICSERV for now.
61955
61956         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61957         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61958         getnameinfo.
61959
61960 2006-06-28  Eric Blake  <ebb9@byu.net>
61961
61962         * modules/wcwidth: New file.
61963         * modules/mbchar (Depends-on): Add wcwidth.
61964         * modules/mbswidth (Depends-on): Add wcwidth.
61965         * MODULES.html.sh: Add wcwidth.
61966
61967 2006-06-28  Eric Blake  <ebb9@byu.net>
61968
61969         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61971
61972 2006-06-28  Eric Blake  <ebb9@byu.net>
61973
61974         * lib/xvasprintf.h: Fix comments.
61975
61976 2006-06-28  Eric Blake  <ebb9@byu.net>
61977
61978         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61979         * lib/mbswidth.c (wcwidth): Move from here...
61980         * lib/wcwidth.h: ...to this new file.
61981
61982 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61983
61984         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61985
61986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61987         it's obsolete.
61988         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61989
61990 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61991
61992         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61993         Autoconf 2.60 says this stuff was obsolete.
61994
61995 2006-06-28  Bruno Haible  <bruno@clisp.org>
61996
61997         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61998
61999 2006-06-28  Bruno Haible  <bruno@clisp.org>
62000
62001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62002         gt_TYPE_WCHAR_T.
62003
62004 2006-06-28  Bruno Haible  <bruno@clisp.org>
62005
62006         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62007         declaration for wcwidth.
62008         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62009
62010 2006-06-28  Bruno Haible  <bruno@clisp.org>
62011
62012         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62013         (mkdir): Define using _mkdir.
62014
62015 2006-06-28  Bruno Haible  <bruno@clisp.org>
62016
62017         * lib/getaddrinfo.h: Fix POSIX URL.
62018         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62019         _WIN32.
62020         (use_win32_p): Make static.
62021         (getaddrinfo): Reject service name if it is empty or does not consist
62022         solely of decimal digits, or if its value is > 65535.
62023         (getnameinfo): Remove useless casts.
62024
62025 2006-06-27  Simon Josefsson  <jas@extundo.com>
62026
62027         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62028         Eggert and Martin Lambers.
62029
62030 2006-06-27  Simon Josefsson  <jas@extundo.com>
62031
62032         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62033         Eggert and Martin Lambers.
62034
62035 2006-06-27  Bruno Haible  <bruno@clisp.org>
62036
62037         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62038         result to 0, not to empty.
62039         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62040
62041 2006-06-27  Bruno Haible  <bruno@clisp.org>
62042
62043         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62044
62045 2006-06-26  Simon Josefsson  <jas@extundo.com>
62046
62047         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62048         present.
62049
62050 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62051
62052         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62053         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62054         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62055
62056 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62057
62058         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62059
62060 2006-06-26  Bruno Haible  <bruno@clisp.org>
62061
62062         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62063
62064 2006-06-26  Bruno Haible  <bruno@clisp.org>
62065
62066         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62067
62068 2006-06-26  Bruno Haible  <bruno@clisp.org>
62069
62070         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62071         SGI C compiler in pre-C99 mode.
62072         Suggested by Mark D. Baushke and Larry Jones.
62073
62074 2006-06-26  Bruno Haible  <bruno@clisp.org>
62075
62076         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62077         WCHAR_MAX.
62078         Reported by Mark D. Baushke and Larry Jones.
62079
62080 2006-06-26  Bruno Haible  <bruno@clisp.org>
62081
62082         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62083         in pre-C99 mode.
62084         Suggested by Mark D. Baushke and Larry Jones.
62085
62086 2006-06-23  Simon Josefsson  <jas@extundo.com>
62087             Bruno Haible  <bruno@clisp.org>
62088
62089         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62090         Emit mostlyclean-local rule.
62091         (func_emit_tests_Makefile_am): Likewise.
62092         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62093
62094 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62095
62096         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62097
62098 2006-06-23  Bruno Haible  <bruno@clisp.org>
62099
62100         * tests/test-stdint.c: Update to match ISO C 99 Technical
62101         Corrigendum 1.
62102
62103 2006-06-23  Bruno Haible  <bruno@clisp.org>
62104
62105         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62106
62107 2006-06-23  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/stdint_.h: Treat IRIX like OpenBSD.
62110
62111 2006-06-23  Bruno Haible  <bruno@clisp.org>
62112
62113         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62114         ISO C 99 Technical Corrigendum 1.
62115
62116 2006-06-22  Simon Josefsson  <jas@extundo.com>
62117
62118         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62119         MinGW.
62120
62121 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62122
62123         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62124         needed.  Some compiler complained about some of them.  Problem reported
62125         by Larry Jones in
62126         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62127
62128 2006-06-21  Simon Josefsson  <jas@extundo.com>
62129
62130         * tests/test-getaddrinfo.c: New file.
62131
62132         * modules/getaddrinfo-tests: New file.
62133
62134         * MODULES.html.sh: Add inet_pton.
62135
62136         * modules/inet_pton: New file.
62137
62138 2006-06-21  Simon Josefsson  <jas@extundo.com>
62139
62140         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62141         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62142         of using the (limited) gnulib implementation on Windows XP.
62143
62144         * m4/inet_pton.m4: New file.
62145
62146 2006-06-21  Simon Josefsson  <jas@extundo.com>
62147
62148         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62149         variable.
62150
62151         * lib/socket_.h: Don't define WINVER.
62152
62153         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62154         slightly modified to work in gnulib.
62155
62156 2006-06-21  Simon Josefsson  <jas@extundo.com>
62157
62158         * doc/gnulib.texi (Windows sockets): Add.
62159
62160 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62161
62162         * lib/read-file.c (fread_file): Start with buffer allocation of
62163         0 bytes rather than 1 byte; this simplifies the code.
62164         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62165         code to free buffer and save/restore errno.
62166         (internal_read_file): Remove unused local.
62167
62168 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62169
62170         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62171         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62172         Problem reported by Denis Excoffier in
62173         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62174
62175 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62176
62177         * modules/sys_socket, modules/socklen: Include sys/types since
62178         FreeBSD 4.x's sys/socket.h needs it.
62179
62180 2006-06-19  Simon Josefsson  <jas@extundo.com>
62181
62182         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62183
62184 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62185
62186         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62187
62188 2006-06-19  Bruno Haible  <bruno@clisp.org>
62189
62190         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62191         and FULL_PATH_INTTYPES_H in angle brackets.
62192         Reported by Mark D. Baushke <mdb@gnu.org>.
62193
62194 2006-06-17  Eric Blake  <ebb9@byu.net>
62195
62196         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62197         errno.
62198
62199 2006-06-17  Bruno Haible  <bruno@clisp.org>
62200
62201         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62202         <sys/inttypes.h>.
62203
62204 2006-06-17  Bruno Haible  <bruno@clisp.org>
62205
62206         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62207         whether errno is declared. Assume <errno.h> declares errno.
62208
62209 2006-06-17  Bruno Haible  <bruno@clisp.org>
62210
62211         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62212
62213 2006-06-17  Bruno Haible  <bruno@clisp.org>
62214
62215         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62216         problem on Solaris 2.5.1.
62217
62218 2006-06-16  Eric Blake  <ebb9@byu.net>
62219
62220         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62221         * lib/unicodeio.c [!defined errno]: Likewise.
62222         * lib/strtol.c [!defined errno]: Likewise.
62223         * lib/strtod.c [!defined errno]: Likewise.
62224
62225 2006-06-15  Eric Blake  <ebb9@byu.net>
62226
62227         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62228
62229 2006-06-15  Eric Blake  <ebb9@byu.net>
62230
62231         * config/srclist.txt (ssize_t.m4): Lose sync.
62232
62233 2006-06-15  Bruno Haible  <bruno@clisp.org>
62234
62235         * modules/stdint (Files): Include m4/full-header-path.m4,
62236         m4/size_max.m4, m4/wchar_t.m4.
62237         (Makefile.am): Many more substitutions.
62238         * modules/stdint-tests: New file.
62239         * tests/test-stdint.c: New file.
62240
62241 2006-06-15  Bruno Haible  <bruno@clisp.org>
62242
62243         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62244         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62245         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62246         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62247         gl_CHECK_TYPE_SAME): New macros.
62248
62249 2006-06-15  Bruno Haible  <bruno@clisp.org>
62250
62251         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62252
62253 2006-06-15  Bruno Haible  <bruno@clisp.org>
62254
62255         * lib/stdint_.h: Rewritten to be fully auto-configured.
62256         Fixes bug on HP-UX/IA64.
62257
62258 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62259
62260         * lib/getdate.y (__attribute__): Don't define if already defined.
62261         Problem reported by Larry Jones.
62262         * lib/utimens.c (__attribute__): Likewise.
62263
62264 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62265
62266         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62267         reported by Andreas Schwab.
62268
62269 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62270             Bruno Haible  <bruno@clisp.org>
62271
62272         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62273         check for the declaration of strnlen and a run test that exposes the
62274         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62275         rpl_strndup.
62276
62277 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62278             Bruno Haible  <bruno@clisp.org>
62279
62280         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62281
62282 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62283
62284         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62285         compile test, for Tru64 4.0D.
62286
62287 2006-05-28  Karl Berry  <karl@gnu.org>
62288
62289         * config/srclist.txt (printf-args.c): lose sync.
62290
62291 2006-05-26  Martin Lambers  <marlam@marlam.de>
62292
62293         * lib/getpass.c: Updates the test for the native W32 API, and adds
62294         missing includes, thus fixing compilation warnings.
62295
62296 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62297
62298         * lib/exclude.c (exclude_fnmatch): New function.
62299         (excluded_file_name): Call exclude_fnmatch.
62300         * lib/exclude.h (excluded_file_name): New prototype
62301
62302 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62303
62304         * lib/tempname.c (small_open, large_open): New macros.
62305         (__open, __open64) [!_LIBC]: Remove.
62306         (__gen_tempname): Use small_open and large_open instead of __open
62307         and __open64.  This fixes a portability bug on HP-UX 11.11i
62308         reported by Simon Wing-Tang in
62309         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62310
62311 2006-05-24  Bruno Haible  <bruno@clisp.org>
62312
62313         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62314         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62315         Reported by Thorsten Maerz <torte@netztorte.de> via
62316         Aaron Stone <aaron@serendipity.cx>.
62317
62318 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62319
62320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62321         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62322         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62323         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62324         not really conditional on the cache.
62325         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62326
62327 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62328
62329         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62330         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62331         (my_usleep): Don't mishandle maximum value.
62332
62333 2006-05-19  Jim Meyering  <jim@meyering.net>
62334
62335         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62336
62337 2006-05-17  Bruno Haible  <bruno@clisp.org>
62338
62339         Cygwin portability.
62340         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62341
62342 2006-05-17  Bruno Haible  <bruno@clisp.org>
62343
62344         * lib/stdint_.h: Fix recognition of Cygwin.
62345
62346 2006-05-15  Bruno Haible  <bruno@clisp.org>
62347
62348         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62349         on libtool patch by Ralf Wildenhues.
62350
62351 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62352
62353         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62354         test for C99 conformance; (bool) 0.5 is an integer constant
62355         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62356         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62357
62358 2006-05-11  Simon Josefsson  <jas@extundo.com>
62359
62360         * m4/xvasprintf.m4: Fix obvious typo.
62361
62362 2006-05-11  Jim Meyering  <jim@meyering.net>
62363
62364         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62365         James Lemley.
62366
62367 2006-05-10  Simon Josefsson  <jas@extundo.com>
62368
62369         * lib/md4.c: Typo fix, update copyright years.
62370         (K1, K2): Don't use L because it turn computations into 64-bit on
62371         64-bit platforms.
62372
62373 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62374
62375         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62376         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62377         unwanted sign propagation, e.g., on hosts with 64-bit int.
62378         There still are some problems with reeelly weird theoretical hosts
62379         (e.g., 33-bit int) but it's not worth worrying about now.
62380         * lib/sha1.c (rol): Likewise.
62381         (K1, K2, K3, K4): Remove unnecessary L suffix.
62382
62383 2006-05-10  Bruno Haible  <bruno@clisp.org>
62384
62385         * lib/des.c: Cast to avoid warnings.
62386
62387 2006-05-09  Bruno Haible  <bruno@clisp.org>
62388
62389         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62390         (Depends-on): Depend also on xsize, stdarg.
62391         (configure.ac): Add gl_XVASPRINTF.
62392
62393 2006-05-09  Bruno Haible  <bruno@clisp.org>
62394
62395         * m4/xvasprintf.m4: New file.
62396
62397 2006-05-09  Bruno Haible  <bruno@clisp.org>
62398
62399         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62400         (EOVERFLOW): Define fallback value.
62401         (xstrcat): New function.
62402         (xvasprintf): Recognize the special case of a string concatenation.
62403
62404 2006-05-08  Eric Blake  <ebb9@byu.net>
62405
62406         * gnulib-tool (func_version): Base copyright year on CVS date.
62407         (func_emit_copyright_notice): New function.
62408         (func_emit_lib_Makefile_am): Use it.
62409         (func_emit_tests_Makefile_am): Likewise.
62410         (func_import): Likewise.
62411
62412 2006-05-08  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/stdarg: New file.
62415         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62416
62417 2006-05-08  Bruno Haible  <bruno@clisp.org>
62418
62419         * m4/stdarg.m4: New file, from GNU gettext.
62420
62421 2006-05-08  Bruno Haible  <bruno@clisp.org>
62422
62423         * config/srclist.txt (build-aux/config.rpath): different from latest
62424         release.
62425
62426 2006-05-08  Bruno Haible  <bruno@clisp.org>
62427
62428         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62429
62430 2006-05-05  Jim Meyering  <jim@meyering.net>
62431
62432         * m4/warning.m4: New file, derived from bison's file by the same name.
62433
62434 2006-05-03  Bruno Haible  <bruno@clisp.org>
62435
62436         * lib/stdint_.h: Shorter URL.
62437         * lib/inttypes.h: Likewise.
62438
62439 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62440
62441         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62442
62443 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62444
62445         * lib/verify.h: Document the internals better.  Most of this change
62446         was written by Bruno Haible.
62447
62448 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         * doc/verify.texi: New file, partly based on a proposal by
62451         Bruno Haible.
62452
62453 2006-05-02  Bruno Haible  <bruno@clisp.org>
62454
62455         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62456         test from here...
62457         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62458
62459 2006-04-29  Bruno Haible  <bruno@clisp.org>
62460
62461         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62462         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62463
62464 2006-04-29  Bruno Haible  <bruno@clisp.org>
62465
62466         * gnulib-tool: Make --update option actually work.
62467
62468 2006-04-29  Bruno Haible  <bruno@clisp.org>
62469
62470         * doc/gcd.texi: New file.
62471         * doc/gnulib.texi: Include it.
62472
62473 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62474
62475         * lib/getdate.y (get_date): When adding relative date, start with the
62476         initial time, not with the result of the first mktime call.
62477
62478 2006-04-25  Bruno Haible  <bruno@clisp.org>
62479
62480         * gnulib-tool (func_import): Output the include directives in three
62481         blocks, sorted separately.
62482         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62483
62484 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62485
62486         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62487         to define main with arguments, for C++.  Reported by Eric Blake.
62488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62489         Prefer 'int main ()' to 'int main (void)', for C++.
62490         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62491         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62492         for 'main', for C99 and C++.
62493
62494 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62495
62496         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62497         Don't assume that exit status -1 is valid.
62498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62499         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62500         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62501         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62502         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62503         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62504         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62505         functions can be used without declaring them, or that you can
62506         exit with status -1.
62507         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62508
62509 2006-04-24  Karl Berry  <karl@gnu.org>
62510
62511         * config/srclist.txt (longdouble.m4): sync lost.
62512
62513 2006-04-24  Eric Blake  <ebb9@byu.net>
62514
62515         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62516
62517 2006-04-24  Bruno Haible  <bruno@clisp.org>
62518
62519         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62520         poll() implementation in AIX.
62521         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62522
62523 2006-04-24  Bruno Haible  <bruno@clisp.org>
62524
62525         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62526         assigned exactly once.
62527
62528 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62529             Bruno Haible  <bruno@clisp.org>
62530
62531         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62532         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62533         for AM_CPPFLAGS.
62534
62535 2006-04-23  Bruno Haible  <bruno@clisp.org>
62536
62537         * modules/copy-file: Depend on unistd.
62538         * modules/execute: Likewise.
62539         * modules/fatal-signal: Likewise.
62540         * modules/findprog: Likewise.
62541         * modules/mkdtemp : Likewise.
62542         * modules/pipe: Likewise.
62543         * modules/wait-process: Likewise.
62544
62545 2006-04-23  Bruno Haible  <bruno@clisp.org>
62546
62547         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
62548         condition was already detected.
62549         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62550
62551 2006-04-23  Bruno Haible  <bruno@clisp.org>
62552
62553         * lib/copy-file.c: Include <unistd.h> unconditionally.
62554         * lib/execute.c: Likewise.
62555         * lib/fatal-signal.c: Likewise.
62556         * lib/findprog.c: Likewise.
62557         * lib/mkdtemp.c: Likewise.
62558         * lib/pipe.h: Likewise.
62559         * lib/pipe.c: Likewise.
62560         * lib/wait-process.h: Likewise.
62561
62562 2006-04-23  Bruno Haible  <bruno@clisp.org>
62563
62564         * gnulib-tool (func_usage): Fix --import description. Document
62565         --update.
62566         (func_import): Create temporary file in a temporary directory, if
62567         --dry-run is specified. Silence errors from 'grep' when there are no
62568         m4 files in $m4dir.
62569         (func_create_testdir): Silence errors from 'grep' when there are no
62570         m4 files in $m4dir.
62571         Reported by Karl Berry <karl@freefriends.org>.
62572
62573 2006-04-20  Bruno Haible  <bruno@clisp.org>
62574
62575         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
62576         one argument, so that the code will be portable to Autoconf 2.60.
62577         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
62578         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
62579         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
62580
62581 2006-04-19  Derek Price  <derek@ximbiot.com>
62582             Eric Blake  <ebb9@byu.net>
62583
62584         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
62585         rather than "/full/path.h".  Update comment to match.  Shorten &
62586         generalize m4_translit call via AS_TR_CPP.
62587
62588 2006-04-19  Derek Price  <derek@ximbiot.com>
62589             Eric Blake  <ebb9@byu.net>
62590
62591         * lib/inttypes.h: Correct grammar in comment.
62592
62593 2006-04-18  Derek Price  <derek@ximbiot.com>
62594             Paul Eggert  <eggert@cs.ucla.edu>
62595
62596         * modules/inttypes: New file.
62597         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
62598
62599 2006-04-18  Derek Price  <derek@ximbiot.com>
62600             Paul Eggert  <eggert@cs.ucla.edu>
62601
62602         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
62603         New files.
62604
62605 2006-04-18  Derek Price  <derek@ximbiot.com>
62606             Paul Eggert  <eggert@cs.ucla.edu>
62607
62608         * lib/inttypes.h: New file.
62609         * lib/strtoimax.c: Assume <inttypes.h>.
62610
62611 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
62614         isn't mounted.  Problem reported by Kir Kolyshkin.
62615
62616 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
62619         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
62620         Derek R. Price.
62621         * lib/regex.h (RE_DUP_MAX): Update comment to match current
62622         implementation.
62623
62624 2006-04-12  Eric Blake  <ebb9@byu.net>
62625
62626         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
62627         is now done automatically by the corresponding Autoconf macro.
62628
62629 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
62630
62631         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
62632         time_r.h.
62633
62634 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62635
62636         Merge regex changes from libc, removing some of our
62637         POSIX-conformance changes that were rejected and redoing them in a
62638         less-intrusive way.
62639
62640         * lib/regcomp.c (re_compile_internal, init_dfa):
62641         Length arg is now size_t, not Idx.  All uses changed.
62642         (peek_token): Forward decl now says internal_function.
62643         (__re_error_msgid, __re_error_msgid_idx):
62644         Now static rather than extern with attribute_hidden.
62645         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
62646         For some reason libc prefers K&R style defns for external functions.
62647         (regerror) [!defined _LIBC]: Likewise.
62648         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
62649         (seek_collating_symbol_entry, lookup_collation_sequence_value):
62650         (build_range_exp, build_collating_symbol):
62651         Use K&R-style defn.
62652         (re_compile_fastmap): Use '\0' to memset, not 0.
62653         (utf8_sb_map): Make the calculations more obvious.
62654         (init_dfa, parse_bracket_exp, build_charclass_op):
62655         Call calloc and cast result, as glibc does.
62656         (init_word_char, fetch_token, peek_token, peek_token_bracket):
62657         (build_range_exp, build_collating_symbol):
62658         Now internal functions.
62659
62660         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
62661
62662         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
62663         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
62664         Don't depend on VMS; depend on __VMS instead, for POSIX
62665         namespace cleanness.
62666         (regoff_t): Define to ssize_t, not long int.
62667
62668         Remove the REG_ macros named below.  Instead, make the old names
62669         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
62670         __USE_GNU_REGEX.
62671         (REG_BACKSLASH_ESCAPE_IN_LISTS):
62672         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
62673         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
62674         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
62675         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
62676         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
62677         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
62678         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
62679         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
62680         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
62681         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
62682         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
62683         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
62684         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
62685         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
62686         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
62687         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
62688         (REG_NREGS):
62689         Remove.  All uses replaced by the old RE_* names.
62690         (RE_BACKSLASH_ESCAPE_IN_LISTS):
62691         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
62692         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
62693         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
62694         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
62695         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
62696         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
62697         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
62698         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
62699         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
62700         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
62701         Don't bother having these macros be independent of each others'
62702         values, since they no longer exist in the POSIX name space.
62703
62704         Rename the following member names back to their old names,
62705         unless !__USE_GNU_REGEX.  All uses changed back.
62706         (buffer): Renamed from re_buffer.
62707         (allocated): Renamed from re_allocated.
62708         (used): Renamed from re_used.
62709         (syntax): Renamed from re_syntax.
62710         (fastmap): Renamed from re_fastmap.
62711         (translate): Renamed from re_translate.
62712         (can_be_null): Renamed from re_can_be_null.
62713         (regs_allocated): Renamed from re_regs_allocated.
62714         (fastmap_accurate): Renamed from re_fastmap_accurate.
62715         (no_sub): Renamed from re_no_sub.
62716         (not_bol): Renamed from re_not_bol.
62717         (not_eol): Renamed from re_not_eol.
62718         (newline_anchor): Renamed from re_newline_anchor.
62719         (num_regs): Renamed from rm_num_regs.
62720         (start): Renamed from rm_start.
62721         (end): Renamed from rm_end.
62722
62723         (free_state): Move up a bit.
62724
62725         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
62726         #define to be empty.
62727         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
62728         when that is what is intended.
62729         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
62730         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
62731         (MAX): New macro.
62732         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
62733         All uses changed back to re_malloc, etc.  It's now the caller's
62734         responsibility to check for overflow; all callers changed.
62735         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
62736         (re_x2nrealloc): Remove.
62737         (free_state): Remove decl.
62738
62739         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
62740         (re_set_registers, re_exec):
62741         Use K&R-style defn.
62742
62743         2006-01-31  Roland McGrath  <roland@redhat.com>
62744
62745         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
62746         Reported by Mike Frysinger <vapier@gentoo.org>.
62747
62748         2006-01-15  Andreas Jaeger  <aj@suse.de>
62749
62750         [BZ #1950]
62751         * lib/regex_internal.c (re_string_reconstruct): Adjust for
62752         build_wcs_upper_buffer change.
62753         (build_wcs_upper_buffer): Change return type.
62754
62755         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
62756
62757         * lib/regex_internal.h: Include <stdint.h> if available.
62758
62759         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
62760
62761         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
62762
62763         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62764
62765         * lib/regcomp.c: Adjust for changed secondary hash function.
62766
62767         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
62768
62769         * lib/regex.h: Pretty printing.
62770         Clean up namespace a bit.
62771
62772         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
62773
62774         * lib/regexec.c (update_cur_sifted_state, check_arrival,
62775         check_arrival_add_next_nodes): Avoid using uninitialized variable.
62776
62777         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62778                     Ulrich Drepper  <drepper@redhat.com>
62779
62780         [BZ #1302]
62781         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
62782         changed.
62783         (bitset_word_t): Renamed from bitset_word.  All uses changed.
62784
62785         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
62786
62787         [BZ #281]
62788         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
62789         * lib/regcomp.c: Remove unnecessary uses of
62790         unsigned RE_TRANSLATE_TYPE.
62791         * lib/regex_internal.h: Likewise.
62792         * lib/regex_internal.c: Likewise.
62793         * lib/regexec.c: Likewise.
62794         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
62795
62796         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
62797
62798         * lib/regexec.c (find_recover_state): Remove unnecessary
62799         initialization.
62800         (transit_state_bkref): Make DFA a const pointer.
62801         (get_subexp): Likewise.
62802         (check_arrival): Likewise.
62803         (update_cur_sifted_state): Likewise.
62804         (re_search_internal): Likewise.
62805         (prune_impossible_nodes): Likewise.
62806         (acquire_init_state_context): Likewise.
62807         (proceed_next_node): Likewise.
62808         (set_regs): Likewise.
62809         (free_fail_stack_return): Likewise.
62810         (check_arrival_expand_ecl): Mark DFA parameter as const.
62811         (check_arrival_expand_ecl_sub): Likewise.
62812         (check_subexp_limits): Likewise.
62813         (sub_epsilon_src_nodes):  Likewise.
62814         (add_epsilon_src_nodes):  Likewise.
62815         (merge_state_array): Likewise.
62816         (update_regs): Likewise.
62817         (build_trtable): Likewise.
62818         (sift_states_backward): Mark MCTX parameter as const.
62819         (build_sifted_states): Likewise.
62820         (update_cur_sifted_state): Likewise.
62821         (sift_states_mkref): Likewise.
62822         (check_arrival_expand_ecl): Mark eclosure as const.
62823         (check_dst_limits_calc_pos_1): Likewise.
62824         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62825         pointer.
62826
62827         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62828
62829         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62830         (transit_state_sb): Likewise.
62831         (transit_state_mb): Likewise.
62832         (sift_states_iter_mb): Likewise.
62833         (check_arrival_add_next_nodes): Likewise.
62834         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62835         [_LIBC] (re_search_2_stub): Use mempcpy.
62836
62837         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62838         mbrtowc for very simple UTF-8 case.
62839
62840         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62841         a pointer-to-const.
62842         (re_acquire_state_context): Likewise.
62843         * lib/regex_internal.h: Adjust prototypes.
62844
62845         * lib/regex.c: Prevent using C++ compilers.
62846
62847         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62848         (re_acquire_state_context): Likewise.
62849
62850 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62851
62852         * modules/regex (Depends-on): Add ssize_t.
62853
62854 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62857         translation table.
62858
62859 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62862
62863 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62864             Bruno Haible  <bruno@clisp.org>
62865
62866         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62867         <sys/types.h> and <inttypes.h>.
62868
62869 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62870
62871         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62872         `__error_t_defined', so argp.h will not typedef the former.
62873
62874 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62875
62876         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62877         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62878         glibc names.  Even if glibc is changed to conform to POSIX, the
62879         traditional names will be available anyway, since regex depends on
62880         the extensions module.  Also, fix a longstanding typo in the
62881         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62882         reported by Emanuele Giaquinta.  Also, change sense of cached
62883         variable, so that the message makes sense.
62884
62885 2006-03-24  Simon Josefsson  <jas@extundo.com>
62886
62887         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62888         including some doc fixes.
62889         (base64_encode_alloc): Fix +1 bug on allocation failures.
62890
62891 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62892
62893         * lib/base64.c (base64_encode): Do not read past end of array with
62894         unsanitized input on systems with CHAR_BIT > 8.
62895
62896 2006-03-24  Eric Blake  <ebb9@byu.net>
62897
62898         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62899
62900 2006-03-22  Karl Berry  <karl@gnu.org>
62901
62902         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62903         * config/srclistvars.sh (COREUTILS): new var.
62904
62905 2006-03-17  Jim Meyering  <jim@meyering.net>
62906
62907         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62908         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62909
62910 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62911
62912         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62913         no longer needs it.  Instead, check that regoff_t is as least
62914         as wide as ptrdiff_t.
62915
62916         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62917         so that our regex.h stays compatible with the installed regex.
62918         This is helpful for installers who configure --without-included-regex.
62919         Problem reported by Emanuele Giaquinta.
62920
62921 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62922
62923         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62924         Typedef to long int, not to off_, as POSIX will likely change
62925         in that direction.
62926
62927 2006-03-15  Eric Blake  <ebb9@byu.net>
62928
62929         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62930
62931 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62932
62933         * lib/argp-help.c (validate_uparams): Fix typo
62934         * lib/argp-parse.c (argp_default_options): Consistently begin help
62935         messages with a lowercase letter.
62936
62937 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62940         overrun buffers and shouldn't be used (much as gets shouldn't be
62941         used).
62942         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62943
62944 2006-03-08  Simon Josefsson  <jas@extundo.com>
62945
62946         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62947         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62948
62949 2006-03-08  Simon Josefsson  <jas@extundo.com>
62950
62951         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62952         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62953
62954 2006-03-08  Simon Josefsson  <jas@extundo.com>
62955
62956         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62957         signal that configure disabled the device.
62958
62959 2006-03-08  Simon Josefsson  <jas@extundo.com>
62960
62961         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62962         languages.
62963
62964 2006-03-07  Simon Josefsson  <jas@extundo.com>
62965
62966         * modules/getopt (Depends-on): Add unistd.
62967
62968         * modules/unistd: New file.
62969
62970 2006-03-07  Simon Josefsson  <jas@extundo.com>
62971
62972         * modules/gc-random: New file.
62973
62974 2006-03-07  Simon Josefsson  <jas@extundo.com>
62975
62976         * m4/unistd_h.m4: New file.
62977
62978 2006-03-07  Simon Josefsson  <jas@extundo.com>
62979
62980         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62981         test to be side-effect free by storing the result in the cache
62982         variable gl_cv_lib_readline, and moving the assignment of
62983         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62984         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62985
62986 2006-03-07  Simon Josefsson  <jas@extundo.com>
62987
62988         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62989         error on missing devices (the functions will return an error).
62990
62991         * m4/gc.m4: Move random stuff to gc-random.m4
62992
62993 2006-03-07  Simon Josefsson  <jas@extundo.com>
62994
62995         * lib/unistd_.h: New file.
62996
62997 2006-03-07  Simon Josefsson  <jas@extundo.com>
62998
62999         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63000
63001 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63002
63003         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63004         Problem reported by Juan Manuel Guerrero.
63005
63006 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63007
63008         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63009         the unistd module.
63010         * lib/getlogin_r.c: Likewise.
63011         * lib/getlogin_r.h: Likewise.
63012         * lib/glob.c: Likewise.
63013         * lib/pagealign_alloc.c: Likewise.
63014         * lib/unistd_.h: Remove; no longer needed.
63015
63016 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63017
63018         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63019         Add unistd.
63020         * modules/c-stack (Depends-on): Add unistd.
63021         * modules/getlogin_r: Likewise.
63022         * modules/glob: Likewise.
63023         * modules/pagealign_alloc: Likewise.
63024         * modules/unistd (Files): Remove lib/unistd_.h.
63025         (EXTRA_DIST): Remove.
63026         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63027         need unistd_.h.
63028         (MOSTLYCLEANFILES): Remove unistd.h-t.
63029
63030 2006-03-03  Simon Josefsson  <jas@extundo.com>
63031
63032         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63033
63034 2006-03-03  Simon Josefsson  <jas@extundo.com>
63035
63036         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63037         libidn and bison.
63038
63039 2006-03-03  Simon Josefsson  <jas@extundo.com>
63040
63041         * build-aux/maint.mk: Add indent target.
63042
63043 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63044
63045         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63046         our replacement poll.h in any case, to avoid a differing
63047         declaration from a system header.  Seen on AIX.
63048
63049 2006-03-01  Simon Josefsson  <jas@extundo.com>
63050
63051         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63052         <kasal@ucw.cz>.
63053
63054 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * modules/gettime (Depends-on): Add extensions module.
63057         * modules/nanosleep (Depends-on): Likewise.
63058         * modules/settime (Depends-on): Likewise.
63059
63060 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63063         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63064         pedantically.
63065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63066         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63067
63068         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63069         not "==".  Reported by Ralf Wildenhues.
63070
63071 2006-03-01  Karl Berry  <karl@gnu.org>
63072
63073         * doc/Copyright/request-*: new files, synced from gnuorg.
63074
63075 2006-03-01  Karl Berry  <karl@gnu.org>
63076
63077         * config/srclist.txt (Copyright/*): new entries.
63078
63079 2006-02-28  Simon Josefsson  <jas@extundo.com>
63080
63081         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63082
63083 2006-02-27  Simon Josefsson  <jas@extundo.com>
63084
63085         * lib/base64.h: Indent #define's.  From Jim Meyering
63086         <jim@meyering.net>.
63087
63088 2006-02-27  Jim Meyering  <jim@meyering.net>
63089
63090         Revert the change of 2006-02-24, so these files can continue
63091         to be sync'd from gettext.
63092         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63093         of `config.h'.
63094
63095 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63096
63097         * modules/intprops: New file.
63098         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63099         Add intprops.
63100         * modules/getloadavg (Files): Remove lib/intprops.h.
63101         (Depends-on): Add intprops.
63102         * modules/human: Likewise.
63103         * modules/inttostr: Likewise.
63104         * modules/openat: Likewise.
63105         * modules/sig2str: Likewise.
63106         * modules/userspec: Likewise.
63107         * modules/utimecmp: Likewise.
63108         * modules/xnanosleep: Likewise.
63109         * modules/xstrtol: Likewise.
63110
63111 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63112
63113         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63114         * modules/lock-tests (TESTS): Use $(EXEEXT).
63115         * modules/tls-tests: Likewise.
63116         * modules/argp-tests: Likewise.
63117         (check_PROGRAMS): New var, replacing...
63118         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63119
63120 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63121
63122         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63123         `config.h'.
63124
63125 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63126
63127         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63128
63129 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63130
63131         Sync from coreutils.
63132         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63133         gl_CHDIR_SAFER.
63134
63135 2006-02-22  Jim Meyering  <jim@meyering.net>
63136
63137         Sync from coreutils.
63138         * m4/chdir-safer.m4: New file.
63139
63140 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63143         AT_FDCWD exceeds INT_MAX.
63144         * lib/openat.h (AT_FDCWD): Likewise.
63145
63146 2006-02-17  Eric Blake  <address@hidden>
63147
63148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63149
63150 2006-02-16  Simon Josefsson  <jas@extundo.com>
63151
63152         * modules/getaddrinfo (Depends-on): Add sys_socket.
63153
63154 2006-02-15  Simon Josefsson  <jas@extundo.com>
63155
63156         * build-aux/maint.mk: Add dsyntax-check rule.
63157
63158 2006-02-15  Eric Blake  <ebb9@byu.net>
63159
63160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63161         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63162         'present but cannot compile' warnings on cygwin.
63163         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63164         use ws2tcpip.h if sys/socket.h works.
63165         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63166         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63167
63168 2006-02-14  Simon Josefsson  <jas@extundo.com>
63169
63170         * modules/maintainer-makefile (Files): Rename.
63171
63172         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63173         and (the local) Makefile.cfg to maint-cfg.mk.
63174
63175         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63176         to the latter.
63177
63178         * modules/maintainer-makefile: New module.
63179
63180         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63181         severaly stripped to make it possible to build it up from scratch
63182         with reliable tests.
63183
63184         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63185         fixes to permit overriding the default actions when configure and
63186         makefile are not available.
63187
63188 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63189
63190         Sync from coreutils.
63191         * modules/lstat (Depends-on): Don't depend on xalloc.
63192         (License): Change from GPL to LGPL, since this is now simply a
63193         replacement for a libc function.
63194
63195 2006-02-14  Jim Meyering  <jim@meyering.net>
63196
63197         Sync from coreutils.
63198
63199         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63200         failure on deficient systems, and simplify gnulib lgpl dependencies.
63201         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63202         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63203
63204         * lib/xalloc-die.c: Remove unused definition of N_.
63205
63206 2006-02-14  Jim Meyering  <jim@meyering.net>
63207
63208         Sync from coreutils.
63209         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63210         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63211         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63212         double-quote uses of that variable, to accommodate the rare case in
63213         which getmntent is available in none of the libraries checked.  This
63214         happens at least on FreeBSD 5.0.
63215
63216 2006-02-13  Simon Josefsson  <jas@extundo.com>
63217
63218         * gnulib-tool (Usage): Fix --import, from
63219         karl@freefriends.org (Karl Berry).
63220
63221 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63222
63223         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63224
63225 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63226
63227         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63228         "autoupdate" on 2005-12-12.
63229
63230 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63231
63232         * modules/closeout (Depends-on): Remove atexit.
63233
63234 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63237         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63238
63239 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63240
63241         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63242         __EXTENSIONS__ if this causes compilation to fail.  Problem
63243         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63244         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63245
63246 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63249         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63251         All uses changed.
63252
63253 2006-01-26  Simon Josefsson  <jas@extundo.com>
63254
63255         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63256         prototype is visible on mingw32.
63257
63258         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63259         for mingw32.
63260
63261         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63262         mingw32).
63263
63264 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63267         attempt to open for write; this always fails, at least on POSIX
63268         hosts.  This reinstates the 2006-01-09 change, which was
63269         inadvertently removed.
63270
63271 2006-01-26  Bruno Haible  <bruno@clisp.org>
63272
63273         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63274         Reported by Paul Eggert.
63275
63276 2006-01-26  Bruno Haible  <bruno@clisp.org>
63277             Paul Eggert  <eggert@cs.ucla.edu>
63278
63279         * lib/stdbool_.h (_Bool)
63280         [(! (defined __cplusplus || defined __BEOS__)
63281           && !defined __GNUC__
63282           && !(defined __HP_cc || defined __xlc__
63283                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63284                || defined __sgi))]:
63285         #define to signed char in these cases too; this simplifies
63286         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63287         etc., separately) and makes it more conservative.
63288
63289 2006-01-25  Simon Josefsson  <jas@extundo.com>
63290
63291         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63292         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63293         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63294
63295 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63296
63297         * lib/argp-namefrob.h: Bugfix. Remove stray #
63298
63299 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63300
63301         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63302         so that we test the test.
63303         Check for yet another HP-UX cc bug involving *bool |= bool.
63304
63305 2006-01-25  Karl Berry  <karl@gnu.org>
63306
63307         * config/srclist.txt (vasnprintf.c): sync lost.
63308
63309 2006-01-25  Jim Meyering  <jim@meyering.net>
63310
63311         Sync from the stable (b5) branch of coreutils:
63312
63313         * lib/fts.c (fts_children): Don't let close() clobber errno from
63314         failed fchdir().
63315
63316         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63317         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63318         a dangling symlink.  That can also happen at least for ELOOP.
63319         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63320         FYI, this bug predates the inclusion of fts.c in coreutils.
63321
63322         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63323         in their own block, so pre-c99 compilers don't object.
63324
63325         Avoid the double-free (first in fts_read, second in fts_close) that
63326         would occur when an `active' directory is made inaccessible (e.g.,
63327         via chmod a-x) during a traversal.
63328         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63329         before returning.  Reproduce this failure by
63330         mkdir -p a/b; cd a; chmod a-x . b
63331         Reported by Stavros Passas.
63332
63333 2006-01-25  Jim Meyering  <jim@meyering.net>
63334
63335         * lib/fileblocks.c: Remove more useless parentheses.
63336         * lib/readutmp.h: Likewise.
63337
63338 2006-01-25  Bruno Haible  <bruno@clisp.org>
63339
63340         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63341         warnings.
63342         Reported by Paul Eggert.
63343
63344 2006-01-25  Bruno Haible  <bruno@clisp.org>
63345
63346         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63347         rid of a trap command. For Solaris sh.
63348         Reported by Mark D. Baushke <mdb@gnu.org>.
63349
63350 2006-01-24  Simon Josefsson  <jas@extundo.com>
63351
63352         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63353         Bruno.
63354
63355 2006-01-24  Karl Berry  <karl@gnu.org>
63356
63357         * config/srclist.txt (argp-namefrob.h): sync lost.
63358
63359 2006-01-24  Jim Meyering  <jim@meyering.net>
63360
63361         * modules/openat (Files): Add lib/intprops.h.
63362         From Mark D. Baushke.
63363
63364 2006-01-24  Jim Meyering  <jim@meyering.net>
63365
63366         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63367         Reported by Mark D. Baushke.
63368
63369 2006-01-24  Jim Meyering  <jim@meyering.net>
63370
63371         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63372
63373 2006-01-24  Bruno Haible  <bruno@clisp.org>
63374
63375         * modules/strnlen (Maintainer): Change from glibc to all.
63376
63377 2006-01-24  Bruno Haible  <bruno@clisp.org>
63378
63379         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63380         Patch by Paul Eggert.
63381
63382 2006-01-24  Bruno Haible  <bruno@clisp.org>
63383
63384         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63385         already has it.
63386         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63387         2005-11-26.
63388
63389         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63390         'signed char' to avoid problems with the built-in _Bool type.
63391         Reported by Paul Eggert on 2005-11-26.
63392
63393 2006-01-24  Bruno Haible  <bruno@clisp.org>
63394
63395         * gnulib-tool (func_import): Avoid constructing complicated sed
63396         expressions inside backquote.
63397         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63398
63399 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63400
63401         These changes imported from libc.
63402         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63403         test and two separate function calls.
63404         * lib/strndup.c (__strndup): Add libc_hidden_def.
63405
63406 2006-01-23  Simon Josefsson  <jas@extundo.com>
63407
63408         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63409         Remove the test_*_SOURCES variable: automake infers it by default.
63410         * modules/tls-tests: Likewise.
63411
63412 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63413
63414         Work around porting bugs reported by Dieter in
63415         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63416         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63417         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63418         Include "getopt.h" first, to check interface.
63419         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63420         !HAVE_DECL_GETENV.
63421         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63422         (__strndup): Revert to K&R-style function dfns, the glibc style.
63423         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63424         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63425         Include strnlen.h first, to get prototype properly.
63426         (strnlen): Renamed from __strnlen.
63427         Remove weak alias.
63428
63429 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63430
63431         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63432
63433 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         * config/srclist.txt: Adjust to reflect glibc reorganization.
63436         This affects only comments.
63437
63438 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63439
63440          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63441          Reported by Bruce Korb <bkorb@gnu.org>.
63442
63443 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63444
63445         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63446         to pacify gcc -Wswitch-default.
63447
63448 2006-01-22  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63451         temporary buffer for sprintf, take into account the precision also
63452         for 'd', 'i', 'u', 'o', 'x', 'X'.
63453
63454 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63455
63456         * modules/argp-tests: New module
63457         * tests/test-argp.c: New file
63458         * tests/test-argp-2.sh: New file
63459
63460 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63461
63462         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63463         (__argp_base_name): Removed
63464         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63465         typo.
63466         (__argp_base_name): Provide macro definition or extern declaration
63467         depending on the configuration
63468
63469 2006-01-20  Simon Josefsson  <jas@extundo.com>
63470
63471         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63472
63473 2006-01-20  Simon Josefsson  <jas@extundo.com>
63474
63475         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63476
63477 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63478
63479         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63480         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63481         Suggested by Bruno Haible.
63482
63483 2006-01-20  Karl Berry  <karl@gnu.org>
63484
63485         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63486         until changes propagate, I guess.
63487
63488 2006-01-19  Simon Josefsson  <jas@extundo.com>
63489
63490         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63491
63492 2006-01-19  Simon Josefsson  <jas@extundo.com>
63493
63494         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63495
63496 2006-01-19  Simon Josefsson  <jas@extundo.com>
63497
63498         * gnulib-tool: Set check_PROGRAMS.
63499
63500         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63501         modules/des-tests, modules/gc-arcfour-tests,
63502         modules/gc-arctwo-tests, modules/gc-des-tests,
63503         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63504         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63505         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63506         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63507         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63508         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63509         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63510         test_*_SOURCES.
63511
63512 2006-01-18  Simon Josefsson  <jas@extundo.com>
63513
63514         * modules/socklen (Depends-on): Depend on sys_socket.
63515
63516 2006-01-18  Simon Josefsson  <jas@extundo.com>
63517
63518         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63519         modules/des-tests, modules/gc-arcfour-tests,
63520         modules/gc-arctwo-tests, modules/gc-des-tests,
63521         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63522         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63523         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63524         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63525         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63526         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63527         $(EXEEXT) to automake TESTS variable, for mingw32.
63528
63529 2006-01-17  Simon Josefsson  <jas@extundo.com>
63530
63531         * modules/socklen (Include): Need sys/socket.h.
63532
63533 2006-01-17  Bruno Haible  <bruno@clisp.org>
63534
63535         * modules/ssize_t (Include): Add <sys/types.h>.
63536
63537 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63538
63539         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63540         it's not portable and it doesn't work with cross-compiles.
63541         Problem reported by Bruno Haible.  Fix missing-$ typo in
63542         'test "gl_cv_ignore_unused_libraries" ...' that prevented
63543         -zignore from being used with Sun's C compiler.
63544
63545 2006-01-12  Simon Josefsson  <jas@extundo.com>
63546
63547         * lib/base64.c: Fix warning, reported by Bruno Haible
63548         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
63549
63550 2006-01-12  Bruno Haible  <bruno@clisp.org>
63551
63552         * modules/ldd: New file.
63553         * build-aux/ldd.sh.in: New file.
63554         * MODULES.html.sh (Support for building libraries and executables): Add
63555         ldd.
63556
63557 2006-01-12  Bruno Haible  <bruno@clisp.org>
63558
63559         * m4/ldd.m4: New file.
63560
63561 2006-01-12  Bruno Haible  <bruno@clisp.org>
63562
63563         * gnulib-tool (func_import, func_create_testdir): Don't go into an
63564         endless loop while replacing $auxdir with build-aux.
63565
63566 2006-01-11  Simon Josefsson  <jas@extundo.com>
63567
63568         * lib/stdint_.h (SIZE_MAX): Add missing (.
63569
63570 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
63571
63572         Sync from coreutils.
63573         * lib/md5.c: Fix commentary typos.
63574         (alignof, UNALIGNED_P): No need for a GCC-specific version.
63575         * lib/md5.h (__attribute__): Remove; unused.
63576         * lib/sha1.c: Fix commentary to match md5 better.
63577         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
63578         so that we don't need to worry about alignment.  All uses changed.
63579         This merges the 2005-10-28 md5 change into sha1.
63580
63581 2006-01-11  Jim Meyering  <jim@meyering.net>
63582
63583         Sync from coreutils.
63584         * lib/md5.c (OP): Fix spacing.
63585
63586 2006-01-11  Bruno Haible  <bruno@clisp.org>
63587
63588         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63589         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
63590         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
63591
63592 2006-01-11  Bruno Haible  <bruno@clisp.org>
63593
63594         Ensure automatic ordering between gl_LOCK and gl_ARGP.
63595         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
63596         the "early" section as well.
63597
63598 2006-01-11  Bruno Haible  <bruno@clisp.org>
63599
63600         Avoid "ar: no archive members specified" error on MacOS X.
63601         * gnulib-tool (func_modules_add_dummy): New function.
63602         (func_import, func_create_testdir): Invoke it.
63603
63604 2006-01-11  Bruno Haible  <bruno@clisp.org>
63605
63606         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
63607         with $auxdir in AC_CONFIG_FILES statements.
63608
63609 2006-01-11  Bruno Haible  <bruno@clisp.org>
63610
63611         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63612         Initialize also noinst_HEADERS to empty.
63613
63614 2006-01-11  Bruno Haible  <bruno@clisp.org>
63615
63616         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
63617         variables.
63618         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
63619         autoreconf.
63620
63621 2006-01-11  Bruno Haible  <bruno@clisp.org>
63622
63623         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
63624         overridable by the user.
63625         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63626
63627 2006-01-10  Simon Josefsson  <jas@extundo.com>
63628
63629         * modules/sys_socket: New file.
63630
63631 2006-01-10  Simon Josefsson  <jas@extundo.com>
63632
63633         * m4/sys_socket_h.m4: New file.
63634
63635 2006-01-10  Simon Josefsson  <jas@extundo.com>
63636
63637         * lib/socket_.h: New file.
63638
63639 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63640
63641         * modules/readutmp (Maintainer): Add myself.
63642
63643 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63644
63645         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
63646         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
63647         People who are still concerned with buggy memcmp implementations
63648         can invoke gl_FUNC_MEMCMP themselves.
63649
63650 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63651
63652         * lib/regex_internal.h (BITSET_WORD_BITS):
63653         Work around a bug in 64-bit PGC (before version 6.1-2), where the
63654         preprocessor mishandles large unsigned values as if they were signed.
63655         Problem reported by Claudio Fontana in
63656         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
63657
63658 2006-01-10  Jim Meyering  <jim@meyering.net>
63659
63660         Avoid the double-free (first in fts_read, second in fts_close) that
63661         would occur when an `active' directory is made inaccessible (e.g.,
63662         via chmod a-x) during a traversal.
63663         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63664         before returning.  Reproduce this failure by
63665         mkdir -p a/b; cd a; chmod a-x . b
63666         Reported by Stavros Passas.
63667
63668         Sync from coreutils.
63669         * lib/sha1.c: Tweak grammar in a comment.
63670
63671 2006-01-10  Jim Meyering  <jim@meyering.net>
63672
63673         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
63674         Patch by Joerg Sonnenberger.
63675
63676 2006-01-10  Bruno Haible  <bruno@clisp.org>
63677
63678         * modules/readutmp: Depend on module free.
63679         * modules/strtok_r: Depend on module restrict.
63680
63681 2006-01-10  Bruno Haible  <bruno@clisp.org>
63682
63683         * modules/gettext (configure.ac): Add an invocation of
63684         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
63685
63686 2006-01-10  Bruno Haible  <bruno@clisp.org>
63687
63688         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
63689         Reported by Werner Lemberg <wl@gnu.org>.
63690
63691 2006-01-10  Bruno Haible  <bruno@clisp.org>
63692
63693         * lib/localcharset.c: Update from GNU gettext.
63694
63695 2006-01-10  Bruno Haible  <bruno@clisp.org>
63696
63697         * lib/argp.h (__const): Remove macro. Use const instead.
63698         * lib/argp-fmtstream.h (__const): Likewise.
63699         * lib/glob_.h (__const): Remove macro.
63700         * lib/glob-libc.h: Use const instead of __const.
63701
63702 2006-01-10  Bruno Haible  <bruno@clisp.org>
63703
63704         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
63705         variable.
63706         Needed to avoid an automake error regarding the 'gettext' module.
63707
63708 2006-01-09  Simon Josefsson  <jas@extundo.com>
63709
63710         * modules/inet_ntop (Depends-on): Add restrict.
63711
63712 2006-01-09  Simon Josefsson  <jas@extundo.com>
63713
63714         * modules/gc-rijndael-tests (License): Put under LGPL.
63715
63716         * modules/gc-des-tests (License): Likewise.
63717
63718         * modules/gc-arcfour-tests (License): Likewise.
63719
63720         * modules/gc-arctwo-tests (License): Likewise.
63721
63722         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
63723
63724         * modules/gc-hmac-sha1-tests (Files): Likewise.
63725
63726         * modules/gc-hmac-md5-tests (License): Likewise.
63727
63728         * modules/gc-sha1-tests (License): Likewise.
63729
63730         * modules/gc-md5-tests (License): Likewise.
63731
63732         * modules/gc-md4-tests (License): Likewise.
63733
63734         * modules/gc-md2-tests (License): Likewise.
63735
63736         * modules/gc-tests (License): Likewise.
63737
63738         * modules/des-tests (License): Likewise.
63739
63740         * modules/md4-tests (License): Likewise.
63741
63742         * modules/md2-tests (License): Likewise.
63743
63744 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63745
63746         Sync from coreutils:
63747
63748         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
63749         * modules/lib-ignore: New file.
63750         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
63751         chdir-safer.m4, lchmod.m4.
63752         * modules/openat: Add mkdirat.c, openat-priv.h.
63753
63754 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         Sync from coreutils.
63757         * m4/lib-ignore.m4: New file.
63758         * m4/lchmod.m4: New file.
63759
63760 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63761
63762         Sync from coreutils.
63763         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
63764         for write access: POSIX says that must fail.
63765         * lib/fts.c (diropen): Likewise.
63766         * lib/save-cwd.c (save_cwd): Likewise.
63767         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
63768         well, for minor improvements on hosts that lack O_DIRECTORY.
63769         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
63770         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
63771         Fall back on chown if open failed with EACCES.
63772
63773         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
63774         Report an error at compile-time if only a 1-second nominal clock
63775         resolution is found.
63776
63777         * lib/lchmod.h: New file.
63778         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
63779         (make_dir_parents): Use lchown rather than chown, and
63780         lchmod rather than chmod.
63781
63782         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
63783         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
63784         "proc" reported by n0dalus.
63785
63786         * lib/mountlist.c: Include <limits.h>.
63787         (dev_from_mount_options)
63788         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
63789         New function.  It no longer assumes "dev=" has the System V meaning
63790         on Linux (since it doesn't).  It also parses "dev=" more carefully.
63791         (read_file_system_list)
63792         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
63793         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
63794         dev= in that case.
63795
63796         * lib/posixtm.h (PDS_PRE_2000): New macro.
63797         * lib/posixtm.c (year): Arg is now syntax_bits rather than
63798         allow_century.  All usages changed.  Reject dates outside the range
63799         1969-1999 if PDS_PRE_2000 is used.
63800
63801 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         Sync from coreutils.
63804         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
63805         (Time of day items): Mention the possibility of leap seconds.
63806         Problem reported by Dr. David Alan Gilbert.
63807
63808 2006-01-09  Jim Meyering  <jim@meyering.net>
63809
63810         Sync from coreutils.
63811
63812         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63813
63814         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63815
63816         * lib/modechange.c (mode_compile): Reject an invalid mode string
63817         that starts with an octal digit.  From Andreas Gruenbacher.
63818
63819         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63820         and dup to open_safer and dup_safer, respectively.
63821         (openat_permissive): Fix typo in comment.
63822
63823         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63824         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63825         (_): Remove; no longer needed.
63826         (openat): Renamed from rpl_openat; no need for rpl_openat
63827         since openat.h renames openat for us.
63828         Replace most of the body with a call to openat_permissive,
63829         to avoid duplicate code.
63830         Port to (probably hypothetical) environments were mode_t is
63831         wider than int.
63832         (openat_permissive): Require mode arg, so that we can check
63833         types better.  Put it just after flags.  Change cwd failure
63834         indicator from pointer-to-bool to pointer-to-errno-value.
63835         All callers changed.
63836         Invoke openat_save_fail and/or openat_restore_fail if
63837         cwd_errno is null, so that openat can call us.
63838         (openat_permissive, fdopendir, fstatat, unlinkat):
63839         Simplify errno handling to avoid some duplicate code,
63840         as it's OK to set errno on success.
63841         * lib/openat.h: Revamp code so that function macros depend on
63842         __OPENAT_PREFIX only, not also on AT_FDCWD.
63843         (openat_ro): Remove.  Caller changed to use openat_permissive.
63844         (openat_permissive): Now a macro, if not a function.
63845         (openat_restore_fail, openat_save_fail): Now always functions,
63846         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63847
63848         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63849         and openat.c.
63850         * lib/mkdirat.c: Include openat-priv.h.
63851         Remove definitions of macros defined therein.
63852         * lib/openat.c: Likewise.
63853
63854         * lib/mkdirat.c (mkdirat): New file and function.
63855         * lib/openat.h (mkdirat): Declare.
63856
63857         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63858
63859         * lib/openat.h (openat_permissive): Declare.
63860         (openat_ro): Define.
63861
63862         * lib/openat.c (EXPECTED_ERRNO): New macro.
63863         (openat_permissive): New function -- used in remove.c rewrite.
63864         (all functions): Set errno just before returning, only if there
63865         was an actual failure.
63866         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63867
63868         Emulate openat-family functions using Linux's procfs, if possible.
63869         Idea and some code based on Ulrich Drepper's glibc changes.
63870
63871         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63872         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63873         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63874         before falling back on save_cwd and restore_cwd.
63875         (fdopendir, fstatat, unlinkat): Likewise.
63876
63877         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63878         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63879
63880         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63881         as second argument to va_arg.  Otherwise, some versions of gcc
63882         warn that `if this code is reached, the program will abort'.
63883
63884 2006-01-09  Jim Meyering  <jim@meyering.net>
63885
63886         Sync from coreutils.
63887         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63888         Require openat-priv.h.
63889
63890 2006-01-09  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/strnlen (Include): Use strnlen.h.
63893
63894 2006-01-09  Bruno Haible  <bruno@clisp.org>
63895
63896         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63897
63898 2006-01-09  Bruno Haible  <bruno@clisp.org>
63899
63900         * lib/sysexit_.h (EX_OK): New macro.
63901         Suggested by Martin Lambers <marlam@marlam.de>.
63902
63903 2006-01-09  Bruno Haible  <bruno@clisp.org>
63904
63905         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63906         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63907
63908 2006-01-09  Bruno Haible  <bruno@clisp.org>
63909
63910         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63911         numbers.
63912
63913 2006-01-09  Bruno Haible  <bruno@clisp.org>
63914
63915         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63916         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63917         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63918         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63919
63920 2006-01-09  Bruno Haible  <bruno@clisp.org>
63921
63922         * build-aux/javacomp.sh.in: New file, moved from lib/.
63923         * modules/javacomp-script (Files): Update.
63924         (configure.ac): Add AC_CONFIG_FILES invocation.
63925         (EXTRA_DIST): Remove variable.
63926
63927         * build-aux/javaexec.sh.in: New file, moved from lib/.
63928         * modules/javaexec (Files): Update.
63929         (configure.ac): Add AC_CONFIG_FILES invocation.
63930         (EXTRA_DIST): Remove javaexec.sh.in.
63931
63932         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63933         * modules/csharpcomp-script (Files): Update.
63934         (configure.ac): Add AC_CONFIG_FILES invocation.
63935         (EXTRA_DIST): Remove variable.
63936
63937         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63938         * modules/csharpexec (Files): Update.
63939         (configure.ac): Add AC_CONFIG_FILES invocation.
63940         (EXTRA_DIST): Remove csharpexec.sh.in.
63941
63942 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63943
63944         Sync from coreutils.
63945
63946         Add POSIX ACL support
63947         * lib/acl.h (copy_acl, set_acl): Add declarations.
63948         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63949         systems other than Linux.
63950         (chmod_or_fchmod): New function: use fchmod when possible,
63951         and chmod otherwise.
63952         (file_has_acl): Add a POSIX ACL implementation, with a
63953         Linux-specific subcase.
63954         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63955         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63956         acls are unsupported.
63957         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63958         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63959         are unsupported.
63960
63961 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63962
63963         Sync from coreutils.
63964         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63965
63966 2006-01-07  Bruno Haible  <bruno@clisp.org>
63967
63968         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63969         gl_EARLY.
63970
63971 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63972
63973         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63974         Problem reported for Mingw by Mark Junker.
63975
63976 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63977
63978         * README: Gnulib normally doesn't generate a tarball.
63979
63980 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63981
63982         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63983         long int, not int, for nanosecond counts, so that people who are
63984         used to POSIX struct timespec won't be surprised.  Reported by Jim
63985         Meyering.
63986
63987 2005-12-28  Bruno Haible  <bruno@clisp.org>
63988
63989         * build-aux/config.rpath: Update from GNU gettext.
63990
63991 2005-12-16  Jim Meyering  <jim@meyering.net>
63992
63993         * modules/fprintftime: New module.
63994         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63995
63996 2005-12-16  Jim Meyering  <jim@meyering.net>
63997
63998         * m4/fprintftime.m4: New file.
63999
64000 2005-12-16  Jim Meyering  <jim@meyering.net>
64001
64002         * lib/fprintftime.c, lib/fprintftime.h: New files.
64003
64004 2005-12-15  Simon Josefsson  <jas@extundo.com>
64005
64006         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64007         new m4/socklen.m4.
64008
64009 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64010
64011         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64012         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64013
64014 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64015
64016         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64017         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64018         struct uparams is valid. Fall back to the default values if it is
64019         not.
64020
64021 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64022
64023         * modules/argp (Files): Add argp-pin.c
64024         (Depends-on): dirname
64025         (lib_SOURCES): Add argp-pin.c
64026
64027 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64028
64029         * m4/argp.m4:  Check if program_invocation_name and
64030         program_invocation_short_name are declared and define appropriate
64031         macros if they are not.
64032
64033 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64034
64035         * lib/argp-help.c (__argp_base_name): New function
64036         (__argp_short_program_name): Rewrite using __argp_base_name
64037         * lib/argp-namefrob.h: Define program_invocation_name and
64038         program_invocation_short_name if requested
64039         (__argp_base_name): Add prototype
64040         * lib/argp-parse.c (argp_def): Use gettext wrappers
64041         (argp_default_parser): Use __argp_base_name
64042         * lib/argp-pin.c: New file. Defines program_invocation_name and
64043         program_invocation_short_name on systems that lack them.
64044
64045 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64046
64047         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64048         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64049         porting problem reported by Georg Schwarz in
64050         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64051
64052 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64053
64054         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64055         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64056         porting problem reported by Georg Schwarz in
64057         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64058
64059 2005-12-05  Bruno Haible  <bruno@clisp.org>
64060
64061         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64062         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64063         Reported by Mark Junker <mjscod@gmx.de>.
64064
64065 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64066
64067         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64068         Use implementation from Albert Chin, with some
64069         comments/corrections by Stepan Kasal and myself.
64070
64071 2005-12-02  Bruno Haible  <bruno@clisp.org>
64072
64073         * gnulib-tool (func_import): Accept GPLed build tool modules when
64074         --lgpl is given.
64075         * modules/csharpcomp-script: New file.
64076         * modules/csharpcomp: Depend on it.
64077         * modules/javacomp-script: New file.
64078         * modules/javacomp: Depend on it.
64079         Suggested by Simon Josefsson.
64080
64081 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64082
64083         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64084         statement, to work around an HP-UX 10.20 compiler bug reported by
64085         Peter O'Gorman.
64086
64087 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64088
64089         * modules/savedir (Depends-on): Add openat.
64090
64091 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64094         (uintmax_t) [defined uintmax_t]: Do not declare.
64095         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64096         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64097         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64098         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64099         sake of portability to weird hosts that C allows (though we don't
64100         know of any practical examples).
64101
64102         * lib/savedir.h (fdsavedir): New decl.
64103         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64104         contains most of the former guts of savedir.
64105         (savedir): Use savedirstream.
64106         Include "openat.h".
64107
64108 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         * modules/obstack (Files): Add m4/ulonglong.m4.
64111         Problem reported by Davide Angelocola.
64112
64113 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64114
64115         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64116         coreutils no longer futzes with rounding modes.
64117
64118 2005-11-14  Jim Meyering  <jim@meyering.net>
64119
64120         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64121         replacement of mkstemp.
64122
64123 2005-11-10  Simon Josefsson  <jas@extundo.com>
64124
64125         * lib/readline.c: Remove EOL.
64126
64127 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64128
64129         * modules/gethrxtime (Depends-on): Add gettime.
64130
64131 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64132
64133         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64134         or gettimeofday; no longer needed.
64135
64136 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64137
64138         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64139         time business.
64140         (gethrxtime) [! (HAVE_NANOUPTIME
64141         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64142         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64143         our own approximation.
64144
64145 2005-11-08  Eric Blake  <ebb9@byu.net>
64146
64147         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64148
64149 2005-11-08  Eric Blake  <ebb9@byu.net>
64150
64151         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64152
64153 2005-11-04  Bruno Haible  <bruno@clisp.org>
64154
64155         * gnulib-tool: Implement --update mode.
64156
64157 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64158
64159         Fix porting problem reported by Theodoros V. Kalamatianos.
64160         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64161         Don't assume that futimes failing means we must fail.
64162
64163 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64166         variables to suggest the intended function of the PATH_MAX check.
64167
64168 2005-10-30  Kean Johnston  <jkj@sco.com>
64169
64170         Trivial changes to support SCO systems.
64171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64172         as PATH_MAX.
64173         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64174         where __ptr is null when no I/O is pending.
64175
64176 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64179         leave errno alone.  Problem reported by Dmitry V. Levin.
64180
64181 2005-10-28  Simon Josefsson  <jas@extundo.com>
64182
64183         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64184         Test more.
64185
64186         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64187
64188         * modules/md2, modules/md2-tests: New files.
64189
64190 2005-10-28  Simon Josefsson  <jas@extundo.com>
64191
64192         * m4/inet_ntop.m4: More tests.
64193
64194         * m4/gc-md2.m4, md2.m4: New file.
64195
64196 2005-10-28  Simon Josefsson  <jas@extundo.com>
64197
64198         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64199         "restrict" keywords, as per POSIX.  Protect the function
64200         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64201         Don't use K&R prototypes.  Check the sprintf return values.
64202         Re-define EAFNOSUPPORT if not present.  Indent.
64203
64204         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64205         suggested by Bruno Haible <bruno@clisp.org>.
64206
64207         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64208
64209         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64210
64211         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64212         libgcrypt).
64213
64214         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64215
64216         * lib/md2.h, lib/md2.c: New files.
64217
64218 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64221         errno alone.  Problem reported by Frederic Jolliton.
64222
64223 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64224
64225         * modules/verify (License): Change from GPL to LGPL.  This is a
64226         tiny module and there are apparently near-equivalents that are
64227         under the BSD license.
64228
64229 2005-10-24  Simon Josefsson  <jas@extundo.com>
64230
64231         * modules/sha1: Relicense to LGPL.
64232
64233 2005-10-24  Simon Josefsson  <jas@extundo.com>
64234
64235         * lib/md4.h: Shrink buffer size, now that we changed the type.
64236
64237 2005-10-23  Simon Josefsson  <jas@extundo.com>
64238
64239         * gnulib-tool (func_import): Fix --tests-base.
64240
64241 2005-10-22  Simon Josefsson  <jas@extundo.com>
64242
64243         * modules/arcfour (Depends-on): Need stdint.
64244
64245 2005-10-22  Simon Josefsson  <jas@extundo.com>
64246
64247         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64248         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64249
64250 2005-10-22  Simon Josefsson  <jas@extundo.com>
64251
64252         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64253         suggested by Bruno Haible <bruno@clisp.org>.
64254
64255 2005-10-22  Simon Josefsson  <jas@extundo.com>
64256
64257         * lib/crc.h: Include stddef.h, for size_t.
64258
64259 2005-10-22  Simon Josefsson  <jas@extundo.com>
64260
64261         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64262         arcfour_context struct (simplify test vector testing in GNU
64263         Shishi).
64264
64265 2005-10-21  Simon Josefsson  <jas@extundo.com>
64266
64267         * modules/des, modules/des-tests: New files.
64268
64269         * modules/gc-des, modules/gc-des-tests: New files.
64270
64271         * tests/test-des.c, tests/test-gc-des.c: New file.
64272
64273 2005-10-21  Simon Josefsson  <jas@extundo.com>
64274
64275         * modules/arctwo, modules/arctwo-tests: New files.
64276
64277         * tests/test-arctwo.c: New file.
64278
64279         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64280
64281         * tests/test-gc-arctwo.c: New file.
64282
64283 2005-10-21  Simon Josefsson  <jas@extundo.com>
64284
64285         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64286         Bruno Haible <bruno@clisp.org>.
64287
64288         * m4/gc-des.m4: New file.
64289
64290 2005-10-21  Simon Josefsson  <jas@extundo.com>
64291
64292         * m4/arctwo.m4: New file.
64293
64294         * m4/gc-arctwo.m4: New file.
64295
64296 2005-10-21  Simon Josefsson  <jas@extundo.com>
64297
64298         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64299         block.
64300
64301 2005-10-21  Simon Josefsson  <jas@extundo.com>
64302
64303         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64304         <bruno@clisp.org>.
64305
64306         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64307
64308         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64309         Bruno Haible <bruno@clisp.org>.
64310
64311         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64312         <bruno@clisp.org>.
64313
64314 2005-10-21  Simon Josefsson  <jas@extundo.com>
64315
64316         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64317
64318 2005-10-21  Simon Josefsson  <jas@extundo.com>
64319
64320         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64321
64322 2005-10-21  Simon Josefsson  <jas@extundo.com>
64323
64324         * lib/des.h, lib/des.c: New files.
64325
64326         * lib/gc-gnulib.c: Support DES.c
64327
64328 2005-10-21  Simon Josefsson  <jas@extundo.com>
64329
64330         * lib/arctwo.h, lib/arctwo.c: New files.
64331
64332         * lib/gc-gnulib.c: Support ARCTWO.
64333
64334 2005-10-21  Simon Josefsson  <jas@extundo.com>
64335
64336         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64337         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64338
64339 2005-10-21  Simon Josefsson  <jas@extundo.com>
64340
64341         * gnulib-tool (func_import, func_create_testdir): Define automake
64342         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64343         Makefile.am snippet),
64344         suggested by Bruno Haible <bruno@clisp.org>.
64345
64346         * modules/gc (Makefile.am): Use it.
64347
64348 2005-10-21  Bruno Haible  <bruno@clisp.org>
64349
64350         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64351         patch.
64352
64353 2005-10-19  Simon Josefsson  <jas@extundo.com>
64354
64355         * tests/test-gc-rijndael.c: New file.
64356
64357         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64358
64359 2005-10-19  Simon Josefsson  <jas@extundo.com>
64360
64361         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64362         interface too.
64363
64364 2005-10-19  Simon Josefsson  <jas@extundo.com>
64365
64366         * tests/test-gc-arcfour.c: New file.
64367
64368         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64369
64370 2005-10-19  Simon Josefsson  <jas@extundo.com>
64371
64372         * modules/gc-md4, modules/gc-md4-tests: New file.
64373
64374         * tests/test-gc-md4.c: New file.
64375
64376 2005-10-19  Simon Josefsson  <jas@extundo.com>
64377
64378         * m4/gc-md4.m4: New file.
64379
64380 2005-10-19  Simon Josefsson  <jas@extundo.com>
64381
64382         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64383         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64384         <kasal@ucw.cz>.
64385
64386 2005-10-19  Simon Josefsson  <jas@extundo.com>
64387
64388         * m4/gc-arcfour.m4: New file.
64389
64390         * m4/gc-rijndael.m4: New file.
64391
64392 2005-10-19  Simon Josefsson  <jas@extundo.com>
64393
64394         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64395
64396 2005-10-19  Simon Josefsson  <jas@extundo.com>
64397
64398         * lib/gc-gnulib.c: Support ARCFOUR.
64399
64400 2005-10-19  Simon Josefsson  <jas@extundo.com>
64401
64402         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64403         support.
64404
64405         * lib/gc.h: Add ECB enum type.
64406
64407         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64408
64409 2005-10-18  Simon Josefsson  <jas@extundo.com>
64410
64411         * tests/test-md5.c: New file.
64412
64413         * modules/md5-tests: New file.
64414
64415 2005-10-18  Simon Josefsson  <jas@extundo.com>
64416
64417         * tests/test-md4.c: New file.
64418
64419         * modules/md4, modules/md4-tests: New files.
64420
64421 2005-10-18  Simon Josefsson  <jas@extundo.com>
64422
64423         * m4/md4.m4: New file.
64424
64425 2005-10-18  Simon Josefsson  <jas@extundo.com>
64426
64427         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64428
64429 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64430
64431         * gnulib-tool (func_create_testdir): Omit the second check whether
64432         BUILT_SOURCES in nonempty.
64433
64434 2005-10-17  Simon Josefsson  <jas@extundo.com>
64435
64436         * tests/test-rijndael.c: New file.
64437
64438 2005-10-17  Simon Josefsson  <jas@extundo.com>
64439
64440         * modules/sha1: Depend on stdint instead of md5.
64441
64442         * modules/md5: Depend on stdint, remove uint32_t.
64443
64444 2005-10-17  Simon Josefsson  <jas@extundo.com>
64445
64446         * modules/gc-sha1-tests: New file.
64447
64448         * tests/test-gc-sha1.c: New file.
64449
64450 2005-10-17  Simon Josefsson  <jas@extundo.com>
64451
64452         * m4/md5.m4: Remove call to uint32_t.m4.
64453
64454 2005-10-17  Simon Josefsson  <jas@extundo.com>
64455
64456         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64457
64458         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64459         md5.h.
64460
64461         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64462
64463         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64464
64465 2005-10-17  Simon Josefsson  <jas@extundo.com>
64466
64467         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64468
64469 2005-10-17  Simon Josefsson  <jas@extundo.com>
64470
64471         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64472
64473 2005-10-17  Simon Josefsson  <jas@extundo.com>
64474
64475         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64476
64477         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64478
64479 2005-10-17  Bruno Haible  <bruno@clisp.org>
64480
64481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64482         that it can also be used in a test.
64483
64484 2005-10-16  Bruno Haible  <bruno@clisp.org>
64485
64486         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64487         TESTS_ENVIRONMENT, so that individual tests can augment it.
64488
64489         * gnulib-tool (func_create_testdir): Use an intermediate target for
64490         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64491         macros, like $(ALLOCA_H), which cannot be passed through the command
64492         line.
64493
64494 2005-10-15  Simon Josefsson  <jas@extundo.com>
64495
64496         * modules/rijndael-tests: New file.
64497
64498         * modules/rijndael: New file.
64499
64500 2005-10-15  Simon Josefsson  <jas@extundo.com>
64501
64502         * m4/rijndael.m4: New file.
64503
64504 2005-10-15  Simon Josefsson  <jas@extundo.com>
64505
64506         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64507
64508         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64509
64510 2005-10-14  Simon Josefsson  <jas@extundo.com>
64511
64512         * tests/test-arcfour.c: New file.
64513
64514         * modules/arcfour, modules/arcfour-tests: New files.
64515
64516 2005-10-14  Simon Josefsson  <jas@extundo.com>
64517
64518         * m4/arcfour.m4: New file.
64519
64520 2005-10-14  Simon Josefsson  <jas@extundo.com>
64521
64522         * lib/arcfour.h, lib/arcfour.c: New files.
64523
64524 2005-10-14  Roland McGrath  <roland@redhat.com>
64525
64526         Import from libc.  [BZ #1331]
64527         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64528         macro argument.
64529         Reported by Matej Vela <vela@debian.org>.
64530
64531 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64532
64533         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64534         include <wchar.h>; no longer needed.
64535
64536 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64539
64540 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64541         and  Ulrich Drepper  <drepper@redhat.com>
64542
64543         Import from libc.
64544         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
64545         instead of inline stream orientation test and two separate
64546         function calls.  Pay no attention to USE_IN_LIBIO.
64547
64548 2005-10-13  Simon Josefsson  <jas@extundo.com>
64549
64550         * modules/gc-hmac-md5-tests: New file.
64551
64552         * tests/test-gc-hmac-sha1.c: New file.
64553
64554         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
64555
64556         * modules/gc-hmac-md5-tests: New file.
64557
64558         * tests/test-gc-md5.c: New file.
64559
64560         * modules/gc-md5-tests: New file.
64561
64562 2005-10-13  Simon Josefsson  <jas@extundo.com>
64563
64564         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
64565         Move memory allocation outside of loop.
64566
64567 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64568
64569         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
64570         intermediate directory is in a read-only file system.  Problem
64571         reported by Eric Blake.
64572
64573 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
64574
64575         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
64576
64577 2005-10-12  Simon Josefsson  <jas@extundo.com>
64578
64579         * tests/test-hmac-sha1.c: New file.
64580
64581         * modules/hmac-sha1-tests: New file.
64582
64583         * modules/hmac-sha1: New file.
64584
64585 2005-10-12  Simon Josefsson  <jas@extundo.com>
64586
64587         * modules/gc-sha1: New file.
64588
64589 2005-10-12  Simon Josefsson  <jas@extundo.com>
64590
64591         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
64592
64593         * tests/test-gc-pbkdf2-sha1.c: New file.
64594
64595 2005-10-12  Simon Josefsson  <jas@extundo.com>
64596
64597         * modules/gc-md5, modules/gc-hmac-md5: New files.
64598
64599         * modules/gc (Files): Remove md5, memxor and hmac files.
64600
64601 2005-10-12  Simon Josefsson  <jas@extundo.com>
64602
64603         * m4/gc-pbkdf2-sha1.m4: New file.
64604
64605         * m4/gc-hmac-sha1.m4: New file.
64606
64607         * m4/gc-sha1: New file.
64608
64609         * m4/hmac-sha1.m4: New file.
64610
64611 2005-10-12  Simon Josefsson  <jas@extundo.com>
64612
64613         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
64614
64615         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
64616
64617 2005-10-12  Simon Josefsson  <jas@extundo.com>
64618
64619         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
64620         suggested by Bruno Haible <bruno@clisp.org>.
64621
64622 2005-10-12  Simon Josefsson  <jas@extundo.com>
64623
64624         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
64625
64626 2005-10-12  Simon Josefsson  <jas@extundo.com>
64627
64628         * lib/gc-pbkdf2-sha1.c: New file.
64629
64630         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
64631
64632 2005-10-12  Simon Josefsson  <jas@extundo.com>
64633
64634         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
64635
64636         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
64637
64638 2005-10-12  Simon Josefsson  <jas@extundo.com>
64639
64640         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
64641         GC_USE_HMAC_MD5, respectively.
64642
64643         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
64644         (gc_md5): Fix typo.
64645
64646         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
64647
64648         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
64649
64650         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
64651
64652 2005-10-12  Bruno Haible  <bruno@clisp.org>
64653
64654         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
64655         Reported by Stepan Kasal <kasal@ucw.cz>.
64656
64657 2005-10-11  Simon Josefsson  <jas@extundo.com>
64658
64659         * tests/test-crc.c: New file.
64660
64661         * modules/crc, modules/crc-tests: New files.
64662
64663 2005-10-11  Simon Josefsson  <jas@extundo.com>
64664
64665         * m4/crc.m4: New file.
64666
64667 2005-10-11  Simon Josefsson  <jas@extundo.com>
64668
64669         * lib/gc.h: Add gc_hash and gc_hash_buffer.
64670
64671         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
64672
64673         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
64674
64675 2005-10-11  Simon Josefsson  <jas@extundo.com>
64676
64677         * lib/crc.h, lib/crc.c: New files.
64678
64679         * lib/gc.h (gc_hash_buffer): Add doc.
64680
64681 2005-10-11  Bruno Haible  <bruno@clisp.org>
64682
64683         * modules/c-strcasestr: New file.
64684         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
64685
64686 2005-10-11  Bruno Haible  <bruno@clisp.org>
64687
64688         * modules/c-strcase: New file.
64689         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
64690
64691 2005-10-11  Bruno Haible  <bruno@clisp.org>
64692
64693         * lib/strcasecmp.c: Include limits.h.
64694         (strcasecmp): Avoid integer overflow on exotic platforms.
64695         * lib/strncasecmp.c: Include limits.h.
64696         (strncasecmp): Avoid integer overflow on exotic platforms.
64697         Reported by Paul Eggert.
64698
64699 2005-10-11  Bruno Haible  <bruno@clisp.org>
64700
64701         * lib/c-strcasestr.h: New file, from GNU gettext.
64702         * lib/c-strcasestr.c: New file, from GNU gettext.
64703
64704 2005-10-11  Bruno Haible  <bruno@clisp.org>
64705
64706         * lib/c-strcase.h: New file, from GNU gettext.
64707         * lib/c-strcasecmp.c: New file, from GNU gettext.
64708         * lib/c-strncasecmp.c: New file, from GNU gettext.
64709
64710 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * modules/mempcpy (License): GPL -> LGPL.
64713         * modules/strchrnul (License): Likewise.
64714         * modules/sysexits (License): Likewise.
64715
64716 2005-10-08  Simon Josefsson  <jas@extundo.com>
64717
64718         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
64719
64720 2005-10-07  Simon Josefsson  <jas@extundo.com>
64721
64722         * m4/memxor.m4: Remove gl_C_RESTRICT call.
64723
64724 2005-10-06  Simon Josefsson  <jas@extundo.com>
64725
64726         * tests/test-hmac-md5.c: New file.
64727
64728         * modules/hmac-md5-tests: New file.
64729
64730         * modules/hmac-md5: New file.
64731
64732 2005-10-06  Simon Josefsson  <jas@extundo.com>
64733
64734         * m4/hmac-md5.m4: New file.
64735
64736         * m4/memxor.m4: Require gl_C_RESTRICT.
64737
64738 2005-10-06  Simon Josefsson  <jas@extundo.com>
64739
64740         * lib/memxor.c (memxor): Avoid casts and warnings.
64741
64742 2005-10-06  Simon Josefsson  <jas@extundo.com>
64743
64744         * lib/hmac-md5.c: New file.
64745
64746         * lib/hmac.h: New file.
64747
64748 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64749
64750         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
64751         promotes to int, not unsigned int, to catch the AIX 5.3
64752         compiler bug.
64753
64754 2005-10-05  Simon Josefsson  <jas@extundo.com>
64755
64756         * modules/memxor: New file.
64757
64758         * modules/iconv (Files): Move config.rpath to havelib, it is used
64759         there.
64760
64761         * modules/havelib (Files): Add config.rpath.
64762
64763 2005-10-05  Simon Josefsson  <jas@extundo.com>
64764
64765         * m4/memxor.m4: New file.
64766
64767 2005-10-05  Simon Josefsson  <jas@extundo.com>
64768
64769         * lib/memxor.c (memxor): Fix compiler error.
64770
64771         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
64772         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
64773
64774         * lib/memxor.h, lib/memxor.c: New files.
64775
64776         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
64777         we assume all systems have it, suggested by Jim Meyering
64778         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
64779         any systems lack sys/socket.h; mingw32 is known to lack it, but we
64780         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
64781         same reasons.
64782
64783 2005-10-05  Simon Josefsson  <jas@extundo.com>
64784
64785         * config/srclist.txt: Add glibc bug 1423 for md5.h.
64786
64787 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64788
64789         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
64790         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
64791         needed, since the source code now assumes these .h files.
64792
64793 2005-10-05  Derek Price  <derek@ximbiot.com>
64794
64795         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
64796
64797 2005-10-05  Bruno Haible  <bruno@clisp.org>
64798
64799         * modules/stdint (License): Change to LGPL.
64800
64801 2005-10-04  Simon Josefsson  <jas@extundo.com>
64802
64803         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
64804         D. Baushke" <mdb@gnu.org>.
64805
64806 2005-10-04  Bruno Haible  <bruno@clisp.org>
64807
64808         * lib/verify.h (verify_true): Provide alternative definition for C++.
64809
64810 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64811
64812         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64813         (SSIZE_MAX): New macro, if not already defined.
64814         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64815         than 2 GiB.
64816
64817 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64818
64819         Sync from coreutils.
64820         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64821         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64822         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64823         ULLONG_MAX doesn't work with 2.7.2.1.
64824
64825 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64826
64827         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64828         From Ben Pfaff.
64829
64830         * modules/exclude (Depends-on): Depend on verify.
64831         * modules/strtoimax (Depends-on): Likewise.
64832         * modules/utimecmp (Depends-on): Likewise.
64833
64834 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64835
64836         * lib/exclude.c: Include verify.h.
64837         (verify): Remove.  All callers changed to use verify.h's version.
64838         * lib/strtoimax.c: Likewise.
64839         * lib/utimecmp.c: Likewis.e
64840
64841         Sync from coreutils.
64842         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64843         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64844         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64845         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64846         bother returning ENOSYS if settimeofday or stime fails; just let
64847         them return whatever errno they want to return.
64848         * lib/utimens.c: Include unistd.h, for dup2.
64849         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64850         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64851
64852 2005-10-02  Jim Meyering  <jim@meyering.net>
64853
64854         Sync from coreutils.
64855         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64856         from glibc-2.2.5 that fails for read-only files.
64857
64858 2005-10-02  Jim Meyering  <jim@meyering.net>
64859
64860         Sync from coreutils.
64861         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64862         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64863         `#if HAVE_CONFIG_H'.
64864         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64865         Remove AT_FDCWD test.
64866         Do not consume the fd unless successful.
64867         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64868         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64869         block, so that we don't even try to compile it if settimeofday is
64870         available.  This works around a compilation failure on OSF1 V5.1,
64871         due to stime requiring a `long int*' while tv_sec is `int'.
64872
64873 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64874
64875         Sync from coreutils.
64876         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64877         against `yes', rather than just testing for nonempty.
64878
64879 2005-10-01  Simon Josefsson  <jas@extundo.com>
64880
64881         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64882         and Darwin.
64883
64884         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64885         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64886         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64887         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64888         Check if struct addrinfo is declared.
64889
64890 2005-10-01  Simon Josefsson  <jas@extundo.com>
64891
64892         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64893         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64894         AI_* and EAI_* definitions.  Protect function declarations.
64895
64896 2005-10-01  Jim Meyering  <jim@meyering.net>
64897
64898         Sync from coreutils.
64899
64900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64901         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64902         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64903         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64904         in the inet and nsl libraries.  Required on Solaris 5.7.
64905
64906 2005-10-01  Jim Meyering  <jim@meyering.net>
64907
64908         Sync from coreutils.
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  Eric Blake  <ebb9@byu.net>  (tiny change)
64913
64914         * lib/getdelim.c (getdelim): Remove unused variables.
64915
64916 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64917
64918         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64919         so that the code works even with ancient cpp.  Portability problem
64920         with GCC 2.7.2.1 reported by Thomas M.Ott.
64921
64922 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         * modules/regex (Depends-on): Add strcase.
64925
64926         * modules/gethostname (Licence): Change from GPL to LGPL, since
64927         gethostname.c is a trivial implementation of a standard library
64928         function.
64929         * modules/poll (License): Change from GPL to LGPL, since it's
64930         derived from LGPL code.
64931
64932 2005-09-27  Jim Meyering  <jim@meyering.net>
64933
64934         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64935         HAVE_CONFIG_H.
64936
64937         * lib/intprops.h (signed_type_or_expr__): Define.
64938         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64939         for unsigned types.
64940
64941 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64942
64943         * lib/verify.h (verify_expr): Remove, replacing with:
64944         (verify_true): New macro that returns true instead of void.
64945         (verify_type__): Remove.
64946         (verify): Use verify_true rather than verify_type__.
64947
64948 2005-09-26  Bruno Haible  <bruno@clisp.org>
64949
64950         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64951         is necessary.
64952         (lib_SOURCES): Remove mbchar.c.
64953         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64954         (Files): Add m4/mbrtowc.m4.
64955         * modules/mbiter: Likewise.
64956         * modules/mbuiter: Likewise.
64957
64958 2005-09-26  Bruno Haible  <bruno@clisp.org>
64959
64960         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64961         compile mbchar.c if they are not both present.
64962         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64963         * m4/mbiter.m4 (gl_MBITER): Likewise.
64964         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64965         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64966         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64967
64968 2005-09-25  Jim Meyering  <jim@meyering.net>
64969
64970         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64971         also uses socklen_t.
64972
64973 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64974
64975         * lib/utimens.c (ENOSYS): Define if not already defined.
64976         (futimens): Support having a null PATH if the file descriptor
64977         is nonnegative.
64978
64979         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64980         Remove.
64981         (__attribute): Define to empty unless GCC 3.1 or later.
64982         This works around a core dump on OpenBSD 3.4, which has GCC
64983         2.95.3, which dumps core when given __attribute__(()).  It also
64984         simplifies other tests, since we really don't want to bother with
64985         worrying about which ancient version of GCC supported what.
64986         Original problem reported by Yoann Vandoorselaere, with part of
64987         the fix suggested by Derek Price.
64988
64989 2005-09-24  Jim Meyering  <jim@meyering.net>
64990
64991         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64992         so we can once again use a positive bitfield width of 1 -- now we
64993         don't have to explain why we were using a bitfield width of 2.
64994
64995 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64996
64997         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64998         and similarly for the other external symbols.  Problem reported
64999         by James Gallager.
65000
65001         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65002         bug reported by Jim Meyering.
65003
65004         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65005         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65006         not needed, since socklen is a prerequisite module.
65007
65008 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65009
65010         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65011         Problem reported by Eric Blake.
65012         (getaddrinfo): Initialize se so that it's not garbage.
65013         Redo internal storage allocation so that it doesn't make unportable
65014         assumptions about alignment.
65015         Fix a memory leak.
65016
65017         * lib/utimens.c (futimens): Use futimesat if available.
65018         Prefer it to futimes since it doesn't have the futimes bug.
65019
65020         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65021         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65022         Instead, declare a function that returns a pointer to an array,
65023         and use verify_type__ to declare the size of the array.
65024         Problem and germ of a solution reported by Bruno Haible.
65025         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65026         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65027
65028 2005-09-23  Jim Meyering  <jim@meyering.net>
65029
65030         Sync from coreutils.
65031         Correct build failure (socklen_t not defined) on at least
65032         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65033         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65034
65035 2005-09-23  Jim Meyering  <jim@meyering.net>
65036
65037         * modules/getaddrinfo (Depends-on): Add socklen.
65038
65039 2005-09-23  Bruno Haible  <bruno@clisp.org>
65040
65041         * tests/test-verify.c: New file.
65042
65043 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65044
65045         Sync from coreutils.
65046
65047         * modules/argmatch (Depends-on): Add verify.
65048         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65049         unistd-safer.
65050         * modules/save-cwd (Depends-on): Likewise.
65051
65052         * modules/openat (Files): Add lib/openat-die.c.
65053         (Depends-on): Remove error, exitfail.
65054         Add dirname.
65055
65056         * modules/verify: New file.
65057         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65058         with "verify" module.
65059
65060 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65061
65062         Sync from coreutils.
65063
65064         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65065         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65066         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65067         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65068         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65069         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65070         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65071         Don't bother checking for string.h, stdlib.h, unistd.h.
65072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65073         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65074         module's job.
65075         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65076         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65077
65078         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65079         (gl_GETDATE): Use it.
65080
65081         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65082
65083 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65084
65085         Sync from coreutils.
65086
65087         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65088         stat-time.h.
65089         * lib/argmatch.h: Include verify.h
65090         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65091         (ARGMATCH_ASSERT): Remove; unused.
65092         * lib/canonicalize.c: Assume STDC_HEADERS.
65093         * lib/exclude.c: Include "strcase.h".
65094         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65095         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65096         and stdio-safer.h.
65097         (getusershell): Call fopen, not fopen_safer.
65098         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65099         Do not include unistd-safer.h.
65100         (save_cwd): Don't call fd_safer; no longer needed
65101         now that we include fcntl--.h.
65102
65103         * lib/getdate.y (relative_time): New type.
65104         (RELATIVE_TIME_0): New constant.
65105         (parser_control): Use relative_time instead of doing it ourselves.
65106         (%union): Add new relative_time rel member.
65107         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65108         Now typeless.
65109         (relunit, relunit_snumber): Now of type rel.
65110         (zone, rel, relunit, get_date): Adjust to above changes.
65111
65112         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65113         Do not include unistd-safer.h.
65114         (getloadavg): Don't call fd_safer; no longer needed
65115         now that we include fcntl--.h.
65116
65117         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65118         (make_dir_parents): Treat ENOSYS like EEXIST.
65119
65120         Improve quality of diagnostics on restore_cwd failure.
65121         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65122         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65123         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65124         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65125         each time through the loop.  Do not diagnose restore_cwd failure;
65126         that is the caller's job (and perhaps the caller does not care).
65127
65128         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65129         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65130         If the file already exists but is not a directory, don't bother
65131         to try to make its parents.
65132         Close potential file descriptor leak if we can't chdir("/") (!).
65133         Don't always return true if chdir($PWD) fails; return true only
65134         if the requested action was done successfully (except for the
65135         chdir($PWD)).
65136         Don't log final directory unless we actually made it.
65137         Refactor to avoid duplicate code to fix up permissions.
65138         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65139
65140         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65141         to make it a bit faster and (I hope) clearer.
65142         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65143         Fix bug in formats like %2N.
65144
65145         * lib/verify.h: New file.
65146
65147 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65148
65149         Sync from coreutils.
65150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65151
65152 2005-09-22  Jim Meyering  <jim@meyering.net>
65153
65154         Sync from coreutils.
65155
65156         * m4/lstat.m4 (gl_FUNC_LSTAT):
65157         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65158         Remove obsolete comment.
65159         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65160         * m4/xstrtod.m4: Likewise.
65161
65162         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65163
65164 2005-09-22  Jim Meyering  <jim@meyering.net>
65165
65166         Sync from coreutils.
65167
65168         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65169
65170         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65171         the .tm_year member, since otherwise gcc-4.0 would now warn about
65172         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65173
65174         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65175         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65176
65177         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65178         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65179         when run in a time zone for which daylight savings time is in effect
65180         for the starting date.
65181
65182         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65183         stop us from restricting permissions of just-created absolute-named
65184         directories.
65185         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65186         to restore initial working directory.
65187         * lib/mkdir-p.c (make_dir_parents): New parameter:
65188         different_working_dir, to tell caller if/when we change the working
65189         directory and are unable to return to the initial one.
65190         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65191         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65192         `return false'.  This fixes a bug introduced on 2004-07-30.
65193
65194         * lib/openat.c (fdopendir): Be sure to close the supplied
65195         file descriptor before returning.  This makes our replacement
65196         implementation a little closer to Solaris's, where fdopendir
65197         ties the file descriptor to the returned DIR* pointer.
65198         * lib/openat.c (unlinkat): New function.
65199         * lib/openat.h (unlinkat): Add prototype.
65200         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65201         (openat_restore_fail): Rename from openat_restore_die.
65202         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65203
65204         Provide an alternative to exiting immediately upon save_cwd or
65205         restore_cwd failure.  Now, an application can arrange e.g.,
65206         to perform a longjump in that case.
65207         * lib/openat.c: Include dirname.h.
65208         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65209         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65210         and openat_restore_die rather than calling error directly.
65211         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65212
65213         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65214         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65215         define.
65216
65217         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65218         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65219                             int utc, int nanoseconds);
65220         Background:
65221         date should not have to allocate a megabyte of virtual memory to
65222         handle a format argument like +%1048575T.  When implemented with
65223         strftime, it must allocate such a buffer, use strftime to fill it
65224         in, print it, then free it.
65225         With fprintftime, it simply prints everything and exits.
65226         With no need for memory allocation, that's one fewer way to fail.
65227         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65228         optional field width, not before, so we accept %9:z, not %:9z.
65229         (my_strftime): Be sure to use L_('x') for literals.
65230
65231         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65232         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65233         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65234         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65235         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65236         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65237         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65238         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65239         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65240         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65241         * lib/xgethostname.c, lib/xreadlink.c:
65242         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65243
65244         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65245         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65246         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65247         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65248         and don't include <sys/file.h>).
65249
65250 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65251
65252         Sync from coreutils.
65253
65254         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65255         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65256         [!LDAV_DONE]: Avoid unused variable warning.
65257
65258 2005-09-21  Bruno Haible  <bruno@clisp.org>
65259
65260         * lib/unicodeio.h (unicode_to_mb): New declaration.
65261
65262 2005-09-20  Derek Price  <derek@ximbiot.com>
65263
65264         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65265         getaddrinfo.h.
65266
65267 2005-09-20  Bruno Haible  <bruno@clisp.org>
65268
65269         * gnulib-tool: Remove trailing slashes from the values specified for
65270         --source-base, --m4-base, --tests-base, --aux-dir.
65271         Suggested by Simon Josefsson <jas@extundo.com>.
65272
65273 2005-09-20  Bruno Haible  <bruno@clisp.org>
65274
65275         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65276         func_modules_to_filelist, func_import, func_create_testdir): Make all
65277         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65278         change when gnulib-tool is invoked in a different locale.
65279
65280 2005-09-19  Simon Josefsson  <jas@extundo.com>
65281
65282         * m4/socklen.m4: Fix typo.
65283
65284 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65285
65286         Use a consistent style for including <config.h>.
65287         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65288         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65289         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65290         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65291         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65292         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65293         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65294         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65295         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65296         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65297         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65298         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65299         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65300         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65301         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65302         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65303         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65304         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65305         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65306         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65307         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65308         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65309         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65310         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65311         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65312         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65313         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65314         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65315         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65316         lib/xstrtoumax.c, lib/yesno.c:
65317         Standardize inclusion of config.h.
65318         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65319         lib/inttostr.h:  Removed inclusion of config.h from header files.
65320         * lib/inttostr.c:  Adjusted in-tree users.
65321         * lib/timespec.h: Remove superfluous warning to include config.h.
65322         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65323         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65324         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65325         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65326         config.h with HAVE_CONFIG_H.
65327
65328 2005-09-19  Jim Meyering  <jim@meyering.net>
65329
65330         * modules/pathmax (License): Change to LGPL.
65331
65332 2005-09-19  Derek Price  <derek@ximbiot.com>
65333
65334         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65335
65336 2005-09-19  Bruno Haible  <bruno@clisp.org>
65337
65338         * gnulib-tool (import): Provide default for --tests-base.
65339
65340 2005-09-19  Bruno Haible  <bruno@clisp.org>
65341
65342         * doc/quote.texi: New file, extracted from gnulib.texi.
65343         * doc/ctime.texi: New file, extracted from gnulib.texi.
65344         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65345         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65346         * doc/gnulib.texi: Include them.
65347
65348 2005-09-18  Bruno Haible  <bruno@clisp.org>
65349
65350         Portability fix.
65351         * gnulib-tool (func_readlink): New function.
65352         (func_ln_if_changed): Use it.
65353
65354 2005-09-18  Bruno Haible  <bruno@clisp.org>
65355
65356         * gnulib-tool: Support --with-tests also with --import.
65357         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65358         (func_import): Use variables $testsbase and $inctests. Emit a
65359         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65360         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65361         SUBDIRS += $testsdir.
65362         (func_create_testdir): Update.
65363
65364 2005-09-18  Bruno Haible  <bruno@clisp.org>
65365
65366         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65367         instead of $dry_run.
65368         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65369         (func_ln_if_changed): Don't handle dry-run here.
65370         (func_import): In dry-run mode, detect more precisely which actions
65371         would be performed, and don't use "...ing" verbs.
65372
65373 2005-09-18  Bruno Haible  <bruno@clisp.org>
65374
65375         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65376         (func_import): Use join on two temporary files instead of three nested
65377         loops, in order to determine which files are new or old.
65378
65379 2005-09-18  Bruno Haible  <bruno@clisp.org>
65380
65381         * gnulib-tool (func_import): Comment out code that spits out the
65382         new files with --dry-run.
65383
65384 2005-09-18  Bruno Haible  <bruno@clisp.org>
65385
65386         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65387
65388 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65389
65390         * lib/stat-time.h: New file.
65391         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65392         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65393         in a different way.
65394         (timespec_cmp): New function.
65395         * lib/utimecmp.c: Include stat-time.h.
65396         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65397         members exist, not on the obsolescent ST_MTIM_NSEC.
65398         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65399
65400 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65401
65402         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65403
65404 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         * MODULES.html.sh (File system functions): Add stat-time.
65407         * modules/stat-time: New file.
65408         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65409         is now done in a different way, by the stat-time module.
65410         * modules/utimecmp (Depends-on): Add stat-time.
65411
65412 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65413
65414         * m4/st_mtim.m4: Remove.  Superseded by...
65415         * m4/stat-time.m4: New file.
65416         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65417         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65418
65419 2005-09-15  Derek Price  <derek@ximbiot.com>
65420
65421         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65422
65423 2005-09-15  Derek Price  <derek@ximbiot.com>
65424
65425         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65426         * lib/regex_internal.c: Ditto, using this...
65427         (__GNUC_PREREQ): ...new macro.
65428         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65429         using...
65430         (__GNUC_PREREQ): ...this new macro.
65431
65432         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65433
65434 2005-09-15  Derek Price  <derek@ximbiot.com>
65435             Paul Eggert  <eggert@cs.ucla.edu>
65436
65437         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65438         changes, consolidating in...
65439         * lib/regex_internal.h: ...this file.
65440
65441 2005-09-13  Jim Meyering  <jim@meyering.net>
65442
65443         * lib/canon-host.c: Filter through gnu indent and reword comments
65444         slightly.
65445         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65446
65447 2005-09-13  Derek Price  <derek@ximbiot.com>
65448
65449         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65450         failure.
65451         Reported by Jim Meyering  <jim@meyering.net>.
65452
65453 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65454
65455         * lib/base64.c: Typo.
65456         (base64_encode): Put b64str in initialized data section.
65457
65458 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65459
65460         Merge glibc and coreutils changes into gnulib, plus a few
65461         extra fixes.
65462         * lib/md5.c: Use #error rather than a string.
65463         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65464         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65465         (__attribute__): Define to empty for non recent-GCC.
65466         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65467         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65468         Renamed from their non-__ counterparts, with new macros replacing
65469         them if not _LIBC.  Add __THROW attribute.
65470         (rol): Remove.
65471         (struct md5_ctx): Align buffer if using GCC.
65472         * lib/sha1.h (struct sha1_ctx): Likewise.
65473         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65474         The old name was backwards.
65475         (NOTSWAP): Remove; not used.
65476         (rol): New macro, moved here from md5.h.
65477         (sha1_process_block): Remove a FIXME that doesn't make sense.
65478
65479 2005-09-12  Derek Price  <derek@ximbiot.com>
65480
65481         Return usable errors from canon-host.
65482         * lib/canon-host.h: New file.
65483         * lib/canon-host.c (canon_host): Wrap...
65484         (canon_host_r): ...this new function, which now relies exclusively on
65485         getaddrinfo.
65486         (ch_strerror): New function.
65487         (last_cherror): New global.
65488         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65489         interface.
65490         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65491         void *.
65492         (freeaddrinfo): Free ai->ai_canonname when set.
65493
65494 2005-09-12  Derek Price  <derek@ximbiot.com>
65495
65496         Make canon-host require getaddrinfo.
65497         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65498         AC_LIBSOURCE canon-host.h.  Call...
65499         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65500         gl_GETADDRINFO.
65501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65502
65503 2005-09-12  Derek Price  <derek@ximbiot.com>
65504
65505         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65506         LGPL.
65507         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65508
65509 2005-09-12  Derek Price  <derek@ximbiot.com>
65510
65511         * lib/gai_strerror.c: Include config.h when available.  Include
65512         getaddrinfo.h before other headers to test interface.
65513         Reported by Larry Jones <lawrence.jones@ugs.com>.
65514
65515 2005-09-12  Derek Price  <derek@ximbiot.com>
65516             Paul Eggert  <eggert@cs.ucla.edu>
65517
65518         * modules/glob (Files): Add glob-libc.h.
65519
65520 2005-09-12  Derek Price  <derek@ximbiot.com>
65521             Paul Eggert  <eggert@cs.ucla.edu>
65522
65523         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65524         glob_.h, glob-libc.h.
65525         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65526
65527 2005-09-12  Derek Price  <derek@ximbiot.com>
65528             Paul Eggert  <eggert@cs.ucla.edu>
65529
65530         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65531         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65532         protecting things that should be done only in gnulib contexts.
65533         * lib/glob_.h: New file, containing only the glob things needed for
65534         gnulib.
65535         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65536         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65537         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65538         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65539         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65540         and to respect the namespace rules better.
65541
65542 2005-09-08  Simon Josefsson  <jas@extundo.com>
65543
65544         * modules/socklen: New file.
65545
65546 2005-09-08  Simon Josefsson  <jas@extundo.com>
65547
65548         * m4/socklen.m4: New file.
65549
65550 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * modules/utimens (Files): Add m4/utimbuf.m4, since
65553         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
65554         Reported by Sergey Poznyakoff.
65555
65556 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
65559         definitions, since that's the preferred style in glibc.
65560         Fix a minor spacing issue, and update copyright notice to match
65561         glibc's.
65562
65563 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
65566
65567 2005-09-06  Simon Josefsson  <jas@extundo.com>
65568
65569         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
65570         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
65571
65572 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
65575         warning.
65576
65577 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65578
65579         * config/srclist.txt: Add glibc bug 1302.
65580
65581 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
65582
65583         Change bitset word type from unsigned int to unsigned long int,
65584         as this has better performance on typical 64-bit hosts.
65585         Port bitset code to hosts with unusual word sizes.
65586         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
65587         (build_collating_symbol):
65588         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
65589         argument is a bitset.  This is merely a style issue, but it makes
65590         it clearer that an entire array is expected.
65591         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
65592         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
65593         Port to the case where bitset_word is not the same as unsigned int.
65594         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65595         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
65596         Likewise.
65597         * lib/regexec.c (check_dst_limits_calc_pos_1,
65598         check_subexp_matching_top):
65599         (build_trtable, group_nodes_into_DFAstates):
65600         Likewise.
65601         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
65602         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
65603         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
65604         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
65605         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
65606         * lib/regcomp.c (optimize_subexps, lower_subexp):
65607         Work even if bitset_word has holes in its bitwise representation.
65608         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
65609         * lib/regexec.c (check_dst_limits_calc_pos_1,
65610         check_subexp_matching_top):
65611         Likewise.
65612         * lib/regex_internal.c (re_string_reconstruct):
65613         Don't assume UCHAR_MAX == 255.
65614         * lib/regex_internal.h (bitset_set_all): Likewise.
65615         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
65616         All uses changed.
65617         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
65618         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
65619         All uses changed.
65620         (BITSET_WORD_MAX): New macro.
65621         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
65622         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
65623         (bitset_empty, bitset_copy):
65624         Prefer sizeof (bitset) to multiplying it out ourselves.
65625         (bitset_not_merge): Remove; unused.
65626         (bitset_contain): Return bool, not unsigned int with one bit on.
65627         All callers changed.
65628         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
65629         alignment than re_node_set; do this by defining a new internal
65630         type struct dests_alloc and using it to allocate memory.
65631
65632 2005-09-05  Bruno Haible  <bruno@clisp.org>
65633
65634         * gnulib-tool (func_import): Fix comparison in handling of symbolic
65635         links.
65636
65637 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
65638
65639         * modules/size_max (Makefile.am): Add size_max.h
65640
65641 2005-09-04  Derek Price  <derek@ximbiot.com>
65642
65643         * gnulib-tool (func_import): Fix reversed $symbolic logic.
65644
65645 2005-09-03  Simon Josefsson  <jas@extundo.com>
65646
65647         * gnulib-tool: Fix typo.
65648
65649 2005-09-03  Simon Josefsson  <jas@extundo.com>
65650
65651         * config/srclist.txt: Add glibc bug 1293.
65652
65653 2005-09-03  Derek Price  <derek@ximbiot.com>
65654
65655         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
65656         From Larry Jones <lawrence.jones@ugs.com>.
65657
65658 2005-09-02  Simon Josefsson  <jas@extundo.com>
65659
65660         * modules/socklen: New file.
65661
65662 2005-09-02  Simon Josefsson  <jas@extundo.com>
65663
65664         * modules/havelib: New module.
65665
65666         * modules/gettext, modules/iconv, modules/lock, modules/readline:
65667         Use havelib.
65668
65669 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65670
65671         Check for arithmetic overflow when calculating sizes, to prevent
65672         some buffer-overflow issues.  These patches are conservative, in the
65673         sense that when I couldn't determine whether an overflow was possible,
65674         I inserted a run-time check.
65675         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
65676         macros.
65677         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
65678         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
65679         (re_xnrealloc, re_x2nrealloc): New inline functions.
65680         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
65681         parse_bracket_exp):
65682         (build_equiv_class, build_charclass): Check for arithmetic overflow
65683         in size expression calculations.
65684         * lib/regex_internal.c (re_string_realloc_buffers):
65685         (build_wcs_upper_buffer, re_node_set_add_intersect):
65686         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
65687         (re_dfa_add_node, register_state): Likewise.
65688         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
65689         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
65690         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
65691         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
65692
65693 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65694
65695         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
65696         m4/ulonglong.m4.  Problem reported by Martin Lambers.
65697
65698 2005-09-02  Bruno Haible  <bruno@clisp.org>
65699
65700         Support for lib vs. lib64 distinction on biarch platforms.
65701         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
65702         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
65703         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
65704
65705 2005-09-02  Bruno Haible  <bruno@clisp.org>
65706
65707         * gnulib-tool (import): In the other first-use case, provide defaults
65708         as well.
65709
65710 2005-09-02  Bruno Haible  <bruno@clisp.org>
65711
65712         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
65713         patches not yet found in the latest gettext release.
65714
65715 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
65718         to avoid a collision with bits/local_lim.h in glibc.
65719         All uses changed.  Problem reported by Dmitry V. Levin in
65720         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
65721
65722         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
65723         bugs in int versus size_t comparisons.
65724         (re_string_context_at): Fix bug where the code assumed that
65725         Idx is signed.
65726
65727         Use bool where appropriate.
65728         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
65729         All callers changed.
65730         (calc_eclosure_iter): Likewise, for ROOT arg.
65731         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
65732         (build_charclass_op): Likewise, for NON_MATCH arg.
65733         * lib/regex_internal.c (re_string_allocate, re_string_construct):
65734         (re_string_construct_common): Likewise, for ICASE arg.
65735         * lib/regexec.c (re_search_2_stub, re_search_stub):
65736         Likewise, for RET_LEN arg.
65737         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
65738         (set_regs): Likewise, for FL_BACKTRACK arg.
65739         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
65740         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
65741         (calc_eclosure_iter, parse_bracket_exp):
65742         Use bool for internal variables that are booleans.
65743         * lib/regexec.c (re_search_internal, check_matching,
65744         proceed_next_node):
65745         (set_regs, build_sifted_states, sift_states_bkref):
65746         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
65747         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65748         (find_collation_sequence_value):
65749         Likewise.
65750         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
65751         (re_node_set_compare):
65752         Return bool, not int. All callers changed.
65753         * lib/regexec.c (check_halt_node_context, check_dst_limits):
65754         (build_trtable, check_node_accept): Likewise.
65755         * lib/regex_internal.h: Include stdbool.h.
65756
65757         Fix bugs uncovered when converting to bool.
65758         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
65759         failure instead of charging ahead blindly.
65760         * lib/regex_internal.c (register_state): Likewise.
65761         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
65762         for freeing internal storage.
65763         (group_nodes_into_DFA_states): Use unsigned int, not int, for
65764         bitset pieces used as boolean, to avoid undefined behavior
65765         on hosts that do int overflow checking.
65766
65767 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65768
65769         * config/srclist.txt: Add glibc bugs 1285-1287.
65770
65771 2005-09-01  Jim Meyering  <jim@meyering.net>
65772
65773         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
65774         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
65775         Require gl_STAT_MACROS, too.
65776
65777 2005-09-01  Bruno Haible  <bruno@clisp.org>
65778
65779         * gnulib-tool (import): In the first-use case, provide defaults.
65780
65781 2005-09-01  Bruno Haible  <bruno@clisp.org>
65782
65783         * gnulib-tool (func_import): Remove the .tmp files.
65784
65785 2005-09-01  Bruno Haible  <bruno@clisp.org>
65786
65787         * gnulib-tool (func_import): Fix handling of symbolic links.
65788
65789 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65790
65791         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
65792         old glibc regex code mishandles strings longer than 2**31 bytes.
65793         This patch fixes this when the regex code is used in gnulib
65794         (i.e., outside glibc).
65795
65796         This patch should not affect the use of the regex code inside
65797         glibc.  No doubt this problem also needs to be handled for glibc
65798         as well, but the result will be an incompatible change to the
65799         glibc ABI, and the old ABI will have to be supported too.  That
65800         can be the the subject for another patch.
65801
65802         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
65803         governing whether the rest of this patch is active.  By default,
65804         the macro is disabled and the patch has no effect.
65805         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
65806         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
65807         (struct re_pattern_buffer, re_search, re_search_2, re_match):
65808         (re_match_2, re_set_registers): Use the new types.
65809         * lib/regex_internal.h (Idx, re_hashval_t): New types.
65810         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
65811         New macros.
65812         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65813         (re_string_context_at, bin_tree_t, re_dfastate_t):
65814         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65815         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65816         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65817         (re_string_char_size_at, re_string_wchar_at):
65818         (re_string_elem_size_at):
65819         Use the new types and macros to port to 64-bit hosts.
65820         Use unsigned types for internal values, so that the code
65821         mostly works even for arrays larger than SSIZE_MAX.
65822         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65823         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65824         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65825         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65826         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65827         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65828         (calc_inveclosure, parse_dup_op, build_range_exp):
65829         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65830         (fetch_number, create_token_tree, mark_opt_subexp):
65831         Likewise.
65832         * lib/regex_internal.c (re_string_construct_common,
65833         create_ci_newstate):
65834         (create_cd_newstate, re_string_allocate, re_string_construct):
65835         (re_string_realloc_buffers, build_wcs_upper_buffer):
65836         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65837         (re_string_reconstruct, re_string_peek_byte_case):
65838         (re_string_fetch_byte_case, re_string_context_at):
65839         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65840         (re_node_set_init_copy, re_node_set_add_intersect):
65841         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65842         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65843         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65844         (re_acquire_state, re_acquire_state_context, register_state):
65845         Likewise.
65846         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65847         search_cur_bkref_entry):
65848         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65849         (re_search_internal, re_search_2_stub, re_search_stub)
65850         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65851         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65852         (update_cur_sifted_state, check_dst_limits):
65853         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65854         (check_subexp_limits, sift_states_bkref, merge_state_array):
65855         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65856         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65857         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65858         (expand_bkref_cache, check_node_accept_bytes):
65859         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65860         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65861         (acquire_init_state_context, check_halt_node_context):
65862         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65863         (sift_states_backward, clean_state_log_if_needed):
65864         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65865         (find_recover_state, transit_state_sb, transit_state_mb):
65866         (transit_state_bkref, build_trtable, match_ctx_clean):
65867         Likewise.
65868         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65869         to work around an assumption that REG_MISSING is negative.
65870
65871         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65872         (seek_collating_symbol_entry) [defined _LIBC]:
65873         (lookup_collation_sequence_value) [defined _LIBC]:
65874         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65875         Use prototypes rather than old-style function definitions.
65876         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65877         (transit_state_sb) [0]:
65878         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65879
65880         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65881         rm_eo.
65882
65883         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65884         (optimize_subexps, lower_subexp):
65885         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65886         since the signed shift might overflow.  Use 1u<<31 instead.
65887         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65888         Likewise.
65889         * lib/regexec.c (check_dst_limits_calc_pos_1,
65890         check_subexp_matching_top): Likewise.
65891
65892         * lib/regcomp.c (optimize_subexps, lower_subexp):
65893         Use CHAR_BIT rather than 8, for clarity.
65894         * lib/regexec.c (check_dst_limits_calc_pos_1):
65895         (check_subexp_matching_top): Likewise.
65896         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65897         have to worry about portability issues when shifting it left.
65898         Remove no-longer-needed test for table_size > 0.
65899         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65900         in a word, as the resulting behavior is undefined.
65901         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65902         in one case, a <= should have been an <, and in another case the
65903         whole test was missing.
65904         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65905         the standard name CHAR_BIT.
65906         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65907         this is not true on one's complement and signed-magnitude hosts.
65908
65909         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65910         next_last_offset.
65911         (struct re_dfa_t): Remove unused member states_alloc.
65912         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65913
65914 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65915
65916         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65917         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65918         and large-file glibc and in 32-bit large-file Solaris.
65919
65920 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65921
65922         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65923         lengths fit in regoff_t; this isn't true if regoff_t is the same
65924         width as size_t.
65925         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65926         (= START + RANGE) instead of RANGE.  This avoids overflow
65927         problems when regoff_t is the same width as size_t.
65928         All callers changed.
65929         (re_search_2_stub): Check for overflow when adding the
65930         sizes of the two strings.
65931         (re_search_stub): Check for overflow when adding START
65932         to RANGE; if it occurs, substitute the extreme value.
65933
65934 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65935
65936         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65937
65938 2005-08-31  Jim Meyering  <jim@meyering.net>
65939
65940         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65941         a pointer-to-const.
65942         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65943         (register_state): Likewise.
65944         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65945         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65946         (group_nodes_into_DFAstates): Likewise.
65947
65948 2005-08-31  Jim Meyering  <jim@meyering.net>
65949
65950         * check-module: Add a FIXME comment.
65951
65952 2005-08-31  Eric Blake  <ebb9@byu.net>
65953
65954         * modules/unistd-safer (Files): Add unistd--.h.
65955         * modules/stdio-safer (Files): Add stdio--.h.
65956
65957 2005-08-31  Derek Price  <derek@ximbiot.com>
65958
65959         * lib/getdelim.c (getdelim): Return EOF on EOF.
65960         Reported by Larry Jones <lawrence.jones@ugs.com>.
65961
65962 2005-08-31  Bruno Haible  <bruno@clisp.org>
65963
65964         Avoid unnecessary diffs in the generated lib/Makefile.am.
65965         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65966         the generated files.
65967         (func_import): Don't set cmd.
65968
65969 2005-08-31  Bruno Haible  <bruno@clisp.org>
65970
65971         * lib/strstr.c: Include <stddef.h>, for NULL.
65972         * lib/strcasestr.c: Likewise.
65973         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65974
65975 2005-08-31  Bruno Haible  <bruno@clisp.org>
65976
65977         * gnulib-tool: New option --macro-prefix.
65978         (func_import): Use macro_prefix.
65979         (import): Handle option --macro-prefix.
65980
65981 2005-08-31  Bruno Haible  <bruno@clisp.org>
65982
65983         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65984         Also use new variables cached_lgpl, cached_libtool.
65985
65986 2005-08-31  Bruno Haible  <bruno@clisp.org>
65987
65988         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65989         always instantiating them.
65990
65991 2005-08-31  Bruno Haible  <bruno@clisp.org>
65992
65993         * gnulib-tool (func_import): Read the previous cached settings
65994         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65995         earlier added by gnulib but are now dropped. Warn when a gnulib file
65996         overwrites a non-gnulib file.
65997
65998 2005-08-31  Bruno Haible  <bruno@clisp.org>
65999
66000         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66001         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66002         projects that don't keep autogenerated files in CVS. Put into
66003         actioncmd only the specified modules, not the transitive closure.
66004
66005 2005-08-31  Bruno Haible  <bruno@clisp.org>
66006
66007         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66008         Create directories that shall be filled.
66009         (import): Don't look for gl_* macros in configure.ac. Recurse across
66010         all directories containing a gnulib-cache.m4 files, if meaningful.
66011
66012 2005-08-31  Bruno Haible  <bruno@clisp.org>
66013
66014         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66015         (import): Set seen_libtool when we see gl_LIBTOOL.
66016
66017 2005-08-31  Bruno Haible  <bruno@clisp.org>
66018
66019         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66020         declaration macro definitions from generated gnulib.m4.
66021
66022 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66023
66024         * lib/iconvme.h: Add prototype for iconv_alloc.
66025
66026 2005-08-29  Simon Josefsson  <jas@extundo.com>
66027
66028         * lib/iconvme.c: Fix errno.
66029
66030 2005-08-29  Bruno Haible  <bruno@clisp.org>
66031
66032         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66033         that it works when the directory contains spaces.
66034
66035 2005-08-29  Bruno Haible  <bruno@clisp.org>
66036
66037         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66038
66039 2005-08-29  Bruno Haible  <bruno@clisp.org>
66040
66041         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66042         Emit more advice.
66043
66044 2005-08-29  Bruno Haible  <bruno@clisp.org>
66045         and Stepan Kasal  <kasal@ucw.cz>
66046
66047         * check-module: If more parameters are given, check each of them
66048         separately; add more exceptions, as noted by Jim Meyering.
66049         (check_module): New procedure.
66050         (%exempt_header): Now contains all exceptions.
66051
66052 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66053
66054         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66055
66056 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66057
66058         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66059
66060 2005-08-28  Bruno Haible  <bruno@clisp.org>
66061
66062         * m4/gnulib-tool.m4: New file.
66063
66064 2005-08-27  Jim Meyering  <jim@meyering.net>
66065
66066         * modules/unistd-safer (Files): Add pipe-safer.c.
66067         * modules/fcntl-safer (Files): Add creat-safer.c.
66068
66069 2005-08-27  Jim Meyering  <jim@meyering.net>
66070
66071         * m4/stdlib-safer.m4: New file.  From coreutils.
66072         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66073         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66074         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66075         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66076         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66077
66078 2005-08-27  Jim Meyering  <jim@meyering.net>
66079
66080         * lib/fopen-safer.c: Merge minor changes from coreutils.
66081         * lib/dup-safer.c: Likewise.
66082         * lib/fd-safer.c: Likewise.
66083
66084         Merge from coreutils.
66085         * lib/stdio--.h: New file.
66086         * lib/stdlib--.h: New file.
66087         * lib/mkstemp-safer.c: New file.
66088
66089         GNU tar needs these.
66090         * lib/pipe-safer.c: New file.
66091         * lib/creat-safer.c: New file.
66092         * lib/fcntl--.h (creat): Define to creat_safer.
66093         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66094         * lib/unistd--.h (pipe): Define to pipe_safer.
66095         * lib/unistd-safer.h: Declare pipe_safer.
66096
66097 2005-08-26  Simon Josefsson  <jas@extundo.com>
66098
66099         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66100         Haible <bruno@clisp.org>.
66101
66102 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66103
66104         * lib/regex_internal.h: Remove all references to
66105         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66106         or better.
66107         (bitset_not, bitset_merge, bitset_not_merge):
66108         (bitset_mask, re_string_allocate, re_string_construct):
66109         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66110         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66111         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66112         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66113         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66114         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66115         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66116         (re_acquire_state_context):
66117         Remove unnecessary forward decls.
66118         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66119         Put __attribute at function definition,
66120         now that the function decl has been removed.
66121         * lib/regex_internal.c (re_string_peek_byte_case):
66122         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66123         Likewise.
66124
66125 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66126
66127         * m4/regex.m4: Add AC_PREREQ(2.50).
66128         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66129
66130 2005-08-25  Simon Josefsson  <jas@extundo.com>
66131
66132         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66133         __fsetlocking.
66134
66135 2005-08-25  Simon Josefsson  <jas@extundo.com>
66136
66137         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66138         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66139         GLIBC specific code.
66140
66141 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66142
66143         Make regex safe for g++.  This fixes one real bug (an "err"
66144         that should have been "*err").  g++ problem reported by
66145         Sam Steingold.
66146         * lib/regex_internal.h (re_calloc): New macro, consistent with
66147         re_malloc etc.  All callers of calloc changed to use re_calloc.
66148         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66149         not int.  All callers changed.
66150         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66151         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66152         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66153         (find_recover_state): Change "err" to "*err"; this fixes what
66154         appears to be a real bug.
66155         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66156         versus int.
66157
66158 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66159
66160         * modules/regex (Depends-on): Add malloc, since the code
66161         assumes that !malloc(0) means failure.
66162
66163 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66164
66165         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66166
66167         alloca modernization/simplification for regex.
66168         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66169         needs to be at the start of the file, and can be moved into
66170         regex_internal.h and simplified.
66171         * lib/regex_internal.h: Include <alloca.h>.
66172         (__libc_use_alloca) [!defined _LIBC]: New macro.
66173         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66174         now works outside glibc.
66175
66176 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66177
66178         * config/srclist.txt: Add glibc bugs 1241, 1245.
66179
66180 2005-08-25  Jim Meyering  <jim@meyering.net>
66181
66182         * lib/open-safer.c: Include <config.h>.
66183         Otherwise, we'd lose LARGEFILE support in any file using
66184         e.g. "fcntl--.h"
66185
66186 2005-08-25  Bruno Haible  <bruno@clisp.org>
66187
66188         * m4/minmax.m4: Require autoconf 2.52.
66189         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66190         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66191         alternatives of translit over the alphabet.
66192         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66193
66194 2005-08-24  Simon Josefsson  <jas@extundo.com>
66195
66196         * tests/test-getpass.c: New file.
66197
66198 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66199
66200         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66201         for GNU regex features.
66202
66203 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66206         * lib/regex.h (regerror): Likewise.
66207
66208         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66209         requires this.  (The code never needed it.)
66210
66211         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66212         All uses of recently-renamed identifiers changed to use the new,
66213         POSIX-compliant names.  The code will build and run just fine
66214         without these changes, but it's better to eat our own dog food
66215         and use the standard-conforming names.
66216
66217         * lib/regex.h: Fix a multitude of POSIX name space violations.
66218         These changes have an effect only for programs that define
66219         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66220         do not change anything for programs compiled in the normal way.
66221         Also, there is no effect on the ABI.
66222
66223         (_REGEX_SOURCE): New macro.
66224         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66225         defined and _GNU_SOURCE is not; this fixes a name space violation.
66226
66227         Rename the following macros to obey POSIX requirements.
66228         The old names are still visible as macros if _REGEX_SOURCE is defined.
66229         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66230         RE_BACKSLASH_ESCAPE_IN_LISTS.
66231         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66232         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66233         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66234         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66235         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66236         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66237         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66238         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66239         (REG_INTERVALS): renamed from RE_INTERVALS.
66240         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66241         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66242         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66243         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66244         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66245         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66246         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66247         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66248         RE_UNMATCHED_RIGHT_PAREN_ORD.
66249         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66250         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66251         (REG_DEBUG): renamed from RE_DEBUG.
66252         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66253         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66254         unusual, since we can't clash with the POSIX REG_ICASE.
66255         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66256         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66257         (REG_NO_SUB): renamed from RE_NO_SUB.
66258         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66259         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66260         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66261         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66262         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66263         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66264         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66265         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66266         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66267         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66268         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66269         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66270         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66271         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66272         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66273         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66274         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66275         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66276         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66277         (REG_FIXED): Renamed from REGS_FIXED.
66278         (REG_NREGS): Renamed from RE_NREGS.
66279
66280         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66281         of other REG_* macros, since POSIX says the user is allowed to
66282         #undef these macros selectively.
66283
66284         (reg_errcode_t): Update comment stating what other tables need
66285         to be consistent.
66286
66287         Rename the following enum values to obey POSIX requirements.
66288         The old names are still visible as macros.
66289         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66290         is not defined, since GNU is supposed to be a superset of POSIX as
66291         much as possible, and since we want reg_errcode_t to be a signed
66292         type for implementation consistency.
66293         (_REG_NOERROR): Renamed from REG_NOERROR.
66294         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66295         (_REG_BADPAT): Renamed from REG_BADPAT.
66296         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66297         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66298         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66299         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66300         (_REG_EBRACK): Renamed from REG_EBRACK.
66301         (_REG_EPAREN): Renamed from REG_EPAREN.
66302         (_REG_EBRACE): Renamed from REG_EBRACE.
66303         (_REG_BADBR): Renamed from REG_BADBR.
66304         (_REG_ERANGE): Renamed from REG_ERANGE.
66305         (_REG_ESPACE): Renamed from REG_ESPACE.
66306         (_REG_BADRPT): Renamed from REG_BADRPT.
66307         (_REG_EEND): Renamed from REG_EEND.
66308         (_REG_ESIZE): Renamed from REG_ESIZE.
66309         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66310         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66311         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66312         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66313         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66314
66315         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66316         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66317         changed.  But support the old name if the new one is not defined
66318         and if _REGEX_SOURCE.
66319
66320         Change the following member names in struct re_pattern_buffer.
66321         The old names are still supported if !_REGEX_SOURCE.
66322         The new names are always supported, regardless of _REGEX_SOURCE.
66323         (re_buffer): Renamed from buffer.
66324         (re_allocated): Renamed from allocated.
66325         (re_used): Renamed from used.
66326         (re_syntax): Renamed from syntax.
66327         (re_fastmap): Renamed from fastmap.
66328         (re_translate): Renamed from translate.
66329         (re_can_be_null): Renamed from can_be_null.
66330         (re_regs_allocated): Renamed from regs_allocated.
66331         (re_fastmap_accurate): Renamed from fastmap_accurate.
66332         (re_no_sub): Renamed from no_sub.
66333         (re_not_bol): Renamed from not_bol.
66334         (re_not_eol): Renamed from not_eol.
66335         (re_newline_anchor): Renamed from newline_anchor.
66336
66337         Change the following member names in struct re_registers.
66338         The old names are still supported if !_REGEX_SOURCE.
66339         The new names are always supported, regardless of _REGEX_SOURCE.
66340         (rm_num_regs): Renamed from num_regs.
66341         (rm_start): Renamed from start.
66342         (rm_end): Renamed from end.
66343
66344         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66345         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66346         Prepend __ to parameter names.
66347
66348         Undo yesterday's changes.
66349
66350 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66353         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66354         lib/regex.c.
66355
66356 2005-08-24  Jim Meyering  <jim@meyering.net>
66357
66358         Sync from coreutils.
66359         * m4/fcntl-safer.m4: New file.
66360
66361         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66362         and object files for this module.
66363
66364 2005-08-24  Jim Meyering  <jim@meyering.net>
66365
66366         Sync from coreutils.
66367         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66368
66369 2005-08-24  Jim Meyering  <jim@meyering.net>
66370
66371         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66372         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66373
66374 2005-08-24  Jim Meyering  <jim@meyering.net>
66375
66376         * modules/fcntl-safer: New module.
66377         * modules/fts (Depends-on): Add fcntl-safer.
66378         * MODULES.html.sh (File descriptor based Input/Output):
66379         Add fcntl-safer.
66380
66381 2005-08-24  Bruno Haible  <bruno@clisp.org>
66382
66383         Support for unit test modules.
66384         * modules/README: Mention tests modules.
66385         * modules/TEMPLATE-TESTS: New file.
66386         * gnulib-tool: New options --extract-tests-module, --with-tests and
66387         --tests-base (unused for the moment).
66388         (testsbase, inctests): New variables.
66389         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66390         (func_verify_module): Exclude TEMPLATE-TESTS.
66391         (func_verify_nontests_module, func_verify_tests_module): New functions.
66392         (func_get_dependencies): Add implicit dependency for tests modules.
66393         (func_get_tests_module): New function.
66394         (func_modules_transitive_closure): When --with-tests was specified,
66395         include the unit tests as well, unless explicitly avoided.
66396         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66397         (func_emit_tests_Makefile_am): New function.
66398         (func_create_testdir): When --with-tests was specified, emit a
66399         tests/ directory.
66400         * MODULES.html.sh (Future developments): Update.
66401
66402 2005-08-24  Bruno Haible  <bruno@clisp.org>
66403
66404         * modules/tls-tests: New file.
66405         * tests/test-tls.c: New file, from GNU gettext.
66406
66407 2005-08-24  Bruno Haible  <bruno@clisp.org>
66408
66409         * modules/lock-tests: New file.
66410         * tests/test-lock.c: New file, from GNU gettext.
66411
66412 2005-08-24  Bruno Haible  <bruno@clisp.org>
66413
66414         * lib/lock.h: Add multiple inclusion guard.
66415         * lib/tls.h: Add multiple inclusion guard.
66416
66417 2005-08-24  Bruno Haible  <bruno@clisp.org>
66418
66419         * gnulib-tool: Add support for the --aux-dir option to
66420         --create-testdir, --create-megatestdir, --test, --megatest.
66421         (func_create_testdir, func_create_megatestdir): Optionally emit a
66422         AC_CONFIG_AUX_DIR directive.
66423         (create-testdir, create-megatestdir, test, megatest): Provide a
66424         default value for $auxdir.
66425
66426 2005-08-24  Bruno Haible  <bruno@clisp.org>
66427
66428         * gnulib-tool (import): Use compound statement instead of subshell
66429         where possible.
66430
66431 2005-08-24  Bruno Haible  <bruno@clisp.org>
66432
66433         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66434
66435 2005-08-24  Bruno Haible  <bruno@clisp.org>
66436
66437         * gnulib-tool (func_version): Update.
66438
66439 2005-08-24  Bruno Haible  <bruno@clisp.org>
66440
66441         * gnulib-tool (func_import, func_create_testdir,
66442         func_create_megatestdir): Quote all autoconf macro arguments.
66443
66444 2005-08-24  Bruno Haible  <bruno@clisp.org>
66445
66446         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66447         option --force, because --force causes the aclocal.m4 of each
66448         subdirectory to be newer than the corresponding config.h.in.
66449
66450 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66451
66452         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66453         All contents moved to gl_REGEX.
66454         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66455         assume that it does.
66456
66457 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66458
66459         * lib/regex.h (REG_NOSYS)
66460         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66461         Define, since POSIX requires it as of 2001.
66462         (_REG_ENOSYS)
66463         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66464         New private symbol, used to keep the enum signed in all cases.
66465         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66466         Youngman in
66467         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66468
66469         * lib/regex_internal.c (re_string_skip_chars, register_state):
66470         (calc_state_hash):
66471         Remove forward decls; no longer needed now that we use prototypes.
66472         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66473         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66474         (clean_state_log_if_needed): Likewise.
66475
66476 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66477
66478         * config/srclist.txt: Add glibc bugs 1231-1233.
66479
66480 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66481
66482         Fix problems reported by Sam Steingold in
66483         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66484         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66485         assumed that reg_errcode_t is a signed type, which is not
66486         necessarily true if _XOPEN_SOURCE is not defined.
66487         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66488         since some compilers warn about it otherwise.
66489
66490 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66491
66492         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66493         (init_word_char, create_initial_state, duplicate_node_closure):
66494         (fetch_token, peek_token_bracket, build_range_exp):
66495         (build_collating_symbol): Remove forward decls; no longer needed
66496         now that we use prototypes.
66497
66498         * lib/regcomp.c:
66499         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66500         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66501         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66502         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66503         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66504         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66505         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66506         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66507         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66508         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66509         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66510         (build_charclass, build_charclass_op, fetch_number, create_tree):
66511         (create_token_tree, mark_opt_subexp, duplicate_tree):
66512         Use prototypes rather than old-style definitions.
66513
66514         * lib/regex_internal.c:
66515         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66516         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66517         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66518         (re_string_reconstruct, re_string_peek_byte_case):
66519         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66520         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66521         (re_node_set_init_copy, re_node_set_add_intersect):
66522         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66523         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66524         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66525         (re_acquire_state, re_acquire_state_context, register_state):
66526         (create_ci_newstate, create_cd_newstate, free_state):
66527         Likewise.
66528         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66529         re_search_2):
66530         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66531         (re_search_internal, prune_impossible_nodes):
66532         (acquire_init_state_context, check_matching, static):
66533         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66534         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66535         (update_regs, sift_states_backward, build_sifted_states):
66536         (clean_state_log_if_needed, merge_state_array):
66537         (update_cur_sifted_state, add_epsilon_src_nodes):
66538         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66539         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66540         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66541         (find_recover_state, check_subexp_matching_top, transit_state_mb):
66542         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
66543         (check_arrival, check_arrival_add_next_nodes):
66544         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66545         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66546         (check_node_accept_bytes, check_node_accept, extend_buffers):
66547         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
66548         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
66549         (sift_ctx_init):
66550         Likewise.
66551
66552         * lib/regex_internal.h:
66553         (re_string_allocate, re_string_construct, re_string_reconstruct):
66554         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
66555         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
66556         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
66557         (re_string_context_at, re_string_peek_byte_case):
66558         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
66559         is defined, since we now use prototypes always.
66560
66561         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
66562         C89 or better.  All uses removed.
66563
66564 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66565
66566         * config/srclist.txt: Add glibc bugs 1220-1227.
66567
66568 2005-08-20  Jim Meyering  <jim@meyering.net>
66569
66570         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
66571         of unused local, dfa.
66572
66573 2005-08-20  Bruno Haible  <bruno@clisp.org>
66574
66575         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
66576
66577 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66578
66579         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
66580         (re_node_set_insert_last, re_dfa_add_node):
66581         Rename local variables to avoid GCC shadowing warnings.
66582
66583 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66584
66585         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
66586         [defined lint]: Suppress bogus uninitialized-variable warnings.
66587
66588         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
66589         and let the caller return REG_ESPACE if out of space.  This
66590         removes an uninitialied-variable warning with GCC 4.0.1, and also
66591         avoids taking the address of a local variable.  All callers
66592         changed.
66593
66594 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66595
66596         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
66597         $LIBCSRC/posix/regexec.c.
66598         Add glibc bug 1217 for regcomp.c.
66599
66600 2005-08-19  Jim Meyering  <jim@meyering.net>
66601
66602         * lib/regexec.c (proceed_next_node): Redo local variables to
66603         avoid GCC shadowing warnings.
66604
66605 2005-08-18  Bruno Haible  <bruno@clisp.org>
66606
66607         * lib/strstr.c (strstr): Fix return value in multibyte case.
66608         * lib/strcasestr.c (strcasestr): Likewise.
66609
66610 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66611
66612         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
66613
66614 2005-08-17  Jim Meyering  <jim@meyering.net>
66615
66616         Make the %s format (seconds since the epoch) work for a negative
66617         number and when used with a zero-padded field width, e.g. %015s.
66618
66619         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
66620         label so that it precedes the code to set `digits'.  Otherwise,
66621         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
66622         print `00-22'.  Now, it prints `-0022', as it should.
66623
66624 2005-08-17  Bruno Haible  <bruno@clisp.org>
66625
66626         * modules/strstr (Files): Add m4/mbrtowc.m4.
66627         (Depends-on): Add mbuiter.
66628
66629 2005-08-17  Bruno Haible  <bruno@clisp.org>
66630
66631         * modules/strcasestr: New file.
66632         * MODULES.html.sh (String handling, based on ANSI C 89): Add
66633         strcasestr.
66634
66635 2005-08-17  Bruno Haible  <bruno@clisp.org>
66636
66637         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
66638
66639 2005-08-17  Bruno Haible  <bruno@clisp.org>
66640
66641         * modules/mbuiter: New file.
66642         * MODULES.html.sh (Extended multibyte and wide character utilities):
66643         Add mbuiter.
66644
66645 2005-08-17  Bruno Haible  <bruno@clisp.org>
66646
66647         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
66648         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
66649
66650 2005-08-17  Bruno Haible  <bruno@clisp.org>
66651
66652         * m4/strcasestr.m4: New file.
66653
66654 2005-08-17  Bruno Haible  <bruno@clisp.org>
66655
66656         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
66657         * lib/strstr.c: Completely rewritten, with multibyte locale support.
66658
66659 2005-08-17  Bruno Haible  <bruno@clisp.org>
66660
66661         * lib/strcasestr.h: New file.
66662         * lib/strcasestr.c: New file.
66663
66664 2005-08-17  Bruno Haible  <bruno@clisp.org>
66665
66666         * lib/strcasecmp.c: Use mbuiter.h.
66667
66668 2005-08-17  Bruno Haible  <bruno@clisp.org>
66669
66670         * lib/mbuiter.h: New file.
66671
66672 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
66675         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
66676         and gl_GETOPT are both invoked via different paths (as happens
66677         with GNU tar CVS because it uses both argp and getopt), the former
66678         wins.
66679
66680 2005-08-16  Bruno Haible  <bruno@clisp.org>
66681
66682         * modules/tls: New file.
66683         * MODULES.html.sh (Multithreading): Add tls.
66684
66685 2005-08-16  Bruno Haible  <bruno@clisp.org>
66686
66687         * modules/strnlen1: New file.
66688         * MODULES.html.sh (String handling): Add strnlen1.
66689
66690 2005-08-16  Bruno Haible  <bruno@clisp.org>
66691
66692         * modules/strcase (Files): Add m4/mbrtowc.m4.
66693         (Depends-on): Add strnlen1, mbchar.
66694
66695 2005-08-16  Bruno Haible  <bruno@clisp.org>
66696
66697         * modules/mbiter: New file.
66698         * MODULES.html.sh (Extended multibyte and wide character utilities):
66699         Add mbiter.
66700
66701 2005-08-16  Bruno Haible  <bruno@clisp.org>
66702
66703         * modules/mbfile: New file.
66704         * MODULES.html.sh (Extended multibyte and wide character utilities):
66705         Add mbfile.
66706
66707 2005-08-16  Bruno Haible  <bruno@clisp.org>
66708
66709         * modules/mbchar: New file.
66710         * MODULES.html.sh (Extended multibyte and wide character utilities):
66711         New section.
66712
66713 2005-08-16  Bruno Haible  <bruno@clisp.org>
66714
66715         * m4/tls.m4: New file, from GNU gettext.
66716
66717 2005-08-16  Bruno Haible  <bruno@clisp.org>
66718
66719         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
66720         always.
66721         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
66722
66723 2005-08-16  Bruno Haible  <bruno@clisp.org>
66724
66725         * m4/mbiter.m4: New file.
66726
66727 2005-08-16  Bruno Haible  <bruno@clisp.org>
66728
66729         * m4/mbfile.m4: New file.
66730
66731 2005-08-16  Bruno Haible  <bruno@clisp.org>
66732
66733         * m4/mbchar.m4: New file.
66734
66735 2005-08-16  Bruno Haible  <bruno@clisp.org>
66736
66737         * lib/tls.h: New file, from GNU gettext.
66738         * lib/tls.c: New file, from GNU gettext.
66739
66740 2005-08-16  Bruno Haible  <bruno@clisp.org>
66741
66742         * lib/strnlen1.h: New file.
66743         * lib/strnlen1.c: New file.
66744
66745 2005-08-16  Bruno Haible  <bruno@clisp.org>
66746
66747         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
66748         (mbi_init): Update.
66749         (mbi_avail, mbi_advance): Let the iteration end before the terminating
66750         NUL byte, not after it.
66751
66752 2005-08-16  Bruno Haible  <bruno@clisp.org>
66753
66754         * lib/strcase.h (strcasecmp): Add note in comments.
66755         * lib/strncasecmp.c: Use code from strcasecmp.c.
66756         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
66757         (strcasecmp): Work correctly in multibyte locales.
66758
66759 2005-08-16  Bruno Haible  <bruno@clisp.org>
66760
66761         * lib/mbiter.h: New file.
66762
66763 2005-08-16  Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/mbfile.h: New file.
66766
66767 2005-08-16  Bruno Haible  <bruno@clisp.org>
66768
66769         * lib/mbchar.h: New file.
66770         * lib/mbchar.c: New file.
66771
66772 2005-08-16  Bruno Haible  <bruno@clisp.org>
66773
66774         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
66775         the valid ones. Makes the comparison operations transitive:
66776         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
66777         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
66778
66779 2005-08-15  Simon Josefsson  <jas@extundo.com>
66780
66781         * modules/ssize_t (License): Change to 'unlimited'.
66782
66783         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
66784
66785 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66786
66787         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
66788         Add comments for each pending glibc patch.
66789
66790 2005-08-15  Bruno Haible  <bruno@clisp.org>
66791
66792         * lib/regex.h (__restrict_arr): Don't define to __restrict if
66793         __cplusplus is defined.
66794
66795 2005-08-14  Jim Meyering  <jim@meyering.net>
66796
66797         Sync from coreutils.
66798
66799         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
66800         Use the hash-table-based cycle-detection code not just when
66801         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
66802         Reported by James Youngman in
66803         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
66804         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
66805         FTS_TIGHT_CYCLE_CHECK.
66806         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
66807         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
66808         once again.
66809         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
66810         * lib/fts.c (fd_safer): Remove decl.
66811         Include fcntl--.h rather than unistd-safer.h
66812         (fts_safe_changedir): Don't call fd_safer; no longer needed
66813         now that we include fcntl--.h.
66814
66815 2005-08-12  Simon Josefsson  <jas@extundo.com>
66816
66817         * modules/getndelim2: Use ssize_t module.
66818         * modules/getnline: Likewise.
66819         * modules/safe-read: Likewise.
66820         * modules/xreadlink: Likewise.
66821
66822         * modules/ssize_t: New file.
66823
66824 2005-08-12  Simon Josefsson  <jas@extundo.com>
66825
66826         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66827
66828 2005-08-12  Simon Josefsson  <jas@extundo.com>
66829
66830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66831         ssize_t.
66832
66833 2005-08-12  Simon Josefsson  <jas@extundo.com>
66834
66835         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66836         readline, getdelim and check_version.
66837         (Support for systems lacking ISO C 99: Sizes of integer types):
66838         Add size_max.
66839
66840 2005-08-12  Bruno Haible  <bruno@clisp.org>
66841
66842         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66843
66844 2005-08-11  Simon Josefsson  <jas@extundo.com>
66845
66846         * modules/readline: New file.
66847
66848         * modules/strnlen (Files): Add strnlen.h.
66849
66850 2005-08-11  Simon Josefsson  <jas@extundo.com>
66851
66852         * m4/readline.m4: New file.
66853
66854 2005-08-11  Simon Josefsson  <jas@extundo.com>
66855
66856         * lib/readline.h, readline.c: New file.
66857
66858 2005-08-11  Simon Josefsson  <jas@extundo.com>
66859
66860         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66861         gl_AVOID.
66862
66863 2005-08-11  Bruno Haible  <bruno@clisp.org>
66864
66865         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66866
66867 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66868
66869         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66870
66871 2005-08-10  Simon Josefsson  <jas@extundo.com>
66872
66873         * tests/test-iconvme.c: New file.
66874
66875 2005-08-10  Simon Josefsson  <jas@extundo.com>
66876
66877         * m4/strnlen.m4: New file.
66878
66879         * m4/strndup.m4: Don't check for strnlen declaration, done in
66880         strnlen.m4.
66881
66882 2005-08-10  Simon Josefsson  <jas@extundo.com>
66883
66884         * lib/strndup.c: Use strnlen.h.
66885
66886         * lib/strnlen.h: New file.
66887
66888 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66889
66890         * README: Typos.
66891
66892 2005-08-02  Simon Josefsson  <jas@extundo.com>
66893
66894         * modules/readline: New file.
66895
66896 2005-08-02  Simon Josefsson  <jas@extundo.com>
66897
66898         * modules/getdelim: New file.
66899
66900         * modules/getline: Rewrite, don't use getndelim2.
66901
66902 2005-08-02  Simon Josefsson  <jas@extundo.com>
66903
66904         * m4/getline.m4: Separate out getdelim stuff into separate module.
66905
66906         * m4/getdelim.m4: New file.
66907
66908 2005-08-02  Simon Josefsson  <jas@extundo.com>
66909
66910         * lib/getline.h, getline.c: Rewrite.
66911
66912         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66913
66914 2005-07-31  Bruno Haible  <bruno@clisp.org>
66915
66916         * lib/lock.h (gl_lock_initializer): New macro.
66917         (gl_lock_define_initialized): Use it.
66918         (gl_rwlock_initializer): New macro.
66919         (gl_rwlock_define_initialized): Use it.
66920         (gl_recursive_lock_initializer): New macro.
66921         (gl_recursive_lock_define_initialized): Use it.
66922
66923 2005-07-30  Karl Berry  <karl@gnu.org>
66924
66925         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66926         Report from Ben Pfaff, regarding getopt.
66927
66928 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66929
66930         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66931         normal way.
66932         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66933         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66934         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66935         (gl_GETOPT): Use the new macros.  Most of the implementation
66936         is moved to the new macros.  This is for programs like Emacs
66937         that don't want all the functionality of gl_GETOPT.
66938
66939 2005-07-26  Bruno Haible  <bruno@clisp.org>
66940
66941         * m4/lock.m4: Update from GNU gettext.
66942
66943 2005-07-26  Bruno Haible  <bruno@clisp.org>
66944
66945         * lib/lock.h: Update from GNU gettext.
66946         * lib/lock.c: Update from GNU gettext.
66947
66948 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66949
66950         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66951         obsolescent AC_TRY_RUN.  Include the default includes files, for
66952         'exit'.
66953
66954 2005-07-24  Bruno Haible  <bruno@clisp.org>
66955
66956         * modules/visibility: New file.
66957         * MODULES.html.sh (Misc): Add visibility.
66958
66959 2005-07-24  Bruno Haible  <bruno@clisp.org>
66960
66961         * m4/visibility.m4: New file.
66962
66963 2005-07-24  Bruno Haible  <bruno@clisp.org>
66964
66965         * doc/visibility.texi: New file.
66966
66967 2005-07-22  Bruno Haible  <bruno@clisp.org>
66968
66969         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66970         $(ALLOCA_H), redundant through BUILT_SOURCES.
66971         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66972         redundant through BUILT_SOURCES.
66973         * modules/byteswap (Makefile.am): Remove explicit dependency on
66974         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66975         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66976         $(FNMATCH_H), redundant through BUILT_SOURCES.
66977         * modules/getopt (Makefile.am): Remove explicit dependency on
66978         $(GETOPT_H), redundant through BUILT_SOURCES.
66979         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66980         redundant through BUILT_SOURCES.
66981         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66982         redundant through BUILT_SOURCES.
66983         * modules/stdbool (Makefile.am): Remove explicit dependency on
66984         $(STDBOOL_H), redundant through BUILT_SOURCES.
66985         * modules/stdint (Makefile.am): Remove explicit dependency on
66986         $(STDINT_H), redundant through BUILT_SOURCES.
66987         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66988         Remove explicit dependency on $(SYSEXITS_H).
66989         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66990
66991 2005-07-18  Simon Josefsson  <jas@extundo.com>
66992
66993         * lib/check-version.c (check_version): Accept identical versions too.
66994
66995 2005-07-18  Bruno Haible  <bruno@clisp.org>
66996
66997         * modules/lock: New file.
66998         * MODULES.html.sh (Multithreading): New section.
66999
67000 2005-07-18  Bruno Haible  <bruno@clisp.org>
67001
67002         * m4/lock.m4: New file, from GNU gettext.
67003
67004 2005-07-18  Bruno Haible  <bruno@clisp.org>
67005
67006         * lib/lock.h: New file, from GNU gettext.
67007         * lib/lock.c: New file, from GNU gettext.
67008
67009 2005-07-18  Bruno Haible  <bruno@clisp.org>
67010
67011         * lib/lock.h (gl_once_t): New type.
67012         (gl_once_define, gl_once): New macros.
67013         * lib/lock.c (fresh_once): New variable.
67014         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67015         functions.
67016
67017 2005-07-16  Simon Josefsson  <jas@extundo.com>
67018
67019         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67020         workaround, suggested by Bruno.
67021
67022 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         * modules/xalloc (Depends-on): Add xalloc-die.
67025         * modules/xvasprintf (Depends-on): Add xalloc-die.
67026
67027 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67028
67029         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67030         with a minor change.
67031
67032 2005-07-15  Bruno Haible  <bruno@clisp.org>
67033
67034         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67035         When using lib/poll.c, define poll as rpl_poll.
67036
67037 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67038
67039         * modules/argp (Depends-on): Remove unlocked-io.
67040
67041 2005-07-14  Derek Price  <derek@ximbiot.com>
67042
67043         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67044         for glob symlink bug.
67045
67046 2005-07-14  Bruno Haible  <bruno@clisp.org>
67047
67048         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67049         Instead, test for *_unlocked function declarations directly.
67050
67051 2005-07-11  Simon Josefsson  <jas@extundo.com>
67052
67053         * modules/size_max: New file.
67054
67055         * modules/xsize: Depend on size_max module for size_max.m4.
67056
67057 2005-07-11  Simon Josefsson  <jas@extundo.com>
67058
67059         * lib/size_max.h: New file.
67060
67061 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67062
67063         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67064         copyright symbol and the year.
67065         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67066         (version_etc_va): Use parameterized copyright notice.
67067         Reword to conform to the current GNU coding standards.
67068
67069 2005-07-11  Karl Berry  <karl@gnu.org>
67070
67071         * doc/gnulib.texi (Quoting): new node.
67072         (Initial import): more info, from Patrice.
67073
67074 2005-07-11  Bruno Haible  <bruno@clisp.org>
67075
67076         * gnulib-tool (func_usage): Document option --avoid.
67077         (Command line options): Handle --avoid.
67078         (func_acceptable): New function.
67079         (func_modules_transitive_closure): Use it.
67080
67081 2005-07-11  Bruno Haible  <bruno@clisp.org>
67082
67083         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67084         Reported by Jim Meyering.
67085
67086 2005-07-10  Bruno Haible  <bruno@clisp.org>
67087
67088         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67089         Needed when size_t is smaller than 'unsigned int'.
67090         Reported by Paul Eggert.
67091
67092 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67093
67094         * modules/argp (Depends-on): Add unlocked-io
67095
67096 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67097
67098         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67099         block of defines.
67100
67101 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67102
67103         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67104         fix now.
67105
67106 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67107         and Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67110         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67111
67112 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * modules/regex (Files): Add lib/regex_internal.c,
67115         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67116         (Depends-on): Add extensions.
67117         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67118
67119 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67122         pathconf.
67123         * m4/same.m4 (gl_SAME): Likewise.
67124         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67125
67126         * m4/regex.m4: Adjust to new libc regex implementation.
67127         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67128         all the .c and .h parts of (the new) regex.
67129         Quote the m4 stuff better.
67130         Check for RE_ICASE bug of old gnulib.
67131         Check for REG_STARTEND of recent libc.
67132         Rename local variables from jm_* to gl_*.
67133         Quote operand of "test -f".
67134         Say "recent enough" version of libc, not "version 2".
67135         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67136         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67137         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67138         Remove check for btowc, isascii.
67139         Require AM_LANGINFO_CODESET.
67140
67141 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67142
67143         * lib/regex.c, regex.h: Sync from libc.
67144         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67145         * lib/regexec.c:
67146         New files, synced from libc, except that regex_internal.h
67147         currently has a small porting fix.
67148
67149 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67150
67151         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67152         regex_internal.c, regexec.c.
67153         Add regex_internal.h too, but as a comment, since the libc version
67154         is currently broken in gnulib mode.
67155
67156 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         Support programs like Emacs that use gnulib but not gettext.
67159         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67160         * modules/gettext-h: New file.
67161         * modules/gettext (Files): Remove lib/gettext.h.
67162         (Depends-on): Add gettext-h.
67163         (Makefile.am): Remove lib_SOURCES.
67164         * modules/argmatch, modules/c-stack, modules/closeout:
67165         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67166         * modules/execute, modules/file-type, modules/getaddrinfo:
67167         * modules/getopt, modules/human, modules/javacomp:
67168         * modules/javaexec, modules/mkdir-p, modules/obstack:
67169         * modules/openat, modules/pagealign_alloc, modules/pipe:
67170         * modules/quotearg, modules/regex, modules/rpmatch:
67171         * modules/unicodeio, modules/userspec, modules/version-etc:
67172         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67173         * modules/xsetenv:
67174         Depend on gettext-h, not gettext.
67175
67176 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67177
67178         * gnulib-tool (func_import): Add support for 'public domain' license.
67179         * modules/alloca, modules/atexit, modules/memmove:
67180         Now public domain, not GPL.
67181         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67182         * modules/realloc, modules/strerror, modules/strtod:
67183         Now LGPL, not GPL.
67184
67185 2005-07-05  Bruno Haible  <bruno@clisp.org>
67186
67187         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67188         autoconf CVS. Needed for mingw.
67189
67190 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67191
67192         Remove the dependency of the strftime module on the tzset module.
67193         * modules/strftime (Depends-on): Remove dependency on tzset.
67194
67195 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         Remove the dependency of the strftime module on the tzset module.
67198         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67199         gl_FUNC_TZSET_CLOBBER.
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         * lib/strftime.c (my_strftime)
67205         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67206         Copy the input structure, to work around some of the bug with
67207         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67208         Solaris releases, you should also use the tzset module, but we won't
67209         require it as a dependency any more since we don't want LGPLed code
67210         to depend on GPLed code.
67211
67212 2005-07-02  Jim Meyering  <jim@meyering.net>
67213
67214         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67215         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67216         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67217         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67218
67219 2005-07-02  Jim Meyering  <jim@meyering.net>
67220
67221         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67222
67223 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67224
67225         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67226         declares only 'struct timespec;' (!).
67227
67228 2005-07-01  Jim Meyering  <jim@meyering.net>
67229
67230         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67231         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67232         * lib/save-cwd.c, tempname.c:
67233         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67234         and don't include <sys/file.h>).
67235
67236 2005-06-29  Jim Meyering  <jim@meyering.net>
67237
67238         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67239         type name.  Use the variable name instead.
67240         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67241         Likewise.
67242
67243 2005-06-28  Simon Josefsson  <jas@extundo.com>
67244
67245         * modules/check-version (Files): Add check-version.m4.
67246
67247 2005-06-28  Simon Josefsson  <jas@extundo.com>
67248
67249         * m4/check-version.m4: New file, suggested by Jim Meyering
67250         <jim@meyering.net>.
67251
67252 2005-06-28  Simon Josefsson  <jas@extundo.com>
67253
67254         * lib/check-version.h, lib/check-version.c: New files.
67255
67256 2005-06-28  Simon Josefsson  <jas@extundo.com>
67257
67258         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67259         collision with global variable.  Better indentation.  Don't
67260         increment buffer pointer beyond buffer end.  Based on comments
67261         from Paul Eggert <eggert@cs.ucla.edu>.
67262
67263         * lib/base64.h: Indent.
67264
67265 2005-06-28  Simon Josefsson  <jas@extundo.com>
67266
67267         * doc/gnulib.texi (Library version handling): New section.
67268
67269 2005-06-28  Jim Meyering  <jim@meyering.net>
67270
67271         * check-module (find_included_lib_files): Hard-code another
67272         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67273         but modules/fts-lgpl (correctly) does not list those files.
67274
67275         * modules/canonicalize (Files): Add lib/pathmax.h.
67276
67277 2005-06-25  Simon Josefsson  <jas@extundo.com>
67278
67279         * modules/check-version: New file.
67280
67281 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67282
67283         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67284         initializer of struct addrinfo, as an indication that we don't
67285         care how many members the structure has.
67286
67287 2005-06-24  Derek Price  <derek@ximbiot.com>
67288         and Bruno Haible  <bruno@clisp.org>
67289
67290         Remove stat module & update lstat.
67291         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67292         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67293         * m4/stat.m4: Remove this file.
67294
67295 2005-06-24  Derek Price  <derek@ximbiot.com>
67296         and Bruno Haible  <bruno@clisp.org>
67297
67298         Remove stat module & update lstat.
67299         * lib/stat.c: Remove this file...
67300         (slash_aware_lstat): ...moving this content and its support...
67301         * lib/lstat.c (rpl_lstat): ...into here.
67302         * lib/lstat.h: New file.
67303
67304 2005-06-24  Derek Price  <derek@ximbiot.com>
67305         and Bruno Haible  <bruno@clisp.org>
67306
67307         Remove stat module & update lstat.
67308         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
67315         * MODULES.html: Regenerated.
67316         * modules/lstat (Description): Correct function name.
67317         (Files): Add "lstat.h".
67318         (Depends-on): Remove stat, add xalloc, stat-macros.
67319         * modules/stat: Remove this file.
67320         (Include): Add "lstat.h", remove <sys/stat.h>.
67321
67322 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67323
67324         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67325         (ranged_convert): Don't save conversion in a temporary struct.
67326         This causes a warning with GCC 4.0.0, and anyway in the typical
67327         case it's not worth the extra 100 bytes or so of code.
67328         (ranged_convert, __mktime_internal): When calling a function via a
67329         pointer P, use P () rather than (*P) (), as we now assume C89 or
67330         better.
67331
67332 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67335         "who -r" failed to give output.  Problem reported by Tim Waugh.
67336
67337         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67338         (xcalloc): Use it to avoid needless tests.
67339         Problem reported by Jim Meyering.
67340
67341 2005-06-20  Derek Price  <derek@ximbiot.com>
67342
67343         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67344         unnecessary for Autoconfs > 2.59c.
67345
67346 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67347
67348         * lib/argp.h (__option_is_short): Check upper limit of
67349         __key. Isprint() requires its argument to have the value
67350         of an unsigned char or EOF.
67351
67352 2005-06-16  Jim Meyering  <jim@meyering.net>
67353
67354         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67355         when either N or S is zero.
67356
67357 2005-06-16  Derek Price  <derek@ximbiot.com>
67358
67359         * m4/bison.m4: Declare YACC & YFLAGS precious.
67360
67361 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67362
67363         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67364         multibyte string or pattern, fall back on unibyte matching.
67365         Problem reported by James Youngman.
67366
67367 2005-06-08  Bruno Haible  <bruno@clisp.org>
67368
67369         * modules/csharpcomp: New file.
67370         * MODULES.html.sh (C#): Add csharpcomp.
67371
67372 2005-06-08  Bruno Haible  <bruno@clisp.org>
67373
67374         * m4/csharpcomp.m4: New file, from GNU gettext.
67375
67376 2005-06-08  Bruno Haible  <bruno@clisp.org>
67377
67378         * lib/csharpcomp.h: New file, from GNU gettext.
67379         * lib/csharpcomp.c: New file, from GNU gettext.
67380         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67381
67382 2005-06-08  Bruno Haible  <bruno@clisp.org>
67383
67384         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67385         warning on mingw.
67386
67387 2005-06-07  Derek Price  <derek@ximbiot.com>
67388
67389         Sync from CVS.
67390         * lib/glob_.h: Indent nested #ifdef.
67391
67392 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67393
67394         Sync from coreutils.
67395         Use "file name" when talking about file names, instead of "filename"
67396         or "path", as per the GNU coding standards.
67397         * lib/mkdir-p.c: Renamed from makepath.c.
67398         (make_dir_parents): Renamed from make_path.  All callers changed.
67399         * lib/mkdir-p.h: Likewise.  All includers changed.
67400         * lib/filenamecat.c: Renamed from path-concat.c.
67401         (file_name_concat): Renamed from path_concat.  All callers changed.
67402         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67403         * lib/filenamecat.h: Likewise.  All includers changed.
67404         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67405         in comments or local variable names.
67406         * lib/basename.c: Likewise.
67407         * lib/canonicalize.c, canonicalize.h: Likewise.
67408         * lib/dirname.c, dirname.h: Likewise.
67409         * lib/euidaccess.c: Likewise.
67410         * lib/exclude.c: Likewise
67411         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67412         * lib/fsusage.c, fsuage.h: Likewise.
67413         * lib/fts.c, fts_.h: Likewise.
67414         * lib/getcwd.c: Likewise.
67415         * lib/getloadavg.c: Likewise.
67416         * lib/mkstemp.c: Likewise.
67417         * lib/mountlist.c, mountlist.h: Likewise.
67418         * lib/openat.c, openat.h: Likewise.
67419         * lib/readlink-stub.c: Likewise.
67420         * lib/readutmp.c, readutmp.h: Likewise.
67421         * lib/rename.c: Likewise.
67422         * lib/rmdir.c: Likewise.
67423         * lib/same.c: Likewise.
67424         * lib/savedir.c: Likewise.
67425         * lib/stripslash.c: Likewise.
67426         * lib/tempname.c: Likewise.
67427         * lib/xreadlink.c: Likewise.
67428         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67429         All uses changed.
67430         * lib/exclude.h: Likewise.
67431
67432         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67433         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67434         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67435         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67436         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67437         files have been getting away with it for years (MORE/BSD 4.3
67438         is extinct now).
67439         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67440         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67441
67442         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67443         Define to 256, not 255, as per modern POSIX.
67444
67445 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         Sync from coreutils.
67448         Use "file name" when talking about file names, instead of "filename"
67449         or "path", as per the GNU coding standards.
67450         * MODULES.html.sh: mkdir-p renamed from makepath.
67451         filenamecat renamed from path-concat.
67452         * modules/filenamecat: Renamed from modules/path-concat.
67453         (Files): filenamecat.h and filenamecat.c renamed from
67454         path-concat.h and path-concat.c.
67455         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67456         (Include): filenamecat.h, not path-concat.h.
67457         * modules/mkdir-p: Renamed from modules/makepath.
67458         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67459         makepath.c.
67460         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67461         (Include): mkdir-p.h, not makepath.h.
67462
67463 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         Sync from coreutils.
67466         * m4/mkdir-p.m4: Renamed from makepath.m4.
67467         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67468         Rename files from makepath.c to mkdir-p.c, and from
67469         makepath.h to mkdir-p.h.
67470         * m4/filenamecat.m4: Renamed from path-concat.m4.
67471         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67472         Rename files from path-concat.c to filenamecat.c,
67473         and from path-concat.h to filenamecat.h.
67474         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67475         "file name" in local variables or comments.
67476         * m4/rename.m4: Likewise.
67477
67478 2005-06-01  Bruno Haible  <bruno@clisp.org>
67479
67480         * modules/csharpexec: New file.
67481         * MODULES.html.sh (C#): New section.
67482
67483 2005-06-01  Bruno Haible  <bruno@clisp.org>
67484
67485         * m4/csharp.m4: New file, from GNU gettext.
67486         * m4/csharpexec.m4: New file, from GNU gettext.
67487
67488 2005-06-01  Bruno Haible  <bruno@clisp.org>
67489
67490         * lib/csharpexec.h: New file, from GNU gettext.
67491         * lib/csharpexec.c: New file, from GNU gettext.
67492         * lib/csharpexec.sh.in: New file, from GNU gettext.
67493
67494 2005-05-31  Derek Price  <derek@ximbiot.com>
67495             Paul Eggert  <eggert@cs.ucla.edu>
67496
67497         Sync from cvs.
67498         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67499
67500 2005-05-31  Derek Price  <derek@ximbiot.com>
67501             Paul Eggert  <eggert@cs.ucla.edu>
67502
67503         Sync from cvs.
67504         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67505
67506 2005-05-29  Derek Price  <derek@ximbiot.com>
67507
67508         * config/srclist.txt (glob_.h, glob.c): Add these files.
67509
67510 2005-05-29  Derek Price  <derek@ximbiot.com>
67511
67512         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67513         * modules/glob: New file.
67514         * modules/getlogin_r: Add link to POSIX spec in description.
67515
67516 2005-05-29  Derek Price  <derek@ximbiot.com>
67517             Paul Eggert  <eggert@cs.ucla.edu>
67518
67519         * m4/glob.m4: New file.
67520
67521 2005-05-29  Derek Price  <derek@ximbiot.com>
67522             Paul Eggert  <eggert@cs.ucla.edu>
67523
67524         * lib/glob_.h, lib/glob.c: New files.
67525
67526 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67527
67528         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67529         * modules/fts-lgpl (Depends-on): Remove gettext.
67530
67531 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67532
67533         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67534         and don't require gt_INTTYPES_PRI.
67535
67536 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67539
67540         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67541         the configuration hassle isn't worth it.
67542         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
67543         (LONGEST_MODIFIER, PRIuMAX): Remove.
67544
67545 2005-05-27  Bruno Haible  <bruno@clisp.org>
67546
67547         * lib/getlogin_r.h: Remove second include of <stddef.h>.
67548
67549 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
67550
67551         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
67552         _POSIX_PTHREAD_SEMANTICS for Solaris.
67553
67554 2005-05-25  Derek Price  <derek@ximbiot.com>
67555
67556         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
67557
67558 2005-05-25  Derek Price  <derek@ximbiot.com>
67559             Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         * modules/getlogin_r, m4/getlogin_r.m4: New files.
67562         * lib/getlogin_r.c, getlogin_r.h: New files.
67563
67564 2005-05-25  Bruno Haible  <bruno@clisp.org>
67565             Derek Price  <derek@ximbiot.com>
67566
67567         * lib/getlogin_r.h: Simplify API documentation.
67568
67569 2005-05-23  Derek Price  <derek@ximbiot.com>
67570
67571         * modules/minmax (Files): Add m4/minmax.m4.
67572         (configure.ac): Add gl_MINMAX.
67573
67574 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67575
67576         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
67577         so that unistd-safer.h (GPL'ed code) need not be included.
67578
67579 2005-05-22  Bruno Haible  <bruno@clisp.org>
67580
67581         * m4/minmax.m4: New file.
67582         Based on a patch by Derek Price <derek@ximbiot.com>.
67583
67584 2005-05-22  Bruno Haible  <bruno@clisp.org>
67585
67586         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
67587         (INT64_MIN): Fix definition.
67588         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
67589
67590         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
67591         NEED_SIGNED_INT_TYPES.
67592
67593         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
67594         HAVE_SYSTEM_INTTYPES.
67595
67596 2005-05-22  Bruno Haible  <bruno@clisp.org>
67597
67598         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
67599         Also include <sys/param.h> if it defines MIN, MAX.
67600         Based on a patch by Derek Price <derek@ximbiot.com>.
67601
67602 2005-05-21  Jim Meyering  <jim@meyering.net>
67603
67604         * modules/fts (Files): Add m4/inttypes-pri.m4.
67605         (Depends-on): Add lstat and remove gettext.  Alphabetize.
67606
67607 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67608
67609         New fts module.
67610         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
67611         (setup_dir, free_dir): New functions.
67612         (enter_dir, leave_dir): Define trivial
67613         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
67614         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
67615         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
67616         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
67617         Move to fts-cycle.c.
67618         (fts_open): Use setup_dir.
67619         (fts_close): Use free_dir.
67620         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
67621         This adds a label and some gotos, but the alternatives were messier.
67622         Check for memory allocation failure when entering a dir.
67623         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
67624         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
67625         (FTS): New member fts_cycle, that is a union that contains the
67626         old active_dir_ht and cycle_state.  All uses changed to mention
67627         fts_cycle.ht and fts_cycle.state.
67628         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
67629         fts.c, with the following changes:
67630         (setup_dir, free_dir): New functions.
67631         (enter_dir): Now returns bool.  Return true if successful, false
67632         if memory exhausted.  All callers changed.
67633         Do not bother partly cleaning up on
67634         memory allocation failure; that is free_dir's job.
67635         However, free ad if hash_insert fails, to avoid memory leak.
67636         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
67637         fts->fts_options to see which union member to use.
67638
67639 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67640
67641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
67642         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
67643
67644 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
67645
67646         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
67647
67648 2005-05-20  Jim Meyering  <jim@meyering.net>
67649
67650         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
67651         Now a macro, to pacify GCC.
67652
67653 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67654
67655         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
67656         of -1.
67657
67658 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
67659
67660         * lib/chown.c (rpl_chown): Return -1 on failure.
67661
67662 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67663
67664         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
67665         Don't check for stddef.h.
67666         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
67667         don't use its results.
67668         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
67669         since we include them unconditionally.  Don't require
67670         AM_STDBOOL_H, since stdbool is a prerequisite.
67671         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
67672         since we assume C89 or better.
67673         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
67674         as we don't use their results.
67675         Don't check for fchdir, memmove, memset, strrchr, as we use
67676         them unconditionally.
67677         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
67678         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
67679
67680 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
67681
67682         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
67683         Include <stddef.h> unconditionally, since we assume C89 now.
67684         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
67685         * lib/fts.c: Include fts_.h first, to check interface.
67686         Do not include intprops.h; no longer needed.
67687         Include cycle-check.h and hash.h, since fts_.h no longer does.
67688         Remove unnecessary casts of closedir to void.
67689         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
67690         decide whether to decrement nlinks.
67691         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
67692         (FTS): Use struct hash_table * instead of Hash_table, so that
67693         we no longer need to include hash.h here.
67694
67695 2005-05-18  Jim Meyering  <jim@meyering.net>
67696
67697         * modules/dirfd (License): Change to LGPL.  Most of the code
67698         is already in the public domain.
67699
67700 2005-05-18  Jim Meyering  <jim@meyering.net>
67701
67702         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
67703         Reported by Yoann Vandoorselaere.
67704
67705 2005-05-17  Jim Meyering  <jim@meyering.net>
67706
67707         * m4/fts.m4: New file, from coreutils.
67708
67709 2005-05-17  Jim Meyering  <jim@meyering.net>
67710
67711         * lib/fts.c, lib/fts_.h: New files, from coreutils.
67712
67713 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67714
67715         Sync from coreutils.
67716         * m4/unlinkdir.m4: New file.
67717
67718 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67719
67720         Sync from coreutils.
67721         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
67722         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
67723         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
67724         White space changes only.
67725         * lib/makepath.c (make_path): Port to hosts where leading "//" is
67726         special.
67727         * lib/yesno.c: Include getline.h, not ctype.h.
67728         (yesno): Don't remove leading white space; POSIX doesn't allow it.
67729         Use getline to remove arbitrary restriction on response length.
67730
67731 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67732
67733         * config/srclist-update: Spell out "Street" in FSF postal
67734         mail address; this is the style the FSF seems to prefer.
67735
67736         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
67737         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
67738         this updates FSF postal mail address.
67739
67740         Sync from coreutils.
67741         * modules/unlinkdir: New file.
67742         * modules/yesno (Depends-on): Add getline.
67743         * MODULES.html.sh (File system functions): Add unlinkdir.
67744
67745 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67746
67747         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
67748         lib/strsep.h:
67749         Change the initial comment to refer to GPL, not LGPL.
67750         gnulib-tool will change it to LGPL as needed.
67751
67752         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
67753         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
67754         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
67755         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
67756         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
67757         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
67758         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
67759         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
67760         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
67761         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
67762         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
67763         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
67764         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
67765         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
67766         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
67767         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
67768         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
67769         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
67770         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
67771         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
67772         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
67773         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
67774         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
67775         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
67776         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
67777         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
67778         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
67779         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
67780         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
67781         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
67782         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
67783         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
67784         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
67785         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
67786         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
67787         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
67788         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
67789         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
67790         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
67791         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
67792         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
67793         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
67794         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
67795         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
67796         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
67797         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
67798         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
67799         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
67800         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
67801         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
67802         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
67803         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
67804         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
67805         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
67806         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
67807         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
67808         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
67809         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
67810         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
67811         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
67812         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67813         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67814         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67815         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67816         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67817         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67818         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67819         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67820         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67821         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67822         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67823         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67824         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67825         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67826         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67827         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67828         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67829         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67830         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67831         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67832         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67833         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67834         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67835         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67836         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67837         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67838         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67839         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67840         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67841         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67842         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67843         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67844         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67845         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67846         lib/yesno.c, lib/yesno.h:
67847         Update FSF postal mail address.
67848
67849 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67850
67851         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67852         tests/test-memmem.c, tests/test-stpncpy.c:
67853         Update FSF postal mail address.
67854
67855 2005-05-13  Bruno Haible  <bruno@clisp.org>
67856
67857         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67858         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67859         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67860         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67861         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67862         Add support for 64-bit integers in the MSVC compiler.
67863
67864 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67865
67866         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67867
67868 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67869
67870         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67871
67872 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67873
67874         * doc/getdate.texi (General date syntax): Don't say that date
67875         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67876         Problem reported by Nic Ferrier.
67877
67878 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67879
67880         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67881         specified in ai_socktype. Fix invalid ai_protocol
67882         check. ai_protocol is usually set to 0 or depending on
67883         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67884         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67885         ai_socktype / ai_protocol in the returned addrinfo structure.
67886
67887 2005-05-10  Simon Josefsson  <jas@extundo.com>
67888
67889         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67890         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67891
67892 2005-05-10  Karl Berry  <karl@gnu.org>
67893
67894         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67895         (from http://www.gnu.org/licenses).
67896         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67897         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67898         fdl.texi suffices.
67899
67900 2005-05-10  Karl Berry  <karl@gnu.org>
67901
67902         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67903         (COPYING.DOC): remove.
67904
67905         * config/srclist-update: new FSF address.
67906
67907 2005-05-10  Derek Price  <derek@ximbiot.com>
67908
67909         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67910         possible.
67911
67912 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67913             Bruno Haible  <bruno@clisp.org>
67914
67915         * modules/inet_ntop: New file.
67916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67917         inet_ntop.
67918
67919 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67920             Bruno Haible  <bruno@clisp.org>
67921
67922         * m4/inet_ntop.m4: New file.
67923
67924 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67925             Bruno Haible  <bruno@clisp.org>
67926
67927         * lib/inet_ntop.h: New file.
67928         * lib/inet_ntop.c: New file, from glibc with modifications.
67929
67930 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67931
67932         * modules/time_r (License): Change to LGPL.
67933         * modules/extensions (License): Change to LGPL.  Actually,
67934         the license is more permissive than that, but currently gnulib-tool
67935         doesn't know how to handle more-permissive licenses.
67936
67937         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67938         Problem reported by Dave Love.
67939
67940 2005-05-08  Jim Meyering  <jim@meyering.net>
67941
67942         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67943         blank.
67944
67945 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67946
67947         * modules/argmatch (Depends-on): Add stdbool.
67948         * modules/backupfile (Depends-on): Likewise.
67949         * modules/chdir-long (Depends-on): Likewise.
67950         * modules/closeout (Depends-on): Likewise.
67951         * modules/cycle-check (Depends-on): Likewise.
67952         * modules/dirname (Depends-on): Likewise.
67953         * modules/fnmatch (Depends-on): Likewise.
67954         * modules/fsusage (Depends-on): Likewise.
67955         * modules/fwriteerror (Depends-on): Likewise.
67956         * modules/getcwd (Depends-on): Likewise.
67957         * modules/getloadavg (Depends-on): Likewise.
67958         * modules/hard-locale (Depends-on): Likewise.
67959         * modules/makepath (Depends-on): Likewise.
67960         * modules/mountlist (Depends-on): Likewise.
67961         * modules/nanosleep (Depends-on): Likewise.
67962         * modules/posixtm (Depends-on): Likewise.
67963         * modules/quotearg (Depends-on): Likewise.
67964         * modules/readtokens (Depends-on): Likewise.
67965         * modules/readtokens0 (Depends-on): Likewise.
67966         * modules/readutmp (Depends-on): Likewise.
67967         * modules/save-cwd (Depends-on): Likewise.
67968         * modules/strftime (Depends-on): Likewise.
67969         * modules/userspec (Depends-on): Likewise.
67970         * modules/utimecmp (Depends-on): Likewise.
67971         * modules/xgetcwd (Depends-on): Likewise.
67972         * modules/xnanosleep (Depends-on): Likewise.
67973         * modules/xstrtod (Depends-on): Likewise.
67974         * modules/yesno (Depends-on): Likewise.
67975
67976 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67977
67978         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67979         needless checks.
67980
67981 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67982
67983         Merge from coreutils.  Among other things,
67984         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67985         * lib/fd-safer.c: New file.
67986         * lib/fcntl-safer.h, open-safer.c: Remove.
67987         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67988         * lib/dup-safer.c: Include unistd-safer.h first.
67989         Don't include errno.h.
67990         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67991         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67992         * lib/file-type.c: Rely on file-type.h change.
67993         * lib/getloadavg.c: Include unistd-safer.h.
67994         (getloadavg): Use safer open.
67995         * lib/getusershell.c: Include "stdio-safer.h".
67996         (getusershell): Use safer fopen.
67997         * lib/long-options.c (long_options): Use NULL rather than 0.
67998         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67999         'free'.
68000         * lib/modechange.c: Likewise.
68001         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68002         (MODE_DONE): New constant.
68003         (struct mode_change): Remove 'next' member.
68004         (make_node_op_equals): New function; like the old one of the
68005         same name, except it allocates an array.
68006         (mode_compile, mode_create_from_ref): Use it.
68007         (mode_compile): Allocate result as an array, not a linked list.
68008         Parse octal string ourself, so that we catch mistakes like "+0".
68009         (mode_adjust): Arg is an array, not a linked list.
68010         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68011         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68012         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68013         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68014         Remove.  This is now stat-macros.h's job.
68015         (talloc): Remove.  All callers replaced by xalloc, so that
68016         our invokers don't have to worry about reporting memory failures.
68017         (make_node_op_equals): Remove.
68018         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68019         New constants.
68020         (struct mode_change): Moved here from modechange.h.
68021         (mode_append_entry): Remove.
68022         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68023         apps to have incorrect behavior.  Use simpler algorithm for head
68024         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68025         Detect more invalid usages rather than having somewhat-random behavior.
68026         Don't insert an "a=" action, as that leads to incorrect behavior.
68027         (mode_compile, mode_create_from_ref): Return NULL on error instead
68028         of an enum, since now there's only one way to have an error.  All
68029         callers changed.
68030         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68031         at the correct time.  Simplify calculation of "+u" and its ilk.
68032         Don't mishandle "+X".
68033         (mode_free): Remove "register" and localize decls.
68034         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68035         (struct mode_change): Move to modechange.c; callers don't
68036         need to see this stuff.
68037         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68038         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68039         (mode_change, mode_adjust): Reflect the new signatures noted above.
68040         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68041         that might redefine system include files.
68042         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68043         (my_usleep): Use NULL rather than (void *) 0.
68044         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68045         Use siginterrupt to specify that system calls should be interrupted.
68046         (rpl_nanosleep): Move initialization of suspended closer to call of
68047         my_usleep.
68048         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68049         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68050         (desirable_utmp_entry): New function.
68051         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68052         using x2nrealloc, to simplify logic.
68053         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68054         size calculation.  Do not assume utmp file is a regular file.
68055         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68056         (READ_UTMP_CHECK_PIDS): New constant.
68057         * lib/save-cwd.c: Include unistd-safer.h.
68058         (save_cwd): Use fd_safer.
68059         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68060         [!_LIBC] Include "stat-macros.h" instead.
68061         * lib/unistd-safer.h (fd_safer): New decl.
68062
68063 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * modules/getloadavg (Depends-on): Add unistd-safer.
68066         * modules/getusershell (Depends-on): Add stdio-safer.
68067         * modules/lstat (Depends-on): Remove xalloc.
68068         * modules/mkstemp (Depends-on): Add stat-macros.
68069         * modules/modechange (Depends-on): Remove xstrtol.
68070         Add stat-macros, xalloc.
68071         * modules/save-cwd (Depends-on): Add unistd-safer.
68072         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68073         * modules/unistd-safer (Files): Add lib/fd-safer.c
68074         (Makefile.am): Remove lib_SOURCES.
68075
68076         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68077         Remove fcntl-safer; unistd-safer supersedes it.
68078
68079 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68080
68081         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68082         AC_HEADER_STAT.
68083         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68084         (gl_PREREQ_CHOWN): Remove.
68085         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68086         it.  Don't require AC_HEADER_STAT.
68087         (gl_PREREQ_LSTAT): Remove.
68088         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68089         Don't require AC_HEADER_STAT.
68090         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68091         (gl_PREREQ_RMDIR): Remove.
68092         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68093         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68094         the stat-macros module a prerequisite.
68095         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68096         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68097         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68098         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68099         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68100         variable names.
68101         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68102         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68103         variable prefixes.
68104         * m4/fcntl-safer.m4: Remove.
68105         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68106         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68107         Invoke gl_PREREQ_FD_SAFER.
68108         (gl_PREREQ_FD_SAFER): New macro.
68109         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68110         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68111         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68112         Remove duplicate call to AC_LIBOBJ(readutmp).
68113         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68114
68115         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68116         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68117
68118 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68119
68120         * MODULES.html.sh (Misc): Add byteswap.
68121
68122 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68123
68124         * modules/getcwd (Depends-on): Add extensions.
68125         * modules/openat (Depends-on): Likewise.
68126
68127 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68128
68129         * modules/byteswap: New file.
68130
68131 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68132
68133         * m4/byteswap.m4: New file.
68134
68135 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68136
68137         * lib/byteswap_.h: New file.
68138
68139 2005-04-25  Karl Berry  <karl@gnu.org>
68140
68141         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68142
68143 2005-04-25  Albert Chin  <china@thewrittenword.com>
68144
68145         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68146         Toolkit C bug.
68147
68148 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68149
68150         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68151         (func_ln_if_changed): Remove forcibly for no error message
68152         in case file does not exist.
68153
68154 2005-04-19  Simon Josefsson  <jas@extundo.com>
68155
68156         * gnulib-tool (Options): Make --symlink mean --symbolic.
68157
68158 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68159
68160         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68161
68162 2005-04-16  Simon Josefsson  <jas@extundo.com>
68163
68164         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68165
68166 2005-04-15  Simon Josefsson  <jas@extundo.com>
68167
68168         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68169
68170 2005-04-15  Simon Josefsson  <jas@extundo.com>
68171
68172         * gnulib-tool: Rename --symlink to --symbolic.
68173
68174 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68175
68176         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68177         symbolic links to files instead of copying/moving.  Add --aux-dir,
68178         specifying directory relative --dir where auxiliary build tools
68179         are placed.
68180
68181 2005-04-14  Bruno Haible  <bruno@clisp.org>
68182
68183         * modules/allocsa (License): Change to LGPL.
68184         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68185
68186 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68187
68188         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68189         that "UTC +1 second" continues to work.  Problem reported
68190         by Dmitry V. Levin.
68191         (relunit_snumber): New rule.
68192         (relunit): Use it.
68193
68194 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68195
68196         * lib/getdate.y (universal_time_zone_table): New constant.
68197         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68198         universal_time_zone_table.
68199         (lookup_zone): Prefer universal_time_zone_table to
68200         local_time_zone_table, so that "GMT" time stamps are allowed in
68201         London during the summer.  Problem reported by Ian Abbott.
68202
68203 2005-04-12  Jim Meyering  <jim@meyering.net>
68204
68205         * lib/human.c (humblock): Set *options even when returning due to
68206         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68207         warning from gcc-4.
68208
68209 2005-04-09  Jim Meyering  <jim@meyering.net>
68210
68211         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68212         -Wuninitialized: initialize tm0.tm_year.
68213
68214 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68215
68216         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68217         count, since there's no maximum.  All uses changed.
68218         Add member dsts_seen.
68219         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68220         not being INT_MAX.
68221         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68222         Use pc_rels_seen to decide whther a date is absolute.
68223
68224         * lib/getdate.y (number): Don't overwrite year.
68225         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68226         check.
68227
68228 2005-04-02  Simon Josefsson  <jas@extundo.com>
68229
68230         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68231         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68232
68233 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68234
68235         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68236         where no absolute path name can be longer than PATH_MAX.
68237
68238 2005-03-27  Jim Meyering  <jim@meyering.net>
68239
68240         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68241
68242 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68245         "one's complement" -> "ones' complement" in comment, as per Knuth.
68246         "value of type" -> "type or expression" in comment.
68247         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68248
68249 2005-03-26  Jim Meyering  <jim@meyering.net>
68250
68251         Comment nits.
68252         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68253         Correct typos: s/or/of/.
68254
68255 2005-03-26  Jim Meyering  <jim@meyering.net>
68256
68257         * modules/check-include-files: Move to ../ and rename to...
68258         * check-module: ...this.
68259
68260 2005-03-25  Jim Meyering  <jim@meyering.net>
68261
68262         * modules/xvasprintf (Files): Add xalloc.h.
68263
68264 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68265
68266         * modules/gettext (Files): config/config.rpath ->
68267         build-aux/config.rpath
68268         * modules/iconv (Files): Likewise.
68269         Problem reported by Oskar Liljeblad.
68270
68271 2005-03-23  Jim Meyering  <jim@meyering.net>
68272
68273         * modules/check-include-files: New script to check for
68274         missing dependencies, multiple includes, etc.
68275
68276         * modules/c-strtold (Depends-on): Add xalloc.
68277         * modules/c-strtod (Depends-on): Add xalloc.
68278         * modules/hash (Depends-on): Add xalloc.
68279         (Files): Remove lib/xalloc.h.
68280
68281         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68282         * modules/userspec (Files): Add lib/inttostr.h.
68283
68284 2005-03-23  Jim Meyering  <jim@meyering.net>
68285
68286         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68287
68288 2005-03-22  Jim Meyering  <jim@meyering.net>
68289
68290         * modules/stat-macros: New module.
68291         * modules/canonicalize, modules/euidaccess, modules/file-type,
68292         * modules/filemode, modules/lchown, modules/makepath,
68293         * modules/rmdir, modules/stat: Depend on new stat-macros module
68294         rather than listing lib/stat-macros.h manually.
68295         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68296
68297 2005-03-22  Jim Meyering  <jim@meyering.net>
68298
68299         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68300
68301 2005-03-22  Bruno Haible  <bruno@clisp.org>
68302
68303         * config/srclist.txt: Replace target directory 'config' with
68304         'build-aux'.
68305         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68306         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68307         ../build-aux/.
68308
68309 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68310
68311         * modules/chdir-long (Depends-on): Add mempcpy.
68312
68313         * modules/acl, modules/backupfile, modules/c-strtod,
68314         modules/c-strtold, modules/canon-host, modules/canonicalize,
68315         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68316         modules/exclude, modules/exitfail, modules/file-type,
68317         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68318         modules/getdate, modules/getline, modules/getpagesize,
68319         modules/getpass, modules/getugroups, modules/group-member,
68320         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68321         modules/inttostr, modules/long-options, modules/makepath,
68322         modules/md5, modules/memcasecmp, modules/memcoll,
68323         modules/modechange, modules/mountlist, modules/path-concat,
68324         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68325         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68326         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68327         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68328         modules/strftime, modules/strndup, modules/strverscmp,
68329         modules/timespec, modules/unlocked-io, modules/userspec,
68330         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68331         modules/yesno:
68332         Remove lib_SOURCES line from Makefile.am section, as this is now
68333         done automatically by the corresponding Autoconf macro.
68334
68335 2005-03-21  Jim Meyering  <jim@meyering.net>
68336
68337         Changes imported from coreutils.
68338
68339         * lib/cycle-check.c: Don't include xalloc.h.
68340
68341         * lib/path-concat.c: Don't include assert.h.
68342         (path_concat): Remove assertion that would have triggered
68343         for ABASE starting with more than one slash.
68344         Reported by Andreas Schwab.
68345
68346         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68347         properly when ABASE is an absolute file name.
68348         Correct the description of this function.
68349         Include <assert.h>.
68350         Add an assertion and a test driver.
68351         This fixes a bug introduced on 2004-07-02.
68352         Andreas Schwab reported the resulting failure of cp --parents:
68353         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68354
68355 2005-03-21  Jim Meyering  <jim@meyering.net>
68356
68357         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68358         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68359
68360 2005-03-21  Jim Meyering  <jim@meyering.net>
68361         and  Paul Eggert  <eggert@cs.ucla.edu>
68362
68363         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68364         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68365         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68366         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68367         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68368         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68369         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68370         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68371         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68372         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68373         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68374         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68375         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68376         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68377         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68378         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68379         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68380         for these modules.
68381
68382 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68383
68384         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68385         (which shouldn't happen), generate nothing instead of returning 0
68386         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68387
68388 2005-03-16  Bruno Haible  <bruno@clisp.org>
68389
68390         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68391         HAVE_LONGLONG_64BIT.
68392
68393 2005-03-16  Bruno Haible  <bruno@clisp.org>
68394
68395         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68396         HAVE_LONGLONG_64BIT.
68397
68398 2005-03-16  Bruno Haible  <bruno@clisp.org>
68399
68400         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68401         HAVE_LONGLONG_64BIT.
68402
68403 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68406         reliably distinguish strftime failure from empty output on POSIX
68407         hosts.
68408
68409 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68412         (iconv_string): Don't guess a size-zero buffer, as that might cause
68413         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68414         result would be 'too large', where 'too large' is (heuristically)
68415         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68416         overflow concerns.  This will prevent some unwanted malloc failures
68417         when the inputs are very large.
68418
68419 2005-03-15  Karl Berry  <karl@gnu.org>
68420
68421         * config/srclist.txt (config.rpath): from gettext.
68422         * config/config.rpath: update.
68423
68424 2005-03-15  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68427         to 'negate'.
68428
68429         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68430         variable.
68431
68432         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68433         results.
68434
68435 2005-03-14  Simon Josefsson  <jas@extundo.com>
68436
68437         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68438         <fx@gnu.org>.
68439
68440 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68441
68442         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68443         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68444         intprops.h.
68445         * lib/strtol.c: Likewise.
68446
68447 2005-03-14  Jim Meyering  <jim@meyering.net>
68448
68449         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68450         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68451         to be nonzero so that we (and caller) can detect the difference
68452         between a valid zero-length expansion and an error return, even
68453         when the underlying strftime fails before writing anything into
68454         that location.
68455
68456 2005-03-14  Bruno Haible  <bruno@clisp.org>
68457
68458         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68459         Update from GNU gettext 0.14.3.
68460
68461 2005-03-10  Jim Meyering  <jim@meyering.net>
68462
68463         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68464
68465 2005-03-10  Jim Meyering  <jim@meyering.net>
68466
68467         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68468         so that this module works on systems without fchdir.
68469
68470 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68471
68472         Factor int-properties macros into a single file, except for
68473         glibc-related files.
68474         * lib/intprops.h: New file.
68475         * lib/getloadavg.c: Include it instead of limits.h.
68476         (INT_STRLEN_BOUND): Remove.
68477         * lib/human.c: Include intprops.h.
68478         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68479         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68480         302/1000.
68481         * lib/inttostr.h: Include intprops.h instead of limits.h.
68482         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68483         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68484         for consistency with intprops.h.
68485         (time_t_is_integer, twos_complement_arithmetic): Use them.
68486         * lib/sig2str.h: Include <signal.h>, intprops.h.
68487         (INT_STRLEN_BOUND): Remove.
68488         * lib/strftime.c (TYPE_SIGNED): Remove.
68489         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68490         * lib/strtol.c: Adjust comments to match intprops.h.
68491         * lib/userspec.c: Include intprops.h.
68492         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68493         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68494         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68495         instead of rolling our own expressions.
68496         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68497
68498         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68499         instead of int.
68500         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68501         the right thing even if adding 1900 would overflow.  Similarly
68502         for tm_mon + 1 and tm_yday + 1.
68503         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68504         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68505         (DO_SIGNED_NUMBER): New macro.
68506         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68507
68508 2005-03-07  Bruno Haible  <bruno@clisp.org>
68509
68510         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68511
68512 2005-03-07  Bruno Haible  <bruno@clisp.org>
68513
68514         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68515
68516 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68517
68518         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68519         (func_import): Only replace files via --import when they have actually
68520         changed.
68521
68522 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68523
68524         * m4/mmap-anon.m4: New file.
68525         * m4/pagealign_alloc.m4: New file.
68526
68527 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68528             Bruno Haible  <bruno@clisp.org>
68529
68530         * modules/pagealign_alloc: New file.
68531         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68532
68533 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68534             Bruno Haible  <bruno@clisp.org>
68535
68536         * lib/pagealign_alloc.h: New file.
68537         * lib/pagealign_alloc.c: New file.
68538
68539 2005-03-03  Bruno Haible  <bruno@clisp.org>
68540
68541         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
68542         Use an all-permissive copyright notice, recommended by RMS.
68543
68544 2005-03-02  Bruno Haible  <bruno@clisp.org>
68545
68546         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
68547         of AIX, the replacement has to be done only after <string.h> is
68548         included, therefore not in config.h. stpncpy.h does the replacement,
68549         and stpncpy.c uses it.
68550
68551 2005-03-02  Bruno Haible  <bruno@clisp.org>
68552
68553         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
68554         stpncpy.c uses it.
68555
68556 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
68559         The workaround isn't strictly needed for POSIX conformance, and
68560         it's too much of a pain to configure and maintain.  We'll ask
68561         people to fix their kernels instead.
68562         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
68563         (NANOSLEEP_BUG_WORKAROUND): Remove.
68564         (xnanosleep): Remove the workaround.
68565
68566 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68567
68568         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
68569         Reported by Derek Price.
68570         (Include): Add "timespec.h".
68571
68572         * modules/xnanosleep (Depends-on): Remove gethrxtime.
68573
68574 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68575
68576         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
68577         to detect nanosleep bug.
68578
68579 2005-03-01  Bruno Haible  <bruno@clisp.org>
68580
68581         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
68582
68583 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68584
68585         * modules/gethrxtime: New file.
68586         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
68587         (Depends-on): Add gethrxtime.
68588         (configure.ac): Add gl_XNANOSLEEP.
68589         (Makefile.am): Remove lib_SOURCES line.
68590
68591 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68592
68593         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
68594         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
68595
68596 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68597
68598         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
68599         * lib/timespec.h (gettime): Return void, since it always
68600         succeeds now.  All uses changed.
68601         * lib/gettime.c (gettime): Likewise.
68602         [HAVE_NANOTIME]: Prefer nanotime.
68603         Assume gettimeofday succeeds, as POSIX requires.
68604         Assime time () succeeds, since other code already does.
68605         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
68606         (timespec_subtract): Remove.
68607         (NANOSLEEP_BUG_WORKAROUND): New constant.
68608         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
68609         things considerably.  Use it only on GNU/Linux hosts, since the
68610         workaround shouldn't be needed elsewhere.
68611
68612 2005-02-24  Bruno Haible  <bruno@clisp.org>
68613
68614         * modules/gettext (Files): Add m4/glibc2.m4.
68615
68616 2005-02-24  Bruno Haible  <bruno@clisp.org>
68617
68618         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
68619         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
68620         * m4/progtest.m4:
68621         Update from GNU gettext 0.14.2.
68622         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
68623
68624 2005-02-24  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/localcharset.c: Update from GNU gettext 0.14.2.
68627         * lib/config.charset: Update from GNU gettext 0.14.2.
68628
68629 2005-02-24  Bruno Haible  <bruno@clisp.org>
68630
68631         * lib/gettext.h: Update from GNU gettext 0.14.2.
68632
68633 2005-02-23  Simon Josefsson  <jas@extundo.com>
68634
68635         * m4/iconvme.m4: New file.
68636
68637 2005-02-23  Jim Meyering  <jim@meyering.net>
68638
68639         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
68640         change.
68641         Thanks to Bruno Haible for catching it.
68642
68643 2005-02-22  Simon Josefsson  <jas@extundo.com>
68644
68645         * modules/iconvme: New file.
68646
68647         * MODULES.html.sh: Add iconvme.
68648
68649 2005-02-22  Simon Josefsson  <jas@extundo.com>
68650
68651         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
68652
68653 2005-02-22  Simon Josefsson  <jas@extundo.com>
68654
68655         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
68656
68657 2005-02-22  Jim Meyering  <jim@meyering.net>
68658
68659         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
68660         s/ifndef/ifdef/.
68661
68662 2005-02-20  Neil Conway  <neilc@samurai.com>
68663
68664         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
68665         returned by OSX/Darwin if the specified buffer is not large
68666         enough for the hostname.
68667
68668 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68669
68670         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
68671         pass it to _help, otherwise the latter coredumps trying to
68672         dereference state.root_argp.
68673
68674 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68675
68676         * modules/chdir-long (Depends-on): Add memrchr.
68677         * modules/memrchr (Files): Add lib/memrchr.h.
68678         (Include): "memrchr.h".
68679
68680 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68681
68682         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
68683
68684 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * lib/memrchr.h: New file.
68687         * lib/chdir-long.c: Include it.
68688         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
68689         Don't bother including stddef.h.
68690
68691 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68692
68693         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
68694         inclusion.
68695         Include <sys/types.h>, for dev_t.
68696         (ME_DUMMY, ME_REMOTE): Move from here....
68697         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
68698         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
68699         Dmitry V. Levin.
68700         Include mountlist.h first, to test the interface.
68701
68702 2005-01-29  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/progname.c (program_name): Initialize.
68705         Needed when linking statically on MacOS X.
68706
68707 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68708
68709         Sync from coreutils.
68710         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
68711         (Depends-on): Add c-strtod.
68712         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
68713
68714 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68715
68716         Sync from coreutils.
68717         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
68718
68719         Remove files that are specific to coreutils.
68720         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
68721
68722 2005-01-28  Bruno Haible  <bruno@clisp.org>
68723
68724         * modules/javacomp: New file.
68725         * MODULES.html.sh (Java): Add javacomp.
68726
68727 2005-01-28  Bruno Haible  <bruno@clisp.org>
68728
68729         * m4/javacomp.m4: New file, from GNU gettext.
68730
68731 2005-01-28  Bruno Haible  <bruno@clisp.org>
68732
68733         * lib/javacomp.sh.in: New file, from GNU gettext.
68734         * lib/javacomp.h: New file, from GNU gettext.
68735         * lib/javacomp.c: New file, from GNU gettext.
68736
68737 2005-01-26  Simon Josefsson  <jas@extundo.com>
68738
68739         * lib/gai_strerror.c: Use GPL in header.
68740
68741 2005-01-26  Bruno Haible  <bruno@clisp.org>
68742
68743         * modules/javaexec: New file.
68744         * MODULES.html.sh (Java): Add javaexec.
68745
68746 2005-01-26  Bruno Haible  <bruno@clisp.org>
68747
68748         * m4/javaexec.m4: New file, from GNU gettext.
68749
68750 2005-01-26  Bruno Haible  <bruno@clisp.org>
68751
68752         * lib/javaexec.sh.in: New file, from GNU gettext.
68753         * lib/javaexec.h: New file, from GNU gettext.
68754         * lib/javaexec.c: New file, from GNU gettext.
68755
68756 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68757
68758         * modules/lchown (Depends-on): Remove lchown.h
68759
68760 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68761
68762         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
68763         must be defined if the header file was not found, in order
68764         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
68765
68766 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68767
68768         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
68769         initializers for struct pentry_state.
68770         (__argp_error): Check return value of __asprintf
68771         (__argp_failure): Translate error message
68772
68773         * lib/argp-parse.c: Removed braces around the expansion of N_()
68774
68775 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68776
68777         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
68778         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
68779         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
68780         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
68781         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
68782         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
68783         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
68784         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
68785         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
68786         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
68787         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
68788         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
68789         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
68790         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
68791         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
68792         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
68793         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
68794         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
68795         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
68796         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
68797         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
68798         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
68799         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
68800         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
68801         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
68802         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
68803         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
68804         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
68805         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
68806         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
68807         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
68808         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
68809         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
68810         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
68811         xstrtol.m4, xstrtoumax.m4, yesno.m4:
68812         Use an all-permissive copyright notice, recommended by RMS.
68813
68814 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68815
68816         * modules/chdir-long (Depends-on): Remove mempcpy.
68817
68818 2005-01-21  Jim Meyering  <jim@meyering.net>
68819
68820         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68821         same value as for Solaris 9.
68822
68823         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68824         component length.  This included changing the parameter to be
68825         of type `char *' rather than `char const *'.
68826         * lib/chdir-long.h (chdir_long): Update prototype.
68827
68828         * lib/openat.c (fdopendir, fstatat): New functions.
68829         * lib/openat.h: Include headers required for use of DIR and struct
68830         stat.
68831         [AT_SYMLINK_NOFOLLOW]: Define.
68832         (fdopendir, fstatat): Add prototypes.
68833
68834 2005-01-21  Bruno Haible  <bruno@clisp.org>
68835
68836         * modules/classpath: New file.
68837         * MODULES.html.sh (Java): Add classpath.
68838
68839 2005-01-21  Bruno Haible  <bruno@clisp.org>
68840
68841         * lib/classpath.h: New file, from GNU gettext.
68842         * lib/classpath.c: New file, from GNU gettext.
68843
68844 2005-01-20  Simon Josefsson  <jas@extundo.com>
68845
68846         * modules/version-etc-fsf: New file.
68847
68848 2005-01-20  Simon Josefsson  <jas@extundo.com>
68849
68850         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68851         * lib/version-etc.c: Remove version_etc_copyright.
68852         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68853         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68854
68855 2005-01-20  Simon Josefsson  <jas@extundo.com>
68856
68857         * lib/base64.h (isbase64): Add.
68858
68859         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68860         using a unsigned prototype, don't inline.
68861         (base64_decode): Use it.
68862
68863 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68864
68865         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68866         it.
68867
68868 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68869
68870         * lib/save-cwd.c (save_cwd): Remove code to support the case
68871         where fchdir is missing or flaky.
68872
68873 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68876
68877 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68880         AC_LIBSOURCES now does this.
68881         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68882         with new ullong_max module.
68883
68884 2005-01-19  Bruno Haible  <bruno@clisp.org>
68885
68886         * modules/sh-quote: New file.
68887         * MODULES.html.sh (Executing programs): Add sh-quote.
68888
68889 2005-01-19  Bruno Haible  <bruno@clisp.org>
68890
68891         * lib/sh-quote.h: New file, from GNU gettext.
68892         * lib/sh-quote.c: New file, from GNU gettext.
68893
68894 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68895
68896         Merge from coreutils.
68897         * m4/ullong_max.m4: New file.
68898         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68899         (gl_MACROS): Assume localeconv exists.
68900
68901 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         Merge changes from coreutils, as described below in several
68904         changelogs dated today.
68905
68906         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68907         (O_DIRECTORY): Remove; not needed here, since "." must be
68908         a directory.  All uses removed.
68909         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68910         universal on Suns, and we also need to test for IRIX.
68911         Revamp code to use 'if' rather than '#if'.
68912         Avoid unnecessary comparison of cwd->desc to 0.
68913
68914         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68915         for known valid error numbers rather than observed invalid ones.
68916
68917 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         * modules/ullong_max: New file.
68920
68921         * modules/chdir-long, modules/openat: New files.
68922         * modules/save-cwd (Depends-on): Depend on chdir-long.
68923         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68924
68925 2005-01-18  Jim Meyering  <jim@meyering.net>
68926
68927         Merge from coreutils.
68928         * m4/chdir-long.m4, m4/openat.m4: New files.
68929         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68930         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68931         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68932         is sane and DOES follow symlinks.  Besides, testing 20 different
68933         systems found no broken chown implementations.
68934         Prompted by a change in rsync's copy of this macro.
68935         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68936
68937         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68938
68939         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68940         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68941         NULL-means-set-to-current-time semantics.
68942         Remove temporary file immediately, rather than waiting
68943         for configure's at-exit trap code to do it.
68944
68945 2005-01-18  Jim Meyering  <jim@meyering.net>
68946
68947         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68948
68949         * lib/utimens.c (futimens): Account for the fact that futimes
68950         can also fail with errno == ENOSYS or errno == ENOENT.
68951         Patch from Dmitry V. Levin.
68952
68953         Change the name of the robust chdir function from chdir to chdir_long.
68954         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68955         (restore_cwd): Use chdir_long, not chdir.
68956         * lib/chdir-long.c: Renamed from chdir.c.
68957         * lib/chdir-long.h: Renamed from chdir.h.
68958         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68959         Hurd.
68960
68961 2005-01-18  Bruno Haible  <bruno@clisp.org>
68962
68963         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68964         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68965         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68966         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68967         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68968         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68969         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68970         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68971         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68972         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68973         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68974         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68975         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68976         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68977         Use an all-permissive copyright notice, recommended by RMS.
68978
68979 2005-01-18  Bob Proulx  <bob@proulx.com>
68980
68981         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68982         simplify offsetof() macro construct to avoid compile failure with
68983         native HP-UX 11.0 ANSI C compiler.
68984
68985 2005-01-17  Bruno Haible  <bruno@clisp.org>
68986
68987         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68988         redundant because stpncpy.m4 takes care of it.
68989
68990 2005-01-17  Bruno Haible  <bruno@clisp.org>
68991
68992         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68993
68994 2005-01-17  Bruno Haible  <bruno@clisp.org>
68995
68996         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68997         used.
68998
68999 2005-01-17  Bruno Haible  <bruno@clisp.org>
69000
69001         * lib/fwriteerror.h (fwriteerror): Change specification to include
69002         fclose.
69003         * lib/fwriteerror.c: Include <stdbool.h>.
69004         (fwriteerror): At the end, close the file stream. Record whether
69005         stdout was already closed.
69006
69007 2005-01-17  Bruno Haible  <bruno@clisp.org>
69008
69009         * lib/execute.c (environ): Declare if needed.
69010         * lib/pipe.c (environ): Likewise.
69011         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69012
69013 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69014
69015         * modules/argp: Depend on vsnprintf
69016
69017 2005-01-10  Jim Meyering  <jim@meyering.net>
69018
69019         * modules/closeout (Depends-on): Add atexit.
69020
69021 2005-01-06  Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69024
69025 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69028         definitions to be after all include files, to avoid collisions.
69029         Problem reported by Bob Proulx.
69030
69031 2005-01-04  Jim Meyering  <jim@meyering.net>
69032
69033         Changes imported from coreutils.
69034         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69035         as the mkstemp template, use a temporary directory and an
69036         8.3-friendly template to avoid trouble on systems like DJGPP.
69037         Reported by Juan M. Guerrero via Stepan Kasal.
69038         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69039         close. Remove the temporary directory right away, rather than waiting
69040         for configure's at-exit trap code to do it.
69041         Suggestion from Stepan Kasal.
69042
69043 2005-01-01  Simon Josefsson  <jas@extundo.com>
69044
69045         * gnulib-tool: Print #include directives when --import'ing.
69046
69047 2004-12-28  Simon Josefsson  <jas@extundo.com>
69048
69049         * tests/test-base64.c: Include required header files.  Remove
69050         unused variables.
69051
69052 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * modules/error (Depends-on): Remove gettext.
69055
69056 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69057
69058         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69059         not needed.  This removes a dependency on the gettext module.
69060         [defined _LIBC]: Do not include <libintl.h>; not needed.
69061
69062 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69063
69064         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69065         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69066
69067 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69068
69069         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69070         HAVE_DECL_STRTOLD.
69071
69072 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69073
69074         * modules/getdate (Depends-on): Remove alloca-opt.
69075
69076 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69079
69080 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69081
69082         * lib/argp-parse.c: Include <stddef.h>.
69083         (alignof, alignto): New macros.
69084         (parser_init): Don't assume that void * is aligned sufficiently
69085         for struct option.
69086
69087         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69088         need to extend the stack.
69089         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69090         large.
69091
69092 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69093
69094         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69095
69096 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69099         (2004-10-24) change.  Apparently this was a false alarm.
69100
69101         * modules/getdate: Depend on alloca-opt, not alloca.
69102
69103 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69104
69105         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69106         Remove now-obsolete comment about AIX.
69107         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69108         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69109         (YYMAXDEPTH): New macro.
69110
69111 2004-12-18  Simon Josefsson  <jas@extundo.com>
69112
69113         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69114
69115 2004-12-18  Bruno Haible  <bruno@clisp.org>
69116
69117         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69118
69119 2004-12-18  Bruno Haible  <bruno@clisp.org>
69120
69121         * lib/fatal-signal.c (fatal_signals): Make non-const.
69122         (init_fatal_signals): New function.
69123         (uninstall_handlers, install_handlers): Ignore signals that were set to
69124         SIG_IGN.
69125         (at_fatal_signal): Call init_fatal_signals.
69126         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69127         SIG_IGN.
69128         Reported by Paul Eggert.
69129
69130 2004-12-18  Bruno Haible  <bruno@clisp.org>
69131
69132         * doc/alloca.texi: New file.
69133         * doc/alloca-opt.texi: New file.
69134
69135 2004-12-17  Jim Meyering  <jim@meyering.net>
69136
69137         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69138         Otherwise, install-sh could exit with improper exit status when
69139         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69140
69141 2004-12-16  Simon Josefsson  <jas@extundo.com>
69142
69143         * tests/test-base64.c: Add license.
69144
69145 2004-12-15  Stepan Kasal  <address@hidden>
69146
69147         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69148
69149 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * modules/getcwd (Files): Add m4/d-ino.m4.
69152         Suggested by Mark D. Baushke.
69153
69154 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         * lib/getdate.y (textint): New member "negative".
69157         (time_zone_hhmm): New function.
69158         Expect 14 shift-reduce conflicts, not 13.
69159         (o_colon_minutes): New rule.
69160         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69161         (yylex): Set the "negative" member of signed numbers.
69162
69163 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69164
69165         * doc/getdate.texi (Time of day items, Time zone items):
69166         Describe new formats +00:00, UTC+00:00.
69167
69168 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69169
69170         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69171         spurious "-l"s.  Problem reported by Stepan Kasal.
69172
69173 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69174
69175         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69176         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69177
69178 2004-12-04  Simon Josefsson  <jas@extundo.com>
69179
69180         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69181         Vandoorselaere <yoann@prelude-ids.org>.
69182
69183 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69184
69185         Changes imported from coreutils.
69186         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69187         exist.
69188         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69189
69190 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69191
69192         Changes imported from coreutils.
69193         * lib/hard-locale.c: Assume <locale.h> exists.
69194         Include "strdup.h".
69195         (GLIBC_VERSION): New macro.
69196         (hard_locale): Assume setlocale exists.
69197         Rewrite to avoid #ifdef.
69198         Use strdup rather than malloc + strcpy.
69199         * lib/human.c: Assume <locale.h> exists.
69200         (human_readable): Assume localeconv exists.
69201
69202 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69203
69204         * modules/hard-locale (Depends-on): Add strdup.
69205
69206 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69207
69208         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69209         convert T2, not T.  (Imported from libc.)
69210
69211 2004-11-30  Simon Josefsson  <jas@extundo.com>
69212
69213         * modules/restrict (License): Change to LGPL.
69214
69215 2004-11-30  Simon Josefsson  <jas@extundo.com>
69216
69217         * m4/restrict.m4: Add copyright and copying conditions.
69218
69219 2004-11-30  Simon Josefsson  <jas@extundo.com>
69220
69221         * m4/base64.m4: New file.
69222
69223 2004-11-30  Simon Josefsson  <jas@extundo.com>
69224
69225         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69226         base64.
69227
69228         * tests/test-base64.c: New file.
69229
69230         * modules/base64: New file.
69231
69232 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69233
69234         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69235         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69236
69237         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69238
69239 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69240
69241         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69242         (__getcwd.c): Don't restore errno; glibc doesn't.
69243         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69244         first, falling back to our code only if its results look suspicious.
69245         Ensure that the resulting buffer is only as large as necessary.
69246
69247         * lib/readutmp.c: Include readutmp.h first.
69248         Include <errno.h>, since readutmp.h no longer does that.
69249         * lib/readutmp.h: Don't include <errno.h>,
69250         <sys/param.h>, <time.h>; not needed to establish interface.
69251         (errno): Remove decl.
69252         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69253         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69254         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69255
69256 2004-11-28  Simon Josefsson  <jas@extundo.com>
69257
69258         * lib/base64.h, base64.c: New file.
69259
69260 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69261
69262         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69263
69264 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69265
69266         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69267         (Depends-on): Remove pathmax, same.  Add mempcpy.
69268         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69269         (Makefile.am): Append getcwd.h to lib_SOURCES.
69270         (Include): Add getcwd.h.
69271         (Maintainer): Change from Jim Meyering to "all, glibc",
69272         since getdate now uses intended-for-glibc code.
69273         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69274         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69275
69276 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69279         HP's ANSI C compiler.
69280         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69281         Declaring int functions causes warnings on some modern systems and
69282         shouldn't be needed to compile on ancient ones.
69283         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69284         defined.
69285
69286         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69287         with the following changes.
69288         (__set_errno): Parenthesize properly.
69289         Include <stdbool.h>.
69290         (MIN, MAX, MATCHING_INO): New macros.
69291         (__getcwd): Define with prototype, not K&R form.
69292         Use heuristics to allocate default buffer on stack if possible.
69293         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69294         behavior, and to avoid the PATH_MAX limit when computing
69295         ../../../../...
69296         Use MATCHING_INO to compare inode number to file.
69297         Check for arithmetic overflow in size calculations.
69298         Fix bug in reallocation of dot array that caused getcwd to fail
69299         on directories nested deeper than 75.
69300         Be more careful about saving errno on error.
69301         Do not use realloc; use only free+malloc, as this is a bit
69302         more flexible and avoids a needless copy operation.
69303         Do not inspect st_dev and st_ino for symbolic links; POSIX
69304         doesn't specify the latter.
69305         Check for closedir errors.
69306         Avoid needless casts.
69307         Use "#ifdef weak_alias" around weak_alias, to be like other
69308         glibc code.
69309         The following changes to getcwd.c have effect only when used in
69310         gnulib; they have no effect inside glibc proper.
69311         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69312         as alloca isn't used.
69313         (alloca, __alloca): Likewise.
69314         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69315         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69316         unconditionally, as gnulib assumes C89 or better.
69317         Do not include <sys/param.h>.
69318         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69319         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69320         better.
69321         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69322         Include <dirent.h> in a way that is compatible with modern Autoconf.
69323         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69324         New macros, if not already defined.
69325         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69326         Use "_LIBC", not "defined _LIBC", for consistency.
69327         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69328         a mempcpy module.
69329         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69330         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69331         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69332         credit only to Jim Meyering and adjust the copyright dates.
69333         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69334         <stdlib.h>, <unistd.h>, "pathmax.h".
69335         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69336         (INITIAL_BUFFER_SIZE): Remove.
69337         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69338
69339 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69340
69341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69342         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69343         Use the _ONCE methods, for efficiency.
69344         Check for fcntl.h.  In test program, include <errno.h>
69345         and <fcntl.h> if available.  Remove old K&R cruft from
69346         test program.  Check for common errors in GNU/Linux,
69347         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69348         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69349         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69350         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69351         name accordingly.
69352         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69353         accommodate new getcwd.c.
69354         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69355         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69356         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69357         that's all we need now.
69358
69359 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69360
69361         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69362         argp-parse.c depends on getopt internals, that means we should
69363         always use our getopt, to be on the safe side.
69364         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69365         order not to spoil the result of an eventual previous invocation
69366         of gl_GETOPT_SUBSTITUTE.
69367
69368 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69369
69370         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69371         redefinition warnings. To avoid them, include the defines
69372         in `#if !defined __need_getopt ... #endif'. The only place
69373         where __getopt_argv_const is used is in definitions
69374         of getopt_long and getopt_long_only below, which are as well
69375         protected by `#ifndef __need_getopt'.
69376         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69377         __need_getopt after including <stdio.h> and <unistd.h> These
69378         headers might have defined it.
69379
69380 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69381
69382         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69383
69384 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69385
69386         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69387         (futimens): New function, which uses futimes if available.
69388         (futimens, utimens): Support timespec==NULL, with same semantics
69389         as utime and utimens.
69390         * lib/utimens.h (futimens): New decl.
69391
69392 2004-11-23  Jim Meyering  <jim@meyering.net>
69393
69394         * lib/getopt_.h: Remove trailing blanks.
69395
69396 2004-11-23  Jim Meyering  <jim@meyering.net>
69397
69398         * lib/__fpending.c: Add comment.
69399
69400 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         * modules/canonicalize (Depends-on): Add xreadlink.
69403         Problem reported by James Youngman.
69404
69405 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69408         New macros.
69409         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69410         optopt): Use them instead of invoking ## directly; otherwise, the
69411         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69412
69413 2004-11-19  Bruno Haible  <bruno@clisp.org>
69414
69415         * lib/strtok_r.c: Move comments from here...
69416         * lib/strtok_r.h: ... to here.
69417
69418 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69419
69420         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69421         implementations that mishandle size_t overflow.
69422
69423 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69424
69425         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69426         might fail.  Problem reported by Yoann Vandoorselaere.
69427         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69428         implementations that mishandle size_t overflow.
69429
69430 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69431
69432         * modules/canon-host (Depends-on): Add strdup.
69433
69434 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69437
69438 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69439
69440         * lib/canon-host.c: Include "strdup.h".
69441         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69442         Use strdup instead of malloc/strcpy to duplicate strings.
69443
69444         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69445         (human_space_before_unit): New constant.
69446         * lib/human.c (human_readable): Support it.
69447
69448         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69449         (xgetcwd): Set errno correctly when failing.
69450         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69451         the failure is actually due to a PATH_MAX problem.
69452
69453         Further getopt changes to make it more likely that glibc will
69454         buy the changes back.
69455         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69456         (getopt): Use it, so to preserve glibc semantic
69457         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69458         when compiling for libc.
69459         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69460         (getopt_long, getopt_long_only): Use it.
69461
69462         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69463         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69464         (getopt): Argv is now char * const *, as per standard.
69465         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69466         not char *__getopt_argv_const *.
69467         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69468         _getopt_long_only_r): Likewise.
69469         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69470         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69471         _getopt_long_r, _getopt_long_only_r): Likewise.
69472         * lib/getopt_.h (__getopt_argv_const): Remove.
69473         (getopt): Argv is now char * const *, as per standard.
69474
69475         * lib/getdate.y (tORDINAL): New token.
69476         (day, relunit): Allow it for relative times.
69477         (relative_time_table): Use tORDINAL for ordinals.
69478
69479 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69480
69481         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69482         Document that "second" isn't allowed as an ordinal number.
69483
69484 2004-11-16  Jim Meyering  <jim@meyering.net>
69485
69486         * modules/closeout (Depends-on): Add fpending.
69487
69488 2004-11-15  Jim Meyering  <jim@meyering.net>
69489
69490         * lib/closeout.c: Include "__fpending.h" once again.
69491         Include <stdbool.h>.
69492         (close_stdout): Don't fail just because stdout was closed initially,
69493         since some programs don't write to stdout in the normal course of
69494         operation (other than --version and --help), and we don't want this
69495         function to make e.g. `touch file >&-' fail.
69496         But do fail if it was closed and someone has tried to write to it.
69497         E.g., `printf foo >&-' must fail.
69498
69499 2004-11-13  Jim Meyering  <jim@meyering.net>
69500
69501         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69502
69503 2004-11-12  Simon Josefsson  <jas@extundo.com>
69504
69505         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69506         small doc fix is still pending.
69507
69508 2004-11-11  Simon Josefsson  <jas@extundo.com>
69509
69510         * modules/strtok_r: New file.
69511
69512         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69513         strtok_r.
69514
69515 2004-11-11  Simon Josefsson  <jas@extundo.com>
69516
69517         * m4/strtok_r.m4: New file.
69518
69519         * m4/getopt.m4: Replace opterr.
69520
69521 2004-11-11  Simon Josefsson  <jas@extundo.com>
69522
69523         * lib/strtok_r.h, strtok_r.c: New file.
69524
69525 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69528         of replacing opterr, getopt, etc.  This should handle the
69529         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69530
69531 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69532
69533         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69534         we can stop lying to compilers about the constness of argv when we
69535         are compiled outside glibc.
69536         (getopt, getopt_long, getopt_long_only): Use it.
69537         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69538         _getopt_internal, getopt): Likewise.
69539         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69540         _getopt_long_only_r): Likewise.
69541         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69542         _getopt_long_r, _getopt_long_only_r): Likewise.
69543
69544         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
69545         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
69546         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
69547         the other external symbols.
69548         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
69549         declaration, since the above renaming now works around collisions.
69550
69551 2004-11-11  Jim Meyering  <jim@meyering.net>
69552
69553         * lib/linebreak.c: Remove trailing blanks.
69554         * lib/alloca_.h: Likewise.
69555         * lib/acosl.c: Likewise.
69556         * lib/euidaccess.c: Likewise.
69557         * lib/allocsa.h: Likewise.
69558
69559 2004-11-10  Simon Josefsson  <jas@extundo.com>
69560
69561         * m4/getaddrinfo.m4: New file.
69562
69563 2004-11-10  Simon Josefsson  <jas@extundo.com>
69564
69565         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
69566
69567 2004-11-10  Simon Josefsson  <jas@extundo.com>
69568
69569         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69570         getaddrinfo.
69571
69572         * modules/getaddrinfo: New file.
69573
69574 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69575
69576         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
69577
69578 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69579
69580         * lib/mktime.c (SHR): New macro, which is a portable
69581         substitute for >> that should work even on Crays.
69582         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
69583         Problem reported by Mark D. Baushke in
69584         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
69585         * lib/getdate.y (SHR): Likewise.
69586         (tm_diff): Use it.
69587         * lib/strftime.c (SHR): Likewise.
69588         (tm_diff): Use it.
69589         * lib/quotearg.c (struct quoting_options): Use unsigned int for
69590         quote_these_too, so that right shifts are well defined.  All uses
69591         changed.
69592
69593 2004-11-10  Jim Meyering  <jim@meyering.net>
69594
69595         Ensure that no close failure goes unreported.
69596         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
69597         return early when it seems there's nothing to flush.
69598         Don't include __fpending.h.
69599
69600 2004-11-10  Jim Meyering  <jim@meyering.net>
69601
69602         * modules/closeout (Depends-on): Remove fpending.
69603
69604 2004-11-10  Jim Meyering  <jim@meyering.net>
69605
69606         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
69607
69608 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69609
69610         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
69611         gl_FUNC_STRFTIME.
69612         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
69613         and AC_REQUIRE when possible, to avoid duplicate checks.
69614         Check for <wchar.h>.
69615
69616 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
69617
69618         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
69619
69620 2004-11-09  Bruno Haible  <bruno@clisp.org>
69621
69622         * m4/sockpfaf.m4: New file.
69623
69624 2004-11-05  Bruno Haible  <bruno@clisp.org>
69625
69626         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
69627         Reported by Mark D. Baushke <mdb@cvshome.org>.
69628
69629 2004-11-04  Bruno Haible  <bruno@clisp.org>
69630
69631         2004-09-11  Bruno Haible  <bruno@clisp.org>
69632                 * allocsa.valgrind: New file.
69633         2004-02-06  Bruno Haible  <bruno@clisp.org>
69634                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
69635                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
69636                 Reported by Christopher Seip <chris.seip@hp.com>.
69637
69638 2004-11-04  Bruno Haible  <bruno@clisp.org>
69639
69640         * modules/allocsa (Files): Add lib/allocsa.valgrind.
69641         (Makefile.am): Distribute it.
69642
69643 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
69646         with errno == ERANGE if the buffer is too small.
69647         Problem reported by Mark D. Baushke.
69648
69649 2004-11-03  Albert Chin  <china@thewrittenword.com>
69650             Paul Eggert  <eggert@cs.ucla.edu>
69651
69652         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
69653         equivalent, substitute $ac_type for equivalent type rather than
69654         blindly using uint32_t *always* which won't work if uint32_t is not
69655         available.  Define _UINT32_T to work around typedef of uint32_t if
69656         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
69657         2.5.1.
69658
69659 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69660
69661         * m4/jm-macros.m4: Sync from coreutils.
69662         (gl_MACROS): Check for mbrlen, for pathchk.
69663         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
69664
69665 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * lib/xreadlink.c (MAXSIZE): New macro.
69668         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
69669         size does not exceed MAXSIZE.  Avoid cast.
69670         As suggested by Mark D. Baushke in
69671         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
69672         if readlink fails with buffer size just under MAXSIZE, try again
69673         with MAXSIZE.
69674
69675 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
69678
69679 2004-11-02  Derek R. Price  <derek@ximbiot.com>
69680         and  Paul Eggert  <eggert@cs.ucla.edu>
69681
69682         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
69683         (get_date): Overparenthesize to avoid GCC warning.
69684
69685 2004-11-02  Bruno Haible  <bruno@clisp.org>
69686
69687         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
69688         returns void.
69689
69690 2004-11-02  Bruno Haible  <bruno@clisp.org>
69691
69692         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
69693         function returns void.
69694
69695 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
69698         fflush_unlocked, flockfile, funlockfile, funlockfile,
69699         fputs_unlocked, putc_unlocked.
69700
69701 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
69702
69703         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69704         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
69705         already declared.
69706
69707 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69708
69709         * modules/getdate (Files): Add doc/getdate.texi.
69710         (Depends-on): Add setenv, xalloc.
69711
69712 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69713
69714         * lib/getdate.y: Add support for TZ="foo" within a date string.
69715         Fix some bugs near time_t boundaries.  Reject dates with
69716         out-of-range components, e.g., "Sept 31".
69717         Include <stdlib.h>, "setenv.h", "xalloc.h".
69718         (ISDIGIT_LOCALE): Remove; unused.
69719         Note that the TZ and time functions used here are not reentrant.
69720         (mktime_ok, get_tz): New functions.
69721         (TZBUFSIZE): New constant.
69722         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
69723         This requires that we sometimes generate our own TZ="XXX..." setting.
69724
69725 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69726
69727         * doc/getdate.texi: New file, from coreutils with modifications for
69728         the new TZ parsing.
69729
69730 2004-10-27  Derek R. Price  <derek@ximbiot.com>
69731
69732         * lib/mktime.c (not_equal_tm): Remove redundant check.
69733
69734 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         * modules/regex (lib_SOURCES): Add regex.c.
69737         Reported by James Youngman in
69738         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
69739
69740 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * lib/getdate.y: Use Bison 1.875 features, and some minor
69743         code cleanups.  This change does not affect semantics.
69744         Don't include <stdlib.h>; no longer needed.
69745         Don't include unlocked-io.h; only the "#if TEST" code uses
69746         stdio, and performance isn't crucial there.
69747         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
69748         Bison 1.875 features as described below.
69749         All uses of "PC." replaced by "pc->".
69750         (YYSTYPE): Add a forward declaration.
69751         (yylex, yyerror): Use full prototypes in forward decls.
69752         Use "%pure-parser" rather than obsolescent "%pure_parser".
69753         Use %parse-param and %lex-param instead of obsolescent
69754         YYPARSE_PARAM and YYLEX_PARAM.
69755         (meridian_table, month_and_day_table, time_units_table,
69756         relative_time_table, time_zone_table, military_table,
69757         lookup_zone, lookup_word, get_date):
69758         Use NULL instead of 0 where appropriate.
69759         (to_hour): Avoid abort (), to avoid a dependency on
69760         stdlib.h.
69761         (yyerror, yylex): Now accepts parser_control * arg.
69762         (main) [TEST]: Use '\0' rather than 0 for char.
69763
69764 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69765
69766         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
69767
69768 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
69769
69770         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
69771         It's now the caller's responsibility to handle the case where
69772         !HAVE_GETPAGESIZE && !defined getpagesize.
69773
69774         * lib/mktime.c (leapyear): Arg is long int, not int.
69775
69776 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
69779
69780 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69781
69782         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
69783         missing.  Problem reported by James Youngman.
69784
69785 2004-10-16  Simon Josefsson  <jas@extundo.com>
69786
69787         * gnulib-tool: Fix comments.  Fix parse problem.
69788         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
69789
69790 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
69793         implementation of getopt_long.  Problem reported by Alexander Taler in:
69794         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
69795
69796 2004-10-15  Bruno Haible  <bruno@clisp.org>
69797
69798         * gnulib-tool: Untabify. Initialize supplied_libname.
69799         (func_usage): More homogenous output.
69800         (func_modules_transitive_closure, func_modules_to_filelist,
69801         func_emit_lib_Makefile_am): New functions.
69802         (func_import): New function, extracted from big case statement. Use
69803         func_get_license, func_modules_transitive_closure,
69804         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
69805         opt_lgpl. Don't use test -a, as it's not portable.
69806         (func_create_testdir): Use func_modules_transitive_closure,
69807         func_modules_to_filelist, func_emit_lib_Makefile_am.
69808
69809 2004-10-15  Bruno Haible  <bruno@clisp.org>
69810
69811         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
69812
69813 2004-10-15  Bruno Haible  <bruno@clisp.org>
69814
69815         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69816         the portions belonging to each module.
69817         Suggested by Derek Robert Price <derek@ximbiot.com>.
69818
69819 2004-10-12  Simon Josefsson  <jas@extundo.com>
69820
69821         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69822         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69823         to real functions.
69824
69825 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69826
69827         * modules/vsnprintf: New file.
69828
69829 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69830
69831         * m4/vsnprintf.m4: New file.
69832
69833 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69834
69835         * lib/vsnprintf.h: New file.
69836         * lib/vsnprintf.c: New file.
69837
69838 2004-10-11  Bruno Haible  <bruno@clisp.org>
69839
69840         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69841         vsnprintf.
69842
69843 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69844
69845         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69846
69847 2004-10-07  Bruno Haible  <bruno@clisp.org>
69848
69849         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69850         fits into the provided buffer.
69851
69852 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69853
69854         * lib/diacrit.c, diacrit.h: Add GPL notice.
69855
69856         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69857         notice.
69858         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69859         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69860         This avoids a potential constant-folding bug.
69861
69862 2004-10-05  Bruno Haible  <bruno@clisp.org>
69863
69864         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69865         for the declaration of strsep.
69866
69867 2004-10-05  Bruno Haible  <bruno@clisp.org>
69868
69869         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69870
69871 2004-10-04  Simon Josefsson  <jas@extundo.com>
69872
69873         * modules/memmem: New file.
69874         * tests/test-memmem.c: New file.
69875         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69876
69877 2004-10-04  Simon Josefsson  <jas@extundo.com>
69878
69879         * m4/memmem.m4: New file.
69880
69881 2004-10-04  Simon Josefsson  <jas@extundo.com>
69882
69883         * lib/memmem.h: New file.
69884         * lib/memmem.c: New file, taken from glibc.
69885
69886 2004-10-04  Simon Josefsson  <jas@extundo.com>
69887
69888         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69889         '#ifdef USE_UNLOCKED_IO'.
69890
69891 2004-10-04  Simon Josefsson  <jas@extundo.com>
69892
69893         * config/srclist.txt: Add memmem from glibc.
69894
69895 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69896
69897         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69898
69899         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69900         modules/exclude, modules/getdate, modules/getline,
69901         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69902         modules/getusershell, modules/linebuffer, modules/md5,
69903         modules/mountlist, modules/posixtm, modules/readtokens,
69904         modules/readutmp, modules/regex, modules/sha1,
69905         modules/version-etc, modules/yesno:
69906         Remove dependency on unlocked-io.
69907
69908 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69909
69910         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69911
69912         * m4/unlocked-io.m4: Add copyright notice.
69913         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69914
69915 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69916
69917         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69918         * lib/xmalloc.c (xmemdup): Likewise.
69919         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69920         XFREE): Remove these long-obsolescent macros.
69921         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69922         * lib/xstrdup.c: Remove.
69923
69924         * lib/regex.c (re_comp): Cast gettext return value to char *,
69925         Problem reported by Martin Neitzel via Mark D. Baushke.
69926
69927 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69928
69929         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69930         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69931         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69932         regex.c, sha1.c, version-etc.c, yesno.c:
69933         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69934         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69935         the includer's responsibility.
69936
69937         Sync from coreutils.
69938
69939         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69940         points to the start of a string, as the C Standard says the
69941         resulting behavior is undefined.
69942
69943         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69944         simple -> simple_backups, numbered_existing ->
69945         numbered_existing_backups, numbered -> numbered_backups
69946         to avoid shadowing problems.  All uses changed.
69947         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69948         * lib/backupfile.c (check_extension, numbered_backup):
69949         Rename locals to avoid shadowing 'basename'.
69950         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69951         once.
69952
69953         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69954         * lib/.cvsignore: Add getopt.h.
69955
69956 2004-10-04  Bruno Haible  <bruno@clisp.org>
69957
69958         * modules/README: New file.
69959         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69960         not a module.
69961
69962 2004-10-02  Jim Meyering  <jim@meyering.net>
69963
69964         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69965
69966 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69967
69968         * modules/strsep: New file.
69969
69970 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69971
69972         * m4/strsep.m4: New file.
69973
69974 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69975
69976         * lib/strsep.h: New file.
69977         * lib/strsep.c: New file.
69978
69979 2004-10-01  Simon Josefsson  <jas@extundo.com>
69980
69981         * lib/snprintf.c (snprintf): Handle size==0.
69982
69983 2004-10-01  Simon Josefsson  <jas@extundo.com>
69984             Bruno Haible  <bruno@clisp.org>
69985
69986         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69987         (snprintf): Declare 'args'.
69988
69989 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * lib/snprintf.c: Remove comments as to why each header is needed.
69992
69993 2004-10-01  Bruno Haible  <bruno@clisp.org>
69994
69995         * MODULES.html.sh: Add strsep.
69996
69997 2004-09-30  Simon Josefsson  <jas@extundo.com>
69998
69999         * modules/snprintf: New file.
70000
70001 2004-09-30  Simon Josefsson  <jas@extundo.com>
70002
70003         * m4/snprintf.m4: New file.
70004
70005 2004-09-30  Simon Josefsson  <jas@extundo.com>
70006
70007         * lib/snprintf.h, lib/snprintf.c: New files.
70008
70009 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70010
70011         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70012         (hol_entry_help): Never translate an empty string.
70013         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70014         * lib/argp.h (OPTION_NO_TRANS): New option.
70015
70016 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70017
70018         * modules/argp (Maintainer): Replace Simon Josefsson
70019         by Sergey Poznyakoff.
70020
70021 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70022
70023         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70024         changes merged back into glibc.
70025
70026 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70027
70028         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70029
70030 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70031
70032         * lib/xvasprintf.c: Include xalloc.h.
70033         (xvasprintf): Use xalloc_die, not xmalloc_die.
70034
70035 2004-09-29  Bruno Haible  <bruno@clisp.org>
70036
70037         * modules/alloca-opt: New file, derived from modules/alloca.
70038         * modules/allocsa: Depend on alloca-opt instead of alloca.
70039         * modules/setenv: Likewise.
70040         * modules/vasnprintf: Likewise.
70041         * MODULES.html.sh: Add alloca-opt.
70042
70043 2004-09-28  Simon Josefsson  <jas@extundo.com>
70044
70045         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70046         LGPL, and to replace license template from GPL to LGPL.
70047
70048 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * modules/dummy: Change license to LGPL.
70051
70052 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70055
70056 2004-09-24  Simon Josefsson  <jas@extundo.com>
70057
70058         * modules/minmax (License): Change from GPL to LGPL.
70059
70060 2004-09-23  Simon Josefsson  <jas@extundo.com>
70061
70062         * gnulib-tool (--import): Typo.
70063
70064 2004-09-23  Simon Josefsson  <jas@extundo.com>
70065
70066         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70067
70068 2004-09-22  Bruno Haible  <bruno@clisp.org>
70069
70070         * modules/*: Add 'License' field.
70071         * gnulib-tool: Accept --extract-license option.
70072         (func_get_license): New function.
70073
70074 2004-09-21  Bruno Haible  <bruno@clisp.org>
70075
70076         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70077         Reported by Simon Josefsson.
70078
70079 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70080
70081         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70082         gl_AC_TYPE_LONG_LONG.
70083
70084 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70085
70086         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70087
70088 2004-09-18  Simon Josefsson  <jas@extundo.com>
70089         and  Paul Eggert  <eggert@cs.ucla.edu>
70090
70091         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70092         calls with autoreconf.  Define GL_LIB.
70093
70094 2004-09-14  Karl Berry  <karl@gnu.org>
70095
70096         * config/srclist.txt: unsync setenv.c, sigh.
70097
70098 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70099
70100         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70101         Problem reported by Bruno Haible in:
70102         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70103
70104 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70105
70106         * config/srclist.txt: Comment out argp-pvh.c.
70107
70108 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70109
70110         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70111         in case some system header has #define'd it.  Problem reported by
70112         Soeren D. Schulze in
70113         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70114
70115 2004-09-09  Karl Berry  <karl@gnu.org>
70116
70117         * regex.[ch]: delete from the root.  These were supposed to be
70118                 synced with emacs cvs, but this has not happened for about
70119                 a year, and anyway nothing else uses emacs regex.[ch].
70120                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70121                 lib/regex[.ch] is untouched.
70122
70123 2004-09-09  Bruno Haible  <bruno@clisp.org>
70124
70125         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70126
70127 2004-09-09  Bruno Haible  <bruno@clisp.org>
70128
70129         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70130         modifications.
70131         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70132
70133 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70134
70135         * modules/xvasprintf: New file.
70136         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70137
70138 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70139
70140         * lib/xvasprintf.h: New file.
70141         * lib/xvasprintf.c: New file.
70142         * lib/xasprintf.c: New file.
70143
70144 2004-09-08  Bruno Haible  <bruno@clisp.org>
70145
70146         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70147
70148 2004-09-08  Bruno Haible  <bruno@clisp.org>
70149
70150         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70151         length is > INT_MAX.
70152         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70153         more.
70154
70155 2004-09-08  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/stdint_.h: New file, taken from GNU clisp.
70158
70159 2004-09-08  Bruno Haible  <bruno@clisp.org>
70160             Oskar Liljeblad  <oskar@osk.mine.nu>
70161
70162         * modules/stdint: New file.
70163         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70164
70165 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         Import from coreutils.
70168         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70169         strings on unbounded length.  alloca's performance benefits aren't
70170         that important here.
70171         (V_STRDUP): Remove.
70172         (parse_with_separator): New function, with most of the internals
70173         of the old parse_user_spec.  Allow user to omit both user and group,
70174         for compatibility with FreeBSD.
70175         Clone only the user name, not the entire spec.
70176         Do not set *uid, *gid unless entirely successful.
70177         Avoid memory leak in some failing cases.
70178         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70179         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70180         (parse_user_spec): Rewrite to use parse_with_separator.
70181
70182 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         * modules/userspec: Don't depend on alloca.
70185
70186 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70189
70190 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70191
70192         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70193         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70194         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70195
70196 2004-08-16  Simon Josefsson  <jas@extundo.com>
70197
70198         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70199         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70200         Add --dry-run for --import.
70201         Let user provided command line parameters override configure.ac
70202         settings.
70203
70204 2004-08-12  Simon Josefsson  <jas@extundo.com>
70205
70206         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70207         as discussed with Paul Eggert in threads rooted at
70208         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70209         and
70210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70211         Before, the test was empty, and relied on ELIDE_CODE in source
70212         code.)
70213         (gl_PREREQ_GETOPT): New macro.
70214         (gl_GETOPT): Use them.
70215
70216 2004-08-12  Simon Josefsson  <jas@extundo.com>
70217
70218         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70219         * lib/getopt_.h: Renamed from getopt.h.
70220
70221 2004-08-12  Simon Josefsson  <jas@extundo.com>
70222
70223         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70224         Change default library name from libfoo to libgnu.
70225         Now, if you have a configure.ac that says:
70226                 gl_SOURCE_BASE(gl)
70227                 gl_M4_BASE(gl/m4)
70228                 gl_MODULES(error getopt etcetera)
70229                 gl_INIT
70230         you can import all you need by running:
70231                 ../gnulib/gnulib-tool --import
70232
70233         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70234         (Makefile.am): Rewrite, use logic from argz.
70235         (Include): Use <getopt.h> instead of "getopt.h".
70236
70237 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70238
70239         * modules/argp (Files): Add m4/unlocked-io.m4.
70240         (Depends-on): Add extensions.
70241
70242 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70243
70244         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70245         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70246         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70247         Check for program_invocation_name, program_invocation_short_name,
70248         flockfile, funlockfile, features.h, _getopt_long_only_r.
70249
70250 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70251
70252         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70253         its complicated substitute.
70254         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70255         and program_invocation_name.
70256         (__argp_basename) [!_LIBC]: Remove; the only use was
70257         replaced by its body.
70258         (__argp_short_program_name): Change condition from
70259         !defined __argp_short_program_name to
70260         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70261         to match argp-namefrob.h.
70262         (__argp_failure): Don't assume strerror_r returns char *.
70263         * lib/argp-parse.c (N_): Define unconditionally.
70264         (argp_default_options): Fill out initializers with 0 to avoid
70265         gcc warnings.
70266
70267 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70268
70269         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70270         getopt1.c.
70271
70272 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70273
70274         Merge from coreutils.
70275
70276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70277
70278         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70279         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70280
70281 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         Merge from coreutils.
70284
70285         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70286         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70287         for Reliant Unix 5.43.
70288
70289         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70290         (union fooround): Use uintmax_t, not long int.
70291         The rest is a merge from libc:
70292         [defined _LIBC]: Include <shlib-compat.h>.
70293         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70294
70295         * lib/settime.c (settime): Recode to avoid warning with
70296         Sun Forte C 6U2.
70297
70298         * lib/strverscmp.c: Convert to UTF-8.
70299
70300 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70301
70302         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70303         m4/uintmax_t.m4.
70304
70305 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70306
70307         * modules/xalloc-die: New file.
70308         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70309
70310         * modules/md5 (Files): Add m4/uint32_t.m4.
70311         * modules/sha1: Renamed from modules/sha.
70312         (Files):
70313         Rename lib/sha.h to lib/sha1.h.
70314         Rename lib/sha.c to lib/sha1.c.
70315         Rename m4/sha.m4 to m4/sha1.m4.
70316         (lib_SOURCES): Likewise.
70317         (configure.ac): Rename gl_SHA to gl_SHA1.
70318         (Include): sha.h -> sha1.h.
70319
70320 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70323         * m4/sha1.m4: Renamed from sha.m4.
70324         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70325
70326 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * lib/obstack.h (obstack_empty_p):
70329         Don't assume that chunk->contents is suitably aligned.
70330         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70331         Likewise. Problem reported by Benno in
70332         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70333
70334         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70335         readable.  This could be improved further but it'd take some work.
70336
70337 2004-08-08  Simon Josefsson  <jas@extundo.com>
70338
70339         * modules/xgethostname (Depends-on): Remove exit and error (not
70340         used).
70341
70342         * modules/getpass-gnu: Add getpass.h.
70343         (Depends-on): Add stdbool.
70344         * modules/getpass: Add getpass.h.
70345
70346 2004-08-08  Simon Josefsson  <jas@extundo.com>
70347
70348         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70349         Check getpass declaration.
70350
70351 2004-08-08  Simon Josefsson  <jas@extundo.com>
70352
70353         * lib/xgethostname.c: Don't include error.h (not used).
70354
70355         * lib/getpass.h: Add.
70356         * lib/getpass.c: Include getpass.h first.
70357
70358 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70359
70360         * lib/xalloc-die.c: New file.
70361         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70362         All uses removed.
70363         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70364         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70365         xalloc-die.c.
70366         (_, N_, xalloc_die): Move to xalloc-die.c.
70367         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70368         so that we needn't mess with xalloc_msg_memory_exhausted.
70369
70370         * lib/sha1.h: Renamed from sha.h.
70371         (SHA1_H): Renamed from _SHA_H.
70372         (sha1_ctx): Renamed from sha_ctx.
70373         (sha1_init_ctx): Renamed from sha_init_ctx.
70374         (sha1_process_block): Renamed from sha_process_block.
70375         (sha1_process_bytes): Renamed from sha_process_bytes.
70376         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70377         (sha1_read_ctx): Renamed from sha_read_ctx.
70378         (sha1_stream): Renamed from sha_stream.
70379         (sha1_buffer): Renamed from sha_buffer.
70380         * lib/sha1.c: Likewise; renamed from sha.c.
70381         Do not include <sys/types.h>.
70382         Include <stddef.h> rather than <stdlib.h>.
70383
70384 2004-08-08  Bruno Haible  <bruno@clisp.org>
70385
70386         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70387         FILESYSTEM_PREFIX_LEN.
70388         * lib/progreloc.c: Likewise.
70389         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70390
70391 2004-08-06  Simon Josefsson  <jas@extundo.com>
70392
70393         * modules/progname (Depends-on): Don't depend on stdbool.
70394
70395 2004-08-06  Simon Josefsson  <jas@extundo.com>
70396
70397         * modules/getsubopt: New file.
70398         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70399         getsubopt.
70400
70401 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         More merge from coreutils.
70404
70405         * m4/utimens.m4, m4/utimecmp.m4: New files.
70406         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70407         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70408         prereq.m4, sha.m4: Import changes from coreutils.
70409
70410 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         More merge from coreutils.
70413         * modules/raise, modules/readtokens0, modules/utimens:
70414         * modules/utimecmp, module/xnanosleep: New files.
70415         * modules/strftime: Add lib/strftime.h.
70416         Change include from <time.h> to "strftime.h".
70417         * modules/yesno: Add lib/yesno.h.
70418         * modules/backupfile: Remove lib/addext.c.
70419         * modules/euidaccess: Add stat-macros.h.
70420         * modules/canonicalize, modules/euidaccess,
70421         modules/filemode, modules/lchown, modules/makepath,
70422         modules/rmdir, modules/stat: Likewise.
70423
70424 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70425
70426         Merge from tar.
70427         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70428         SIZE_MAX is a valid preprocessor constant.
70429         (__argp_basename): Change from "#ifndef _LIBC"
70430         to "#ifndef __argp_short_program_name", so that
70431         we don't compile these functions for tar.
70432
70433         More merges from coreutils.
70434         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70435         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70436         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70437         * lib/addext.c: Remove; no longer needed.
70438         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70439         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70440         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70441         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70442         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70443         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70444         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70445         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70446         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70447         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70448         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70449         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70450         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70451         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70452         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70453         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70454         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70455         Import changes from coreutils.
70456
70457 2004-08-05  Simon Josefsson  <jas@extundo.com>
70458
70459         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70460
70461 2004-08-05  Simon Josefsson  <jas@extundo.com>
70462
70463         * m4/getsubopt.m4: New file.
70464
70465 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         Merge from coreutils.
70468
70469         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70470         * m4/getcwd-path-max.m4: New files.
70471
70472         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70473         FILESYSTEM_PREFIX_LEN ->
70474         FILE_SYSTEM_PREFIX_LEN.
70475         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70476         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70477         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70478         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70479
70480         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70481         prerequisite modules now handle the DOS stuff.
70482         Don't check for unistd.h.
70483
70484 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         Merge from coreutils.
70487
70488         * lib/.gdb-history: Remove; this doesn't belong here.
70489
70490         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70491         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70492         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70493         * lib/getcwd.c: New files.
70494
70495         * lib/dirname.h: Include <stdbool.h>.
70496         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70497         for consistency with POSIX terminology.  All uses changed.
70498         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70499         (strip_trailing_slashes): Use bool for booleans.
70500         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70501
70502         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70503         sometimes returns a positive errno value even when it succeeds.
70504         (print_errno_message) [!LIBC]: Fall back on strerror if
70505         __strerror_r fails.
70506
70507         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70508         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70509         (longest_relative_suffix): New function.
70510         (path_concat): Use it.  Assume first argument is not NULL.
70511         Port to DOS.  Omit redundant separators.
70512         Report an error instead of returning NULL.
70513         Use mempcpy instead of memcpy.
70514         (xpath_concat): Remove: not declared or used.
70515
70516         * lib/same.h: Include <stdbool.h>
70517         (same_name): Return bool, not int.
70518         * lib/same.c (same_name): Likewise.
70519         (errno): Don't declare; we assume C89 or better now.
70520
70521         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70522         if not already defined.
70523
70524         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70525         * lib/dup-safer.c (errno): Likewise.
70526
70527 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70528
70529         Merge from coreutils.
70530         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70531         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70532         * modules/path-concat: Don't depend on strdup.
70533
70534 2004-08-03  Simon Josefsson  <jas@extundo.com>
70535
70536         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70537         * lib/progname.h: Don't include stdbool.h.
70538
70539 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70540
70541         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
70542         * MODULES.html.sh (func_all_modules): Remove fatal.
70543
70544 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
70547
70548 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70549
70550         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
70551         working.
70552
70553 2004-08-02  Simon Josefsson  <jas@extundo.com>
70554
70555         * lib/getsubopt.h: New file, with comments from Bruno Haible.
70556         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
70557         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
70558
70559 2004-08-01  Simon Josefsson  <jas@extundo.com>
70560
70561         * lib/xgetdomainname.c: Include stdlib.h, for free().
70562
70563 2004-07-19  Bruno Haible  <bruno@clisp.org>
70564
70565         * MODULES.html.sh (func_all_modules): Add dummy.
70566
70567 2004-07-16  Simon Josefsson  <jas@extundo.com>
70568
70569         * modules/dummy: New file.
70570
70571 2004-07-16  Simon Josefsson  <jas@extundo.com>
70572
70573         * lib/dummy.c: New file.
70574
70575 2004-07-16  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/backupfile.h: Add extern "C" for C++.
70578         * lib/closeout.h: Likewise.
70579         * lib/copy-file.h: Likewise.
70580         * lib/findprog.h: Likewise.
70581         * lib/full-write.h: Likewise.
70582         * lib/pathname.h: Likewise.
70583         * lib/progname.h: Likewise.
70584         * lib/stpcpy.h: Likewise.
70585         * lib/stpncpy.h: Likewise.
70586         * lib/strcase.h: Likewise.
70587         * lib/strstr.h: Likewise.
70588         * lib/xalloc.h: Likewise.
70589
70590         * lib/mbswidth.h: Add extern "C" for C++.
70591         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
70592
70593 2004-07-13  Robert Millan  <robertmh@gnu.org>
70594
70595         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
70596
70597 2004-07-09  Simon Josefsson  <jas@extundo.com>
70598
70599         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
70600         failed without this.)
70601
70602 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70603
70604         * modules/chown (Files): Add lib/fchown-stub.c, since
70605         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
70606
70607 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70608
70609         * lib/fchown-stub.c: New file.
70610
70611 2004-06-24  Jim Meyering  <jim@meyering.net>
70612
70613         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
70614
70615 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70616
70617         * modules/argz: Omit "#include".
70618
70619         * MODULES.html.sh (func_all_modules): Add calloc, to match
70620         2004-06-01 addition of calloc module.
70621
70622 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70623
70624         * m4/argz.m4: New file, which is autoupdated from libtool.
70625
70626 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
70629         libtool.
70630
70631 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
70632
70633         * config/srclist-update: Don't insist on "USA." before the
70634         close-comment, as libtool omits the period and puts the */ on a
70635         separate line.
70636         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
70637         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
70638
70639 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
70640
70641         * modules/argz: New file.
70642         * MODULES.html.sh (func_all_modules): Add argz.
70643
70644 2004-06-12  Jim Meyering  <jim@meyering.net>
70645         and  Paul Eggert  <eggert@cs.ucla.edu>
70646
70647         * modules/hash (Files): Add lib/xalloc.h.
70648         * modules/pipe (Depends-on): Add wait-process.
70649         * modules/stat (Depends-on): Add xalloc.
70650         * modules/userspec (Files): Add lib/userspec.h.
70651         * modules/xstrto
70652
70653         Upgrade from gettext-0.13.
70654         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
70655         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
70656         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
70657
70658 2004-06-10  Jim Meyering  <jim@meyering.net>
70659
70660         * lib/calloc.c: New file.
70661
70662 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70663
70664         * lib/getdate.y (yylex): Allow space between sign and number.
70665         Problem reported by Dan Jacobson.
70666
70667 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         Merge from coreutils CVS.
70670
70671         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
70672         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
70673         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
70674         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
70675         xstrtol.m4: Fix copyright date and/or serial number.
70676
70677         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
70678         See if we need an fchown replacement.
70679         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
70680         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
70681         and use the replacement function if we detect either defect.
70682
70683         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
70684         gl_UTIMECMP.
70685
70686 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
70687         and  Jim Meyering  <jim@meyering.net>
70688
70689         Merge from coreutils CVS.
70690
70691         * lib/stat-macros.h: New file, with contents from file-type.h
70692         and coreutils' system.h.
70693         * lib/file-type.c: Include "stat-macros.h".
70694         * lib/file-type.h (file_type): Move all macro definitions to new file,
70695         stat-macros.h.
70696
70697         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
70698         Wrap old code with this conditional.
70699         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
70700         function that does not dereference symlinks.
70701         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
70702
70703         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
70704         dependency problems.
70705         (xreadlink): Accept new arg SIZE, for efficiency.
70706         All decls and uses changed.
70707         * lib/xreadlink.h: Include <stddef.h>, for size_t.
70708
70709         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
70710         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
70711
70712         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
70713         sysexits.h.
70714
70715 2004-06-01  Jim Meyering  <jim@meyering.net>
70716
70717         * m4/calloc.m4: New file.
70718
70719 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
70722         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
70723         Also, fix a typo in a diagnostic.
70724
70725 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
70728         or AC_FUNC_REALLOC.
70729
70730 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
70733         macros to be defined.
70734         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
70735         the allocator returns NULL because the requested size is zero.
70736
70737 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
70738
70739         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
70740         var.  Add comment explaining why libc still defines it.  This
70741         merges the following patch from glibc:
70742         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
70743
70744 2004-05-20  Andreas Schwab  <schwab@suse.de>
70745
70746         * m4/free.m4: Replace free if it not known to work, not the other
70747         way round.
70748
70749 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70750
70751         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
70752         present in glibc since revision 1.1 of this file.
70753         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
70754         obstack_alignment_mask, obstack_alloc, obstack_base,
70755         obstack_blank, obstack_blank_fast, obstack_chunk_size,
70756         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
70757         obstack_grow0, obstack_init, obstack_int_grow,
70758         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
70759         obstack_next_free, obstack_object_size, obstack_ptr_grow,
70760         obstack_ptr_grow_fast, obstack_room): Remove declarations of
70761         nonexistent functions.
70762
70763 2004-05-18  Karl Berry  <karl@gnu.org>
70764
70765         * config/srclist.txt: break link for vasnprintf.c.
70766
70767 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70768
70769         Port obstack to the AS/400, where pointers are 16 bytes wide and
70770         you cannot cast an integer to a valid pointer.  This patch is
70771         currently waiting to be integrated into glibc; see
70772         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
70773
70774         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
70775         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
70776         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
70777         (struct obstack): temp member is now a union of a pointer and
70778         an integer, instead of an integer.  All integer uses changed.
70779         This does not affect the physical layout of struct obstack,
70780         except on hosts (like the AS/400) where the size or alignment of
70781         void * is greater than that of ptrdiff_t.
70782         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
70783         __STDC__)]: Store temporary in pointer member of union, not
70784         integer member.
70785         * lib/obstack.c: Include <stddef.h>, for offsetof.
70786         (struct fooalign): Remove; it doesn't need a name.
70787         (union fooround): Change double to long double, and add void *.
70788         (DEFAULT_ALIGNMENT): Use offsetof to compute.
70789         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
70790         not a macro.  Hence the values are always int; so remove all
70791         casts-to-int in uses.
70792
70793 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
70796         we can get this patch merged into glibc.
70797
70798 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70799             Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         * m4/argp: Depend on alloca.
70802
70803 2004-05-17  Derek R. Price  <derek@ximbiot.com>
70804             Paul Eggert  <eggert@cs.ucla.edu>
70805
70806         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
70807         freecoding.
70808
70809 2004-05-17  Bruno Haible  <bruno@clisp.org>
70810
70811         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
70812         precision that consists of a '.' followed by an empty digit string.
70813         Patch by Tor Lillqvist <tml@iki.fi>.
70814
70815 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70818         for backward compatibility with older code.  We need our own
70819         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70820         it under some other name, and our alloca.h will define it.
70821
70822 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70823             Derek Price  <derek@ximbiot.com>
70824
70825         * lib/alloca.c: Include <alloca.h>, to get our interface.
70826         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70827         include <alloca.h> first.  Use C89 prototype for alloca; this
70828         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70829         Use #elif for simplicity, since we can assume C89 now.
70830         Don't try to source the system alloca.h since it will not be found
70831         and to prevent recursively including its replacement.
70832         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70833         * lib/regex.c: Likewise.
70834
70835 2004-05-16  Derek Price  <derek@ximbiot.com>
70836             Paul Eggert  <eggert@cs.ucla.edu>
70837
70838         getline cleanup.  This changes the getndelim2 API: both order of
70839         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70840         no delimiter).
70841
70842         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70843         interface does that.
70844         (getline): Always use getdelim, so that we don't have two
70845         copies of this code.
70846         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70847         if available.
70848         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70849         (GETNDELIM2_MAXIMUM): New macro.
70850         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70851         instead of the old practice of delim2==0.  All callers changed.
70852         Return -1 on overflow, instead of returning junk.
70853         Do not set *linesize unless allocation succeeds.
70854         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70855         that we include sys/types.h.
70856         * lib/getnline.h: Likewise.
70857         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70858         (getndelim2): Reorder arguments.
70859         * lib/getnline.c (getnline, getndelim):
70860         Don't discard the NMAX argument.
70861         (getnline): Invoke getndelim, to avoid code duplication.
70862         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70863         of (size_t) -1 by callers of the getnline family.
70864
70865 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70866
70867         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70868         Check for gettimeofday.
70869         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70870         Check for settimeofday, stime.
70871
70872 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70873
70874         * lib/nanosleep.c (suspended): Change its type from int to
70875         sig_atomic_t volatile.
70876         (first_call): Make it private to rpl_nanosleep, and have it
70877         be zero initially as that's a bit faster.
70878         (my_usleep): Round up fractional times instead of truncating them,
70879         as this is the usual meaning for 'sleep'.
70880
70881         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70882         doesn't work.
70883         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70884         (ENOSYS): Define if not defined.
70885         (settime): Fall back on stime if it exists and settimeofday fails.
70886         But don't bother with fallbacks if a method fails with errno == EPERM.
70887
70888 2004-05-11  Jim Meyering  <jim@meyering.net>
70889
70890         Prior to this change, the save_cwd caller required read access to the
70891         current directory on most systems (ones with the fchdir function).
70892
70893         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70894         fails, try write-only, and finally, resort to using xgetcwd.
70895
70896 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70897
70898         * lib/obstack.c, obstack.h: Import changes from libc.
70899
70900 2004-04-28  Bruno Haible  <bruno@clisp.org>
70901
70902         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70903         also implicitly appends .exe to executables.
70904         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70905         accepts Windows pathnames.
70906         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70907         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70908         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70909         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70910         Reported by Derek Robert Price <derek@ximbiot.com>.
70911
70912 2004-04-21  Karl Berry  <karl@gnu.org>
70913
70914         * config/srclist.txt (localcharset.c): break sync.
70915
70916 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70917
70918         * m4/host-os.m4: Add a copyright notice.
70919
70920 2004-04-20  Jim Meyering  <jim@meyering.net>
70921
70922         Change UTILS_ to gl_ in AC_DEFINE'd names.
70923         Change utils_- and jm_-prefixed variables, too.
70924         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70925         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70926         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70927
70928         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70929         Don't emit trailing blanks.
70930         Also rename jm_-prefixed variables to have gl_ prefix.
70931
70932         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70933         Also rename jm_-prefixed variables to have gl_ prefix.
70934
70935         * m4/jm-macros.m4: Reflect the renamings.
70936         * m4/prereq.m4: Likewise.
70937
70938 2004-04-20  Jim Meyering  <jim@meyering.net>
70939
70940         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70941         memory.
70942
70943 2004-04-20  Jim Meyering  <jim@meyering.net>
70944             Bruno Haible  <bruno@clisp.org>
70945
70946         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70947         memory when realloc fails.
70948
70949 2004-04-19  Jim Meyering  <jim@meyering.net>
70950
70951         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70952         now that readutmp.c may call `free (0)'.
70953
70954 2004-04-19  Bruno Haible  <bruno@clisp.org>
70955
70956         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70957         * m4/inttypes_h.m4: Likewise.
70958         * m4/stdint_h.m4: Likewise.
70959         * m4/intmax_t.m4: Likewise.
70960         * m4/uintmax_t.m4: Likewise.
70961
70962 2004-04-18  Jim Meyering  <jim@meyering.net>
70963
70964         * m4/prereq.m4: Don't forbid jm_ prefix.
70965
70966         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70967         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70968         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70969         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70970         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70971         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70972         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70973         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70974         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70975         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70976         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70977         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70978         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70979         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70980         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70981         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70982         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70983         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70984         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70985
70986 2004-04-18  Jim Meyering  <jim@meyering.net>
70987
70988         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70989         failure, don't leak memory and do call END_UTMP_ENT.
70990
70991 2004-04-16  Jim Meyering  <jim@meyering.net>
70992
70993         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70994         coreutils' stat program.
70995         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70996
70997 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70998
70999         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71000         C89.
71001         (CHAR_BIT): Remove, since we assume C89.
71002         Include <stdint.h> if available, as per current Autoconf CVS advice.
71003
71004 2004-03-31  Jim Meyering  <jim@meyering.net>
71005
71006         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71007         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71008         * m4/xalloc.m4: Likewise.
71009
71010 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71011
71012         Merge from coreutils.
71013
71014         * m4/inttostr.m4: New file.
71015         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71016         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71017         Require gl_CLOCK_TIME.
71018         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71019
71020 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71021
71022         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71023         not bool, to be more consistent with Unix conventions.
71024         Suggested by Bruno Haible.
71025
71026         Merge from coreutils.
71027
71028         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71029         * lib/umaxtostr.c: New files.
71030
71031         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71032         the usual <time.h> dance.
71033         (get_date): Change signature to support fractional time stamps.
71034         All callers changed.
71035         * lib/getdate.y: Include "getdate.h" first, as we can now
71036         assume C89 and don't need to worry about 'const'.
71037         Similarly, include "unlocked-io.h" near start, not in middle.
71038         Include <limits.h>.
71039         (textint.value): Use long int rather than int.
71040         (textint.digits): Use size_t rather than int.
71041         (BILLION, LOG10_BILLION): New constants.
71042         (parser_control): New member rel_ns.  Members day_ordinal,
71043         time_zone, month, day, hour, minutes, rel_year, rel_month,
71044         rel_day, rel_hour, rel_minutes, rel_seconds
71045         are now long int, not int.  Member seconds is now struct timespec,
71046         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71047         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71048         not int.
71049         (%union.intval): Now long int, not int.
71050         New member timespec.
71051         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71052         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71053         (spec): Now is a timespec or an item list.
71054         (timespec, items): New nonterminals.
71055         (time, rel, relunit, number, get_date):
71056         Add support for fractional seconds.
71057         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71058         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71059         (to_hour): First arg is now long int, not int.
71060         (to_year): Returns long int, not int.
71061         Don't treat year -70 like 70.
71062         (tm_diff): Returns long int, not int.
71063         (lookup_word): Use bool instead of int when appropriate.
71064         (yylex): Use size_t for count, not int.
71065         Detect overflow when parsing large integer constants.
71066         Add support for fractions.
71067         (get_date): Make pointers 'const' if possible.
71068         Use more-portable code to detect integer overflow.
71069         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71070         Don't use ctime; it's not reliable if the year has >4 digits.
71071
71072         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71073         This is for compatibility with BSD.
71074
71075         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71076         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71077         From coreutils' system.h.
71078
71079         * lib/userspec.c: Don't include "posixver.h".
71080         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71081         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71082         compatible extension.  Simplify code by removing a boolean int
71083         that was always nonzero if a string was nonnull.
71084
71085 2004-03-30  Jim Meyering  <jim@meyering.net>
71086
71087         Merge from coreutils.
71088
71089         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71090         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71091         on some systems one must include <grp.h> before it.
71092         Reported by Christian Krackowizer.
71093
71094 2004-03-30  Jim Meyering  <jim@meyering.net>
71095
71096         Merge from coreutils.
71097
71098         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71099
71100         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71101         an empty input stream.
71102
71103         * lib/readtokens.c: Include <stdbool.h>.
71104         (readtoken): Use `size_t' rather than int/long.
71105         All callers adjusted.
71106         Use `bool' rather than `int' where appropriate.
71107         Use memset rather than an explicit loop.
71108         Use x2nrealloc rather than xrealloc.
71109         Allow the use of `\0' as a delimiter.
71110         (readtokens): Likewise.
71111         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71112
71113 2004-03-30  Jim Meyering  <jim@meyering.net>
71114
71115         * m4/realloc.m4: Remove file, since now it does no more than
71116         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71117         the `configure.ac' section of module/realloc.
71118         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71119
71120 2004-03-30  Bruno Haible  <bruno@clisp.org>
71121
71122         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71123         nonnull.
71124
71125 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71126
71127         Merge changes to getloadavg.c from coreutils and Emacs.
71128
71129         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71130         Define to an expression, not to the empty string.
71131         Include cloexec.h and xalloc.h.
71132         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71133         Use set_cloexec_flag rather than rolling our own.
71134         * lib/cloexec.c, lib/cloexec.h: New files.
71135
71136 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71137
71138         * m4/cloexec.m4: New file.
71139
71140 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71141
71142         * lib/getopt.h: Sync with libc CVS.
71143
71144 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71145             Bruno Haible  <bruno@clisp.org>
71146
71147         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71148         mbswidth.
71149
71150 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71151             Bruno Haible  <bruno@clisp.org>
71152
71153         * lib/mbswidth.h: Include <wchar.h> only if
71154         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71155         <wchar.h>.
71156         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71157
71158 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71159
71160         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71161         Sync with libc CVS.
71162         * lib/getopt_int.h: New file, also synced from libc.
71163
71164 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71165
71166         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71167         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71168         Bring back getopt.c, getopt.h, getopt1.c.
71169
71170 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71171
71172         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71173         All uses changed.  Check for sa_sigaction member; this fixes
71174         a bug first reported by Jason Andrade in
71175         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71176
71177 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71178
71179         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71180         '#if' expressions.  Unlike the code it replaces, it does not
71181         depend on (defined _SC_PAGESIZE).  However, it does depend on
71182         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71183         first reported by Jason Andrade in
71184         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71185
71186 2004-02-25  Simon Josefsson  <jas@extundo.com>
71187
71188         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71189
71190 2004-02-25  Simon Josefsson  <jas@extundo.com>
71191
71192         * lib/strdup.h: New file.
71193         * lib/strdup.c: Include it.
71194         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71195         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71196
71197 2004-02-23  Karl Berry  <karl@gnu.org>
71198
71199         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71200         (from fencepost.gnu.org:/gd/gnuorg).
71201
71202 2004-02-23  Karl Berry  <karl@gnu.org>
71203
71204         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71205         * config/srclist.txt: add maintain/standards documents.
71206
71207 2004-02-18  Bruno Haible  <bruno@clisp.org>
71208
71209         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71210         Reported by Derek Robert Price <derek@ximbiot.com>.
71211
71212 2004-02-16  Karl Berry  <karl@gnu.org>
71213
71214         * config/mkinstalldirs, install-sh: update from automake.
71215
71216 2004-02-06  Karl Berry  <karl@gnu.org>
71217
71218         * m4/po.m4: update from gettext 0.14.1.
71219
71220 2004-02-06  Karl Berry  <karl@gnu.org>
71221
71222         * lib/config.charset: update from gettext 0.14.1.
71223
71224 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71225
71226         Add comments and code, prompted by suggestions from Bruno Haible
71227         for sh-quote.
71228         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71229         describing the enum quoting_style values.
71230         * lib/quotearg.c (quotearg_alloc): New function.
71231         (quotearg_buffer_restyled): Treat lone { and } as special.
71232         Treat = as special.  Work around bug with older shells
71233         that "see" a '\' that is really the 2nd byte of a multibyte char.
71234         Quote empty string with shell_quoting_style.
71235
71236 2004-02-03  Bruno Haible  <bruno@clisp.org>
71237
71238         * m4/pipe.m4: New file, from GNU gettext.
71239
71240 2004-02-03  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/pipe.h: New file, from GNU gettext.
71243         * lib/pipe.c: New file, from GNU gettext.
71244
71245 2004-01-27  Bruno Haible  <bruno@clisp.org>
71246
71247         * m4/execute.m4: New file, from GNU gettext.
71248
71249 2004-01-27  Bruno Haible  <bruno@clisp.org>
71250
71251         * lib/execute.h: New file, from GNU gettext.
71252         * lib/execute.c: New file, from GNU gettext.
71253         * lib/w32spawn.h: New file, from GNU gettext.
71254
71255 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71256
71257         Merge from diffutils.
71258
71259         * lib/file-type.c (file_type): Add typed memory objects.
71260         * lib/file-type.h (S_TYPEISTMO): New macro.
71261
71262         * lib/c-stack.h (c_stack_action): Remove argv argument.
71263         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71264         (die): Don't calculate message unless segv_action returns.
71265         (get_stack_location, min_address_from_argv, max_address_from_argv,
71266         volatile stack_base, volatile_stack_size): Remove.
71267         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71268         that every segmentation violation is a stack overflow.  (Ouch!)
71269         See Debian bug 136249 (still outstanding) for more info about why
71270         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71271
71272 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71273
71274         Exit-status fix from coreutils.
71275
71276         Use exit_failure consistently in place of EXIT_FAILURE,
71277         so that program exit statuses are consistent on failure.
71278
71279         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71280         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71281         * lib/argmatch.h: Comment fix to match the above.
71282         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71283         Now a macro referring to exit_failure, instead of a separate
71284         variable.  Include "exitfail.h" to get it.
71285         * lib/xstrtol.h: Include "exitfail.h".
71286         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71287
71288         * lib/long-options.c (parse_long_options): Use prototype
71289         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71290         for clarity.
71291
71292 2004-01-21  Jim Meyering  <jim@meyering.net>
71293
71294         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71295         so as not to conflict with a different-sized __mktime_internal
71296         function in GNU libc.
71297         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71298         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71299
71300 2004-01-20  Karl Berry  <karl@gnu.org>
71301
71302         * config/config.guess: update from config.
71303
71304         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71305
71306 2004-01-20  Bruno Haible  <bruno@clisp.org>
71307
71308         Safer stack allocation.
71309         * lib/setenv.c: Include allocsa.h.
71310         (alloca): Remove fallback definition.
71311         (freea): Remove macro.
71312         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71313         instead of freea.
71314
71315 2004-01-20  Bruno Haible  <bruno@clisp.org>
71316
71317         * m4/eealloc.m4: New file, from GNU gettext.
71318
71319 2004-01-20  Bruno Haible  <bruno@clisp.org>
71320
71321         * m4/allocsa.m4: New file, from GNU gettext.
71322
71323 2004-01-20  Bruno Haible  <bruno@clisp.org>
71324
71325         * lib/xallocsa.h: New file, from GNU gettext.
71326         * lib/xallocsa.c: New file, from GNU gettext.
71327
71328 2004-01-20  Bruno Haible  <bruno@clisp.org>
71329
71330         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71331
71332 2004-01-20  Bruno Haible  <bruno@clisp.org>
71333
71334         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71335         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71336         specially.
71337
71338 2004-01-20  Bruno Haible  <bruno@clisp.org>
71339
71340         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71341         patch.
71342
71343 2004-01-20  Bruno Haible  <bruno@clisp.org>
71344
71345         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71346
71347 2004-01-20  Bruno Haible  <bruno@clisp.org>
71348
71349         * lib/eealloc.h: New file.
71350
71351 2004-01-20  Bruno Haible  <bruno@clisp.org>
71352
71353         * lib/binary-io.h: Avoid warnings on Cygwin.
71354
71355 2004-01-20  Bruno Haible  <bruno@clisp.org>
71356
71357         * lib/allocsa.h: New file, from GNU gettext.
71358         * lib/allocsa.c: New file, from GNU gettext.
71359
71360 2004-01-18  Karl Berry  <karl@gnu.org>
71361
71362         * doc/gpl.texi, doc/lgpl.texi: new files.
71363
71364 2004-01-18  Karl Berry  <karl@gnu.org>
71365
71366         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71367         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71368
71369 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71370
71371         Merge from coreutils.
71372
71373         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71374         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71375         (gl_DEFAULT_POSIX2_VERSION): Move
71376         the documentation from 'configure' into 'config.hin',
71377         so that 'configure --help' isn't burdened by it and
71378         we don't have to worry about its formatting there.
71379         Reword the documentation so that it's more succinct
71380         and can be run together into a single paragraph.
71381         * m4/same.m4 (gl_SAME): Check for pathconf.
71382
71383 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71384
71385         Merge from coreutils.
71386
71387         * lib/posixver.c: Include posixver.h.
71388
71389         * lib/same.c: Include <stdbool.h>, <limits.h>.
71390         (_POSIX_NAME_MAX): Define if not defined.
71391         (MIN): New macro.
71392         (same_name): If file names are silently truncated, report
71393         that the file names are the same if they are the same after
71394         the silent truncation.
71395
71396         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71397         conversion function.
71398         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71399         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71400         longer needed.
71401
71402 2004-01-15  Jim Meyering  <jim@meyering.net>
71403
71404         Merge from coreutils.
71405
71406         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71407         if no library is required.
71408         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71409         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71410         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71411         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71412         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71413         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71414         value, $ac_cv_search_crypt, if it's "none required".
71415         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71416         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71417         not gl_FUNC_GETLOADAVG.
71418         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71419         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71420
71421 2004-01-15  Jim Meyering  <jim@meyering.net>
71422
71423         Merge from coreutils.
71424
71425         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71426         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71427         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71428
71429         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71430         optional configure-time default.
71431
71432         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71433
71434         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71435
71436 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71437
71438         Merge from coreutils.
71439
71440         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71441         value, $ac_cv_search_nanosleep, if it's "none required".
71442
71443 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71444
71445         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71446         with like-named macro in fnmatch.c.
71447         (EXT): Use an internal constant instead.
71448
71449         Merge fnmatch patches from glibc.
71450         * lib/fnmatch.c (mbsinit): Remove define.
71451         Add libc_hidden_ver (__fnmatch, fnmatch).
71452         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71453         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71454
71455 2004-01-14  Karl Berry  <karl@gnu.org>
71456
71457         * config/install-sh: update from automake.
71458
71459 2004-01-13  Karl Berry  <karl@gnu.org>
71460
71461         * config/install-sh: update from automake.
71462
71463 2004-01-09  Karl Berry  <karl@gnu.org>
71464
71465         * config/install-sh: update from automake.
71466
71467 2004-01-05  Karl Berry  <karl@gnu.org>
71468
71469         * config/config.{sub,guess}: update from config.
71470
71471 2003-12-31  Karl Berry  <karl@gnu.org>
71472
71473         * config/depcomp: update from automake.
71474
71475 2003-12-14  Karl Berry  <karl@gnu.org>
71476
71477         * lib/config.charset: update from gettext-runtime.
71478
71479 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71480
71481         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71482         Bug reported by Alfred M. Szmidt.
71483
71484 2003-12-03  Bruno Haible  <bruno@clisp.org>
71485
71486         * m4/gettext.m4: Upgrade from gettext-0.13.
71487         * m4/po.m4: Upgrade from gettext-0.13.
71488         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71489         * m4/intmax.m4: New file, from gettext-0.13.
71490         * m4/printf-posix.m4: New file, from gettext-0.13.
71491
71492 2003-11-29  Karl Berry  <karl@gnu.org>
71493
71494         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71495
71496 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71497             Bruno Haible  <bruno@clisp.org>
71498
71499         * lib/printf-parse.h: Don't include sys/types.h.
71500         (ARG_NONE): New macro.
71501         (char_directive): Change type of *arg_index fields to size_t.
71502         * lib/printf-parse.c: Don't include sys/types.h.
71503         (SSIZE_MAX): Remove macro.
71504         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71505         Remove unnecessary overflow check.
71506         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71507         fields.
71508
71509 2003-11-25  Bruno Haible  <bruno@clisp.org>
71510
71511         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71512
71513 2003-11-25  Bruno Haible  <bruno@clisp.org>
71514
71515         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71516         gt_TYPE_SSIZE_T.
71517
71518 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71519
71520         * modules/alloca: Remove dependency on xalloc.
71521
71522 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71523
71524         * lib/alloca.c: Remove dependency on xalloc module.
71525         (xalloc_die): Remove.
71526         (memory_full) [!defined emacs]: New macro.
71527         [!defined emacs]: Don't include xalloc.h.
71528         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71529         address arithmetic overflows.  Change datatypes a bit to avoid
71530         unnecessary casts.
71531
71532 2003-11-22  Jim Meyering  <jim@meyering.net>
71533
71534         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71535         s/size/size_t/.
71536
71537 2003-11-21  Karl Berry  <karl@gnu.org>
71538
71539         * config/config.{sub,guess}: update from config.
71540
71541 2003-11-18  Karl Berry  <karl@gnu.org>
71542
71543         * config/config.{sub,guess}: update from config.
71544
71545         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
71546
71547 2003-11-17  Paul Eggert  <eggert@twinsun.com>
71548
71549         * README: Mention that S+T cannot overflow if S is the size of
71550         an existing object and T is sufficiently small.
71551
71552 2003-11-17  Jim Meyering  <jim@meyering.net>
71553
71554         On systems without utime and without a utimes function capable of
71555         dealing with a NULL struct utimbuf* argument, this utime replacement
71556         could -- in unusual circumstances -- leak a file descriptor.
71557         * lib/utime.c: Include <unistd.h> and <errno.h>.
71558         (utime_null): Be sure to close `fd' and to preserve errno.
71559         Reported by Geoff Collyer via Arnold Robbins.
71560
71561 2003-11-17  Bruno Haible  <bruno@clisp.org>
71562
71563         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
71564         (Depends-on): Add xsize.
71565
71566 2003-11-17  Bruno Haible  <bruno@clisp.org>
71567
71568         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
71569
71570 2003-11-17  Bruno Haible  <bruno@clisp.org>
71571
71572         * lib/vasnprintf.c (alloca): Remove fallback definition.
71573         (freea): Remove definition.
71574         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
71575         Reported by Paul Eggert.
71576
71577 2003-11-16  Paul Eggert  <eggert@twinsun.com>
71578             Bruno Haible  <bruno@clisp.org>
71579
71580         Protect against address arithmetic overflow.
71581         * lib/printf-args.h: Include stddef.h.
71582         (arguments): Change type of field 'count' to size_t.
71583         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
71584         'unsigned int' where appropriate.
71585         * lib/printf-parse.h: Include sys/types.h.
71586         (char_directive): Change type of *arg_index fields to ssize_t.
71587         (char_directives): Change type of fields 'count', max_*_length to
71588         size_t.
71589         * lib/printf-parse.c: Include sys/types.h and xsize.h.
71590         (SSIZE_MAX): Define fallback value.
71591         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
71592         instead of 'int' where appropriate. Check a_allocated, d_allocated
71593         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
71594         * lib/vasnprintf.c: Include xsize.h.
71595         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
71596         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
71597         overflow. Avoid wraparound when converting a width or precision from
71598         decimal to binary.
71599
71600 2003-11-16  Bruno Haible  <bruno@clisp.org>
71601
71602         Update from GNU gettext.
71603         * lib/printf-parse.c: Generalize to it can be compiled for wide
71604         strings.
71605         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
71606         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
71607         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
71608         SNPRINTF): New macros.
71609         Don't include <alloca.h> if the file is used inside libintl.
71610         (local_wcslen): New function, for Solaris 2.5.1.
71611         (VASNPRINTF): Use it instead of wcslen.
71612
71613 2003-11-16  Bruno Haible  <bruno@clisp.org>
71614
71615         * lib/xsize.h (xmax): New function.
71616         (xsum, xsum3, xsum4): Declare as "pure" functions.
71617
71618 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71619
71620         * modules/xalloc (Files): Undo latest change, since xalloc.h
71621         no longer needs SIZE_MAX or PTRDIFF_MAX.
71622
71623 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71624
71625         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
71626         gl_PTRDIFF_MAX.
71627
71628 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71629
71630         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
71631         "return", to pacify some unknown compiler.  Problem reported
71632         by Joerg Schilling.
71633
71634 2003-11-12  Paul Eggert  <eggert@twinsun.com>
71635
71636         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
71637         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
71638         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
71639         heuristic is just as accurate as far as we know, and it removes a
71640         dependency on size_max.m4 and ptrdiff_max.m4.
71641
71642 2003-11-11  Bruno Haible  <bruno@clisp.org>
71643
71644         * modules/xsize (Files): Add m4/size_max.m4.
71645         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
71646
71647 2003-11-11  Bruno Haible  <bruno@clisp.org>
71648
71649         * m4/size_max.m4: New file.
71650         * m4/ptrdiff_max.m4: New file.
71651         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
71652         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
71653         (gl_XALLOC): Invoke it.
71654
71655 2003-11-11  Bruno Haible  <bruno@clisp.org>
71656
71657         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
71658         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
71659         defined.
71660
71661 2003-11-10  Paul Eggert  <eggert@twinsun.com>
71662
71663         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
71664         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
71665         rejected some allocations of exactly SIZE_MAX - 2 bytes.
71666         From Bruno Haible.
71667         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
71668         not (size_t) -1, since it's defined here.
71669
71670 2003-11-09  Karl Berry  <karl@gnu.org>
71671
71672         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
71673
71674 2003-11-06  Paul Eggert  <eggert@twinsun.com>
71675
71676         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
71677         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
71678         Reject sizes of exactly SIZE_MAX bytes.
71679         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
71680         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
71681
71682 2003-11-05  Bruno Haible  <bruno@clisp.org>
71683
71684         * lib/xsize.h: Include limits.h, to avoid a possible collision with
71685         SIZE_MAX defined in <limits.h> on Solaris.
71686
71687 2003-11-04  Jim Meyering  <jim@meyering.net>
71688
71689         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
71690         variable names, rather than @VAR@.
71691         * modules/poll: Likewise.
71692
71693 2003-11-04  Bruno Haible  <bruno@clisp.org>
71694
71695         * modules/xsize: New file.
71696         * modules/linebreak: Depend on xsize.
71697         * MODULES.html.sh (func_all_modules): Add xsize.
71698
71699 2003-11-04  Bruno Haible  <bruno@clisp.org>
71700
71701         * m4/xsize.m4: New file.
71702
71703 2003-11-04  Bruno Haible  <bruno@clisp.org>
71704
71705         * lib/xsize.h: New file.
71706         * lib/linebreak.c: Include xsize.h.
71707         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
71708         argument for overflow.
71709         Suggested by Paul Eggert.
71710
71711 2003-11-03  Karl Berry  <karl@gnu.org>
71712
71713         * config/config.{guess,sub}: update from config.
71714
71715 2003-11-03  Jim Meyering  <jim@meyering.net>
71716
71717         * modules/userspec (lib_SOURCES): Add userspec.h.
71718         (Include): Add "userspec.h".
71719         Improve description.
71720
71721 2003-11-03  Jim Meyering  <jim@meyering.net>
71722
71723         * lib/userspec.c: Include "userspec.h".
71724         * lib/userspec.h: New file.
71725
71726 2003-11-03  Bruno Haible  <bruno@clisp.org>
71727
71728         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
71729
71730 2003-11-03  Bruno Haible  <bruno@clisp.org>
71731
71732         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
71733         available, to avoid (extremely rare) race condition.
71734         Suggested by Paul Eggert.
71735
71736 2003-11-02  Karl Berry  <karl@gnu.org>
71737
71738         * config/srclist.txt (vasprintf.c): sync broken, sigh.
71739
71740 2003-10-31  Paul Eggert  <eggert@twinsun.com>
71741
71742         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
71743         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
71744         (read_filesystem_list): Set and use me_type_malloced.
71745         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
71746         whatever the type happens to be), for brevity and consistency.
71747         Check for size calculation overflow on Alphas running OSF/1.
71748
71749 2003-10-31  Jim Meyering  <jim@meyering.net>
71750
71751         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
71752
71753         * lib/linebuffer.c: Include <string.h> for declaration of memset.
71754
71755 2003-10-30  Paul Eggert  <eggert@twinsun.com>
71756             Bruno Haible  <bruno@clisp.org>
71757
71758         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
71759         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
71760
71761 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71762
71763         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
71764         netbsd*-gnu*.  Suggested by Robert Millan.
71765
71766 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71767
71768         * modules/group-member: Depend on stdbool.
71769
71770 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71771
71772         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
71773
71774 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71775
71776         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
71777         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
71778         after the 'gnu' in these cases.  This fixes some bugs in the
71779         previous change, and is based on suggestions by Robert Millan.
71780
71781 2003-10-29  Paul Eggert  <eggert@twinsun.com>
71782
71783         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
71784         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
71785         no longer needed.
71786         * lib/quotearg.c (quotearg_n_options): Use it.
71787         * lib/group-member.c: Include <stdbool.h>.
71788         (free_group_info): Arg is now const *; don't free arg.
71789         (get_group_info): Now returns bool and accepts struct group_info *,
71790         rather than returning a malloc'ed struct group_info *.
71791         All uses changed.  Check for overflow in internal size calculation.
71792
71793         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
71794         rather than xmalloc/xrealloc.
71795         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
71796         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
71797         conformance bug: the old code used a pointer after freeing the
71798         storage that it addressed.
71799         * lib/hash.c (hash_initialize): Simplify the code by using
71800         xalloc_oversized rather than doing it by hand.
71801         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
71802         the buffer preserved.  Use free and xmalloc instead.
71803         * lib/quotearg.c (quotearg_n_options): Likewise.
71804         Use a simpler test for size overflow.  Don't use xalloc_oversized
71805         because unsigned int might be wider than size_t (!); this suggests
71806         that we should switch from unsigned int to size_t for slot numbers.
71807
71808 2003-10-28  Paul Eggert  <eggert@twinsun.com>
71809
71810         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
71811         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
71812         NetBSD kernels.  Requested by Richard Stallman.
71813
71814 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71815
71816         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71817         to allocate the returned structure.  Do not allocate a subarray,
71818         as x2nrealloc will do that.
71819         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71820         instead of xnrealloc.
71821         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71822
71823 2003-10-27  Bruno Haible  <bruno@clisp.org>
71824
71825         * lib/stdbool_.h: Better support for BeOS.
71826
71827 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71828
71829         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71830         now uses inline.
71831
71832 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71833
71834         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71835         callers that want to do their own size-overflow checking.  Include
71836         <stdbool.h>, since xalloc_oversized returns bool.
71837         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71838         to use xalloc_oversized.
71839
71840         Add two functions x2realloc, x2nrealloc, for programs that grow
71841         arrays dynamically by doubling their sizes.
71842         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71843         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71844         New functions.
71845
71846         Port to C99 semantics for 'inline' of external functions.
71847         Bug reported by Bruno Haible.
71848         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71849         with the old contents of xnmalloc.
71850         (xnmalloc, xmalloc): Use it.
71851         (xnrealloc_inline): New static inline function,
71852         with the old contents of xnrealloc.
71853         (xnrealloc, xrealloc): Use it.
71854
71855         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71856         that.
71857
71858 2003-10-26  Karl Berry  <karl@gnu.org>
71859
71860         * config/srclist.txt (COPYING.DOC): no longer available from
71861         /gd/gnuorg; don't know where the ultimate source is.
71862
71863 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71864
71865         Fix several address-calculation bugs in the hash modules,
71866         plus some minor code cleanup.
71867
71868         * lib/hash.h: Include <stdbool.h>, for bool.
71869         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71870         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71871         hash_get_n_entries, hash_get_max_bucket_length,
71872         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71873         hash_rehash): Use size_t rather than unsigned.
71874         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71875         hash_get_n_buckets_used, hash_get_n_entries,
71876         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71877         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71878         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71879         Likewise.
71880         (SIZE_MAX): Define if not defined.
71881         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71882         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71883         hash_print):
71884         Use const * when possible.
71885         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71886         (check_tuning): Fix bug: if tuning parameters were very close to
71887         0 or 1, rounding errors could have caused subscript violations.
71888         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71889         (hash_initialize): Add 'fail:' label
71890         to free table and return NULL, and use it to simplify code.
71891         Use calloc rather than clearing the storage ourself.
71892         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71893         buffer size calculations.
71894         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71895         Include <stddef.h>, for size_t.
71896         * lib/hash-pjw.c (hash_pjw): Likewise.
71897         Switch to method described by Bruno Haible.
71898         Include <limits.h>, for CHAR_BIT.
71899         (SIZE_BITS): New macro.
71900
71901 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71902
71903         * m4/getline.m4 (AM_FUNC_GETLINE):
71904         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71905         hosts.  Problem reported by Derek Robert Price in
71906         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71907         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71908         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71909
71910 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71911
71912         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71913         ceiling the allocation at NMAX bytes rather than silently
71914         discarding input bytes before NMAX is reached.  This makes
71915         a difference only if NMAX exceeds SIZE_MAX / 2.
71916
71917         * lib/obstack.c: Merge from glibc.
71918         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71919         Add libc_hidden_def (_obstack_newchunk).
71920         (_obstack_free) [! defined _LIBC]: Remove.
71921         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71922         a clone of the function body.
71923         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71924         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71925
71926         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71927         glibc.
71928         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71929         arg to memcpy.
71930
71931         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71932         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71933         Don't use lvalue casts, as GCC plans to remove support for them
71934         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71935         was also present in the non-GCC version, indicating that this
71936         code had always been buggy and had never been widely used.
71937         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71938         Use the fast variant of each macro, rather than copying the
71939         definiens of the fast variant; that way, we'll be more likely to
71940         catch future bugs in the fast variants.
71941
71942 2003-10-20  Bruno Haible  <bruno@clisp.org>
71943
71944         * modules/wait-process: New file.
71945         * MODULES.html.sh (func_all_modules): Add wait-process.
71946
71947 2003-10-20  Bruno Haible  <bruno@clisp.org>
71948
71949         * m4/wait-process.m4: New file.
71950
71951 2003-10-20  Bruno Haible  <bruno@clisp.org>
71952
71953         * lib/wait-process.h: New file, from GNU gettext.
71954         * lib/wait-process.c: New file, from GNU gettext.
71955
71956 2003-10-19  Jim Meyering  <jim@meyering.net>
71957
71958         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71959         HPUX 10.20.
71960
71961 2003-10-18  Karl Berry  <karl@gnu.org>
71962
71963         * config/config.guess: update from config.
71964
71965 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71966
71967         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71968         (getgroups): First arg is int, not size_t.
71969         Don't let 'free' mangle errno.
71970
71971 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71972
71973         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71974
71975 2003-10-16  Karl Berry  <karl@gnu.org>
71976
71977         * config/config.{guess,sub}: update from config.
71978
71979 2003-10-16  Jim Meyering  <jim@meyering.net>
71980
71981         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71982         memcpy.
71983
71984 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71985
71986         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71987         (SIZE_MAX): Remove.
71988         (new_exclude, add_exclude_file): Initial size no longer needs to
71989         be a power of 2.
71990         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71991         our own address arithmetic overflow checking.
71992
71993         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71994         (fnmatch): Do not alloca more than 2000 wide characters;
71995         instead, use malloc for large buffers.
71996         Check for address arithmetic overflow, and return -1
71997         with errno set to ENOMEM in that case.
71998         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71999         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72000         instead, return -1.  Check for address arithmetic overflow.
72001
72002 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72003
72004         Handle invalid suffixes and overflow independently, so that
72005         callers can treat them independently as needed.  Fix some bugs in
72006         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72007         suffix for a human-readable blocksize.  The major caller-visible
72008         change is the addition of a new
72009         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72010         that both overflow and suffix chars were found.
72011
72012         * lib/human.c (humblock): Don't check separately for invalid suffix
72013         char; that is xstrtoumax's job (now that its bug is fixed).
72014         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72015         INTMAX_MAX]: New macros.
72016         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72017         TYPE_MAXIMUM): New macros.
72018         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72019         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72020         if overflow occurs, as it's what __strtol does and it's more useful
72021         in practice.
72022         (__xstrtol): If __strtol reports some error other than ERANGE,
72023         reflect it to the caller as LONGINT_INVALID.  If it reports
72024         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72025         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72026         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72027         value.
72028         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72029         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72030         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72031         [defined UINTMAX_MAX]: New macros.
72032
72033 2003-10-14  Bruno Haible  <bruno@clisp.org>
72034
72035         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72036
72037 2003-10-14  Bruno Haible  <bruno@clisp.org>
72038
72039         * m4/sig_atomic_t: New file, from GNU gettext.
72040         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72041
72042 2003-10-14  Bruno Haible  <bruno@clisp.org>
72043
72044         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72045         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72046         Also use volatile where needed.
72047
72048 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72049
72050         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72051         Change maintainer from Bruno Haible to 'all'.
72052
72053 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72054
72055         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72056
72057 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72058
72059         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72060         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72061         and define in terms of the other primitives.
72062         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72063         (SIZE_MAX): Define if not already defined.
72064         (array_size_overflow): New function.
72065         (xalloc_die): Abort instead of exiting if 'error' returns.
72066         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72067         (xmalloc, xrealloc): Use them.
72068         (xcalloc): Check for address arithmetic overflow.
72069         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72070         a bit faster than strcpy.
72071
72072 2003-10-10  Simon Josefsson  <jas@extundo.com>
72073
72074         * modules/argp (Depends-on): Add restrict and strcase.
72075
72076 2003-10-10  Simon Josefsson  <jas@extundo.com>
72077
72078         * m4/argp.m4: Add AC_C_INLINE.
72079
72080 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72081
72082         Merge getpass from libc, plus a few fixes.
72083
72084         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72085         Include <stdbool.h>.
72086         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72087         __fsetlocking to empty.
72088         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72089         do include <bits/libc-lock.h>.
72090         Do not include <fcntl.h>; not needed.
72091         [_LIBC]: Include <wchar.h>.
72092         (NOTCANCEL_MODE): New macro.
72093         (flockfile, funlockfile) [_LIBC]: New macros.
72094         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72095         [!_LIBC]: New macros.
72096         (call_fclose): New function.
72097         (getpass): Use it.  Save tty stream separately; this simplifies the
72098         code and makes it more reliable if stdin happens to equal stdout.
72099         Invoke __fsetlocking on tty.
72100         Handle thread cancellation if needed.
72101         Namespace cleanup (use __tcgetattr, __getline).
72102         Use bool for Booleans.
72103         [USE_IN_LIBIO]: Handle wide streams.
72104         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72105         stream might go where.
72106
72107         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72108         doesn't have to include <stdio.h> before us.
72109         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72110         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72111         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72112         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72113         if not declared, so that we can use getpass.c code from libc without
72114         rewriting it.
72115         (flockfile, ftrylockfile, funlockfile): New macros.
72116
72117 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72118
72119         * modules/getpass: Depend on stdbool.
72120
72121 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72122
72123         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72124
72125 2003-10-07  Karl Berry  <karl@gnu.org>
72126
72127         * config/config.{guess,sub}: update from config.
72128
72129 2003-10-06  Jim Meyering  <jim@meyering.net>
72130             Bruno Haible  <bruno@clisp.org>
72131
72132         This lets translators provide better translations for the
72133         "Written by ..." part of --version output.
72134         * lib/version-etc.h: Include stdarg.h.
72135         (version_etc_copyright): Declare as readonly.
72136         (version_etc): Make this function variadic with a NULL-terminated list
72137         of author name strings.
72138         (version_etc_va): New declaration.
72139         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72140         (version_etc_copyright): Declare as readonly.
72141         (version_etc_va): New function. Provide a different translatable string
72142         for each possible number of authors < 10. Abbreviate when there are 10
72143         authors or more.
72144         (version_etc): Make this function variadic. Call version_etc_va.
72145         Suggestion from Gary V. Vaughan.
72146
72147         * lib/long-options.h (parse_long_options): Change prototype: the
72148         authors string is moved to the end and becomes variadic.
72149         * lib/long-options.c: Include stdarg.h.
72150         (parse_long_options): Make this function variadic, too.
72151         Call version_etc_va, not version_etc.
72152
72153 2003-10-06  Bruno Haible  <bruno@clisp.org>
72154
72155         * modules/version-etc-2: Remove file.
72156         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72157
72158 2003-10-06  Bruno Haible  <bruno@clisp.org>
72159
72160         * modules/fatal-signal: New file.
72161         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72162
72163 2003-10-06  Bruno Haible  <bruno@clisp.org>
72164
72165         * m4/fatal-signal.m4: New file.
72166         * m4/signalblocking.m4: New file, from GNU gettext.
72167
72168 2003-10-06  Bruno Haible  <bruno@clisp.org>
72169
72170         * lib/version-etc-2.h: Remove file.
72171         * lib/version-etc-2.c: Remove file.
72172
72173 2003-10-06  Bruno Haible  <bruno@clisp.org>
72174
72175         * lib/fatal-signal.h: New file, from GNU gettext.
72176         * lib/fatal-signal.c: New file, from GNU gettext.
72177
72178 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72179
72180         * README: Rework advice for preventing empty .o files.
72181         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72182         not <sys/types.h>.
72183
72184 2003-10-04  Karl Berry  <karl@gnu.org>
72185
72186         * lib/argp*: update from libc.
72187
72188 2003-10-04  Karl Berry  <karl@gnu.org>
72189
72190         * config/config.{guess,sub}: update from config.
72191
72192 2003-10-02  Bruno Haible  <bruno@clisp.org>
72193
72194         * modules/lchown (Include): Add lchown.h.
72195         * modules/time_r (Include): Use "..." syntax.
72196         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72197
72198 2003-10-01  Simon Josefsson  <jas@extundo.com>
72199
72200         * MODULES.html.sh (func_all_modules): Move gethostname from section
72201         'based on' to section 'lacking' POSIX:2001.
72202
72203 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72204
72205         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72206         to output mode on the same stream.
72207
72208 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72209
72210         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72211         Fix arg typo in previous patch.
72212
72213 2003-09-28  Jim Meyering  <jim@meyering.net>
72214
72215         * lib/error.c: Correct cpp indentation.
72216
72217 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72218
72219         * modules/free: New file.
72220
72221 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72222
72223         * m4/free.m4: New file.
72224
72225 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72226
72227         * lib/minmax.h (MIN, MAX)
72228         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72229         Omit the special code that used __typeof__, since we worry that
72230         it could be more trouble than it's worth.  See:
72231         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72232         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72233
72234         * lib/free.c: New file.
72235
72236 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72237
72238         Trivial fixes to Makefile.am parts of module listings.
72239         * modules/strstr: Append strstr.h to lib_SOURCES.
72240         * modules/strcase: Likewise, for strcase.h.
72241
72242 2003-09-27  Karl Berry  <karl@gnu.org>
72243
72244         * config/mkinstalldirs: update from automake.
72245
72246 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72247
72248         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72249         (error_tail): Do not loop, reallocating temporary buffer, since
72250         the output cannot contain more wide characters than the input
72251         contains bytes, the size must be big enough already.  This avoids
72252         one potential size overflow calculation.  Check for size overflow
72253         when calculating temporary buffer size.  Free temporary buffer
72254         when done, if it was allocated with malloc; this plugs a memory
72255         leak.  Remove casts from void * to pointers, that are no longer
72256         needed now that we're assuming C89 or better.
72257
72258         Merge error changes from glibc.
72259
72260         * lib/error.c, error.h: Update copyright notice header to match glibc.
72261         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72262         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72263         Disable cancellation while printing error.
72264         * lib/error.h: Prepend __ to parameter names.
72265
72266 2003-09-26  Jim Meyering  <jim@meyering.net>
72267
72268         * lib/error.c (error_tail): Move some declarations
72269         into inner scope where the local variables are used.
72270
72271 2003-09-26  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72274         stpncpy().
72275         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72276
72277 2003-09-26  Bruno Haible  <bruno@clisp.org>
72278
72279         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72280         (stpncpy): Define as alias for gnu_stpncpy.
72281         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72282
72283 2003-09-25  Simon Josefsson  <jas@extundo.com>
72284
72285         * lib/xgetdomainname.h: New file.
72286         * lib/xgetdomainname.c: New file.
72287
72288 2003-09-25  Simon Josefsson  <jas@extundo.com>
72289             Bruno Haible  <bruno@clisp.org>
72290
72291         * modules/getdomainname: New file.
72292         * modules/xgetdomainname: New file.
72293         * MODULES.html.sh (func_all_modules): Add getdomainname,
72294         xgetdomainname.
72295
72296 2003-09-25  Simon Josefsson  <jas@extundo.com>
72297             Bruno Haible  <bruno@clisp.org>
72298
72299         * m4/getdomainname.m4: New file.
72300
72301 2003-09-25  Simon Josefsson  <jas@extundo.com>
72302             Bruno Haible  <bruno@clisp.org>
72303
72304         * lib/getdomainname.h: New file.
72305         * lib/getdomainname.c: New file.
72306
72307 2003-09-25  Karl Berry  <karl@gnu.org>
72308
72309         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72310
72311 2003-09-25  Karl Berry  <karl@gnu.org>
72312
72313         * config/install-sh: update from automake.
72314
72315 2003-09-25  Bruno Haible  <bruno@clisp.org>
72316
72317         * modules/version-etc-2: New file, from modules/version-etc with
72318         modifications.
72319         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72320
72321 2003-09-25  Bruno Haible  <bruno@clisp.org>
72322
72323         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72324         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72325
72326 2003-09-24  Simon Josefsson  <jas@extundo.com>
72327
72328         * modules/xgethostname: Add xgethostname.h.
72329
72330 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72331
72332         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72333         the buffer associated with the argument.  Bug reported by
72334         Simon Josefsson.
72335
72336 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72337
72338         * README: Document assumptions that 'int' is at least 32 bits
72339         wide, that integer arithmetic is 2's complement without overflow,
72340         that there are no holes in integer values, that adding sizes of
72341         two nonoverlapping objects can't overflow, and that all-bits-zero
72342         yields scalar zero.  Fix spelling and capitalization typos.
72343
72344 2003-09-19  Karl Berry  <karl@gnu.org>
72345
72346         * lib/argp.h: update from libc.
72347
72348 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72349
72350         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72351         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72352         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72353
72354 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72355
72356         * gnulib-tool: Use "test -h", not "test -L", for portability
72357         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72358         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72359         (sed_extract_prog): Issue s commands one-by-one, rather than
72360         using \| in one s command.
72361
72362 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72363
72364         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72365         input error, instead of returning NULL the next time we are called
72366         (and therefore losing track of errno).
72367
72368 2003-09-16  Bruno Haible  <bruno@clisp.org>
72369
72370         * gnulib-tool (func_create_testdir): Warn about duplicated
72371         dependencies.
72372
72373 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72374
72375         * modules/argmatch, modules/fatal, modules/obstack,
72376         modules/xalloc, modules/xgethostname: Sort dependencies by
72377         importance, not alphabetically.
72378
72379 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72380
72381         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72382         fails, so that the caller gets the proper errno.
72383
72384         * lib/readutmp.c (read_utmp): Likewise.
72385         Check for fstat error.  Close stream and free storage
72386         when failing.
72387
72388 2003-09-14  Karl Berry  <karl@gnu.org>
72389
72390         * config/srclist.txt (strdup.c): disable for c89 changes.
72391
72392 2003-09-14  Jim Meyering  <jim@meyering.net>
72393
72394         * lib/getloadavg.c: Correct cpp indentation.
72395         * lib/strdup.c: Likewise.
72396         * lib/vasnprintf.c: Likewise.
72397
72398 2003-09-14  Bruno Haible  <bruno@clisp.org>
72399
72400         * modules/fwriteerror: New file.
72401         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72402
72403 2003-09-14  Bruno Haible  <bruno@clisp.org>
72404
72405         * lib/fwriteerror.h: New file.
72406         * lib/fwriteerror.c: New file.
72407
72408 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72409
72410         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72411         modules/xgethostname, modules/xalloc: Depend on exit.
72412
72413 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72414
72415         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72416
72417         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72418         and AC_MINIX, too, so that their extensions are available.
72419
72420         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72421         This macro has been superseded by gl_BACKUPFILE.
72422
72423         More patches to assume C89 or better.
72424
72425         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72426
72427         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72428         unconditionally.
72429         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72430         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72431         Include <string.h>, <stdlib.h> unconditionally.
72432         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72433         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72434         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72435         headers or for string.h.
72436         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72437         or strtoul.
72438
72439         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72440         headers.
72441         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72442         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72443         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72444         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72445         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72446         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72447         memcpy, memset.
72448         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72449         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72450         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72451         strtol.
72452         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72453         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72454         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72455         strtoul.
72456
72457 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72458
72459         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72460         * lib/obstack.c [!defined _LIBC]: Likewise.
72461         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72462         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72463         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72464
72465         More changes to assume C89 or better.
72466
72467         * lib/error.c (error_tail): Assume vprintf.
72468
72469         * lib/argmatch.c (getenv): Remove decl.
72470         * lib/progreloc.c (get_full_program_name): Define via prototype.
72471         * lib/setenv.c (clearenv): Likewise.
72472         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72473         needed.
72474         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72475         (malloc, memcpy): Remove decls.
72476         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72477         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72478         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72479         (memcpy): Remove macro.
72480         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72481         (__P): Remove.  All uses removed.
72482         (PTR): Remove.  All uses changed to void *.
72483         (CHAR_BIT, NULL): Remove.
72484         (spaces, zeros, memset_space, memset_zero)
72485         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72486         Remove.
72487         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72488         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72489         Define with prototype.
72490         Remove now-unnecessary prototype decl.
72491         (extra_args_spec): Assume ANSI C.  All uses changed.
72492         (extra_args_spec_iso): Remove.
72493         (my_strftime, emacs_strftimeu): Define via prototype.
72494         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72495         unconditionally.
72496         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72497         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72498         (strtoul, strtol): Remove decls.
72499         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72500         LONG_MAX): Remove.
72501         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72502         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72503         (LOCALE_PARAM_PROTO): New macro.
72504         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72505         (INTERNAL (strtol), strtol): Define with a prototype.
72506         (PARAMS): Remove.  All uses removed.
72507         * lib/tempname.c: Include <string.h> unconditionally.
72508         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72509         * lib/xgethostname.c (main): Define with a prototype.
72510         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72511         Include <stdlib.h> unconditionally.
72512         (calloc, malloc, realloc, free): Remove decls.
72513         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72514         Include <stdlib.h> unconditionally.  Sort include file names.
72515         (strtod): Remove.
72516         (xstrtod): Define with a prototype.
72517         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72518         (strtol, strtoul): Remove decls.
72519
72520 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72521
72522         More patches to assume C89 or better.
72523         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72524         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72525         string.h, memchr, STDC_HEADERS.
72526
72527 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72528
72529         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72530         Include <stdlib.h>, <string.h> unconditionally.
72531         Remove now-unnecessary cast to char *.
72532         * lib/strnlen.c: Include <string.h> unconditionally.
72533         * lib/yesno.c (yesno): Define with a prototype.
72534
72535 2003-09-11  Bruno Haible  <bruno@clisp.org>
72536
72537         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72538
72539 2003-09-10  Jim Meyering  <jim@meyering.net>
72540
72541         * lib/error.c: Correct indentation of cpp directives.
72542
72543 2003-09-10  Bruno Haible  <bruno@clisp.org>
72544
72545         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
72546         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
72547         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
72548         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
72549         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
72550         <stdlib.h> and <string.h> checks.
72551         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
72552         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
72553
72554 2003-09-10  Bruno Haible  <bruno@clisp.org>
72555
72556         * lib/strcspn.c: Include <string.h> unconditionally.
72557         * lib/strpbrk.c: Include <string.h> unconditionally.
72558         * lib/strstr.c: Include <string.h> unconditionally.
72559         * lib/unicodeio.c: Include <string.h> unconditionally.
72560         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
72561         * lib/unsetenv.c: Likewise.
72562         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
72563         * lib/yesno.c: Include <stdlib.h> unconditionally.
72564         (rpmatch): Add prototype.
72565
72566 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72567
72568         More patches to assume C89 or better.
72569         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
72570         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
72571         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
72572         or for string.h.
72573         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
72574         stdlib.h.
72575         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
72576         C headers.
72577         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
72578         string.h.
72579         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
72580         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
72581         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
72582         or for string.h.
72583         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
72584         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
72585         C headers.
72586         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
72587         memcpy.
72588         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
72589         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
72590         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
72591         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
72592         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
72593         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
72594         string.h, free.
72595         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
72596         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
72597         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
72598         C headers, or for string.h.
72599         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
72600         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
72601         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
72602         headers, memory.h, stdlib.h, string.h, strings.h.
72603         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
72604         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
72605         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
72606         strchr.
72607         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
72608         headers, memory.h, string.h.
72609         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
72610         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
72611         free.
72612         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
72613         headers.
72614         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
72615         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
72616         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
72617         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
72618         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
72619
72620 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72621
72622         More K&R removal.
72623
72624         * lib/acosl.c (main): Use a prototype.
72625         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
72626         tanl.c: Likewise.
72627
72628         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
72629
72630         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
72631         (getopt, etopt_long, getopt_long_only, _getopt_internal)
72632         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
72633         with a prototype.
72634         * lib/getopt.c (const): Remove macro.
72635         Include <string.h> unconditionally.
72636         (my_index): Remove; all uses changed to strchr.
72637         (strlen): Remove decl.
72638         (exchange): Remove forward decl; no longer needed.
72639         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
72640         Define with prototype.
72641         * lib/getopt1.c (const): Remove macro.
72642         (getopt_long, getopt_long_only, main): Define with prototype.
72643
72644         * lib/getugroups.c: Include <string.h> unconditionally.
72645
72646         * lib/getusershell.c: Include <stdlib.h> unconditionally.
72647         (getusershell, setusershell, endusershell, readname, main):
72648         Define with prototypes.
72649
72650         * lib/group-member.c: Include group-member.h first.
72651         Include <stdlib.h> unconditionally.
72652
72653         * lib/hard-locale.c: Include hard-locale.h first.
72654         Include <stdlib.h>, <string.h> unconditionally.
72655
72656         * lib/hash.c (free, malloc): Remove decls.
72657         Include <stdlib.h> unconditionally.
72658
72659         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
72660         (getenv): Do not declare.
72661
72662         * lib/idcache.c: Include <string.h> unconditionally.
72663
72664         * lib/long-options.c: Include long-options.h first, to test interface.
72665         Include <stdlib.h> unconditionally.
72666
72667         * lib/makepath.c: Include makepath.h first, to test interface.
72668         Include <stdlib.h> and <string.h> unconditionally.
72669
72670         * lib/linebuffer.c: Include <stdlib.h>.
72671         (free): Remove decl.
72672
72673         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
72674         stddef.h. rpl_malloc returns void *, not char *.
72675         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
72676         prototype.
72677
72678         * lib/md5.h: Include <limits.h> unconditionally.
72679         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
72680         (__P): Remove; all uses removed.
72681         * lib/md5.c: Include "md5.h" first.
72682         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
72683         md5_buffer, md5_process_bytes, md5_process_block):
72684         Define with prototypes.
72685         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
72686         * lib/sha.c: Include "sha.h" first.
72687         Include <stdlib.h>, <string.h> unconditionally.
72688
72689         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
72690         * lib/memcmp.c (__ptr_t): Likewise.
72691         * lib/memrchr.c (__ptr_t): Likewise.
72692         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
72693         Include <string.h> unconditionally.
72694         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
72695         * lib/memchr.c: Include <stdlib.h> unconditionally.
72696         * lib/memchr.c (LONG_MAX): Remove.
72697         * lib/memrchr.c (LONG_MAX): Likewise.
72698         * lib/memchr.c (__memchr): Define via a prototype.
72699         * lib/memrchr.c (__memrchr): Likewise.
72700         * lib/memcmp.c (__P): Remove, and remove all uses.
72701         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
72702         Remove forward decls; no longer needed.
72703         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
72704         Use types required by C89 in prototype.
72705
72706         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
72707         * lib/savedir.c: Likewise.
72708         * lib/mkdir.c (free): Remove decl.
72709         * lib/rmdir.c (rmdir): Define with a prototype.
72710         * lib/savedir.c: Include savedir.h first, to test interface.
72711
72712         * lib/mktime.c (STDC_HEADERS): Remove.
72713         Include <stdlib.h>, <string.h> unconditionally.
72714
72715         * lib/modechange.c: Include <stdlib.h> unconditionally.
72716         (malloc): Remove decl.
72717
72718         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
72719         (free): Remove decl.
72720
72721         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
72722         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
72723         (This type really should be intptr_t, but that's a C99ism.)
72724         (_obstack_memcpy): Remove: all uses changed to memcpy.
72725         Include <string.h> unconditionally.
72726         (struct obstack): Assume __STDC__ for types of members
72727         chunkfun, freefun, extra_arg.
72728         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
72729         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
72730         obstack_begin, obstack_specify_allocation,
72731         obstack_specify_allocation_with_arg, obstack_chunkfun,
72732         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
72733         Remove unprototyped decls and the macros that use them.
72734         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
72735         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
72736         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
72737         (defined __STDC__ && __STDC__)]:
72738         Remove nonprototyped code.
72739         Include <stdlib.h> unconditionally.
72740         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
72741         _obstack_allocated_p, _obstack_free, obstack_free,
72742         _obstack_memory_used, print_and_abort):
72743         Define using prototypes.
72744         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
72745         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
72746         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
72747         obstack_next_free, obstack_object_size, obstack_room) [0]:
72748         Remove unused, unprototyped code.
72749
72750         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
72751
72752         * lib/physmem.c (physmem_total, physmem_available, main): Define
72753         with prototypes.
72754
72755         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
72756         (main): Define with a prototype.
72757
72758         * lib/posixver.c (getenv): Remove decl.
72759
72760         * lib/putenv.c (malloc): Returns void *, not char *.
72761         Include <string.h> unconditionally.
72762         (strchr, memcpy, NULL): Do not define.
72763
72764         * lib/readtokens.c: Include readtokens.h first, to test interface.
72765         Include <stdlib.h>, <string.h> unconditionally.
72766         (init_tokenbuffer): Define with a prototype.
72767
72768         * lib/regex.c (PARAMS): Remove.  All uses removed.
72769         All uses of _RE_ARGS removed, too.
72770         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
72771         unconditionally.
72772         (bzero): Assume memset exists.
72773         (memcmp, memcpy, NULL): Remove.
72774         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
72775         char, or assignments to local vars of type signed char.
72776         (init_syntax_once, PREFIX(extract_number_and_incr),
72777         PREFIX(print_partial_compiled_pattern),
72778         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
72779         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
72780         PREFIX(regex_grow_registers), PREFIX(regex_compile),
72781         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
72782         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
72783         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
72784         wcs_compile_range, byte_compile_range, truncate_wchar,
72785         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
72786         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
72787         count_mbs_length, wcs_re_match_2_internal,
72788         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
72789         PREFIX(alt_match_null_string_p),
72790         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
72791         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
72792         regfree, PREFIX(extract_number)): Define with prototype.  Remove
72793         now-unnecessary declaration, if any.
72794         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
72795         regcomp, regexec):
72796         Remove now-unnecessary casts among pointer types.
72797         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
72798
72799         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
72800         (free): Remove decl.
72801
72802         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
72803
72804         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
72805         (free): Remove decl.
72806
72807         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
72808         * lib/xgetcwd.c: Likewise.
72809
72810         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
72811         (free): Remove decl.
72812
72813         * lib/strchrnul.c (strchrnul): Define with a prototype.
72814         Fix bug: c_in was not converted to char before searching.
72815
72816         The following changes are not K&R related:
72817
72818         * lib/group-member.h: Include <sys/types.h>, so that this file is
72819         self-contained.
72820         * lib/makepath.h: Likewise.
72821
72822         * lib/getusershell.c (readname, default_index, line_size, readname):
72823         Use size_t, not int, for sizes.
72824         (readname): If the size overflows, report an error instead of
72825         looping forever.
72826
72827 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72828
72829         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72830         libc.
72831
72832 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72833
72834         * README: New section: portability guidelines.
72835
72836 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72837
72838         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72839         C89 spec.
72840
72841 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72842
72843         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72844
72845 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72846
72847         Assume C89 or better; remove K&R cruft.
72848         A few of these changes were first proposed by Derek Robert Price
72849         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72850
72851         * lib/addext.c: Include <string.h> unconditionally.
72852         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72853         Don't declare getenv or malloc.
72854
72855         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72856         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72857         (NULL): Remove.
72858         (find_stack_direction, alloca): Use prototypes.
72859
72860         * lib/atexit.c (atexit): Define using a prototype.
72861
72862         * lib/basename.c, dirname.c, stripslash.c:
72863         Include <string.h> unconditionally.
72864
72865         * lib/bcopy.c: Include <stddef.h>.
72866         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72867
72868         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72869
72870         * lib/error.h (error, error_at_line, error_print_progname)
72871         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72872         * lib/error.c: Include error.h first, to check interface.
72873         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72874         (VA_START): Remove; all uses changeed to va_start.
72875         (exit, strerror): Remove decls.
72876         (error_print_progname): Prototype uncondionally.
72877         Don't include <errno.h>; no longer needed.
72878         (private_strerror): Remove.
72879         (error_tail): Always define.
72880         (error, error_at_line): Assume C89 or better; always use prototypes.
72881         * lib/fatal.c: Include "fatal.h" first, to test interface.
72882         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72883         (VA_START): Remove; all uses changed to va_start.
72884         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72885         this case.
72886         (exit): Remove decl.
72887         (fatal): Prototype unconditionally.  Assume va_start works.
72888         Abort at end, to pacify gcc.
72889
72890         * lib/euidaccess.c (main): Define with a prototype.
72891
72892         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72893
72894         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72895
72896         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72897         prototypes.
72898         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72899         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72900         (getenv): Remove decl.
72901         (fnmatch): Define using a prototype.
72902         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72903         (FCT): Define using a prototype.
72904
72905         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72906
72907         * lib/gethostname.c: Include <stddef.h>.
72908         (gethostname): Define with prototype.  Length is size_t, not int.
72909
72910 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72911
72912         Assume C89 or better; remove K&R cruft.
72913         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72914         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72915         string.h, getenv, malloc.
72916         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72917         headers.
72918         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72919         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72920         do not check for strerror.
72921         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72922         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72923         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72924         do not check for doprnt or vprintf.
72925         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72926         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72927
72928 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72929
72930         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72931         getversion.c should have been removed then, but was accidentally
72932         preserved.
72933
72934         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72935         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72936
72937 2003-09-08  Karl Berry  <karl@gnu.org>
72938
72939         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72940                 config, forget about prep.
72941
72942         * config/depcomp, missing: update from automake.
72943
72944 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72945
72946         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72947         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72948
72949 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72950
72951         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72952         copy_tm_result.  Bug reported by Simon Josefsson in
72953         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72954
72955 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72956
72957         * m4/time_r.m4: New file.
72958         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72959         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72960         is. Check for timegm declaration.
72961         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72962         Do not check for gmtime_r.
72963         Replace mktime if __mktime_internal does not exist and if mktime
72964         hasn't been replaced already.
72965
72966 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72967
72968         * lib/time_r.c, lib/time_r.h: New files.
72969
72970         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72971         __localtime_r.
72972         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72973         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72974
72975         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72976         __gmtime_r.
72977         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72978         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72979         Include <time_r.h>.
72980
72981         * lib/timegm.c: Switch to glibc implementation, with the following
72982         changes:
72983         [defined HAVE_CONFIG_H]: Include <config.h>.
72984         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72985         (__mktime_internal) [!defined _LIBC]: New decl.
72986         (__gmtime_r) [!defined _LIBC]: New macro and function.
72987         (timegm): Use a prototype, since gnulib assumes C89.
72988         Do not bother declaring tmp to be const, as it's not really usefu.
72989         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72990         (timegm): Declare only if HAVE_DECL_TIMEGM.
72991
72992 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72993
72994         * MODULES.html.sh (func_all_modules): Add time_r.
72995         * modules/time_r: New file.
72996         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72997         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72998
72999 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73000
73001         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73002         Bug reported by Lute Kamstra in
73003         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73004
73005         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73006         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73007         course with correspondingly smaller numbers for tomorrow and
73008         yesterday.  From Tadayoshi Funaba.  Originally installed into
73009         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73010         coreutils merge?).
73011
73012 2003-08-31  Simon Josefsson  <jas@extundo.com>
73013
73014         * modules/timegm: New file.
73015         * MODULES.html.sh (func_all_modules): Add timegm.
73016
73017 2003-08-31  Simon Josefsson  <jas@extundo.com>
73018
73019         * m4/timegm.m4: New file.
73020
73021 2003-08-31  Simon Josefsson  <jas@extundo.com>
73022
73023         * lib/timegm.h: New file.
73024         * lib/timegm.c: New file.  Based on
73025         wget-1.8.2/src/http.c:mktime_from_utc.
73026
73027 2003-08-31  Karl Berry  <karl@gnu.org>
73028
73029         * lib/argp.h: update from libc.
73030
73031 2003-08-28  Bruno Haible  <bruno@clisp.org>
73032
73033         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73034         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73035         followed by '#define fnmatch fnmatch_posix' gives an error.
73036
73037 2003-08-28  Bruno Haible  <bruno@clisp.org>
73038
73039         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73040         warning on QNX, which defines O_BINARY to 000000.
73041
73042 2003-08-27  Jim Meyering  <jim@meyering.net>
73043
73044         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73045         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73046         would fail after 32.  Reported by Danny Levinson.  Details here:
73047         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73048
73049 2003-08-24  Bruno Haible  <bruno@clisp.org>
73050
73051         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73052         MSVC7 <stdio.h> is included later.
73053
73054 2003-08-22  Simon Josefsson  <jas@extundo.com>
73055
73056         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73057
73058 2003-08-20  Karl Berry  <karl@gnu.org>
73059
73060         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73061
73062 2003-08-20  Bruno Haible  <bruno@clisp.org>
73063
73064         * modules/progname: New file.
73065         * MODULES.html.sh (func_all_modules): Add progname.
73066
73067 2003-08-20  Bruno Haible  <bruno@clisp.org>
73068
73069         * lib/progname.h: New file, from GNU gettext.
73070         * lib/progname.c: New file, from GNU gettext.
73071         * lib/progreloc.c: New file, from GNU gettext.
73072
73073 2003-08-19  Jim Meyering  <jim@meyering.net>
73074
73075         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73076         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73077
73078 2003-08-19  Bruno Haible  <bruno@clisp.org>
73079
73080         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73081         more.
73082
73083 2003-08-19  Bruno Haible  <bruno@clisp.org>
73084
73085         * lib/xstrdup.c: Assume <string.h> exists.
73086
73087 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73088
73089         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73090         in makefile rules.
73091
73092 2003-08-18  Jim Meyering  <jim@meyering.net>
73093
73094         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73095         * m4/lib-ld.m4: Likewise.
73096
73097 2003-08-18  Jim Meyering  <jim@meyering.net>
73098
73099         * lib/setenv.h: Indent nested cpp directive.
73100         * lib/vasnprintf.c: Remove trailing blanks.
73101
73102 2003-08-17  Simon Josefsson  <jas@extundo.com>
73103
73104         * modules/xstrndup: New file.
73105         * MODULES.html.sh (func_all_modules): Add xstrndup.
73106
73107 2003-08-17  Simon Josefsson  <jas@extundo.com>
73108
73109         * modules/argp: Fix autoconf macro name. Add more dependencies.
73110
73111 2003-08-17  Simon Josefsson  <jas@extundo.com>
73112
73113         * m4/xstrndup.m4: New file.
73114
73115 2003-08-17  Simon Josefsson  <jas@extundo.com>
73116
73117         * m4/argp.m4: New file.
73118
73119 2003-08-17  Simon Josefsson  <jas@extundo.com>
73120             Bruno Haible  <bruno@clisp.org>
73121
73122         * lib/xstrndup.h: New file.
73123         * lib/xstrndup.c: New file.
73124
73125 2003-08-17  Bruno Haible  <bruno@clisp.org>
73126
73127         * modules/strndup (Files, Include): Add lib/strndup.h.
73128
73129 2003-08-17  Bruno Haible  <bruno@clisp.org>
73130
73131         * modules/euidaccess (Files): Add lib/euidaccess.h.
73132
73133 2003-08-17  Bruno Haible  <bruno@clisp.org>
73134
73135         * lib/strndup.h: New file.
73136
73137 2003-08-17  Bruno Haible  <bruno@clisp.org>
73138
73139         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73140         like AC_GNU_SOURCE.
73141         * modules/extensions (configure.ac): Comment out the invocation of
73142         gl_USE_SYSTEM_EXTENSIONS.
73143
73144 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73145
73146         Merges from coreutils, etc.
73147         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73148         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73149         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73150         fixing a typo.
73151         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73152         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73153
73154 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73155
73156         Document merge from coreutils.
73157         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73158         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73159         * modules/utime: Add m4/utimes-null.m4.
73160
73161 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73162
73163         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73164         space, undoing this 2003-08-12 change:
73165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73166
73167 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73168
73169         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73170         strtoul.c from libc, undoing this 2003-08-12 change:
73171         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73172
73173 2003-08-16  Jim Meyering  <jim@meyering.net>
73174
73175         Merges from coreutils.
73176         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73177         prefix.  Adjust cache variables similarly.  Create 500 rather than
73178         just 300 files, to exercise bug on Darwin6.5, too.
73179         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73180         $missing_dir.
73181         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73182         AM_SYS_POSIX_TERMIOS.
73183         Reported by mkc@mathdogs.com.
73184         Also change use of $am_cv_sys_posix_termios
73185         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73186         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73187         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73188         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73189         in /proc/mounts until it finds one with matching device number.  This
73190         is unnecessary when the FILE argument *is* a mount point.  No stat call
73191         is necessary in that case.  So, disable the statvfs-testing code on
73192         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73193         as RedHat bug# 84846.
73194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73195         to 1MB, so as not to render systems with no stack size limit (e.g.,
73196         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73197         Include <unistd.h>.  On some systems,
73198         it is required for the definition of _SC_PAGESIZE.
73199
73200 2003-08-16  Jim Meyering  <jim@meyering.net>
73201
73202         Merge from coreutils.
73203         * lib/xstrtoimax.c: #else #if -> #elif.
73204         * lib/xstrtoumax.c: Likewise.
73205
73206 2003-08-16  Jim Meyering  <jim@meyering.net>
73207
73208         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73209         * m4/utimes.m4: Removed.
73210         * m4/utimes-null.m4: Renamed from utimes.m4.
73211
73212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73213         to 1MB, so as not to render systems with no stack size limit (e.g.,
73214         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73215         Include <unistd.h>.  On some systems,
73216         it is required for the definition of _SC_PAGESIZE.
73217
73218 2003-08-16  Jim Meyering  <jim@meyering.net>
73219         and Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         Merges from coreutils, etc.
73222
73223         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73224         using the latest version from cvs.  This avoids problems with #line
73225         directives using a vendor (Sun) compiler.
73226         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73227         Don't set GETGROUPS_LIB here; now it's
73228         done via getgroups.m4's wrapper function.
73229         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73230         rather than just in sh-util/configure.in, so that the
73231         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73232         same.
73233         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73234         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73235         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73236         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73237         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73238         Remove code that is now done by the newly-required macros.
73239         Append $(EXEEXT) to DF_PROG.
73240         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73241         Do not invoke or require the following here,
73242         since prereq.m4 or some gnulib .m4 now does this for us:
73243         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73244         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73245         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73246         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73247         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73248         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73249         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73250         AC_FUNC_OBSTACK.
73251         Do not replace the following functions, as this is now the job
73252         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73253         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73254         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73255         atexit getpass, strdup, getpagesize.
73256         Replace 'raise'.
73257         Do not check for the following functions, as this is now the job
73258         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73259         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73260         setregid.
73261         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73262         Check for sys/sysctl.h.
73263         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73264         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73265         of checking for ssize_t ourselves.
73266
73267         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73268         Require every macro that gnulib/modules/* suggests for us.
73269         (jm_PREREQ_ADDEXT): New macro.
73270         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73271         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73272
73273         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73274         (gl_PHYSMEM): Use it.
73275         Also check for `table' function.
73276         Check for new headers and functions.
73277         Add check for sys/sysmp.h.
73278         With suggestions from Kaveh Ghazi.
73279         Ignore headers that are present but cannot be compiled.  This
73280         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73281         C 5.4.
73282
73283 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73284
73285         Document merge from coreutils.
73286         * modules/userspec: Depend on posixver.
73287         * modules/strftime: Depend on tzset.
73288
73289 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73290
73291         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73292         rather than tab, after '#' in shell-script copyright notices.
73293         Suggested by Bruno Haible.
73294
73295 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73296
73297         * config/srclist-update: Use three spaces, rather than tab, after '#'
73298         in shell-script copyright notices.  Suggested by Bruno Haible.
73299         Remove unnecessary parenthesization in regular expression.
73300
73301 2003-08-15  Jim Meyering  <jim@meyering.net>
73302
73303         Merge from coreutils.
73304         * lib/xgethostname.c: Include <stdlib.h>.
73305         (xghostname): Don't exit for anything other than memory-related
73306         failure; just return NULL.
73307         * lib/userspec.c: Include "posixver.h".
73308         (parse_user_spec): Accept `.' as a separator only
73309         in pre-POSIX-200112 mode.
73310         * lib/strtoimax.c: Use #elif rather than #else #if.
73311         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73312         Remove function, now that we can rely on a working tzset function.
73313         [!_LIBC]: Ensure that the required autoconf test has been run.
73314         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73315         Use underlying_strftime for %r.
73316         * lib/sha.c: Merge in some clean-up and optimization changes from
73317         glibc.
73318         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73319         Ensure that it is a multiple of 64.
73320         Rearrange loop exit tests so as to avoid performing an
73321         additional fread after encountering an error or EOF.
73322         * lib/realloc.c: Update copyright date.
73323
73324 2003-08-15  Jim Meyering  <jim@meyering.net>
73325         and Paul Eggert  <eggert@twinsun.com>
73326
73327         Merge from coreutils.
73328         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73329         member but strut utmpx does not.  Needed for AIX 4.3.3.
73330         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73331
73332 2003-08-15  Jim Meyering  <jim@meyering.net>
73333         and Paul Eggert  <eggert@cs.ucla.edu>
73334
73335         Merges from coreutils, etc.
73336         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73337         Require gl_FUNC_TZSET_CLOBBER.
73338         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73339         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73340         members.
73341
73342 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73343
73344         Help the merge from coreutils.
73345         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73346         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73347         * m4/tzset.m4: Use it too.
73348
73349 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73350
73351         * modules/tzset: New file.
73352
73353 2003-08-14  Jim Meyering  <jim@meyering.net>
73354
73355         Merges from coreutils.
73356         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73357         variable names, rather than @FNMATCH_H@.
73358         * modules/alloca: Likewise for $(ALLOCA_H).
73359
73360         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73361         the three copies of the literal target, `fnmatch.h'.
73362         * modules/alloca (alloca.h): Likewise.
73363
73364 2003-08-14  Jim Meyering  <jim@meyering.net>
73365
73366         Merge from coreutils.
73367         * m4/tzset.m4: New file.
73368         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73369         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73370         otherwise, AIX 5.1 systems would end up using the latter.
73371         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73372         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73373         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73374         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73375
73376 2003-08-14  Jim Meyering  <jim@meyering.net>
73377
73378         Merge from coreutils.
73379         * lib/obstack.h: Whitespace changes.
73380         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73381         and xcalloc return values.
73382         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73383         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73384         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73385         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73386         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73387         error from mntctl.
73388         Use mntctl's return value to drive the entry-processing loop, since
73389         we can't rely on the value of the vmt_length member in the last
73390         entry.  On some systems doing so could result in exhausting
73391         virtual memory.  Based in part on a patch from Mike Jetzer.
73392
73393 2003-08-14  Jim Meyering  <jim@meyering.net>
73394         and Paul Eggert  <eggert@twinsun.com>
73395
73396         Merges from coreutils, plus other fixes.
73397         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73398         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73399         for credits and details.  Thanks to Kaveh Ghazi for helping
73400         to keep these files in sync.
73401         (ARRAY_SIZE): Define it.
73402         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73403         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73404         (memcasecmp): Don't assume size_t fits in unsigned int.
73405         Remove casts and duplicate code.
73406         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73407         (memcpy): Remove definition.
73408         Merge in some clean-up and optimization changes from glibc.
73409         [BLOCKSIZE]: Move definition to top of file.
73410         Ensure that it is a multiple of 64.
73411         Rearrange loop exit tests so as to avoid performing an
73412         additional fread after encountering an error or EOF.
73413         * lib/md5.h (md5_uintptr): Define.
73414         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73415         return to the initial working directory.  Preserve errno
73416         for caller.
73417         * lib/idcache.c: Include "xalloc.h".
73418         (xmalloc, xrealloc): Remove decls.
73419         (getuser): Remove casts no longer required in C89.
73420         * lib/human.c: Include stdio.h, for sprintf.
73421         * lib/group-member.c: Include "xalloc.h".
73422         (xmalloc, xrealloc): Remove decls.
73423         (get_group_info): Remove casts no longer required in C89.
73424         * lib/getusershell.c (readname): Remove casts no longer required in
73425         C89.
73426         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73427         * lib/getline.c: Whitespace fix, from coreutils.
73428
73429 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73430
73431         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73432         Check for isascii.
73433
73434         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73435         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73436         Undo previous (whitespace-only) change.
73437
73438 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73439
73440         * lib/exclude.c: Include <ctype.h>
73441         (IN_CTYPE_DOMAIN): New macro.
73442         (is_space): New fn.
73443         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73444         and empty lines.
73445
73446         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73447         Undo previous (whitespace-only) change.
73448
73449 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73450
73451         * config/srclist-update: Change update back to the old behavior,
73452         leaving whitespace alone.  Use one 'sed' command rather than a
73453         pipeline.
73454         (fixlicense): Now a variable, not a function.
73455         (remove_trailing_blanks): Remove.
73456         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73457         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73458         Undo previous (whitespace-only) change.
73459
73460 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73461
73462         Merge from coreutils.
73463         * modules/euidaccess: Add lib_SOURCES, include for new
73464         file euidaccess.h
73465
73466 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73467
73468         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73469         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73470         Normalize leading white space and remove trailing white space.
73471
73472         Merge from coreutils
73473         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73474
73475         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73476         0.12.1.  These files are now being upgraded automatically by
73477         ../config/srclist-update.
73478
73479 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73480
73481         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73482         Normalize leading white space and remove trailing white space.
73483         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73484         notice, as per ../config/srclist-update.
73485
73486         Merge from coreutils.
73487         * lib/euidaccess.h: New file.
73488         * lib/euidaccess.c: Include it.
73489         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73490         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73491         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73492
73493 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73494
73495         * config/srclist-update: Add copyright notice.
73496         (remove_id_lines, remove_trailing_blanks): New constants.
73497         (fixfile): Use them to normalize spacing a bit in copied files.
73498         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73499         Normalize leading white space and remove trailing white space.
73500
73501         * config/texinfo.tex: Sync with texinfo.
73502
73503         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73504         strtoul.c from libc, to merge coreutils whitespace changes.
73505
73506         * config/srclist.txt: Get the following m4 files from gettext:
73507         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73508         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73509         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73510         wint_t.m4.
73511
73512 2003-08-12  Karl Berry  <karl@gnu.org>
73513
73514         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73515         been made.
73516
73517 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73518
73519         * modules/gnu-source, m4/gnu-source.m4:
73520         Remove; we're assuming Autoconf 2.54 or later now.
73521         Suggested by Bruno Haible.
73522         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73523
73524 2003-08-11  Bruno Haible  <bruno@clisp.org>
73525
73526         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73527
73528 2003-08-11  Bruno Haible  <bruno@clisp.org>
73529
73530         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73531         (vasnprintf): Use it instead of wcslen.
73532
73533 2003-08-11  Bruno Haible  <bruno@clisp.org>
73534
73535         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73536         value to ensure that _Bool promotes to int. Use #define for _Bool when
73537         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73538
73539 2003-08-10  Karl Berry  <karl@gnu.org>
73540
73541         * lib/regex.h: update from libc (whitespace fix).
73542
73543 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73544
73545         Merge some files from coreutils.  These changes were
73546         originally made by Jim Meyering.
73547         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
73548         many older Unixes require this.
73549         * lib/alloca.c (alloca): Remove cast to argument of free;
73550         no longer needed in C89.
73551         * lib/alloca_.h, regex.h: Fix white space to match
73552         what GNU indent does.
73553
73554 2003-08-09  Paul Eggert  <eggert@twinsun.com>
73555
73556         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
73557         apparently Emacs's Unicode mode got confused before my 2003-08-05
73558         checkin.
73559
73560 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73561
73562         * m4/extensions.m4: New file.
73563         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
73564         Require gl_USE_SYSTEM_EXTENSIONS.
73565         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
73566         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
73567
73568 2003-08-08  Paul Eggert  <eggert@twinsun.com>
73569
73570         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
73571         * modules/extensions, modules/gnu-source: New files.
73572         * modules/timespec, modules/unlocked-io: Depend on extensions.
73573
73574 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73575
73576         * modules/restrict: New file.
73577         * MODULES.html.sh (func_all_modules): Add restrict.
73578         * modules/regex: Depend on restrict.
73579
73580 2003-08-07  Paul Eggert  <eggert@twinsun.com>
73581
73582         * m4/restrict.m4: New file.
73583         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
73584
73585 2003-08-07  Bruno Haible  <bruno@clisp.org>
73586
73587         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
73588         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
73589
73590 2003-08-07  Bruno Haible  <bruno@clisp.org>
73591
73592         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
73593         makes the module 'getndelim2' compatible with the module 'getline'.
73594
73595 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73596
73597         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
73598         byte with "\201" to avoid glitches when editing that source file
73599         with multi-gnome-terminal.
73600
73601 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73602
73603         * lib/bumpalloc.h: Remove.
73604
73605 2003-08-05  Paul Eggert  <eggert@twinsun.com>
73606
73607         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
73608         * modules/bumpalloc: Remove.
73609
73610 2003-08-04  Paul Eggert  <eggert@twinsun.com>
73611
73612         * lib/getloadavg.c: Change copyright notice and spacing to conform to
73613         GNU coding style.
73614
73615         Merge from coreutils.
73616         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
73617         1. From glibc.
73618         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
73619         from Karl Berry, implemented by Jim Meyering.
73620         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
73621         from Dmitry V. Levin.
73622         Remove anachronistic cast of xrealloc.
73623         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
73624         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
73625         type. Otherwise, it wouldn't compile with at least /bin/cc on
73626         ymp-cray-unicos9.0.2.X.
73627         Combine two mostly-identical uses of alloca into one.
73628         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
73629
73630 2003-08-04  Dave Love  <d.love@dl.ac.uk>
73631
73632         [From Emacs.]
73633
73634         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
73635         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
73636         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
73637         obsolete NLIST_NAME_UNION.
73638         [__GNU__]: Undef BSD and FSCALE.
73639         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
73640
73641 2003-08-03  Paul Eggert  <eggert@twinsun.com>
73642
73643         * lib/stdbool_.h (_Bool): Make it signed char, instead of
73644         an enum type, so that it's guaranteed to promote to int.  See:
73645         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
73646
73647 2003-08-03  Karl Berry  <karl@gnu.org>
73648
73649         * config/depcomp: update from automake.
73650
73651 2003-07-31  Paul Eggert  <eggert@twinsun.com>
73652
73653         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
73654         (strerror): Don't assume that a printable int fits in 14 bytes.
73655
73656 2003-07-31  Bruno Haible  <bruno@clisp.org>
73657
73658         * modules/getpass-gnu: New file.
73659         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
73660
73661 2003-07-31  Bruno Haible  <bruno@clisp.org>
73662
73663         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
73664
73665 2003-07-24  Karl Berry  <karl@gnu.org>
73666
73667         * config/missing: update from automake.
73668
73669 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
73670             Bruno Haible  <bruno@clisp.org>
73671
73672         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
73673         * lib/getline.c (getline, getdelim): Likewise.
73674         Remove _GNU_SOURCE define; now it's defined in config.h through
73675         m4/getline.m4.
73676
73677 2003-07-23  Karl Berry  <karl@gnu.org>
73678
73679         * config/config.sub: update from prep.
73680
73681 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73682
73683         * modules/xalloc (Depends-on): Add exitfail.
73684         * modules/xmemcoll: Likewise.
73685
73686 2003-07-22  Paul Eggert  <eggert@twinsun.com>
73687
73688         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
73689         over-parenthesization in macros.
73690
73691         Sync with coreutils.
73692
73693         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
73694         required by C99.
73695
73696         Use `exit_failure' for xalloc and xmemcoll instead of their own
73697         private exit-failure variables.
73698         * lib/xalloc.h (xalloc_exit_failure): Remove.
73699         * lib/xmalloc.c: Likewise.  Include exitfail.h.
73700         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
73701         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
73702         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
73703         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
73704
73705 2003-07-20  Jim Meyering  <jim@meyering.net>
73706
73707         * modules/closeout (Depends-on): Add exitfail.
73708         Suggestion from Bruno Haible.
73709
73710 2003-07-19  Karl Berry  <karl@gnu.org>
73711
73712         * config/config.sub: update from prep.
73713
73714 2003-07-18  Paul Eggert  <eggert@twinsun.com>
73715
73716         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
73717         Remove.
73718         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
73719         to test that it can stand by itself.  Include "exitfail.h".
73720         Clients should set exit_failure instead.
73721         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
73722
73723 2003-07-18  Bruno Haible  <bruno@clisp.org>
73724
73725         * modules/getndelim2: New file.
73726         * modules/getline: Share files with module getndelim2.
73727         * modules/getnline: Depend on getndelim2 instead of sharing files with
73728         it. Add getnline.c to lib_SOURCES.
73729         * MODULES.html.sh (func_all_modules): Add getndelim2.
73730
73731 2003-07-18  Bruno Haible  <bruno@clisp.org>
73732
73733         * m4/getndelim2.m4: New file.
73734         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
73735         invoke gl_PREREQ_GETNDELIM2.
73736         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
73737         gl_PREREQ_GETNDELIM2.
73738         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
73739         gl_GETNDELIM2.
73740
73741 2003-07-18  Bruno Haible  <bruno@clisp.org>
73742
73743         * lib/getndelim2.h: New file.
73744         * lib/getndelim2.c: Make into a module of its own. Include config.h,
73745         getndelim2.h.
73746         (getndelim2): Make non-static. Change return type to ssize_t.
73747         * lib/getline.h: Change argument names.
73748         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
73749         * lib/getnline.c: Include getndelim2.h.
73750
73751 2003-07-18  Andreas Schwab  <schwab@suse.de>
73752
73753         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
73754
73755 2003-07-17  Karl Berry  <karl@gnu.org>
73756
73757         * config/config.sub: update from prep.
73758
73759 2003-07-17  Bruno Haible  <bruno@clisp.org>
73760
73761         * modules/getnline: New file.
73762         * modules/getline: Add lib/getndelim2.c to source file list.
73763         * MODULES.html.sh (func_all_modules): Add getnline.
73764
73765 2003-07-17  Bruno Haible  <bruno@clisp.org>
73766
73767         * m4/getnline.m4: New file.
73768
73769 2003-07-17  Bruno Haible  <bruno@clisp.org>
73770
73771         * m4/Makefile.am.in: Remove file.
73772         * m4/Makefile.am: Remove file.
73773         * m4/Makefile.in: Remove file.
73774
73775 2003-07-17  Bruno Haible  <bruno@clisp.org>
73776
73777         * lib/getnline.h: New file.
73778         * lib/getnline.c: New file.
73779         * lib/getndelim2.c: New file, extracted from getline.c.
73780         (getndelim2): Renamed from getdelim2, with added nmax argument.
73781         * lib/getline.c: Include getndelim2.c.
73782         (getdelim2): Moved out to getndelim2.c.
73783         (getline, getdelim): Update.
73784
73785 2003-07-17  Bruno Haible  <bruno@clisp.org>
73786
73787         * lib/Makefile.am: Remove file.
73788         * lib/Makefile.in: Remove file.
73789
73790 2003-07-17  Bruno Haible  <bruno@clisp.org>
73791
73792         * configure.in: Remove file.
73793         * Makefile.in: Remove file.
73794
73795 2003-07-17  Bruno Haible  <bruno@clisp.org>
73796
73797         * MODULES.html.sh: Put the </BODY> right before </HTML>.
73798
73799 2003-07-16  Karl Berry  <karl@gnu.org>
73800
73801         * config/srclist-update: was running fixlicense twice, which caused
73802                 texinfo.tex to be nullified for some reason.  Simplify,
73803                 $gplsrc is no longer needed as far as I can see?
73804
73805 2003-07-16  Jim Meyering  <jim@meyering.net>
73806
73807         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
73808
73809 2003-07-15  Paul Eggert  <eggert@twinsun.com>
73810
73811         * config/srclist.txt: Get the following files from gettext-runtime/intl
73812         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73813         ref-del.sin.  From Bruno Haible.
73814         * config/srclist-update (fixfile): Change grep pattern again, since the
73815         previous fix didn't work (there was another trailing $).  Use
73816         '[$]' to escape the $s.
73817
73818 2003-07-15  Karl Berry  <karl@gnu.org>
73819
73820         * lib/vasnprintf.c: update from gettext.
73821
73822 2003-07-15  Karl Berry  <karl@gnu.org>
73823
73824         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73825         gets expanded when surrounded by '$'.
73826
73827 2003-07-15  Jim Meyering  <jim@meyering.net>
73828
73829         * modules/save-cwd: Don't depend on error.  From Derek Price.
73830
73831 2003-07-15  Jim Meyering  <jim@meyering.net>
73832
73833         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73834
73835 2003-07-14  Simon Josefsson  <jas@extundo.com>
73836
73837         * modules/mempcpy: New file.
73838         * MODULES.html.sh (func_all_modules): Add mempcpy.
73839
73840 2003-07-14  Simon Josefsson  <jas@extundo.com>
73841
73842         * m4/mempcpy.m4: New file.
73843
73844 2003-07-14  Simon Josefsson  <jas@extundo.com>
73845
73846         * lib/mempcpy.h: New file.
73847         * lib/mempcpy.c: New file.
73848
73849 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73850
73851         * modules/getdate, modules/posixtm: Depend on mktime.
73852
73853 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73854
73855         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73856         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73857         unicodeio.c, unicodeio.h, unlocked-io.h:
73858         Switch from LGPL to GPL.
73859
73860 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73861
73862         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73863         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73864         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73865         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73866         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73867         updated automatically by ../config/srclist-update.  This changes
73868         their license from LPGL to GPL.
73869
73870 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73871
73872         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73873         assumed to refer to the root of the most recent stable gettext version.
73874         * config/srclistvars.sh: Add defaults for eggert.
73875         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73876         Match "This program" as well as "The program".  This is needed
73877         for gettext.
73878
73879 2003-07-14  Jim Meyering  <jim@meyering.net>
73880
73881         Don't emit diagnostics.  Let callers do that.
73882         * lib/save-cwd.c: Don't include "error.h".
73883         (save_cwd): Don't call error.  Ensure that errno is valid
73884         when returning nonzero.
73885
73886         * lib/save-cwd.h (restore_cwd): Update prototype.
73887         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73888         Simplify.  Don't call error upon failure.  Let callers do that.
73889         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73890         when auditing is enabled.  But don't bother updating the #if.
73891
73892 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73893
73894         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73895         it breaks C++ compilation.
73896         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73897
73898 2003-07-10  Simon Josefsson  <jas@extundo.com>
73899
73900         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73901
73902 2003-07-10  Jim Meyering  <jim@meyering.net>
73903
73904         * m4/clock_time.m4: Remove trailing blank.
73905         * m4/intmax_t.m4: Likewise.
73906
73907 2003-07-10  Jim Meyering  <jim@meyering.net>
73908
73909         * lib/vasnprintf.c: Remove trailing blanks.
73910         Make cpp indentation consistent.
73911
73912 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73913
73914         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73915         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73916         Switch from LGPL to GPL.
73917
73918 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73919
73920         * config/srclist.txt: Sort sublists.  Add
73921         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73922         that differ from gnulib for one reason or another; we'd like this list
73923         to be smaller but for now let's document what we have.
73924
73925 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73926
73927         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73928         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73929         and sweeter "eval x=$x".
73930         * config/srclist.txt: Get lib/argp* from glibc.
73931
73932 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73933
73934         * lib/mktime.c: Fix some boundary cases and remove need for floating
73935         point.
73936
73937         Issue a compile-time diagnostic if time_t is floating point, or if
73938         two's complement arithmetic is not in effect, or if arithmetic
73939         right shift does not propagate the sign.  These assumptions were
73940         all in the original code but they weren't checked.
73941
73942         (TIME_T_MIDPOINT, verify): New macros.
73943         (__isleap): Remove; it has integer overflow problems.
73944         (leapyear): New function, without those problems.
73945         (ydhms_tm_diff): Remove; splitting into two parts.
73946         (ydhms_diff): New function, containing the arithmetic part of
73947         the old ydhms_tm_diff function.  Issue a compile-time
73948         diagnostic if we are not using C99 integer division.
73949         Avoid casts when possible.
73950         (guess_time_tm): New function, containing the checking part of
73951         the old ydhms_tm_diff function.  Return the new value, rather than
73952         the difference between it and the old.  Accept a new argument T
73953         so that *T specifies the old value.  Check for overflow in the result.
73954
73955         (__mktime_internal): Use a time_t offset, not a long int offset.
73956         This undoes the 2003-06-04 change, which is no longer needed now
73957         that we have better overflow checking.
73958         (localtime_offset): Likewise.
73959
73960         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73961         and long are 64-bit but int is only 32-bit.
73962         (ydhms_diff): Use long int to store year1 and yday1.
73963         Issue a compile-time diagnostic if long int is not wide enough.
73964
73965         (__mktime_internal): Use long int to store adjusted year and yday.
73966         Use plain C rather than preprocessor commands, if that doesn't
73967         affect efficiency.
73968         Check for overflow (and try to repair) after each probe
73969         rather than checking only at the very end.  This avoids some bugs
73970         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73971         does not equal GMT offset at maximum time).
73972         Use integer to check for overflow rather than floating point; this
73973         is more portable to non-IEEE hosts, and is a tad faster.
73974         When we detect that we are oscillating between two values,
73975         don't check whether tm_isdst has the requested value, since
73976         we already know the answer.  When tm_isdst has the wrong value,
73977         use a different heuristic to find the right one, based on the
73978         extreme values actually observed in practice in tz2003a,
73979         rather than the (overly optimistic) "previous 3 calendar quarters".
73980
73981         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73982         "T const" to accommodate glibc style.
73983         (check_result): Use less-confusing report format.  "long" -> "long int.
73984         (main): Likewise.
73985         Don't loop if the iteration overflows time_t.
73986         Allow a negative step in the iteration.
73987
73988 2003-07-06  Karl Berry  <karl@gnu.org>
73989
73990         * config/depcomp: update from automake.
73991         * config/config.sub: update from prep.
73992
73993 2003-07-03  Karl Berry  <karl@gnu.org>
73994
73995         * config/config.guess: update from prep.
73996
73997 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73998
73999         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74000         xreadlink.c now includes it unconditionally.
74001
74002 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74003
74004         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74005         having it depend on HAVE_SYS_TYPES_H.
74006
74007 2003-07-01  Bruno Haible  <bruno@clisp.org>
74008
74009         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74010         <sys/types.h> should be sufficient.
74011         Reported by Paul Eggert.
74012
74013 2003-06-26  Karl Berry  <karl@gnu.org>
74014
74015         * config/depcomp: update from automake.
74016
74017 2003-06-26  Bruno Haible  <bruno@clisp.org>
74018
74019         * modules/human: Depend on module stdbool.
74020
74021 2003-06-25  Bruno Haible  <bruno@clisp.org>
74022
74023         * modules/readlink: New file.
74024         * modules/xreadlink: Depend on it.
74025         * MODULES.html.sh (func_all_modules): Add readlink.
74026
74027 2003-06-25  Bruno Haible  <bruno@clisp.org>
74028
74029         * m4/readlink.m4: New file.
74030
74031 2003-06-25  Bruno Haible  <bruno@clisp.org>
74032
74033         * lib/readlink.c: New file.
74034
74035 2003-06-22  Karl Berry  <karl@gnu.org>
74036
74037         * config/srclist.txt: update mkinstalldirs from automake.
74038         * config/mkinstalldirs: update.
74039
74040 2003-06-22  Bruno Haible  <bruno@clisp.org>
74041
74042         Portability to mingw32.
74043         * m4/ssize_t.m4: New file, from GNU gettext.
74044         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74045         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74046
74047 2003-06-22  Bruno Haible  <bruno@clisp.org>
74048
74049         * modules/safe-read: Add m4/ssize_t.m4.
74050         * modules/xreadlink: Add m4/ssize_t.m4.
74051
74052 2003-06-20  Bruno Haible  <bruno@clisp.org>
74053
74054         Assume C89, so PARAMS isn't needed.
74055         * lib/unicodeio.h (PARAMS): Remove.
74056         * lib/unicodeio.c: Don't use PARAMS.
74057
74058 2003-06-18  Karl Berry  <karl@gnu.org>
74059
74060         * config/config.{guess,sub}: update from prep.
74061
74062 2003-06-18  Jim Meyering  <jim@meyering.net>
74063
74064         Merge changes from coreutils.
74065         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74066         Remove explicit declarations of xmalloc and realloc.
74067         Include xalloc.h.
74068         (read_utmp): Remove anachronistic cast of xmalloc.
74069
74070 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74071
74072         Assume C89, so PARAMS isn't needed.
74073         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74074         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74075         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74076         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74077         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74078         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74079         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74080         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74081         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74082         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74083         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74084         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74085         no longer needed. Anyway, config.h should always be included before any
74086         other file.
74087
74088 2003-06-11  Simon Josefsson  <jas@extundo.com>
74089
74090         * modules/sysexits: New file.
74091         * MODULES.html.sh (func_all_modules): Add sysexits.
74092
74093 2003-06-11  Simon Josefsson  <jas@extundo.com>
74094
74095         * lib/sysexit_.h: New file.
74096
74097 2003-06-11  Derek Price  <derek@ximbiot.com>
74098
74099         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74100         necessary.
74101
74102 2003-06-11  Bruno Haible  <bruno@clisp.org>
74103
74104         * m4/sysexits.m4: New file.
74105
74106 2003-06-10  Simon Josefsson  <jas@extundo.com>
74107
74108         * lib/argp.h: New file, from glibc.
74109         * lib/argp-ba.c: New file, from glibc.
74110         * lib/argp-eexst.c: New file, from glibc.
74111         * lib/argp-fmtstream.c: New file, from glibc.
74112         * lib/argp-fmtstream.h: New file, from glibc.
74113         * lib/argp-fs-xinl.c: New file, from glibc.
74114         * lib/argp-help.c: New file, from glibc.
74115         * lib/argp-namefrob.h: New file, from glibc.
74116         * lib/argp-parse.c: New file, from glibc.
74117         * lib/argp-pv.c: New file, from glibc.
74118         * lib/argp-pvh.c: New file, from glibc.
74119         * lib/argp-xinl.c: New file, from glibc.
74120
74121 2003-06-10  Simon Josefsson  <jas@extundo.com>
74122
74123         * modules/strchrnul: New file.
74124
74125 2003-06-10  Simon Josefsson  <jas@extundo.com>
74126
74127         * modules/argp: New file.
74128
74129 2003-06-10  Simon Josefsson  <jas@extundo.com>
74130
74131         * m4/strchrnul.m4: New file.
74132
74133 2003-06-10  Simon Josefsson  <jas@extundo.com>
74134
74135         * lib/strchrnul.h: New file.
74136         * lib/strchrnul.c: New file.
74137
74138 2003-06-10  Bruno Haible  <bruno@clisp.org>
74139
74140         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74141
74142 2003-06-07  Karl Berry  <karl@gnu.org>
74143
74144         * config/config.{guess,sub}: update from prep.
74145
74146 2003-06-07  Jim Meyering  <jim@meyering.net>
74147
74148         * modules/strtod: Use $(...) notation, not @...@ for
74149         AC_REPLACE'd variables.
74150         * modules/localcharset: Likewise.
74151
74152 2003-06-07  Jim Meyering  <jim@meyering.net>
74153
74154         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74155         in place of my name in the copyright comment.
74156         Remove definition and uses of __P.
74157
74158         From coreutils.
74159         * lib/stat.c: Don't declare xmalloc explicitly.
74160         Instead, include "xalloc.h".
74161         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74162         xrealloc, and xcalloc return values.
74163         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74164         Improve comment.
74165         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74166
74167 2003-06-07  Bruno Haible  <bruno@clisp.org>
74168
74169         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74170         avoid AC_CONFIG_LINKS.
74171         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74172         fnmatch.h, to avoid AC_CONFIG_LINKS.
74173         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74174
74175 2003-06-07  Bruno Haible  <bruno@clisp.org>
74176
74177         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74178         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74179         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74180         directory.
74181         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74182         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74183         directory.
74184
74185 2003-06-06  Jim Meyering  <jim@meyering.net>
74186
74187         Merge from coreutils.
74188         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74189         Consolidate declarations and initializations of *_base* locals.
74190
74191         Merge from coreutils.
74192         This avoids a core dump on systems without GNU putenv,
74193         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74194         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74195         (unsetenv): New static function, from GNU libc.
74196         (rpl_putenv): Use it.
74197
74198         * lib/modechange.c: Remove trailing blanks.
74199
74200         Merge from coreutils.
74201         * lib/fsusage.c: Remove declaration of statfs.
74202         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74203
74204         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74205
74206 2003-06-06  Jim Meyering  <jim@meyering.net>
74207
74208         * lib/stdbool_.h: Renamed from stdbool.h.in.
74209
74210 2003-06-06  Jim Meyering  <jim@meyering.net>
74211             Bruno Haible  <bruno@clisp.org>
74212
74213         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74214         Adjust Makefile.am snippet not to redirect directly to target.
74215         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74216
74217 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74218
74219         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74220         mismatch, look in future quarters as well as past.  This fixes a
74221         bug when processing fall-backwards gaps immediately after a long
74222         period of daylight-saving time.
74223
74224         * lib/mktime.c: Assume freestanding C89 or better.
74225         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74226         (__P): Remove; not used.
74227         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74228         (mktime, not_equal_tm, print_tm, check_result,
74229         main): Use prototypes.  Use const * where appropriate.
74230         (main): Fix typo in testing code that uncovered by above changes.
74231         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74232
74233 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74234
74235         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74236         locale.h, localeconv.  This merges changes from coreutils.
74237
74238         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74239         It can be removed after the next Autoconf is released.
74240         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74241         needed.
74242
74243 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74244
74245         * lib/mktime.c: Fix Debian bug 177940
74246         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74247         (localtime_offset): Now long int, not time_t, because we want it
74248         to be guaranteed to be signed.  All uses changed.
74249         (__mktime_internal): If overflow would occur when adding offset,
74250         don't add it.
74251
74252         Merge 'human' changes from coreutils.  Rewrite to support
74253         locale-specific notations like thousands separators.
74254         * lib/human.c: Simplify authorship notice.
74255         Include human.h immediately after config.h.
74256         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74257         <limits.h>: Do not include, since human.h does.
74258         (SIZE_MAX, UINTMAX_MAX): New macros.
74259         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74260         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74261         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74262         (power_letter): Renamed from suffixes.
74263         (generate_suffix_backwards): Remove.
74264         (adjust_value): Now takes int style (because of human.h changes)
74265         and long double value (for greater precision on some platforms).
74266         (group_number): New function.
74267         (human_readable): Use it.  Use integer options, not enum.
74268         Put the options before the sizes in the arg list.
74269         Support all the new options.
74270         The old human_readable function has been removed;
74271         use inttostr.h instead.
74272         (human_readable, default_block_size, humblock):
74273         Use uintmax_t, not int, for block sizes.
74274         (human_readable_inexact, block_size_types): Remove.
74275         (block_size_opts): New constant.
74276         (human_options): Renamed from human_block_size, with new signature
74277         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74278         * lib/human.h: Add copyright and authorship notice.
74279         Include <limits.h> and <stdbool.h> unconditionally.
74280         (PARAMS): Remove.  All uses removed.
74281         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74282         (enum human_inexact_style): Remove tag; now a nameless enum.
74283         (human_floor, human_ceiling, human_round_to_even): Now have
74284         values 2, 0, 1 rather than -1, 1, 0.
74285         (human_group_digits, human_suppress_point_zero, human_autoscale,
74286         human_base_1024, human_SI, human_B): New constants.
74287         (human_readable_inexact, human_block_size): Remove.
74288         (human_readable): Size args are now uintmax_t, not int.
74289         (human_options): New decl.
74290
74291         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74292         unnecessary now that we assume C89 or better.  This change
74293         imported from coreutils.
74294
74295         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74296         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74297         in the 2003-05-30 sync from glibc.
74298
74299         .h files should stand alone, but we shouldn't include <sys/types.h>
74300         if we can get away with just <stddef.h>.
74301
74302         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74303         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74304         rather than <sys/types.h>, as we merely need size_t.
74305         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74306         to get size_t.
74307         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74308         Include <stdio.h>, to get FILE.
74309         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74310         memcasecmp.h has included <stddef.h> and all we need is size_t.
74311         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74312         our interface, instead of including <sys/types.h>
74313
74314 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74315
74316         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74317         now, as glibc mktime is buggy on non-glibc systems.
74318
74319 2003-06-03  Karl Berry  <karl@gnu.org>
74320
74321         * config/config.sub: update from prep.
74322
74323 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74324
74325         [from coreutils]
74326         Fix some minor time-related bugs with POSIX time arguments.
74327         Some valid time stamps were being rejected (notably -1, and
74328         time stamps before 1900 on 64-bit hosts).  And some invalid
74329         time stamps were being accepted, e.g. September 31.
74330
74331         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74332         that we can return (time_t) -1 successfully.
74333         * lib/posixtm.c: Likewise.
74334         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74335         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74336         (t): Remove static var.
74337         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74338         of static var.  All uses changed.
74339         (year): Do not reject years before 1900; they can occur with
74340         64-bit time_t.
74341         (posix_time_parse): Do not check for out-of-range components;
74342         that is now the caller's responsibility, since our checks were
74343         only approximations.
74344         (posixtime): Use mktime to check for out-of-range components,
74345         since it knows them exactly.
74346         If mktime returns (time_t) -1, check whether an error actually occurred
74347         by invoking localtime on -1.
74348         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74349         posixtime failures better.
74350         Improve the test data (in comments only).
74351
74352 2003-06-02  Karl Berry  <karl@gnu.org>
74353
74354         * config/mkinstalldirs (version): new variable.
74355         (--version): new option.
74356         (usage): improve message.
74357
74358 2003-05-30  Karl Berry  <karl@gnu.org>
74359
74360         * lib/mktime.c: update from libc.
74361
74362 2003-05-30  Bruno Haible  <bruno@clisp.org>
74363
74364         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74365         * config/config.rpath: Upgrade to gettext-0.12.1.
74366
74367 2003-05-30  Bruno Haible  <bruno@clisp.org>
74368
74369         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74370         * m4/nls.m4: New file, from gettext-0.12.1.
74371         * m4/po.m4: New file, from gettext-0.12.1.
74372         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74373
74374 2003-05-30  Bruno Haible  <bruno@clisp.org>
74375
74376         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74377         * lib/localcharset.h: Likewise.
74378         * lib/localcharset.c: Likewise.
74379
74380 2003-05-29  Karl Berry  <karl@gnu.org>
74381
74382         * config/config.rpath: update from gettext.
74383
74384 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74385
74386         Assume the headers required for C89 freestanding compilers.
74387         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74388         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74389         * m4/human.m4 (gl_HUMAN): Likewise.
74390         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74391         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74392         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74393         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74394         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74395         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74396
74397 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74398
74399         Assume the headers required for C89 freestanding compilers.
74400         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74401         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74402         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74403         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74404         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74405         define, since <limits.h> is guaranteed to do that.
74406         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74407         * lib/exclude.c: Include <stdbool.h> unconditionally.
74408         * lib/tempname.c: Include <stddef.h> unconditionally.
74409         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74410         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74411         <stddef.h> does that.
74412         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74413         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74414         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74415         needed.
74416         * lib/xstrtol.c: Likewise.
74417         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74418         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74419
74420         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74421         warnings on some platforms.
74422
74423         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74424         arbitrarily.
74425
74426 2003-05-26  Jim Meyering  <jim@meyering.net>
74427
74428         Merge in a change from coreutils:
74429         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74430         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74431         that condition, rather than `-1' which is slightly misleading.
74432         Change the name of the cache variable to have the gl_ prefix.
74433         Prompted by a patch from Richard Dawe for DJGPP.
74434
74435 2003-05-24  Karl Berry  <karl@gnu.org>
74436
74437         * config/config.guess: update from prep.
74438
74439 2003-05-22  Karl Berry  <karl@gnu.org>
74440
74441         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74442
74443 2003-05-20  Karl Berry  <karl@gnu.org>
74444
74445         * config/config.guess: update from prep.
74446
74447 2003-05-18  Karl Berry  <karl@gnu.org>
74448
74449         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74450         might actually be set by the user.
74451
74452         * config/depcomp, install-sh, mdate-sh: update from automake.
74453
74454 2003-05-17  Bruno Haible  <bruno@clisp.org>
74455
74456         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74457         invalid expansion for AC_EGREP_CPP.
74458         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74459         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74460         Suggested by Akim Demaille <akim@epita.fr> in
74461         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74462
74463 2003-05-12  Jim Meyering  <jim@meyering.net>
74464
74465         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74466         the space-padded-by-default conversion specifiers, %e, %k, %l.
74467
74468 2003-05-12  Bruno Haible  <bruno@clisp.org>
74469
74470         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74471         the string is longer than 4 KB.
74472
74473 2003-05-11  Karl Berry  <karl@gnu.org>
74474
74475         * config/config.{guess,sub}: update from prep.
74476
74477 2003-05-09  Bruno Haible  <bruno@clisp.org>
74478
74479         * modules/error: Add m4/strerror_r.m4 to file list.
74480
74481 2003-05-03  Bruno Haible  <bruno@clisp.org>
74482
74483         Upgrade to Unicode-4.0.
74484         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74485         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74486         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74487         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74488         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74489         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74490         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74491         Change width of U+E0100..U+E01EF from 1 to 0.
74492
74493 2003-04-25  Jim Meyering  <jim@meyering.net>
74494
74495         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74496         of type size_t, not int.
74497
74498 2003-04-25  Bruno Haible  <bruno@clisp.org>
74499
74500         * lib/copy-file.c: Include <stddef.h>, for size_t.
74501
74502 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74503
74504         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74505         code which expansion is under static control.  Patch imported from
74506         Akim Demaille's patch to Bison; see
74507         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74508
74509 2003-04-14  Bruno Haible  <bruno@clisp.org>
74510
74511         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74512
74513 2003-04-11  Jim Meyering  <jim@meyering.net>
74514
74515         Merge changes from Coreutils.
74516
74517         2003-03-22  Jim Meyering  <jim@meyering.net>
74518
74519         * lib/strftime.c (widen): Cast alloca return value to proper type.
74520
74521         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74522
74523         From GNU libc.
74524         * lib/strftime.c (my_strftime): Handle very large width
74525         specifications for numeric values correctly.  Improve checks for
74526         overflow.
74527
74528         2003-01-19  Jim Meyering  <jim@meyering.net>
74529
74530         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74531         definitions.
74532         (nl_get_alt_digit) [! defined my_strftime]: Define.
74533         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74534         _nl_get_alt_digit and _nl_get_walt_digit.
74535
74536         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74537         libc. These changes have no effect outside of _LIBC.
74538
74539 2003-04-10  Bruno Haible  <bruno@clisp.org>
74540
74541         * modules/findprog: New file.
74542         * MODULES.html.sh (func_all_modules): Add it.
74543
74544 2003-04-10  Bruno Haible  <bruno@clisp.org>
74545
74546         * m4/findprog.m4: New file.
74547         * m4/eaccess.m4: New file.
74548
74549 2003-04-10  Bruno Haible  <bruno@clisp.org>
74550
74551         * lib/findprog.h: New file, from GNU gettext.
74552         * lib/findprog.c: New file, from GNU gettext.
74553
74554 2003-04-05  Jim Meyering  <jim@meyering.net>
74555
74556         Merge changes from Coreutils.
74557
74558         * lib/exclude.h (PARAMS): Remove definition and uses.
74559         * lib/exclude.c: Remove uses of `PARAMS'.
74560
74561         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
74562         Add test-cases for DOS filenames. Declare program_name.
74563         (main): Set up program_name.  Patch by Rich Dawe.
74564
74565         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
74566         error from mntctl.
74567         Use mntctl's return value to drive the entry-processing loop, since
74568         we can't rely on the value of the vmt_length member in the last
74569         entry.  On some systems doing so could result in exhausting
74570         virtual memory.  Based in part on a patch from Mike Jetzer.
74571
74572 2003-04-04  Bruno Haible  <bruno@clisp.org>
74573
74574         * modules/linebreak: New file.
74575         * MODULES.html.sh (func_all_modules): Add it.
74576
74577 2003-04-04  Bruno Haible  <bruno@clisp.org>
74578
74579         * m4/linebreak.m4: New file.
74580
74581 2003-04-04  Bruno Haible  <bruno@clisp.org>
74582
74583         * lib/linebreak.h: New file, from GNU gettext.
74584         * lib/linebreak.c: New file, from GNU gettext with slight
74585         modifications.
74586         * lib/lbrkprop.h: New file, from GNU gettext.
74587
74588 2003-04-03  Bruno Haible  <bruno@clisp.org>
74589
74590         * modules/utf8-ucs4: New file.
74591         * modules/utf16-ucs4: New file.
74592         * modules/ucs4-utf8: New file.
74593         * modules/ucs4-utf16: New file.
74594         * MODULES.html.sh (func_all_modules): Add them.
74595
74596 2003-04-03  Bruno Haible  <bruno@clisp.org>
74597
74598         * m4/utf-ucs4.m4: New file.
74599         * m4/ucs4-utf.m4: New file.
74600
74601 2003-04-03  Bruno Haible  <bruno@clisp.org>
74602
74603         * lib/utf8-ucs4.h: New file, from GNU gettext.
74604         * lib/utf16-ucs4.h: New file, from GNU gettext.
74605         * lib/ucs4-utf8.h: New file, from GNU gettext.
74606         * lib/ucs4-utf16.h: New file, from GNU gettext.
74607
74608 2003-04-02  Bruno Haible  <bruno@clisp.org>
74609
74610         * modules/binary-io: New file.
74611         * MODULES.html.sh (func_all_modules): Add it.
74612
74613 2003-04-02  Bruno Haible  <bruno@clisp.org>
74614
74615         * lib/binary-io.h: New file, from GNU gettext.
74616
74617 2003-04-01  Bruno Haible  <bruno@clisp.org>
74618
74619         * modules/pathname: New file.
74620         * MODULES.html.sh (func_all_modules): Add it.
74621
74622 2003-04-01  Bruno Haible  <bruno@clisp.org>
74623
74624         * lib/pathname.h: New file, from GNU gettext.
74625         * lib/concatpath.c: New file, from GNU gettext.
74626
74627 2003-03-30  Bruno Haible  <bruno@clisp.org>
74628
74629         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
74630
74631 2003-03-30  Bruno Haible  <bruno@clisp.org>
74632
74633         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
74634         function chown() doesn't exist.
74635
74636 2003-03-28  Bruno Haible  <bruno@clisp.org>
74637
74638         * modules/copy-file: New file.
74639         * MODULES.html.sh (func_all_modules): Add it.
74640
74641 2003-03-28  Bruno Haible  <bruno@clisp.org>
74642
74643         * m4/copy-file.m4: New file.
74644
74645 2003-03-28  Bruno Haible  <bruno@clisp.org>
74646
74647         * lib/copy-file.h: New file, from GNU gettext.
74648         * lib/copy-file.c: New file, from GNU gettext.
74649
74650 2003-03-18  Jim Meyering  <jim@meyering.net>
74651
74652         * lib/quote.c (quote_n): Fix typo in comment.
74653
74654 2003-03-18  Bruno Haible  <bruno@clisp.org>
74655
74656         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
74657         checking.
74658         * m4/onceonly_2_57.m4: Likewise.
74659
74660 2003-03-17  Bruno Haible  <bruno@clisp.org>
74661
74662         * m4/onceonly.m4: Require autoconf 2.54 or newer.
74663         (m4_quote): Remove macro.
74664         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
74665
74666 2003-03-14  Jim Meyering  <jim@meyering.net>
74667
74668         Merge changes from Coreutils.
74669         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
74670         to be const, in order to avoid warnings.
74671         (obstack_room): Likewise.
74672         (obstack_empty_p): Likewise.
74673
74674 2003-03-14  Bruno Haible  <bruno@clisp.org>
74675
74676         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
74677         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
74678
74679 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74680
74681         Merge changes from Bison.
74682         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
74683         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
74684         when compiling Bison 1.875's `bitset bset = obstack_alloc
74685         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
74686         * lib/hash.c: Include <stdbool.h> unconditionally.
74687
74688 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74689
74690         * m4/onceonly.m4 (m4_quote): New macro.
74691         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
74692         Quote AC_FOREACH variable-expansions properly.
74693
74694 2003-03-13  Paul Eggert  <eggert@twinsun.com>
74695
74696         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
74697
74698 2003-03-09  Paul Eggert  <eggert@twinsun.com>
74699
74700         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
74701         Reported by Bruce Becker; see:
74702         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
74703
74704 2003-03-03  Paul Eggert  <eggert@twinsun.com>
74705             Bruno Haible  <bruno@clisp.org>
74706
74707         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
74708         Reported by John Hughes, see
74709         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
74710
74711 2003-02-20  Bruno Haible  <bruno@clisp.org>
74712
74713         * MODULES.html.sh (func_all_modules): Add poll.
74714
74715 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74716
74717         * modules/poll: New file.
74718
74719 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74720
74721         * lib/poll_.h: New file.
74722         * lib/poll.c: New file.
74723
74724 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
74725
74726         * m4/poll.m4: New file.
74727
74728 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74729
74730         * modules/mathl: New file.
74731
74732 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74733
74734         * lib/mathl.h: New file.
74735         * lib/acosl.c: New file.
74736         * lib/asinl.c: New file.
74737         * lib/atanl.c: New file.
74738         * lib/ceill.c: New file.
74739         * lib/cosl.c: New file.
74740         * lib/expl.c: New file.
74741         * lib/floorl.c: New file.
74742         * lib/frexpl.c: New file.
74743         * lib/ldexpl.c: New file.
74744         * lib/logl.c: New file.
74745         * lib/sincosl.c: New file.
74746         * lib/sinl.c: New file.
74747         * lib/sqrtl.c: New file.
74748         * lib/tanl.c: New file.
74749         * lib/trigl.c: New file.
74750         * lib/trigl.h: New file.
74751
74752 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
74753
74754         * m4/mathl.m4: New file.
74755
74756 2003-02-18  Bruno Haible  <bruno@clisp.org>
74757
74758         * MODULES.html.sh (func_all_modules): Add mathl.
74759
74760 2003-02-17  Bruno Haible  <bruno@clisp.org>
74761
74762         * modules/mkdtemp: New module.
74763         * MODULES.html.sh (func_all_modules): Add it.
74764
74765 2003-02-17  Bruno Haible  <bruno@clisp.org>
74766
74767         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
74768
74769 2003-02-17  Bruno Haible  <bruno@clisp.org>
74770
74771         * lib/mkdtemp.h: New file, from GNU gettext.
74772         * lib/mkdtemp.c: New file, from GNU gettext.
74773
74774 2003-02-02  Jim Meyering  <jim@meyering.net>
74775
74776         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
74777         e.g. glibc-2.2.93.
74778
74779 2003-01-31  Bruno Haible  <bruno@clisp.org>
74780
74781         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
74782         'rpl_rename'.
74783         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
74784         'rpl_strnlen'.
74785         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
74786         'rpl_strtod'.
74787         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
74788         'rpl_utime'.
74789
74790 2003-01-31  Bruno Haible  <bruno@clisp.org>
74791
74792         * lib/rename.c: #undef rename before defining rpl_rename.
74793         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
74794
74795 2003-01-30  Bruno Haible  <bruno@clisp.org>
74796
74797         * modules/vasnprintf, modules/vasprintf: New modules.
74798         * MODULES.html.sh (func_all_modules): Add them.
74799
74800 2003-01-30  Bruno Haible  <bruno@clisp.org>
74801
74802         * m4/signed.m4: New file, from GNU gettext.
74803         * m4/longdouble.m4: New file, from GNU gettext.
74804         * m4/wchar_t.m4: New file, from GNU gettext.
74805         * m4/wint_t.m4: New file, from GNU gettext.
74806         * m4/vasnprintf.m4: New file.
74807         * m4/vasprintf.m4: New file.
74808
74809 2003-01-30  Bruno Haible  <bruno@clisp.org>
74810
74811         * lib/printf-args.h: New file, from GNU gettext.
74812         * lib/printf-args.c: New file, from GNU gettext.
74813         * lib/printf-parse.h: New file, from GNU gettext.
74814         * lib/printf-parse.c: New file, from GNU gettext.
74815         * lib/vasnprintf.h: New file, from GNU gettext.
74816         * lib/vasnprintf.c: New file, from GNU gettext.
74817         * lib/asnprintf.c: New file, from GNU gettext.
74818         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74819         * lib/vasprintf.c: New file, from GNU gettext.
74820         * lib/asprintf.c: New file, from GNU gettext.
74821
74822 2003-01-29  Bruno Haible  <bruno@clisp.org>
74823
74824         * modules/stpncpy: New module.
74825         * MODULES.html.sh (func_all_modules): Add it.
74826
74827 2003-01-29  Bruno Haible  <bruno@clisp.org>
74828
74829         * m4/stpncpy.m4: New file.
74830
74831 2003-01-29  Bruno Haible  <bruno@clisp.org>
74832
74833         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74834         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74835
74836 2003-01-28  Bruno Haible  <bruno@clisp.org>
74837
74838         * modules/c-ctype: New module.
74839         * MODULES.html.sh (func_all_modules): Add it.
74840
74841 2003-01-28  Bruno Haible  <bruno@clisp.org>
74842
74843         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74844         Paul Eggert.
74845         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74846         Paul Eggert.
74847
74848 2003-01-27  Bruno Haible  <bruno@clisp.org>
74849
74850         * modules/xsetenv: New module.
74851         * MODULES.html.sh (func_all_modules): Add it.
74852
74853 2003-01-27  Bruno Haible  <bruno@clisp.org>
74854
74855         * lib/xsetenv.h: New file, from GNU gettext.
74856         * lib/xsetenv.c: New file, from GNU gettext.
74857
74858 2003-01-23  Jim Meyering  <jim@meyering.net>
74859
74860         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74861         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74862
74863 2003-01-23  Bruno Haible  <bruno@clisp.org>
74864
74865         * modules/minmax: New module.
74866         * MODULES.html.sh (func_all_modules): Add it.
74867
74868 2003-01-23  Bruno Haible  <bruno@clisp.org>
74869
74870         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74871         Eggert.
74872
74873 2003-01-22  Bruno Haible  <bruno@clisp.org>
74874
74875         * modules/exit: New module.
74876         * MODULES.html.sh (func_all_modules): Add it.
74877
74878 2003-01-22  Bruno Haible  <bruno@clisp.org>
74879
74880         * lib/exit.h: New file, from GNU gettext.
74881
74882 2003-01-19  Bruno Haible  <bruno@clisp.org>
74883
74884         * gnulib-tool: Recognize option --extract-maintainer.
74885         (func_get_maintainer): New function.
74886         * modules/*: Add Maintainer entry.
74887
74888 2003-01-16  Jim Meyering  <jim@meyering.net>
74889
74890         * m4/regex.m4: The `regex' struct is both input and output.
74891         Initialize it before each use.  Patch by Tim Waugh.
74892
74893 2003-01-16  Bruno Haible  <bruno@clisp.org>
74894
74895         * MODULES.html.sh: Add a table of contents. Add the module name as
74896         leftmost column. Add hyperlinks.
74897
74898 2003-01-15  Bruno Haible  <bruno@clisp.org>
74899
74900         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74901
74902 2003-01-15  Bruno Haible  <bruno@clisp.org>
74903
74904         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74905         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74906         suffix.
74907
74908 2003-01-15  Bruno Haible  <bruno@clisp.org>
74909
74910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74911
74912 2003-01-15  Bruno Haible  <bruno@clisp.org>
74913
74914         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74915         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74916
74917 2003-01-14  Jim Meyering  <jim@meyering.net>
74918
74919         * lib/same.c (same_name): Tweak a comment.
74920
74921 2003-01-14  Bruno Haible  <bruno@clisp.org>
74922
74923         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74924         when a string comparison is sufficient.
74925
74926 2003-01-14  Bruno Haible  <bruno@clisp.org>
74927
74928         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74929         'unsigned int'.
74930
74931 2003-01-14  Bruno Haible  <bruno@clisp.org>
74932
74933         * lib/hash-pjw.c: Add comment about low quality of this function.
74934
74935 2003-01-13  Bruno Haible  <bruno@clisp.org>
74936
74937         * modules/stpcpy: Distribute lib/stpcpy.h.
74938         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74939
74940 2003-01-13  Bruno Haible  <bruno@clisp.org>
74941
74942         * modules/*: Add a description.
74943         * modules/strpbrk: Fix Makefile.am snippet.
74944         * modules/strtoimax: Fix dependencies.
74945         * modules/strtoumax: Likewise.
74946
74947 2003-01-13  Bruno Haible  <bruno@clisp.org>
74948
74949         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74950         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74951         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74952
74953 2003-01-13  Bruno Haible  <bruno@clisp.org>
74954
74955         * gnulib-tool (func_create_testdir): Store config/* files in the main
74956         directory.
74957         * config.rpath: Move to ...
74958         * config/config.rpath: ... here.
74959         * modules/gettext: Contains config/config.rpath, not config.rpath.
74960         * modules/iconv: Likewise.
74961
74962 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74963
74964         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74965         to avoid collisions with libcurses and libreadline.
74966
74967         * m4/getstr.m4: Remove.
74968         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74969
74970 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74971
74972         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74973         to avoid collisions with libcurses and libreadline.
74974
74975         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74976         * lib/getstr.h, getstr.c: Remove.
74977         * lib/getline.c: Include "getline.h", to check interface.
74978         Move body of old getstr.c here: this defines MIN_CHUNK and
74979         declares getdelim2, which is renamed from getstr.
74980         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74981
74982         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74983         All uses changed.
74984         * lib/linebuffer.h: Likewise.
74985         (readline): Remove backward-compatibility macro.
74986
74987 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74988
74989         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74990         to avoid collisions with libcurses and libreadline.
74991         * getstr: Remove.
74992         * MODULES.html.sh: Remove getstr.
74993         * modules/getline: Depend on unlocked-io, not getstr.
74994
74995 2003-01-12  Jim Meyering  <jim@meyering.net>
74996
74997         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74998
74999 2003-01-10  Bruno Haible  <bruno@clisp.org>
75000
75001         * modules/alloca: Change Makefile.am requirements. Simplify Include
75002         requirements. Add lib/alloca_.h to file list.
75003
75004 2003-01-10  Bruno Haible  <bruno@clisp.org>
75005
75006         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75007
75008 2003-01-10  Bruno Haible  <bruno@clisp.org>
75009
75010         * lib/alloca_.h: New file.
75011         * lib/getdate.y: Unconditionally include alloca.h.
75012         * lib/makepath.c: Likewise.
75013         * lib/setenv.c: Likewise.
75014         * lib/userspec.c: Likewise.
75015
75016 2003-01-09  Karl Berry  <karl@gnu.org>
75017
75018         * MODULES.html.sh: include `dirname $0` in PATH, to find
75019         gnulib-tool.
75020
75021 2003-01-09  Bruno Haible  <bruno@clisp.org>
75022
75023         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75024         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75025
75026 2003-01-09  Bruno Haible  <bruno@clisp.org>
75027
75028         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75029
75030 2003-01-09  Bruno Haible  <bruno@clisp.org>
75031
75032         * lib/stdbool.h.in: New file.
75033
75034 2003-01-09  Bruno Haible  <bruno@clisp.org>
75035
75036         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75037         * MODULES.html.sh: Likewise.
75038
75039 2003-01-08  Jim Meyering  <jim@meyering.net>
75040
75041         * lib/full-write.c: Undefine and define-away `const' after inclusion
75042         of errno.h, not before.  Suggestion from Bruno Haible.
75043
75044 2003-01-08  Bruno Haible  <bruno@clisp.org>
75045
75046         * modules/full-read: Depend on full-write.
75047
75048 2003-01-08  Bruno Haible  <bruno@clisp.org>
75049
75050         * lib/safe-read.c: Include specification header first, to ensure its
75051         selfcontainedness.
75052         * lib/full-write.c: Likewise.
75053
75054 2003-01-07  Jim Meyering  <jim@meyering.net>
75055
75056         * lib/full-write.c: Rework so that it may serve to define full_read,
75057         too.
75058         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75059
75060 2003-01-07  Bruno Haible  <bruno@clisp.org>
75061
75062         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75063         <inttypes.h>.
75064         * lib/xstrtol.h: Likewise.
75065         * lib/xstrtoimax.c: Likewise.
75066         * lib/xstrtoumax.c: Likewise.
75067         * lib/human.h: Likewise.
75068
75069         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75070         on systems that have <inttypes.h> but not <stdint.h>.
75071
75072 2003-01-07  Bruno Haible  <bruno@clisp.org>
75073
75074         * MODULES.html.sh: Add copyright notice.
75075         (missed_files): Omit CVS directory entries.
75076         (func_module): Make it work with sed-3.02.
75077         * MODULES.txt: Remove file.
75078
75079 2003-01-06  Jim Meyering  <jim@meyering.net>
75080
75081         * lib/version-etc.c: Update year in translatable copyright string.
75082
75083 2003-01-03  Karl Berry  <karl@gnu.org>
75084
75085         * config/config.{guess,sub}: update from prep.
75086
75087 2003-01-02  Karl Berry  <karl@gnu.org>
75088
75089         * doc/COPYING.DOC: belatedly updated to 1.2.
75090
75091 2003-01-01  Karl Berry  <karl@gnu.org>
75092
75093         * gnulib-tool (func_verify_module): report module name $module in
75094         error message, not $1.
75095         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75096         be created, only if it doesn't exist.
75097         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75098
75099 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75100
75101         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75102
75103 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75104
75105         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75106         memcmp if strcoll doesn't work.
75107
75108 2002-12-31  Bruno Haible  <bruno@clisp.org>
75109
75110         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75111         nonempty.
75112
75113 2002-12-31  Bruno Haible  <bruno@clisp.org>
75114
75115         * lib/memcoll.c (STRCOLL): New macro.
75116         (memcoll): Use it.
75117
75118 2002-12-31  Bruno Haible  <bruno@clisp.org>
75119
75120         * lib/localcharset.h: New file.
75121         * lib/localcharset.c: Include it.
75122         * lib/unicodeio.c: Likewise.
75123
75124 2002-12-31  Bruno Haible  <bruno@clisp.org>
75125
75126         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75127         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75128
75129 2002-12-31  Bruno Haible  <bruno@clisp.org>
75130
75131         * lib/getline.h: Include <stddef.h>, for size_t.
75132
75133         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75134         * lib/unicodeio.c: Don't include <stddef.h>.
75135
75136 2002-12-31  Bruno Haible  <bruno@clisp.org>
75137
75138         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75139         HAVE_TM_ZONE.
75140
75141 2002-12-24  Karl Berry  <karl@gnu.org>
75142
75143         * config/config.guess: update from prep.
75144
75145 2002-12-24  Bruno Haible  <bruno@clisp.org>
75146
75147         General infrasructure.
75148         * m4/README: Rewritten.
75149         * m4/onceonly.m4: New file.
75150         * m4/onceonly_2_57.m4: New file.
75151
75152         Module atexit.
75153         * m4/atexit.m4: New file.
75154
75155         Module strtod.
75156         * m4/strtod.m4: New file.
75157
75158         Module strtol.
75159         * m4/strtol.m4: New file.
75160
75161         Module strtoul.
75162         * m4/strtoul.m4: New file.
75163
75164         Module memchr.
75165         * m4/memchr.m4: New file.
75166
75167         Module memcmp.
75168         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75169         (jm_FUNC_MEMCMP): Invoke it.
75170
75171         Module memcpy.
75172         * m4/memcpy.m4: New file.
75173
75174         Module memmove.
75175         * m4/memmove.m4: New file.
75176
75177         Module memset.
75178         * m4/memset.m4: New file.
75179
75180         Module strcspn.
75181         * m4/strcspn.m4: New file.
75182
75183         Module strpbrk.
75184         * m4/strpbrk.m4: New file.
75185
75186         Module strstr.
75187         * m4/strstr.m4: New file.
75188
75189         Module strerror.
75190         * m4/strerror.m4: New file.
75191
75192         Module mktime.
75193         * m4/mktime.m4: Renamed from jm-mktime.m4.
75194         (gl_PREREQ_MKTIME): New macro.
75195         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75196
75197         Module malloc.
75198         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75199         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75200         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75201
75202         Module realloc.
75203         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75204         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75205         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75206
75207         Module strftime.
75208         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75209         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75210         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75211         gl_TM_GMTOFF.
75212         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75213
75214         Module xalloc.
75215         * m4/xalloc.m4: New file.
75216
75217         Module alloca.
75218         * m4/alloca.m4: New file.
75219
75220         Module putenv.
75221         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75222         (jm_FUNC_PUTENV): Invoke it.
75223
75224         Module setenv.
75225         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75226         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75227         when invoked twice.
75228         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75229         gt_FUNC_SETENV.
75230
75231         Module memrchr.
75232         * m4/memrchr.m4: New file.
75233
75234         Module stpcpy.
75235         * m4/stpcpy.m4: New file.
75236
75237         Module strcase.
75238         * m4/strcase.m4: New file.
75239
75240         Module strdup.
75241         * m4/strdup.m4: New file.
75242
75243         Module strnlen.
75244         * m4/strnlen.m4: New file.
75245
75246         Module strndup.
75247         * m4/strndup.m4: New file.
75248
75249         Module xstrtod.
75250         * m4/xstrtod.m4: New file.
75251
75252         Module xstrtol.
75253         * m4/xstrtol.m4: New file.
75254
75255         Module getdate.
75256         * m4/getdate.m4: New file.
75257
75258         Module unlocked-io.
75259         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75260         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75261         * m4/jm-glibc-io.m4n: Remove file.
75262
75263         Module long-options.
75264         * m4/long-options.m4: New file.
75265
75266         Module md5.
75267         * m4/md5.m4: New file.
75268
75269         Module sha.
75270         * m4/sha.m4: New file.
75271
75272         Module getstr.
75273         * m4/getstr.m4: New file.
75274
75275         Module getline.
75276         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75277         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75278         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75279         simply getline. Infoke gl_PREREQ_GETLINE.
75280
75281         Module obstack.
75282         * m4/obstack.m4: New file.
75283
75284         Module hash.
75285         * m4/hash.m4: New file.
75286
75287         Module readtokens.
75288         * m4/readtokens.m4: New file.
75289
75290         Module strverscmp.
75291         * m4/strverscmp.m4: New file.
75292
75293         Module stdbool.
75294         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75295         OSF/1.
75296
75297         Module strtoll.
75298         * m4/strtoll.m4: New file.
75299
75300         Module strtoull.
75301         * m4/strtoull.m4: New file.
75302
75303         Module strtoimax.
75304         * m4/strtoimax.m4: New file.
75305
75306         Module strtoumax.
75307         * m4/strtoumax.m4: New file.
75308
75309         Module xstrtoimax.
75310         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75311         jm_AC_PREREQ_XSTRTOIMAX.
75312         Moved the strtol prerequisites to strtol.m4.
75313         Moved the strtoll prerequisites to strtoll.m4.
75314         Moved the strtoimax prerequisites to strtoimax.m4.
75315
75316         Module xstrtoumax.
75317         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75318         jm_AC_PREREQ_XSTRTOUMAX.
75319         Moved the strtoul prerequisites to strtoul.m4.
75320         Moved the strtoull prerequisites to strtoull.m4.
75321         Moved the strtoumax prerequisites to strtoumax.m4.
75322
75323         Module chown.
75324         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75325         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75326
75327         Module dup2.
75328         * m4/dup2.m4: New file.
75329
75330         Module ftruncate.
75331         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75332         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75333
75334         Module getgroups.
75335         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75336         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75337
75338         Module gettimeofday.
75339         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75340         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75341         gl_PREREQ_GETTIMEOFDAY.
75342
75343         Module mkdir.
75344         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75345         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75346
75347         Module mkstemp.
75348         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75349         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75350         jm_AC_TYPE_UINTMAX_T.
75351         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75352
75353         Module stat.
75354         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75355         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75356
75357         Module lstat.
75358         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75359         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75360
75361         Module timespec.
75362         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75363         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75364         * m4/st_mtim.m4: Indentation.
75365
75366         Module nanosleep.
75367         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75368         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75369         gl_PREREQ_NANOSLEEP.
75370
75371         Module regex.
75372         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75373         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75374         (gl_REGEX): New macro.
75375
75376         Module rename.
75377         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75378         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75379
75380         Module rmdir.
75381         * m4/rmdir.m4: New file.
75382
75383         Module utime.
75384         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75385         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75386         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75387
75388         Module dirname.
75389         * m4/dirname.m4: New file.
75390
75391         Module getopt.
75392         * m4/getopt.m4: New file.
75393
75394         Module unistd-safer.
75395         * m4/unistd-safer.m4: New file.
75396
75397         Module fnmatch.
75398         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75399         declaration.
75400         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75401         (gl_FUNC_FNMATCH_POSIX): New macro.
75402         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75403         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75404         simply fnmatch.
75405
75406         Module exclude.
75407         * m4/exclude.m4: New file.
75408
75409         Module human.
75410         * m4/human.m4: New file.
75411
75412         Module acl.
75413         * m4/acl.m4: Nop.
75414
75415         Module backupfile.
75416         * m4/backupfile.m4: New file.
75417         * m4/d-ino.m4: Indentation.
75418
75419         Module fsusage.
75420         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75421         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75422         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75423
75424         Module dirfd.
75425         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75426         requirements.
75427
75428         Module euidaccess.
75429         * m4/euidaccess.m4: New file.
75430
75431         Module file-type.
75432         * m4/file-type.m4: New file.
75433
75434         Module fileblocks.
75435         * m4/fileblocks.m4: New file.
75436
75437         Module filemode.
75438         * m4/filemode.m4: New file.
75439
75440         Module isdir.
75441         * m4/isdir.m4: New file.
75442
75443         Module lchown.
75444         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75445         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75446
75447         Module makepath.
75448         * m4/makepath.m4: New file.
75449
75450         Module modechange.
75451         * m4/modechange.m4: New file.
75452
75453         Module mountlist.
75454         * m4/mountlist.m4: New file.
75455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75456         Indentation.
75457
75458         Module path-concat.
75459         * m4/path-concat.m4: New file.
75460
75461         Module pathmax.
75462         * m4/pathmax.m4: New file.
75463
75464         Module same.
75465         * m4/same.m4: New file.
75466
75467         Module save-cwd.
75468         * m4/save-cwd.m4: New file.
75469
75470         Module savedir.
75471         * m4/savedir.m4: New file.
75472
75473         Module xgetcwd.
75474         * m4/xgetcwd.m4: New file.
75475         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75476
75477         Module xreadlink.
75478         * m4/xreadlink.m4: New file.
75479
75480         Module safe-read.
75481         * m4/safe-read.m4: New file.
75482
75483         Module safe-write.
75484         * m4/safe-write.m4: New file.
75485
75486         Module closeout.
75487         * m4/closeout.m4: New file.
75488
75489         Module stdio-safer.
75490         * m4/stdio-safer.m4: New file.
75491
75492         Module getpass.
75493         * m4/getpass.m4: New file.
75494
75495         Module getugroups.
75496         * m4/getugroups.m4: New file.
75497
75498         Module group-member.
75499         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75500         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75501
75502         Module idcache.
75503         * m4/idcache.m4: New file.
75504
75505         Module userspec.
75506         * m4/userspec.m4: New file.
75507
75508         Module gettime.
75509         * m4/clock_time.m4: New file.
75510         * m4/gettime.m4: New file.
75511
75512         Module settime.
75513         * m4/settime.m4: New file.
75514
75515         Module posixtm.
75516         * m4/posixtm.m4: New file.
75517
75518         Module gethostname.
75519         * m4/gethostname.m4: New file.
75520
75521         Module canon-host.
75522         * m4/canon-host.m4: New file.
75523
75524         Module gettext.
75525         * m4/codeset.m4: New file, from gettext-0.11.5.
75526         * m4/gettext.m4: New file, from gettext-0.11.5.
75527         * m4/glibc21.m4: New file, from gettext-0.11.5.
75528         * m4/iconv.m4: New file, from gettext-0.11.5.
75529         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75530         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75531         * m4/inttypes.m4: New file, from gettext-0.11.5.
75532         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75533         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75534         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75535         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75536         * m4/lib-link.m4: New file, from gettext-0.11.5.
75537         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75538         * m4/progtest.m4: New file, from gettext-0.11.5.
75539         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75540         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75541         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
75542
75543         Module localcharset.
75544         * m4/localcharset.m4: New file.
75545
75546         Module hard-locale.
75547         * m4/hard-locale.m4: New file.
75548
75549         Module mbswidth.
75550         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
75551         onceonly macros.
75552         * m4/mbrtowc.m4: Add comment.
75553
75554         Module memcasecmp.
75555         * m4/memcasecmp.m4: New file.
75556
75557         Module memcoll.
75558         * m4/memcoll.m4: New file.
75559
75560         Module unicodeio.
75561         * m4/unicodeio.m4: New file.
75562
75563         Module rpmatch.
75564         * m4/rpmatch.m4: New file.
75565
75566         Module yesno.
75567         * m4/yesno.m4: New file.
75568
75569         Module exitfail.
75570         * m4/exitfail.m4: New file.
75571
75572         Module c-stack.
75573         * m4/c-stack.m4 (gl_C_STACK): New macro.
75574         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
75575
75576         Module error.
75577         * m4/error.m4 (gl_ERROR): New macro.
75578         (jm_PREREQ_ERROR): Use onceonly macros.
75579
75580         Module fatal.
75581         * m4/fatal.m4: New file.
75582
75583         Module getloadavg.
75584         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
75585         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
75586
75587         Module getpagesize.
75588         * m4/getpagesize.m4: New file.
75589
75590         Module getusershell.
75591         * m4/getusershell.m4: New file.
75592
75593         Module physmem.
75594         * m4/physmem.m4: New file.
75595
75596         Module posixver.
75597         * m4/posixver.m4: New file.
75598
75599         Module quotearg.
75600         * m4/quotearg.m4: New file.
75601
75602         Module quote.
75603         * m4/quote.m4: New file.
75604
75605         Module readutmp.
75606         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
75607
75608         Module sig2str.
75609         * m4/sig2str.m4: New file.
75610
75611         Other.
75612         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
75613         ulonglong.m4.
75614         * m4/intmax_t.m4: New file.
75615         * m4/d-type.m4: Indentation.
75616         * m4/jm-macros.m4: Update.
75617         * m4/prereq.m4 (jm_PREREQ): Update.
75618         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
75619         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
75620         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
75621         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
75622         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
75623         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
75624         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
75625         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
75626         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
75627         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
75628         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
75629         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
75630         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
75631         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
75632         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
75633         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
75634         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
75635         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
75636         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
75637
75638 2002-12-24  Bruno Haible  <bruno@clisp.org>
75639
75640         * MODULES.txt: Update according to m4/ changes.
75641
75642         Module gettext.
75643         * config.rpath: New file, from gettext-0.11.5.
75644
75645         * modules/*: New module descriptions.
75646         * gnulib-tool: New file.
75647         * MODULES.html.sh: New file.
75648
75649 2002-12-21  Karl Berry  <karl@gnu.org>
75650
75651         * doc/fdl.texi: update to version 1.2.
75652
75653 2002-12-19  Karl Berry  <karl@gnu.org>
75654
75655         * config/config.guess: update from prep.
75656
75657 2002-12-18  Bruno Haible  <bruno@clisp.org>
75658
75659         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
75660         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
75661
75662 2002-12-17  Bruno Haible  <bruno@clisp.org>
75663
75664         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
75665         stdlib.h, string.h.
75666
75667 2002-12-17  Bruno Haible  <bruno@clisp.org>
75668
75669         * lib/canon-host.c (strdup): Remove unused declaration.
75670
75671         * lib/fsusage.c: Include full_read.h.
75672         (get_fs_usage): Use full_read instead of safe_read.
75673
75674         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
75675
75676 2002-12-12  Karl Berry  <karl@gnu.org>
75677
75678         * config/config.guess: update from prep.
75679
75680 2002-12-11  Bruno Haible  <bruno@clisp.org>
75681
75682         * m4/setenv.m4: New file, from gettext-0.11.5.
75683
75684 2002-12-11  Bruno Haible  <bruno@clisp.org>
75685
75686         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
75687         not unsetenv().
75688         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
75689         modifications:
75690
75691         2002-12-11  Bruno Haible  <bruno@clisp.org>
75692
75693                 * setenv.c (alloca): Fall back to malloc.
75694                 (freea): New macro.
75695                 (setenv): Use freea() to free memory allocated with alloca().
75696
75697         2002-11-13  Bruno Haible  <bruno@clisp.org>
75698
75699                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
75700                 function declarations.
75701                 * unsetenv.c (unsetenv): Likewise.
75702
75703         2002-03-04  Bruno Haible  <bruno@clisp.org>
75704
75705                 Portability to AIX 4.3.3.
75706                 * unsetenv.c: New file, extracted from setenv.c.
75707                 * setenv.c: Move the unsetenv() function to unsetenv.c.
75708
75709         2001-12-20  Bruno Haible  <bruno@clisp.org>
75710
75711                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
75712                 use malloc instead. For SunOS 4.
75713
75714         2001-12-11  Bruno Haible  <bruno@clisp.org>
75715
75716                 * setenv.c: Declare alloca.
75717                 (compar_fn_t): New typedef.
75718                 (KNOWN_VALUE, STORE_VALUE): Use it.
75719
75720         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
75721         setenv.h.
75722
75723 2002-12-10  Paul Eggert  <eggert@twinsun.com>
75724
75725         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
75726         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
75727         Choose values that are less likely to collide with system fnmatch
75728         options.
75729         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
75730         defined (e.g., a pure POSIX system).
75731         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
75732         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
75733
75734 2002-12-06  Paul Eggert  <eggert@twinsun.com>
75735
75736         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
75737         a pain in practice to deal with generated m4 files.  This change
75738         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
75739
75740         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
75741         and jm-glibc-io.m4, as they are no longer a special case.
75742         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
75743         kludge and the auto-generation stuff.  Check only whether the
75744         functions are declared, not whether they exist, since older hosts
75745         that don't declare the functions can't use the optimization anyway.
75746
75747 2002-12-06  Jim Meyering  <jim@meyering.net>
75748
75749         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
75750
75751         Merge in changes from libc's misc/error.c, in preparation
75752         for the merge of gnulib's changes back into libc.
75753
75754         * lib/error.c (_): Define only if not already defined.
75755         Move definition to follow all #include directives.
75756         Include unlocked-io.h only if !_LIBC.
75757         [_LIBC]: Include <libio/libioP.h>.
75758         [USE_IN_LIBIO]: Include <libio/iolibio.h>
75759         (fflush): Tweak definition to use INTUSE.
75760         (putc): Define.
75761
75762 2002-12-05  Paul Eggert  <eggert@twinsun.com>
75763
75764         * lib/alloca.c [defined emacs]: Include "lisp.h".
75765         (xalloc_die) [defined emacs]: New macro.
75766         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
75767         [! defined emacs]: Include <xalloc.h>.
75768         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
75769         (pointer): Typedef to POINTER_TYPE *.
75770         (malloc): Remove decl; we now always use xmalloc.
75771         (alloca): Use old-style definition, since Emacs needs this.
75772         Check for arithmetic overflow when computing combined size.
75773
75774 2002-12-04  Paul Eggert  <eggert@twinsun.com>
75775
75776         Do not generate unlocked-io.h automatically, since it's easier to
75777         maintain it by hand.
75778
75779         * lib/unlocked-io.h: New file, from GNU diffutils,
75780         but with proper copyright notice and attribution.
75781         * lib/gen-uio: Remove.
75782         * lib/Makefile.am: Add copyright notice.
75783         (libfetish_a_SOURCES): Add unlocked-io.h.
75784         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
75785         (DISTCLEANFILES, io_functions): Remove macros.
75786         (EXTRA_DIST): Remove gen_uio.
75787         (unlocked-io.h): Remove rule.
75788
75789 2002-12-04  Jim Meyering  <jim@meyering.net>
75790
75791         Reflect the fact that stat.c and lstat.c are no longer generated.
75792         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
75793         (DISTCLEANFILES): Likewise.
75794         (EXTRA_DIST): Likewise.
75795         (all_local): Don't depend on stat.c or lstat.c.
75796         (stat.c, lstat.c): Remove rules.
75797         (EXTRA_DIST): Remove xstat.in.
75798
75799         * lib/xstat.in: Remove file.  Contents moved into stat.c.
75800         * lib/stat.c: New file.  Contents mostly from xstat.in.
75801         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
75802         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
75803
75804         * lib/safe-read.c: Rework so that it may serve to define safe_write,
75805         too.
75806         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
75807
75808 2002-12-03  Jim Meyering  <jim@meyering.net>
75809
75810         * lib/safe-read.c, safe-write.c: Change variable names and comments,
75811         but not semantics, to minimize the differences between these two files.
75812         (safe_read): Change comment to mention SAFE_READ_ERROR.
75813
75814         * lib/safe-read.c (IS_EINTR): Define.
75815         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75816
75817 2002-12-02  Jim Meyering  <jim@meyering.net>
75818
75819         * lib/safe-read.c (EINTR): Define.
75820         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75821         (INT_MAX): Provide fallback.
75822         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75823
75824         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75825
75826 2002-12-02  Bruno Haible  <bruno@clisp.org>
75827
75828         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75829         Define, taken from safe-read.c.
75830         (INT_MAX): Provide fallback.
75831         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75832         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75833
75834         * lib/safe-read.c (EINTR): Remove definition.
75835         (safe_read): Don't use EINTR if it is absent.
75836
75837 2002-12-01  Jim Meyering  <jim@meyering.net>
75838
75839         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75840         zero.
75841         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75842
75843 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75844
75845         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75846         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75847         with `if (! (value < limit)) abort ();', for readability.
75848
75849 2002-11-26  Karl Berry  <karl@gnu.org>
75850
75851         * lib/strdup.c: copy from libc again, with jim's ok.
75852         * lib/.cppi-disable: re-add strdup.c
75853
75854 2002-11-25  Karl Berry  <karl@gnu.org>
75855
75856         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75857         instead of "strtol.c".
75858
75859 2002-11-25  Karl Berry  <karl@gnu.org>
75860
75861         * config/install-sh: update from automake for variable quoting, $0 in
75862         error msgs, etc.
75863
75864         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75865         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75866         entry.
75867
75868 2002-11-25  Jim Meyering  <jim@meyering.net>
75869
75870         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75871
75872 2002-11-24  Karl Berry  <karl@gnu.org>
75873
75874         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75875         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75876
75877 2002-11-24  Jim Meyering  <jim@meyering.net>
75878
75879         Update from coreutils:
75880
75881         * lib/mktime.c: Merge in changes from libc.
75882
75883         Avoid a link-time failure on some Linux systems.
75884         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75885         (otherwise).
75886         (__mon_yday): Declare with the STATIC attribute.
75887         (__mktime_internal): Likewise.
75888         Based on a report from Greg Schafer.
75889
75890 2002-11-23  Jim Meyering  <jim@meyering.net>
75891
75892         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75893         Use `unsigned', not `int', as type of index.
75894
75895         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75896
75897         * lib/fsusage.c: Remove unneeded parentheses around operands of
75898         `defined'.
75899
75900 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75901
75902         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75903         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75904         so that we can be included first.
75905         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75906         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75907         No need to include stddef.h or sys/types.h any more.
75908         Surround local include files with "", not "<>".
75909         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75910         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75911         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75912         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75913         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75914         (ISPRINT): Remove; no longer needed now that we assume C89.
75915
75916         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75917         Preserve errno.
75918
75919         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75920         quotearg_char): Use SIZE_MAX rather than
75921         (size_t) -1 when we are talking about "infinity".
75922
75923         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75924
75925 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75926
75927         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75928         hint that one should use `if (! x) abort ();' rather than `assert
75929         (x);', and anyway it's one less thing to worry about configuring.
75930         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75931         hash_rehash, hash_insert): Use abort rather than assert.
75932
75933 2002-11-22  Bruno Haible  <bruno@clisp.org>
75934
75935         * lib/safe-read.h: Assume C89. Add comments.
75936         (safe_read): Change return type to size_t.
75937         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75938         byte counts > SSIZE_MAX correctly.
75939         * lib/safe-write.h: New file.
75940         * lib/safe-write.c: New file.
75941         * lib/full-read.h: New file.
75942         * lib/full-read.c: New file.
75943         * lib/full-write.h: Assume C89. Add comments.
75944         * lib/full-write.c: Include safe-write.h.
75945         (full_write): Rewritten to use safe_write.
75946         Suggested by Jim Meyering and Paul Eggert.
75947
75948 2002-11-21  Jim Meyering  <jim@meyering.net>
75949
75950         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75951
75952         Merge in changes from the coreutils.
75953
75954         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75955         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75956         <stdint.h>.
75957         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75958         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75959         int.  Work more efficiently if X is the same width as uintmax_t.
75960         Do not compare X to -1, to avoid bogus compiler warning.
75961         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75962         Don't assume that f_frsize and f_bsize are the same type.
75963
75964         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75965         warning on FreeBSD.
75966
75967         * lib/makepath.c (make_path): Restore umask *before* creating the final
75968         component.
75969         (make_path): Minor reformatting.
75970
75971         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75972         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75973         HAVE_MALLOC/HAVE_REALLOC.
75974
75975         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75976         dummy ones.  At least on GNU/Linux systems, `auto' means something
75977         else.
75978         From Michael Stone.
75979
75980 2002-11-21  Bruno Haible  <bruno@clisp.org>
75981
75982         Remove case insensitive option matching.
75983         * lib/argmatch.h (argcasematch): Remove declaration.
75984         (ARGCASEMATCH): Remove macro.
75985         (__xargmatch_internal): Remove case_sensitive argument.
75986         (XARGMATCH): Update.
75987         (XARGCASEMATCH): Remove macro.
75988         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75989         case_sensitive argument.
75990         (argcasematch): Remove function.
75991         (__xargmatch_internal): Remove case_sensitive argument.
75992         (main): Use XARGMATCH instead of XARGCASEMATCH.
75993
75994         * lib/xmalloc.c: Change compile-time error message. Add comment about
75995         required autoconf version.
75996
75997 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75998
75999         Merge argmatch cleanups from Bison.  Assume C89.
76000
76001         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76002         Include stdlib.h, for EXIT_FAILURE.
76003         Always include <string.h>, since we assume C89.
76004         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76005         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76006         Include <stddef.h> instead, since it's all we need for size_t.
76007         (PARAMS): Remove.  All uses removed.
76008         (ARRAY_CARDINALITY): Do not bother to #undef.
76009         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76010         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76011         Remove unnecessary parentheses.
76012         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76013         Insert necessary parentheses.
76014         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76015         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76016
76017 2002-11-19  Bruno Haible  <bruno@clisp.org>
76018
76019         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76020         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76021
76022         * lib/mbswidth.h (PARAMS): Remove macro.
76023         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76024         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76025
76026         * lib/gcd.h (PARAMS): Remove macro.
76027         (gcd): Use ANSI C function declarations.
76028         * lib/gcd.c (gcd): Likewise.
76029
76030 2002-11-15  Bruno Haible  <bruno@clisp.org>
76031
76032         * lib/strcspn.c: Include <stddef.h>.
76033         (strcspn): Use ANSI C function declaration. Change return type to
76034         size_t. Use NULL.
76035         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76036         (strpbrk): Use NULL.
76037         * lib/strpbrk.h (PARAMS): Remove macro.
76038         (strpbrk): Use ANSI C function declaration.
76039         * lib/strstr.c: Don't include <sys/types.h>.
76040         * lib/strstr.h (PARAMS): Remove macro.
76041         (strstr): Use ANSI C function declarations.
76042
76043 2002-11-14  Karl Berry  <karl@gnu.org>
76044
76045         * config/mkinstalldirs: `do' on separate line, instead of
76046         `for var; do'.
76047
76048 2002-11-06  Bruno Haible  <bruno@clisp.org>
76049
76050         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76051         * lib/gcd.c (gcd): Likewise.
76052
76053 2002-11-05  Bruno Haible  <bruno@clisp.org>
76054
76055         * lib/gcd.h: New file, from gettext-0.11.5.
76056         * lib/gcd.c: New file, from gettext-0.11.5.
76057
76058 2002-11-05  Bruno Haible  <bruno@clisp.org>
76059
76060         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76061         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76062         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76063         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76064
76065         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76066         <libintl.h>.
76067         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76068         <libintl.h>.
76069
76070         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76071         * lib/human.c: Include gettext.h instead of <libintl.h>.
76072         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76073         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76074         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76075         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76076         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76077         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76078         (textdomain): Remove definition.
76079         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76080
76081         * lib/long-options.c: Remove include of <libintl.h> and definition of
76082         _.
76083         * lib/same.c: Remove include of <libintl.h> and definition of _.
76084
76085 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76086
76087         * lib/config.charset: A few additions for Solaris.
76088
76089 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76090
76091         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76092         * lib/localcharset.c (locale_charset): Declare as extern "C".
76093
76094 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76095
76096         * lib/config.charset: msdos in uk_UA uses CP1125.
76097
76098 2002-11-04  Bruno Haible  <bruno@clisp.org>
76099
76100         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76101         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76102         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76103         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76104         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76105
76106 2002-11-04  Bruno Haible  <bruno@clisp.org>
76107
76108         * lib/localcharset.c (locale_charset): Don't return an empty string.
76109
76110 2002-11-04  Bruno Haible  <bruno@clisp.org>
76111
76112         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76113         aliases.
76114
76115 2002-11-04  Bruno Haible  <bruno@clisp.org>
76116
76117         * lib/config.charset: Update for newest glibc. Add canonical names
76118         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76119
76120 2002-11-04  Bruno Haible  <bruno@clisp.org>
76121
76122         * lib/config.charset: Add support for NetBSD.
76123
76124 2002-11-04  Bruno Haible  <bruno@clisp.org>
76125
76126         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76127
76128 2002-11-01  Bruno Haible  <bruno@clisp.org>
76129
76130         * configure.in: Add AC_CONFIG_AUX_DIR call.
76131         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76132         test/Makefile.
76133         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76134
76135 2002-09-28  Karl Berry  <karl@gnu.org>
76136
76137         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76138         installed automake until the next release, since changes have been
76139         made.
76140
76141 2002-09-25  Karl Berry  <karl@gnu.org>
76142
76143         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76144         * lib/getopt*: copy from libc/posix.
76145         * lib/gettext.h: copy from gettext.
76146         * lib/.cppi-disable: add strdup.c, gettext.h.
76147
76148 2002-09-25  Karl Berry  <karl@gnu.org>
76149
76150         * config/srclist.txt: enable gettext.h check.
76151         * config/config.{guess,sub}: update from prep.
76152         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76153                 from automake 1.6.3.
76154         See srclist*.
76155
76156 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76157
76158         * regex.c (PATFETCH): Remove the translating fetch.
76159         (PATFETCH_RAW): Rename to PATFETCH.
76160         (set_image_of_range): New fun.
76161         (SET_RANGE_TABLE_WORK_AREA): Use it.
76162         (regex_compile): Don't translate the pattern chars so eagerly.
76163         Only do it when inserting an `exactn' bytecode or when handling
76164         a char-range.
76165         (mutually_exclusive_p): Avoid empty statement.
76166
76167 2002-07-06  Jim Meyering  <meyering@lucent.com>
76168
76169         * m4/README: Don't mention Makefile.am.in.
76170         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76171
76172 2002-07-01  Jim Meyering  <meyering@lucent.com>
76173
76174         * lib/c-stack.c: Include sys/time.h.
76175         From Volker Borchert.
76176
76177 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76178
76179         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76180
76181 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76182
76183         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76184         New macro.  Use it uniformly instead of
76185         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76186         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76187         reported by Vin Shelton.
76188
76189 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76190
76191         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76192         Do not assume SA_SIGINFO behavior.
76193         Bug reported by Jim Meyering on NetBSD 1.5.2.
76194
76195 2002-06-22  Jim Meyering  <meyering@lucent.com>
76196
76197         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76198         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76199
76200         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76201         now that configure.ac uses AC_GNU_SOURCE.
76202         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76203         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76204
76205         Update to latest tools.  Suggestions from Paul Eggert.
76206         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76207         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76208         * m4/fnmatch.m4: Likewise.
76209         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76210         to AC_HEADER_STDBOOL
76211
76212 2002-06-22  Jim Meyering  <meyering@lucent.com>
76213
76214         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76215         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76216
76217 2002-06-22  Jim Meyering  <meyering@lucent.com>
76218
76219         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76220
76221         * lib/exitfail.c, exitfail.h: Likewise.
76222         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76223
76224         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76225         of fnmatch.h.
76226         (EXTRA_DIST): Add fnmatch_loop.c.
76227         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76228
76229         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76230         * lib/fnmatch.c: Update from diffutils-2.8.2.
76231         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76232         * lib/fnmatch.h: Remove file.
76233
76234 2002-06-21  Jim Meyering  <meyering@lucent.com>
76235
76236         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76237         * m4/mbrtowc.m4: Likewise.
76238
76239         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76240         * m4/mbswidth.m4: Reflect name change:
76241         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76242         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76243
76244         * m4/lib-link.m4: Update from gettext-0.11.2.
76245         * m4/gettext.m4: Likewise.
76246
76247         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76248         From Alfred M. Szmidt.
76249
76250 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76251
76252         * lib/file-type.h: Report an error if neither S_ISREG nor
76253         S_IFREG is defined, instead of using a test specific to glibc
76254         2.2.  This should be safe, since POSIX requires S_ISREG and
76255         Unix Version 7 had S_IFREG.  We don't need to check for
76256         <sys/types.h> since we don't use any symbols that it defines.
76257
76258 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76259
76260         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76261         $@-t, so that each temporary file name is unique and valid in the first
76262         8 characters, for operation under DOS.
76263
76264 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76265
76266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76267
76268 2002-06-15  Jim Meyering  <meyering@lucent.com>
76269
76270         Work even with DJGPP 2.03, which lacks support for symlinks.
76271         From Richard Dawe.
76272         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76273         is defined.
76274         * lib/lchown.c (S_ISLNK): Likewise.
76275
76276 2002-06-15  Jim Meyering  <meyering@lucent.com>
76277
76278         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76279         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76280         have been included before this file.
76281
76282 2002-06-14  Jim Meyering  <meyering@lucent.com>
76283
76284         * lib/file-type.h: Use the version from diffutils-2.8.2.
76285         * lib/file-type.c: Likewise.
76286
76287 2002-06-07  Jim Meyering  <meyering@lucent.com>
76288
76289         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76290         They're needed at least for NetBSD 1.5.2.
76291         ($statxfs_includes): Include those same headers.
76292         ($statxfs_includes): Include sys/vfs.h if available.
76293         ($statxfs_includes): Likewise for sys/statvfs.h.
76294         Check for the following members in both structs statfs and statvfs:
76295         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76296
76297 2002-06-01  Jim Meyering  <meyering@lucent.com>
76298
76299         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76300         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76301
76302 2002-05-28  Jim Meyering  <meyering@lucent.com>
76303
76304         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76305         Reported by Volker Borchert.
76306
76307 2002-05-27  Jim Meyering  <meyering@lucent.com>
76308
76309         Fix a problem seen only on nonconforming systems whereby ls.c's
76310         use of localtime, and then of gettimeofday would cause trouble:
76311         the localtime call used to initialize rpl_gettimeofday's save
76312         mechanism would clobber ls's current local time information so
76313         that in any long listing the first file would always be listed
76314         with date 1970-01-01.  Analysis by Volker Borchert.
76315
76316         * lib/gettimeofday.c (localtime): Undefine.
76317         (rpl_localtime): New function.
76318
76319 2002-05-27  Jim Meyering  <meyering@lucent.com>
76320
76321         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76322         localtime.
76323
76324         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76325         use the replacement function; it wouldn't resolve at link time.
76326         Reported by Volker Borchert.
76327
76328 2002-05-22  Jim Meyering  <meyering@lucent.com>
76329
76330         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76331         file-type.h.
76332         * lib/file-type.h: New file.
76333         * lib/file-type.c (file_type): New file/function.  Extracted from
76334         diffutils.
76335
76336 2002-04-30  Jim Meyering  <meyering@lucent.com>
76337
76338         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76339
76340 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76341
76342         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76343
76344 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76345
76346         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76347         Do not check for alloca.h (no longer used) or stdbool.h (was never
76348         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76349
76350 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76351
76352         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76353
76354 2002-04-29  Jim Meyering  <meyering@lucent.com>
76355
76356         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76357         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76358         Use AC_FUNC_STRNLEN here instead.
76359
76360         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76361         With autoconf-2.53a, it's part of AC_PROG_CC.
76362
76363 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76364
76365         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76366         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76367
76368 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76369
76370         * lib/sig2str.h, lib/sig2str.c: New files.
76371         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76372
76373 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76374
76375         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76376         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76377         of 127, since 64 is the largest conceivable number for ancient
76378         nonstandard hosts.
76379         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76380
76381 2002-04-28  Jim Meyering  <meyering@lucent.com>
76382
76383         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76384
76385 2002-04-24  Jim Meyering  <meyering@lucent.com>
76386
76387         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76388         (jm_PREREQ): Use it.
76389
76390         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76391         mach/mach.h fcntl.h.
76392         Check for this function: setlocale.
76393
76394 2002-04-24  Jim Meyering  <meyering@lucent.com>
76395
76396         * lib/gettext.h: New file, from Gettext.
76397         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76398         (libfetish_a_SOURCES): Add gettext.h.
76399
76400 2002-04-16  Jim Meyering  <meyering@lucent.com>
76401
76402         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76403         ut_pid, ut_id, ut_exit.
76404
76405 2002-04-16  Jim Meyering  <meyering@lucent.com>
76406
76407         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76408         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76409         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76410
76411 2002-04-12  Jim Meyering  <meyering@lucent.com>
76412
76413         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76414         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76415         existence of the getmntinfo function.  Needed for Darwin 5.3.
76416
76417         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76418         This is necessary at least on Darwin 5.3.
76419
76420         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76421         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76422         strnlen.o in the library, and that makes some versions of ranlib
76423         object.
76424
76425 2002-04-12  Jim Meyering  <meyering@lucent.com>
76426
76427         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76428
76429 2002-04-09  Jim Meyering  <meyering@lucent.com>
76430
76431         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76432         to be more precise.  Rather than saying we're checking whether the
76433         function `works', say what we're testing.
76434         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76435         Reported by Bruno Haible.
76436
76437 2002-03-10  Jim Meyering  <meyering@lucent.com>
76438
76439         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76440         Suggestion from Santiago Vila.
76441
76442 2002-03-08  Jim Meyering  <meyering@lucent.com>
76443
76444         * lib/rename.c: Mention that this wrapper is needed also on
76445         mips-dec-ultrix4.4 systems.
76446
76447 2002-03-02  Jim Meyering  <meyering@lucent.com>
76448
76449         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76450         not HAVE_CLOCK_SETTIME.
76451
76452 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76453
76454         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76455         Check for clock_settime.
76456
76457 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76458
76459         * lib/nanosleep.h: Rename to....
76460         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76461
76462         * lib/gettime.c: New file.
76463         * lib/settime.c: New file.
76464         * lib/stime.c: Remove.
76465
76466         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76467         timespec.h.  Remove nanosleep.h.
76468
76469 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76470
76471         * m4/acl.m4: New file.
76472         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76473         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76474
76475 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76476
76477         * lib/acl.c, lib/acl.h: New files.
76478         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76479
76480 2002-02-24  Jim Meyering  <meyering@lucent.com>
76481
76482         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76483         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76484         cause trouble.  Reported by Nelson Beebe.
76485
76486 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76487
76488         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76489         compilers that don't know that xalloc_die never returns.
76490
76491 2002-02-20  Jim Meyering  <meyering@lucent.com>
76492
76493         * lib/getdate.c: Regenerate using bison-1.33.
76494
76495 2002-02-17  Jim Meyering  <meyering@lucent.com>
76496
76497         * config/config.guess (main): Don't use `head -1'; it's no longer
76498         portable. Use `sed 1q' instead.
76499
76500 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76501
76502         * m4/codeset.m4: Upgrade to gettext-0.11.
76503         * m4/gettext.m4: Upgrade to gettext-0.11.
76504         * m4/glibc21.m4: Upgrade to gettext-0.11.
76505         * m4/iconv.m4: Upgrade to gettext-0.11.
76506         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76507         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76508         * m4/lib-ld.m4: New file, from gettext-0.11.
76509         * m4/lib-link.m4: New file, from gettext-0.11.
76510         * m4/lib-prefix.m4: New file, from gettext-0.11.
76511         * m4/progtest.m4: Upgrade to gettext-0.11.
76512
76513 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76514
76515         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76516         (jm_PREREQ): Use it.
76517
76518 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76519
76520         * lib/posixver.c, lib/posixver.h: New files.
76521         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76522
76523 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76524             Bruno Haible  <bruno@clisp.org>
76525
76526         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76527         (fwrite_success_callback): New declaration.
76528         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76529         print_unicode_char. Call failure callback instead of error.
76530         (fwrite_success_callback): New function.
76531         (exit_failure_callback): New function.
76532         (fallback_failure_callback): New function.
76533         (print_unicode_char): Call unicode_to_mb.
76534
76535 2002-01-26  Jim Meyering  <meyering@lucent.com>
76536
76537         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76538         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76539
76540 2002-01-26  Jim Meyering  <meyering@lucent.com>
76541
76542         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
76543
76544 2002-01-22  Paul Eggert  <eggert@twinsun.com>
76545
76546         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
76547
76548 2002-01-22  Jim Meyering  <meyering@lucent.com>
76549
76550         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
76551         Otherwise, some versions of automake would omit the rule that makes
76552         Makefile from Makefile.in.
76553
76554 2002-01-21  Paul Eggert  <eggert@twinsun.com>
76555
76556         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
76557         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76558         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
76559         (memcoll): Set errno to zero if there is no error.
76560
76561         * lib/quotearg.c (quotearg_buffer_restyled):
76562         Fix bug with quoting buffers containing NUL when backslashing escapes.
76563         This bug was exposed by the other changes in this patch.
76564         (quotearg_n_options): New arg ARGSIZE.
76565         All callers changed.
76566         (quoting_options_from_style): New function.
76567         (quotearg_n_style): Use it.
76568         (quotearg_n_style_mem): New function.
76569
76570         * lib/quotearg.h (quotearg_n_style_mem): New function.
76571
76572 2002-01-19  Jim Meyering  <meyering@lucent.com>
76573
76574         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
76575         Remove useless quotes: DF_PROG="df".
76576         * m4/strnlen.m4: New file.
76577
76578 2002-01-16  Paul Eggert  <eggert@twinsun.com>
76579
76580         * lib/backupfile.c (ISDIGIT): Comment fix.
76581         * lib/getdate.y (ISDIGIT): Likewise.
76582         * lib/posixtm.c (ISDIGIT, year): Likewise.
76583         * lib/strverscmp.c (ISDIGIT): Likewise.
76584         * lib/userspec.c (ISDIGIT): Likewise.
76585
76586 2002-01-16  Jim Meyering  <meyering@lucent.com>
76587
76588         * lib/getdate.y: Add three semicolons, each just before a closing
76589         brace. Bison (as of version 1.31) no longer papers over that mistake.
76590
76591 2002-01-05  Jim Meyering  <meyering@lucent.com>
76592
76593         * lib/version-etc.c (version_etc_copyright): Update copyright year.
76594
76595 2001-12-19  Paul Eggert  <eggert@twinsun.com>
76596
76597         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
76598         not silently exit merely because the output buffer happens to
76599         have nothing pending.
76600
76601 2001-12-18  Paul Eggert  <eggert@twinsun.com>
76602
76603         See the big note in ../ChangeLog.
76604         * lib/human.c (suffixes): Prefer K to k for 1024.
76605         (generate_suffix_backwards): New function.
76606         (human_readable_inexact): Use it.
76607         * lib/xstrtol.c (__xstrtol): If there is no number but there
76608         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
76609         Accept 'K' as well as 'k'.
76610
76611 2001-12-15  Jim Meyering  <meyering@lucent.com>
76612
76613         * lib/regex.h (__restrict_arr): Update from libc.
76614
76615         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
76616         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
76617         (STREQ): Define.
76618
76619 2001-12-14  Jim Meyering  <meyering@lucent.com>
76620
76621         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
76622         Suggestion from Bruno Haible.
76623
76624 2001-12-10  Jim Meyering  <meyering@lucent.com>
76625
76626         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
76627         xrealloc, Instead, include "xalloc.h".
76628         (initbuffer): Don't cast xmalloc return value to char*.
76629         (readline): Reword comment.
76630         Don't cast xrealloc return value to char*
76631         Return NULL, not 0.
76632
76633 2001-12-09  Jim Meyering  <meyering@lucent.com>
76634
76635         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
76636         about `signed and unsigned type in conditional expression'.
76637         * lib/posixtm.c (posix_time_parse): Likewise.
76638
76639         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
76640
76641         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
76642         to avoid a pedantic warning.
76643
76644         * lib/getstr.c: Don't include assert.h.
76645         (getstr): Remove warning-evoking assertions.
76646         Return -1 if offset parameter is out of bounds.
76647         Change the type of a local from int to size_t.
76648
76649         * lib/strftime.c (my_strftime_localtime_r): Include this function
76650         definition in the `#if ! HAVE_TM_GMTOFF' block.
76651
76652         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
76653         Include xalloc.h instead.
76654
76655 2001-12-02  Jim Meyering  <meyering@lucent.com>
76656
76657         * lib/tempname.c: Don't declare getenv, thus reverting the change of
76658         2001-11-18.  It's no longer necessary, now that stdlib.h is always
76659         included.
76660
76661         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
76662         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
76663
76664 2001-11-30  Akim Demaille  <akim@epita.fr>
76665
76666         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
76667         before being defined.
76668
76669 2001-11-27  Paul Eggert  <eggert@twinsun.com>
76670
76671         * lib/quotearg.h (quotearg_n, quotearg_n_style):
76672         First arg is int, not unsigned.
76673         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
76674         (SIZE_MAX, UINT_MAX): New macros.
76675         (quotearg_n_options): Abort if N is negative.
76676         Avoid overflow check on hosts where size_t is 64 bits and int
76677         is 32 bits, as overflow is impossible there.
76678         Fix off-by-one typo that caused unnecessary reallocation.
76679
76680 2001-11-27  Jim Meyering  <meyering@lucent.com>
76681
76682         * lib/tempname.c: Merge with version from libc.
76683         * lib/regex.c: Likewise.
76684
76685         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
76686         systems for which STDC_HEADERS is 0, it was not included, resulting in
76687         a warning about an integer-to-pointer conversion problem with getenv.
76688         Reported by Volker Borchert.
76689
76690 2001-11-26  Jim Meyering  <meyering@lucent.com>
76691
76692         * lib/gtod.h: Remove file.
76693         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
76694         * lib/gettimeofday.c: Don't include gtod.h.
76695         (GTOD_init): Remove function.
76696         (rpl_gettimeofday): Do its job here instead, rather than aborting.
76697         Suggestion from Volker Borchert.
76698
76699 2001-11-23  Jim Meyering  <meyering@lucent.com>
76700
76701         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
76702         it.
76703         * lib/hash.c (struct hash_table): Define it here instead.
76704
76705 2001-11-22  Jim Meyering  <meyering@lucent.com>
76706
76707         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
76708
76709 2001-11-20  Jim Meyering  <meyering@lucent.com>
76710
76711         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
76712         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
76713
76714 2001-11-19  Jim Meyering  <meyering@lucent.com>
76715
76716         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
76717         directory.  Use "conftestXXXXXX" as the template.
76718         Suggestion from Paul Eggert.
76719
76720         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
76721         immediately, so the test doesn't mistakenly hit the max-open-files
76722         limit.
76723
76724 2001-11-18  Paul Eggert  <eggert@twinsun.com>
76725
76726         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
76727         (TEMPORARIES): New macro.
76728         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
76729         removes an artificial limitation (e.g. HP-UX 10.20, where
76730         TMP_MAX is 17576).
76731
76732 2001-11-18  Jim Meyering  <meyering@lucent.com>
76733
76734         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
76735
76736 2001-11-18  Jim Meyering  <meyering@lucent.com>
76737
76738         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
76739         on SunOS 4.
76740
76741         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
76742         files will be created before anything else.
76743
76744 2001-11-17  Paul Eggert  <eggert@twinsun.com>
76745
76746         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
76747         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
76748
76749 2001-11-17  Jim Meyering  <meyering@lucent.com>
76750
76751         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
76752         Prompted by a report from Bob Proulx.
76753
76754         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
76755         Instead, require UTILS_FUNC_MKSTEMP.
76756
76757 2001-11-17  Jim Meyering  <meyering@lucent.com>
76758
76759         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
76760         Now, that's done as part of AC_FUNC_STRTOD.
76761
76762 2001-11-17  Jim Meyering  <meyering@lucent.com>
76763
76764         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
76765         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
76766         rather than group writable.  Patch by Juan F. Codagnone.
76767
76768         * lib/readtokens.c: Remove explicit declarations of xmalloc and
76769         xrealloc, Instead, include "xalloc.h".
76770
76771         * lib/mountlist.c: Include unlocked-io.h after all system headers.
76772         Remove explicit declarations of xmalloc, xrealloc,
76773         and xstrdup.  Instead, include "xalloc.h".
76774
76775         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
76776         unlocked-io.h.
76777         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
76778         Likewise.
76779         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
76780
76781         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
76782         Reported by Padraig Brady.
76783
76784         * lib/mkstemp.c: #undef mkstemp.
76785         Include config.h.
76786         (rpl_mkstemp): Rename from mkstemp.
76787         Protoize.
76788
76789 2001-11-16  Jim Meyering  <meyering@lucent.com>
76790
76791         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
76792         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
76793         determine the amount of total physical memory, use pstat_getstatic.
76794         HPUX-11 doesn't define _SC_PHYS_PAGES.
76795         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
76796         If sysconf couldn't be used to determine the amount of available
76797         physical memory, use both pstat_getstatic and pstat_getdynamic.
76798         Based on a patch from Bob Proulx.
76799
76800 2001-11-10  Jim Meyering  <meyering@lucent.com>
76801
76802         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
76803         (jm_PREREQ): Use it.
76804
76805 2001-11-09  Jim Meyering  <meyering@lucent.com>
76806
76807         * m4/jm-macros.m4: Require autoconf-2.52f.
76808         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
76809         Use these AC_-prefixed names, not the AM_-prefixed ones.
76810
76811         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
76812
76813 2001-11-05  Jim Meyering  <meyering@lucent.com>
76814
76815         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76816
76817 2001-11-04  Jim Meyering  <meyering@lucent.com>
76818
76819         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76820         $DEFS.
76821
76822 2001-11-03  Jim Meyering  <meyering@lucent.com>
76823
76824         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76825         of AC_DEFUN.
76826
76827         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76828         know the name of the variable in the macro definition.
76829
76830 2001-11-03  Jim Meyering  <meyering@lucent.com>
76831
76832         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76833         in argmatch_to_argument call.
76834
76835         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76836         argument.
76837
76838         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76839         e.g., a fault due to an attempt to free a NULL pointer.
76840
76841 2001-11-01  Jim Meyering  <meyering@lucent.com>
76842
76843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76844         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76845
76846 2001-11-01  Jim Meyering  <meyering@lucent.com>
76847
76848         * lib/dirfd.c, lib/dirfd.h: New files.
76849         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76850
76851         * lib/hash.c (hash_print) [TESTING]: Clean up.
76852
76853 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76854
76855         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76856         to avoid a warning if -Wall.
76857
76858 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76859
76860         * README: New file
76861         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76862         (per RMS's instructions, this is now the canonical source)
76863         * lgpl/, gpl/: New directories.
76864
76865 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76866
76867         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76868
76869 2001-10-21  Jim Meyering  <meyering@lucent.com>
76870
76871         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76872         this code would end up calling gettext even in packages built
76873         with --disable-nls.
76874         * lib/getopt.c (_): Likewise.
76875         * lib/regex.c (_): Likewise.
76876
76877 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76878
76879         * m4/error.m4 (jm_PREREQ_ERROR):
76880         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76881         AC_FUNC_STRERROR_R does that.
76882         Check for strerror declaration.
76883
76884         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76885         are supposed to have them these days.
76886         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76887         Merge changes from latest Autoconf CVS.
76888         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76889         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76890         POSIX decided to standardize on the int flavor of strerror_r.
76891
76892 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76893
76894         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76895         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76896         Use strerror_r that is only a macro, even if it is not a function.
76897         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76898         (private_strerror): Use prototypes, not old-style function definition.
76899         (print_errno_message): New function.
76900         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76901         char*-flavored one.
76902         (error_tail, error, error_at_line): Use it.
76903
76904 2001-10-11  Jim Meyering  <meyering@lucent.com>
76905
76906         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76907         and quote_n (1, ... to avoid clobbering a buffer.
76908
76909 2001-10-05  Jim Meyering  <meyering@lucent.com>
76910
76911         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76912         hash-pjw.h.
76913         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76914         * lib/hash-pjw.h: New file.
76915
76916 2001-09-30  Jim Meyering  <meyering@lucent.com>
76917
76918         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76919         `struct fsstat' has the `f_fstypename' member.
76920         Use that to define FS_TYPE, which is now used to make
76921         the getfsstat link test tighter.
76922
76923 2001-09-30  Jim Meyering  <meyering@lucent.com>
76924
76925         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76926         Include <sys/ucred.h>, for Apple Darwin.
76927         Include sys/mount.h and sys/fs_types.h only if available.
76928         (FS_TYPE): Define.
76929         (read_filesystem_list): Use FS_TYPE.
76930
76931 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76932
76933         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76934         a boolean context.
76935
76936 2001-09-29  Jim Meyering  <meyering@lucent.com>
76937
76938         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76939         [one-argument getmntent function]): Include stdio.h before mntent.h.
76940         SunOS 4.1.x needs it for the declaration of `FILE'.
76941         Patch by Volker Borchert.
76942
76943         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76944         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76945         sys/fs_types.h, and make the link-test for getfsstat guard #include
76946         directives with appropriate #if HAVE_*_H tests so that we can
76947         detect getfsstat on Apple Darwin1.3.7 systems.
76948         Reported by Nelson Beebe.
76949         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76950
76951 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76952
76953         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76954         #defines strtoimax.  Also treat the other strto* functions
76955         like strtoimax.
76956
76957         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76958         Check for strtoul and strtoumax,
76959         as those declarations are made even in the signed case.
76960         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76961         Likewise, for strtol and strtoimax.
76962
76963 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76964
76965         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76966         #defines strtoimax.  Also treat the other strto* functions
76967         like strtoimax.
76968
76969         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76970         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76971         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76972
76973 2001-09-26  Jim Meyering  <meyering@lucent.com>
76974
76975         Most macros in unlocked-io.h had the wrong number of arguments.
76976         * lib/gen-uio: New script.
76977         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76978         * lib/unlocked-io.hin: Remove file.
76979         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76980         rather than trying to embed it here.
76981         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76982         Reported by Padraig Brady.
76983
76984 2001-09-25  Volker Borchert  <bt@teknon.de>
76985
76986         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76987         `result'.
76988
76989 2001-09-24  Jim Meyering  <meyering@lucent.com>
76990
76991         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76992
76993 2001-09-23  Jim Meyering  <meyering@lucent.com>
76994
76995         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76996         instead of the mere test for existence of mntent.h.  The latter
76997         would get a false-positive on AIX 3.4 systems.
76998         In the outer getmntent if-block, don't die if neither of the getmntent
76999         tests succeeds.  Instead, just fall through and continue with the
77000         remaining tests.
77001
77002 2001-09-23  Jim Meyering  <meyering@lucent.com>
77003
77004         * lib/mountlist.c: Remove useless parentheses in #if directives.
77005         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77006         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77007
77008 2001-09-22  Jim Meyering  <meyering@lucent.com>
77009
77010         * m4/gettext.m4: New file.  From gettext.
77011         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77012         * m4/progtest.m4: Likewise
77013         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77014         * m4/glibc21.m4: Likewise.
77015
77016         * m4/libintl.m4: Remove.  No longer used.
77017
77018 2001-09-22  Jim Meyering  <meyering@lucent.com>
77019
77020         * lib/localcharset.c: Update from latest gettext.
77021         * lib/config.charset: Likewise.
77022
77023 2001-09-20  Jim Meyering  <meyering@lucent.com>
77024
77025         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77026         strtoimax.
77027         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77028         strtoumax.
77029
77030 2001-09-20  Jim Meyering  <meyering@lucent.com>
77031
77032         * lib/xstrtol.c (strtoimax): Guard declaration with
77033         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77034         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77035         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77036         (strtoumax): Likewise, for completeness (it wasn't necessary).
77037
77038 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77039
77040         * lib/strtoimax.c (HAVE_LONG_LONG):
77041         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77042         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77043         to work around bug in IBM C compiler.
77044
77045 2001-09-17  Jim Meyering  <meyering@lucent.com>
77046
77047         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77048         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77049         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77050         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77051         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77052         whenever the right hand side need not be expanded by the shell.
77053
77054 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77055
77056         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77057         library.  It's not correct, as some older glibcs are buggy.
77058         fnmatch wasn't fixed until glibc 2.2.
77059
77060         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77061         special shell magic here.
77062
77063 2001-09-16  Jim Meyering  <meyering@lucent.com>
77064
77065         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77066         * m4/jm-macros.m4: Require it.
77067
77068 2001-09-16  Jim Meyering  <meyering@lucent.com>
77069
77070         * lib/mkdir.c: New file.
77071
77072 2001-09-15  Jim Meyering  <meyering@lucent.com>
77073
77074         * m4/jm-macros.m4: Check for help2man.
77075
77076 2001-09-11  Jim Meyering  <meyering@lucent.com>
77077
77078         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77079         The body, by Paul Eggert, was moved here from configure.in.
77080         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77081
77082 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77083
77084         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77085         (jm_PREREQ): Use it.
77086
77087 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77088
77089         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77090         Use ssize_t, not int, to store result of readlink.
77091         Check for ssize_t overflow as well as size_t overflow,
77092         as POSIX says the result of readlink is implementation-defined
77093         when ssize_t overflows.
77094         Remove unnecessary cast to char*.
77095         Use free+malloc instead of realloc, as the storage doesn't need
77096         to be preserved and it's clearer and can be more efficient that way.
77097         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77098         * lib/xreadlink.h (xreadlink): Update prototype.
77099
77100 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77101
77102         * lib/xgetcwd.c: Revert some of the previous change; intead,
77103         fix the HAVE_GETCWD_NULL code to behave more like the
77104         !HAVE_GETCWD_NULL code used to.
77105
77106         Include "xalloc.h".
77107         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77108         invoke xalloc_die.
77109
77110 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77111
77112         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77113         sys/param.h, as pathmax.h includes them.
77114
77115 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77116
77117         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77118         (jm_PREREQ_XGETCWD): New macro.
77119
77120         * m4/getcwd.m4: New file.
77121
77122 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77123
77124         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77125         like the HAVE_GETCWD_NULL code.
77126         Include pathmax.h if not HAVE_GETCWD.
77127         Do not include xalloc.h.
77128         (INITIAL_BUFFER_SIZE): New symbol.
77129         Do not use xmalloc / xrealloc, since the caller is responsible for
77130         handling errors.  Preserve errno around `free' during failure.
77131         Do not overrun buffer when using getwd.
77132
77133 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77134
77135         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77136         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77137         getcwd (NULL, 0).
77138
77139 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77140
77141         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77142         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77143         spotted by Jim Meyering.
77144
77145 2001-09-03  Jim Meyering  <meyering@lucent.com>
77146
77147         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77148         failure.
77149
77150 2001-09-02  Jim Meyering  <meyering@lucent.com>
77151
77152         * lib/error.c: Update from GNU libc.
77153
77154 2001-09-01  Jim Meyering  <meyering@lucent.com>
77155
77156         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77157         Used by df.
77158
77159 2001-09-01  Jim Meyering  <meyering@lucent.com>
77160
77161         * lib/xreadlink.c: New file.
77162         * lib/xreadlink.h: New file.
77163         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77164         xreadlink.h.
77165
77166         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77167         doesn't conflict with sparc Solaris 7's definition in
77168         /usr/include/sys/int_types.h.
77169
77170         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77171         files.
77172         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77173         and strncasecmp as r-values.  Unixware didn't have declarations.
77174
77175 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77176
77177         * lib/xstrtol.h: Add copyright notice.
77178         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77179         LONGINT_INVALID_SUFFIX_CHAR.
77180
77181 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77182
77183         * lib/xstrtol.c (strtoimax): New decl.
77184
77185 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77186
77187         * lib/xgetcwd.c: Don't include pathmax.h.
77188         Include stdlib.h and unistd.h if available.
77189         Include xalloc.h.
77190         (xmalloc, xstrdup, free): Remove decls.
77191         (xgetcwd): Don't assume sizes fit in unsigned.
77192         Check for overflow when computing sizes.
77193         Simplify reallocation code.
77194
77195 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77196
77197         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77198         a directory's st_size can have an arbitrary value, so the old
77199         usage could waste an arbitrary amount of memory.  All uses
77200         changed.
77201         * lib/savedir.h: Update prototype.
77202
77203 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77204
77205         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77206
77207         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77208         old strtoimax.c.
77209
77210         Also, make the following further changes to make this file's
77211         configuration more similar to that of strtol.c:
77212         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77213         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77214         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77215         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77216         changed to signed values.
77217
77218         And make the following changes as well:
77219         Fix copyright notice, as 1999 was missing.
77220         (verify): New macro.
77221         (strtoimax): Check sizes at compile-time, not run-time.
77222         Prefer strtol to strtoll if both work.
77223         (main): Remove; it was not that useful and was a pain to maintain.
77224
77225         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77226
77227 2001-08-31  Jim Meyering  <meyering@lucent.com>
77228
77229         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77230         Use an initial, malloc'd, buffer of length 128 rather than
77231         a statically allocated one of length 1024.
77232
77233 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77234
77235         Simplify code, partly by assuming autoconf 2.52 semantics.
77236
77237         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77238
77239         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77240         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77241         All uses removed.
77242         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77243         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77244         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77245         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77246         jm_AC_HEADER_INTTYPES_H.
77247         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77248
77249         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77250
77251         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77252         Quote first arg of AC_DEFUN.
77253         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77254         since they are needed to parse the include file even if we need
77255         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77256         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77257         but with opposite signedness.
77258
77259 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77260
77261         Merge 'exclude' changes from tar 1.13.22.
77262         This fixes one or two unlikely storage allocation overflow bugs,
77263         but doesn't change user-visible behavior otherwise.
77264
77265 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77266
77267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77268         (jm_PREREQ_EXCLUDE): New macro.
77269
77270 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77271
77272         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77273         tm to be declared.
77274
77275 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77276
77277         * lib/hash.c: Remove '2001' from copyright notice.
77278
77279 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77280
77281         * lib/full-write.h: New file.
77282         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77283         * lib/full-write.c: Correct credits, as cccp.c no longer
77284         exists and anyway it was so heavily changed from the old cccp
77285         code as to be unrecognizable.  Include full-write.h.
77286         (full_write): Return size_t, with short writes meaning failure.
77287         All callers changed.  This fixes a bug with large buffers
77288         on 64-bit hosts.
77289         * lib/utime.c: Include full-write.h.
77290
77291 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77292
77293         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77294         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77295         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77296         Include if available.
77297         (<xalloc.h>): Include
77298         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77299         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77300         collide with FNM macros.
77301         (struct patopts): New struct.
77302         (struct exclude): Use it, as exclude patterns now come with options.
77303         (new_exclude): Support above changes.
77304         (new_exclude, add_exclude_file):
77305         Initial size must now be a power of two to simplify overflow checking.
77306         (free_exclude, fnmatch_no_wildcards): New function.
77307         (excluded_filename): No longer requires options arg, as the options
77308         are determined by add_exclude.  Now returns bool, not int.
77309         (excluded_filename, add_exclude):
77310         Add support for the fancy new exclusion options.
77311         (add_exclude, add_exclude_file): Now takes int options arg.
77312         Check for arithmetic overflow when computing sizes.
77313         (add_exclude_file): xrealloc might modify errno, so don't
77314         realloc until after errno might be used.
77315
77316         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77317         New macros.
77318         (free_exclude): New decl.
77319         (add_exclude, add_exclude_file): Now takes int options arg.
77320         (excluded_filename): No longer requires options arg, as the options
77321         are determined by add_exclude.  Now returns bool, not int.
77322
77323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77324
77325         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77326
77327 2001-08-27  Jim Meyering  <meyering@lucent.com>
77328
77329         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77330
77331         * lib/version-etc.c (N_): Remove definition.
77332         Revert most of last change.
77333         Instead, simply don't mark the `Copyright...' string for translation.
77334         Based on advice from Paul Eggert.
77335
77336         * lib/strtoxmax.c: Tweak comment.
77337
77338 2001-08-26  Jim Meyering  <meyering@lucent.com>
77339
77340         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77341
77342         * m4/xstrtoimax.m4: New file.
77343         * m4/xstrtoumax.m4: Add comments explaining why we
77344         AC_REPLACE_FUNCS(strtol).
77345
77346 2001-08-26  Jim Meyering  <meyering@lucent.com>
77347
77348         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77349         of copyright with `%s' so translators don't get an untranslated
77350         message in 2002.
77351         (COPYRIGHT_YEAR): Define.
77352         (version_etc): Use fprintf rather than fputs.
77353         Suggestion from Ulrich Drepper.
77354
77355         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77356
77357         * lib/strtoll.c: New file, from GNU libc.
77358         * lib/xstrtoimax.c: New file.
77359
77360         * lib/xstrtol.h: Add xstrtoimax.
77361         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77362         * lib/strtoimax.c: New file.  Likewise, but first define
77363         STRTOUXMAX_SIGNED.
77364
77365         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77366         ...
77367         * lib/strtoxmax.c: ... then renamed to this.
77368
77369 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77370
77371         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77372         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77373         (jm_AC_TYPE_INTMAX_T): New macro.
77374         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77375
77376         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77377
77378         * m4/longlong.m4: Renamed from ulonglong.m4.
77379         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77380         * m4/uintmax_t.m4: Removed.
77381
77382 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77383
77384         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77385         Port to Solaris 8, where 'sed' requires a space after the 'r'
77386         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77387         Redirect output to $tmp just once.
77388
77389 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77390
77391         * lib/addext.c (<errno.h>): Include.
77392         (errno): Declare if not defined.
77393         (addext): Work correctly when pathconf returns -1 and leaves
77394         errno alone because there is no limit.  Also, work even if
77395         pathconf returns a value greater than SIZE_MAX.
77396
77397 2001-08-12  Jim Meyering  <meyering@lucent.com>
77398
77399         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77400         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77401         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77402         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77403         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77404         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77405         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77406         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77407         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77408         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77409         utime.m4, utimes.m4, xstrtoumax.m4:
77410         Quote the first argument in each use of AC_DEFUN.
77411
77412 2001-08-12  Jim Meyering  <meyering@lucent.com>
77413
77414         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77415         Simply `return getcwd (NULL, 0);'.
77416         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77417         Use 1300 as initial value for length, not PATH_MAX.
77418
77419         * lib/pathmax.h: Clean up cpp syntax.
77420
77421 2001-08-12  Jim Meyering  <meyering@lucent.com>
77422
77423         * lib/gettimeofday.c: New file.
77424         * lib/gtod.h: New file.
77425         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77426
77427 2001-08-05  Jim Meyering  <meyering@lucent.com>
77428
77429         * m4/jm-macros.m4: Require autoconf-2.52.
77430
77431 2001-08-04  Jim Meyering  <meyering@lucent.com>
77432
77433         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77434         stmt, to get in sync with glibc.
77435
77436 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77437
77438         The following changes are from gettext 0.10.39 as maintained by
77439         Bruno Haible.
77440
77441         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77442         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77443         with inverted sense.  All uses changed.
77444
77445         * lib/mbswidth.c: Don't include <limits.h>.
77446         Include <stdlib.h> and <string.h> unconditionally.
77447         (iswcntrl, mbsinit, ISCNTRL): New macros.
77448         (mbsnwidth): Use K&R style function declarations.
77449         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77450         can optimize it when MB_CUR_MAX == 1.
77451         The width of control characters is zero, not 1.
77452
77453 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77454
77455         The following changes are from gettext 0.10.39 as maintained by
77456         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77457
77458         * m4/codeset.m4: Upgrade to serial AM1.
77459         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77460         all uses changed.  Quote first arg of AC_DEFUN.
77461         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77462
77463         * m4/iconv.m4: Upgrade to serial AM2.
77464         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77465         Add --with-libconv-prefix.
77466         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77467         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77468         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77469         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77470         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77471
77472         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77473         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77474         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77475         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77476         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77477         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77478         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77479         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77480         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77481
77482         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77483         string.h any more.
77484
77485         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77486         not the default value.
77487
77488         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77489         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77490         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77491         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77492         Also check for iswcntrl, used for wcwidth fallback.
77493         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77494         to Autoconf 2.13.
77495
77496 2001-08-03  Jim Meyering  <meyering@lucent.com>
77497
77498         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77499         as it was in the original.  Reported by Paul Eggert.
77500
77501 2001-07-16  Jim Meyering  <meyering@lucent.com>
77502
77503         * m4/gettimeofday.m4: New file.
77504         Prompted by a report from Bernhard Baehr.
77505
77506 2001-07-15  Jim Meyering  <meyering@lucent.com>
77507
77508         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77509         stuff. Now it's in ../Makefile.cfg.
77510
77511 2001-07-15  Jim Meyering  <meyering@lucent.com>
77512
77513         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77514         (BUILT_SOURCES): Add unlocked-io.h.
77515         (io_functions): Define.
77516         (unlocked-io.h): New rule.
77517         (DISTCLEANFILES): Add unlocked-io.h.
77518         (all-local): Depend on unlocked-io.h, to ensure it is created.
77519
77520         * lib/unlocked-io.hin: New file
77521
77522         * lib/regex.c: Update from glibc.
77523
77524 2001-07-05  Jim Meyering  <meyering@lucent.com>
77525
77526         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77527         recommendation.
77528         (libfetish_a_SOURCES): Put all .h files here instead.
77529         Remove a thus-exposed (better checks in automake) duplicate and
77530         two unnecessary .h files.
77531
77532 2001-07-04  Jim Meyering  <meyering@lucent.com>
77533
77534         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77535         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77536         distcheck failure.
77537
77538 2001-07-02  Jim Meyering  <meyering@lucent.com>
77539
77540         The following changes were prompted by suggestions from Bruno Haible.
77541
77542         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
77543         is now generated.
77544         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
77545         definition of EXTRA_DIST.
77546         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
77547         ensure that the generated file is created/updated whenever the list
77548         of $(unlocked_functions) is changed.
77549         (jm-glibc-io.m4): New rule.
77550         (unlocked-io.h): New rule -- currently unused.
77551
77552 2001-06-24  Jim Meyering  <meyering@lucent.com>
77553
77554         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
77555         unmatched right bracket, rather than kludging it with an extra,
77556         falsely-matching quote in a comment.  Patch by Akim Demaille.
77557
77558 2001-06-11  Jim Meyering  <meyering@lucent.com>
77559
77560         * lib/regex.c: Update from GNU libc.
77561
77562 2001-05-27  Jim Meyering  <meyering@lucent.com>
77563
77564         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
77565         Check for ut_type in struct utmp.
77566
77567 2001-05-27  Jim Meyering  <meyering@lucent.com>
77568
77569         * lib/readutmp.h (UT_TYPE): Define.
77570
77571 2001-05-24  Jim Meyering  <meyering@lucent.com>
77572
77573         * lib/argmatch.c: Include "quote.h".
77574         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
77575         quote function.  Reported by Göran Uddeborg.
77576
77577 2001-05-22  Jim Meyering  <meyering@lucent.com>
77578
77579         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
77580         now that we use the package-supplied version unconditionally.
77581         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
77582
77583 2001-05-21  Jim Meyering  <meyering@lucent.com>
77584
77585         * m4/regex.m4: Change a couple backticks to single quotes to avoid
77586         shell syntax errors.
77587
77588 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77589
77590         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
77591
77592 2001-05-20  Paul Eggert  <eggert@twinsun.com>
77593
77594         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
77595         Don't bother to check library strftime, since
77596         we'll be using our own my_strftime function anyway.
77597         Define my_strftime instead of strftime.
77598
77599 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
77600
77601         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
77602         which is not yet declared.
77603
77604 2001-05-15  Jim Meyering  <meyering@lucent.com>
77605
77606         * m4/regex.m4: Use proper quoting so brackets appear in the test
77607         program.
77608         Reported by, and with help from, Bruno Haible.
77609
77610 2001-05-13  Jim Meyering  <meyering@lucent.com>
77611
77612         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
77613         undefined.
77614
77615 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77616
77617         dirname code cleanup.  base_name now behaves more compatibly
77618         with POSIX basename when given file names that have trailing
77619         slashes, and similarly for dir_name.  Add new primitives
77620         base_len and dir_len.  Put the directory-name-related decls
77621         into dirname.h.
77622
77623         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
77624         * lib/backupfile.c (base_name): Likewise.
77625         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
77626         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
77627         * lib/makepath.c (strip_trailing_slashes): Likewise.
77628         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
77629         ISSLASH): Likewise.
77630         * lib/rename.c (strip_trailing_slashes): Likewise.
77631         * lib/same.c (base_name): Likewise.
77632         * lib/stripslash.c (ISSLASH): Likewise.
77633
77634         * lib/addext.c: Include <dirname.h> after size_t is defined.
77635         * lib/backupfile.c: Likewise.
77636
77637         * lib/addext.c (addext): Use base_len to trim redundant
77638         trailing slashes instead of doing it ourselves.
77639         But do not trim the last slash if it is not redundant.
77640
77641         * lib/backupfile.c (find_backup_file_name,
77642         max_backup_version): Use base_len instead of rolling it ourselves.
77643         Handle the case of "" and (on DOS) "C:" correctly.
77644
77645         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
77646         needed. Include <string.h>, <dirname.h>.
77647         (base_name): Allow file names ending in slashes, other than names
77648         that are all slashes.  In this case, return the basename followed
77649         by the slashes.  This is more general, and can be used in places
77650         where the original base_name purposely had an assertion failure.
77651         (base_len): New function.
77652
77653         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
77654         Do not include <assert.h>; no longer needed.
77655         Include xalloc.h.
77656         (memrchr): Remove decl.
77657         (dir_name_r): Remove.
77658         (dir_len): Renamed from dirlen.  All callers changed.
77659         Rewrite in terms of base_name, for simplicity and consistency.
77660         (dir_name): Never return NULL.  All callers changed.
77661         Do not include <stdlib.h> in test program; no longer needed.
77662         return 0; is fine for test program.
77663
77664         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
77665         New macros.
77666         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
77667
77668         * lib/path-concat.c (path_concat): Use base_len to compute
77669         base length, not strlen; this means we cannot rely on memcpy
77670         to null-terminate.
77671
77672         * lib/same.c (STREQ): Remove.
77673         (same_name): Handle the case where the basename ends in trailing '/'.
77674
77675         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
77676         a slash was stripped.  Do not strip the last slash after a
77677         file system prefix.
77678
77679 2001-05-11  Paul Eggert  <eggert@twinsun.com>
77680
77681         * lib/Makefile.am (libfetish_a_SOURCES):
77682         Add strftime.c, since we now compile it on all hosts.
77683
77684         * lib/strftime.c (my_strftime):
77685         Define to nstrftime if emacs, but only if my_strftime is not defined.
77686         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
77687         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
77688         Add one more extra argument: a nanoseconds value.
77689         All uses changed.
77690         (ns): New macro.
77691         (my_strftime function): Add %N format.
77692         (emacs_strftimeu): Renamed from emacs_strftime,
77693         with extra ut argument.
77694
77695 2001-05-09  Paul Eggert  <eggert@twinsun.com>
77696
77697         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
77698
77699 2001-04-21  Jim Meyering  <meyering@lucent.com>
77700
77701         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
77702         doesn't interfere.
77703
77704 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
77705
77706         * m4/ftruncate.m4: Check for chsize.
77707         Link with ftruncate.o unconditionally if ftruncate is missing.
77708         This was required when cross-compiling to i586-mingw32msvc.
77709
77710 2001-04-08  Jim Meyering  <meyering@lucent.com>
77711
77712         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
77713         recomputed; that's necessary when the offset spans a DST transition.
77714         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
77715
77716 2001-04-02  Jim Meyering  <meyering@lucent.com>
77717
77718         * lib/regex.h, regex.c: Update from GNU libc.
77719
77720 2001-03-24  Jim Meyering  <meyering@lucent.com>
77721
77722         * m4/jm-macros.m4: Require autoconf-2.49d.
77723
77724 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
77725
77726         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
77727
77728 2001-03-19  Paul Eggert  <eggert@twinsun.com>
77729
77730         * lib/version-etc.c (version_etc_copyright): Update to 2001.
77731
77732 2001-03-17  Jim Meyering  <meyering@lucent.com>
77733
77734         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
77735         now that the version in autoconf is equivalent.
77736         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
77737
77738         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
77739         Suggestion from Akim Demaille.
77740
77741         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
77742         (jm_PREREQ_TEMPNAME): New function.
77743
77744 2001-03-16  Paul Eggert  <eggert@twinsun.com>
77745
77746         * lib/tempname.c (uint64_t): Define to uintmax_t if
77747         not defined, and if UINT64_MAX is not defined.
77748         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
77749         Reported by John David Anglin.
77750
77751 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
77752
77753         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
77754         resolve alias if codeset is empty.
77755         * lib/config.charset (BeOS): Use wildcard syntax.
77756
77757 2001-03-13  Jim Meyering  <meyering@lucent.com>
77758
77759         * lib/path-concat.c (path_concat)
77760         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
77761         concatenating e.g., `C:' and `foo'.
77762         From Bruno Haible.
77763
77764 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77765
77766         * lib/localcharset.c (locale_charset): Don't use
77767         setlocale(LC_CTYPE,NULL). Don't return NULL.
77768         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
77769
77770 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
77771
77772         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
77773         support for DOS/DJGPP.
77774
77775 2001-03-01  Paul Eggert  <eggert@twinsun.com>
77776
77777         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
77778         lacks mkstemp.  Compile our own tempname.c if we compile our own
77779         mkstemp.c, as mkstemp relies on tempname.
77780
77781 2001-03-01  Jim Meyering  <meyering@lucent.com>
77782
77783         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
77784         AH_VERBATIM really does output its argument verbatim.
77785
77786 2001-02-28  Paul Eggert  <eggert@twinsun.com>
77787
77788         * lib/Makefile.am (libfetish_a_SOURCES):
77789         Add dup-safer.c, fopen-safer.c.
77790         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
77791
77792         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
77793         * lib/unistd-safer.h: New files.
77794
77795 2001-02-25  Paul Eggert  <eggert@twinsun.com>
77796
77797         The mkstemp replacement is taken from glibc 2.2.2, with some
77798         portability fixes for use outside glibc, as follows:
77799
77800         * lib/tempname.c (struct_stat64): New macro.
77801         (direxists, __gen_tempname): Use it.
77802         This avoids a portability problem with Solaris 8.
77803
77804         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
77805         (<stddef.h>, <stdint.h>, <string.h>):
77806         Include only if STDC_HEADERS || _LIBC.
77807         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
77808         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
77809         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
77810         (__set_errno): Define this macro if <errno.h> doesn't.
77811         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
77812         Define these macros if <stdio.h> doesn't.
77813         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77814         Define these macros if <sys/stat.h>
77815         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77816         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77817         __xstat64): Define if not _LIBC.
77818         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77819         (__gen_tempname): Invoke gettimeofday only if
77820         HAVE_GETTIMEOFDAY || _LIBC;
77821         otherwise, fall back on plain "time".
77822         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77823
77824         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77825
77826         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77827
77828 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77829
77830         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77831
77832 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77833
77834         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77835         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77836         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77837         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77838
77839 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77840
77841         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77842         Remove workaround macros for hosts that have mbrtowc but not
77843         mbstate_t, as we now insist on proper declarations for both
77844         before using mbrtowc.
77845
77846 2001-02-17  Jim Meyering  <meyering@lucent.com>
77847
77848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77849         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77850         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77851         UnixWare 7.1.1.
77852
77853         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77854         rather than AC_CACHE_VAL.
77855
77856 2001-02-17  Jim Meyering  <meyering@lucent.com>
77857
77858         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77859         around included file name.
77860
77861         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77862
77863         * lib/strftime.c: Update from GNU libc (the only changes were to
77864         comments).
77865
77866 2001-02-17  Jim Meyering  <meyering@lucent.com>
77867
77868         * lib/regex.c: Update from libc.
77869
77870 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77871
77872         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77873         clash.
77874
77875 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77876
77877         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77878         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77879         Reported by Mark Hounschell via Paul Eggert.
77880
77881 2001-02-07  Jim Meyering  <meyering@lucent.com>
77882
77883         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77884
77885 2001-02-05  Jim Meyering  <meyering@lucent.com>
77886
77887         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77888         it includes the patch required for `large file' support with at least
77889         HP-UX's 10.20 /bin/cc.
77890
77891 2001-02-03  Jim Meyering  <meyering@lucent.com>
77892
77893         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77894         AS_IF, now that it works once again (mysteriously).
77895         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77896
77897 2001-01-30  Jim Meyering  <meyering@lucent.com>
77898
77899         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77900         * m4/chown.m4: Rename conftestchown to conftest.chown.
77901         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77902         s/conftestdir2/conftest.d2/.
77903         * m4/utimes.m4: s/conftestdata/conftest.data/
77904         Inspired by Pavel Roskin's change in autoconf.
77905
77906 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77907
77908         * lib/config.charset: Update for FreeBSD 4.2.
77909
77910 2001-01-27  Jim Meyering  <meyering@lucent.com>
77911
77912         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77913         a use of AS_IF.
77914         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77915
77916 2001-01-26  Jim Meyering  <meyering@lucent.com>
77917
77918         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77919         quotearg.c includes it.
77920
77921 2001-01-26  Jim Meyering  <meyering@lucent.com>
77922
77923         * lib/quotearg.c: Include stddef.h.
77924         * lib/quote.c: Include stddef.h.
77925         Reported by Axel Kittenberger.
77926
77927         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77928         line in double quotes so that it evokes a better diagnostic.
77929         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77930         Reported by Axel Kittenberger.
77931
77932 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77933
77934         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77935         as if it was a `charset'.
77936
77937 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77938
77939         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77940         has const.
77941
77942 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77943
77944         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77945         to avoid a warning.  Add back 'const' to inptr.
77946
77947 2001-01-20  Jim Meyering  <meyering@lucent.com>
77948
77949         Be sure that headers are checked before used in code compiled
77950         for the type checks.
77951         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77952         In place of that, invoke jm_CHECK_ALL_TYPES.
77953         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77954         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77955         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77956         The check for ssize_t was mistakenly run before the test for unistd.h.
77957
77958         The configure-time check for stdbool.h was missing.
77959         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77960         (jm_PREREQ_HASH): New function.
77961
77962 2001-01-17  Jim Meyering  <meyering@lucent.com>
77963
77964         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77965         for autoconf-2.49c.
77966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77967
77968 2001-01-16  Jim Meyering  <meyering@lucent.com>
77969
77970         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77971         From Bruno Haible.
77972
77973 2001-01-14  Jim Meyering  <meyering@lucent.com>
77974
77975         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77976         foo and bar.  Create conftestdir/ in the script, not in the C code.
77977         Remove directories in the script, not in the C code.
77978         Remove conftestdir{,2} before trying to create the directory.
77979         Make the entire configure script fail if the mkdir fails.
77980
77981 2001-01-14  Jim Meyering  <meyering@lucent.com>
77982
77983         * lib/rename.c: New file.  From Volker Borchert.
77984         Include stdlib.h, string.h or strings.h, and xalloc.h.
77985         Use strip_trailing_slashes rather than open-coding it.
77986
77987 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77988
77989         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77990
77991 2001-01-03  Jim Meyering  <meyering@lucent.com>
77992
77993         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77994         of local `inptr' to avoid warning with some system declarations of
77995         iconv.
77996
77997 2001-01-02  Volker Borchert  <bt@teknon.de>
77998
77999         * m4/rename.m4: New file.
78000         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78001
78002 2001-01-01  Jim Meyering  <meyering@lucent.com>
78003
78004         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78005         even on systems with utmpx.h.  It's necessary for the declaration of
78006         utmp's ut_user member.  Reported by Andreas Jaeger.
78007
78008         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78009         available. They are required for the declarations of getgrgid and
78010         getpwuid resp.
78011         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78012         Reported by Andreas Jaeger.
78013
78014 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78015
78016         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78017         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78018         so `make install' also works in VPATH builds.
78019
78020 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78021
78022         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78023         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78024         can be used in subdirectories.
78025
78026 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78027
78028         * lib/modechange.c: Do not assume that mode_t uses the
78029         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78030         the other-execute bit of FOO even if S_IXOTH != 1.
78031
78032         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78033         WOTH, XOTH, ALLM): New macros.
78034         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78035          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78036         Use them.
78037         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78038         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78039         (mode_compile):
78040         No need to use uintmax_t; unsigned long is long enough.
78041         Don't bother to get suffix since we don't use it.
78042
78043 2000-12-26  Jim Meyering  <meyering@lucent.com>
78044
78045         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78046         better with autoheader.
78047
78048 2000-12-24  Jim Meyering  <meyering@lucent.com>
78049
78050         * lib/hash.c (is_prime): Return explicit boolean values.
78051         (hash_get_first): Return NULL to appease Irix5.6's 89.
78052         Reported by Nelson Beebe.
78053
78054 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78055
78056         * lib/localcharset.c (locale_charset): Add support for Win32.
78057
78058 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78059
78060         * lib/physmem.h, lib/physmem.c: New files.
78061
78062         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78063         (noinst_HEADERS): Add physmem.h.
78064
78065         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78066         't' for compatibility with Solaris 8 sort.
78067
78068 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78069
78070         * lib/config.charset: Add support for BeOS.
78071
78072 2000-12-17  Jim Meyering  <meyering@lucent.com>
78073
78074         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78075         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78076
78077 2000-12-16  Jim Meyering  <meyering@lucent.com>
78078
78079         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78080         N and M) would have treated it like `chown N:N FILE'.
78081
78082         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78083
78084 2000-12-16  Jim Meyering  <meyering@lucent.com>
78085
78086         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78087         SHELLS_FILE to a file name that's useful on djgpp systems.
78088         Include stdlib.h.
78089         (ADDITIONAL_DEFAULT_SHELLS): Define.
78090         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78091         Based mostly on a patch from Prashant TR.
78092
78093 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78094
78095         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78096         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78097         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78098
78099 2000-12-08  Andreas Schwab  <schwab@suse.de>
78100
78101         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78102         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78103
78104 2000-12-07  Jim Meyering  <meyering@lucent.com>
78105
78106         * lib/stripslash.c (ISSLASH): Define.
78107         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78108         `/'.
78109         From Prashant TR.
78110
78111         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78112         (dir_name_r): Declare this function as static.
78113         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78114         manifest itself on a name containing a mix of slashes and
78115         backslashes.
78116         Make this function work with names starting with a DOS-style
78117         drive letter and colon prefix.
78118         (dir_name): Append `.' if necessary.
78119         Based mostly on patches from Prashant TR and Eli Zaretskii.
78120
78121         * lib/dirname.h (dir_name_r): Remove prototype.
78122
78123 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78124
78125         * m4/off_t-format.m4: Remove this file.
78126         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78127
78128 2000-12-06  Jim Meyering  <meyering@lucent.com>
78129
78130         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78131         replacement strtoull, we may well need the replacement strtoul, too.
78132         Check for declarations of strtoul and strtoull.
78133         Check for strtol.  Mainly as a cue to cause automake to include
78134         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78135         Check for limits.h -- strtol.c needs it.
78136
78137 2000-12-05  Jim Meyering  <meyering@lucent.com>
78138
78139         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78140
78141 2000-12-04  Jim Meyering  <meyering@lucent.com>
78142
78143         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78144         Also include memory.h, stdlib.h, unistd.h if appropriate.
78145         Reported by Andreas Jaeger (conflicting declaration of malloc).
78146
78147 2000-12-02  Jim Meyering  <meyering@lucent.com>
78148
78149         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78150         * m4/jm-macros.m4 (jm_MACROS): require it.
78151
78152 2000-12-02  Jim Meyering  <meyering@lucent.com>
78153
78154         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78155
78156 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78157
78158         * lib/memrchr.c: Include <config.h> before any system include file.
78159
78160 2000-11-30  Jim Meyering  <meyering@lucent.com>
78161
78162         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78163
78164 2000-11-30  Jim Meyering  <meyering@lucent.com>
78165
78166         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78167
78168 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78169
78170         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78171
78172 2000-11-26  Jim Meyering  <meyering@lucent.com>
78173
78174         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78175
78176 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78177
78178         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78179         size of (size_t) -1; it's not portable.
78180
78181 2000-11-17  Jim Meyering  <meyering@lucent.com>
78182
78183         * lib/strstr.c: Update from GNU libc.
78184
78185 2000-11-17  Akim Demaille  <akim@epita.fr>
78186
78187         * lib/obstack.h: Formatting changes.
78188         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78189         prevent type checking.
78190         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78191         cast the value to (void *): assigning a `foo *' to a `void *'
78192         variable is valid.
78193         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78194
78195 2000-11-16  Jim Meyering  <meyering@lucent.com>
78196
78197         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78198
78199 2000-11-11  Jim Meyering  <meyering@lucent.com>
78200
78201         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78202
78203 2000-11-10  Jim Meyering  <meyering@lucent.com>
78204
78205         * lib/obstack.h: Update from GNU libc.
78206         * lib/obstack.c: Likewise.
78207
78208 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78209
78210         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78211
78212 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78213
78214         * lib/getusershell.c (setusershell): Use rewind rather than
78215         fseek/fseeko, to avoid configuration hassles with fseeko.
78216         Don't bother opening SHELLS_FILE if shellstream is NULL;
78217         it's not necessary.
78218
78219 2000-11-05  Jim Meyering  <meyering@lucent.com>
78220
78221         * lib/makepath.h (make_dir): Declare.
78222         * lib/makepath.c (make_dir): Remove `static' attribute.
78223         Tweak a comment.
78224
78225 2000-11-04  Jim Meyering  <meyering@lucent.com>
78226
78227         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78228
78229 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78230
78231         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78232         last one in a bucket, advance to the next bucket.
78233
78234 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78235
78236         * lib/fnmatch.c: Do not comment out all the code if we are using
78237         the GNU C library, because in some cases we are replacing buggy
78238         code in the GNU C library itself.
78239
78240 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78241
78242         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78243         (regex_compile): Catch bogus \(\1\).
78244
78245 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78246
78247         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78248         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78249         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78250
78251 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78252
78253         * lib/error.h, getline.h, modechange.h:
78254         Remove "2000" from Copyright line, as the file hasn't been
78255         changed this year other than in the copyright notice.
78256
78257         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78258         was changed this year.
78259
78260 2000-10-29  Jim Meyering  <meyering@lucent.com>
78261
78262         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78263         renaming.
78264         * m4/ls-mntd-fs.m4: Likewise
78265
78266 2000-10-29  Jim Meyering  <meyering@lucent.com>
78267
78268         * lib/xstat.in: Fix grammar in comment.
78269
78270 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78271
78272         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78273         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78274         doesn't define __restrict_arr.
78275
78276 2000-10-28  Jim Meyering  <meyering@lucent.com>
78277
78278         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78279         (jm_PREREQ_MEMCHR): New function.
78280
78281 2000-10-28  Jim Meyering  <meyering@lucent.com>
78282
78283         * lib/memchr.c: Update from libc.
78284         Adjust for portability:
78285         [HAVE_STDLIB_H]: Include stdlib.h.
78286         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78287         Undef __memchr, too.
78288         [!weak_alias]: Define __memchr to memchr.
78289
78290         * lib/regex.c: Update from libc.
78291         * lib/regex.h: Likewise.
78292         * lib/getopt1.c: Likewise.
78293         * lib/memcmp.c: Likewise.
78294
78295         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78296         Avoid using fseek, when possible -- it's broken by design.
78297         Patch by Ulrich Drepper.
78298
78299 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78300
78301         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78302         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78303         Giving in to popular pressure to shut up the compiler with casts.
78304
78305 2000-10-26  Jim Meyering  <meyering@lucent.com>
78306
78307         * lib/strftime.c: Update from libc.
78308
78309 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78310
78311         * regex.c: More `unsigned char' -> `re_char' changes.
78312         Also change several `int' into `re_wchar_t'.
78313         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78314         (PUSH_FAILURE_POINTER): Don't cast any more.
78315         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78316         We want GCC to complain, since this piece of code makes
78317         re_match non-reentrant, which *should* be fixed.
78318         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78319         (EXTEND_BUFFER): Use RETALLOC.
78320         (SET_LIST_BIT): Don't cast.
78321         (re_wchar_t): New type.
78322         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78323         that those two functions will always properly return.
78324         (IMMEDIATE_QUIT_CHECK): Cast to void.
78325         (analyse_first): Use recursion rather than an explicit stack.
78326         (re_compile_fastmap): Can't fail anymore.
78327         (re_search_2): Don't check re_compile_fastmap for failure.
78328         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78329         Now also sets the new value (passed in a new argument).
78330         (re_match_2_internal): Use it.
78331         Also, use a new var `reg' of type size_t when looping through regs
78332         rather than reuse the inappropriate `mcnt'.
78333
78334 2000-10-25  Jim Meyering  <meyering@lucent.com>
78335
78336         * lib/obstack.c: Update from libc.
78337
78338 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78339
78340         * regex.c (regex_compile): Change the way of handling a range from
78341         a char less than 256 to a char not less than 256.
78342
78343 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78344
78345         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78346         NT-Emacs only.
78347         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78348         so that re_search functions only quit when callers expect them to.
78349
78350 2000-10-23  Jim Meyering  <meyering@lucent.com>
78351
78352         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78353         wrong.  That set_locale call must not have any side effects.
78354         From Paul Eggert.
78355
78356 2000-10-22  Jim Meyering  <meyering@lucent.com>
78357
78358         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78359         [CYCLIC]: Remove now-unused definition.
78360
78361         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78362         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78363         Suggestion from Ulrich Drepper.
78364
78365 2000-10-21  Jim Meyering  <meyering@lucent.com>
78366
78367         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78368         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78369         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78370
78371 2000-10-21  Jim Meyering  <meyering@lucent.com>
78372
78373         * lib/dirname.c (memrchr): Declare if necessary.
78374         (dir_name): Remove the restriction that there be no
78375         trailing slashes.  Now, this code skips past them, effectively
78376         ignoring them.
78377         [TEST_DIRNAME] (main): New unit tests.
78378
78379         * lib/memrchr.c: New file from GNU libc.
78380         Undef __memrchr, too.
78381         [!weak_alias]: Define __memrchr to memrchr.
78382         Guard weak_alias use with `#ifdef weak_alias'.
78383
78384 2000-10-21  Jim Meyering  <meyering@lucent.com>
78385
78386         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78387         (dir_name): Use dir_name_r.
78388         * lib/dirname.h (dir_name_r): Declare it.
78389
78390 2000-10-17  Jim Meyering  <meyering@lucent.com>
78391
78392         * lib/quote.h (PARAMS): Define and use.
78393         Reported by Akim Demaille.
78394
78395         * lib/getopt.c: Update from libc.
78396
78397 2000-10-16  Jim Meyering  <meyering@lucent.com>
78398
78399         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78400         setlocale.
78401         From Jan Fedak.
78402
78403 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78404
78405         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78406
78407 2000-09-25  Jim Meyering  <meyering@lucent.com>
78408
78409         * lib/md5.h (rol): Define (from GnuPG).
78410
78411         * lib/sha.c: Give credit (GnuPG) where due.
78412         (M): Use rol rather than open-coding it.
78413         Add a FIXME comment.
78414
78415 2000-09-21  Jim Meyering  <meyering@lucent.com>
78416
78417         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78418         Reported by Michael Stone.
78419
78420 2000-09-20  Jim Meyering  <meyering@lucent.com>
78421
78422         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78423         (noinst_HEADERS): Add sha.h.
78424         Based on code from Scott G. Miller and from GnuPG.
78425
78426 2000-09-18  Jim Meyering  <meyering@lucent.com>
78427
78428         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78429         LIBS. Otherwise, everyone ends up linking with -lelf for some
78430         configurations.
78431         Reported by Mike Stone.
78432
78433 2000-09-15  Jim Meyering  <meyering@lucent.com>
78434
78435         * lib/regex.c: Update from libc.
78436
78437 2000-09-10  Jim Meyering  <meyering@lucent.com>
78438
78439         * lib/getopt.c (_getopt_internal): Update from glibc.
78440
78441 2000-09-09  Jim Meyering  <meyering@lucent.com>
78442
78443         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78444         think it should be used as a general replacement for isascii.
78445         * lib/fnmatch.c: Likewise.
78446         * lib/mbswidth.c: Likewise
78447         * lib/regex.c: Likewise.
78448
78449         Don't use atoi.
78450         * lib/userspec.c: Include sys/param.h and limits.h.
78451         Include xstrtol.h.
78452         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78453         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78454         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78455         UID, GID.  Check range.
78456
78457 2000-09-06  Jim Meyering  <meyering@lucent.com>
78458
78459         * lib/getopt.c (_getopt_internal): Update from glibc.
78460
78461 2000-08-30  Jim Meyering  <meyering@lucent.com>
78462
78463         * lib/strftime.c: Merge in changes from GNU libc.
78464
78465 2000-08-26  Jim Meyering  <meyering@lucent.com>
78466
78467         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78468         * m4/fpending.m4: New file.
78469
78470 2000-08-26  Jim Meyering  <meyering@lucent.com>
78471
78472         * lib/closeout.c: Include "__fpending.h".
78473         (close_stdout_status): Return right away if there's nothing to flush.
78474
78475         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78476         * lib/__fpending.c: New file.
78477         * lib/__fpending.h: New file.
78478
78479 2000-08-20  Jim Meyering  <meyering@lucent.com>
78480
78481         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78482         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78483         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78484
78485 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78486
78487         Improve fileutils installation on systems where running
78488         programs (like install) can't be unlinked.
78489         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78490         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78491
78492 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78493
78494         Standardize on "memory exhausted" instead of "Memory exhausted"
78495         or "virtual memory exhausted".
78496         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78497         "virtual memory exhausted".
78498         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78499         our own message.
78500         * lib/userspec.c (parse_user_spec): Likewise.
78501         * lib/bumpalloc.h: comment fix
78502         * lib/same.c, userspec.c: Include xalloc.h.
78503
78504         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78505         not char *const and pointing to a constant array.
78506         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78507         (xrealloc): Comment fix.
78508
78509         * lib/userspec.c (parse_user_spec):
78510         Don't translate a message until just before returning,
78511         to avoid unnecessary translation.
78512
78513 2000-08-07  Jim Meyering  <meyering@lucent.com>
78514
78515         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78516         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78517         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78518         getgroups.c, gethostname.c, getopt.h, group-member.c,
78519         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78520         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78521         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78522         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78523         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78524         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78525         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78526         yesno.c: Back out Copyright date changes for each file with no change
78527         this year.  This eases coordination with other programs using the same
78528         source code modules.  From Paul Eggert.
78529
78530 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78531
78532         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78533         not char, for compatibility with glibc 2.1.3 strftime.c.
78534
78535 2000-08-03  Greg McGary  <greg@mcgary.org>
78536
78537         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78538         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78539         (EXTEND_BUFFER): Use them.
78540
78541 2000-08-01  Jim Meyering  <meyering@lucent.com>
78542
78543         * lib/dirname.c (ISSLASH): Define.
78544         (BACKSLASH_IS_PATH_SEPARATOR): Define.
78545         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
78546         both `\' and `/' may be use as path separators.
78547         Based on a patch from Prashant TR.
78548
78549 2000-07-31  Paul Eggert  <eggert@twinsun.com>
78550
78551         * lib/quotearg.c (quotearg_n_options): Don't make the initial
78552         slot vector a constant, since it might get modified.
78553
78554 2000-07-31  Jim Meyering  <meyering@lucent.com>
78555
78556         * lib/xmalloc.c: Use `virtual memory exhausted', not
78557         `Memory exhausted'.
78558         * lib/obstack.c (print_and_abort): Likewise.
78559
78560 2000-07-30  Paul Eggert  <eggert@twinsun.com>
78561
78562         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
78563         buffer, so that the caller can always quote one small
78564         component of a "memory exhausted" message in slot 0.
78565         From a suggestion by Jim Meyering.
78566
78567 2000-07-30  Jim Meyering  <meyering@lucent.com>
78568
78569         * lib/makepath.c (make_path): Quote the other instance, too.
78570
78571         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
78572         (STATIC_BUF_SIZE): Define.
78573         (quotearg_n_options): Use only statically allocated storage when
78574         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
78575         than STATIC_BUF_SIZE.
78576
78577 2000-07-29  Jim Meyering  <meyering@lucent.com>
78578
78579         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
78580         * lib/dirname.c (dir_name): Likewise.
78581
78582         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
78583         `/'.
78584
78585         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
78586         (dir_name): Assert that there are no trailing slashes.
78587
78588 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
78589
78590         * lib/mbswidth.h (mbswidth): Add a flags argument.
78591         (mbswidth): New declaration.
78592         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
78593         * lib/mbswidth.c (mbswidth): Add a flags argument.
78594         (mbsnwidth): New function.
78595
78596 2000-07-24  Jim Meyering  <meyering@lucent.com>
78597
78598         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
78599
78600 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78601
78602         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
78603
78604 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78605
78606         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
78607         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
78608         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
78609         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
78610         invoke multibyte primitives.
78611
78612 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78613
78614         * lib/quotearg.c:
78615         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
78616         so that mbstate_t is always defined.
78617
78618         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
78619         be 1 in at least one GCC installation, and this configuration
78620         error is likely to be common.  Ignoring MB_LEN_MAX hurts
78621         performance on hosts that have mbrtowc but have only unibyte
78622         locales, but I assume these hosts are rare.
78623
78624 2000-07-23  Paul Eggert  <eggert@twinsun.com>
78625
78626         * lib/mbswidth.c (_XOPEN_SOURCE):
78627         Don't define; this causes problems on Solaris 7.
78628         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
78629
78630 2000-07-23  Jim Meyering  <meyering@lucent.com>
78631
78632         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
78633         too: getgrgid, getpwuid, getuid.
78634
78635 2000-07-23  Jim Meyering  <meyering@lucent.com>
78636
78637         * lib/basename.c (base_name): Add an assertion.
78638
78639 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
78640
78641         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
78642         shadow its mbsinit function.
78643
78644 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78645
78646         * lib/mbswidth.h: New file.
78647         * lib/mbswidth.c: New file.
78648         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
78649         (noinst_HEADERS): Add mbswidth.h.
78650
78651 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
78652
78653         * lib/config.charset: Add support for FreeBSD. Improve support for
78654         HP-UX and IRIX 6.
78655
78656 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
78657
78658         * m4/mbswidth.m4: New file.
78659         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
78660
78661 2000-07-15  Jim Meyering  <meyering@lucent.com>
78662
78663         * lib/makepath.c: Include quote.h.
78664         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
78665         corresponding argument in a `quote (...)' call.
78666         Give better diagnostics.
78667
78668         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
78669         (noinst_HEADERS): Add quote.h.
78670
78671         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
78672         from tar's src/misc.c.
78673         * lib/quote.h: New file.  Prototypes for same.
78674
78675 2000-07-14  Paul Eggert  <eggert@twinsun.com>
78676
78677         From a suggestion by Bruno Haible.
78678         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
78679         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
78680         to decide whether to define the BeOS workaround macro;
78681         this adjusts to the change to AC_MBSTATE_T.
78682
78683 2000-07-14  Jim Meyering  <meyering@lucent.com>
78684
78685         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
78686         jm_AC_TYPE_UINTMAX_T.
78687
78688 2000-07-13  Paul Eggert  <eggert@twinsun.com>
78689
78690         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
78691
78692         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
78693         quotearg_buffer_restyled): Add support for
78694         clocale_quoting_style.  Undo previous change to
78695         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
78696         and "{RIGHT QUOTATION MARK}" msgids.
78697
78698 2000-07-10  Paul Eggert  <eggert@twinsun.com>
78699
78700         From a suggestion by Bruno Haible.
78701         * m4/mbstate_t.m4 (AC_MBSTATE_T):
78702         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
78703         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
78704         and mbstate_t, to a single-part test that simply defines mbstate_t.
78705         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
78706         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
78707
78708 2000-07-10  Jim Meyering  <meyering@lucent.com>
78709
78710         * m4/strerror_r.m4: Mirror the correction made in autoconf.
78711
78712         * m4/gnu-source.m4: Output to confdefs.h directly.
78713         Suggestion from Akim Demaille.
78714
78715 2000-07-09  Paul Eggert  <eggert@twinsun.com>
78716
78717         The old behavior of quoting `like this' doesn't look good with
78718         newer, ISO-style fonts.  See:
78719         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
78720
78721         Instead, quote "like this" by default.  Let the translator
78722         tailor the locale-specific quoting behavior by providing
78723         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
78724
78725         * lib/quotearg.c (N_): New macro.
78726         (gettext_default): New function.
78727         (quotearg_buffer_restyled): Use
78728         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
78729         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
78730
78731 2000-07-09  Jim Meyering  <meyering@lucent.com>
78732
78733         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
78734         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
78735
78736         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
78737         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
78738
78739 2000-07-09  Jim Meyering  <meyering@lucent.com>
78740
78741         * lib/Most files: Update copyright dates to include 2000.
78742
78743 2000-07-08  Jim Meyering  <meyering@lucent.com>
78744
78745         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
78746         if not defined.
78747         (xgethostname): Remove now-unnecessary #ifdef.
78748         Move declaration of `err' into loop where it's used.
78749
78750 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78751         and Bruno Haible  <haible@clisp.cons.org>
78752
78753         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
78754         only if the test for an object-type mbstate_t fails.  This
78755         prevents us from mistakenly reporting that mbstate_t is a
78756         system object type after we "#define mbstate_t int" to work
78757         around its lack.
78758
78759 2000-07-05  Paul Eggert  <eggert@twinsun.com>
78760         and Bruno Haible  <haible@clisp.cons.org>
78761
78762         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
78763
78764 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78765
78766         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
78767         to strerror_r.
78768         Include <ctype.h> for use of isalpha.
78769
78770 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78771
78772         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
78773         by allocating a larger buffer. Test the gethostname return value for
78774         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
78775         returns an error and ENAMETOOLONG isn't defined.
78776
78777 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
78778
78779         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
78780         dimension.
78781
78782 2000-07-04  Jim Meyering  <meyering@lucent.com>
78783
78784         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
78785         of the deprecated AC_CHECKING.
78786
78787 2000-07-04  Jim Meyering  <meyering@lucent.com>
78788
78789         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
78790         Reported by Bruno Haible.
78791
78792 2000-07-04  Jim Meyering  <meyering@lucent.com>
78793
78794         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
78795         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
78796         lacks mbrtowc.
78797
78798 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78799
78800         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
78801         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
78802
78803 2000-07-03  Paul Eggert  <eggert@twinsun.com>
78804         and Bruno Haible  <haible@clisp.cons.org>
78805
78806         * lib/quotearg.c (mbrtowc):
78807         Assign to *pwc, and return 1 only if result is nonzero.
78808         (iswprint): Use ISPRINT when substituting our own mbrtowc.
78809
78810 2000-07-03  Jim Meyering  <meyering@lucent.com>
78811
78812         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78813
78814 2000-07-03  Jim Meyering  <meyering@lucent.com>
78815
78816         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78817         This is necessary to get a definition of e.g., UTMP_FILE on
78818         HP-UX 10.20.
78819         From Bob Proulx.
78820
78821 2000-07-02  Jim Meyering  <meyering@lucent.com>
78822
78823         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78824
78825         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78826         AC_LIBOBJ(function_name).
78827         * m4/chown.m4: Likewise.
78828         * m4/fnmatch.m4: Likewise.
78829         * m4/ftruncate.m4: Likewise.
78830         * m4/getgroups.m4: Likewise.
78831         * m4/getline.m4: Likewise.
78832         * m4/group-member.m4: Likewise.
78833         * m4/jm-macros.m4: Likewise.
78834         * m4/lstat.m4: Likewise.
78835         * m4/malloc.m4: Likewise.
78836         * m4/memcmp.m4: Likewise.
78837         * m4/nanosleep.m4: Likewise.
78838         * m4/putenv.m4: Likewise.
78839         * m4/realloc.m4: Likewise.
78840         * m4/regex.m4: Likewise.
78841         * m4/stat.m4: Likewise.
78842         * m4/strftime.m4: Likewise.
78843
78844 2000-07-02  Jim Meyering  <meyering@lucent.com>
78845
78846         * lib/quotearg.c (mbstate_t): Don't define here.
78847
78848 2000-07-02  Jim Meyering  <meyering@lucent.com>
78849
78850         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78851
78852 2000-07-01  Jim Meyering  <meyering@lucent.com>
78853
78854         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78855
78856 2000-07-01  Jim Meyering  <meyering@lucent.com>
78857
78858         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78859         problem.
78860
78861 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78862
78863         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78864         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78865
78866 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78867
78868         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78869         per change in ../m4/ls-mntd-fs.m4.
78870         (read_filesystem_list): Ignore symbolic links.
78871
78872 2000-06-29  Jim Meyering  <meyering@lucent.com>
78873
78874         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78875         for declaration of strcmp.
78876
78877         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78878
78879         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78880         Avoid warning by casting result to `char *' to remove `const'.
78881
78882 2000-06-28  Jim Meyering  <meyering@lucent.com>
78883
78884         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78885         included by quotearg.c, for which we perform this test.  From
78886         Bruno Haible.
78887
78888 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78889
78890         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78891         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78892         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78893
78894 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78895
78896         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78897
78898 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78899
78900         savedir now sets errno on failure and invokes xmalloc to get memory.
78901         Fix a couple of other minor bugs while we're at it.
78902
78903         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78904         (NAMLEN): Remove macro.
78905         (malloc, realloc): Remove decls.
78906         (stpcpy): Likewise.
78907         ("xalloc.h"): Include.
78908         (NAME_SIZE_DEFAULT): New macro.
78909         (savedir): Use xmalloc / xrealloc to allocate memory.
78910         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78911         Skip "" directory entries.
78912         Use strlen to calculate directory entry length, since the old method
78913         is rarely used these days and isn't worth supporting.
78914         Don't use a pointer after freeing it.
78915         Check for integer overflow when calculating allocation size.
78916         Use memcpy to copy entries, instead of stpcpy.
78917         Set errno properly when returning NULL.
78918         Check for readdir error.
78919
78920 2000-06-26  Jim Meyering  <meyering@lucent.com>
78921
78922         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78923
78924 2000-06-25  Jim Meyering  <meyering@lucent.com>
78925
78926         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78927         Linux header bug when _XOPEN_SOURCE is defined to 500.
78928
78929 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78930
78931         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78932         deficiency.
78933
78934 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78935
78936         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78937         Include xalloc.h.
78938         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78939
78940 2000-06-24  Jim Meyering  <meyering@lucent.com>
78941
78942         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78943         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78944         for which strerror does return char*, but which lacks a conveniently
78945         accessible declaration of the function.  If the compile-test says
78946         strerror_r doesn't work, then resort to a `run'-test that works on
78947         BeOS and segfaults on DEC Unix.
78948
78949 2000-06-24  Jim Meyering  <meyering@lucent.com>
78950
78951         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78952
78953 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78954
78955         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78956         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78957
78958 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78959
78960         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78961         (mbrtowc, mbstate_t): Define substitutes if
78962         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78963         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78964         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78965
78966 2000-06-23  Jim Meyering  <meyering@lucent.com>
78967
78968         * m4/afs.m4: Add missing AC_MSG_RESULT.
78969         Reported by Bruno Haible.
78970
78971         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78972         Suggestion from Bruno Haible.
78973
78974 2000-06-23  Jim Meyering  <meyering@lucent.com>
78975
78976         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78977
78978 2000-06-21  Jim Meyering  <meyering@lucent.com>
78979
78980         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78981
78982 2000-06-21  Jim Meyering  <meyering@lucent.com>
78983
78984         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78985         (noinst_HEADERS): Add getstr.h.
78986
78987         * lib/getline.c (getstr): Move into a separate file.
78988         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78989         the following changes: new parameter, delim2; both delim[12]
78990         parameters have type `int', not `char'.  The latter would lose
78991         with 8-bit delimiters.
78992         * lib/getstr.h: New file.
78993
78994 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78995
78996         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78997         than 1024, return a memory chunk of least possible size, instead
78998         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78999         Use free/xmalloc instead of xrealloc to avoid copying for very long
79000         paths.
79001
79002 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79003
79004         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79005         the empty string.
79006
79007 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79008
79009         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79010         address, not strdup.  Include <stdlib.h> and don't declare free().
79011
79012 2000-06-19  Jim Meyering  <meyering@lucent.com>
79013
79014         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79015
79016 2000-06-18  Jim Meyering  <meyering@lucent.com>
79017
79018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79019
79020         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79021         `checking whether...' message to be consistent with that of the
79022         lstat test.
79023
79024 2000-06-18  Jim Meyering  <meyering@lucent.com>
79025
79026         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79027         Besides, these days every porting target provides a mkdir function.
79028
79029         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79030         needed. (this snippet comes from src/system.h).
79031
79032 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79033
79034         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79035
79036 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79037
79038         * lib/human.c (adjust_value): New function.
79039         (human_readable_inexact): Apply rounding style even when
79040         printing approximate values.
79041
79042 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79043
79044         * lib/human.c (human_readable_inexact): Allow an input block
79045         size that is not a multiple of the output block size, and vice versa.
79046         Reported by Piergiorgio Sartor.
79047
79048 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79049
79050         * lib/getdate.y (get_date): Apply relative times after time
79051         zone indicator, not before.  Reported by Todd A. Jacobs.
79052
79053 2000-06-13  Jim Meyering  <meyering@lucent.com>
79054
79055         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79056
79057         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79058
79059 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79060
79061         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79062
79063 2000-06-12  Jim Meyering  <meyering@lucent.com>
79064
79065         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79066         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79067         optional argument.
79068         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79069         the optional argument, `lib'.
79070
79071 2000-06-08  Jim Meyering  <meyering@lucent.com>
79072
79073         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79074
79075 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79076
79077         Rewrite largefile configuration so that we don't need to run
79078         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79079         AC_CANONICAL_HOST in configure.in -- jmm]
79080
79081         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79082         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79083         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79084         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79085         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79086         All uses changed.
79087         Instead of inspecting the output of getconf, try to compile the
79088         test program without and with the macro definition.
79089         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79090         for getconf.  Instead, check for the needed flags by compiling
79091         test programs.
79092
79093 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79094
79095         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79096
79097 2000-06-04  Jim Meyering  <meyering@lucent.com>
79098
79099         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79100         SunOS 4.1.4 for which gid_t is an unsigned type.
79101
79102 2000-06-03  Jim Meyering  <meyering@lucent.com>
79103
79104         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79105         now that autoconf requires that.
79106
79107         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79108         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79109         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79110
79111 2000-06-03  Jim Meyering  <meyering@lucent.com>
79112
79113         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79114
79115 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79116
79117         * m4/glibc21.m4: New file.
79118         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79119
79120 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79121
79122         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79123         newer, don't install charset.alias.
79124         * lib/config.charset: Change the Linux/glibc rules so they become empty
79125         on glibc-2.1 or newer.
79126
79127 2000-06-02  Jim Meyering  <meyering@lucent.com>
79128
79129         * lib/mountlist.c: Back out last change.  Instead, do this...
79130         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79131         me_dummy member using the same `ignore'-testing code.
79132         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79133         fs_type strings.
79134         From Mark D. Roth.
79135
79136 2000-05-29  Jim Meyering  <meyering@lucent.com>
79137
79138         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79139         mounts with the `ignore' attribute.  Based on a patch from
79140         Mark D. Roth.
79141
79142 2000-05-28  Jim Meyering  <meyering@lucent.com>
79143
79144         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79145         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79146         * m4/stat.m4: Likewise.
79147         * m4/lstat.m4: Likewise.
79148         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79149
79150         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79151         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79152
79153 2000-05-26  Jim Meyering  <meyering@lucent.com>
79154
79155         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79156
79157 2000-05-24  Jim Meyering  <meyering@lucent.com>
79158
79159         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79160         autoconf requires that.
79161         * m4/lib-check.m4: Likewise.
79162         * m4/jm-macros.m4: Likewise.
79163         * m4/strftime.m4: Likewise.
79164
79165         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79166         AC_CHECK_DECLS, now that autoconf requires that.
79167
79168 2000-05-22  Jim Meyering  <meyering@lucent.com>
79169
79170         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79171         * m4/lstat.m4: Likewise.
79172
79173 2000-05-22  Jim Meyering  <meyering@lucent.com>
79174
79175         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79176
79177 2000-05-20  Jim Meyering  <meyering@lucent.com>
79178
79179         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79180         (jm_PREREQ): Use it.
79181
79182 2000-05-18  Jim Meyering  <meyering@lucent.com>
79183
79184         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79185         back, too, since it may have been modified by allocate_entry.
79186         (hash_delete): Rewrite to use neither the assignment operator
79187         nor the comma operator in an if-expression.
79188
79189 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79190
79191         * lib/closeout.c:
79192         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79193         Remove; no longer needed.
79194         "quotearg.h": Add include.
79195         (file_name): Do not bother to explicitly initialize to NULL; it's less
79196         efficient on some hosts.
79197         (close_stdout_status): Remove test as to whether stdout was already
79198         closed; it breaks for the case "echo x | sort >&-".
79199         Quote file name colons.
79200         Do not assume that _("write error") lacks format strings.
79201
79202 2000-05-15  Jim Meyering  <meyering@lucent.com>
79203
79204         * lib/version-etc.c (version_etc_copyright): Update the copyright
79205         string used in all --version output.
79206
79207 2000-05-14  Jim Meyering  <meyering@lucent.com>
79208
79209         * lib/closeout.c (close_stdout_set_file_name): New function.
79210         (close_stdout_status): Use new file-scoped global.
79211         Return right away if fstat says the stdout file descriptor is invalid.
79212         * lib/closeout.h (close_stdout_set_file_name): Declare.
79213
79214 2000-05-10  Jim Meyering  <meyering@lucent.com>
79215
79216         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79217         (close_stdout_set_status): New function.
79218         * lib/closeout.h (close_stdout_set_status): Declare.
79219
79220 2000-05-09  Jim Meyering  <meyering@lucent.com>
79221
79222         * m4/gettext.m4: Rename this...
79223         * m4/libintl.m4: ...to this.
79224
79225 2000-05-08  Jim Meyering  <meyering@lucent.com>
79226
79227         * lib/long-options.c: Don't include closeout.h.
79228         (parse_long_options): Don't call close_stdout for --version.
79229
79230 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79231
79232         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79233         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79234         2.1.3 bug.  This avoids a clash when files like regex.c define
79235         _GNU_SOURCE.
79236
79237 2000-05-06  Jim Meyering  <meyering@lucent.com>
79238
79239         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79240         (AC_REPLACE_FUNCS): Add strnlen.
79241
79242         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79243         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79244
79245         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79246         AC_SEARCH_LIBS call for nanosleep.
79247         (LIB_NANOSLEEP): Set and AC_SUBST.
79248
79249 2000-05-06  Jim Meyering  <meyering@lucent.com>
79250
79251         * lib/strnlen.c: Undefine __strnlen and strnlen.
79252         [!weak_alias]: Define __strnlen to strnlen.
79253
79254         * lib/atexit.c: New file, from libiberty.
79255
79256 2000-05-06  Jim Meyering  <meyering@lucent.com>
79257
79258         * lib/closeout.c (close_stdout_status): Also check for errors on the
79259         stderr stream.
79260
79261 2000-05-05  Jim Meyering  <meyering@lucent.com>
79262
79263         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79264         AC_SEARCH_LIBS call for clock_gettime.
79265         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79266
79267         * m4/search-libs.m4: Update from autoconf.
79268
79269         su doesn't work on Solaris 2.6.
79270         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79271         <shadow.h>.  Reported by Dragos Harabor.
79272
79273 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79274
79275         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79276         memcpy instead of xmalloc, xrealloc, path_concat.
79277         (locale_charset): Treat empty environment variables as absent.
79278         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79279
79280 2000-05-04  Jim Meyering  <meyering@lucent.com>
79281
79282         * lib/getopt.c: Update from glibc.
79283         * lib/obstack.c: Likewise.
79284         * lib/obstack.h: Likewise.
79285         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79286         file
79287
79288         * lib/regex.h: Likewise.
79289         * lib/strndup.c: Likewise.
79290         * lib/strnlen.c: New file, from glibc.
79291
79292 2000-05-03  Jim Meyering  <meyering@lucent.com>
79293
79294         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79295
79296 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79297
79298         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79299         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79300         compile-time test, rather than inspecting host and OS, to
79301         decide whether to define _LARGEFILE_SOURCE.
79302
79303 2000-05-01  Jim Meyering  <meyering@lucent.com>
79304
79305         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79306
79307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79308         Based on a patch from Bruno Haible.
79309
79310 2000-05-01  Jim Meyering  <meyering@lucent.com>
79311
79312         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79313
79314 2000-04-29  Jim Meyering  <meyering@lucent.com>
79315
79316         * lib/path-concat.c: Declare strdup only if it's not defined.
79317         * lib/canon-host.c: Likewise.
79318
79319 2000-04-28  Jim Meyering  <meyering@lucent.com>
79320
79321         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79322         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79323         is included first, then limits.h is included by locale.h by libintl.h.
79324         From John David Anglin.
79325
79326 2000-04-25  Jim Meyering  <meyering@lucent.com>
79327
79328         * lib/makepath.c (S_IRWXUGO): Define.
79329         (make_path): Always perform explicit chmod if MODE specifies any
79330         of the `special' permission bits.  Prompted by a bug report against
79331         install from Mate Wierdl and Joost van Baal.
79332
79333 2000-04-18  Jim Meyering  <meyering@lucent.com>
79334
79335         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79336         (jm_PREREQ): Use it.
79337
79338 2000-04-18  Jim Meyering  <meyering@lucent.com>
79339
79340         * lib/README: New file.
79341
79342         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79343         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79344
79345 2000-04-17  Jim Meyering  <meyering@lucent.com>
79346
79347         Get it right :-)
79348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79349         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79350         Suggestion from Akim Demaille.
79351
79352 2000-04-17  Jim Meyering  <meyering@lucent.com>
79353
79354         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79355         the definition of it to rpl_strftime also defined-away the system's
79356         declaration.
79357
79358 2000-04-15  Jim Meyering  <meyering@lucent.com>
79359
79360         Use `C' to denote so-called `contiguous' files, the same way
79361         that tar does.
79362         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79363         (ftypelet): Use S_ISCTG.
79364         From Michael Deutschmann.
79365
79366 2000-04-14  Jim Meyering  <meyering@lucent.com>
79367
79368         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79369         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79370         clobbered.
79371
79372 2000-04-14  Jim Meyering  <meyering@lucent.com>
79373
79374         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79375
79376 2000-04-13  Jim Meyering  <meyering@lucent.com>
79377
79378         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79379         AH_VERBATIM to insert required #ifndef into config.h.in.
79380         Suggestion from Akim Demaille.
79381
79382 2000-04-12  Jim Meyering  <meyering@lucent.com>
79383
79384         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79385         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79386         Christian Krackowizer.
79387
79388         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79389         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79390         (AC_SYS_LARGEFILE): Require.
79391         (AM_C_PROTOTYPES): Require.
79392
79393 2000-04-08  Jim Meyering  <meyering@lucent.com>
79394
79395         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79396         names don't conflict.  Reported by Eli Zaretskii.
79397
79398 2000-04-07  Jim Meyering  <meyering@lucent.com>
79399
79400         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79401         sys/types.h, to work around system header problems on AIX 3.2.5.
79402         From Bruno Haible.
79403
79404 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79405
79406         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79407         bug.  Deal with the different error behavior of Irix iconv.
79408
79409 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79410
79411         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79412         IRIX if the installer said otherwise.
79413
79414 2000-04-05  Jim Meyering  <meyering@lucent.com>
79415
79416         Portability tweaks required for ultrix4.3.
79417         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79418         (jm_CHECK_DECLS): Add getutent to the list of functions.
79419         (_jm_DECL_HEADERS): Add utmpx.h.
79420         From John David Anglin.
79421
79422         * m4/strftime.m4: Back out the 2000-04-02 change.
79423         Instead of that change, simply undefine putenv in the test program.
79424
79425 2000-04-05  Jim Meyering  <meyering@lucent.com>
79426
79427         Portability tweaks required for ultrix4.3.
79428         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79429         getutent.
79430         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79431         * lib/canon-host.c: Declare strdup.
79432         * lib/path-concat.c: Likewise.
79433         From John David Anglin.
79434
79435 2000-04-04  Jim Meyering  <meyering@lucent.com>
79436
79437         Be more DOS 8.3-friendly.
79438         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79439         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79440         * lib/Makefile.am: Reflect renaming.
79441         Reported by Eli Zaretskii.
79442
79443         Use a temporary file name that won't clash with `charset.alias'
79444         in the DOS 8.3 name space.
79445         * lib/Makefile.am (charset_tmp): Define.
79446         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79447         (uninstall-local): Likewise.
79448         Reported by Eli Zaretskii.
79449
79450 2000-04-03  Jim Meyering  <meyering@lucent.com>
79451
79452         * m4/gettext.m4: Fix typo in comment.
79453
79454         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79455         textutils/configure.in).  Suggestion from Paul Eggert.
79456         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79457
79458 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79459
79460         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79461         variable in the shell rather than using putenv, which isn't
79462         portable.  This avoids the configure-time inter-test dependency
79463         on the potentially-renamed putenv function.
79464
79465 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79466
79467         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79468         before checking struct stat.st_blksize, so that
79469         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79470
79471 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79472
79473         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79474         since strftime.c uses HAVE_STRFTIME to decide whether to use
79475         the underlying strftime.
79476
79477 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79478
79479         * lib/time/strftime.c (my_strftime): Make sure we call the system
79480         strftime, not ourselves, when invoking the underlying strftime.
79481
79482 2000-03-24  Jim Meyering  <meyering@lucent.com>
79483
79484         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79485         (charset_alias): Define.
79486         (install-exec-local): Factor out common code.
79487         (uninstall-local): Split lines longer than 80.
79488         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79489         (SUFFIXES): Define.
79490         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79491         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79492
79493 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79494
79495         * lib/config.charset: Output a line containing "Packages using this
79496         file".
79497         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79498         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79499         ref-del.sed): New rules.
79500
79501 2000-03-17  Jim Meyering  <meyering@lucent.com>
79502
79503         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79504         Otherwise, include <strings.h>
79505
79506 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79507
79508         * lib/unicodeio.c (utf8_wctomb): New function.
79509         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79510         format instead of in UCS-4 with platform dependent endianness.
79511
79512 2000-03-10  Jim Meyering  <meyering@lucent.com>
79513
79514         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79515         From Marco Franzen.
79516
79517 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79518
79519         * lib/savedir.c (savedir): Work even if directory size is
79520         negative; this can happen with some screwy NFS configurations.
79521
79522 2000-03-06  Jim Meyering  <meyering@lucent.com>
79523
79524         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79525         if it's NULL (because we ran out of memory).  From Bruno Haible.
79526
79527 2000-03-05  Jim Meyering  <meyering@lucent.com>
79528
79529         * lib/localcharset.c ("path-concat.h"): Include.
79530         (get_charset_aliases): Use path_concat instead of ANSI string
79531         concatenation.
79532
79533         * lib/unicodeio.h (PARAMS): Define.
79534         Use it to guard prototype.
79535
79536 2000-03-04  Jim Meyering  <meyering@lucent.com>
79537
79538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79539         for lib/localcharset.c.
79540
79541 2000-03-04  Jim Meyering  <meyering@lucent.com>
79542
79543         * lib/Makefile.am (install-exec-local): Create $(libdir) before
79544         installing into it.
79545         (uninstall-local): Uncomment this rule so `make distcheck' works
79546         once again.
79547
79548         * lib/unicodeio.c (<errno.h>): Include it.
79549         (errno): Declare if not defined.
79550
79551         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
79552
79553         * lib/config.charset: New version, incorporating remarks from a linux
79554         i18n mailing list.  From Bruno Haible.
79555
79556 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
79557
79558         * m4/codeset.m4: New file.
79559         * m4/iconv.m4: New file.
79560         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
79561
79562 2000-03-03  Jim Meyering  <meyering@lucent.com>
79563
79564         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
79565
79566 2000-03-02  Jim Meyering  <meyering@lucent.com>
79567
79568         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
79569         the messages come out on separate lines.
79570
79571         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
79572         rather than jm_CHECK_DECLARATIONS.
79573         * m4/decl.m4: Remove now-unused file.
79574
79575         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
79576         geteuid.
79577
79578 2000-03-02  Jim Meyering  <meyering@lucent.com>
79579
79580         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
79581
79582 2000-03-01  Jim Meyering  <meyering@lucent.com>
79583
79584         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
79585         * lib/unicodeio.c: Likewise.
79586
79587 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
79588
79589         * lib/config.charset: New file.
79590         * lib/localcharset.c: New file.
79591         * lib/unicodeio.h, lib/unicodeio.c: New files.
79592         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
79593         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
79594         (noinst_HEADERS): Add unicodeio.h.
79595         (all-local, install-exec-local, charset.alias): New targets.
79596
79597 2000-02-28  Paul Eggert  <eggert@twinsun.com>
79598
79599         * lib/quotearg.c (ALERT_CHAR): New macro.
79600         (quotearg_buffer_restyled): Use it.
79601
79602 2000-02-27  Jim Meyering  <meyering@lucent.com>
79603
79604         * m4/check-decl.m4: Add getenv to the list.
79605
79606 2000-02-27  Jim Meyering  <meyering@lucent.com>
79607
79608         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
79609         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
79610
79611         * lib/backupfile.c: Guard inclusion of stdlib.h with
79612         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
79613         Declare malloc if needed.
79614
79615         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
79616         `#ifndef HAVE_DECL..'
79617         now that autoconf always defines the HAVE_DECL_ symbols.
79618         * lib/human.c: Likewise.
79619         * lib/same.c: Likewise.
79620         * lib/strtoumax.c: Likewise.
79621
79622         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
79623         declaration check was not run.
79624         * lib/hash.c: Likewise.
79625         * lib/human.c: Likewise.
79626         * lib/same.c: Likewise.
79627         * lib/strtoumax.c: Likewise.
79628
79629         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
79630         `.', then first look up the entire `.'-containing string as a login
79631         name.
79632
79633 2000-02-23  Jim Meyering  <meyering@lucent.com>
79634
79635         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
79636         in place of my hack.
79637
79638 2000-02-18  Paul Eggert  <eggert@twinsun.com>
79639
79640         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
79641         (textint): New typedef.
79642         (parser_control): Member year changed from int to textint.
79643         All uses changed.
79644         (YYSTYPE): Removed; replaced by %union with int and textint members.
79645         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
79646         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
79647         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
79648         (tSNUMBER, tUNUMBER): Now of type <textintval>.
79649         (date, number, to_year): Use width of number in digits, not its value,
79650         to determine whether it's a 2-digit year, or a 2-digit time.
79651         (yylex): Store number of digits of numeric tokens.
79652         Reported by John Kendall.
79653
79654         (parser_control): Changed from struct parser_control to typedef (for
79655         consistency).  All uses changed.
79656
79657         (tID): Removed; not used.
79658         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
79659
79660 2000-02-14  Paul Eggert  <eggert@twinsun.com>
79661
79662         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
79663         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
79664
79665 2000-02-12  Jim Meyering  <meyering@lucent.com>
79666
79667         * lib/userspec.c (ISDIGIT): Define it.
79668         (isdigit): Remove definition.
79669         (is_number): Use ISDIGIT, not isdigit.
79670         <libintl.h>: Include.
79671         (_ and N_): Define.
79672         (parse_user_spec): Mark translatable strings.
79673
79674 2000-02-10  Jim Meyering  <meyering@lucent.com>
79675
79676         With these changes, nanosleep.[ch] are finally enough like the other
79677         lib/* replacement files to compile on a few more losing systems.
79678
79679         * lib/nanosleep.h: Don't include config.h.
79680         Remove prototype from declaration of nanosleep.
79681         (PARAMS): Remove now-unneeded definition.
79682         * lib/nanosleep.c: #undef nanosleep.
79683         (rpl_nanosleep): Rename from nanosleep.
79684
79685 2000-02-10  Jim Meyering  <meyering@lucent.com>
79686
79687         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
79688         gnu_nanosleep to rpl_nanosleep.
79689
79690 2000-02-09  Jim Meyering  <meyering@lucent.com>
79691
79692         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
79693         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
79694
79695 2000-02-08  Akim Demaille  <akim@epita.fr>
79696
79697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
79698         `[' and `]' and remove uses of `changequote'.
79699         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
79700         (AC_SYS_LARGEFILE): Likewise.
79701         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
79702         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
79703         of changequote.
79704         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
79705         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
79706         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
79707         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
79708
79709 2000-02-05  Jim Meyering  <meyering@lucent.com>
79710
79711         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
79712         Remove explicit use of AC_HEADER_TIME.  It is required by
79713         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
79714         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
79715         in autoconf whereby the expansion of the latter ended up preceding
79716         the expansion of its prerequisite, AC_HEADER_TIME.
79717         Reported by Volker Borchert.
79718
79719 2000-02-03  Jim Meyering  <meyering@lucent.com>
79720
79721         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
79722
79723 2000-02-03  Jim Meyering  <meyering@lucent.com>
79724
79725         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
79726         rather than with `#if HAVE_UTMPNAME'.
79727
79728 2000-02-02  Jim Meyering  <meyering@lucent.com>
79729
79730         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
79731         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
79732         Reported by Eli Zaretskii.
79733
79734 2000-02-01  Jim Meyering  <meyering@lucent.com>
79735
79736         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
79737
79738 2000-01-31  Jim Meyering  <meyering@lucent.com>
79739
79740         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
79741         functions.  Add the time.h and sys/time.h headers along with the
79742         AC_REQUIRE'ment of AC_HEADER_TIME.
79743
79744 2000-01-31  Jim Meyering  <meyering@lucent.com>
79745
79746         * lib/nanosleep.h (nanosleep): Guard declaration with
79747         `#if ! HAVE_DECL_NANOSLEEP'.
79748         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
79749         the declaration in that vendor's sys/timers.h.
79750         Reported by Christian Krackowizer.
79751
79752         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
79753         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
79754         (ISPRINT): Likewise.
79755         Reported by Tom Tromey.
79756
79757 2000-01-30  Jim Meyering  <meyering@lucent.com>
79758
79759         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
79760
79761         * m4/prereq.m4 (utmp_includes): Define.
79762         Check for ut_user and ut_name members in both struct utmpx
79763         and struct utmp.
79764
79765 2000-01-30  Jim Meyering  <meyering@lucent.com>
79766
79767         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
79768         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
79769         header files where only utmpx.ut_user is declared.
79770
79771         * lib/readutmp.h (UT_USER): Define.
79772
79773 2000-01-29  Jim Meyering  <meyering@lucent.com>
79774
79775         * m4/lib-check.m4: New file containing library-related checks from
79776         fileutils and sh-utils (textutils had none).
79777
79778 2000-01-28  Jim Meyering  <meyering@lucent.com>
79779
79780         * m4/perl.m4: Change format of warning message to look more like that
79781         from the missing script.  Suggestion from François Pinard.
79782
79783 2000-01-25  Jim Meyering  <meyering@lucent.com>
79784
79785         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
79786         well as time.h in the compile check.
79787         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
79788         Fix typo in cross-compiling case: s/yes/no/.
79789
79790 2000-01-23  Jim Meyering  <meyering@lucent.com>
79791
79792         * m4/jm-macros.m4: Move df-related tests here from
79793         fileutils/configure.in
79794
79795         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
79796         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
79797
79798         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
79799         s/space/ac_fsusage_space/.
79800         (jm_FILE_SYSTEM_USAGE): Take two parameters.
79801
79802         * m4/ftruncate.m4: New file (derived from part of
79803         fileutils/configure.in).
79804         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
79805         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
79806
79807         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
79808         AC_SUBST these here, rather than just in sh-util/configure.in, so
79809         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
79810         all the same.
79811         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
79812         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79813         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79814         (AC_SUBST(POW_LIBM)): Likewise.
79815         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79816
79817 2000-01-23  Jim Meyering  <meyering@lucent.com>
79818
79819         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79820         obstack.c.
79821
79822 2000-01-22  Jim Meyering  <meyering@lucent.com>
79823
79824         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79825
79826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79827
79828         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79829         configure.in
79830         (AC_CHECK_HEADERS): Likewise for sh-utils.
79831         (AC_CHECK_HEADERS): Likewise for textutils.
79832         Merge the three lists of headers.
79833
79834         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79835         from fileutils' configure.in.
79836
79837         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79838         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79839         check-decl.m4.
79840
79841         * m4/check-decl.m4: Use #if rather than #ifdef.
79842         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79843         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79844         (_jm_DECL_HEADERS): Define new function.
79845         (jm_CHECK_DECLARATIONS): Require it.
79846
79847 2000-01-22  Jim Meyering  <meyering@lucent.com>
79848
79849         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79850         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79851         Required for some AIX systems.  Reported by Christian Krackowizer.
79852         [TESTING] (main): New function.
79853
79854         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79855         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79856         letters.
79857
79858         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79859         iswprint.
79860
79861         * lib/strverscmp.c (ISDIGIT): Define.
79862         (strverscmp): Use ISDIGIT, not isdigit.
79863
79864 2000-01-19  Jim Meyering  <meyering@lucent.com>
79865
79866         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79867         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79868         defines `struct timespec' in <sys/time.h>
79869
79870         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79871         Thanks to Akim for explaining.
79872
79873 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79874
79875         * lib/nanosleep.c (nanosleep):
79876         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79877         POSIX.1 doesn't require SA_INTERRUPT and some systems
79878         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79879         it's been part of POSIX.1 since day 1 (in 1988).
79880
79881 2000-01-17  Jim Meyering  <meyering@lucent.com>
79882
79883         * lib/interlock: Remove unused file.  Reported by François Pinard.
79884
79885 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79886
79887         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79888         alert, backslash, formfeed, and vertical tab unnecessarily in
79889         shell quoting style.
79890
79891 2000-01-16  Jim Meyering  <meyering@lucent.com>
79892
79893         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79894         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79895         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79896         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79897
79898 2000-01-16  Jim Meyering  <meyering@lucent.com>
79899
79900         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79901         because the latter didn't work.
79902
79903 2000-01-15  Jim Meyering  <meyering@lucent.com>
79904
79905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79906         (AC_REPLACE_FUNCS): Add memcpy and memset.
79907         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79908         Add strpbrk.
79909         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79910
79911 2000-01-12  Jim Meyering  <meyering@lucent.com>
79912
79913         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79914         (jm_PREREQ): Use it.
79915         (jm_PREREQ_READUTMP): New macro.
79916         (jm_PREREQ): Use it.
79917
79918 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79919
79920         Quote multibyte characters correctly.
79921         * m4/c-bs-a.m4: New file.
79922         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79923         (jm_PREREQ): Use it.
79924
79925 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79926
79927         * m4/uintmax_t.m4: Port to autoconf 2.13.
79928
79929 2000-01-08  Jim Meyering  <meyering@ascend.com>
79930
79931         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79932         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79933
79934 2000-01-04  Jim Meyering  <meyering@ascend.com>
79935
79936         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79937         jm_STRUCT_DIRENT_D_TYPE.
79938         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79939         jm_STRUCT_DIRENT_D_INO.
79940         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79941         jm_STRUCT_UTIMBUF.
79942         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79943         renamings.
79944         * m4/utime.m4: Likewise.
79945
79946         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79947         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79948
79949 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79950
79951         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79952         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79953
79954 2000-01-02  Jim Meyering  <meyering@ascend.com>
79955
79956         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79957         remember if this is necessary.
79958
79959 1999-12-26  Jim Meyering  <meyering@ascend.com>
79960
79961         * m4/jm-macros.m4: Use it here.
79962         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79963
79964 1999-12-23  Jim Meyering  <meyering@ascend.com>
79965
79966         * m4/jm-macros.m4: Check for clock_gettime (moved from
79967         fileutils/configure.in)
79968         Check for gettimeofday.
79969
79970 1999-12-20  Jim Meyering  <meyering@ascend.com>
79971
79972         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79973         autoconf-2.14a-1999-12-20.
79974
79975 1999-12-19  Jim Meyering  <meyering@ascend.com>
79976
79977         * m4/lstat-slash.m4: New file.
79978         * m4/jm-macros.m4: Use the new macro:
79979         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79980
79981 1999-12-07  Jim Meyering  <meyering@ascend.com>
79982
79983         * m4/perl.m4: Require that File::Compare be available, too.
79984         Too many systems seem to lack it.
79985
79986         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79987         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79988
79989 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79990
79991         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79992         problem with the QNX 4.25 shell, which doesn't propagate exit
79993         status of failed commands inside shell assignments.
79994
79995 1999-11-17  Jim Meyering  <meyering@ascend.com>
79996
79997         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79998
79999 1999-11-07  Jim Meyering  <meyering@ascend.com>
80000
80001         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80002
80003 1999-11-06  Jim Meyering  <meyering@ascend.com>
80004
80005         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80006         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80007
80008 1999-11-05  Jim Meyering  <meyering@ascend.com>
80009
80010         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80011         configure.in of textutils, fileutils, and sh-utils into this one
80012         (shared between those packages) file.
80013         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80014         AC_STRUCT_ST_BLKSIZE.
80015
80016 1999-11-03  Jim Meyering  <meyering@ascend.com>
80017
80018         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80019         of AC_CHECK_TYPE checks includes unistd.h.
80020         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80021         Suggestion from Akim Demaille.
80022
80023 1999-10-30  Jim Meyering  <meyering@ascend.com>
80024
80025         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80026         m4-quoted string.
80027         * m4/ls-mntd-fs.m4: Likewise.
80028         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80029         * m4/jm-winsz1.m4: Likewise.
80030
80031         * m4/const.m4: Remove file, since the fix made it into the experimental
80032         version of autoconf.
80033         * m4/mktime.m4: Likewise.
80034
80035         * m4/check-type.m4: Remove file, now that the latest version of
80036         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80037
80038         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80039         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80040         AC_CHECK_TYPE.
80041
80042 1999-10-04  Jim Meyering  <meyering@ascend.com>
80043
80044         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80045
80046 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80047
80048         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80049         2.95.1 bug with HP-UX 10.20.
80050
80051 1999-09-17  Jim Meyering  <meyering@ascend.com>
80052
80053         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80054         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80055         due to missing strdup (against sh-utils-2.0).
80056
80057 1999-08-29  Jim Meyering  <meyering@ascend.com>
80058
80059         * m4/jm-macros.m4: Require jm_BISON.
80060         * m4/bison.m4: New file.
80061
80062 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80063
80064         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80065         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80066
80067 1999-08-05  Jim Meyering  <meyering@ascend.com>
80068
80069         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80070         to avoid conflicts with `conftest' on 8+3 filesystems.
80071         Suggestion from Eli Zaretskii.
80072
80073 1999-08-04  Jim Meyering  <meyering@ascend.com>
80074
80075         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80076         fileutils and sh-utils (textutils's getline test was inadequate).
80077         (AM_FUNC_GETLINE): Run this test.
80078         (AC_CHECK_FUNCS): Check for getdelim.
80079         Reported by Bob Proulx.
80080
80081 1999-08-02  Jim Meyering  <meyering@ascend.com>
80082
80083         * m4/jm-macros.m4: Add a comment.
80084
80085 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80086
80087         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80088         <inttypes.h> defines strtoumax as a macro (and not as a
80089         function).
80090
80091 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80092
80093         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80094         that we can shift, multiply and divide unsigned long long
80095         values; Ultrix cc can't do it.
80096
80097 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80098
80099         * m4/mktime.m4: New file, which is a preview of what should appear
80100         in the next public autoconf release.
80101
80102 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80103
80104         * m4/lfs.m4: Remove this file.
80105         * m4/largefile.m4: New file.  It contains the old contents of
80106         lfs.m4, except that all names with prefix AC_LFS have been
80107         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80108         compatible with future autoconf versions.  Also, some minor m4
80109         quoting problems have been fixed.
80110
80111 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80112
80113         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80114         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80115         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80116         and simplify the shell code.
80117
80118 1999-08-01  Jim Meyering  <meyering@ascend.com>
80119
80120         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80121         m4.
80122
80123 1999-07-20  Jim Meyering  <meyering@ascend.com>
80124
80125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80126
80127 1999-07-15  Jim Meyering  <meyering@ascend.com>
80128
80129         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80130
80131 1999-05-22  Jim Meyering  <meyering@ascend.com>
80132
80133         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80134
80135 1999-05-20  Jim Meyering  <meyering@ascend.com>
80136
80137         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80138         Add a colon after each `then' in case $4 is empty.
80139
80140 1999-05-16  Jim Meyering  <meyering@ascend.com>
80141
80142         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80143
80144 1999-05-10  Jim Meyering  <meyering@ascend.com>
80145
80146         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80147
80148         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80149         AC_FUNC_MKTIME.
80150
80151 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80152
80153         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80154
80155 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80156
80157         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80158         not CPPFLAGS, so that linking works correctly in IRIX.
80159
80160 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80161
80162         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80163
80164 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80165
80166         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80167         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80168         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80169         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80170         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80171
80172         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80173
80174 1999-04-20  Jim Meyering  <meyering@ascend.com>
80175
80176         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80177         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80178         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80179
80180 1999-04-18  Jim Meyering  <meyering@ascend.com>
80181
80182         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80183         * m4/jm-macros.m4: Use it.
80184
80185 1999-04-06  Jim Meyering  <meyering@ascend.com>
80186
80187         * m4/strftime.m4: Remove test for %f.
80188
80189 1999-03-29  Jim Meyering  <meyering@ascend.com>
80190
80191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80192         superset of the AC_TYPE_* checks in the textutils, fileutils,
80193         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80194         AC_TYPE_PID_T.
80195
80196 1999-03-28  Jim Meyering  <meyering@ascend.com>
80197
80198         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80199         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80200         replaced e.g., in the *.sh files of the sh-utils.
80201
80202 1999-03-20  Jim Meyering  <meyering@ascend.com>
80203
80204         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80205         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80206         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80207
80208 1999-03-19  Jim Meyering  <meyering@ascend.com>
80209
80210         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80211
80212 1999-03-12  Jim Meyering  <meyering@ascend.com>
80213
80214         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80215
80216 1999-03-07  Jim Meyering  <meyering@ascend.com>
80217
80218         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80219         declared.
80220
80221 1999-02-17  Jim Meyering  <meyering@ascend.com>
80222
80223         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80224         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80225
80226 1999-02-07  Jim Meyering  <meyering@ascend.com>
80227
80228         * m4/group-member.m4: New file -- extracted from sh-utils'
80229         configure.in.
80230
80231         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80232         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80233
80234 1999-02-06  Jim Meyering  <meyering@ascend.com>
80235
80236         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80237         * m4/fnmatch.m4: Likewise.
80238         * m4/getgroups.m4: Likewise.
80239         * m4/lstat.m4: Likewise.
80240         * m4/malloc.m4: Likewise.
80241         * m4/putenv.m4: Likewise.
80242         * m4/realloc.m4: Likewise.
80243         * m4/regex.m4: Likewise.
80244         * m4/stat.m4: Likewise.
80245         * m4/strftime.m4: Likewise.
80246         Suggestion from Alain Magloire.
80247
80248         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80249         * m4/fnmatch.m4: Likewise.
80250         * m4/getgroups.m4: Likewise.
80251         * m4/getline.m4: Likewise.
80252         * m4/lstat.m4: Likewise.
80253         * m4/malloc.m4: Likewise.
80254         * m4/memcmp.m4: Likewise.
80255         * m4/putenv.m4: Likewise.
80256         * m4/realloc.m4: Likewise.
80257         * m4/regex.m4: Likewise.
80258         * m4/stat.m4: Likewise.
80259         * m4/strftime.m4: Likewise.
80260         Suggestion from Alain Magloire.
80261
80262         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80263         an argument.
80264
80265         * m4/regex.m4: Add a run-time Test for proper operation of
80266         re_compile_pattern.
80267
80268 1999-01-31  Jim Meyering  <meyering@ascend.com>
80269
80270         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80271
80272 1999-01-30  Jim Meyering  <meyering@ascend.com>
80273
80274         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80275
80276         * m4/jm-mktime.m4: Make this a wrapper around the official
80277         AM_FUNC_MKTIME rather than my private copy, now that the official one
80278         is up to date.
80279         * m4/mktime.m4: Remove file.
80280
80281         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80282         * m4/uptime.m4: Likewise.
80283         * m4/uintmax_t.m4: Likewise.
80284
80285 1999-01-28  Jim Meyering  <meyering@ascend.com>
80286
80287         * m4/jm-macros.m4: Use jm_AFS.
80288         * m4/afs.m4: New file (from fileutils' configure.in).
80289
80290         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80291         * m4/chown.m4: Likewise.
80292         * m4/d-ino.m4: Likewise.
80293         * m4/d-type.m4: Likewise.
80294         * m4/fnmatch.m4: Likewise.
80295         * m4/getgroups.m4: Likewise.
80296         * m4/gettext.m4: Likewise.
80297         * m4/jm-mktime.m4: Likewise.
80298         * m4/jm-winsz2.m4: Likewise.
80299         * m4/lcmessage.m4: Likewise.
80300         * m4/ls-mntd-fs.m4: Likewise.
80301         * m4/malloc.m4: Likewise.
80302         * m4/memcmp.m4: Likewise.
80303         * m4/putenv.m4: Likewise.
80304         * m4/realloc.m4: Likewise.
80305         * m4/st_mtim.m4: Likewise.
80306         * m4/strftime.m4: Likewise.
80307
80308 1999-01-16  Jim Meyering  <meyering@ascend.com>
80309
80310         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80311         (ARGMATCH_DIE_DECL): Define.
80312
80313 1999-01-12  Jim Meyering  <meyering@ascend.com>
80314
80315         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80316         Reported by Lars Hecking.
80317
80318 1999-01-10  Jim Meyering  <meyering@ascend.com>
80319
80320         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80321         gross kludge.
80322         * m4/inttypes_h.m4: Likewise.
80323         * m4/lstat.m4: Likewise.
80324         * m4/malloc.m4: Likewise.
80325         * m4/readdir.m4: Likewise.
80326         * m4/realloc.m4: Likewise.
80327         * m4/st_dm_mode.m4: Likewise.
80328         * m4/stat.m4: Likewise.
80329         * m4/utimbuf.m4: Likewise.
80330         * m4/utimes.m4: Likewise.
80331
80332         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80333         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80334         comments in config.h.in are meaningful.
80335
80336         * m4/jm-macros.m4: Require autoconf-2.13 here.
80337
80338         * m4/regex.m4: By default, don't use the included regex.c on systems
80339         with glibc 2.  Suggestion from Uli Drepper.
80340
80341 1999-01-02  Jim Meyering  <meyering@ascend.com>
80342
80343         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80344
80345 1998-12-18  Jim Meyering  <meyering@ascend.com>
80346
80347         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80348         Based on a suggestion from Lars Hecking.
80349
80350 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80351
80352         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80353
80354 1998-11-16  Jim Meyering  <meyering@ascend.com>
80355
80356         * m4/lfs.m4: Double-quote the `uname...` expression.
80357
80358 1998-11-14  Jim Meyering  <meyering@ascend.com>
80359
80360         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80361         * m4/stat.m4: Likewise.
80362
80363 1998-11-03  Jim Meyering  <meyering@ascend.com>
80364
80365         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80366         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80367
80368 1998-10-18  Jim Meyering  <meyering@ascend.com>
80369
80370         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80371
80372 1998-10-17  Jim Meyering  <meyering@ascend.com>
80373
80374         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80375         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80376         calls for those previously hard-coded headers.  Instead, take a new
80377         parameter.
80378         (jm_CHECK_DECLARATIONS): Reflect interface change.
80379         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80380         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80381
80382         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80383
80384 1998-10-14  Jim Meyering  <meyering@ascend.com>
80385
80386         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80387         instead of "TZ=America/Vancouver".  From Paul Eggert.
80388
80389 1998-10-11  Jim Meyering  <meyering@ascend.com>
80390
80391         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80392         This adds a test for a recently added compatibility fix for mktime.c.
80393         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80394
80395 1998-09-27  Jim Meyering  <meyering@ascend.com>
80396
80397         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80398
80399         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80400         ../configure.in, including a change from Gordon Matzigkeit to allow
80401         cross-compiling for the Hurd.
80402
80403         * m4/glibc.m4: New file/macro to test for the GNU C Library
80404         versions 1 and 2.  From Gordon Matzigkeit.
80405         Indent.
80406
80407 1998-09-21  Jim Meyering  <meyering@ascend.com>
80408
80409         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80410
80411 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80412
80413         Port nanosecond-resolution times to UnixWare 2.1.2 and
80414         pedantic Solaris 2.6.
80415
80416         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80417         AC_STRUCT_ST_MTIM.
80418         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80419         Generate name of ns member, instead of just 1 or undef.
80420         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80421
80422 1998-08-15  Jim Meyering  <meyering@ascend.com>
80423
80424         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80425         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80426         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80427         instead of jm_TYPE_SSIZE_T.
80428
80429 1998-08-12  Jim Meyering  <meyering@ascend.com>
80430
80431         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80432
80433 1998-08-02  Jim Meyering  <meyering@ascend.com>
80434
80435         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80436         in acconfig.h manually.
80437
80438 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80439
80440         * m4/st_mtim.m4: New file.
80441
80442 1998-07-28  Jim Meyering  <meyering@ascend.com>
80443
80444         * m4/utimes.m4: Undef stat.
80445
80446 1998-07-25  Jim Meyering  <meyering@ascend.com>
80447
80448         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80449         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80450
80451 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80452
80453         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80454         uid and gid actually remain unchanged.
80455
80456 1998-07-07  Jim Meyering  <meyering@ascend.com>
80457
80458         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80459
80460 1998-07-04  Jim Meyering  <meyering@ascend.com>
80461
80462         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80463         to prove that this macro can be used in packages without regex.c.
80464
80465 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80466
80467         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80468         is to be used.
80469
80470 1998-07-03  Jim Meyering  <meyering@ascend.com>
80471
80472         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80473
80474         * m4/gettext.m4: New file -- from gettext-0.10.35.
80475         * m4/lcmessage.m4: Likewise.
80476         * m4/progtest.m4: Likewise.
80477
80478         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80479         * m4/jm-macros.m4: Require the new macro.
80480
80481 1998-06-29  Jim Meyering  <meyering@ascend.com>
80482
80483         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80484         for the definition of NGROUPS (used in a system header included
80485         by sys/mount.h).
80486
80487 1998-06-28  Jim Meyering  <meyering@ascend.com>
80488
80489         * m4/ls-mntd-fs.m4: New file.
80490         * m4/fstypename.m4: New file.
80491
80492         * m4/jm-macros.m4: Require the new macro.
80493         * m4/jm-glibc-io.m4: New file.
80494
80495 1998-05-19  Jim Meyering  <meyering@ascend.com>
80496
80497         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80498         * m4/lchown.m4: New file.
80499
80500         * m4/Makefile.am.in: New file.
80501         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80502
80503 1998-05-14  Jim Meyering  <meyering@ascend.com>
80504
80505         * m4/Makefile.am (EXTRA_DIST): Add them.
80506         * m4/jm-macros.m4: New file.
80507         * m4/utimbuf.m4: New file.
80508
80509 1998-05-12  Jim Meyering  <meyering@ascend.com>
80510
80511         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80512
80513 1998-05-11  Jim Meyering  <meyering@ascend.com>
80514
80515         * m4/isc-posix.m4: New file.
80516
80517 1998-05-10  Jim Meyering  <meyering@ascend.com>
80518
80519         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80520
80521 1998-05-09  Jim Meyering  <meyering@ascend.com>
80522
80523         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80524         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80525         with automake.
80526
80527         * m4/ssize_t.m4: New file.
80528         * m4/mktime.m4: Remove file -- the new automake has this now.
80529
80530 1998-04-26  Jim Meyering  <meyering@ascend.com>
80531
80532         * m4/assert.m4: New file.
80533         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80534
80535 1998-04-05  Jim Meyering  <meyering@ascend.com>
80536
80537         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80538         (jm_PREREQ): Use it here.
80539
80540 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80541
80542         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
80543         in acconfig.h.
80544
80545 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
80546
80547         * m4/prereq.m4: New file.
80548         * m4/error.m4: New file.
80549         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
80550
80551 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
80552
80553         * m4/getline.m4: Don't set am_cv_func_working_getline before the
80554         cache-check for the same variable -- that defeated the purpose of
80555         the test; the test program was never run.  This was a problem only
80556         on systems with losing getline functions -- HP-UX 10.20 is one.
80557         Reported by Bjorn Helgaas.
80558
80559 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
80560
80561         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
80562
80563 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
80564
80565         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
80566
80567         * m4/const.m4: New file.  Use an initializer in this declaration
80568         typedef int charset[2]; const charset x;
80569         Reported by Bob Glickstein.
80570
80571 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
80572
80573         * m4/chown.m4: Fix reversed types on -1 args to chown.
80574         From Kaveh Ghazi.
80575
80576 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
80577
80578         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
80579         Add lseek and memchr.
80580
80581         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
80582         T.E.Dickey <dickey@clark.net> said that some older preprocessors
80583         have a 20-character limit on names.
80584
80585 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
80586
80587         * m4/inttypes_h.m4: New file.
80588         * m4/uintmax_t.m4: New file.
80589         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
80590
80591
80592         -----
80593
80594         Local Variables:
80595         coding: utf-8
80596         End:
80597
80598         Copyright (C) 1997-2011 Free Software Foundation, Inc.
80599
80600         Copying and distribution of this file, with or without
80601         modification, are permitted provided the copyright notice
80602         and this notice are preserved.